]>
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 RD |
65 | |
66 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
67 | PyObject* o2; | |
e0672e2f | 68 | if (!target) { |
8ab979d7 | 69 | target = o; |
e0672e2f | 70 | } else if (target == Py_None) { |
8ab979d7 RD |
71 | Py_DECREF(Py_None); |
72 | target = o; | |
e0672e2f | 73 | } else { |
8ab979d7 RD |
74 | if (!PyList_Check(target)) { |
75 | o2 = target; | |
76 | target = PyList_New(0); | |
77 | PyList_Append(target, o2); | |
78 | Py_XDECREF(o2); | |
79 | } | |
80 | PyList_Append(target,o); | |
81 | Py_XDECREF(o); | |
82 | } | |
83 | return target; | |
84 | } | |
85 | ||
86 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
87 | PyObject* o2; | |
88 | PyObject* o3; | |
89 | ||
e0672e2f | 90 | if (!target) { |
8ab979d7 | 91 | target = o; |
e0672e2f | 92 | } else if (target == Py_None) { |
8ab979d7 RD |
93 | Py_DECREF(Py_None); |
94 | target = o; | |
e0672e2f | 95 | } else { |
8ab979d7 RD |
96 | if (!PyTuple_Check(target)) { |
97 | o2 = target; | |
98 | target = PyTuple_New(1); | |
99 | PyTuple_SetItem(target, 0, o2); | |
100 | } | |
e0672e2f RD |
101 | o3 = PyTuple_New(1); |
102 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
103 | |
104 | o2 = target; | |
e0672e2f RD |
105 | target = PySequence_Concat(o2, o3); |
106 | Py_DECREF(o2); | |
8ab979d7 RD |
107 | Py_DECREF(o3); |
108 | } | |
109 | return target; | |
110 | } | |
111 | ||
794c5cb1 RD |
112 | #if PYTHON_API_VERSION >= 1009 |
113 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
114 | #else | |
115 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
116 | #endif | |
8ab979d7 | 117 | |
f6bcfd97 | 118 | int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { |
dcd38683 RD |
119 | int retval = 0; |
120 | PyObject* func = (PyObject*)funcPtr; | |
121 | bool doSave = wxPyRestoreThread(); | |
122 | ||
123 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
124 | PyObject* result = PyEval_CallObject(func, args); | |
125 | Py_DECREF(args); | |
126 | if (result) { | |
127 | retval = PyInt_AsLong(result); | |
128 | Py_DECREF(result); | |
129 | } | |
130 | ||
131 | wxPySaveThread(doSave); | |
132 | return retval; | |
133 | } | |
134 | ||
135 | ||
cf694132 RD |
136 | class wxPyTreeItemData : public wxTreeItemData { |
137 | public: | |
138 | wxPyTreeItemData(PyObject* obj = NULL) { | |
c368d904 | 139 | if (obj == NULL) |
cf694132 | 140 | obj = Py_None; |
c368d904 RD |
141 | Py_INCREF(obj); |
142 | m_obj = obj; | |
cf694132 RD |
143 | } |
144 | ||
145 | ~wxPyTreeItemData() { | |
1afc06c2 | 146 | bool doSave = wxPyRestoreThread(); |
c368d904 | 147 | Py_DECREF(m_obj); |
1afc06c2 | 148 | wxPySaveThread(doSave); |
cf694132 RD |
149 | } |
150 | ||
151 | PyObject* GetData() { | |
152 | Py_INCREF(m_obj); | |
153 | return m_obj; | |
154 | } | |
155 | ||
156 | void SetData(PyObject* obj) { | |
c368d904 | 157 | bool doSave = wxPyRestoreThread(); |
cf694132 | 158 | Py_DECREF(m_obj); |
c368d904 | 159 | wxPySaveThread(doSave); |
cf694132 RD |
160 | m_obj = obj; |
161 | Py_INCREF(obj); | |
162 | } | |
163 | ||
164 | PyObject* m_obj; | |
165 | }; | |
f6bcfd97 BP |
166 | |
167 | class wxPyTreeCtrl : public wxTreeCtrl { | |
3b36695d | 168 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); |
f6bcfd97 BP |
169 | public: |
170 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
171 | const wxPoint& pos, | |
172 | const wxSize& size, | |
173 | long style, | |
174 | const wxValidator& validator, | |
175 | char* name) : | |
176 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
177 | ||
f6bcfd97 BP |
178 | int OnCompareItems(const wxTreeItemId& item1, |
179 | const wxTreeItemId& item2) { | |
180 | int rval = 0; | |
181 | bool doSave = wxPyRestoreThread(); | |
182 | if (m_myInst.findCallback("OnCompareItems")) | |
183 | rval = m_myInst.callCallback(Py_BuildValue( | |
184 | "(OO)", | |
185 | wxPyConstructObject((void*)&item1, "wxTreeItemId"), | |
186 | wxPyConstructObject((void*)&item2, "wxTreeItemId"))); | |
187 | else | |
188 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
189 | wxPySaveThread(doSave); | |
190 | return rval; | |
191 | } | |
192 | PYPRIVATE; | |
193 | }; | |
194 | ||
3b36695d RD |
195 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); |
196 | ||
1d99702e RD |
197 | #ifdef __cplusplus |
198 | extern "C" { | |
199 | #endif | |
f6bcfd97 BP |
200 | #define new_wxListItemAttr() (new wxListItemAttr()) |
201 | static PyObject *_wrap_new_wxListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 202 | PyObject * _resultobj; |
f6bcfd97 BP |
203 | wxListItemAttr * _result; |
204 | char *_kwnames[] = { NULL }; | |
205 | char _ptemp[128]; | |
af309447 RD |
206 | |
207 | self = self; | |
f6bcfd97 | 208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItemAttr",_kwnames)) |
af309447 | 209 | return NULL; |
cf694132 RD |
210 | { |
211 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 212 | _result = (wxListItemAttr *)new_wxListItemAttr(); |
cf694132 RD |
213 | |
214 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
215 | } if (_result) { |
216 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
217 | _resultobj = Py_BuildValue("s",_ptemp); | |
218 | } else { | |
219 | Py_INCREF(Py_None); | |
220 | _resultobj = Py_None; | |
221 | } | |
af309447 RD |
222 | return _resultobj; |
223 | } | |
224 | ||
f6bcfd97 BP |
225 | #define wxListItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
226 | static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 227 | PyObject * _resultobj; |
f6bcfd97 BP |
228 | wxListItemAttr * _arg0; |
229 | wxColour * _arg1; | |
1d99702e | 230 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
231 | wxColour temp; |
232 | PyObject * _obj1 = 0; | |
233 | char *_kwnames[] = { "self","colText", NULL }; | |
8ab979d7 RD |
234 | |
235 | self = self; | |
f6bcfd97 | 236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 237 | return NULL; |
1d99702e RD |
238 | if (_argo0) { |
239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetTextColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
242 | return NULL; |
243 | } | |
244 | } | |
f6bcfd97 BP |
245 | { |
246 | _arg1 = &temp; | |
247 | if (! wxColour_helper(_obj1, &_arg1)) | |
248 | return NULL; | |
249 | } | |
cf694132 RD |
250 | { |
251 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 252 | wxListItemAttr_SetTextColour(_arg0,*_arg1); |
cf694132 RD |
253 | |
254 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
255 | } Py_INCREF(Py_None); |
256 | _resultobj = Py_None; | |
8ab979d7 RD |
257 | return _resultobj; |
258 | } | |
259 | ||
f6bcfd97 BP |
260 | #define wxListItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
261 | static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 262 | PyObject * _resultobj; |
f6bcfd97 BP |
263 | wxListItemAttr * _arg0; |
264 | wxColour * _arg1; | |
1d99702e | 265 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
266 | wxColour temp; |
267 | PyObject * _obj1 = 0; | |
268 | char *_kwnames[] = { "self","colBack", NULL }; | |
af309447 RD |
269 | |
270 | self = self; | |
f6bcfd97 | 271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
af309447 | 272 | return NULL; |
1d99702e RD |
273 | if (_argo0) { |
274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetBackgroundColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
277 | return NULL; |
278 | } | |
279 | } | |
f6bcfd97 BP |
280 | { |
281 | _arg1 = &temp; | |
282 | if (! wxColour_helper(_obj1, &_arg1)) | |
283 | return NULL; | |
284 | } | |
cf694132 RD |
285 | { |
286 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 287 | wxListItemAttr_SetBackgroundColour(_arg0,*_arg1); |
cf694132 RD |
288 | |
289 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
290 | } Py_INCREF(Py_None); |
291 | _resultobj = Py_None; | |
af309447 RD |
292 | return _resultobj; |
293 | } | |
294 | ||
f6bcfd97 BP |
295 | #define wxListItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
296 | static PyObject *_wrap_wxListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 297 | PyObject * _resultobj; |
f6bcfd97 BP |
298 | wxListItemAttr * _arg0; |
299 | wxFont * _arg1; | |
1d99702e | 300 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
301 | PyObject * _argo1 = 0; |
302 | char *_kwnames[] = { "self","font", NULL }; | |
8ab979d7 RD |
303 | |
304 | self = self; | |
f6bcfd97 | 305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 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_SetFont. Expected _wxListItemAttr_p."); | |
311 | return NULL; | |
312 | } | |
313 | } | |
314 | if (_argo1) { | |
315 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
316 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetFont. Expected _wxFont_p."); | |
8ab979d7 RD |
318 | return NULL; |
319 | } | |
320 | } | |
cf694132 RD |
321 | { |
322 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 323 | wxListItemAttr_SetFont(_arg0,*_arg1); |
cf694132 RD |
324 | |
325 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
326 | } Py_INCREF(Py_None); |
327 | _resultobj = Py_None; | |
8ab979d7 RD |
328 | return _resultobj; |
329 | } | |
330 | ||
f6bcfd97 BP |
331 | #define wxListItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) |
332 | static PyObject *_wrap_wxListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 333 | PyObject * _resultobj; |
f6bcfd97 BP |
334 | bool _result; |
335 | wxListItemAttr * _arg0; | |
1d99702e | 336 | PyObject * _argo0 = 0; |
f6bcfd97 | 337 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
338 | |
339 | self = self; | |
f6bcfd97 | 340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasTextColour",_kwnames,&_argo0)) |
af309447 | 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_HasTextColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
346 | return NULL; |
347 | } | |
348 | } | |
cf694132 RD |
349 | { |
350 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 351 | _result = (bool )wxListItemAttr_HasTextColour(_arg0); |
cf694132 RD |
352 | |
353 | wxPy_END_ALLOW_THREADS; | |
354 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
355 | return _resultobj; |
356 | } | |
357 | ||
f6bcfd97 BP |
358 | #define wxListItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) |
359 | static PyObject *_wrap_wxListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 360 | PyObject * _resultobj; |
f6bcfd97 BP |
361 | bool _result; |
362 | wxListItemAttr * _arg0; | |
1d99702e | 363 | PyObject * _argo0 = 0; |
efc5f224 | 364 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
365 | |
366 | self = self; | |
f6bcfd97 | 367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 368 | return NULL; |
1d99702e RD |
369 | if (_argo0) { |
370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasBackgroundColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
373 | return NULL; |
374 | } | |
375 | } | |
cf694132 RD |
376 | { |
377 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 378 | _result = (bool )wxListItemAttr_HasBackgroundColour(_arg0); |
cf694132 RD |
379 | |
380 | wxPy_END_ALLOW_THREADS; | |
381 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
382 | return _resultobj; |
383 | } | |
384 | ||
f6bcfd97 BP |
385 | #define wxListItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) |
386 | static PyObject *_wrap_wxListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 387 | PyObject * _resultobj; |
f6bcfd97 BP |
388 | bool _result; |
389 | wxListItemAttr * _arg0; | |
1d99702e | 390 | PyObject * _argo0 = 0; |
f6bcfd97 | 391 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
392 | |
393 | self = self; | |
f6bcfd97 | 394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasFont",_kwnames,&_argo0)) |
af309447 | 395 | return NULL; |
1d99702e RD |
396 | if (_argo0) { |
397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasFont. Expected _wxListItemAttr_p."); | |
af309447 RD |
400 | return NULL; |
401 | } | |
402 | } | |
cf694132 RD |
403 | { |
404 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 405 | _result = (bool )wxListItemAttr_HasFont(_arg0); |
cf694132 RD |
406 | |
407 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 408 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
409 | return _resultobj; |
410 | } | |
411 | ||
f6bcfd97 BP |
412 | #define wxListItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
413 | static PyObject *_wrap_wxListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 414 | PyObject * _resultobj; |
f6bcfd97 BP |
415 | wxColour * _result; |
416 | wxListItemAttr * _arg0; | |
1d99702e | 417 | PyObject * _argo0 = 0; |
efc5f224 | 418 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 419 | char _ptemp[128]; |
8ab979d7 RD |
420 | |
421 | self = self; | |
f6bcfd97 | 422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 423 | return NULL; |
1d99702e RD |
424 | if (_argo0) { |
425 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
426 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetTextColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
428 | return NULL; |
429 | } | |
430 | } | |
cf694132 RD |
431 | { |
432 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
433 | const wxColour & _result_ref = wxListItemAttr_GetTextColour(_arg0); |
434 | _result = (wxColour *) &_result_ref; | |
cf694132 RD |
435 | |
436 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
437 | } if (_result) { |
438 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
439 | _resultobj = Py_BuildValue("s",_ptemp); | |
440 | } else { | |
441 | Py_INCREF(Py_None); | |
442 | _resultobj = Py_None; | |
443 | } | |
8ab979d7 RD |
444 | return _resultobj; |
445 | } | |
446 | ||
f6bcfd97 BP |
447 | #define wxListItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) |
448 | static PyObject *_wrap_wxListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 449 | PyObject * _resultobj; |
f6bcfd97 BP |
450 | wxColour * _result; |
451 | wxListItemAttr * _arg0; | |
1d99702e | 452 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
453 | char *_kwnames[] = { "self", NULL }; |
454 | char _ptemp[128]; | |
af309447 RD |
455 | |
456 | self = self; | |
f6bcfd97 | 457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetBackgroundColour",_kwnames,&_argo0)) |
af309447 | 458 | return NULL; |
1d99702e RD |
459 | if (_argo0) { |
460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetBackgroundColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
463 | return NULL; |
464 | } | |
465 | } | |
cf694132 RD |
466 | { |
467 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
468 | const wxColour & _result_ref = wxListItemAttr_GetBackgroundColour(_arg0); |
469 | _result = (wxColour *) &_result_ref; | |
cf694132 RD |
470 | |
471 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
472 | } if (_result) { |
473 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
474 | _resultobj = Py_BuildValue("s",_ptemp); | |
475 | } else { | |
476 | Py_INCREF(Py_None); | |
477 | _resultobj = Py_None; | |
478 | } | |
af309447 RD |
479 | return _resultobj; |
480 | } | |
481 | ||
f6bcfd97 BP |
482 | #define wxListItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) |
483 | static PyObject *_wrap_wxListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 484 | PyObject * _resultobj; |
f6bcfd97 BP |
485 | wxFont * _result; |
486 | wxListItemAttr * _arg0; | |
1d99702e | 487 | PyObject * _argo0 = 0; |
efc5f224 | 488 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 489 | char _ptemp[128]; |
8ab979d7 RD |
490 | |
491 | self = self; | |
f6bcfd97 | 492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 493 | return NULL; |
1d99702e RD |
494 | if (_argo0) { |
495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetFont. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
498 | return NULL; |
499 | } | |
500 | } | |
cf694132 RD |
501 | { |
502 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
503 | const wxFont & _result_ref = wxListItemAttr_GetFont(_arg0); |
504 | _result = (wxFont *) &_result_ref; | |
cf694132 RD |
505 | |
506 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
507 | } if (_result) { |
508 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
509 | _resultobj = Py_BuildValue("s",_ptemp); | |
510 | } else { | |
511 | Py_INCREF(Py_None); | |
512 | _resultobj = Py_None; | |
513 | } | |
8ab979d7 RD |
514 | return _resultobj; |
515 | } | |
516 | ||
9416aa89 RD |
517 | static void *SwigwxListItemTowxObject(void *ptr) { |
518 | wxListItem *src; | |
519 | wxObject *dest; | |
520 | src = (wxListItem *) ptr; | |
521 | dest = (wxObject *) src; | |
522 | return (void *) dest; | |
523 | } | |
524 | ||
f6bcfd97 BP |
525 | #define new_wxListItem() (new wxListItem()) |
526 | static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 527 | PyObject * _resultobj; |
f6bcfd97 BP |
528 | wxListItem * _result; |
529 | char *_kwnames[] = { NULL }; | |
530 | char _ptemp[128]; | |
af309447 RD |
531 | |
532 | self = self; | |
f6bcfd97 | 533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames)) |
af309447 | 534 | return NULL; |
af309447 | 535 | { |
cf694132 | 536 | wxPy_BEGIN_ALLOW_THREADS; |
f6bcfd97 | 537 | _result = (wxListItem *)new_wxListItem(); |
cf694132 RD |
538 | |
539 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
540 | } if (_result) { |
541 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
542 | _resultobj = Py_BuildValue("s",_ptemp); | |
543 | } else { | |
544 | Py_INCREF(Py_None); | |
545 | _resultobj = Py_None; | |
546 | } | |
af309447 RD |
547 | return _resultobj; |
548 | } | |
549 | ||
f6bcfd97 BP |
550 | #define delete_wxListItem(_swigobj) (delete _swigobj) |
551 | static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 552 | PyObject * _resultobj; |
8ab979d7 | 553 | wxListItem * _arg0; |
1d99702e | 554 | PyObject * _argo0 = 0; |
efc5f224 | 555 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
556 | |
557 | self = self; | |
f6bcfd97 | 558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0)) |
8ab979d7 | 559 | return NULL; |
1d99702e RD |
560 | if (_argo0) { |
561 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
562 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p."); |
8ab979d7 RD |
564 | return NULL; |
565 | } | |
566 | } | |
8ab979d7 | 567 | { |
cf694132 | 568 | wxPy_BEGIN_ALLOW_THREADS; |
f6bcfd97 | 569 | delete_wxListItem(_arg0); |
cf694132 RD |
570 | |
571 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
572 | } Py_INCREF(Py_None); |
573 | _resultobj = Py_None; | |
8ab979d7 RD |
574 | return _resultobj; |
575 | } | |
576 | ||
f6bcfd97 BP |
577 | #define wxListItem_Clear(_swigobj) (_swigobj->Clear()) |
578 | static PyObject *_wrap_wxListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 579 | PyObject * _resultobj; |
af309447 | 580 | wxListItem * _arg0; |
1d99702e | 581 | PyObject * _argo0 = 0; |
f6bcfd97 | 582 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
583 | |
584 | self = self; | |
f6bcfd97 | 585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_Clear",_kwnames,&_argo0)) |
af309447 | 586 | return NULL; |
1d99702e RD |
587 | if (_argo0) { |
588 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
589 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_Clear. Expected _wxListItem_p."); |
af309447 RD |
591 | return NULL; |
592 | } | |
593 | } | |
cf694132 RD |
594 | { |
595 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 596 | wxListItem_Clear(_arg0); |
cf694132 RD |
597 | |
598 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
599 | } Py_INCREF(Py_None); |
600 | _resultobj = Py_None; | |
af309447 RD |
601 | return _resultobj; |
602 | } | |
603 | ||
f6bcfd97 BP |
604 | #define wxListItem_ClearAttributes(_swigobj) (_swigobj->ClearAttributes()) |
605 | static PyObject *_wrap_wxListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 606 | PyObject * _resultobj; |
8ab979d7 | 607 | wxListItem * _arg0; |
1d99702e | 608 | PyObject * _argo0 = 0; |
efc5f224 | 609 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
610 | |
611 | self = self; | |
f6bcfd97 | 612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_ClearAttributes",_kwnames,&_argo0)) |
8ab979d7 | 613 | return NULL; |
1d99702e RD |
614 | if (_argo0) { |
615 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
616 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 617 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_ClearAttributes. Expected _wxListItem_p."); |
8ab979d7 RD |
618 | return NULL; |
619 | } | |
620 | } | |
cf694132 RD |
621 | { |
622 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 623 | wxListItem_ClearAttributes(_arg0); |
cf694132 RD |
624 | |
625 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
626 | } Py_INCREF(Py_None); |
627 | _resultobj = Py_None; | |
628 | return _resultobj; | |
629 | } | |
630 | ||
631 | #define wxListItem_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
632 | static PyObject *_wrap_wxListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
633 | PyObject * _resultobj; | |
634 | wxListItem * _arg0; | |
635 | long _arg1; | |
636 | PyObject * _argo0 = 0; | |
637 | char *_kwnames[] = { "self","mask", NULL }; | |
638 | ||
639 | self = self; | |
640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetMask",_kwnames,&_argo0,&_arg1)) | |
641 | return NULL; | |
642 | if (_argo0) { | |
643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetMask. Expected _wxListItem_p."); | |
646 | return NULL; | |
647 | } | |
648 | } | |
649 | { | |
650 | wxPy_BEGIN_ALLOW_THREADS; | |
651 | wxListItem_SetMask(_arg0,_arg1); | |
652 | ||
653 | wxPy_END_ALLOW_THREADS; | |
654 | } Py_INCREF(Py_None); | |
655 | _resultobj = Py_None; | |
656 | return _resultobj; | |
657 | } | |
658 | ||
659 | #define wxListItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
660 | static PyObject *_wrap_wxListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
661 | PyObject * _resultobj; | |
662 | wxListItem * _arg0; | |
663 | long _arg1; | |
664 | PyObject * _argo0 = 0; | |
665 | char *_kwnames[] = { "self","id", NULL }; | |
666 | ||
667 | self = self; | |
668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetId",_kwnames,&_argo0,&_arg1)) | |
669 | return NULL; | |
670 | if (_argo0) { | |
671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetId. Expected _wxListItem_p."); | |
674 | return NULL; | |
675 | } | |
676 | } | |
677 | { | |
678 | wxPy_BEGIN_ALLOW_THREADS; | |
679 | wxListItem_SetId(_arg0,_arg1); | |
680 | ||
681 | wxPy_END_ALLOW_THREADS; | |
682 | } Py_INCREF(Py_None); | |
683 | _resultobj = Py_None; | |
684 | return _resultobj; | |
685 | } | |
686 | ||
687 | #define wxListItem_SetColumn(_swigobj,_swigarg0) (_swigobj->SetColumn(_swigarg0)) | |
688 | static PyObject *_wrap_wxListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
689 | PyObject * _resultobj; | |
690 | wxListItem * _arg0; | |
691 | int _arg1; | |
692 | PyObject * _argo0 = 0; | |
693 | char *_kwnames[] = { "self","col", NULL }; | |
694 | ||
695 | self = self; | |
696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetColumn",_kwnames,&_argo0,&_arg1)) | |
697 | return NULL; | |
698 | if (_argo0) { | |
699 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
700 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetColumn. Expected _wxListItem_p."); | |
702 | return NULL; | |
703 | } | |
704 | } | |
705 | { | |
706 | wxPy_BEGIN_ALLOW_THREADS; | |
707 | wxListItem_SetColumn(_arg0,_arg1); | |
708 | ||
709 | wxPy_END_ALLOW_THREADS; | |
710 | } Py_INCREF(Py_None); | |
711 | _resultobj = Py_None; | |
712 | return _resultobj; | |
713 | } | |
714 | ||
715 | #define wxListItem_SetState(_swigobj,_swigarg0) (_swigobj->SetState(_swigarg0)) | |
716 | static PyObject *_wrap_wxListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
717 | PyObject * _resultobj; | |
718 | wxListItem * _arg0; | |
719 | long _arg1; | |
720 | PyObject * _argo0 = 0; | |
721 | char *_kwnames[] = { "self","state", NULL }; | |
722 | ||
723 | self = self; | |
724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetState",_kwnames,&_argo0,&_arg1)) | |
725 | return NULL; | |
726 | if (_argo0) { | |
727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetState. Expected _wxListItem_p."); | |
730 | return NULL; | |
731 | } | |
732 | } | |
733 | { | |
734 | wxPy_BEGIN_ALLOW_THREADS; | |
735 | wxListItem_SetState(_arg0,_arg1); | |
736 | ||
737 | wxPy_END_ALLOW_THREADS; | |
738 | } Py_INCREF(Py_None); | |
739 | _resultobj = Py_None; | |
740 | return _resultobj; | |
741 | } | |
742 | ||
743 | #define wxListItem_SetStateMask(_swigobj,_swigarg0) (_swigobj->SetStateMask(_swigarg0)) | |
744 | static PyObject *_wrap_wxListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
745 | PyObject * _resultobj; | |
746 | wxListItem * _arg0; | |
747 | long _arg1; | |
748 | PyObject * _argo0 = 0; | |
749 | char *_kwnames[] = { "self","stateMask", NULL }; | |
750 | ||
751 | self = self; | |
752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetStateMask",_kwnames,&_argo0,&_arg1)) | |
753 | return NULL; | |
754 | if (_argo0) { | |
755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetStateMask. Expected _wxListItem_p."); | |
758 | return NULL; | |
759 | } | |
760 | } | |
761 | { | |
762 | wxPy_BEGIN_ALLOW_THREADS; | |
763 | wxListItem_SetStateMask(_arg0,_arg1); | |
764 | ||
765 | wxPy_END_ALLOW_THREADS; | |
766 | } Py_INCREF(Py_None); | |
767 | _resultobj = Py_None; | |
768 | return _resultobj; | |
769 | } | |
770 | ||
771 | #define wxListItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
772 | static PyObject *_wrap_wxListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
773 | PyObject * _resultobj; | |
774 | wxListItem * _arg0; | |
775 | wxString * _arg1; | |
776 | PyObject * _argo0 = 0; | |
777 | PyObject * _obj1 = 0; | |
778 | char *_kwnames[] = { "self","text", NULL }; | |
779 | ||
780 | self = self; | |
781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetText",_kwnames,&_argo0,&_obj1)) | |
782 | return NULL; | |
783 | if (_argo0) { | |
784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetText. Expected _wxListItem_p."); | |
787 | return NULL; | |
788 | } | |
789 | } | |
790 | { | |
185d7c3e RD |
791 | #if PYTHON_API_VERSION >= 1009 |
792 | char* tmpPtr; int tmpSize; | |
793 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 794 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
795 | return NULL; |
796 | } | |
797 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
798 | return NULL; | |
799 | _arg1 = new wxString(tmpPtr, tmpSize); | |
800 | #else | |
f6bcfd97 BP |
801 | if (!PyString_Check(_obj1)) { |
802 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
803 | return NULL; | |
804 | } | |
185d7c3e RD |
805 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
806 | #endif | |
f6bcfd97 BP |
807 | } |
808 | { | |
809 | wxPy_BEGIN_ALLOW_THREADS; | |
810 | wxListItem_SetText(_arg0,*_arg1); | |
811 | ||
812 | wxPy_END_ALLOW_THREADS; | |
813 | } Py_INCREF(Py_None); | |
814 | _resultobj = Py_None; | |
815 | { | |
816 | if (_obj1) | |
817 | delete _arg1; | |
818 | } | |
819 | return _resultobj; | |
820 | } | |
821 | ||
822 | #define wxListItem_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0)) | |
823 | static PyObject *_wrap_wxListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
824 | PyObject * _resultobj; | |
825 | wxListItem * _arg0; | |
826 | int _arg1; | |
827 | PyObject * _argo0 = 0; | |
828 | char *_kwnames[] = { "self","image", NULL }; | |
829 | ||
830 | self = self; | |
831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetImage",_kwnames,&_argo0,&_arg1)) | |
832 | return NULL; | |
833 | if (_argo0) { | |
834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetImage. Expected _wxListItem_p."); | |
837 | return NULL; | |
838 | } | |
839 | } | |
840 | { | |
841 | wxPy_BEGIN_ALLOW_THREADS; | |
842 | wxListItem_SetImage(_arg0,_arg1); | |
843 | ||
844 | wxPy_END_ALLOW_THREADS; | |
845 | } Py_INCREF(Py_None); | |
846 | _resultobj = Py_None; | |
847 | return _resultobj; | |
848 | } | |
849 | ||
850 | #define wxListItem_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
851 | static PyObject *_wrap_wxListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
852 | PyObject * _resultobj; | |
853 | wxListItem * _arg0; | |
854 | long _arg1; | |
855 | PyObject * _argo0 = 0; | |
856 | char *_kwnames[] = { "self","data", NULL }; | |
857 | ||
858 | self = self; | |
859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetData",_kwnames,&_argo0,&_arg1)) | |
860 | return NULL; | |
861 | if (_argo0) { | |
862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetData. Expected _wxListItem_p."); | |
865 | return NULL; | |
866 | } | |
867 | } | |
868 | { | |
869 | wxPy_BEGIN_ALLOW_THREADS; | |
870 | wxListItem_SetData(_arg0,_arg1); | |
871 | ||
872 | wxPy_END_ALLOW_THREADS; | |
873 | } Py_INCREF(Py_None); | |
874 | _resultobj = Py_None; | |
875 | return _resultobj; | |
876 | } | |
877 | ||
878 | #define wxListItem_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
879 | static PyObject *_wrap_wxListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
880 | PyObject * _resultobj; | |
881 | wxListItem * _arg0; | |
882 | int _arg1; | |
883 | PyObject * _argo0 = 0; | |
884 | char *_kwnames[] = { "self","width", NULL }; | |
885 | ||
886 | self = self; | |
887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetWidth",_kwnames,&_argo0,&_arg1)) | |
888 | return NULL; | |
889 | if (_argo0) { | |
890 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
891 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetWidth. Expected _wxListItem_p."); | |
893 | return NULL; | |
894 | } | |
895 | } | |
896 | { | |
897 | wxPy_BEGIN_ALLOW_THREADS; | |
898 | wxListItem_SetWidth(_arg0,_arg1); | |
899 | ||
900 | wxPy_END_ALLOW_THREADS; | |
901 | } Py_INCREF(Py_None); | |
902 | _resultobj = Py_None; | |
903 | return _resultobj; | |
904 | } | |
905 | ||
906 | #define wxListItem_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0)) | |
907 | static PyObject *_wrap_wxListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
908 | PyObject * _resultobj; | |
909 | wxListItem * _arg0; | |
910 | wxListColumnFormat _arg1; | |
911 | PyObject * _argo0 = 0; | |
912 | char *_kwnames[] = { "self","align", NULL }; | |
913 | ||
914 | self = self; | |
915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetAlign",_kwnames,&_argo0,&_arg1)) | |
916 | return NULL; | |
917 | if (_argo0) { | |
918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetAlign. Expected _wxListItem_p."); | |
921 | return NULL; | |
922 | } | |
923 | } | |
924 | { | |
925 | wxPy_BEGIN_ALLOW_THREADS; | |
926 | wxListItem_SetAlign(_arg0,_arg1); | |
927 | ||
928 | wxPy_END_ALLOW_THREADS; | |
929 | } Py_INCREF(Py_None); | |
930 | _resultobj = Py_None; | |
931 | return _resultobj; | |
932 | } | |
933 | ||
934 | #define wxListItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
935 | static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
936 | PyObject * _resultobj; | |
937 | wxListItem * _arg0; | |
938 | wxColour * _arg1; | |
939 | PyObject * _argo0 = 0; | |
940 | wxColour temp; | |
941 | PyObject * _obj1 = 0; | |
942 | char *_kwnames[] = { "self","colText", NULL }; | |
943 | ||
944 | self = self; | |
945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
946 | return NULL; | |
947 | if (_argo0) { | |
948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetTextColour. Expected _wxListItem_p."); | |
951 | return NULL; | |
952 | } | |
953 | } | |
954 | { | |
955 | _arg1 = &temp; | |
956 | if (! wxColour_helper(_obj1, &_arg1)) | |
957 | return NULL; | |
958 | } | |
959 | { | |
960 | wxPy_BEGIN_ALLOW_THREADS; | |
961 | wxListItem_SetTextColour(_arg0,*_arg1); | |
962 | ||
963 | wxPy_END_ALLOW_THREADS; | |
964 | } Py_INCREF(Py_None); | |
965 | _resultobj = Py_None; | |
966 | return _resultobj; | |
967 | } | |
968 | ||
969 | #define wxListItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
970 | static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
971 | PyObject * _resultobj; | |
972 | wxListItem * _arg0; | |
973 | wxColour * _arg1; | |
974 | PyObject * _argo0 = 0; | |
975 | wxColour temp; | |
976 | PyObject * _obj1 = 0; | |
977 | char *_kwnames[] = { "self","colBack", NULL }; | |
978 | ||
979 | self = self; | |
980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
981 | return NULL; | |
982 | if (_argo0) { | |
983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetBackgroundColour. Expected _wxListItem_p."); | |
986 | return NULL; | |
987 | } | |
988 | } | |
989 | { | |
990 | _arg1 = &temp; | |
991 | if (! wxColour_helper(_obj1, &_arg1)) | |
992 | return NULL; | |
993 | } | |
994 | { | |
995 | wxPy_BEGIN_ALLOW_THREADS; | |
996 | wxListItem_SetBackgroundColour(_arg0,*_arg1); | |
997 | ||
998 | wxPy_END_ALLOW_THREADS; | |
999 | } Py_INCREF(Py_None); | |
1000 | _resultobj = Py_None; | |
1001 | return _resultobj; | |
1002 | } | |
1003 | ||
1004 | #define wxListItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1005 | static PyObject *_wrap_wxListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1006 | PyObject * _resultobj; | |
1007 | wxListItem * _arg0; | |
1008 | wxFont * _arg1; | |
1009 | PyObject * _argo0 = 0; | |
1010 | PyObject * _argo1 = 0; | |
1011 | char *_kwnames[] = { "self","font", NULL }; | |
1012 | ||
1013 | self = self; | |
1014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
1015 | return NULL; | |
1016 | if (_argo0) { | |
1017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetFont. Expected _wxListItem_p."); | |
1020 | return NULL; | |
1021 | } | |
1022 | } | |
1023 | if (_argo1) { | |
1024 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1025 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
1026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetFont. Expected _wxFont_p."); | |
1027 | return NULL; | |
1028 | } | |
1029 | } | |
1030 | { | |
1031 | wxPy_BEGIN_ALLOW_THREADS; | |
1032 | wxListItem_SetFont(_arg0,*_arg1); | |
1033 | ||
1034 | wxPy_END_ALLOW_THREADS; | |
1035 | } Py_INCREF(Py_None); | |
1036 | _resultobj = Py_None; | |
1037 | return _resultobj; | |
1038 | } | |
1039 | ||
1040 | #define wxListItem_GetMask(_swigobj) (_swigobj->GetMask()) | |
1041 | static PyObject *_wrap_wxListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1042 | PyObject * _resultobj; | |
1043 | long _result; | |
1044 | wxListItem * _arg0; | |
1045 | PyObject * _argo0 = 0; | |
1046 | char *_kwnames[] = { "self", NULL }; | |
1047 | ||
1048 | self = self; | |
1049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetMask",_kwnames,&_argo0)) | |
1050 | return NULL; | |
1051 | if (_argo0) { | |
1052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetMask. Expected _wxListItem_p."); | |
1055 | return NULL; | |
1056 | } | |
1057 | } | |
1058 | { | |
1059 | wxPy_BEGIN_ALLOW_THREADS; | |
1060 | _result = (long )wxListItem_GetMask(_arg0); | |
1061 | ||
1062 | wxPy_END_ALLOW_THREADS; | |
1063 | } _resultobj = Py_BuildValue("l",_result); | |
1064 | return _resultobj; | |
1065 | } | |
1066 | ||
1067 | #define wxListItem_GetId(_swigobj) (_swigobj->GetId()) | |
1068 | static PyObject *_wrap_wxListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1069 | PyObject * _resultobj; | |
1070 | long _result; | |
1071 | wxListItem * _arg0; | |
1072 | PyObject * _argo0 = 0; | |
1073 | char *_kwnames[] = { "self", NULL }; | |
1074 | ||
1075 | self = self; | |
1076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetId",_kwnames,&_argo0)) | |
1077 | return NULL; | |
1078 | if (_argo0) { | |
1079 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1080 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetId. Expected _wxListItem_p."); | |
1082 | return NULL; | |
1083 | } | |
1084 | } | |
1085 | { | |
1086 | wxPy_BEGIN_ALLOW_THREADS; | |
1087 | _result = (long )wxListItem_GetId(_arg0); | |
1088 | ||
1089 | wxPy_END_ALLOW_THREADS; | |
1090 | } _resultobj = Py_BuildValue("l",_result); | |
1091 | return _resultobj; | |
1092 | } | |
1093 | ||
1094 | #define wxListItem_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
1095 | static PyObject *_wrap_wxListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1096 | PyObject * _resultobj; | |
1097 | int _result; | |
1098 | wxListItem * _arg0; | |
1099 | PyObject * _argo0 = 0; | |
1100 | char *_kwnames[] = { "self", NULL }; | |
1101 | ||
1102 | self = self; | |
1103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetColumn",_kwnames,&_argo0)) | |
1104 | return NULL; | |
1105 | if (_argo0) { | |
1106 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1107 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetColumn. Expected _wxListItem_p."); | |
1109 | return NULL; | |
1110 | } | |
1111 | } | |
1112 | { | |
1113 | wxPy_BEGIN_ALLOW_THREADS; | |
1114 | _result = (int )wxListItem_GetColumn(_arg0); | |
1115 | ||
1116 | wxPy_END_ALLOW_THREADS; | |
1117 | } _resultobj = Py_BuildValue("i",_result); | |
1118 | return _resultobj; | |
1119 | } | |
1120 | ||
1121 | #define wxListItem_GetState(_swigobj) (_swigobj->GetState()) | |
1122 | static PyObject *_wrap_wxListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1123 | PyObject * _resultobj; | |
1124 | long _result; | |
1125 | wxListItem * _arg0; | |
1126 | PyObject * _argo0 = 0; | |
1127 | char *_kwnames[] = { "self", NULL }; | |
1128 | ||
1129 | self = self; | |
1130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetState",_kwnames,&_argo0)) | |
1131 | return NULL; | |
1132 | if (_argo0) { | |
1133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetState. Expected _wxListItem_p."); | |
1136 | return NULL; | |
1137 | } | |
1138 | } | |
1139 | { | |
1140 | wxPy_BEGIN_ALLOW_THREADS; | |
1141 | _result = (long )wxListItem_GetState(_arg0); | |
1142 | ||
1143 | wxPy_END_ALLOW_THREADS; | |
1144 | } _resultobj = Py_BuildValue("l",_result); | |
1145 | return _resultobj; | |
1146 | } | |
1147 | ||
1148 | #define wxListItem_GetText(_swigobj) (_swigobj->GetText()) | |
1149 | static PyObject *_wrap_wxListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1150 | PyObject * _resultobj; | |
1151 | wxString * _result; | |
1152 | wxListItem * _arg0; | |
1153 | PyObject * _argo0 = 0; | |
1154 | char *_kwnames[] = { "self", NULL }; | |
1155 | ||
1156 | self = self; | |
1157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetText",_kwnames,&_argo0)) | |
1158 | return NULL; | |
1159 | if (_argo0) { | |
1160 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1161 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1162 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetText. Expected _wxListItem_p."); | |
1163 | return NULL; | |
1164 | } | |
1165 | } | |
1166 | { | |
1167 | wxPy_BEGIN_ALLOW_THREADS; | |
1168 | const wxString & _result_ref = wxListItem_GetText(_arg0); | |
1169 | _result = (wxString *) &_result_ref; | |
1170 | ||
1171 | wxPy_END_ALLOW_THREADS; | |
1172 | }{ | |
1173 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1174 | } | |
1175 | return _resultobj; | |
1176 | } | |
1177 | ||
1178 | #define wxListItem_GetImage(_swigobj) (_swigobj->GetImage()) | |
1179 | static PyObject *_wrap_wxListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1180 | PyObject * _resultobj; | |
1181 | int _result; | |
1182 | wxListItem * _arg0; | |
1183 | PyObject * _argo0 = 0; | |
1184 | char *_kwnames[] = { "self", NULL }; | |
1185 | ||
1186 | self = self; | |
1187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetImage",_kwnames,&_argo0)) | |
1188 | return NULL; | |
1189 | if (_argo0) { | |
1190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1191 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetImage. Expected _wxListItem_p."); | |
1193 | return NULL; | |
1194 | } | |
1195 | } | |
1196 | { | |
1197 | wxPy_BEGIN_ALLOW_THREADS; | |
1198 | _result = (int )wxListItem_GetImage(_arg0); | |
1199 | ||
1200 | wxPy_END_ALLOW_THREADS; | |
1201 | } _resultobj = Py_BuildValue("i",_result); | |
1202 | return _resultobj; | |
1203 | } | |
1204 | ||
1205 | #define wxListItem_GetData(_swigobj) (_swigobj->GetData()) | |
1206 | static PyObject *_wrap_wxListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1207 | PyObject * _resultobj; | |
1208 | long _result; | |
1209 | wxListItem * _arg0; | |
1210 | PyObject * _argo0 = 0; | |
1211 | char *_kwnames[] = { "self", NULL }; | |
1212 | ||
1213 | self = self; | |
1214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetData",_kwnames,&_argo0)) | |
1215 | return NULL; | |
1216 | if (_argo0) { | |
1217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetData. Expected _wxListItem_p."); | |
1220 | return NULL; | |
1221 | } | |
1222 | } | |
1223 | { | |
1224 | wxPy_BEGIN_ALLOW_THREADS; | |
1225 | _result = (long )wxListItem_GetData(_arg0); | |
1226 | ||
1227 | wxPy_END_ALLOW_THREADS; | |
1228 | } _resultobj = Py_BuildValue("l",_result); | |
1229 | return _resultobj; | |
1230 | } | |
1231 | ||
1232 | #define wxListItem_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1233 | static PyObject *_wrap_wxListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1234 | PyObject * _resultobj; | |
1235 | int _result; | |
1236 | wxListItem * _arg0; | |
1237 | PyObject * _argo0 = 0; | |
1238 | char *_kwnames[] = { "self", NULL }; | |
1239 | ||
1240 | self = self; | |
1241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetWidth",_kwnames,&_argo0)) | |
1242 | return NULL; | |
1243 | if (_argo0) { | |
1244 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1245 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetWidth. Expected _wxListItem_p."); | |
1247 | return NULL; | |
1248 | } | |
1249 | } | |
1250 | { | |
1251 | wxPy_BEGIN_ALLOW_THREADS; | |
1252 | _result = (int )wxListItem_GetWidth(_arg0); | |
1253 | ||
1254 | wxPy_END_ALLOW_THREADS; | |
1255 | } _resultobj = Py_BuildValue("i",_result); | |
1256 | return _resultobj; | |
1257 | } | |
1258 | ||
1259 | #define wxListItem_GetAlign(_swigobj) (_swigobj->GetAlign()) | |
1260 | static PyObject *_wrap_wxListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1261 | PyObject * _resultobj; | |
1262 | wxListColumnFormat _result; | |
1263 | wxListItem * _arg0; | |
1264 | PyObject * _argo0 = 0; | |
1265 | char *_kwnames[] = { "self", NULL }; | |
1266 | ||
1267 | self = self; | |
1268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAlign",_kwnames,&_argo0)) | |
1269 | return NULL; | |
1270 | if (_argo0) { | |
1271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAlign. Expected _wxListItem_p."); | |
1274 | return NULL; | |
1275 | } | |
1276 | } | |
1277 | { | |
1278 | wxPy_BEGIN_ALLOW_THREADS; | |
1279 | _result = (wxListColumnFormat )wxListItem_GetAlign(_arg0); | |
1280 | ||
1281 | wxPy_END_ALLOW_THREADS; | |
1282 | } _resultobj = Py_BuildValue("i",_result); | |
1283 | return _resultobj; | |
1284 | } | |
1285 | ||
1286 | #define wxListItem_GetAttributes(_swigobj) (_swigobj->GetAttributes()) | |
1287 | static PyObject *_wrap_wxListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1288 | PyObject * _resultobj; | |
1289 | wxListItemAttr * _result; | |
1290 | wxListItem * _arg0; | |
1291 | PyObject * _argo0 = 0; | |
1292 | char *_kwnames[] = { "self", NULL }; | |
1293 | char _ptemp[128]; | |
1294 | ||
1295 | self = self; | |
1296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAttributes",_kwnames,&_argo0)) | |
1297 | return NULL; | |
1298 | if (_argo0) { | |
1299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAttributes. Expected _wxListItem_p."); | |
1302 | return NULL; | |
1303 | } | |
1304 | } | |
1305 | { | |
1306 | wxPy_BEGIN_ALLOW_THREADS; | |
1307 | _result = (wxListItemAttr *)wxListItem_GetAttributes(_arg0); | |
1308 | ||
1309 | wxPy_END_ALLOW_THREADS; | |
1310 | } if (_result) { | |
1311 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
1312 | _resultobj = Py_BuildValue("s",_ptemp); | |
1313 | } else { | |
1314 | Py_INCREF(Py_None); | |
1315 | _resultobj = Py_None; | |
1316 | } | |
1317 | return _resultobj; | |
1318 | } | |
1319 | ||
1320 | #define wxListItem_HasAttributes(_swigobj) (_swigobj->HasAttributes()) | |
1321 | static PyObject *_wrap_wxListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1322 | PyObject * _resultobj; | |
1323 | bool _result; | |
1324 | wxListItem * _arg0; | |
1325 | PyObject * _argo0 = 0; | |
1326 | char *_kwnames[] = { "self", NULL }; | |
1327 | ||
1328 | self = self; | |
1329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_HasAttributes",_kwnames,&_argo0)) | |
1330 | return NULL; | |
1331 | if (_argo0) { | |
1332 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1333 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_HasAttributes. Expected _wxListItem_p."); | |
1335 | return NULL; | |
1336 | } | |
1337 | } | |
1338 | { | |
1339 | wxPy_BEGIN_ALLOW_THREADS; | |
1340 | _result = (bool )wxListItem_HasAttributes(_arg0); | |
1341 | ||
1342 | wxPy_END_ALLOW_THREADS; | |
1343 | } _resultobj = Py_BuildValue("i",_result); | |
1344 | return _resultobj; | |
1345 | } | |
1346 | ||
1347 | #define wxListItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
1348 | static PyObject *_wrap_wxListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1349 | PyObject * _resultobj; | |
1350 | wxColour * _result; | |
1351 | wxListItem * _arg0; | |
1352 | PyObject * _argo0 = 0; | |
1353 | char *_kwnames[] = { "self", NULL }; | |
1354 | char _ptemp[128]; | |
1355 | ||
1356 | self = self; | |
1357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetTextColour",_kwnames,&_argo0)) | |
1358 | return NULL; | |
1359 | if (_argo0) { | |
1360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetTextColour. Expected _wxListItem_p."); | |
1363 | return NULL; | |
1364 | } | |
1365 | } | |
1366 | { | |
1367 | wxPy_BEGIN_ALLOW_THREADS; | |
1368 | _result = new wxColour (wxListItem_GetTextColour(_arg0)); | |
1369 | ||
1370 | wxPy_END_ALLOW_THREADS; | |
1371 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1372 | _resultobj = Py_BuildValue("s",_ptemp); | |
1373 | return _resultobj; | |
1374 | } | |
1375 | ||
1376 | #define wxListItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1377 | static PyObject *_wrap_wxListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1378 | PyObject * _resultobj; | |
1379 | wxColour * _result; | |
1380 | wxListItem * _arg0; | |
1381 | PyObject * _argo0 = 0; | |
1382 | char *_kwnames[] = { "self", NULL }; | |
1383 | char _ptemp[128]; | |
1384 | ||
1385 | self = self; | |
1386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetBackgroundColour",_kwnames,&_argo0)) | |
1387 | return NULL; | |
1388 | if (_argo0) { | |
1389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetBackgroundColour. Expected _wxListItem_p."); | |
1392 | return NULL; | |
1393 | } | |
1394 | } | |
1395 | { | |
1396 | wxPy_BEGIN_ALLOW_THREADS; | |
1397 | _result = new wxColour (wxListItem_GetBackgroundColour(_arg0)); | |
1398 | ||
1399 | wxPy_END_ALLOW_THREADS; | |
1400 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1401 | _resultobj = Py_BuildValue("s",_ptemp); | |
1402 | return _resultobj; | |
1403 | } | |
1404 | ||
1405 | #define wxListItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
1406 | static PyObject *_wrap_wxListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1407 | PyObject * _resultobj; | |
1408 | wxFont * _result; | |
1409 | wxListItem * _arg0; | |
1410 | PyObject * _argo0 = 0; | |
1411 | char *_kwnames[] = { "self", NULL }; | |
1412 | char _ptemp[128]; | |
1413 | ||
1414 | self = self; | |
1415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetFont",_kwnames,&_argo0)) | |
1416 | return NULL; | |
1417 | if (_argo0) { | |
1418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetFont. Expected _wxListItem_p."); | |
1421 | return NULL; | |
1422 | } | |
1423 | } | |
1424 | { | |
1425 | wxPy_BEGIN_ALLOW_THREADS; | |
1426 | _result = new wxFont (wxListItem_GetFont(_arg0)); | |
1427 | ||
1428 | wxPy_END_ALLOW_THREADS; | |
1429 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
1430 | _resultobj = Py_BuildValue("s",_ptemp); | |
1431 | return _resultobj; | |
1432 | } | |
1433 | ||
1434 | #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval) | |
1435 | static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1436 | PyObject * _resultobj; | |
1437 | long _result; | |
1438 | wxListItem * _arg0; | |
1439 | long _arg1; | |
1440 | PyObject * _argo0 = 0; | |
1441 | char *_kwnames[] = { "self","m_mask", NULL }; | |
1442 | ||
1443 | self = self; | |
1444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1)) | |
1445 | return NULL; | |
1446 | if (_argo0) { | |
1447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p."); | |
1450 | return NULL; | |
1451 | } | |
1452 | } | |
1453 | { | |
1454 | wxPy_BEGIN_ALLOW_THREADS; | |
1455 | _result = (long )wxListItem_m_mask_set(_arg0,_arg1); | |
1456 | ||
1457 | wxPy_END_ALLOW_THREADS; | |
1458 | } _resultobj = Py_BuildValue("l",_result); | |
1459 | return _resultobj; | |
1460 | } | |
1461 | ||
1462 | #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask) | |
1463 | static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1464 | PyObject * _resultobj; | |
1465 | long _result; | |
1466 | wxListItem * _arg0; | |
1467 | PyObject * _argo0 = 0; | |
1468 | char *_kwnames[] = { "self", NULL }; | |
1469 | ||
1470 | self = self; | |
1471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0)) | |
1472 | return NULL; | |
1473 | if (_argo0) { | |
1474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p."); | |
1477 | return NULL; | |
1478 | } | |
1479 | } | |
1480 | { | |
1481 | wxPy_BEGIN_ALLOW_THREADS; | |
1482 | _result = (long )wxListItem_m_mask_get(_arg0); | |
1483 | ||
1484 | wxPy_END_ALLOW_THREADS; | |
1485 | } _resultobj = Py_BuildValue("l",_result); | |
1486 | return _resultobj; | |
1487 | } | |
1488 | ||
1489 | #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval) | |
1490 | static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1491 | PyObject * _resultobj; | |
1492 | long _result; | |
1493 | wxListItem * _arg0; | |
1494 | long _arg1; | |
1495 | PyObject * _argo0 = 0; | |
1496 | char *_kwnames[] = { "self","m_itemId", NULL }; | |
1497 | ||
1498 | self = self; | |
1499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1)) | |
1500 | return NULL; | |
1501 | if (_argo0) { | |
1502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p."); | |
1505 | return NULL; | |
1506 | } | |
1507 | } | |
1508 | { | |
1509 | wxPy_BEGIN_ALLOW_THREADS; | |
1510 | _result = (long )wxListItem_m_itemId_set(_arg0,_arg1); | |
1511 | ||
1512 | wxPy_END_ALLOW_THREADS; | |
1513 | } _resultobj = Py_BuildValue("l",_result); | |
1514 | return _resultobj; | |
1515 | } | |
1516 | ||
1517 | #define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId) | |
1518 | static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1519 | PyObject * _resultobj; | |
1520 | long _result; | |
1521 | wxListItem * _arg0; | |
1522 | PyObject * _argo0 = 0; | |
1523 | char *_kwnames[] = { "self", NULL }; | |
1524 | ||
1525 | self = self; | |
1526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0)) | |
1527 | return NULL; | |
1528 | if (_argo0) { | |
1529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p."); | |
1532 | return NULL; | |
1533 | } | |
1534 | } | |
1535 | { | |
1536 | wxPy_BEGIN_ALLOW_THREADS; | |
1537 | _result = (long )wxListItem_m_itemId_get(_arg0); | |
1538 | ||
1539 | wxPy_END_ALLOW_THREADS; | |
1540 | } _resultobj = Py_BuildValue("l",_result); | |
1541 | return _resultobj; | |
1542 | } | |
1543 | ||
1544 | #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
1545 | static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1546 | PyObject * _resultobj; | |
1547 | int _result; | |
1548 | wxListItem * _arg0; | |
1549 | int _arg1; | |
1550 | PyObject * _argo0 = 0; | |
1551 | char *_kwnames[] = { "self","m_col", NULL }; | |
1552 | ||
1553 | self = self; | |
1554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1)) | |
1555 | return NULL; | |
1556 | if (_argo0) { | |
1557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p."); | |
1560 | return NULL; | |
1561 | } | |
1562 | } | |
1563 | { | |
1564 | wxPy_BEGIN_ALLOW_THREADS; | |
1565 | _result = (int )wxListItem_m_col_set(_arg0,_arg1); | |
1566 | ||
1567 | wxPy_END_ALLOW_THREADS; | |
1568 | } _resultobj = Py_BuildValue("i",_result); | |
1569 | return _resultobj; | |
1570 | } | |
1571 | ||
1572 | #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
1573 | static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1574 | PyObject * _resultobj; | |
1575 | int _result; | |
1576 | wxListItem * _arg0; | |
1577 | PyObject * _argo0 = 0; | |
1578 | char *_kwnames[] = { "self", NULL }; | |
1579 | ||
1580 | self = self; | |
1581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0)) | |
1582 | return NULL; | |
1583 | if (_argo0) { | |
1584 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1585 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p."); | |
1587 | return NULL; | |
1588 | } | |
1589 | } | |
1590 | { | |
1591 | wxPy_BEGIN_ALLOW_THREADS; | |
1592 | _result = (int )wxListItem_m_col_get(_arg0); | |
1593 | ||
1594 | wxPy_END_ALLOW_THREADS; | |
1595 | } _resultobj = Py_BuildValue("i",_result); | |
1596 | return _resultobj; | |
1597 | } | |
1598 | ||
1599 | #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval) | |
1600 | static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1601 | PyObject * _resultobj; | |
1602 | long _result; | |
1603 | wxListItem * _arg0; | |
1604 | long _arg1; | |
1605 | PyObject * _argo0 = 0; | |
1606 | char *_kwnames[] = { "self","m_state", NULL }; | |
1607 | ||
1608 | self = self; | |
1609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1)) | |
1610 | return NULL; | |
1611 | if (_argo0) { | |
1612 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1613 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1614 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p."); | |
1615 | return NULL; | |
1616 | } | |
1617 | } | |
1618 | { | |
1619 | wxPy_BEGIN_ALLOW_THREADS; | |
1620 | _result = (long )wxListItem_m_state_set(_arg0,_arg1); | |
1621 | ||
1622 | wxPy_END_ALLOW_THREADS; | |
1623 | } _resultobj = Py_BuildValue("l",_result); | |
1624 | return _resultobj; | |
1625 | } | |
1626 | ||
1627 | #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state) | |
1628 | static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1629 | PyObject * _resultobj; | |
1630 | long _result; | |
1631 | wxListItem * _arg0; | |
1632 | PyObject * _argo0 = 0; | |
1633 | char *_kwnames[] = { "self", NULL }; | |
1634 | ||
1635 | self = self; | |
1636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0)) | |
1637 | return NULL; | |
1638 | if (_argo0) { | |
1639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p."); | |
1642 | return NULL; | |
1643 | } | |
1644 | } | |
1645 | { | |
1646 | wxPy_BEGIN_ALLOW_THREADS; | |
1647 | _result = (long )wxListItem_m_state_get(_arg0); | |
1648 | ||
1649 | wxPy_END_ALLOW_THREADS; | |
1650 | } _resultobj = Py_BuildValue("l",_result); | |
1651 | return _resultobj; | |
1652 | } | |
1653 | ||
1654 | #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval) | |
1655 | static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1656 | PyObject * _resultobj; | |
1657 | long _result; | |
1658 | wxListItem * _arg0; | |
1659 | long _arg1; | |
1660 | PyObject * _argo0 = 0; | |
1661 | char *_kwnames[] = { "self","m_stateMask", NULL }; | |
1662 | ||
1663 | self = self; | |
1664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1)) | |
1665 | return NULL; | |
1666 | if (_argo0) { | |
1667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p."); | |
1670 | return NULL; | |
1671 | } | |
1672 | } | |
1673 | { | |
1674 | wxPy_BEGIN_ALLOW_THREADS; | |
1675 | _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1); | |
1676 | ||
1677 | wxPy_END_ALLOW_THREADS; | |
1678 | } _resultobj = Py_BuildValue("l",_result); | |
1679 | return _resultobj; | |
1680 | } | |
1681 | ||
1682 | #define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask) | |
1683 | static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1684 | PyObject * _resultobj; | |
1685 | long _result; | |
1686 | wxListItem * _arg0; | |
1687 | PyObject * _argo0 = 0; | |
1688 | char *_kwnames[] = { "self", NULL }; | |
1689 | ||
1690 | self = self; | |
1691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0)) | |
1692 | return NULL; | |
1693 | if (_argo0) { | |
1694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p."); | |
1697 | return NULL; | |
1698 | } | |
1699 | } | |
1700 | { | |
1701 | wxPy_BEGIN_ALLOW_THREADS; | |
1702 | _result = (long )wxListItem_m_stateMask_get(_arg0); | |
1703 | ||
1704 | wxPy_END_ALLOW_THREADS; | |
1705 | } _resultobj = Py_BuildValue("l",_result); | |
1706 | return _resultobj; | |
1707 | } | |
1708 | ||
1709 | #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval) | |
1710 | static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1711 | PyObject * _resultobj; | |
1712 | wxString * _result; | |
1713 | wxListItem * _arg0; | |
1714 | wxString * _arg1; | |
1715 | PyObject * _argo0 = 0; | |
1716 | PyObject * _obj1 = 0; | |
1717 | char *_kwnames[] = { "self","m_text", NULL }; | |
1718 | ||
1719 | self = self; | |
1720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1)) | |
1721 | return NULL; | |
1722 | if (_argo0) { | |
1723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p."); | |
1726 | return NULL; | |
1727 | } | |
1728 | } | |
1729 | { | |
185d7c3e RD |
1730 | #if PYTHON_API_VERSION >= 1009 |
1731 | char* tmpPtr; int tmpSize; | |
1732 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1733 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1734 | return NULL; |
1735 | } | |
1736 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1737 | return NULL; | |
1738 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1739 | #else | |
f6bcfd97 BP |
1740 | if (!PyString_Check(_obj1)) { |
1741 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1742 | return NULL; | |
1743 | } | |
185d7c3e RD |
1744 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1745 | #endif | |
f6bcfd97 BP |
1746 | } |
1747 | { | |
1748 | wxPy_BEGIN_ALLOW_THREADS; | |
1749 | _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1); | |
1750 | ||
1751 | wxPy_END_ALLOW_THREADS; | |
1752 | }{ | |
1753 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1754 | } | |
1755 | { | |
1756 | if (_obj1) | |
1757 | delete _arg1; | |
1758 | } | |
1759 | return _resultobj; | |
1760 | } | |
1761 | ||
1762 | #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text) | |
1763 | static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1764 | PyObject * _resultobj; | |
1765 | wxString * _result; | |
1766 | wxListItem * _arg0; | |
1767 | PyObject * _argo0 = 0; | |
1768 | char *_kwnames[] = { "self", NULL }; | |
1769 | ||
1770 | self = self; | |
1771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0)) | |
1772 | return NULL; | |
1773 | if (_argo0) { | |
1774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p."); | |
1777 | return NULL; | |
1778 | } | |
1779 | } | |
1780 | { | |
1781 | wxPy_BEGIN_ALLOW_THREADS; | |
1782 | _result = (wxString *)wxListItem_m_text_get(_arg0); | |
1783 | ||
1784 | wxPy_END_ALLOW_THREADS; | |
1785 | }{ | |
1786 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1787 | } | |
1788 | return _resultobj; | |
1789 | } | |
1790 | ||
1791 | #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval) | |
1792 | static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1793 | PyObject * _resultobj; | |
1794 | int _result; | |
1795 | wxListItem * _arg0; | |
1796 | int _arg1; | |
1797 | PyObject * _argo0 = 0; | |
1798 | char *_kwnames[] = { "self","m_image", NULL }; | |
1799 | ||
1800 | self = self; | |
1801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1)) | |
1802 | return NULL; | |
1803 | if (_argo0) { | |
1804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p."); | |
1807 | return NULL; | |
1808 | } | |
1809 | } | |
1810 | { | |
1811 | wxPy_BEGIN_ALLOW_THREADS; | |
1812 | _result = (int )wxListItem_m_image_set(_arg0,_arg1); | |
1813 | ||
1814 | wxPy_END_ALLOW_THREADS; | |
1815 | } _resultobj = Py_BuildValue("i",_result); | |
1816 | return _resultobj; | |
1817 | } | |
1818 | ||
1819 | #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image) | |
1820 | static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1821 | PyObject * _resultobj; | |
1822 | int _result; | |
1823 | wxListItem * _arg0; | |
1824 | PyObject * _argo0 = 0; | |
1825 | char *_kwnames[] = { "self", NULL }; | |
1826 | ||
1827 | self = self; | |
1828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0)) | |
1829 | return NULL; | |
1830 | if (_argo0) { | |
1831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p."); | |
1834 | return NULL; | |
1835 | } | |
1836 | } | |
1837 | { | |
1838 | wxPy_BEGIN_ALLOW_THREADS; | |
1839 | _result = (int )wxListItem_m_image_get(_arg0); | |
1840 | ||
1841 | wxPy_END_ALLOW_THREADS; | |
1842 | } _resultobj = Py_BuildValue("i",_result); | |
1843 | return _resultobj; | |
1844 | } | |
1845 | ||
1846 | #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval) | |
1847 | static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1848 | PyObject * _resultobj; | |
1849 | long _result; | |
1850 | wxListItem * _arg0; | |
1851 | long _arg1; | |
1852 | PyObject * _argo0 = 0; | |
1853 | char *_kwnames[] = { "self","m_data", NULL }; | |
1854 | ||
1855 | self = self; | |
1856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1)) | |
1857 | return NULL; | |
1858 | if (_argo0) { | |
1859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p."); | |
1862 | return NULL; | |
1863 | } | |
1864 | } | |
1865 | { | |
1866 | wxPy_BEGIN_ALLOW_THREADS; | |
1867 | _result = (long )wxListItem_m_data_set(_arg0,_arg1); | |
1868 | ||
1869 | wxPy_END_ALLOW_THREADS; | |
1870 | } _resultobj = Py_BuildValue("l",_result); | |
1871 | return _resultobj; | |
1872 | } | |
1873 | ||
1874 | #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data) | |
1875 | static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1876 | PyObject * _resultobj; | |
1877 | long _result; | |
1878 | wxListItem * _arg0; | |
1879 | PyObject * _argo0 = 0; | |
1880 | char *_kwnames[] = { "self", NULL }; | |
1881 | ||
1882 | self = self; | |
1883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0)) | |
1884 | return NULL; | |
1885 | if (_argo0) { | |
1886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p."); | |
1889 | return NULL; | |
1890 | } | |
1891 | } | |
1892 | { | |
1893 | wxPy_BEGIN_ALLOW_THREADS; | |
1894 | _result = (long )wxListItem_m_data_get(_arg0); | |
1895 | ||
1896 | wxPy_END_ALLOW_THREADS; | |
1897 | } _resultobj = Py_BuildValue("l",_result); | |
1898 | return _resultobj; | |
1899 | } | |
1900 | ||
1901 | #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval) | |
1902 | static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1903 | PyObject * _resultobj; | |
1904 | int _result; | |
1905 | wxListItem * _arg0; | |
1906 | int _arg1; | |
1907 | PyObject * _argo0 = 0; | |
1908 | char *_kwnames[] = { "self","m_format", NULL }; | |
1909 | ||
1910 | self = self; | |
1911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1)) | |
1912 | return NULL; | |
1913 | if (_argo0) { | |
1914 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1915 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p."); | |
1917 | return NULL; | |
1918 | } | |
1919 | } | |
1920 | { | |
1921 | wxPy_BEGIN_ALLOW_THREADS; | |
1922 | _result = (int )wxListItem_m_format_set(_arg0,_arg1); | |
1923 | ||
1924 | wxPy_END_ALLOW_THREADS; | |
1925 | } _resultobj = Py_BuildValue("i",_result); | |
1926 | return _resultobj; | |
1927 | } | |
1928 | ||
1929 | #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format) | |
1930 | static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1931 | PyObject * _resultobj; | |
1932 | int _result; | |
1933 | wxListItem * _arg0; | |
1934 | PyObject * _argo0 = 0; | |
1935 | char *_kwnames[] = { "self", NULL }; | |
1936 | ||
1937 | self = self; | |
1938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0)) | |
1939 | return NULL; | |
1940 | if (_argo0) { | |
1941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p."); | |
1944 | return NULL; | |
1945 | } | |
1946 | } | |
1947 | { | |
1948 | wxPy_BEGIN_ALLOW_THREADS; | |
1949 | _result = (int )wxListItem_m_format_get(_arg0); | |
1950 | ||
1951 | wxPy_END_ALLOW_THREADS; | |
1952 | } _resultobj = Py_BuildValue("i",_result); | |
1953 | return _resultobj; | |
8ab979d7 RD |
1954 | } |
1955 | ||
f6bcfd97 BP |
1956 | #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval) |
1957 | static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1958 | PyObject * _resultobj; |
f6bcfd97 | 1959 | int _result; |
af309447 | 1960 | wxListItem * _arg0; |
f6bcfd97 | 1961 | int _arg1; |
1d99702e | 1962 | PyObject * _argo0 = 0; |
f6bcfd97 | 1963 | char *_kwnames[] = { "self","m_width", NULL }; |
af309447 RD |
1964 | |
1965 | self = self; | |
f6bcfd97 | 1966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1967 | return NULL; |
1d99702e RD |
1968 | if (_argo0) { |
1969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p."); |
af309447 RD |
1972 | return NULL; |
1973 | } | |
1974 | } | |
cf694132 RD |
1975 | { |
1976 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1977 | _result = (int )wxListItem_m_width_set(_arg0,_arg1); |
cf694132 RD |
1978 | |
1979 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 1980 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
1981 | return _resultobj; |
1982 | } | |
1983 | ||
f6bcfd97 BP |
1984 | #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width) |
1985 | static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1986 | PyObject * _resultobj; |
f6bcfd97 | 1987 | int _result; |
8ab979d7 | 1988 | wxListItem * _arg0; |
1d99702e | 1989 | PyObject * _argo0 = 0; |
efc5f224 | 1990 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1991 | |
1992 | self = self; | |
f6bcfd97 | 1993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0)) |
8ab979d7 | 1994 | return NULL; |
1d99702e RD |
1995 | if (_argo0) { |
1996 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1997 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 BP |
1998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p."); |
1999 | return NULL; | |
2000 | } | |
2001 | } | |
2002 | { | |
2003 | wxPy_BEGIN_ALLOW_THREADS; | |
2004 | _result = (int )wxListItem_m_width_get(_arg0); | |
2005 | ||
2006 | wxPy_END_ALLOW_THREADS; | |
2007 | } _resultobj = Py_BuildValue("i",_result); | |
2008 | return _resultobj; | |
2009 | } | |
2010 | ||
c368d904 RD |
2011 | static void *SwigwxListEventTowxNotifyEvent(void *ptr) { |
2012 | wxListEvent *src; | |
2013 | wxNotifyEvent *dest; | |
2014 | src = (wxListEvent *) ptr; | |
2015 | dest = (wxNotifyEvent *) src; | |
2016 | return (void *) dest; | |
2017 | } | |
2018 | ||
f6bcfd97 BP |
2019 | static void *SwigwxListEventTowxCommandEvent(void *ptr) { |
2020 | wxListEvent *src; | |
2021 | wxCommandEvent *dest; | |
2022 | src = (wxListEvent *) ptr; | |
2023 | dest = (wxCommandEvent *) src; | |
2024 | return (void *) dest; | |
2025 | } | |
2026 | ||
2027 | static void *SwigwxListEventTowxEvent(void *ptr) { | |
2028 | wxListEvent *src; | |
2029 | wxEvent *dest; | |
2030 | src = (wxListEvent *) ptr; | |
2031 | dest = (wxEvent *) src; | |
2032 | return (void *) dest; | |
2033 | } | |
2034 | ||
9416aa89 RD |
2035 | static void *SwigwxListEventTowxObject(void *ptr) { |
2036 | wxListEvent *src; | |
2037 | wxObject *dest; | |
2038 | src = (wxListEvent *) ptr; | |
2039 | dest = (wxObject *) src; | |
2040 | return (void *) dest; | |
2041 | } | |
2042 | ||
f6bcfd97 BP |
2043 | #define wxListEvent_m_code_set(_swigobj,_swigval) (_swigobj->m_code = _swigval,_swigval) |
2044 | static PyObject *_wrap_wxListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2045 | PyObject * _resultobj; | |
2046 | int _result; | |
2047 | wxListEvent * _arg0; | |
2048 | int _arg1; | |
2049 | PyObject * _argo0 = 0; | |
2050 | char *_kwnames[] = { "self","m_code", NULL }; | |
2051 | ||
2052 | self = self; | |
2053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_code_set",_kwnames,&_argo0,&_arg1)) | |
2054 | return NULL; | |
2055 | if (_argo0) { | |
2056 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2057 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_set. Expected _wxListEvent_p."); | |
2059 | return NULL; | |
2060 | } | |
2061 | } | |
2062 | { | |
2063 | wxPy_BEGIN_ALLOW_THREADS; | |
2064 | _result = (int )wxListEvent_m_code_set(_arg0,_arg1); | |
2065 | ||
2066 | wxPy_END_ALLOW_THREADS; | |
2067 | } _resultobj = Py_BuildValue("i",_result); | |
2068 | return _resultobj; | |
2069 | } | |
2070 | ||
2071 | #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code) | |
2072 | static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2073 | PyObject * _resultobj; | |
2074 | int _result; | |
2075 | wxListEvent * _arg0; | |
2076 | PyObject * _argo0 = 0; | |
2077 | char *_kwnames[] = { "self", NULL }; | |
2078 | ||
2079 | self = self; | |
2080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0)) | |
2081 | return NULL; | |
2082 | if (_argo0) { | |
2083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_get. Expected _wxListEvent_p."); | |
2086 | return NULL; | |
2087 | } | |
2088 | } | |
2089 | { | |
2090 | wxPy_BEGIN_ALLOW_THREADS; | |
2091 | _result = (int )wxListEvent_m_code_get(_arg0); | |
2092 | ||
2093 | wxPy_END_ALLOW_THREADS; | |
2094 | } _resultobj = Py_BuildValue("i",_result); | |
2095 | return _resultobj; | |
2096 | } | |
2097 | ||
2098 | #define wxListEvent_m_itemIndex_set(_swigobj,_swigval) (_swigobj->m_itemIndex = _swigval,_swigval) | |
2099 | static PyObject *_wrap_wxListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2100 | PyObject * _resultobj; | |
2101 | long _result; | |
2102 | wxListEvent * _arg0; | |
2103 | long _arg1; | |
2104 | PyObject * _argo0 = 0; | |
2105 | char *_kwnames[] = { "self","m_itemIndex", NULL }; | |
2106 | ||
2107 | self = self; | |
2108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_itemIndex_set",_kwnames,&_argo0,&_arg1)) | |
2109 | return NULL; | |
2110 | if (_argo0) { | |
2111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_set. Expected _wxListEvent_p."); | |
2114 | return NULL; | |
2115 | } | |
2116 | } | |
2117 | { | |
2118 | wxPy_BEGIN_ALLOW_THREADS; | |
2119 | _result = (long )wxListEvent_m_itemIndex_set(_arg0,_arg1); | |
2120 | ||
2121 | wxPy_END_ALLOW_THREADS; | |
2122 | } _resultobj = Py_BuildValue("l",_result); | |
2123 | return _resultobj; | |
2124 | } | |
2125 | ||
2126 | #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex) | |
2127 | static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2128 | PyObject * _resultobj; | |
2129 | long _result; | |
2130 | wxListEvent * _arg0; | |
2131 | PyObject * _argo0 = 0; | |
2132 | char *_kwnames[] = { "self", NULL }; | |
2133 | ||
2134 | self = self; | |
2135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0)) | |
2136 | return NULL; | |
2137 | if (_argo0) { | |
2138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p."); | |
2141 | return NULL; | |
2142 | } | |
2143 | } | |
2144 | { | |
2145 | wxPy_BEGIN_ALLOW_THREADS; | |
2146 | _result = (long )wxListEvent_m_itemIndex_get(_arg0); | |
2147 | ||
2148 | wxPy_END_ALLOW_THREADS; | |
2149 | } _resultobj = Py_BuildValue("l",_result); | |
2150 | return _resultobj; | |
2151 | } | |
2152 | ||
2153 | #define wxListEvent_m_oldItemIndex_set(_swigobj,_swigval) (_swigobj->m_oldItemIndex = _swigval,_swigval) | |
2154 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2155 | PyObject * _resultobj; | |
2156 | long _result; | |
2157 | wxListEvent * _arg0; | |
2158 | long _arg1; | |
2159 | PyObject * _argo0 = 0; | |
2160 | char *_kwnames[] = { "self","m_oldItemIndex", NULL }; | |
2161 | ||
2162 | self = self; | |
2163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_oldItemIndex_set",_kwnames,&_argo0,&_arg1)) | |
2164 | return NULL; | |
2165 | if (_argo0) { | |
2166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_set. Expected _wxListEvent_p."); | |
2169 | return NULL; | |
2170 | } | |
2171 | } | |
2172 | { | |
2173 | wxPy_BEGIN_ALLOW_THREADS; | |
2174 | _result = (long )wxListEvent_m_oldItemIndex_set(_arg0,_arg1); | |
2175 | ||
2176 | wxPy_END_ALLOW_THREADS; | |
2177 | } _resultobj = Py_BuildValue("l",_result); | |
2178 | return _resultobj; | |
2179 | } | |
2180 | ||
2181 | #define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex) | |
2182 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2183 | PyObject * _resultobj; | |
2184 | long _result; | |
2185 | wxListEvent * _arg0; | |
2186 | PyObject * _argo0 = 0; | |
2187 | char *_kwnames[] = { "self", NULL }; | |
2188 | ||
2189 | self = self; | |
2190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0)) | |
2191 | return NULL; | |
2192 | if (_argo0) { | |
2193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p."); | |
2196 | return NULL; | |
2197 | } | |
2198 | } | |
2199 | { | |
2200 | wxPy_BEGIN_ALLOW_THREADS; | |
2201 | _result = (long )wxListEvent_m_oldItemIndex_get(_arg0); | |
2202 | ||
2203 | wxPy_END_ALLOW_THREADS; | |
2204 | } _resultobj = Py_BuildValue("l",_result); | |
2205 | return _resultobj; | |
2206 | } | |
2207 | ||
2208 | #define wxListEvent_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
2209 | static PyObject *_wrap_wxListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2210 | PyObject * _resultobj; | |
2211 | int _result; | |
2212 | wxListEvent * _arg0; | |
2213 | int _arg1; | |
2214 | PyObject * _argo0 = 0; | |
2215 | char *_kwnames[] = { "self","m_col", NULL }; | |
2216 | ||
2217 | self = self; | |
2218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_col_set",_kwnames,&_argo0,&_arg1)) | |
2219 | return NULL; | |
2220 | if (_argo0) { | |
2221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_set. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2224 | return NULL; |
2225 | } | |
2226 | } | |
cf694132 RD |
2227 | { |
2228 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2229 | _result = (int )wxListEvent_m_col_set(_arg0,_arg1); |
cf694132 RD |
2230 | |
2231 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2232 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2233 | return _resultobj; |
2234 | } | |
2235 | ||
f6bcfd97 BP |
2236 | #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col) |
2237 | static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2238 | PyObject * _resultobj; |
2239 | int _result; | |
f6bcfd97 | 2240 | wxListEvent * _arg0; |
1d99702e | 2241 | PyObject * _argo0 = 0; |
f6bcfd97 | 2242 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2243 | |
2244 | self = self; | |
f6bcfd97 | 2245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0)) |
af309447 | 2246 | return NULL; |
1d99702e RD |
2247 | if (_argo0) { |
2248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p."); | |
af309447 RD |
2251 | return NULL; |
2252 | } | |
2253 | } | |
cf694132 RD |
2254 | { |
2255 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2256 | _result = (int )wxListEvent_m_col_get(_arg0); |
cf694132 RD |
2257 | |
2258 | wxPy_END_ALLOW_THREADS; | |
2259 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
2260 | return _resultobj; |
2261 | } | |
2262 | ||
f6bcfd97 BP |
2263 | #define wxListEvent_m_cancelled_set(_swigobj,_swigval) (_swigobj->m_cancelled = _swigval,_swigval) |
2264 | static PyObject *_wrap_wxListEvent_m_cancelled_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2265 | PyObject * _resultobj; |
f6bcfd97 BP |
2266 | bool _result; |
2267 | wxListEvent * _arg0; | |
2268 | bool _arg1; | |
1d99702e | 2269 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2270 | int tempbool1; |
2271 | char *_kwnames[] = { "self","m_cancelled", NULL }; | |
8ab979d7 RD |
2272 | |
2273 | self = self; | |
f6bcfd97 | 2274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_cancelled_set",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 2275 | return NULL; |
1d99702e RD |
2276 | if (_argo0) { |
2277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_set. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2280 | return NULL; |
2281 | } | |
2282 | } | |
f6bcfd97 | 2283 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
2284 | { |
2285 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2286 | _result = (bool )wxListEvent_m_cancelled_set(_arg0,_arg1); |
cf694132 RD |
2287 | |
2288 | wxPy_END_ALLOW_THREADS; | |
2289 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2290 | return _resultobj; |
2291 | } | |
2292 | ||
f6bcfd97 BP |
2293 | #define wxListEvent_m_cancelled_get(_swigobj) ((bool ) _swigobj->m_cancelled) |
2294 | static PyObject *_wrap_wxListEvent_m_cancelled_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2295 | PyObject * _resultobj; |
f6bcfd97 BP |
2296 | bool _result; |
2297 | wxListEvent * _arg0; | |
1d99702e | 2298 | PyObject * _argo0 = 0; |
f6bcfd97 | 2299 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2300 | |
2301 | self = self; | |
f6bcfd97 | 2302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_cancelled_get",_kwnames,&_argo0)) |
af309447 | 2303 | return NULL; |
1d99702e RD |
2304 | if (_argo0) { |
2305 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2306 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_get. Expected _wxListEvent_p."); | |
af309447 RD |
2308 | return NULL; |
2309 | } | |
2310 | } | |
cf694132 RD |
2311 | { |
2312 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2313 | _result = (bool )wxListEvent_m_cancelled_get(_arg0); |
cf694132 RD |
2314 | |
2315 | wxPy_END_ALLOW_THREADS; | |
2316 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
2317 | return _resultobj; |
2318 | } | |
2319 | ||
f6bcfd97 BP |
2320 | #define wxListEvent_m_pointDrag_set(_swigobj,_swigval) (_swigobj->m_pointDrag = *(_swigval),_swigval) |
2321 | static PyObject *_wrap_wxListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2322 | PyObject * _resultobj; |
f6bcfd97 BP |
2323 | wxPoint * _result; |
2324 | wxListEvent * _arg0; | |
2325 | wxPoint * _arg1; | |
1d99702e | 2326 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2327 | wxPoint temp; |
2328 | PyObject * _obj1 = 0; | |
2329 | char *_kwnames[] = { "self","m_pointDrag", NULL }; | |
2330 | char _ptemp[128]; | |
8ab979d7 RD |
2331 | |
2332 | self = self; | |
f6bcfd97 | 2333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_pointDrag_set",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2334 | return NULL; |
1d99702e RD |
2335 | if (_argo0) { |
2336 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2337 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_set. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2339 | return NULL; |
2340 | } | |
2341 | } | |
f6bcfd97 BP |
2342 | { |
2343 | _arg1 = &temp; | |
2344 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2345 | return NULL; | |
2346 | } | |
cf694132 RD |
2347 | { |
2348 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2349 | _result = (wxPoint *)wxListEvent_m_pointDrag_set(_arg0,_arg1); |
cf694132 RD |
2350 | |
2351 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2352 | } if (_result) { |
2353 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
2354 | _resultobj = Py_BuildValue("s",_ptemp); | |
2355 | } else { | |
2356 | Py_INCREF(Py_None); | |
2357 | _resultobj = Py_None; | |
2358 | } | |
8ab979d7 RD |
2359 | return _resultobj; |
2360 | } | |
2361 | ||
f6bcfd97 BP |
2362 | #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag) |
2363 | static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2364 | PyObject * _resultobj; |
f6bcfd97 BP |
2365 | wxPoint * _result; |
2366 | wxListEvent * _arg0; | |
2367 | PyObject * _argo0 = 0; | |
2368 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
2369 | char _ptemp[128]; |
2370 | ||
2371 | self = self; | |
f6bcfd97 BP |
2372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0)) |
2373 | return NULL; | |
2374 | if (_argo0) { | |
2375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p."); | |
8ab979d7 | 2378 | return NULL; |
f6bcfd97 BP |
2379 | } |
2380 | } | |
cf694132 RD |
2381 | { |
2382 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2383 | _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0); |
cf694132 RD |
2384 | |
2385 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 2386 | } if (_result) { |
f6bcfd97 | 2387 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); |
1d99702e RD |
2388 | _resultobj = Py_BuildValue("s",_ptemp); |
2389 | } else { | |
2390 | Py_INCREF(Py_None); | |
2391 | _resultobj = Py_None; | |
2392 | } | |
8ab979d7 RD |
2393 | return _resultobj; |
2394 | } | |
2395 | ||
f6bcfd97 BP |
2396 | #define wxListEvent_m_item_set(_swigobj,_swigval) (_swigobj->m_item = *(_swigval),_swigval) |
2397 | static PyObject *_wrap_wxListEvent_m_item_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2398 | PyObject * _resultobj; |
f6bcfd97 BP |
2399 | wxListItem * _result; |
2400 | wxListEvent * _arg0; | |
2401 | wxListItem * _arg1; | |
1d99702e | 2402 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2403 | PyObject * _argo1 = 0; |
2404 | char *_kwnames[] = { "self","m_item", NULL }; | |
8ab979d7 RD |
2405 | |
2406 | self = self; | |
f6bcfd97 | 2407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_item_set",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 2408 | return NULL; |
1d99702e RD |
2409 | if (_argo0) { |
2410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_set. Expected _wxListEvent_p."); | |
2413 | return NULL; | |
2414 | } | |
2415 | } | |
2416 | if (_argo1) { | |
2417 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2418 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
2419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListEvent_m_item_set. Expected _wxListItem_p."); | |
8ab979d7 RD |
2420 | return NULL; |
2421 | } | |
2422 | } | |
cf694132 RD |
2423 | { |
2424 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2425 | _result = (wxListItem *)wxListEvent_m_item_set(_arg0,_arg1); |
cf694132 RD |
2426 | |
2427 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 2428 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2429 | return _resultobj; |
2430 | } | |
2431 | ||
f6bcfd97 BP |
2432 | #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item) |
2433 | static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2434 | PyObject * _resultobj; |
f6bcfd97 | 2435 | wxListItem * _result; |
af309447 | 2436 | wxListEvent * _arg0; |
1d99702e | 2437 | PyObject * _argo0 = 0; |
f6bcfd97 | 2438 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2439 | |
2440 | self = self; | |
f6bcfd97 | 2441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0)) |
af309447 | 2442 | return NULL; |
1d99702e RD |
2443 | if (_argo0) { |
2444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p."); |
af309447 RD |
2447 | return NULL; |
2448 | } | |
2449 | } | |
cf694132 RD |
2450 | { |
2451 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2452 | _result = (wxListItem *)wxListEvent_m_item_get(_arg0); |
cf694132 RD |
2453 | |
2454 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 2455 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
2456 | return _resultobj; |
2457 | } | |
2458 | ||
f6bcfd97 BP |
2459 | #define wxListEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
2460 | static PyObject *_wrap_wxListEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2461 | PyObject * _resultobj; |
2462 | int _result; | |
2463 | wxListEvent * _arg0; | |
1d99702e | 2464 | PyObject * _argo0 = 0; |
efc5f224 | 2465 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2466 | |
2467 | self = self; | |
f6bcfd97 | 2468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 2469 | return NULL; |
1d99702e RD |
2470 | if (_argo0) { |
2471 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2472 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCode. Expected _wxListEvent_p."); |
8ab979d7 RD |
2474 | return NULL; |
2475 | } | |
2476 | } | |
cf694132 RD |
2477 | { |
2478 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2479 | _result = (int )wxListEvent_GetCode(_arg0); |
cf694132 RD |
2480 | |
2481 | wxPy_END_ALLOW_THREADS; | |
2482 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2483 | return _resultobj; |
2484 | } | |
2485 | ||
f6bcfd97 BP |
2486 | #define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex()) |
2487 | static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2488 | PyObject * _resultobj; |
2489 | long _result; | |
2490 | wxListEvent * _arg0; | |
1d99702e | 2491 | PyObject * _argo0 = 0; |
f6bcfd97 | 2492 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2493 | |
2494 | self = self; | |
f6bcfd97 | 2495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0)) |
af309447 | 2496 | return NULL; |
1d99702e RD |
2497 | if (_argo0) { |
2498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p."); |
af309447 RD |
2501 | return NULL; |
2502 | } | |
2503 | } | |
cf694132 RD |
2504 | { |
2505 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2506 | _result = (long )wxListEvent_GetIndex(_arg0); |
cf694132 RD |
2507 | |
2508 | wxPy_END_ALLOW_THREADS; | |
2509 | } _resultobj = Py_BuildValue("l",_result); | |
af309447 RD |
2510 | return _resultobj; |
2511 | } | |
2512 | ||
f6bcfd97 BP |
2513 | #define wxListEvent_GetOldIndex(_swigobj) (_swigobj->GetOldIndex()) |
2514 | static PyObject *_wrap_wxListEvent_GetOldIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2515 | PyObject * _resultobj; |
2516 | long _result; | |
2517 | wxListEvent * _arg0; | |
1d99702e | 2518 | PyObject * _argo0 = 0; |
efc5f224 | 2519 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2520 | |
2521 | self = self; | |
f6bcfd97 | 2522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetOldIndex",_kwnames,&_argo0)) |
8ab979d7 | 2523 | return NULL; |
1d99702e RD |
2524 | if (_argo0) { |
2525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetOldIndex. Expected _wxListEvent_p."); |
8ab979d7 RD |
2528 | return NULL; |
2529 | } | |
2530 | } | |
cf694132 RD |
2531 | { |
2532 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2533 | _result = (long )wxListEvent_GetOldIndex(_arg0); |
cf694132 RD |
2534 | |
2535 | wxPy_END_ALLOW_THREADS; | |
2536 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
2537 | return _resultobj; |
2538 | } | |
2539 | ||
f6bcfd97 BP |
2540 | #define wxListEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
2541 | static PyObject *_wrap_wxListEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2542 | PyObject * _resultobj; |
2543 | long _result; | |
2544 | wxListEvent * _arg0; | |
1d99702e | 2545 | PyObject * _argo0 = 0; |
f6bcfd97 | 2546 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2547 | |
2548 | self = self; | |
f6bcfd97 | 2549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetOldItem",_kwnames,&_argo0)) |
af309447 | 2550 | return NULL; |
1d99702e RD |
2551 | if (_argo0) { |
2552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetOldItem. Expected _wxListEvent_p."); |
af309447 RD |
2555 | return NULL; |
2556 | } | |
2557 | } | |
cf694132 RD |
2558 | { |
2559 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2560 | _result = (long )wxListEvent_GetOldItem(_arg0); |
cf694132 RD |
2561 | |
2562 | wxPy_END_ALLOW_THREADS; | |
2563 | } _resultobj = Py_BuildValue("l",_result); | |
af309447 RD |
2564 | return _resultobj; |
2565 | } | |
2566 | ||
f6bcfd97 BP |
2567 | #define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn()) |
2568 | static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2569 | PyObject * _resultobj; |
f6bcfd97 | 2570 | int _result; |
8ab979d7 | 2571 | wxListEvent * _arg0; |
1d99702e | 2572 | PyObject * _argo0 = 0; |
efc5f224 | 2573 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2574 | |
2575 | self = self; | |
f6bcfd97 | 2576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0)) |
8ab979d7 | 2577 | return NULL; |
1d99702e RD |
2578 | if (_argo0) { |
2579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p."); |
8ab979d7 RD |
2582 | return NULL; |
2583 | } | |
2584 | } | |
cf694132 RD |
2585 | { |
2586 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2587 | _result = (int )wxListEvent_GetColumn(_arg0); |
cf694132 RD |
2588 | |
2589 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2590 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2591 | return _resultobj; |
2592 | } | |
2593 | ||
f6bcfd97 BP |
2594 | #define wxListEvent_Cancelled(_swigobj) (_swigobj->Cancelled()) |
2595 | static PyObject *_wrap_wxListEvent_Cancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2596 | PyObject * _resultobj; |
f6bcfd97 | 2597 | bool _result; |
af309447 | 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_Cancelled",_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_Cancelled. Expected _wxListEvent_p."); |
af309447 RD |
2609 | return NULL; |
2610 | } | |
2611 | } | |
cf694132 RD |
2612 | { |
2613 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2614 | _result = (bool )wxListEvent_Cancelled(_arg0); |
cf694132 RD |
2615 | |
2616 | wxPy_END_ALLOW_THREADS; | |
2617 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
2618 | return _resultobj; |
2619 | } | |
2620 | ||
f6bcfd97 BP |
2621 | #define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
2622 | static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2623 | PyObject * _resultobj; |
f6bcfd97 | 2624 | wxPoint * _result; |
8ab979d7 | 2625 | wxListEvent * _arg0; |
1d99702e | 2626 | PyObject * _argo0 = 0; |
efc5f224 | 2627 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2628 | char _ptemp[128]; |
8ab979d7 RD |
2629 | |
2630 | self = self; | |
f6bcfd97 | 2631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_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_GetPoint. Expected _wxListEvent_p."); |
8ab979d7 RD |
2637 | return NULL; |
2638 | } | |
2639 | } | |
cf694132 RD |
2640 | { |
2641 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2642 | _result = new wxPoint (wxListEvent_GetPoint(_arg0)); |
cf694132 RD |
2643 | |
2644 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2645 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2646 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
2647 | return _resultobj; |
2648 | } | |
2649 | ||
f6bcfd97 BP |
2650 | #define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
2651 | static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2652 | PyObject * _resultobj; |
f6bcfd97 | 2653 | wxString * _result; |
af309447 | 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_GetLabel",_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_GetLabel. Expected _wxListEvent_p."); |
af309447 RD |
2665 | return NULL; |
2666 | } | |
2667 | } | |
cf694132 RD |
2668 | { |
2669 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2670 | const wxString & _result_ref = wxListEvent_GetLabel(_arg0); |
2671 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
2672 | |
2673 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2674 | }{ |
2675 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2676 | } | |
af309447 RD |
2677 | return _resultobj; |
2678 | } | |
2679 | ||
f6bcfd97 BP |
2680 | #define wxListEvent_GetText(_swigobj) (_swigobj->GetText()) |
2681 | static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2682 | PyObject * _resultobj; |
f6bcfd97 | 2683 | wxString * _result; |
8ab979d7 | 2684 | wxListEvent * _arg0; |
1d99702e | 2685 | PyObject * _argo0 = 0; |
efc5f224 | 2686 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2687 | |
2688 | self = self; | |
f6bcfd97 | 2689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0)) |
8ab979d7 | 2690 | return NULL; |
1d99702e RD |
2691 | if (_argo0) { |
2692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p."); |
8ab979d7 RD |
2695 | return NULL; |
2696 | } | |
2697 | } | |
cf694132 RD |
2698 | { |
2699 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2700 | const wxString & _result_ref = wxListEvent_GetText(_arg0); |
2701 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
2702 | |
2703 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2704 | }{ |
2705 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2706 | } | |
8ab979d7 RD |
2707 | return _resultobj; |
2708 | } | |
2709 | ||
f6bcfd97 BP |
2710 | #define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage()) |
2711 | static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2712 | PyObject * _resultobj; |
f6bcfd97 | 2713 | int _result; |
af309447 | 2714 | wxListEvent * _arg0; |
1d99702e | 2715 | PyObject * _argo0 = 0; |
f6bcfd97 | 2716 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2717 | |
2718 | self = self; | |
f6bcfd97 | 2719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0)) |
af309447 | 2720 | return NULL; |
1d99702e RD |
2721 | if (_argo0) { |
2722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p."); |
af309447 RD |
2725 | return NULL; |
2726 | } | |
2727 | } | |
cf694132 RD |
2728 | { |
2729 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2730 | _result = (int )wxListEvent_GetImage(_arg0); |
cf694132 RD |
2731 | |
2732 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2733 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2734 | return _resultobj; |
2735 | } | |
2736 | ||
f6bcfd97 BP |
2737 | #define wxListEvent_GetData(_swigobj) (_swigobj->GetData()) |
2738 | static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2739 | PyObject * _resultobj; |
f6bcfd97 | 2740 | long _result; |
8ab979d7 | 2741 | wxListEvent * _arg0; |
1d99702e | 2742 | PyObject * _argo0 = 0; |
efc5f224 | 2743 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2744 | |
2745 | self = self; | |
f6bcfd97 | 2746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0)) |
8ab979d7 | 2747 | return NULL; |
1d99702e RD |
2748 | if (_argo0) { |
2749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p."); |
8ab979d7 RD |
2752 | return NULL; |
2753 | } | |
2754 | } | |
cf694132 RD |
2755 | { |
2756 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2757 | _result = (long )wxListEvent_GetData(_arg0); |
cf694132 RD |
2758 | |
2759 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2760 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2761 | return _resultobj; |
2762 | } | |
2763 | ||
f6bcfd97 BP |
2764 | #define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask()) |
2765 | static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2766 | PyObject * _resultobj; |
f6bcfd97 | 2767 | long _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_GetMask",_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_GetMask. Expected _wxListEvent_p."); |
af309447 RD |
2779 | return NULL; |
2780 | } | |
2781 | } | |
cf694132 RD |
2782 | { |
2783 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2784 | _result = (long )wxListEvent_GetMask(_arg0); |
cf694132 RD |
2785 | |
2786 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2787 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2788 | return _resultobj; |
2789 | } | |
2790 | ||
f6bcfd97 BP |
2791 | #define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
2792 | static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2793 | PyObject * _resultobj; |
2794 | wxListItem * _result; | |
2795 | wxListEvent * _arg0; | |
1d99702e | 2796 | PyObject * _argo0 = 0; |
efc5f224 | 2797 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2798 | |
2799 | self = self; | |
f6bcfd97 | 2800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 2801 | return NULL; |
1d99702e RD |
2802 | if (_argo0) { |
2803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p."); |
8ab979d7 RD |
2806 | return NULL; |
2807 | } | |
2808 | } | |
cf694132 RD |
2809 | { |
2810 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2811 | const wxListItem & _result_ref = wxListEvent_GetItem(_arg0); |
2812 | _result = (wxListItem *) &_result_ref; | |
cf694132 RD |
2813 | |
2814 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 2815 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2816 | return _resultobj; |
2817 | } | |
2818 | ||
2819 | static void *SwigwxListCtrlTowxControl(void *ptr) { | |
2820 | wxListCtrl *src; | |
2821 | wxControl *dest; | |
2822 | src = (wxListCtrl *) ptr; | |
2823 | dest = (wxControl *) src; | |
2824 | return (void *) dest; | |
2825 | } | |
2826 | ||
2827 | static void *SwigwxListCtrlTowxWindow(void *ptr) { | |
2828 | wxListCtrl *src; | |
2829 | wxWindow *dest; | |
2830 | src = (wxListCtrl *) ptr; | |
2831 | dest = (wxWindow *) src; | |
2832 | return (void *) dest; | |
2833 | } | |
2834 | ||
2835 | static void *SwigwxListCtrlTowxEvtHandler(void *ptr) { | |
2836 | wxListCtrl *src; | |
2837 | wxEvtHandler *dest; | |
2838 | src = (wxListCtrl *) ptr; | |
2839 | dest = (wxEvtHandler *) src; | |
2840 | return (void *) dest; | |
2841 | } | |
2842 | ||
9416aa89 RD |
2843 | static void *SwigwxListCtrlTowxObject(void *ptr) { |
2844 | wxListCtrl *src; | |
2845 | wxObject *dest; | |
2846 | src = (wxListCtrl *) ptr; | |
2847 | dest = (wxObject *) src; | |
2848 | return (void *) dest; | |
2849 | } | |
2850 | ||
8ab979d7 | 2851 | #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 2852 | static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2853 | PyObject * _resultobj; |
2854 | wxListCtrl * _result; | |
2855 | wxWindow * _arg0; | |
2856 | wxWindowID _arg1; | |
e508a2b6 RD |
2857 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
2858 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 2859 | long _arg4 = (long ) wxLC_ICON; |
e508a2b6 | 2860 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
2861 | char * _arg6 = (char *) "listCtrl"; |
2862 | PyObject * _argo0 = 0; | |
2f90df85 RD |
2863 | wxPoint temp; |
2864 | PyObject * _obj2 = 0; | |
2865 | wxSize temp0; | |
2866 | PyObject * _obj3 = 0; | |
1d99702e | 2867 | PyObject * _argo5 = 0; |
efc5f224 | 2868 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
2869 | char _ptemp[128]; |
2870 | ||
2871 | self = self; | |
2f90df85 | 2872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOs:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 2873 | return NULL; |
1d99702e RD |
2874 | if (_argo0) { |
2875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p."); |
2878 | return NULL; | |
2879 | } | |
2880 | } | |
2f90df85 RD |
2881 | if (_obj2) |
2882 | { | |
2883 | _arg2 = &temp; | |
2884 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 2885 | return NULL; |
2f90df85 RD |
2886 | } |
2887 | if (_obj3) | |
2888 | { | |
2889 | _arg3 = &temp0; | |
2890 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 2891 | return NULL; |
2f90df85 | 2892 | } |
1d99702e RD |
2893 | if (_argo5) { |
2894 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
2895 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
2896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p."); |
2897 | return NULL; | |
2898 | } | |
2899 | } | |
cf694132 RD |
2900 | { |
2901 | wxPy_BEGIN_ALLOW_THREADS; | |
2902 | _result = (wxListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); | |
2903 | ||
2904 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
2905 | } if (_result) { |
2906 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListCtrl_p"); | |
2907 | _resultobj = Py_BuildValue("s",_ptemp); | |
2908 | } else { | |
2909 | Py_INCREF(Py_None); | |
2910 | _resultobj = Py_None; | |
2911 | } | |
8ab979d7 RD |
2912 | return _resultobj; |
2913 | } | |
2914 | ||
2915 | #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0)) | |
efc5f224 | 2916 | static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2917 | PyObject * _resultobj; |
2918 | bool _result; | |
2919 | wxListCtrl * _arg0; | |
1d99702e RD |
2920 | int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT); |
2921 | PyObject * _argo0 = 0; | |
efc5f224 | 2922 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
2923 | |
2924 | self = self; | |
efc5f224 | 2925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2926 | return NULL; |
1d99702e RD |
2927 | if (_argo0) { |
2928 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2929 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxListCtrl_p."); |
2931 | return NULL; | |
2932 | } | |
2933 | } | |
cf694132 RD |
2934 | { |
2935 | wxPy_BEGIN_ALLOW_THREADS; | |
2936 | _result = (bool )wxListCtrl_Arrange(_arg0,_arg1); | |
2937 | ||
2938 | wxPy_END_ALLOW_THREADS; | |
2939 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2940 | return _resultobj; |
2941 | } | |
2942 | ||
1b62f00d RD |
2943 | #define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1)) |
2944 | static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2945 | PyObject * _resultobj; | |
2946 | wxListCtrl * _arg0; | |
2947 | wxImageList * _arg1; | |
2948 | int _arg2; | |
2949 | PyObject * _argo0 = 0; | |
2950 | PyObject * _argo1 = 0; | |
2951 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
2952 | ||
2953 | self = self; | |
2954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2)) | |
2955 | return NULL; | |
2956 | if (_argo0) { | |
2957 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2958 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
2959 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxListCtrl_p."); | |
2960 | return NULL; | |
2961 | } | |
2962 | } | |
2963 | if (_argo1) { | |
2964 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2965 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
2966 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p."); | |
2967 | return NULL; | |
2968 | } | |
2969 | } | |
2970 | { | |
2971 | wxPy_BEGIN_ALLOW_THREADS; | |
2972 | wxListCtrl_AssignImageList(_arg0,_arg1,_arg2); | |
2973 | ||
2974 | wxPy_END_ALLOW_THREADS; | |
2975 | } Py_INCREF(Py_None); | |
2976 | _resultobj = Py_None; | |
2977 | return _resultobj; | |
2978 | } | |
2979 | ||
8ab979d7 | 2980 | #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0)) |
efc5f224 | 2981 | static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2982 | PyObject * _resultobj; |
2983 | bool _result; | |
2984 | wxListCtrl * _arg0; | |
2985 | long _arg1; | |
1d99702e | 2986 | PyObject * _argo0 = 0; |
efc5f224 | 2987 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
2988 | |
2989 | self = self; | |
efc5f224 | 2990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2991 | return NULL; |
1d99702e RD |
2992 | if (_argo0) { |
2993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxListCtrl_p."); |
2996 | return NULL; | |
2997 | } | |
2998 | } | |
cf694132 RD |
2999 | { |
3000 | wxPy_BEGIN_ALLOW_THREADS; | |
3001 | _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1); | |
3002 | ||
3003 | wxPy_END_ALLOW_THREADS; | |
3004 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3005 | return _resultobj; |
3006 | } | |
3007 | ||
3008 | #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
efc5f224 | 3009 | static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3010 | PyObject * _resultobj; |
3011 | bool _result; | |
3012 | wxListCtrl * _arg0; | |
1d99702e | 3013 | PyObject * _argo0 = 0; |
efc5f224 | 3014 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3015 | |
3016 | self = self; | |
efc5f224 | 3017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0)) |
8ab979d7 | 3018 | return NULL; |
1d99702e RD |
3019 | if (_argo0) { |
3020 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3021 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3022 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxListCtrl_p."); |
3023 | return NULL; | |
3024 | } | |
3025 | } | |
cf694132 RD |
3026 | { |
3027 | wxPy_BEGIN_ALLOW_THREADS; | |
3028 | _result = (bool )wxListCtrl_DeleteAllItems(_arg0); | |
3029 | ||
3030 | wxPy_END_ALLOW_THREADS; | |
3031 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3032 | return _resultobj; |
3033 | } | |
3034 | ||
3035 | #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0)) | |
efc5f224 | 3036 | static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3037 | PyObject * _resultobj; |
3038 | bool _result; | |
3039 | wxListCtrl * _arg0; | |
3040 | int _arg1; | |
1d99702e | 3041 | PyObject * _argo0 = 0; |
efc5f224 | 3042 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3043 | |
3044 | self = self; | |
efc5f224 | 3045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3046 | return NULL; |
1d99702e RD |
3047 | if (_argo0) { |
3048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxListCtrl_p."); |
3051 | return NULL; | |
3052 | } | |
3053 | } | |
cf694132 RD |
3054 | { |
3055 | wxPy_BEGIN_ALLOW_THREADS; | |
3056 | _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1); | |
3057 | ||
3058 | wxPy_END_ALLOW_THREADS; | |
3059 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3060 | return _resultobj; |
3061 | } | |
3062 | ||
3063 | #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns()) | |
efc5f224 | 3064 | static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3065 | PyObject * _resultobj; |
3066 | bool _result; | |
3067 | wxListCtrl * _arg0; | |
1d99702e | 3068 | PyObject * _argo0 = 0; |
efc5f224 | 3069 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3070 | |
3071 | self = self; | |
efc5f224 | 3072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0)) |
8ab979d7 | 3073 | return NULL; |
1d99702e RD |
3074 | if (_argo0) { |
3075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxListCtrl_p."); |
3078 | return NULL; | |
3079 | } | |
3080 | } | |
cf694132 RD |
3081 | { |
3082 | wxPy_BEGIN_ALLOW_THREADS; | |
3083 | _result = (bool )wxListCtrl_DeleteAllColumns(_arg0); | |
3084 | ||
3085 | wxPy_END_ALLOW_THREADS; | |
3086 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3087 | return _resultobj; |
3088 | } | |
3089 | ||
3090 | #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll()) | |
efc5f224 | 3091 | static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3092 | PyObject * _resultobj; |
3093 | wxListCtrl * _arg0; | |
1d99702e | 3094 | PyObject * _argo0 = 0; |
efc5f224 | 3095 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3096 | |
3097 | self = self; | |
efc5f224 | 3098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0)) |
8ab979d7 | 3099 | return NULL; |
1d99702e RD |
3100 | if (_argo0) { |
3101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxListCtrl_p."); |
3104 | return NULL; | |
3105 | } | |
3106 | } | |
cf694132 RD |
3107 | { |
3108 | wxPy_BEGIN_ALLOW_THREADS; | |
3109 | wxListCtrl_ClearAll(_arg0); | |
3110 | ||
3111 | wxPy_END_ALLOW_THREADS; | |
3112 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3113 | _resultobj = Py_None; |
3114 | return _resultobj; | |
3115 | } | |
3116 | ||
3117 | #define wxListCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
efc5f224 | 3118 | static PyObject *_wrap_wxListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3119 | PyObject * _resultobj; |
3120 | wxTextCtrl * _result; | |
3121 | wxListCtrl * _arg0; | |
3122 | long _arg1; | |
1d99702e | 3123 | PyObject * _argo0 = 0; |
efc5f224 | 3124 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3125 | |
3126 | self = self; | |
efc5f224 | 3127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EditLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3128 | return NULL; |
1d99702e RD |
3129 | if (_argo0) { |
3130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EditLabel. Expected _wxListCtrl_p."); |
3133 | return NULL; | |
3134 | } | |
3135 | } | |
cf694132 RD |
3136 | { |
3137 | wxPy_BEGIN_ALLOW_THREADS; | |
3138 | _result = (wxTextCtrl *)wxListCtrl_EditLabel(_arg0,_arg1); | |
3139 | ||
3140 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 3141 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
3142 | return _resultobj; |
3143 | } | |
3144 | ||
3145 | #define wxListCtrl_EndEditLabel(_swigobj,_swigarg0) (_swigobj->EndEditLabel(_swigarg0)) | |
efc5f224 | 3146 | static PyObject *_wrap_wxListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3147 | PyObject * _resultobj; |
3148 | bool _result; | |
3149 | wxListCtrl * _arg0; | |
3150 | bool _arg1; | |
1d99702e | 3151 | PyObject * _argo0 = 0; |
8ab979d7 | 3152 | int tempbool1; |
efc5f224 | 3153 | char *_kwnames[] = { "self","cancel", NULL }; |
8ab979d7 RD |
3154 | |
3155 | self = self; | |
efc5f224 | 3156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_EndEditLabel",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3157 | return NULL; |
1d99702e RD |
3158 | if (_argo0) { |
3159 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3160 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EndEditLabel. Expected _wxListCtrl_p."); |
3162 | return NULL; | |
3163 | } | |
3164 | } | |
3165 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3166 | { |
3167 | wxPy_BEGIN_ALLOW_THREADS; | |
3168 | _result = (bool )wxListCtrl_EndEditLabel(_arg0,_arg1); | |
3169 | ||
3170 | wxPy_END_ALLOW_THREADS; | |
3171 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3172 | return _resultobj; |
3173 | } | |
3174 | ||
be4d9c1f | 3175 | #define wxListCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) |
efc5f224 | 3176 | static PyObject *_wrap_wxListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
be4d9c1f RD |
3177 | PyObject * _resultobj; |
3178 | wxTextCtrl * _result; | |
3179 | wxListCtrl * _arg0; | |
1d99702e | 3180 | PyObject * _argo0 = 0; |
efc5f224 | 3181 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
3182 | |
3183 | self = self; | |
efc5f224 | 3184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetEditControl",_kwnames,&_argo0)) |
be4d9c1f | 3185 | return NULL; |
1d99702e RD |
3186 | if (_argo0) { |
3187 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3188 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
be4d9c1f RD |
3189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetEditControl. Expected _wxListCtrl_p."); |
3190 | return NULL; | |
3191 | } | |
3192 | } | |
cf694132 RD |
3193 | { |
3194 | wxPy_BEGIN_ALLOW_THREADS; | |
3195 | _result = (wxTextCtrl *)wxListCtrl_GetEditControl(_arg0); | |
3196 | ||
3197 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 3198 | }{ _resultobj = wxPyMake_wxObject(_result); } |
be4d9c1f RD |
3199 | return _resultobj; |
3200 | } | |
3201 | ||
8ab979d7 | 3202 | #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) |
efc5f224 | 3203 | static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3204 | PyObject * _resultobj; |
3205 | bool _result; | |
3206 | wxListCtrl * _arg0; | |
3207 | long _arg1; | |
1d99702e | 3208 | PyObject * _argo0 = 0; |
efc5f224 | 3209 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3210 | |
3211 | self = self; | |
efc5f224 | 3212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3213 | return NULL; |
1d99702e RD |
3214 | if (_argo0) { |
3215 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxListCtrl_p."); |
3218 | return NULL; | |
3219 | } | |
3220 | } | |
cf694132 RD |
3221 | { |
3222 | wxPy_BEGIN_ALLOW_THREADS; | |
3223 | _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1); | |
3224 | ||
3225 | wxPy_END_ALLOW_THREADS; | |
3226 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3227 | return _resultobj; |
3228 | } | |
3229 | ||
3230 | #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3231 | static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3232 | PyObject * _resultobj; |
3233 | long _result; | |
3234 | wxListCtrl * _arg0; | |
3235 | long _arg1; | |
3236 | wxString * _arg2; | |
1d99702e RD |
3237 | bool _arg3 = (bool ) FALSE; |
3238 | PyObject * _argo0 = 0; | |
8ab979d7 | 3239 | PyObject * _obj2 = 0; |
1d99702e | 3240 | int tempbool3 = (int) FALSE; |
efc5f224 | 3241 | char *_kwnames[] = { "self","start","str","partial", NULL }; |
8ab979d7 RD |
3242 | |
3243 | self = self; | |
efc5f224 | 3244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
8ab979d7 | 3245 | return NULL; |
1d99702e RD |
3246 | if (_argo0) { |
3247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxListCtrl_p."); |
3250 | return NULL; | |
3251 | } | |
3252 | } | |
3253 | { | |
185d7c3e RD |
3254 | #if PYTHON_API_VERSION >= 1009 |
3255 | char* tmpPtr; int tmpSize; | |
3256 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 3257 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
3258 | return NULL; |
3259 | } | |
3260 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3261 | return NULL; | |
3262 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3263 | #else | |
8ab979d7 RD |
3264 | if (!PyString_Check(_obj2)) { |
3265 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3266 | return NULL; | |
3267 | } | |
185d7c3e RD |
3268 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3269 | #endif | |
8ab979d7 RD |
3270 | } |
3271 | _arg3 = (bool ) tempbool3; | |
cf694132 RD |
3272 | { |
3273 | wxPy_BEGIN_ALLOW_THREADS; | |
3274 | _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3); | |
3275 | ||
3276 | wxPy_END_ALLOW_THREADS; | |
3277 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3278 | { |
3279 | if (_obj2) | |
3280 | delete _arg2; | |
3281 | } | |
3282 | return _resultobj; | |
3283 | } | |
3284 | ||
3285 | #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1)) | |
efc5f224 | 3286 | static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3287 | PyObject * _resultobj; |
3288 | long _result; | |
3289 | wxListCtrl * _arg0; | |
3290 | long _arg1; | |
3291 | long _arg2; | |
1d99702e | 3292 | PyObject * _argo0 = 0; |
efc5f224 | 3293 | char *_kwnames[] = { "self","start","data", NULL }; |
8ab979d7 RD |
3294 | |
3295 | self = self; | |
efc5f224 | 3296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3297 | return NULL; |
1d99702e RD |
3298 | if (_argo0) { |
3299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxListCtrl_p."); |
3302 | return NULL; | |
3303 | } | |
3304 | } | |
cf694132 RD |
3305 | { |
3306 | wxPy_BEGIN_ALLOW_THREADS; | |
3307 | _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2); | |
3308 | ||
3309 | wxPy_END_ALLOW_THREADS; | |
3310 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3311 | return _resultobj; |
3312 | } | |
3313 | ||
3314 | #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3315 | static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3316 | PyObject * _resultobj; |
3317 | long _result; | |
3318 | wxListCtrl * _arg0; | |
3319 | long _arg1; | |
3320 | wxPoint * _arg2; | |
3321 | int _arg3; | |
1d99702e | 3322 | PyObject * _argo0 = 0; |
2f90df85 RD |
3323 | wxPoint temp; |
3324 | PyObject * _obj2 = 0; | |
efc5f224 | 3325 | char *_kwnames[] = { "self","start","pt","direction", NULL }; |
8ab979d7 RD |
3326 | |
3327 | self = self; | |
2f90df85 | 3328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 3329 | return NULL; |
1d99702e RD |
3330 | if (_argo0) { |
3331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxListCtrl_p."); |
3334 | return NULL; | |
3335 | } | |
3336 | } | |
2f90df85 RD |
3337 | { |
3338 | _arg2 = &temp; | |
3339 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 3340 | return NULL; |
2f90df85 | 3341 | } |
cf694132 RD |
3342 | { |
3343 | wxPy_BEGIN_ALLOW_THREADS; | |
3344 | _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3); | |
3345 | ||
3346 | wxPy_END_ALLOW_THREADS; | |
3347 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3348 | return _resultobj; |
3349 | } | |
3350 | ||
3351 | #define wxListCtrl_GetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetColumn(_swigarg0,_swigarg1)) | |
efc5f224 | 3352 | static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3353 | PyObject * _resultobj; |
3354 | bool _result; | |
3355 | wxListCtrl * _arg0; | |
3356 | int _arg1; | |
3357 | wxListItem * _arg2; | |
1d99702e RD |
3358 | PyObject * _argo0 = 0; |
3359 | PyObject * _argo2 = 0; | |
efc5f224 | 3360 | char *_kwnames[] = { "self","col","item", NULL }; |
8ab979d7 RD |
3361 | |
3362 | self = self; | |
efc5f224 | 3363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3364 | return NULL; |
1d99702e RD |
3365 | if (_argo0) { |
3366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxListCtrl_p."); |
3369 | return NULL; | |
3370 | } | |
3371 | } | |
1d99702e RD |
3372 | if (_argo2) { |
3373 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3374 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
8ab979d7 RD |
3375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_GetColumn. Expected _wxListItem_p."); |
3376 | return NULL; | |
3377 | } | |
3378 | } | |
cf694132 RD |
3379 | { |
3380 | wxPy_BEGIN_ALLOW_THREADS; | |
3381 | _result = (bool )wxListCtrl_GetColumn(_arg0,_arg1,*_arg2); | |
3382 | ||
3383 | wxPy_END_ALLOW_THREADS; | |
3384 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3385 | return _resultobj; |
3386 | } | |
3387 | ||
3388 | #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0)) | |
efc5f224 | 3389 | static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3390 | PyObject * _resultobj; |
3391 | int _result; | |
3392 | wxListCtrl * _arg0; | |
3393 | int _arg1; | |
1d99702e | 3394 | PyObject * _argo0 = 0; |
efc5f224 | 3395 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3396 | |
3397 | self = self; | |
efc5f224 | 3398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3399 | return NULL; |
1d99702e RD |
3400 | if (_argo0) { |
3401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxListCtrl_p."); |
3404 | return NULL; | |
3405 | } | |
3406 | } | |
cf694132 RD |
3407 | { |
3408 | wxPy_BEGIN_ALLOW_THREADS; | |
3409 | _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1); | |
3410 | ||
3411 | wxPy_END_ALLOW_THREADS; | |
3412 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3413 | return _resultobj; |
3414 | } | |
3415 | ||
3416 | #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage()) | |
efc5f224 | 3417 | static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3418 | PyObject * _resultobj; |
3419 | int _result; | |
3420 | wxListCtrl * _arg0; | |
1d99702e | 3421 | PyObject * _argo0 = 0; |
efc5f224 | 3422 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3423 | |
3424 | self = self; | |
efc5f224 | 3425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0)) |
8ab979d7 | 3426 | return NULL; |
1d99702e RD |
3427 | if (_argo0) { |
3428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxListCtrl_p."); |
3431 | return NULL; | |
3432 | } | |
3433 | } | |
cf694132 RD |
3434 | { |
3435 | wxPy_BEGIN_ALLOW_THREADS; | |
3436 | _result = (int )wxListCtrl_GetCountPerPage(_arg0); | |
3437 | ||
3438 | wxPy_END_ALLOW_THREADS; | |
3439 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3440 | return _resultobj; |
3441 | } | |
3442 | ||
3443 | #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0)) | |
efc5f224 | 3444 | static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3445 | PyObject * _resultobj; |
3446 | wxImageList * _result; | |
3447 | wxListCtrl * _arg0; | |
3448 | int _arg1; | |
1d99702e | 3449 | PyObject * _argo0 = 0; |
efc5f224 | 3450 | char *_kwnames[] = { "self","which", NULL }; |
8ab979d7 RD |
3451 | |
3452 | self = self; | |
efc5f224 | 3453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3454 | return NULL; |
1d99702e RD |
3455 | if (_argo0) { |
3456 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3457 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxListCtrl_p."); |
3459 | return NULL; | |
3460 | } | |
3461 | } | |
cf694132 RD |
3462 | { |
3463 | wxPy_BEGIN_ALLOW_THREADS; | |
3464 | _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1); | |
3465 | ||
3466 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 3467 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
3468 | return _resultobj; |
3469 | } | |
3470 | ||
3471 | #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0)) | |
efc5f224 | 3472 | static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3473 | PyObject * _resultobj; |
3474 | long _result; | |
3475 | wxListCtrl * _arg0; | |
3476 | long _arg1; | |
1d99702e | 3477 | PyObject * _argo0 = 0; |
efc5f224 | 3478 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3479 | |
3480 | self = self; | |
efc5f224 | 3481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3482 | return NULL; |
1d99702e RD |
3483 | if (_argo0) { |
3484 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3485 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3486 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxListCtrl_p."); |
3487 | return NULL; | |
3488 | } | |
3489 | } | |
cf694132 RD |
3490 | { |
3491 | wxPy_BEGIN_ALLOW_THREADS; | |
3492 | _result = (long )wxListCtrl_GetItemData(_arg0,_arg1); | |
3493 | ||
3494 | wxPy_END_ALLOW_THREADS; | |
3495 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3496 | return _resultobj; |
3497 | } | |
3498 | ||
e166644c | 3499 | static wxListItem * wxListCtrl_GetItem(wxListCtrl *self,long itemId,int col) { |
8ab979d7 | 3500 | wxListItem* info = new wxListItem; |
0699c864 | 3501 | info->m_itemId = itemId; |
e166644c | 3502 | info->m_col = col; |
f17fee68 | 3503 | info->m_mask = 0xFFFF; |
8ab979d7 RD |
3504 | self->GetItem(*info); |
3505 | return info; | |
3506 | } | |
efc5f224 | 3507 | static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3508 | PyObject * _resultobj; |
3509 | wxListItem * _result; | |
3510 | wxListCtrl * _arg0; | |
0699c864 | 3511 | long _arg1; |
e166644c | 3512 | int _arg2 = (int ) 0; |
1d99702e | 3513 | PyObject * _argo0 = 0; |
e166644c | 3514 | char *_kwnames[] = { "self","itemId","col", NULL }; |
8ab979d7 RD |
3515 | |
3516 | self = self; | |
e166644c | 3517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3518 | return NULL; |
1d99702e RD |
3519 | if (_argo0) { |
3520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxListCtrl_p."); |
3523 | return NULL; | |
3524 | } | |
3525 | } | |
cf694132 RD |
3526 | { |
3527 | wxPy_BEGIN_ALLOW_THREADS; | |
e166644c | 3528 | _result = (wxListItem *)wxListCtrl_GetItem(_arg0,_arg1,_arg2); |
cf694132 RD |
3529 | |
3530 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 3531 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
3532 | return _resultobj; |
3533 | } | |
3534 | ||
3535 | static wxPoint * wxListCtrl_GetItemPosition(wxListCtrl *self,long item) { | |
3536 | wxPoint* pos = new wxPoint; | |
3537 | self->GetItemPosition(item, *pos); | |
3538 | return pos; | |
3539 | } | |
efc5f224 | 3540 | static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3541 | PyObject * _resultobj; |
3542 | wxPoint * _result; | |
3543 | wxListCtrl * _arg0; | |
3544 | long _arg1; | |
1d99702e | 3545 | PyObject * _argo0 = 0; |
efc5f224 | 3546 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3547 | char _ptemp[128]; |
3548 | ||
3549 | self = self; | |
efc5f224 | 3550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3551 | return NULL; |
1d99702e RD |
3552 | if (_argo0) { |
3553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxListCtrl_p."); |
3556 | return NULL; | |
3557 | } | |
3558 | } | |
cf694132 RD |
3559 | { |
3560 | wxPy_BEGIN_ALLOW_THREADS; | |
3561 | _result = (wxPoint *)wxListCtrl_GetItemPosition(_arg0,_arg1); | |
3562 | ||
3563 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3564 | } if (_result) { |
3565 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
3566 | _resultobj = Py_BuildValue("s",_ptemp); | |
3567 | } else { | |
3568 | Py_INCREF(Py_None); | |
3569 | _resultobj = Py_None; | |
3570 | } | |
8ab979d7 RD |
3571 | return _resultobj; |
3572 | } | |
3573 | ||
3574 | static wxRect * wxListCtrl_GetItemRect(wxListCtrl *self,long item,int code) { | |
3575 | wxRect* rect= new wxRect; | |
3576 | self->GetItemRect(item, *rect, code); | |
3577 | return rect; | |
3578 | } | |
efc5f224 | 3579 | static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3580 | PyObject * _resultobj; |
3581 | wxRect * _result; | |
3582 | wxListCtrl * _arg0; | |
3583 | long _arg1; | |
1d99702e RD |
3584 | int _arg2 = (int ) (wxLIST_RECT_BOUNDS); |
3585 | PyObject * _argo0 = 0; | |
efc5f224 | 3586 | char *_kwnames[] = { "self","item","code", NULL }; |
8ab979d7 RD |
3587 | char _ptemp[128]; |
3588 | ||
3589 | self = self; | |
efc5f224 | 3590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3591 | return NULL; |
1d99702e RD |
3592 | if (_argo0) { |
3593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxListCtrl_p."); |
3596 | return NULL; | |
3597 | } | |
3598 | } | |
cf694132 RD |
3599 | { |
3600 | wxPy_BEGIN_ALLOW_THREADS; | |
3601 | _result = (wxRect *)wxListCtrl_GetItemRect(_arg0,_arg1,_arg2); | |
3602 | ||
3603 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3604 | } if (_result) { |
3605 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
3606 | _resultobj = Py_BuildValue("s",_ptemp); | |
3607 | } else { | |
3608 | Py_INCREF(Py_None); | |
3609 | _resultobj = Py_None; | |
3610 | } | |
8ab979d7 RD |
3611 | return _resultobj; |
3612 | } | |
3613 | ||
3614 | #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1)) | |
efc5f224 | 3615 | static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3616 | PyObject * _resultobj; |
3617 | int _result; | |
3618 | wxListCtrl * _arg0; | |
3619 | long _arg1; | |
3620 | long _arg2; | |
1d99702e | 3621 | PyObject * _argo0 = 0; |
efc5f224 | 3622 | char *_kwnames[] = { "self","item","stateMask", NULL }; |
8ab979d7 RD |
3623 | |
3624 | self = self; | |
efc5f224 | 3625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3626 | return NULL; |
1d99702e RD |
3627 | if (_argo0) { |
3628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxListCtrl_p."); |
3631 | return NULL; | |
3632 | } | |
3633 | } | |
cf694132 RD |
3634 | { |
3635 | wxPy_BEGIN_ALLOW_THREADS; | |
3636 | _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2); | |
3637 | ||
3638 | wxPy_END_ALLOW_THREADS; | |
3639 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3640 | return _resultobj; |
3641 | } | |
3642 | ||
3643 | #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
efc5f224 | 3644 | static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3645 | PyObject * _resultobj; |
3646 | int _result; | |
3647 | wxListCtrl * _arg0; | |
1d99702e | 3648 | PyObject * _argo0 = 0; |
efc5f224 | 3649 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3650 | |
3651 | self = self; | |
efc5f224 | 3652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3653 | return NULL; |
1d99702e RD |
3654 | if (_argo0) { |
3655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxListCtrl_p."); |
3658 | return NULL; | |
3659 | } | |
3660 | } | |
cf694132 RD |
3661 | { |
3662 | wxPy_BEGIN_ALLOW_THREADS; | |
3663 | _result = (int )wxListCtrl_GetItemCount(_arg0); | |
3664 | ||
3665 | wxPy_END_ALLOW_THREADS; | |
3666 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3667 | return _resultobj; |
3668 | } | |
3669 | ||
3670 | #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0)) | |
efc5f224 | 3671 | static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3672 | PyObject * _resultobj; |
3673 | int _result; | |
3674 | wxListCtrl * _arg0; | |
3675 | bool _arg1; | |
1d99702e | 3676 | PyObject * _argo0 = 0; |
8ab979d7 | 3677 | int tempbool1; |
efc5f224 | 3678 | char *_kwnames[] = { "self","isSmall", NULL }; |
8ab979d7 RD |
3679 | |
3680 | self = self; | |
efc5f224 | 3681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3682 | return NULL; |
1d99702e RD |
3683 | if (_argo0) { |
3684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxListCtrl_p."); |
3687 | return NULL; | |
3688 | } | |
3689 | } | |
3690 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3691 | { |
3692 | wxPy_BEGIN_ALLOW_THREADS; | |
3693 | _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1); | |
3694 | ||
3695 | wxPy_END_ALLOW_THREADS; | |
3696 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3697 | return _resultobj; |
3698 | } | |
3699 | ||
3700 | #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) | |
efc5f224 | 3701 | static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3702 | PyObject * _resultobj; |
3703 | wxString * _result; | |
3704 | wxListCtrl * _arg0; | |
3705 | long _arg1; | |
1d99702e | 3706 | PyObject * _argo0 = 0; |
efc5f224 | 3707 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3708 | |
3709 | self = self; | |
efc5f224 | 3710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3711 | return NULL; |
1d99702e RD |
3712 | if (_argo0) { |
3713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxListCtrl_p."); |
3716 | return NULL; | |
3717 | } | |
3718 | } | |
8ab979d7 | 3719 | { |
cf694132 RD |
3720 | wxPy_BEGIN_ALLOW_THREADS; |
3721 | _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1)); | |
3722 | ||
3723 | wxPy_END_ALLOW_THREADS; | |
3724 | }{ | |
eec92d76 | 3725 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
3726 | } |
3727 | { | |
3728 | delete _result; | |
3729 | } | |
3730 | return _resultobj; | |
3731 | } | |
3732 | ||
3733 | #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3734 | static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3735 | PyObject * _resultobj; |
3736 | long _result; | |
3737 | wxListCtrl * _arg0; | |
3738 | long _arg1; | |
1d99702e RD |
3739 | int _arg2 = (int ) (wxLIST_NEXT_ALL); |
3740 | int _arg3 = (int ) (wxLIST_STATE_DONTCARE); | |
3741 | PyObject * _argo0 = 0; | |
efc5f224 | 3742 | char *_kwnames[] = { "self","item","geometry","state", NULL }; |
8ab979d7 RD |
3743 | |
3744 | self = self; | |
efc5f224 | 3745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3746 | return NULL; |
1d99702e RD |
3747 | if (_argo0) { |
3748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxListCtrl_p."); |
3751 | return NULL; | |
3752 | } | |
3753 | } | |
cf694132 RD |
3754 | { |
3755 | wxPy_BEGIN_ALLOW_THREADS; | |
3756 | _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3); | |
3757 | ||
3758 | wxPy_END_ALLOW_THREADS; | |
3759 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3760 | return _resultobj; |
3761 | } | |
3762 | ||
3763 | #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount()) | |
efc5f224 | 3764 | static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3765 | PyObject * _resultobj; |
3766 | int _result; | |
3767 | wxListCtrl * _arg0; | |
1d99702e | 3768 | PyObject * _argo0 = 0; |
efc5f224 | 3769 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3770 | |
3771 | self = self; | |
efc5f224 | 3772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3773 | return NULL; |
1d99702e RD |
3774 | if (_argo0) { |
3775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxListCtrl_p."); |
3778 | return NULL; | |
3779 | } | |
3780 | } | |
cf694132 RD |
3781 | { |
3782 | wxPy_BEGIN_ALLOW_THREADS; | |
3783 | _result = (int )wxListCtrl_GetSelectedItemCount(_arg0); | |
3784 | ||
3785 | wxPy_END_ALLOW_THREADS; | |
3786 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3787 | return _resultobj; |
3788 | } | |
3789 | ||
3790 | #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
efc5f224 | 3791 | static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3792 | PyObject * _resultobj; |
3793 | wxColour * _result; | |
3794 | wxListCtrl * _arg0; | |
1d99702e | 3795 | PyObject * _argo0 = 0; |
efc5f224 | 3796 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3797 | char _ptemp[128]; |
3798 | ||
3799 | self = self; | |
efc5f224 | 3800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 3801 | return NULL; |
1d99702e RD |
3802 | if (_argo0) { |
3803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxListCtrl_p."); |
3806 | return NULL; | |
3807 | } | |
3808 | } | |
cf694132 RD |
3809 | { |
3810 | wxPy_BEGIN_ALLOW_THREADS; | |
3811 | _result = new wxColour (wxListCtrl_GetTextColour(_arg0)); | |
3812 | ||
3813 | wxPy_END_ALLOW_THREADS; | |
3814 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
8ab979d7 RD |
3815 | _resultobj = Py_BuildValue("s",_ptemp); |
3816 | return _resultobj; | |
3817 | } | |
3818 | ||
be4d9c1f | 3819 | #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
efc5f224 | 3820 | static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
be4d9c1f RD |
3821 | PyObject * _resultobj; |
3822 | wxListCtrl * _arg0; | |
3823 | wxColour * _arg1; | |
1d99702e | 3824 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3825 | wxColour temp; |
3826 | PyObject * _obj1 = 0; | |
efc5f224 | 3827 | char *_kwnames[] = { "self","col", NULL }; |
be4d9c1f RD |
3828 | |
3829 | self = self; | |
f6bcfd97 | 3830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1)) |
be4d9c1f | 3831 | return NULL; |
1d99702e RD |
3832 | if (_argo0) { |
3833 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3834 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
be4d9c1f RD |
3835 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxListCtrl_p."); |
3836 | return NULL; | |
3837 | } | |
3838 | } | |
f6bcfd97 BP |
3839 | { |
3840 | _arg1 = &temp; | |
3841 | if (! wxColour_helper(_obj1, &_arg1)) | |
be4d9c1f | 3842 | return NULL; |
f6bcfd97 | 3843 | } |
cf694132 RD |
3844 | { |
3845 | wxPy_BEGIN_ALLOW_THREADS; | |
3846 | wxListCtrl_SetTextColour(_arg0,*_arg1); | |
3847 | ||
3848 | wxPy_END_ALLOW_THREADS; | |
3849 | } Py_INCREF(Py_None); | |
be4d9c1f RD |
3850 | _resultobj = Py_None; |
3851 | return _resultobj; | |
3852 | } | |
3853 | ||
8ab979d7 | 3854 | #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem()) |
efc5f224 | 3855 | static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3856 | PyObject * _resultobj; |
3857 | long _result; | |
3858 | wxListCtrl * _arg0; | |
1d99702e | 3859 | PyObject * _argo0 = 0; |
efc5f224 | 3860 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3861 | |
3862 | self = self; | |
efc5f224 | 3863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0)) |
8ab979d7 | 3864 | return NULL; |
1d99702e RD |
3865 | if (_argo0) { |
3866 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3867 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxListCtrl_p."); |
3869 | return NULL; | |
3870 | } | |
3871 | } | |
cf694132 RD |
3872 | { |
3873 | wxPy_BEGIN_ALLOW_THREADS; | |
3874 | _result = (long )wxListCtrl_GetTopItem(_arg0); | |
3875 | ||
3876 | wxPy_END_ALLOW_THREADS; | |
3877 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3878 | return _resultobj; |
3879 | } | |
3880 | ||
3881 | #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) | |
efc5f224 | 3882 | static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3883 | PyObject * _resultobj; |
3884 | long _result; | |
3885 | wxListCtrl * _arg0; | |
3886 | wxPoint * _arg1; | |
3887 | int * _arg2; | |
3888 | int temp; | |
1d99702e | 3889 | PyObject * _argo0 = 0; |
2f90df85 RD |
3890 | wxPoint temp0; |
3891 | PyObject * _obj1 = 0; | |
efc5f224 | 3892 | char *_kwnames[] = { "self","point", NULL }; |
8ab979d7 RD |
3893 | |
3894 | self = self; | |
3895 | { | |
3896 | _arg2 = &temp; | |
3897 | } | |
2f90df85 | 3898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3899 | return NULL; |
1d99702e RD |
3900 | if (_argo0) { |
3901 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3902 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxListCtrl_p."); |
3904 | return NULL; | |
3905 | } | |
3906 | } | |
2f90df85 RD |
3907 | { |
3908 | _arg1 = &temp0; | |
3909 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 3910 | return NULL; |
2f90df85 | 3911 | } |
cf694132 RD |
3912 | { |
3913 | wxPy_BEGIN_ALLOW_THREADS; | |
3914 | _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2); | |
3915 | ||
3916 | wxPy_END_ALLOW_THREADS; | |
3917 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3918 | { |
3919 | PyObject *o; | |
3920 | o = PyInt_FromLong((long) (*_arg2)); | |
3921 | _resultobj = t_output_helper(_resultobj, o); | |
3922 | } | |
3923 | return _resultobj; | |
3924 | } | |
3925 | ||
c368d904 RD |
3926 | #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) |
3927 | static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3928 | PyObject * _resultobj; |
3929 | long _result; | |
3930 | wxListCtrl * _arg0; | |
3931 | long _arg1; | |
3932 | wxListItem * _arg2; | |
1d99702e RD |
3933 | PyObject * _argo0 = 0; |
3934 | PyObject * _argo2 = 0; | |
efc5f224 | 3935 | char *_kwnames[] = { "self","col","info", NULL }; |
8ab979d7 RD |
3936 | |
3937 | self = self; | |
c368d904 | 3938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3939 | return NULL; |
1d99702e RD |
3940 | if (_argo0) { |
3941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
c368d904 | 3943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxListCtrl_p."); |
8ab979d7 RD |
3944 | return NULL; |
3945 | } | |
3946 | } | |
1d99702e RD |
3947 | if (_argo2) { |
3948 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3949 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
c368d904 | 3950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p."); |
8ab979d7 RD |
3951 | return NULL; |
3952 | } | |
3953 | } | |
cf694132 RD |
3954 | { |
3955 | wxPy_BEGIN_ALLOW_THREADS; | |
c368d904 | 3956 | _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2); |
cf694132 RD |
3957 | |
3958 | wxPy_END_ALLOW_THREADS; | |
3959 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3960 | return _resultobj; |
3961 | } | |
3962 | ||
3963 | #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 3964 | static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3965 | PyObject * _resultobj; |
3966 | long _result; | |
3967 | wxListCtrl * _arg0; | |
3968 | long _arg1; | |
3969 | wxString * _arg2; | |
1d99702e RD |
3970 | int _arg3 = (int ) (wxLIST_FORMAT_LEFT); |
3971 | int _arg4 = (int ) -1; | |
3972 | PyObject * _argo0 = 0; | |
8ab979d7 | 3973 | PyObject * _obj2 = 0; |
efc5f224 | 3974 | char *_kwnames[] = { "self","col","heading","format","width", NULL }; |
8ab979d7 RD |
3975 | |
3976 | self = self; | |
efc5f224 | 3977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 3978 | return NULL; |
1d99702e RD |
3979 | if (_argo0) { |
3980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxListCtrl_p."); |
3983 | return NULL; | |
3984 | } | |
3985 | } | |
3986 | { | |
185d7c3e RD |
3987 | #if PYTHON_API_VERSION >= 1009 |
3988 | char* tmpPtr; int tmpSize; | |
3989 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 3990 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
3991 | return NULL; |
3992 | } | |
3993 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3994 | return NULL; | |
3995 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3996 | #else | |
8ab979d7 RD |
3997 | if (!PyString_Check(_obj2)) { |
3998 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3999 | return NULL; | |
4000 | } | |
185d7c3e RD |
4001 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
4002 | #endif | |
8ab979d7 | 4003 | } |
cf694132 RD |
4004 | { |
4005 | wxPy_BEGIN_ALLOW_THREADS; | |
4006 | _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4); | |
4007 | ||
4008 | wxPy_END_ALLOW_THREADS; | |
4009 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
4010 | { |
4011 | if (_obj2) | |
4012 | delete _arg2; | |
4013 | } | |
4014 | return _resultobj; | |
4015 | } | |
4016 | ||
4017 | #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0)) | |
efc5f224 | 4018 | static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4019 | PyObject * _resultobj; |
4020 | long _result; | |
4021 | wxListCtrl * _arg0; | |
4022 | wxListItem * _arg1; | |
1d99702e RD |
4023 | PyObject * _argo0 = 0; |
4024 | PyObject * _argo1 = 0; | |
efc5f224 | 4025 | char *_kwnames[] = { "self","info", NULL }; |
8ab979d7 RD |
4026 | |
4027 | self = self; | |
efc5f224 | 4028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4029 | return NULL; |
1d99702e RD |
4030 | if (_argo0) { |
4031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxListCtrl_p."); |
4034 | return NULL; | |
4035 | } | |
4036 | } | |
1d99702e RD |
4037 | if (_argo1) { |
4038 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4039 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
8ab979d7 RD |
4040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p."); |
4041 | return NULL; | |
4042 | } | |
4043 | } | |
cf694132 RD |
4044 | { |
4045 | wxPy_BEGIN_ALLOW_THREADS; | |
4046 | _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1); | |
4047 | ||
4048 | wxPy_END_ALLOW_THREADS; | |
4049 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
4050 | return _resultobj; |
4051 | } | |
4052 | ||
4053 | #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
efc5f224 | 4054 | static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4055 | PyObject * _resultobj; |
4056 | long _result; | |
4057 | wxListCtrl * _arg0; | |
4058 | long _arg1; | |
4059 | wxString * _arg2; | |
1d99702e | 4060 | PyObject * _argo0 = 0; |
8ab979d7 | 4061 | PyObject * _obj2 = 0; |
efc5f224 | 4062 | char *_kwnames[] = { "self","index","label", NULL }; |
8ab979d7 RD |
4063 | |
4064 | self = self; | |
efc5f224 | 4065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4066 | return NULL; |
1d99702e RD |
4067 | if (_argo0) { |
4068 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxListCtrl_p."); |
4071 | return NULL; | |
4072 | } | |
4073 | } | |
4074 | { | |
185d7c3e RD |
4075 | #if PYTHON_API_VERSION >= 1009 |
4076 | char* tmpPtr; int tmpSize; | |
4077 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 4078 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4079 | return NULL; |
4080 | } | |
4081 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4082 | return NULL; | |
4083 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4084 | #else | |
8ab979d7 RD |
4085 | if (!PyString_Check(_obj2)) { |
4086 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4087 | return NULL; | |
4088 | } | |
185d7c3e RD |
4089 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
4090 | #endif | |
8ab979d7 | 4091 | } |
cf694132 RD |
4092 | { |
4093 | wxPy_BEGIN_ALLOW_THREADS; | |
4094 | _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2); | |
4095 | ||
4096 | wxPy_END_ALLOW_THREADS; | |
4097 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
4098 | { |
4099 | if (_obj2) | |
4100 | delete _arg2; | |
4101 | } | |
4102 | return _resultobj; | |
4103 | } | |
4104 | ||
4105 | #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
efc5f224 | 4106 | static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4107 | PyObject * _resultobj; |
4108 | long _result; | |
4109 | wxListCtrl * _arg0; | |
4110 | long _arg1; | |
4111 | int _arg2; | |
1d99702e | 4112 | PyObject * _argo0 = 0; |
efc5f224 | 4113 | char *_kwnames[] = { "self","index","imageIndex", NULL }; |
8ab979d7 RD |
4114 | |
4115 | self = self; | |
efc5f224 | 4116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4117 | return NULL; |
1d99702e RD |
4118 | if (_argo0) { |
4119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxListCtrl_p."); |
4122 | return NULL; | |
4123 | } | |
4124 | } | |
cf694132 RD |
4125 | { |
4126 | wxPy_BEGIN_ALLOW_THREADS; | |
4127 | _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2); | |
4128 | ||
4129 | wxPy_END_ALLOW_THREADS; | |
4130 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
4131 | return _resultobj; |
4132 | } | |
4133 | ||
4134 | #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4135 | static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4136 | PyObject * _resultobj; |
4137 | long _result; | |
4138 | wxListCtrl * _arg0; | |
4139 | long _arg1; | |
4140 | wxString * _arg2; | |
4141 | int _arg3; | |
1d99702e | 4142 | PyObject * _argo0 = 0; |
8ab979d7 | 4143 | PyObject * _obj2 = 0; |
efc5f224 | 4144 | char *_kwnames[] = { "self","index","label","imageIndex", NULL }; |
8ab979d7 RD |
4145 | |
4146 | self = self; | |
efc5f224 | 4147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4148 | return NULL; |
1d99702e RD |
4149 | if (_argo0) { |
4150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxListCtrl_p."); |
4153 | return NULL; | |
4154 | } | |
4155 | } | |
4156 | { | |
185d7c3e RD |
4157 | #if PYTHON_API_VERSION >= 1009 |
4158 | char* tmpPtr; int tmpSize; | |
4159 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 4160 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4161 | return NULL; |
4162 | } | |
4163 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4164 | return NULL; | |
4165 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4166 | #else | |
8ab979d7 RD |
4167 | if (!PyString_Check(_obj2)) { |
4168 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4169 | return NULL; | |
4170 | } | |
185d7c3e RD |
4171 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
4172 | #endif | |
8ab979d7 | 4173 | } |
cf694132 RD |
4174 | { |
4175 | wxPy_BEGIN_ALLOW_THREADS; | |
4176 | _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3); | |
4177 | ||
4178 | wxPy_END_ALLOW_THREADS; | |
4179 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
4180 | { |
4181 | if (_obj2) | |
4182 | delete _arg2; | |
4183 | } | |
4184 | return _resultobj; | |
4185 | } | |
4186 | ||
4187 | #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1)) | |
efc5f224 | 4188 | static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4189 | PyObject * _resultobj; |
4190 | bool _result; | |
4191 | wxListCtrl * _arg0; | |
4192 | int _arg1; | |
4193 | int _arg2; | |
1d99702e | 4194 | PyObject * _argo0 = 0; |
efc5f224 | 4195 | char *_kwnames[] = { "self","dx","dy", NULL }; |
8ab979d7 RD |
4196 | |
4197 | self = self; | |
efc5f224 | 4198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4199 | return NULL; |
1d99702e RD |
4200 | if (_argo0) { |
4201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxListCtrl_p."); |
4204 | return NULL; | |
4205 | } | |
4206 | } | |
cf694132 RD |
4207 | { |
4208 | wxPy_BEGIN_ALLOW_THREADS; | |
4209 | _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2); | |
4210 | ||
4211 | wxPy_END_ALLOW_THREADS; | |
4212 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4213 | return _resultobj; |
4214 | } | |
4215 | ||
4216 | #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
efc5f224 | 4217 | static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4218 | PyObject * _resultobj; |
4219 | wxListCtrl * _arg0; | |
4220 | wxColour * _arg1; | |
1d99702e | 4221 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4222 | wxColour temp; |
4223 | PyObject * _obj1 = 0; | |
efc5f224 | 4224 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
4225 | |
4226 | self = self; | |
f6bcfd97 | 4227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4228 | return NULL; |
1d99702e RD |
4229 | if (_argo0) { |
4230 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4231 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxListCtrl_p."); |
4233 | return NULL; | |
4234 | } | |
4235 | } | |
f6bcfd97 BP |
4236 | { |
4237 | _arg1 = &temp; | |
4238 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 4239 | return NULL; |
f6bcfd97 | 4240 | } |
cf694132 RD |
4241 | { |
4242 | wxPy_BEGIN_ALLOW_THREADS; | |
4243 | wxListCtrl_SetBackgroundColour(_arg0,*_arg1); | |
4244 | ||
4245 | wxPy_END_ALLOW_THREADS; | |
4246 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4247 | _resultobj = Py_None; |
4248 | return _resultobj; | |
4249 | } | |
4250 | ||
4251 | #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1)) | |
efc5f224 | 4252 | static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4253 | PyObject * _resultobj; |
4254 | bool _result; | |
4255 | wxListCtrl * _arg0; | |
4256 | int _arg1; | |
4257 | wxListItem * _arg2; | |
1d99702e RD |
4258 | PyObject * _argo0 = 0; |
4259 | PyObject * _argo2 = 0; | |
efc5f224 | 4260 | char *_kwnames[] = { "self","col","item", NULL }; |
8ab979d7 RD |
4261 | |
4262 | self = self; | |
efc5f224 | 4263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 4264 | return NULL; |
1d99702e RD |
4265 | if (_argo0) { |
4266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxListCtrl_p."); |
4269 | return NULL; | |
4270 | } | |
4271 | } | |
1d99702e RD |
4272 | if (_argo2) { |
4273 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4274 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
8ab979d7 RD |
4275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p."); |
4276 | return NULL; | |
4277 | } | |
4278 | } | |
cf694132 RD |
4279 | { |
4280 | wxPy_BEGIN_ALLOW_THREADS; | |
4281 | _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2); | |
4282 | ||
4283 | wxPy_END_ALLOW_THREADS; | |
4284 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4285 | return _resultobj; |
4286 | } | |
4287 | ||
4288 | #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1)) | |
efc5f224 | 4289 | static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4290 | PyObject * _resultobj; |
4291 | bool _result; | |
4292 | wxListCtrl * _arg0; | |
4293 | int _arg1; | |
4294 | int _arg2; | |
1d99702e | 4295 | PyObject * _argo0 = 0; |
efc5f224 | 4296 | char *_kwnames[] = { "self","col","width", NULL }; |
8ab979d7 RD |
4297 | |
4298 | self = self; | |
efc5f224 | 4299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4300 | return NULL; |
1d99702e RD |
4301 | if (_argo0) { |
4302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxListCtrl_p."); |
4305 | return NULL; | |
4306 | } | |
4307 | } | |
cf694132 RD |
4308 | { |
4309 | wxPy_BEGIN_ALLOW_THREADS; | |
4310 | _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2); | |
4311 | ||
4312 | wxPy_END_ALLOW_THREADS; | |
4313 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4314 | return _resultobj; |
4315 | } | |
4316 | ||
4317 | #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1)) | |
efc5f224 | 4318 | static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4319 | PyObject * _resultobj; |
4320 | wxListCtrl * _arg0; | |
4321 | wxImageList * _arg1; | |
4322 | int _arg2; | |
1d99702e RD |
4323 | PyObject * _argo0 = 0; |
4324 | PyObject * _argo1 = 0; | |
efc5f224 | 4325 | char *_kwnames[] = { "self","imageList","which", NULL }; |
8ab979d7 RD |
4326 | |
4327 | self = self; | |
efc5f224 | 4328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4329 | return NULL; |
1d99702e RD |
4330 | if (_argo0) { |
4331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxListCtrl_p."); |
4334 | return NULL; | |
4335 | } | |
4336 | } | |
1d99702e RD |
4337 | if (_argo1) { |
4338 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4339 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
8ab979d7 RD |
4340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p."); |
4341 | return NULL; | |
4342 | } | |
4343 | } | |
cf694132 RD |
4344 | { |
4345 | wxPy_BEGIN_ALLOW_THREADS; | |
4346 | wxListCtrl_SetImageList(_arg0,_arg1,_arg2); | |
4347 | ||
4348 | wxPy_END_ALLOW_THREADS; | |
4349 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4350 | _resultobj = Py_None; |
4351 | return _resultobj; | |
4352 | } | |
4353 | ||
4354 | #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) | |
efc5f224 | 4355 | static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4356 | PyObject * _resultobj; |
4357 | bool _result; | |
4358 | wxListCtrl * _arg0; | |
4359 | wxListItem * _arg1; | |
1d99702e RD |
4360 | PyObject * _argo0 = 0; |
4361 | PyObject * _argo1 = 0; | |
efc5f224 | 4362 | char *_kwnames[] = { "self","info", NULL }; |
8ab979d7 RD |
4363 | |
4364 | self = self; | |
efc5f224 | 4365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4366 | return NULL; |
1d99702e RD |
4367 | if (_argo0) { |
4368 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4369 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxListCtrl_p."); |
4371 | return NULL; | |
4372 | } | |
4373 | } | |
1d99702e RD |
4374 | if (_argo1) { |
4375 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4376 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
8ab979d7 RD |
4377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p."); |
4378 | return NULL; | |
4379 | } | |
4380 | } | |
cf694132 RD |
4381 | { |
4382 | wxPy_BEGIN_ALLOW_THREADS; | |
4383 | _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1); | |
4384 | ||
4385 | wxPy_END_ALLOW_THREADS; | |
4386 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4387 | return _resultobj; |
4388 | } | |
4389 | ||
af309447 | 4390 | #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 4391 | static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4392 | PyObject * _resultobj; |
4393 | long _result; | |
4394 | wxListCtrl * _arg0; | |
4395 | long _arg1; | |
4396 | int _arg2; | |
4397 | wxString * _arg3; | |
1d99702e RD |
4398 | int _arg4 = (int ) -1; |
4399 | PyObject * _argo0 = 0; | |
8ab979d7 | 4400 | PyObject * _obj3 = 0; |
efc5f224 | 4401 | char *_kwnames[] = { "self","index","col","label","imageId", NULL }; |
8ab979d7 RD |
4402 | |
4403 | self = self; | |
efc5f224 | 4404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
8ab979d7 | 4405 | return NULL; |
1d99702e RD |
4406 | if (_argo0) { |
4407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
af309447 | 4409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxListCtrl_p."); |
8ab979d7 RD |
4410 | return NULL; |
4411 | } | |
4412 | } | |
4413 | { | |
185d7c3e RD |
4414 | #if PYTHON_API_VERSION >= 1009 |
4415 | char* tmpPtr; int tmpSize; | |
4416 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 4417 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4418 | return NULL; |
4419 | } | |
4420 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
4421 | return NULL; | |
4422 | _arg3 = new wxString(tmpPtr, tmpSize); | |
4423 | #else | |
8ab979d7 RD |
4424 | if (!PyString_Check(_obj3)) { |
4425 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4426 | return NULL; | |
4427 | } | |
185d7c3e RD |
4428 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
4429 | #endif | |
8ab979d7 | 4430 | } |
cf694132 RD |
4431 | { |
4432 | wxPy_BEGIN_ALLOW_THREADS; | |
4433 | _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4); | |
4434 | ||
4435 | wxPy_END_ALLOW_THREADS; | |
4436 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
4437 | { |
4438 | if (_obj3) | |
4439 | delete _arg3; | |
4440 | } | |
4441 | return _resultobj; | |
4442 | } | |
4443 | ||
4444 | #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1)) | |
efc5f224 | 4445 | static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4446 | PyObject * _resultobj; |
4447 | bool _result; | |
4448 | wxListCtrl * _arg0; | |
4449 | long _arg1; | |
4450 | long _arg2; | |
1d99702e | 4451 | PyObject * _argo0 = 0; |
efc5f224 | 4452 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
4453 | |
4454 | self = self; | |
efc5f224 | 4455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4456 | return NULL; |
1d99702e RD |
4457 | if (_argo0) { |
4458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxListCtrl_p."); |
4461 | return NULL; | |
4462 | } | |
4463 | } | |
cf694132 RD |
4464 | { |
4465 | wxPy_BEGIN_ALLOW_THREADS; | |
4466 | _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2); | |
4467 | ||
4468 | wxPy_END_ALLOW_THREADS; | |
4469 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4470 | return _resultobj; |
4471 | } | |
4472 | ||
4473 | #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4474 | static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4475 | PyObject * _resultobj; |
4476 | bool _result; | |
4477 | wxListCtrl * _arg0; | |
4478 | long _arg1; | |
4479 | int _arg2; | |
4480 | int _arg3; | |
1d99702e | 4481 | PyObject * _argo0 = 0; |
efc5f224 | 4482 | char *_kwnames[] = { "self","item","image","selImage", NULL }; |
8ab979d7 RD |
4483 | |
4484 | self = self; | |
efc5f224 | 4485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 4486 | return NULL; |
1d99702e RD |
4487 | if (_argo0) { |
4488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxListCtrl_p."); |
4491 | return NULL; | |
4492 | } | |
4493 | } | |
cf694132 RD |
4494 | { |
4495 | wxPy_BEGIN_ALLOW_THREADS; | |
4496 | _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3); | |
4497 | ||
4498 | wxPy_END_ALLOW_THREADS; | |
4499 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4500 | return _resultobj; |
4501 | } | |
4502 | ||
4503 | #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1)) | |
efc5f224 | 4504 | static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4505 | PyObject * _resultobj; |
4506 | bool _result; | |
4507 | wxListCtrl * _arg0; | |
4508 | long _arg1; | |
4509 | wxPoint * _arg2; | |
1d99702e | 4510 | PyObject * _argo0 = 0; |
2f90df85 RD |
4511 | wxPoint temp; |
4512 | PyObject * _obj2 = 0; | |
efc5f224 | 4513 | char *_kwnames[] = { "self","item","pos", NULL }; |
8ab979d7 RD |
4514 | |
4515 | self = self; | |
2f90df85 | 4516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4517 | return NULL; |
1d99702e RD |
4518 | if (_argo0) { |
4519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxListCtrl_p."); |
4522 | return NULL; | |
4523 | } | |
4524 | } | |
2f90df85 RD |
4525 | { |
4526 | _arg2 = &temp; | |
4527 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 4528 | return NULL; |
2f90df85 | 4529 | } |
cf694132 RD |
4530 | { |
4531 | wxPy_BEGIN_ALLOW_THREADS; | |
4532 | _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2); | |
4533 | ||
4534 | wxPy_END_ALLOW_THREADS; | |
4535 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4536 | return _resultobj; |
4537 | } | |
4538 | ||
4539 | #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4540 | static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4541 | PyObject * _resultobj; |
4542 | bool _result; | |
4543 | wxListCtrl * _arg0; | |
4544 | long _arg1; | |
4545 | long _arg2; | |
4546 | long _arg3; | |
1d99702e | 4547 | PyObject * _argo0 = 0; |
efc5f224 | 4548 | char *_kwnames[] = { "self","item","state","stateMask", NULL }; |
8ab979d7 RD |
4549 | |
4550 | self = self; | |
efc5f224 | 4551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 4552 | return NULL; |
1d99702e RD |
4553 | if (_argo0) { |
4554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxListCtrl_p."); |
4557 | return NULL; | |
4558 | } | |
4559 | } | |
cf694132 RD |
4560 | { |
4561 | wxPy_BEGIN_ALLOW_THREADS; | |
4562 | _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3); | |
4563 | ||
4564 | wxPy_END_ALLOW_THREADS; | |
4565 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4566 | return _resultobj; |
4567 | } | |
4568 | ||
4569 | #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) | |
efc5f224 | 4570 | static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4571 | PyObject * _resultobj; |
4572 | wxListCtrl * _arg0; | |
4573 | long _arg1; | |
4574 | wxString * _arg2; | |
1d99702e | 4575 | PyObject * _argo0 = 0; |
8ab979d7 | 4576 | PyObject * _obj2 = 0; |
efc5f224 | 4577 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
4578 | |
4579 | self = self; | |
efc5f224 | 4580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4581 | return NULL; |
1d99702e RD |
4582 | if (_argo0) { |
4583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxListCtrl_p."); |
4586 | return NULL; | |
4587 | } | |
4588 | } | |
4589 | { | |
185d7c3e RD |
4590 | #if PYTHON_API_VERSION >= 1009 |
4591 | char* tmpPtr; int tmpSize; | |
4592 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 4593 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4594 | return NULL; |
4595 | } | |
4596 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4597 | return NULL; | |
4598 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4599 | #else | |
8ab979d7 RD |
4600 | if (!PyString_Check(_obj2)) { |
4601 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4602 | return NULL; | |
4603 | } | |
185d7c3e RD |
4604 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
4605 | #endif | |
8ab979d7 | 4606 | } |
cf694132 RD |
4607 | { |
4608 | wxPy_BEGIN_ALLOW_THREADS; | |
4609 | wxListCtrl_SetItemText(_arg0,_arg1,*_arg2); | |
4610 | ||
4611 | wxPy_END_ALLOW_THREADS; | |
4612 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4613 | _resultobj = Py_None; |
4614 | { | |
4615 | if (_obj2) | |
4616 | delete _arg2; | |
4617 | } | |
4618 | return _resultobj; | |
4619 | } | |
4620 | ||
4621 | #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1)) | |
efc5f224 | 4622 | static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4623 | PyObject * _resultobj; |
4624 | wxListCtrl * _arg0; | |
4625 | long _arg1; | |
1d99702e RD |
4626 | bool _arg2 = (bool ) TRUE; |
4627 | PyObject * _argo0 = 0; | |
4628 | int tempbool2 = (int) TRUE; | |
efc5f224 | 4629 | char *_kwnames[] = { "self","style","add", NULL }; |
8ab979d7 RD |
4630 | |
4631 | self = self; | |
efc5f224 | 4632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 4633 | return NULL; |
1d99702e RD |
4634 | if (_argo0) { |
4635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxListCtrl_p."); |
4638 | return NULL; | |
4639 | } | |
4640 | } | |
4641 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
4642 | { |
4643 | wxPy_BEGIN_ALLOW_THREADS; | |
4644 | wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2); | |
4645 | ||
4646 | wxPy_END_ALLOW_THREADS; | |
4647 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4648 | _resultobj = Py_None; |
4649 | return _resultobj; | |
4650 | } | |
4651 | ||
8ab979d7 | 4652 | #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
efc5f224 | 4653 | static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4654 | PyObject * _resultobj; |
4655 | wxListCtrl * _arg0; | |
4656 | long _arg1; | |
1d99702e | 4657 | PyObject * _argo0 = 0; |
efc5f224 | 4658 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
4659 | |
4660 | self = self; | |
efc5f224 | 4661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4662 | return NULL; |
1d99702e RD |
4663 | if (_argo0) { |
4664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxListCtrl_p."); |
4667 | return NULL; | |
4668 | } | |
4669 | } | |
cf694132 RD |
4670 | { |
4671 | wxPy_BEGIN_ALLOW_THREADS; | |
4672 | wxListCtrl_SetWindowStyleFlag(_arg0,_arg1); | |
4673 | ||
4674 | wxPy_END_ALLOW_THREADS; | |
4675 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4676 | _resultobj = Py_None; |
4677 | return _resultobj; | |
4678 | } | |
4679 | ||
dcd38683 RD |
4680 | static bool wxListCtrl_SortItems(wxListCtrl *self,PyObject * func) { |
4681 | if (!PyCallable_Check(func)) | |
4682 | return FALSE; | |
4683 | ||
f6bcfd97 | 4684 | return self->SortItems(wxPyListCtrl_SortItems, (long)func); |
dcd38683 RD |
4685 | } |
4686 | static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4687 | PyObject * _resultobj; | |
4688 | bool _result; | |
4689 | wxListCtrl * _arg0; | |
4690 | PyObject * _arg1; | |
4691 | PyObject * _argo0 = 0; | |
4692 | PyObject * _obj1 = 0; | |
4693 | char *_kwnames[] = { "self","func", NULL }; | |
4694 | ||
4695 | self = self; | |
4696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1)) | |
4697 | return NULL; | |
4698 | if (_argo0) { | |
4699 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4700 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
4701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxListCtrl_p."); | |
4702 | return NULL; | |
4703 | } | |
4704 | } | |
4705 | { | |
4706 | _arg1 = _obj1; | |
4707 | } | |
4708 | { | |
4709 | wxPy_BEGIN_ALLOW_THREADS; | |
4710 | _result = (bool )wxListCtrl_SortItems(_arg0,_arg1); | |
4711 | ||
4712 | wxPy_END_ALLOW_THREADS; | |
4713 | } _resultobj = Py_BuildValue("i",_result); | |
4714 | return _resultobj; | |
4715 | } | |
4716 | ||
d5c9047a | 4717 | #define new_wxTreeItemId() (new wxTreeItemId()) |
efc5f224 | 4718 | static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4719 | PyObject * _resultobj; |
d5c9047a | 4720 | wxTreeItemId * _result; |
efc5f224 | 4721 | char *_kwnames[] = { NULL }; |
d5c9047a | 4722 | char _ptemp[128]; |
8ab979d7 RD |
4723 | |
4724 | self = self; | |
efc5f224 | 4725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames)) |
8ab979d7 | 4726 | return NULL; |
cf694132 RD |
4727 | { |
4728 | wxPy_BEGIN_ALLOW_THREADS; | |
4729 | _result = (wxTreeItemId *)new_wxTreeItemId(); | |
4730 | ||
4731 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4732 | } if (_result) { |
4733 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
4734 | _resultobj = Py_BuildValue("s",_ptemp); | |
4735 | } else { | |
4736 | Py_INCREF(Py_None); | |
4737 | _resultobj = Py_None; | |
4738 | } | |
8ab979d7 RD |
4739 | return _resultobj; |
4740 | } | |
4741 | ||
d5c9047a | 4742 | #define delete_wxTreeItemId(_swigobj) (delete _swigobj) |
efc5f224 | 4743 | static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4744 | PyObject * _resultobj; |
d5c9047a | 4745 | wxTreeItemId * _arg0; |
1d99702e | 4746 | PyObject * _argo0 = 0; |
efc5f224 | 4747 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4748 | |
4749 | self = self; | |
efc5f224 | 4750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0)) |
8ab979d7 | 4751 | return NULL; |
1d99702e RD |
4752 | if (_argo0) { |
4753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 4755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
4756 | return NULL; |
4757 | } | |
4758 | } | |
cf694132 RD |
4759 | { |
4760 | wxPy_BEGIN_ALLOW_THREADS; | |
4761 | delete_wxTreeItemId(_arg0); | |
4762 | ||
4763 | wxPy_END_ALLOW_THREADS; | |
4764 | } Py_INCREF(Py_None); | |
d5c9047a | 4765 | _resultobj = Py_None; |
8ab979d7 RD |
4766 | return _resultobj; |
4767 | } | |
4768 | ||
d5c9047a | 4769 | #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk()) |
efc5f224 | 4770 | static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4771 | PyObject * _resultobj; |
d5c9047a RD |
4772 | bool _result; |
4773 | wxTreeItemId * _arg0; | |
1d99702e | 4774 | PyObject * _argo0 = 0; |
efc5f224 | 4775 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4776 | |
4777 | self = self; | |
efc5f224 | 4778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0)) |
8ab979d7 | 4779 | return NULL; |
1d99702e RD |
4780 | if (_argo0) { |
4781 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4782 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 4783 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
4784 | return NULL; |
4785 | } | |
4786 | } | |
cf694132 RD |
4787 | { |
4788 | wxPy_BEGIN_ALLOW_THREADS; | |
4789 | _result = (bool )wxTreeItemId_IsOk(_arg0); | |
4790 | ||
4791 | wxPy_END_ALLOW_THREADS; | |
4792 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4793 | return _resultobj; |
4794 | } | |
4795 | ||
f6bcfd97 | 4796 | static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) { |
c368d904 | 4797 | if (! other) return -1; |
f6bcfd97 BP |
4798 | return *self != *other; |
4799 | } | |
4800 | static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4801 | PyObject * _resultobj; | |
4802 | int _result; | |
4803 | wxTreeItemId * _arg0; | |
4804 | wxTreeItemId * _arg1; | |
4805 | PyObject * _argo0 = 0; | |
4806 | PyObject * _argo1 = 0; | |
4807 | char *_kwnames[] = { "self","other", NULL }; | |
4808 | ||
4809 | self = self; | |
4810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1)) | |
4811 | return NULL; | |
4812 | if (_argo0) { | |
4813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
4815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
4816 | return NULL; | |
4817 | } | |
4818 | } | |
4819 | if (_argo1) { | |
4820 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4821 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
4822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
4823 | return NULL; | |
4824 | } | |
4825 | } | |
4826 | { | |
4827 | wxPy_BEGIN_ALLOW_THREADS; | |
4828 | _result = (int )wxTreeItemId___cmp__(_arg0,_arg1); | |
4829 | ||
4830 | wxPy_END_ALLOW_THREADS; | |
4831 | } _resultobj = Py_BuildValue("i",_result); | |
4832 | return _resultobj; | |
4833 | } | |
4834 | ||
9416aa89 RD |
4835 | static void *SwigwxPyTreeItemDataTowxObject(void *ptr) { |
4836 | wxPyTreeItemData *src; | |
4837 | wxObject *dest; | |
4838 | src = (wxPyTreeItemData *) ptr; | |
4839 | dest = (wxObject *) src; | |
4840 | return (void *) dest; | |
4841 | } | |
4842 | ||
cf694132 | 4843 | #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) |
efc5f224 | 4844 | static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4845 | PyObject * _resultobj; |
cf694132 | 4846 | wxPyTreeItemData * _result; |
1d99702e | 4847 | PyObject * _arg0 = (PyObject *) NULL; |
cf694132 | 4848 | PyObject * _obj0 = 0; |
efc5f224 | 4849 | char *_kwnames[] = { "obj", NULL }; |
d5c9047a | 4850 | char _ptemp[128]; |
8ab979d7 RD |
4851 | |
4852 | self = self; | |
efc5f224 | 4853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0)) |
8ab979d7 | 4854 | return NULL; |
cf694132 RD |
4855 | if (_obj0) |
4856 | { | |
4857 | _arg0 = _obj0; | |
4858 | } | |
4859 | { | |
4860 | wxPy_BEGIN_ALLOW_THREADS; | |
4861 | _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0); | |
4862 | ||
4863 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4864 | } if (_result) { |
4865 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
4866 | _resultobj = Py_BuildValue("s",_ptemp); | |
4867 | } else { | |
4868 | Py_INCREF(Py_None); | |
4869 | _resultobj = Py_None; | |
4870 | } | |
8ab979d7 RD |
4871 | return _resultobj; |
4872 | } | |
4873 | ||
cf694132 | 4874 | #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData()) |
efc5f224 | 4875 | static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
4876 | PyObject * _resultobj; |
4877 | PyObject * _result; | |
4878 | wxPyTreeItemData * _arg0; | |
1d99702e | 4879 | PyObject * _argo0 = 0; |
efc5f224 | 4880 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
4881 | |
4882 | self = self; | |
efc5f224 | 4883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0)) |
cf694132 | 4884 | return NULL; |
1d99702e RD |
4885 | if (_argo0) { |
4886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 RD |
4888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p."); |
4889 | return NULL; | |
4890 | } | |
4891 | } | |
4892 | { | |
4893 | wxPy_BEGIN_ALLOW_THREADS; | |
4894 | _result = (PyObject *)wxTreeItemData_GetData(_arg0); | |
4895 | ||
4896 | wxPy_END_ALLOW_THREADS; | |
4897 | }{ | |
4898 | _resultobj = _result; | |
4899 | } | |
4900 | return _resultobj; | |
4901 | } | |
4902 | ||
4903 | #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
efc5f224 | 4904 | static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4905 | PyObject * _resultobj; |
cf694132 RD |
4906 | wxPyTreeItemData * _arg0; |
4907 | PyObject * _arg1; | |
1d99702e | 4908 | PyObject * _argo0 = 0; |
cf694132 | 4909 | PyObject * _obj1 = 0; |
efc5f224 | 4910 | char *_kwnames[] = { "self","obj", NULL }; |
8ab979d7 RD |
4911 | |
4912 | self = self; | |
efc5f224 | 4913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4914 | return NULL; |
1d99702e RD |
4915 | if (_argo0) { |
4916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 4918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
4919 | return NULL; |
4920 | } | |
4921 | } | |
cf694132 RD |
4922 | { |
4923 | _arg1 = _obj1; | |
4924 | } | |
4925 | { | |
4926 | wxPy_BEGIN_ALLOW_THREADS; | |
4927 | wxTreeItemData_SetData(_arg0,_arg1); | |
4928 | ||
4929 | wxPy_END_ALLOW_THREADS; | |
4930 | } Py_INCREF(Py_None); | |
d5c9047a | 4931 | _resultobj = Py_None; |
8ab979d7 RD |
4932 | return _resultobj; |
4933 | } | |
4934 | ||
630d84f2 | 4935 | #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 4936 | static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4937 | PyObject * _resultobj; |
d5c9047a | 4938 | wxTreeItemId * _result; |
cf694132 | 4939 | wxPyTreeItemData * _arg0; |
1d99702e | 4940 | PyObject * _argo0 = 0; |
efc5f224 | 4941 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4942 | char _ptemp[128]; |
4943 | ||
4944 | self = self; | |
efc5f224 | 4945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0)) |
8ab979d7 | 4946 | return NULL; |
1d99702e RD |
4947 | if (_argo0) { |
4948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 4950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
4951 | return NULL; |
4952 | } | |
4953 | } | |
cf694132 RD |
4954 | { |
4955 | wxPy_BEGIN_ALLOW_THREADS; | |
4956 | const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0); | |
d5c9047a | 4957 | _result = (wxTreeItemId *) &_result_ref; |
cf694132 RD |
4958 | |
4959 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4960 | } if (_result) { |
4961 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
4962 | _resultobj = Py_BuildValue("s",_ptemp); | |
4963 | } else { | |
4964 | Py_INCREF(Py_None); | |
4965 | _resultobj = Py_None; | |
4966 | } | |
8ab979d7 RD |
4967 | return _resultobj; |
4968 | } | |
4969 | ||
630d84f2 | 4970 | #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
efc5f224 | 4971 | static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
630d84f2 | 4972 | PyObject * _resultobj; |
cf694132 | 4973 | wxPyTreeItemData * _arg0; |
630d84f2 | 4974 | wxTreeItemId * _arg1; |
1d99702e RD |
4975 | PyObject * _argo0 = 0; |
4976 | PyObject * _argo1 = 0; | |
efc5f224 | 4977 | char *_kwnames[] = { "self","id", NULL }; |
630d84f2 RD |
4978 | |
4979 | self = self; | |
efc5f224 | 4980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1)) |
630d84f2 | 4981 | return NULL; |
1d99702e RD |
4982 | if (_argo0) { |
4983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 4985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p."); |
630d84f2 RD |
4986 | return NULL; |
4987 | } | |
4988 | } | |
1d99702e RD |
4989 | if (_argo1) { |
4990 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4991 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
630d84f2 RD |
4992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p."); |
4993 | return NULL; | |
4994 | } | |
4995 | } | |
cf694132 RD |
4996 | { |
4997 | wxPy_BEGIN_ALLOW_THREADS; | |
4998 | wxTreeItemData_SetId(_arg0,*_arg1); | |
4999 | ||
5000 | wxPy_END_ALLOW_THREADS; | |
5001 | } Py_INCREF(Py_None); | |
630d84f2 RD |
5002 | _resultobj = Py_None; |
5003 | return _resultobj; | |
5004 | } | |
5005 | ||
8bf5d46e RD |
5006 | static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) { |
5007 | wxTreeEvent *src; | |
5008 | wxNotifyEvent *dest; | |
5009 | src = (wxTreeEvent *) ptr; | |
5010 | dest = (wxNotifyEvent *) src; | |
5011 | return (void *) dest; | |
5012 | } | |
5013 | ||
8ab979d7 RD |
5014 | static void *SwigwxTreeEventTowxCommandEvent(void *ptr) { |
5015 | wxTreeEvent *src; | |
5016 | wxCommandEvent *dest; | |
5017 | src = (wxTreeEvent *) ptr; | |
5018 | dest = (wxCommandEvent *) src; | |
5019 | return (void *) dest; | |
5020 | } | |
5021 | ||
5022 | static void *SwigwxTreeEventTowxEvent(void *ptr) { | |
5023 | wxTreeEvent *src; | |
5024 | wxEvent *dest; | |
5025 | src = (wxTreeEvent *) ptr; | |
5026 | dest = (wxEvent *) src; | |
5027 | return (void *) dest; | |
5028 | } | |
5029 | ||
9416aa89 RD |
5030 | static void *SwigwxTreeEventTowxObject(void *ptr) { |
5031 | wxTreeEvent *src; | |
5032 | wxObject *dest; | |
5033 | src = (wxTreeEvent *) ptr; | |
5034 | dest = (wxObject *) src; | |
5035 | return (void *) dest; | |
5036 | } | |
5037 | ||
d5c9047a | 5038 | #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
efc5f224 | 5039 | static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5040 | PyObject * _resultobj; |
d5c9047a | 5041 | wxTreeItemId * _result; |
8ab979d7 | 5042 | wxTreeEvent * _arg0; |
1d99702e | 5043 | PyObject * _argo0 = 0; |
efc5f224 | 5044 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 5045 | char _ptemp[128]; |
8ab979d7 RD |
5046 | |
5047 | self = self; | |
efc5f224 | 5048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 5049 | return NULL; |
1d99702e RD |
5050 | if (_argo0) { |
5051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 5053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
5054 | return NULL; |
5055 | } | |
5056 | } | |
cf694132 RD |
5057 | { |
5058 | wxPy_BEGIN_ALLOW_THREADS; | |
5059 | _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0)); | |
5060 | ||
5061 | wxPy_END_ALLOW_THREADS; | |
5062 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 5063 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
5064 | return _resultobj; |
5065 | } | |
5066 | ||
d5c9047a | 5067 | #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
efc5f224 | 5068 | static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5069 | PyObject * _resultobj; |
d5c9047a | 5070 | wxTreeItemId * _result; |
8ab979d7 | 5071 | wxTreeEvent * _arg0; |
1d99702e | 5072 | PyObject * _argo0 = 0; |
efc5f224 | 5073 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5074 | char _ptemp[128]; |
5075 | ||
5076 | self = self; | |
efc5f224 | 5077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0)) |
8ab979d7 | 5078 | return NULL; |
1d99702e RD |
5079 | if (_argo0) { |
5080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 5082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
5083 | return NULL; |
5084 | } | |
5085 | } | |
cf694132 RD |
5086 | { |
5087 | wxPy_BEGIN_ALLOW_THREADS; | |
5088 | _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0)); | |
5089 | ||
5090 | wxPy_END_ALLOW_THREADS; | |
5091 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8ab979d7 RD |
5092 | _resultobj = Py_BuildValue("s",_ptemp); |
5093 | return _resultobj; | |
5094 | } | |
5095 | ||
d5c9047a | 5096 | #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
efc5f224 | 5097 | static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5098 | PyObject * _resultobj; |
d5c9047a | 5099 | wxPoint * _result; |
8ab979d7 | 5100 | wxTreeEvent * _arg0; |
1d99702e | 5101 | PyObject * _argo0 = 0; |
efc5f224 | 5102 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 5103 | char _ptemp[128]; |
8ab979d7 RD |
5104 | |
5105 | self = self; | |
efc5f224 | 5106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 5107 | return NULL; |
1d99702e RD |
5108 | if (_argo0) { |
5109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 5111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
5112 | return NULL; |
5113 | } | |
5114 | } | |
cf694132 RD |
5115 | { |
5116 | wxPy_BEGIN_ALLOW_THREADS; | |
5117 | _result = new wxPoint (wxTreeEvent_GetPoint(_arg0)); | |
5118 | ||
5119 | wxPy_END_ALLOW_THREADS; | |
5120 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
d5c9047a | 5121 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
5122 | return _resultobj; |
5123 | } | |
5124 | ||
d5c9047a | 5125 | #define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
efc5f224 | 5126 | static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5127 | PyObject * _resultobj; |
d5c9047a | 5128 | int _result; |
8ab979d7 | 5129 | wxTreeEvent * _arg0; |
1d99702e | 5130 | PyObject * _argo0 = 0; |
efc5f224 | 5131 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5132 | |
5133 | self = self; | |
efc5f224 | 5134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 5135 | return NULL; |
1d99702e RD |
5136 | if (_argo0) { |
5137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 5139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
5140 | return NULL; |
5141 | } | |
5142 | } | |
cf694132 RD |
5143 | { |
5144 | wxPy_BEGIN_ALLOW_THREADS; | |
5145 | _result = (int )wxTreeEvent_GetCode(_arg0); | |
5146 | ||
5147 | wxPy_END_ALLOW_THREADS; | |
5148 | } _resultobj = Py_BuildValue("i",_result); | |
d5c9047a RD |
5149 | return _resultobj; |
5150 | } | |
5151 | ||
8bf5d46e | 5152 | #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 5153 | static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 5154 | PyObject * _resultobj; |
8bf5d46e | 5155 | wxString * _result; |
d5c9047a | 5156 | wxTreeEvent * _arg0; |
1d99702e | 5157 | PyObject * _argo0 = 0; |
efc5f224 | 5158 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
5159 | |
5160 | self = self; | |
efc5f224 | 5161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0)) |
d5c9047a | 5162 | return NULL; |
1d99702e RD |
5163 | if (_argo0) { |
5164 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5165 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
8bf5d46e | 5166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p."); |
d5c9047a RD |
5167 | return NULL; |
5168 | } | |
5169 | } | |
cf694132 RD |
5170 | { |
5171 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e RD |
5172 | const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0); |
5173 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
5174 | |
5175 | wxPy_END_ALLOW_THREADS; | |
8bf5d46e | 5176 | }{ |
eec92d76 | 5177 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8bf5d46e | 5178 | } |
8ab979d7 RD |
5179 | return _resultobj; |
5180 | } | |
5181 | ||
f6bcfd97 BP |
5182 | static void *SwigwxPyTreeCtrlTowxControl(void *ptr) { |
5183 | wxPyTreeCtrl *src; | |
8ab979d7 | 5184 | wxControl *dest; |
f6bcfd97 | 5185 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
5186 | dest = (wxControl *) src; |
5187 | return (void *) dest; | |
5188 | } | |
5189 | ||
f6bcfd97 BP |
5190 | static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) { |
5191 | wxPyTreeCtrl *src; | |
8ab979d7 | 5192 | wxWindow *dest; |
f6bcfd97 | 5193 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
5194 | dest = (wxWindow *) src; |
5195 | return (void *) dest; | |
5196 | } | |
5197 | ||
f6bcfd97 BP |
5198 | static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) { |
5199 | wxPyTreeCtrl *src; | |
8ab979d7 | 5200 | wxEvtHandler *dest; |
f6bcfd97 | 5201 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
5202 | dest = (wxEvtHandler *) src; |
5203 | return (void *) dest; | |
5204 | } | |
5205 | ||
9416aa89 RD |
5206 | static void *SwigwxPyTreeCtrlTowxObject(void *ptr) { |
5207 | wxPyTreeCtrl *src; | |
5208 | wxObject *dest; | |
5209 | src = (wxPyTreeCtrl *) ptr; | |
5210 | dest = (wxObject *) src; | |
5211 | return (void *) dest; | |
5212 | } | |
5213 | ||
f6bcfd97 | 5214 | #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 5215 | static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5216 | PyObject * _resultobj; |
f6bcfd97 | 5217 | wxPyTreeCtrl * _result; |
8ab979d7 | 5218 | wxWindow * _arg0; |
1d99702e | 5219 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
5220 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5221 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 5222 | long _arg4 = (long ) wxTR_HAS_BUTTONS|wxTR_LINES_AT_ROOT; |
e508a2b6 | 5223 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
5224 | char * _arg6 = (char *) "wxTreeCtrl"; |
5225 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5226 | wxPoint temp; |
5227 | PyObject * _obj2 = 0; | |
5228 | wxSize temp0; | |
5229 | PyObject * _obj3 = 0; | |
1d99702e | 5230 | PyObject * _argo5 = 0; |
efc5f224 | 5231 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
5232 | char _ptemp[128]; |
5233 | ||
5234 | self = self; | |
2f90df85 | 5235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 5236 | return NULL; |
1d99702e RD |
5237 | if (_argo0) { |
5238 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5239 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p."); |
5241 | return NULL; | |
5242 | } | |
5243 | } | |
2f90df85 RD |
5244 | if (_obj2) |
5245 | { | |
5246 | _arg2 = &temp; | |
5247 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5248 | return NULL; |
2f90df85 RD |
5249 | } |
5250 | if (_obj3) | |
5251 | { | |
5252 | _arg3 = &temp0; | |
5253 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5254 | return NULL; |
2f90df85 | 5255 | } |
1d99702e RD |
5256 | if (_argo5) { |
5257 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5258 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
5259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p."); |
5260 | return NULL; | |
5261 | } | |
5262 | } | |
cf694132 RD |
5263 | { |
5264 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5265 | _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
cf694132 RD |
5266 | |
5267 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 5268 | } if (_result) { |
f6bcfd97 | 5269 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); |
1d99702e RD |
5270 | _resultobj = Py_BuildValue("s",_ptemp); |
5271 | } else { | |
5272 | Py_INCREF(Py_None); | |
5273 | _resultobj = Py_None; | |
5274 | } | |
8ab979d7 RD |
5275 | return _resultobj; |
5276 | } | |
5277 | ||
f6bcfd97 BP |
5278 | #define wxTreeCtrl__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) |
5279 | static PyObject *_wrap_wxTreeCtrl__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5280 | PyObject * _resultobj; | |
5281 | wxPyTreeCtrl * _arg0; | |
5282 | PyObject * _arg1; | |
5283 | PyObject * _arg2; | |
5284 | PyObject * _argo0 = 0; | |
5285 | PyObject * _obj1 = 0; | |
5286 | PyObject * _obj2 = 0; | |
5287 | char *_kwnames[] = { "self","self","_class", NULL }; | |
5288 | ||
5289 | self = self; | |
5290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) | |
5291 | return NULL; | |
5292 | if (_argo0) { | |
5293 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5294 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
5295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setSelf. Expected _wxPyTreeCtrl_p."); | |
5296 | return NULL; | |
5297 | } | |
5298 | } | |
5299 | { | |
5300 | _arg1 = _obj1; | |
5301 | } | |
5302 | { | |
5303 | _arg2 = _obj2; | |
5304 | } | |
5305 | { | |
5306 | wxPy_BEGIN_ALLOW_THREADS; | |
5307 | wxTreeCtrl__setSelf(_arg0,_arg1,_arg2); | |
5308 | ||
5309 | wxPy_END_ALLOW_THREADS; | |
5310 | } Py_INCREF(Py_None); | |
5311 | _resultobj = Py_None; | |
5312 | return _resultobj; | |
5313 | } | |
5314 | ||
1b62f00d RD |
5315 | #define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0)) |
5316 | static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5317 | PyObject * _resultobj; | |
5318 | wxPyTreeCtrl * _arg0; | |
5319 | wxImageList * _arg1; | |
5320 | PyObject * _argo0 = 0; | |
5321 | PyObject * _argo1 = 0; | |
5322 | char *_kwnames[] = { "self","imageList", NULL }; | |
5323 | ||
5324 | self = self; | |
5325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1)) | |
5326 | return NULL; | |
5327 | if (_argo0) { | |
5328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
5330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p."); | |
5331 | return NULL; | |
5332 | } | |
5333 | } | |
5334 | if (_argo1) { | |
5335 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5336 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
5337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p."); | |
5338 | return NULL; | |
5339 | } | |
5340 | } | |
5341 | { | |
5342 | wxPy_BEGIN_ALLOW_THREADS; | |
5343 | wxTreeCtrl_AssignImageList(_arg0,_arg1); | |
5344 | ||
5345 | wxPy_END_ALLOW_THREADS; | |
5346 | } Py_INCREF(Py_None); | |
5347 | _resultobj = Py_None; | |
5348 | return _resultobj; | |
5349 | } | |
5350 | ||
d5c9047a | 5351 | #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount()) |
efc5f224 | 5352 | static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5353 | PyObject * _resultobj; |
c127177f | 5354 | size_t _result; |
f6bcfd97 | 5355 | wxPyTreeCtrl * _arg0; |
1d99702e | 5356 | PyObject * _argo0 = 0; |
efc5f224 | 5357 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5358 | |
5359 | self = self; | |
efc5f224 | 5360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0)) |
8ab979d7 | 5361 | return NULL; |
1d99702e RD |
5362 | if (_argo0) { |
5363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5366 | return NULL; |
5367 | } | |
5368 | } | |
cf694132 RD |
5369 | { |
5370 | wxPy_BEGIN_ALLOW_THREADS; | |
c127177f | 5371 | _result = (size_t )wxTreeCtrl_GetCount(_arg0); |
cf694132 RD |
5372 | |
5373 | wxPy_END_ALLOW_THREADS; | |
c127177f | 5374 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5375 | return _resultobj; |
5376 | } | |
5377 | ||
d5c9047a | 5378 | #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) |
efc5f224 | 5379 | static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5380 | PyObject * _resultobj; |
d5c9047a | 5381 | unsigned int _result; |
f6bcfd97 | 5382 | wxPyTreeCtrl * _arg0; |
1d99702e | 5383 | PyObject * _argo0 = 0; |
efc5f224 | 5384 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5385 | |
5386 | self = self; | |
efc5f224 | 5387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0)) |
8ab979d7 | 5388 | return NULL; |
1d99702e RD |
5389 | if (_argo0) { |
5390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5393 | return NULL; |
5394 | } | |
5395 | } | |
cf694132 RD |
5396 | { |
5397 | wxPy_BEGIN_ALLOW_THREADS; | |
5398 | _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0); | |
5399 | ||
5400 | wxPy_END_ALLOW_THREADS; | |
5401 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5402 | return _resultobj; |
5403 | } | |
5404 | ||
d5c9047a | 5405 | #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) |
efc5f224 | 5406 | static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5407 | PyObject * _resultobj; |
f6bcfd97 | 5408 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5409 | unsigned int _arg1; |
1d99702e | 5410 | PyObject * _argo0 = 0; |
efc5f224 | 5411 | char *_kwnames[] = { "self","indent", NULL }; |
8ab979d7 RD |
5412 | |
5413 | self = self; | |
efc5f224 | 5414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5415 | return NULL; |
1d99702e RD |
5416 | if (_argo0) { |
5417 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5418 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5420 | return NULL; |
5421 | } | |
5422 | } | |
cf694132 RD |
5423 | { |
5424 | wxPy_BEGIN_ALLOW_THREADS; | |
5425 | wxTreeCtrl_SetIndent(_arg0,_arg1); | |
5426 | ||
5427 | wxPy_END_ALLOW_THREADS; | |
5428 | } Py_INCREF(Py_None); | |
d5c9047a | 5429 | _resultobj = Py_None; |
8ab979d7 RD |
5430 | return _resultobj; |
5431 | } | |
5432 | ||
d5c9047a | 5433 | #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList()) |
efc5f224 | 5434 | static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5435 | PyObject * _resultobj; |
d5c9047a | 5436 | wxImageList * _result; |
f6bcfd97 | 5437 | wxPyTreeCtrl * _arg0; |
1d99702e | 5438 | PyObject * _argo0 = 0; |
efc5f224 | 5439 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5440 | |
5441 | self = self; | |
efc5f224 | 5442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0)) |
8ab979d7 | 5443 | return NULL; |
1d99702e RD |
5444 | if (_argo0) { |
5445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5448 | return NULL; |
5449 | } | |
5450 | } | |
cf694132 RD |
5451 | { |
5452 | wxPy_BEGIN_ALLOW_THREADS; | |
5453 | _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0); | |
5454 | ||
5455 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 5456 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
5457 | return _resultobj; |
5458 | } | |
5459 | ||
d5c9047a | 5460 | #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList()) |
efc5f224 | 5461 | static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5462 | PyObject * _resultobj; |
d5c9047a | 5463 | wxImageList * _result; |
f6bcfd97 | 5464 | wxPyTreeCtrl * _arg0; |
1d99702e | 5465 | PyObject * _argo0 = 0; |
efc5f224 | 5466 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5467 | |
5468 | self = self; | |
efc5f224 | 5469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0)) |
8ab979d7 | 5470 | return NULL; |
1d99702e RD |
5471 | if (_argo0) { |
5472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5475 | return NULL; |
5476 | } | |
5477 | } | |
cf694132 RD |
5478 | { |
5479 | wxPy_BEGIN_ALLOW_THREADS; | |
5480 | _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0); | |
5481 | ||
5482 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 5483 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
5484 | return _resultobj; |
5485 | } | |
5486 | ||
d5c9047a | 5487 | #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) |
efc5f224 | 5488 | static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5489 | PyObject * _resultobj; |
f6bcfd97 | 5490 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5491 | wxImageList * _arg1; |
1d99702e RD |
5492 | PyObject * _argo0 = 0; |
5493 | PyObject * _argo1 = 0; | |
efc5f224 | 5494 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
5495 | |
5496 | self = self; | |
efc5f224 | 5497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5498 | return NULL; |
1d99702e RD |
5499 | if (_argo0) { |
5500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5503 | return NULL; |
5504 | } | |
5505 | } | |
1d99702e RD |
5506 | if (_argo1) { |
5507 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5508 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
5509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p."); |
5510 | return NULL; | |
5511 | } | |
5512 | } | |
cf694132 RD |
5513 | { |
5514 | wxPy_BEGIN_ALLOW_THREADS; | |
5515 | wxTreeCtrl_SetImageList(_arg0,_arg1); | |
5516 | ||
5517 | wxPy_END_ALLOW_THREADS; | |
5518 | } Py_INCREF(Py_None); | |
d5c9047a | 5519 | _resultobj = Py_None; |
8ab979d7 RD |
5520 | return _resultobj; |
5521 | } | |
5522 | ||
d5c9047a | 5523 | #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0)) |
efc5f224 | 5524 | static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5525 | PyObject * _resultobj; |
f6bcfd97 | 5526 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5527 | wxImageList * _arg1; |
1d99702e RD |
5528 | PyObject * _argo0 = 0; |
5529 | PyObject * _argo1 = 0; | |
efc5f224 | 5530 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
5531 | |
5532 | self = self; | |
efc5f224 | 5533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5534 | return NULL; |
1d99702e RD |
5535 | if (_argo0) { |
5536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5539 | return NULL; |
5540 | } | |
5541 | } | |
1d99702e RD |
5542 | if (_argo1) { |
5543 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5544 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
5545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p."); |
5546 | return NULL; | |
5547 | } | |
5548 | } | |
cf694132 RD |
5549 | { |
5550 | wxPy_BEGIN_ALLOW_THREADS; | |
5551 | wxTreeCtrl_SetStateImageList(_arg0,_arg1); | |
5552 | ||
5553 | wxPy_END_ALLOW_THREADS; | |
5554 | } Py_INCREF(Py_None); | |
d5c9047a | 5555 | _resultobj = Py_None; |
8ab979d7 RD |
5556 | return _resultobj; |
5557 | } | |
5558 | ||
b1462dfa RD |
5559 | #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing()) |
5560 | static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5561 | PyObject * _resultobj; | |
5562 | unsigned int _result; | |
f6bcfd97 | 5563 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
5564 | PyObject * _argo0 = 0; |
5565 | char *_kwnames[] = { "self", NULL }; | |
5566 | ||
5567 | self = self; | |
5568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0)) | |
5569 | return NULL; | |
5570 | if (_argo0) { | |
5571 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5572 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
5574 | return NULL; |
5575 | } | |
5576 | } | |
5577 | { | |
5578 | wxPy_BEGIN_ALLOW_THREADS; | |
5579 | _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0); | |
5580 | ||
5581 | wxPy_END_ALLOW_THREADS; | |
5582 | } _resultobj = Py_BuildValue("i",_result); | |
5583 | return _resultobj; | |
5584 | } | |
5585 | ||
5586 | #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0)) | |
5587 | static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5588 | PyObject * _resultobj; | |
f6bcfd97 | 5589 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
5590 | unsigned int _arg1; |
5591 | PyObject * _argo0 = 0; | |
5592 | char *_kwnames[] = { "self","spacing", NULL }; | |
5593 | ||
5594 | self = self; | |
5595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1)) | |
5596 | return NULL; | |
5597 | if (_argo0) { | |
5598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
5601 | return NULL; |
5602 | } | |
5603 | } | |
5604 | { | |
5605 | wxPy_BEGIN_ALLOW_THREADS; | |
5606 | wxTreeCtrl_SetSpacing(_arg0,_arg1); | |
5607 | ||
5608 | wxPy_END_ALLOW_THREADS; | |
5609 | } Py_INCREF(Py_None); | |
5610 | _resultobj = Py_None; | |
5611 | return _resultobj; | |
5612 | } | |
5613 | ||
d5c9047a | 5614 | #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
efc5f224 | 5615 | static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5616 | PyObject * _resultobj; |
d5c9047a | 5617 | wxString * _result; |
f6bcfd97 | 5618 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5619 | wxTreeItemId * _arg1; |
1d99702e RD |
5620 | PyObject * _argo0 = 0; |
5621 | PyObject * _argo1 = 0; | |
efc5f224 | 5622 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
5623 | |
5624 | self = self; | |
efc5f224 | 5625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5626 | return NULL; |
1d99702e RD |
5627 | if (_argo0) { |
5628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5631 | return NULL; |
5632 | } | |
5633 | } | |
1d99702e RD |
5634 | if (_argo1) { |
5635 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5636 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p."); |
5638 | return NULL; | |
5639 | } | |
5640 | } | |
d5c9047a | 5641 | { |
cf694132 RD |
5642 | wxPy_BEGIN_ALLOW_THREADS; |
5643 | _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1)); | |
5644 | ||
5645 | wxPy_END_ALLOW_THREADS; | |
5646 | }{ | |
eec92d76 | 5647 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
d5c9047a RD |
5648 | } |
5649 | { | |
5650 | delete _result; | |
5651 | } | |
8ab979d7 RD |
5652 | return _resultobj; |
5653 | } | |
5654 | ||
694759cf | 5655 | #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1)) |
efc5f224 | 5656 | static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5657 | PyObject * _resultobj; |
d5c9047a | 5658 | int _result; |
f6bcfd97 | 5659 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5660 | wxTreeItemId * _arg1; |
694759cf | 5661 | wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
5662 | PyObject * _argo0 = 0; |
5663 | PyObject * _argo1 = 0; | |
694759cf | 5664 | char *_kwnames[] = { "self","item","which", NULL }; |
8ab979d7 RD |
5665 | |
5666 | self = self; | |
694759cf | 5667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 5668 | return NULL; |
1d99702e RD |
5669 | if (_argo0) { |
5670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5673 | return NULL; |
5674 | } | |
5675 | } | |
1d99702e RD |
5676 | if (_argo1) { |
5677 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5678 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p."); |
5680 | return NULL; | |
5681 | } | |
5682 | } | |
cf694132 RD |
5683 | { |
5684 | wxPy_BEGIN_ALLOW_THREADS; | |
694759cf | 5685 | _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2); |
cf694132 RD |
5686 | |
5687 | wxPy_END_ALLOW_THREADS; | |
5688 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5689 | return _resultobj; |
5690 | } | |
5691 | ||
d5c9047a | 5692 | #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0)) |
efc5f224 | 5693 | static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5694 | PyObject * _resultobj; |
d5c9047a | 5695 | int _result; |
f6bcfd97 | 5696 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5697 | wxTreeItemId * _arg1; |
1d99702e RD |
5698 | PyObject * _argo0 = 0; |
5699 | PyObject * _argo1 = 0; | |
efc5f224 | 5700 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
5701 | |
5702 | self = self; | |
efc5f224 | 5703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5704 | return NULL; |
1d99702e RD |
5705 | if (_argo0) { |
5706 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5707 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5709 | return NULL; |
5710 | } | |
5711 | } | |
1d99702e RD |
5712 | if (_argo1) { |
5713 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5714 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p."); |
5716 | return NULL; | |
5717 | } | |
5718 | } | |
cf694132 RD |
5719 | { |
5720 | wxPy_BEGIN_ALLOW_THREADS; | |
5721 | _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1); | |
8ab979d7 | 5722 | |
cf694132 RD |
5723 | wxPy_END_ALLOW_THREADS; |
5724 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5725 | return _resultobj; |
5726 | } | |
5727 | ||
d5c9047a | 5728 | #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
efc5f224 | 5729 | static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5730 | PyObject * _resultobj; |
f6bcfd97 | 5731 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
5732 | wxTreeItemId * _arg1; |
5733 | wxString * _arg2; | |
1d99702e RD |
5734 | PyObject * _argo0 = 0; |
5735 | PyObject * _argo1 = 0; | |
d5c9047a | 5736 | PyObject * _obj2 = 0; |
efc5f224 | 5737 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
5738 | |
5739 | self = self; | |
efc5f224 | 5740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 5741 | return NULL; |
1d99702e RD |
5742 | if (_argo0) { |
5743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5746 | return NULL; |
5747 | } | |
5748 | } | |
1d99702e RD |
5749 | if (_argo1) { |
5750 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5751 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p."); |
5753 | return NULL; | |
5754 | } | |
5755 | } | |
5756 | { | |
185d7c3e RD |
5757 | #if PYTHON_API_VERSION >= 1009 |
5758 | char* tmpPtr; int tmpSize; | |
5759 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 5760 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5761 | return NULL; |
5762 | } | |
5763 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
5764 | return NULL; | |
5765 | _arg2 = new wxString(tmpPtr, tmpSize); | |
5766 | #else | |
d5c9047a RD |
5767 | if (!PyString_Check(_obj2)) { |
5768 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5769 | return NULL; | |
5770 | } | |
185d7c3e RD |
5771 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
5772 | #endif | |
d5c9047a | 5773 | } |
cf694132 RD |
5774 | { |
5775 | wxPy_BEGIN_ALLOW_THREADS; | |
5776 | wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2); | |
5777 | ||
5778 | wxPy_END_ALLOW_THREADS; | |
5779 | } Py_INCREF(Py_None); | |
d5c9047a RD |
5780 | _resultobj = Py_None; |
5781 | { | |
5782 | if (_obj2) | |
5783 | delete _arg2; | |
5784 | } | |
8ab979d7 RD |
5785 | return _resultobj; |
5786 | } | |
5787 | ||
694759cf | 5788 | #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 5789 | static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5790 | PyObject * _resultobj; |
f6bcfd97 | 5791 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
5792 | wxTreeItemId * _arg1; |
5793 | int _arg2; | |
694759cf | 5794 | wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
5795 | PyObject * _argo0 = 0; |
5796 | PyObject * _argo1 = 0; | |
694759cf | 5797 | char *_kwnames[] = { "self","item","image","which", NULL }; |
8ab979d7 RD |
5798 | |
5799 | self = self; | |
694759cf | 5800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 5801 | return NULL; |
1d99702e RD |
5802 | if (_argo0) { |
5803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5806 | return NULL; |
5807 | } | |
5808 | } | |
1d99702e RD |
5809 | if (_argo1) { |
5810 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5811 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p."); |
5813 | return NULL; | |
5814 | } | |
5815 | } | |
cf694132 RD |
5816 | { |
5817 | wxPy_BEGIN_ALLOW_THREADS; | |
694759cf | 5818 | wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3); |
cf694132 RD |
5819 | |
5820 | wxPy_END_ALLOW_THREADS; | |
5821 | } Py_INCREF(Py_None); | |
d5c9047a | 5822 | _resultobj = Py_None; |
8ab979d7 RD |
5823 | return _resultobj; |
5824 | } | |
5825 | ||
d5c9047a | 5826 | #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1)) |
efc5f224 | 5827 | static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5828 | PyObject * _resultobj; |
f6bcfd97 | 5829 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
5830 | wxTreeItemId * _arg1; |
5831 | int _arg2; | |
1d99702e RD |
5832 | PyObject * _argo0 = 0; |
5833 | PyObject * _argo1 = 0; | |
efc5f224 | 5834 | char *_kwnames[] = { "self","item","image", NULL }; |
8ab979d7 RD |
5835 | |
5836 | self = self; | |
efc5f224 | 5837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 5838 | return NULL; |
1d99702e RD |
5839 | if (_argo0) { |
5840 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5841 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5843 | return NULL; |
5844 | } | |
5845 | } | |
1d99702e RD |
5846 | if (_argo1) { |
5847 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5848 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p."); |
5850 | return NULL; | |
5851 | } | |
5852 | } | |
cf694132 RD |
5853 | { |
5854 | wxPy_BEGIN_ALLOW_THREADS; | |
5855 | wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2); | |
5856 | ||
5857 | wxPy_END_ALLOW_THREADS; | |
5858 | } Py_INCREF(Py_None); | |
5859 | _resultobj = Py_None; | |
5860 | return _resultobj; | |
5861 | } | |
5862 | ||
5863 | #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1)) | |
efc5f224 | 5864 | static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 5865 | PyObject * _resultobj; |
f6bcfd97 | 5866 | wxPyTreeCtrl * _arg0; |
cf694132 | 5867 | wxTreeItemId * _arg1; |
1d99702e RD |
5868 | bool _arg2 = (bool ) TRUE; |
5869 | PyObject * _argo0 = 0; | |
5870 | PyObject * _argo1 = 0; | |
5871 | int tempbool2 = (int) TRUE; | |
efc5f224 | 5872 | char *_kwnames[] = { "self","item","hasChildren", NULL }; |
cf694132 RD |
5873 | |
5874 | self = self; | |
efc5f224 | 5875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2)) |
cf694132 | 5876 | return NULL; |
1d99702e RD |
5877 | if (_argo0) { |
5878 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5879 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
5881 | return NULL; |
5882 | } | |
5883 | } | |
1d99702e RD |
5884 | if (_argo1) { |
5885 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5886 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
5887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p."); |
5888 | return NULL; | |
5889 | } | |
5890 | } | |
5891 | _arg2 = (bool ) tempbool2; | |
5892 | { | |
5893 | wxPy_BEGIN_ALLOW_THREADS; | |
5894 | wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2); | |
5895 | ||
5896 | wxPy_END_ALLOW_THREADS; | |
5897 | } Py_INCREF(Py_None); | |
d5c9047a | 5898 | _resultobj = Py_None; |
8ab979d7 RD |
5899 | return _resultobj; |
5900 | } | |
5901 | ||
f6bcfd97 | 5902 | static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
5903 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
5904 | if (data == NULL) { | |
5905 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 5906 | data->SetId(item); // set the id |
cf694132 RD |
5907 | self->SetItemData(item, data); |
5908 | } | |
5909 | return data; | |
5910 | } | |
efc5f224 | 5911 | static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
5912 | PyObject * _resultobj; |
5913 | wxPyTreeItemData * _result; | |
f6bcfd97 | 5914 | wxPyTreeCtrl * _arg0; |
cf694132 | 5915 | wxTreeItemId * _arg1; |
1d99702e RD |
5916 | PyObject * _argo0 = 0; |
5917 | PyObject * _argo1 = 0; | |
efc5f224 | 5918 | char *_kwnames[] = { "self","item", NULL }; |
cf694132 RD |
5919 | char _ptemp[128]; |
5920 | ||
5921 | self = self; | |
efc5f224 | 5922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1)) |
cf694132 | 5923 | return NULL; |
1d99702e RD |
5924 | if (_argo0) { |
5925 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5926 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
5928 | return NULL; |
5929 | } | |
5930 | } | |
1d99702e RD |
5931 | if (_argo1) { |
5932 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5933 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
5934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p."); |
5935 | return NULL; | |
5936 | } | |
5937 | } | |
5938 | { | |
5939 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5940 | _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1); |
cf694132 RD |
5941 | |
5942 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5943 | } if (_result) { |
5944 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
5945 | _resultobj = Py_BuildValue("s",_ptemp); | |
5946 | } else { | |
5947 | Py_INCREF(Py_None); | |
5948 | _resultobj = Py_None; | |
5949 | } | |
cf694132 RD |
5950 | return _resultobj; |
5951 | } | |
5952 | ||
f6bcfd97 BP |
5953 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) { |
5954 | data->SetId(item); // set the id | |
5955 | self->SetItemData(item, data); | |
c368d904 | 5956 | } |
efc5f224 | 5957 | static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5958 | PyObject * _resultobj; |
f6bcfd97 | 5959 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5960 | wxTreeItemId * _arg1; |
cf694132 | 5961 | wxPyTreeItemData * _arg2; |
1d99702e RD |
5962 | PyObject * _argo0 = 0; |
5963 | PyObject * _argo1 = 0; | |
5964 | PyObject * _argo2 = 0; | |
efc5f224 | 5965 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
5966 | |
5967 | self = self; | |
efc5f224 | 5968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2)) |
8ab979d7 | 5969 | return NULL; |
1d99702e RD |
5970 | if (_argo0) { |
5971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5974 | return NULL; |
5975 | } | |
5976 | } | |
1d99702e RD |
5977 | if (_argo1) { |
5978 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5979 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p."); |
5981 | return NULL; | |
5982 | } | |
5983 | } | |
1d99702e RD |
5984 | if (_argo2) { |
5985 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5986 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) { | |
cf694132 | 5987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
5988 | return NULL; |
5989 | } | |
5990 | } | |
cf694132 RD |
5991 | { |
5992 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5993 | wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2); |
cf694132 RD |
5994 | |
5995 | wxPy_END_ALLOW_THREADS; | |
5996 | } Py_INCREF(Py_None); | |
d5c9047a | 5997 | _resultobj = Py_None; |
8ab979d7 RD |
5998 | return _resultobj; |
5999 | } | |
6000 | ||
f6bcfd97 | 6001 | static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
6002 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
6003 | if (data == NULL) { | |
6004 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 6005 | data->SetId(item); // set the id |
cf694132 RD |
6006 | self->SetItemData(item, data); |
6007 | } | |
6008 | return data->GetData(); | |
c368d904 | 6009 | } |
efc5f224 | 6010 | static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 6011 | PyObject * _resultobj; |
cf694132 | 6012 | PyObject * _result; |
f6bcfd97 | 6013 | wxPyTreeCtrl * _arg0; |
08127323 | 6014 | wxTreeItemId * _arg1; |
1d99702e RD |
6015 | PyObject * _argo0 = 0; |
6016 | PyObject * _argo1 = 0; | |
efc5f224 | 6017 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
6018 | |
6019 | self = self; | |
efc5f224 | 6020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1)) |
08127323 | 6021 | return NULL; |
1d99702e RD |
6022 | if (_argo0) { |
6023 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6024 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
6026 | return NULL; |
6027 | } | |
6028 | } | |
1d99702e RD |
6029 | if (_argo1) { |
6030 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6031 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 | 6032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p."); |
08127323 RD |
6033 | return NULL; |
6034 | } | |
6035 | } | |
cf694132 RD |
6036 | { |
6037 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6038 | _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1); |
cf694132 RD |
6039 | |
6040 | wxPy_END_ALLOW_THREADS; | |
6041 | }{ | |
6042 | _resultobj = _result; | |
6043 | } | |
6044 | return _resultobj; | |
6045 | } | |
6046 | ||
f6bcfd97 | 6047 | static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) { |
cf694132 RD |
6048 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
6049 | if (data == NULL) { | |
6050 | data = new wxPyTreeItemData(obj); | |
f6bcfd97 | 6051 | data->SetId(item); // set the id |
cf694132 RD |
6052 | self->SetItemData(item, data); |
6053 | } else | |
6054 | data->SetData(obj); | |
c368d904 | 6055 | } |
efc5f224 | 6056 | static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 6057 | PyObject * _resultobj; |
f6bcfd97 | 6058 | wxPyTreeCtrl * _arg0; |
cf694132 RD |
6059 | wxTreeItemId * _arg1; |
6060 | PyObject * _arg2; | |
1d99702e RD |
6061 | PyObject * _argo0 = 0; |
6062 | PyObject * _argo1 = 0; | |
cf694132 | 6063 | PyObject * _obj2 = 0; |
efc5f224 | 6064 | char *_kwnames[] = { "self","item","obj", NULL }; |
cf694132 RD |
6065 | |
6066 | self = self; | |
efc5f224 | 6067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2)) |
cf694132 | 6068 | return NULL; |
1d99702e RD |
6069 | if (_argo0) { |
6070 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6071 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
6073 | return NULL; |
6074 | } | |
6075 | } | |
1d99702e RD |
6076 | if (_argo1) { |
6077 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6078 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
6079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p."); |
6080 | return NULL; | |
6081 | } | |
6082 | } | |
6083 | { | |
6084 | _arg2 = _obj2; | |
6085 | } | |
6086 | { | |
6087 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6088 | wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2); |
cf694132 RD |
6089 | |
6090 | wxPy_END_ALLOW_THREADS; | |
6091 | } Py_INCREF(Py_None); | |
08127323 RD |
6092 | _resultobj = Py_None; |
6093 | return _resultobj; | |
6094 | } | |
6095 | ||
d5c9047a | 6096 | #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) |
efc5f224 | 6097 | static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6098 | PyObject * _resultobj; |
d5c9047a | 6099 | bool _result; |
f6bcfd97 | 6100 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6101 | wxTreeItemId * _arg1; |
1d99702e RD |
6102 | PyObject * _argo0 = 0; |
6103 | PyObject * _argo1 = 0; | |
efc5f224 | 6104 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6105 | |
6106 | self = self; | |
efc5f224 | 6107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6108 | return NULL; |
1d99702e RD |
6109 | if (_argo0) { |
6110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6113 | return NULL; |
6114 | } | |
6115 | } | |
1d99702e RD |
6116 | if (_argo1) { |
6117 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6118 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p."); |
6120 | return NULL; | |
6121 | } | |
6122 | } | |
cf694132 RD |
6123 | { |
6124 | wxPy_BEGIN_ALLOW_THREADS; | |
6125 | _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1); | |
6126 | ||
6127 | wxPy_END_ALLOW_THREADS; | |
6128 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6129 | return _resultobj; |
6130 | } | |
6131 | ||
d5c9047a | 6132 | #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0)) |
efc5f224 | 6133 | static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6134 | PyObject * _resultobj; |
d5c9047a | 6135 | bool _result; |
f6bcfd97 | 6136 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6137 | wxTreeItemId * _arg1; |
1d99702e RD |
6138 | PyObject * _argo0 = 0; |
6139 | PyObject * _argo1 = 0; | |
efc5f224 | 6140 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6141 | |
6142 | self = self; | |
efc5f224 | 6143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6144 | return NULL; |
1d99702e RD |
6145 | if (_argo0) { |
6146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6149 | return NULL; |
6150 | } | |
6151 | } | |
1d99702e RD |
6152 | if (_argo1) { |
6153 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6154 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p."); |
6156 | return NULL; | |
6157 | } | |
6158 | } | |
cf694132 RD |
6159 | { |
6160 | wxPy_BEGIN_ALLOW_THREADS; | |
6161 | _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1); | |
6162 | ||
6163 | wxPy_END_ALLOW_THREADS; | |
6164 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6165 | return _resultobj; |
6166 | } | |
6167 | ||
d5c9047a | 6168 | #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0)) |
efc5f224 | 6169 | static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6170 | PyObject * _resultobj; |
d5c9047a | 6171 | bool _result; |
f6bcfd97 | 6172 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6173 | wxTreeItemId * _arg1; |
1d99702e RD |
6174 | PyObject * _argo0 = 0; |
6175 | PyObject * _argo1 = 0; | |
efc5f224 | 6176 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6177 | |
6178 | self = self; | |
efc5f224 | 6179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6180 | return NULL; |
1d99702e RD |
6181 | if (_argo0) { |
6182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6185 | return NULL; |
6186 | } | |
6187 | } | |
1d99702e RD |
6188 | if (_argo1) { |
6189 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6190 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p."); |
6192 | return NULL; | |
6193 | } | |
6194 | } | |
cf694132 RD |
6195 | { |
6196 | wxPy_BEGIN_ALLOW_THREADS; | |
6197 | _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1); | |
6198 | ||
6199 | wxPy_END_ALLOW_THREADS; | |
6200 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6201 | return _resultobj; |
6202 | } | |
6203 | ||
d5c9047a | 6204 | #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
efc5f224 | 6205 | static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6206 | PyObject * _resultobj; |
d5c9047a | 6207 | bool _result; |
f6bcfd97 | 6208 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6209 | wxTreeItemId * _arg1; |
1d99702e RD |
6210 | PyObject * _argo0 = 0; |
6211 | PyObject * _argo1 = 0; | |
efc5f224 | 6212 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6213 | |
6214 | self = self; | |
efc5f224 | 6215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6216 | return NULL; |
1d99702e RD |
6217 | if (_argo0) { |
6218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6221 | return NULL; |
6222 | } | |
6223 | } | |
1d99702e RD |
6224 | if (_argo1) { |
6225 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6226 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p."); |
6228 | return NULL; | |
6229 | } | |
6230 | } | |
cf694132 RD |
6231 | { |
6232 | wxPy_BEGIN_ALLOW_THREADS; | |
6233 | _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1); | |
6234 | ||
6235 | wxPy_END_ALLOW_THREADS; | |
6236 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6237 | return _resultobj; |
6238 | } | |
6239 | ||
6240 | #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem()) | |
efc5f224 | 6241 | static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6242 | PyObject * _resultobj; |
d5c9047a | 6243 | wxTreeItemId * _result; |
f6bcfd97 | 6244 | wxPyTreeCtrl * _arg0; |
1d99702e | 6245 | PyObject * _argo0 = 0; |
efc5f224 | 6246 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6247 | char _ptemp[128]; |
8ab979d7 RD |
6248 | |
6249 | self = self; | |
efc5f224 | 6250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0)) |
8ab979d7 | 6251 | return NULL; |
1d99702e RD |
6252 | if (_argo0) { |
6253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6256 | return NULL; |
6257 | } | |
6258 | } | |
cf694132 RD |
6259 | { |
6260 | wxPy_BEGIN_ALLOW_THREADS; | |
6261 | _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0)); | |
6262 | ||
6263 | wxPy_END_ALLOW_THREADS; | |
6264 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6265 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6266 | return _resultobj; |
6267 | } | |
6268 | ||
6269 | #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 6270 | static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6271 | PyObject * _resultobj; |
d5c9047a | 6272 | wxTreeItemId * _result; |
f6bcfd97 | 6273 | wxPyTreeCtrl * _arg0; |
1d99702e | 6274 | PyObject * _argo0 = 0; |
efc5f224 | 6275 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6276 | char _ptemp[128]; |
8ab979d7 RD |
6277 | |
6278 | self = self; | |
efc5f224 | 6279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 6280 | return NULL; |
1d99702e RD |
6281 | if (_argo0) { |
6282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6285 | return NULL; |
6286 | } | |
6287 | } | |
cf694132 RD |
6288 | { |
6289 | wxPy_BEGIN_ALLOW_THREADS; | |
6290 | _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0)); | |
6291 | ||
6292 | wxPy_END_ALLOW_THREADS; | |
6293 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6294 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6295 | return _resultobj; |
6296 | } | |
6297 | ||
eb715945 RD |
6298 | #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0)) |
6299 | static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6300 | PyObject * _resultobj; |
d5c9047a | 6301 | wxTreeItemId * _result; |
f6bcfd97 | 6302 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6303 | wxTreeItemId * _arg1; |
1d99702e RD |
6304 | PyObject * _argo0 = 0; |
6305 | PyObject * _argo1 = 0; | |
efc5f224 | 6306 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6307 | char _ptemp[128]; |
8ab979d7 RD |
6308 | |
6309 | self = self; | |
eb715945 | 6310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6311 | return NULL; |
1d99702e RD |
6312 | if (_argo0) { |
6313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6316 | return NULL; |
6317 | } | |
6318 | } | |
1d99702e RD |
6319 | if (_argo1) { |
6320 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6321 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
eb715945 | 6322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
6323 | return NULL; |
6324 | } | |
6325 | } | |
cf694132 RD |
6326 | { |
6327 | wxPy_BEGIN_ALLOW_THREADS; | |
eb715945 | 6328 | _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1)); |
cf694132 RD |
6329 | |
6330 | wxPy_END_ALLOW_THREADS; | |
6331 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6332 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6333 | return _resultobj; |
6334 | } | |
6335 | ||
f6bcfd97 | 6336 | static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) { |
26b9cf27 | 6337 | bool doSave = wxPyRestoreThread(); |
d426c97e RD |
6338 | PyObject* rval = PyList_New(0); |
6339 | wxArrayTreeItemIds array; | |
6340 | size_t num, x; | |
6341 | num = self->GetSelections(array); | |
6342 | for (x=0; x < num; x++) { | |
c368d904 RD |
6343 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); |
6344 | PyObject* item = wxPyConstructObject((void*)tii, "wxTreeItemId", TRUE); | |
d426c97e RD |
6345 | PyList_Append(rval, item); |
6346 | } | |
26b9cf27 | 6347 | wxPySaveThread(doSave); |
d426c97e RD |
6348 | return rval; |
6349 | } | |
6350 | static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6351 | PyObject * _resultobj; | |
6352 | PyObject * _result; | |
f6bcfd97 | 6353 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
6354 | PyObject * _argo0 = 0; |
6355 | char *_kwnames[] = { "self", NULL }; | |
6356 | ||
6357 | self = self; | |
6358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0)) | |
6359 | return NULL; | |
6360 | if (_argo0) { | |
6361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
6364 | return NULL; |
6365 | } | |
6366 | } | |
6367 | { | |
6368 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6369 | _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0); |
d426c97e RD |
6370 | |
6371 | wxPy_END_ALLOW_THREADS; | |
6372 | }{ | |
6373 | _resultobj = _result; | |
6374 | } | |
6375 | return _resultobj; | |
6376 | } | |
6377 | ||
bb0054cd | 6378 | #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1)) |
efc5f224 | 6379 | static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
6380 | PyObject * _resultobj; |
6381 | size_t _result; | |
f6bcfd97 | 6382 | wxPyTreeCtrl * _arg0; |
bb0054cd | 6383 | wxTreeItemId * _arg1; |
1d99702e RD |
6384 | bool _arg2 = (bool ) TRUE; |
6385 | PyObject * _argo0 = 0; | |
6386 | PyObject * _argo1 = 0; | |
6387 | int tempbool2 = (int) TRUE; | |
efc5f224 | 6388 | char *_kwnames[] = { "self","item","recursively", NULL }; |
bb0054cd RD |
6389 | |
6390 | self = self; | |
efc5f224 | 6391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2)) |
bb0054cd | 6392 | return NULL; |
1d99702e RD |
6393 | if (_argo0) { |
6394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p."); | |
bb0054cd RD |
6397 | return NULL; |
6398 | } | |
6399 | } | |
1d99702e RD |
6400 | if (_argo1) { |
6401 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6402 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
bb0054cd RD |
6403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p."); |
6404 | return NULL; | |
6405 | } | |
6406 | } | |
6407 | _arg2 = (bool ) tempbool2; | |
6408 | { | |
6409 | wxPy_BEGIN_ALLOW_THREADS; | |
6410 | _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2); | |
6411 | ||
6412 | wxPy_END_ALLOW_THREADS; | |
6413 | } _resultobj = Py_BuildValue("i",_result); | |
6414 | return _resultobj; | |
6415 | } | |
6416 | ||
d5c9047a | 6417 | #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1)) |
efc5f224 | 6418 | static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6419 | PyObject * _resultobj; |
d5c9047a | 6420 | wxTreeItemId * _result; |
f6bcfd97 | 6421 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6422 | wxTreeItemId * _arg1; |
6423 | long * _arg2; | |
1d99702e RD |
6424 | PyObject * _argo0 = 0; |
6425 | PyObject * _argo1 = 0; | |
d5c9047a RD |
6426 | long temp; |
6427 | PyObject * _obj2 = 0; | |
efc5f224 | 6428 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 6429 | char _ptemp[128]; |
8ab979d7 RD |
6430 | |
6431 | self = self; | |
efc5f224 | 6432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 6433 | return NULL; |
1d99702e RD |
6434 | if (_argo0) { |
6435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6438 | return NULL; |
6439 | } | |
6440 | } | |
1d99702e RD |
6441 | if (_argo1) { |
6442 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6443 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 6444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
6445 | return NULL; |
6446 | } | |
6447 | } | |
d5c9047a RD |
6448 | { |
6449 | temp = (long) PyInt_AsLong(_obj2); | |
6450 | _arg2 = &temp; | |
6451 | } | |
cf694132 RD |
6452 | { |
6453 | wxPy_BEGIN_ALLOW_THREADS; | |
6454 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); | |
6455 | ||
6456 | wxPy_END_ALLOW_THREADS; | |
6457 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a RD |
6458 | _resultobj = Py_BuildValue("s",_ptemp); |
6459 | { | |
6460 | PyObject *o; | |
6461 | o = PyInt_FromLong((long) (*_arg2)); | |
6462 | _resultobj = t_output_helper(_resultobj, o); | |
6463 | } | |
8ab979d7 RD |
6464 | return _resultobj; |
6465 | } | |
6466 | ||
d5c9047a | 6467 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) |
efc5f224 | 6468 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6469 | PyObject * _resultobj; |
d5c9047a | 6470 | wxTreeItemId * _result; |
f6bcfd97 | 6471 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6472 | wxTreeItemId * _arg1; |
6473 | long * _arg2; | |
1d99702e RD |
6474 | PyObject * _argo0 = 0; |
6475 | PyObject * _argo1 = 0; | |
d5c9047a | 6476 | long temp; |
8ab979d7 | 6477 | PyObject * _obj2 = 0; |
efc5f224 | 6478 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 6479 | char _ptemp[128]; |
8ab979d7 RD |
6480 | |
6481 | self = self; | |
efc5f224 | 6482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 6483 | return NULL; |
1d99702e RD |
6484 | if (_argo0) { |
6485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6488 | return NULL; |
6489 | } | |
6490 | } | |
1d99702e RD |
6491 | if (_argo1) { |
6492 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6493 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 6494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); |
8ab979d7 | 6495 | return NULL; |
d5c9047a | 6496 | } |
8ab979d7 | 6497 | } |
d5c9047a RD |
6498 | { |
6499 | temp = (long) PyInt_AsLong(_obj2); | |
6500 | _arg2 = &temp; | |
8ab979d7 | 6501 | } |
cf694132 RD |
6502 | { |
6503 | wxPy_BEGIN_ALLOW_THREADS; | |
6504 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); | |
6505 | ||
6506 | wxPy_END_ALLOW_THREADS; | |
6507 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6508 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 | 6509 | { |
d5c9047a RD |
6510 | PyObject *o; |
6511 | o = PyInt_FromLong((long) (*_arg2)); | |
6512 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
6513 | } |
6514 | return _resultobj; | |
6515 | } | |
6516 | ||
d5c9047a | 6517 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) |
efc5f224 | 6518 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6519 | PyObject * _resultobj; |
d5c9047a | 6520 | wxTreeItemId * _result; |
f6bcfd97 | 6521 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6522 | wxTreeItemId * _arg1; |
1d99702e RD |
6523 | PyObject * _argo0 = 0; |
6524 | PyObject * _argo1 = 0; | |
efc5f224 | 6525 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6526 | char _ptemp[128]; |
8ab979d7 RD |
6527 | |
6528 | self = self; | |
efc5f224 | 6529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6530 | return NULL; |
1d99702e RD |
6531 | if (_argo0) { |
6532 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6533 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6535 | return NULL; |
6536 | } | |
6537 | } | |
1d99702e RD |
6538 | if (_argo1) { |
6539 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6540 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); |
6542 | return NULL; | |
6543 | } | |
6544 | } | |
cf694132 RD |
6545 | { |
6546 | wxPy_BEGIN_ALLOW_THREADS; | |
6547 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); | |
6548 | ||
6549 | wxPy_END_ALLOW_THREADS; | |
6550 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6551 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6552 | return _resultobj; |
6553 | } | |
6554 | ||
d5c9047a | 6555 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) |
efc5f224 | 6556 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6557 | PyObject * _resultobj; |
d5c9047a | 6558 | wxTreeItemId * _result; |
f6bcfd97 | 6559 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6560 | wxTreeItemId * _arg1; |
1d99702e RD |
6561 | PyObject * _argo0 = 0; |
6562 | PyObject * _argo1 = 0; | |
efc5f224 | 6563 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6564 | char _ptemp[128]; |
8ab979d7 RD |
6565 | |
6566 | self = self; | |
efc5f224 | 6567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6568 | return NULL; |
1d99702e RD |
6569 | if (_argo0) { |
6570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6573 | return NULL; |
6574 | } | |
6575 | } | |
1d99702e RD |
6576 | if (_argo1) { |
6577 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6578 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); |
6580 | return NULL; | |
6581 | } | |
6582 | } | |
cf694132 RD |
6583 | { |
6584 | wxPy_BEGIN_ALLOW_THREADS; | |
6585 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); | |
6586 | ||
6587 | wxPy_END_ALLOW_THREADS; | |
6588 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6589 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6590 | return _resultobj; |
6591 | } | |
6592 | ||
d5c9047a | 6593 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) |
efc5f224 | 6594 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6595 | PyObject * _resultobj; |
d5c9047a | 6596 | wxTreeItemId * _result; |
f6bcfd97 | 6597 | wxPyTreeCtrl * _arg0; |
1d99702e | 6598 | PyObject * _argo0 = 0; |
efc5f224 | 6599 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6600 | char _ptemp[128]; |
8ab979d7 RD |
6601 | |
6602 | self = self; | |
efc5f224 | 6603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) |
8ab979d7 | 6604 | return NULL; |
1d99702e RD |
6605 | if (_argo0) { |
6606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6609 | return NULL; |
6610 | } | |
6611 | } | |
cf694132 RD |
6612 | { |
6613 | wxPy_BEGIN_ALLOW_THREADS; | |
6614 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); | |
6615 | ||
6616 | wxPy_END_ALLOW_THREADS; | |
6617 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6618 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6619 | return _resultobj; |
6620 | } | |
6621 | ||
d5c9047a | 6622 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) |
efc5f224 | 6623 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6624 | PyObject * _resultobj; |
d5c9047a | 6625 | wxTreeItemId * _result; |
f6bcfd97 | 6626 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6627 | wxTreeItemId * _arg1; |
1d99702e RD |
6628 | PyObject * _argo0 = 0; |
6629 | PyObject * _argo1 = 0; | |
efc5f224 | 6630 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6631 | char _ptemp[128]; |
8ab979d7 RD |
6632 | |
6633 | self = self; | |
efc5f224 | 6634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6635 | return NULL; |
1d99702e RD |
6636 | if (_argo0) { |
6637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6640 | return NULL; |
6641 | } | |
6642 | } | |
1d99702e RD |
6643 | if (_argo1) { |
6644 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6645 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); |
6647 | return NULL; | |
6648 | } | |
6649 | } | |
cf694132 RD |
6650 | { |
6651 | wxPy_BEGIN_ALLOW_THREADS; | |
6652 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); | |
6653 | ||
6654 | wxPy_END_ALLOW_THREADS; | |
6655 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6656 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6657 | return _resultobj; |
6658 | } | |
6659 | ||
d5c9047a | 6660 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) |
efc5f224 | 6661 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6662 | PyObject * _resultobj; |
d5c9047a | 6663 | wxTreeItemId * _result; |
f6bcfd97 | 6664 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6665 | wxTreeItemId * _arg1; |
1d99702e RD |
6666 | PyObject * _argo0 = 0; |
6667 | PyObject * _argo1 = 0; | |
efc5f224 | 6668 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6669 | char _ptemp[128]; |
8ab979d7 RD |
6670 | |
6671 | self = self; | |
efc5f224 | 6672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6673 | return NULL; |
1d99702e RD |
6674 | if (_argo0) { |
6675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6678 | return NULL; |
6679 | } | |
6680 | } | |
1d99702e RD |
6681 | if (_argo1) { |
6682 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6683 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 6684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
6685 | return NULL; |
6686 | } | |
6687 | } | |
cf694132 RD |
6688 | { |
6689 | wxPy_BEGIN_ALLOW_THREADS; | |
6690 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); | |
6691 | ||
6692 | wxPy_END_ALLOW_THREADS; | |
6693 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6694 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6695 | return _resultobj; |
6696 | } | |
6697 | ||
d426c97e RD |
6698 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) |
6699 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6700 | PyObject * _resultobj; | |
6701 | wxTreeItemId * _result; | |
f6bcfd97 | 6702 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
6703 | wxTreeItemId * _arg1; |
6704 | PyObject * _argo0 = 0; | |
6705 | PyObject * _argo1 = 0; | |
6706 | char *_kwnames[] = { "self","item", NULL }; | |
6707 | char _ptemp[128]; | |
6708 | ||
6709 | self = self; | |
6710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
6711 | return NULL; | |
6712 | if (_argo0) { | |
6713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
6716 | return NULL; |
6717 | } | |
6718 | } | |
6719 | if (_argo1) { | |
6720 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6721 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); | |
6723 | return NULL; | |
6724 | } | |
6725 | } | |
6726 | { | |
6727 | wxPy_BEGIN_ALLOW_THREADS; | |
6728 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); | |
6729 | ||
6730 | wxPy_END_ALLOW_THREADS; | |
6731 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
6732 | _resultobj = Py_BuildValue("s",_ptemp); | |
6733 | return _resultobj; | |
6734 | } | |
6735 | ||
d5c9047a | 6736 | #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 6737 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6738 | PyObject * _resultobj; |
d5c9047a | 6739 | wxTreeItemId * _result; |
f6bcfd97 | 6740 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6741 | wxString * _arg1; |
1d99702e RD |
6742 | int _arg2 = (int ) -1; |
6743 | int _arg3 = (int ) -1; | |
6744 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
6745 | PyObject * _argo0 = 0; | |
d5c9047a | 6746 | PyObject * _obj1 = 0; |
1d99702e | 6747 | PyObject * _argo4 = 0; |
efc5f224 | 6748 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; |
d5c9047a | 6749 | char _ptemp[128]; |
8ab979d7 RD |
6750 | |
6751 | self = self; | |
efc5f224 | 6752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) |
8ab979d7 | 6753 | return NULL; |
1d99702e RD |
6754 | if (_argo0) { |
6755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6758 | return NULL; |
6759 | } | |
6760 | } | |
d5c9047a | 6761 | { |
185d7c3e RD |
6762 | #if PYTHON_API_VERSION >= 1009 |
6763 | char* tmpPtr; int tmpSize; | |
6764 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 6765 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6766 | return NULL; |
6767 | } | |
6768 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6769 | return NULL; | |
6770 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6771 | #else | |
d5c9047a RD |
6772 | if (!PyString_Check(_obj1)) { |
6773 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6774 | return NULL; | |
6775 | } | |
185d7c3e RD |
6776 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6777 | #endif | |
d5c9047a | 6778 | } |
1d99702e RD |
6779 | if (_argo4) { |
6780 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
6781 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
cf694132 | 6782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
6783 | return NULL; |
6784 | } | |
6785 | } | |
cf694132 RD |
6786 | { |
6787 | wxPy_BEGIN_ALLOW_THREADS; | |
6788 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); | |
6789 | ||
6790 | wxPy_END_ALLOW_THREADS; | |
6791 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a RD |
6792 | _resultobj = Py_BuildValue("s",_ptemp); |
6793 | { | |
6794 | if (_obj1) | |
6795 | delete _arg1; | |
6796 | } | |
8ab979d7 RD |
6797 | return _resultobj; |
6798 | } | |
6799 | ||
d5c9047a | 6800 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 6801 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6802 | PyObject * _resultobj; |
d5c9047a | 6803 | wxTreeItemId * _result; |
f6bcfd97 | 6804 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6805 | wxTreeItemId * _arg1; |
6806 | wxString * _arg2; | |
1d99702e RD |
6807 | int _arg3 = (int ) -1; |
6808 | int _arg4 = (int ) -1; | |
6809 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
6810 | PyObject * _argo0 = 0; | |
6811 | PyObject * _argo1 = 0; | |
d5c9047a | 6812 | PyObject * _obj2 = 0; |
1d99702e | 6813 | PyObject * _argo5 = 0; |
efc5f224 | 6814 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 6815 | char _ptemp[128]; |
8ab979d7 RD |
6816 | |
6817 | self = self; | |
efc5f224 | 6818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 6819 | return NULL; |
1d99702e RD |
6820 | if (_argo0) { |
6821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6824 | return NULL; |
6825 | } | |
6826 | } | |
1d99702e RD |
6827 | if (_argo1) { |
6828 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6829 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); |
6831 | return NULL; | |
6832 | } | |
6833 | } | |
6834 | { | |
185d7c3e RD |
6835 | #if PYTHON_API_VERSION >= 1009 |
6836 | char* tmpPtr; int tmpSize; | |
6837 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 6838 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6839 | return NULL; |
6840 | } | |
6841 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6842 | return NULL; | |
6843 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6844 | #else | |
d5c9047a RD |
6845 | if (!PyString_Check(_obj2)) { |
6846 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6847 | return NULL; | |
6848 | } | |
185d7c3e RD |
6849 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6850 | #endif | |
d5c9047a | 6851 | } |
1d99702e RD |
6852 | if (_argo5) { |
6853 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6854 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 6855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
6856 | return NULL; |
6857 | } | |
6858 | } | |
cf694132 RD |
6859 | { |
6860 | wxPy_BEGIN_ALLOW_THREADS; | |
6861 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
6862 | ||
6863 | wxPy_END_ALLOW_THREADS; | |
6864 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a RD |
6865 | _resultobj = Py_BuildValue("s",_ptemp); |
6866 | { | |
6867 | if (_obj2) | |
6868 | delete _arg2; | |
6869 | } | |
8ab979d7 RD |
6870 | return _resultobj; |
6871 | } | |
6872 | ||
d5c9047a | 6873 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6874 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6875 | PyObject * _resultobj; |
d5c9047a | 6876 | wxTreeItemId * _result; |
f6bcfd97 | 6877 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6878 | wxTreeItemId * _arg1; |
6879 | wxTreeItemId * _arg2; | |
6880 | wxString * _arg3; | |
1d99702e RD |
6881 | int _arg4 = (int ) -1; |
6882 | int _arg5 = (int ) -1; | |
6883 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
6884 | PyObject * _argo0 = 0; | |
6885 | PyObject * _argo1 = 0; | |
6886 | PyObject * _argo2 = 0; | |
d5c9047a | 6887 | PyObject * _obj3 = 0; |
1d99702e | 6888 | PyObject * _argo6 = 0; |
efc5f224 | 6889 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; |
d5c9047a | 6890 | char _ptemp[128]; |
8ab979d7 RD |
6891 | |
6892 | self = self; | |
efc5f224 | 6893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) |
8ab979d7 | 6894 | return NULL; |
1d99702e RD |
6895 | if (_argo0) { |
6896 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6897 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6898 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6899 | return NULL; |
6900 | } | |
6901 | } | |
1d99702e RD |
6902 | if (_argo1) { |
6903 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6904 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
6906 | return NULL; | |
6907 | } | |
6908 | } | |
1d99702e RD |
6909 | if (_argo2) { |
6910 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6911 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
6913 | return NULL; | |
6914 | } | |
6915 | } | |
6916 | { | |
185d7c3e RD |
6917 | #if PYTHON_API_VERSION >= 1009 |
6918 | char* tmpPtr; int tmpSize; | |
6919 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 6920 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6921 | return NULL; |
6922 | } | |
6923 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
6924 | return NULL; | |
6925 | _arg3 = new wxString(tmpPtr, tmpSize); | |
6926 | #else | |
d5c9047a RD |
6927 | if (!PyString_Check(_obj3)) { |
6928 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6929 | return NULL; | |
6930 | } | |
185d7c3e RD |
6931 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
6932 | #endif | |
d5c9047a | 6933 | } |
1d99702e RD |
6934 | if (_argo6) { |
6935 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6936 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
cf694132 | 6937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
6938 | return NULL; |
6939 | } | |
6940 | } | |
cf694132 RD |
6941 | { |
6942 | wxPy_BEGIN_ALLOW_THREADS; | |
6943 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
6944 | ||
6945 | wxPy_END_ALLOW_THREADS; | |
6946 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a RD |
6947 | _resultobj = Py_BuildValue("s",_ptemp); |
6948 | { | |
6949 | if (_obj3) | |
6950 | delete _arg3; | |
6951 | } | |
8ab979d7 RD |
6952 | return _resultobj; |
6953 | } | |
6954 | ||
f6bcfd97 BP |
6955 | #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
6956 | static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6957 | PyObject * _resultobj; | |
6958 | wxTreeItemId * _result; | |
6959 | wxPyTreeCtrl * _arg0; | |
6960 | wxTreeItemId * _arg1; | |
6961 | size_t _arg2; | |
6962 | wxString * _arg3; | |
6963 | int _arg4 = (int ) -1; | |
6964 | int _arg5 = (int ) -1; | |
6965 | wxTreeItemData * _arg6 = (wxTreeItemData *) NULL; | |
6966 | PyObject * _argo0 = 0; | |
6967 | PyObject * _argo1 = 0; | |
6968 | PyObject * _obj3 = 0; | |
6969 | PyObject * _argo6 = 0; | |
6970 | char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL }; | |
6971 | char _ptemp[128]; | |
6972 | ||
6973 | self = self; | |
6974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
6975 | return NULL; | |
6976 | if (_argo0) { | |
6977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p."); | |
6980 | return NULL; | |
6981 | } | |
6982 | } | |
6983 | if (_argo1) { | |
6984 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6985 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p."); | |
6987 | return NULL; | |
6988 | } | |
6989 | } | |
6990 | { | |
185d7c3e RD |
6991 | #if PYTHON_API_VERSION >= 1009 |
6992 | char* tmpPtr; int tmpSize; | |
6993 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 6994 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6995 | return NULL; |
6996 | } | |
6997 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
6998 | return NULL; | |
6999 | _arg3 = new wxString(tmpPtr, tmpSize); | |
7000 | #else | |
f6bcfd97 BP |
7001 | if (!PyString_Check(_obj3)) { |
7002 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7003 | return NULL; | |
7004 | } | |
185d7c3e RD |
7005 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
7006 | #endif | |
f6bcfd97 BP |
7007 | } |
7008 | if (_argo6) { | |
7009 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
7010 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxTreeItemData_p")) { | |
7011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemData_p."); | |
7012 | return NULL; | |
7013 | } | |
7014 | } | |
7015 | { | |
7016 | wxPy_BEGIN_ALLOW_THREADS; | |
7017 | _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
7018 | ||
7019 | wxPy_END_ALLOW_THREADS; | |
7020 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
7021 | _resultobj = Py_BuildValue("s",_ptemp); | |
7022 | { | |
7023 | if (_obj3) | |
7024 | delete _arg3; | |
7025 | } | |
7026 | return _resultobj; | |
7027 | } | |
7028 | ||
d5c9047a | 7029 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 7030 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7031 | PyObject * _resultobj; |
d5c9047a | 7032 | wxTreeItemId * _result; |
f6bcfd97 | 7033 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7034 | wxTreeItemId * _arg1; |
8ab979d7 | 7035 | wxString * _arg2; |
1d99702e RD |
7036 | int _arg3 = (int ) -1; |
7037 | int _arg4 = (int ) -1; | |
7038 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
7039 | PyObject * _argo0 = 0; | |
7040 | PyObject * _argo1 = 0; | |
8ab979d7 | 7041 | PyObject * _obj2 = 0; |
1d99702e | 7042 | PyObject * _argo5 = 0; |
efc5f224 | 7043 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 7044 | char _ptemp[128]; |
8ab979d7 RD |
7045 | |
7046 | self = self; | |
efc5f224 | 7047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 7048 | return NULL; |
1d99702e RD |
7049 | if (_argo0) { |
7050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7053 | return NULL; |
7054 | } | |
7055 | } | |
1d99702e RD |
7056 | if (_argo1) { |
7057 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7058 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7060 | return NULL; |
7061 | } | |
7062 | } | |
7063 | { | |
185d7c3e RD |
7064 | #if PYTHON_API_VERSION >= 1009 |
7065 | char* tmpPtr; int tmpSize; | |
7066 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7067 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7068 | return NULL; |
7069 | } | |
7070 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7071 | return NULL; | |
7072 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7073 | #else | |
8ab979d7 RD |
7074 | if (!PyString_Check(_obj2)) { |
7075 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7076 | return NULL; | |
7077 | } | |
185d7c3e RD |
7078 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7079 | #endif | |
8ab979d7 | 7080 | } |
1d99702e RD |
7081 | if (_argo5) { |
7082 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
7083 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 7084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
7085 | return NULL; |
7086 | } | |
7087 | } | |
cf694132 RD |
7088 | { |
7089 | wxPy_BEGIN_ALLOW_THREADS; | |
7090 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
7091 | ||
7092 | wxPy_END_ALLOW_THREADS; | |
7093 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 7094 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7095 | { |
7096 | if (_obj2) | |
7097 | delete _arg2; | |
7098 | } | |
7099 | return _resultobj; | |
7100 | } | |
7101 | ||
d5c9047a | 7102 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
efc5f224 | 7103 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7104 | PyObject * _resultobj; |
f6bcfd97 | 7105 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7106 | wxTreeItemId * _arg1; |
1d99702e RD |
7107 | PyObject * _argo0 = 0; |
7108 | PyObject * _argo1 = 0; | |
efc5f224 | 7109 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7110 | |
7111 | self = self; | |
efc5f224 | 7112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7113 | return NULL; |
1d99702e RD |
7114 | if (_argo0) { |
7115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7118 | return NULL; |
7119 | } | |
7120 | } | |
1d99702e RD |
7121 | if (_argo1) { |
7122 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7123 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); |
7125 | return NULL; | |
7126 | } | |
7127 | } | |
cf694132 RD |
7128 | { |
7129 | wxPy_BEGIN_ALLOW_THREADS; | |
7130 | wxTreeCtrl_Delete(_arg0,*_arg1); | |
7131 | ||
7132 | wxPy_END_ALLOW_THREADS; | |
7133 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7134 | _resultobj = Py_None; |
7135 | return _resultobj; | |
7136 | } | |
7137 | ||
08127323 | 7138 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) |
efc5f224 | 7139 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 7140 | PyObject * _resultobj; |
f6bcfd97 | 7141 | wxPyTreeCtrl * _arg0; |
08127323 | 7142 | wxTreeItemId * _arg1; |
1d99702e RD |
7143 | PyObject * _argo0 = 0; |
7144 | PyObject * _argo1 = 0; | |
efc5f224 | 7145 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
7146 | |
7147 | self = self; | |
efc5f224 | 7148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) |
08127323 | 7149 | return NULL; |
1d99702e RD |
7150 | if (_argo0) { |
7151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
7154 | return NULL; |
7155 | } | |
7156 | } | |
1d99702e RD |
7157 | if (_argo1) { |
7158 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7159 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
08127323 RD |
7160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); |
7161 | return NULL; | |
7162 | } | |
7163 | } | |
cf694132 RD |
7164 | { |
7165 | wxPy_BEGIN_ALLOW_THREADS; | |
7166 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); | |
7167 | ||
7168 | wxPy_END_ALLOW_THREADS; | |
7169 | } Py_INCREF(Py_None); | |
08127323 RD |
7170 | _resultobj = Py_None; |
7171 | return _resultobj; | |
7172 | } | |
7173 | ||
d5c9047a | 7174 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) |
efc5f224 | 7175 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7176 | PyObject * _resultobj; |
f6bcfd97 | 7177 | wxPyTreeCtrl * _arg0; |
1d99702e | 7178 | PyObject * _argo0 = 0; |
efc5f224 | 7179 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
7180 | |
7181 | self = self; | |
efc5f224 | 7182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) |
d5c9047a | 7183 | return NULL; |
1d99702e RD |
7184 | if (_argo0) { |
7185 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7186 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7188 | return NULL; |
7189 | } | |
7190 | } | |
cf694132 RD |
7191 | { |
7192 | wxPy_BEGIN_ALLOW_THREADS; | |
7193 | wxTreeCtrl_DeleteAllItems(_arg0); | |
7194 | ||
7195 | wxPy_END_ALLOW_THREADS; | |
7196 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7197 | _resultobj = Py_None; |
7198 | return _resultobj; | |
7199 | } | |
7200 | ||
7201 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
efc5f224 | 7202 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7203 | PyObject * _resultobj; |
f6bcfd97 | 7204 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7205 | wxTreeItemId * _arg1; |
1d99702e RD |
7206 | PyObject * _argo0 = 0; |
7207 | PyObject * _argo1 = 0; | |
efc5f224 | 7208 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7209 | |
7210 | self = self; | |
efc5f224 | 7211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7212 | return NULL; |
1d99702e RD |
7213 | if (_argo0) { |
7214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7217 | return NULL; |
7218 | } | |
7219 | } | |
1d99702e RD |
7220 | if (_argo1) { |
7221 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7222 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); |
7224 | return NULL; | |
7225 | } | |
7226 | } | |
cf694132 RD |
7227 | { |
7228 | wxPy_BEGIN_ALLOW_THREADS; | |
7229 | wxTreeCtrl_Expand(_arg0,*_arg1); | |
7230 | ||
7231 | wxPy_END_ALLOW_THREADS; | |
7232 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7233 | _resultobj = Py_None; |
7234 | return _resultobj; | |
7235 | } | |
7236 | ||
7237 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
efc5f224 | 7238 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7239 | PyObject * _resultobj; |
f6bcfd97 | 7240 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7241 | wxTreeItemId * _arg1; |
1d99702e RD |
7242 | PyObject * _argo0 = 0; |
7243 | PyObject * _argo1 = 0; | |
efc5f224 | 7244 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7245 | |
7246 | self = self; | |
efc5f224 | 7247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7248 | return NULL; |
1d99702e RD |
7249 | if (_argo0) { |
7250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7253 | return NULL; |
7254 | } | |
7255 | } | |
1d99702e RD |
7256 | if (_argo1) { |
7257 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7258 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p."); |
7260 | return NULL; | |
7261 | } | |
7262 | } | |
cf694132 RD |
7263 | { |
7264 | wxPy_BEGIN_ALLOW_THREADS; | |
7265 | wxTreeCtrl_Collapse(_arg0,*_arg1); | |
7266 | ||
7267 | wxPy_END_ALLOW_THREADS; | |
7268 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7269 | _resultobj = Py_None; |
7270 | return _resultobj; | |
7271 | } | |
7272 | ||
7273 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
efc5f224 | 7274 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7275 | PyObject * _resultobj; |
f6bcfd97 | 7276 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7277 | wxTreeItemId * _arg1; |
1d99702e RD |
7278 | PyObject * _argo0 = 0; |
7279 | PyObject * _argo1 = 0; | |
efc5f224 | 7280 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7281 | |
7282 | self = self; | |
efc5f224 | 7283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7284 | return NULL; |
1d99702e RD |
7285 | if (_argo0) { |
7286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7289 | return NULL; |
7290 | } | |
7291 | } | |
1d99702e RD |
7292 | if (_argo1) { |
7293 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7294 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); |
7296 | return NULL; | |
7297 | } | |
7298 | } | |
cf694132 RD |
7299 | { |
7300 | wxPy_BEGIN_ALLOW_THREADS; | |
7301 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); | |
7302 | ||
7303 | wxPy_END_ALLOW_THREADS; | |
7304 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7305 | _resultobj = Py_None; |
7306 | return _resultobj; | |
7307 | } | |
7308 | ||
7309 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
efc5f224 | 7310 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7311 | PyObject * _resultobj; |
f6bcfd97 | 7312 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7313 | wxTreeItemId * _arg1; |
1d99702e RD |
7314 | PyObject * _argo0 = 0; |
7315 | PyObject * _argo1 = 0; | |
efc5f224 | 7316 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7317 | |
7318 | self = self; | |
efc5f224 | 7319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7320 | return NULL; |
1d99702e RD |
7321 | if (_argo0) { |
7322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7325 | return NULL; |
7326 | } | |
7327 | } | |
1d99702e RD |
7328 | if (_argo1) { |
7329 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7330 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); |
7332 | return NULL; | |
7333 | } | |
7334 | } | |
cf694132 RD |
7335 | { |
7336 | wxPy_BEGIN_ALLOW_THREADS; | |
7337 | wxTreeCtrl_Toggle(_arg0,*_arg1); | |
7338 | ||
7339 | wxPy_END_ALLOW_THREADS; | |
7340 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7341 | _resultobj = Py_None; |
7342 | return _resultobj; | |
7343 | } | |
7344 | ||
7345 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
efc5f224 | 7346 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7347 | PyObject * _resultobj; |
f6bcfd97 | 7348 | wxPyTreeCtrl * _arg0; |
1d99702e | 7349 | PyObject * _argo0 = 0; |
efc5f224 | 7350 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
7351 | |
7352 | self = self; | |
efc5f224 | 7353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) |
d5c9047a | 7354 | return NULL; |
1d99702e RD |
7355 | if (_argo0) { |
7356 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7357 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7359 | return NULL; |
7360 | } | |
7361 | } | |
cf694132 RD |
7362 | { |
7363 | wxPy_BEGIN_ALLOW_THREADS; | |
7364 | wxTreeCtrl_Unselect(_arg0); | |
7365 | ||
7366 | wxPy_END_ALLOW_THREADS; | |
7367 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7368 | _resultobj = Py_None; |
7369 | return _resultobj; | |
7370 | } | |
7371 | ||
8bf5d46e | 7372 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) |
efc5f224 | 7373 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e | 7374 | PyObject * _resultobj; |
f6bcfd97 | 7375 | wxPyTreeCtrl * _arg0; |
1d99702e | 7376 | PyObject * _argo0 = 0; |
efc5f224 | 7377 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
7378 | |
7379 | self = self; | |
efc5f224 | 7380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) |
8bf5d46e | 7381 | return NULL; |
1d99702e RD |
7382 | if (_argo0) { |
7383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p."); | |
8bf5d46e RD |
7386 | return NULL; |
7387 | } | |
7388 | } | |
7389 | { | |
7390 | wxPy_BEGIN_ALLOW_THREADS; | |
7391 | wxTreeCtrl_UnselectAll(_arg0); | |
7392 | ||
7393 | wxPy_END_ALLOW_THREADS; | |
7394 | } Py_INCREF(Py_None); | |
7395 | _resultobj = Py_None; | |
7396 | return _resultobj; | |
7397 | } | |
7398 | ||
d5c9047a | 7399 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) |
efc5f224 | 7400 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7401 | PyObject * _resultobj; |
f6bcfd97 | 7402 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7403 | wxTreeItemId * _arg1; |
1d99702e RD |
7404 | PyObject * _argo0 = 0; |
7405 | PyObject * _argo1 = 0; | |
efc5f224 | 7406 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7407 | |
7408 | self = self; | |
efc5f224 | 7409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7410 | return NULL; |
1d99702e RD |
7411 | if (_argo0) { |
7412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7415 | return NULL; |
7416 | } | |
7417 | } | |
1d99702e RD |
7418 | if (_argo1) { |
7419 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7420 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); |
7422 | return NULL; | |
7423 | } | |
7424 | } | |
cf694132 RD |
7425 | { |
7426 | wxPy_BEGIN_ALLOW_THREADS; | |
7427 | wxTreeCtrl_SelectItem(_arg0,*_arg1); | |
7428 | ||
7429 | wxPy_END_ALLOW_THREADS; | |
7430 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7431 | _resultobj = Py_None; |
7432 | return _resultobj; | |
7433 | } | |
7434 | ||
7435 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
efc5f224 | 7436 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7437 | PyObject * _resultobj; |
f6bcfd97 | 7438 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7439 | wxTreeItemId * _arg1; |
1d99702e RD |
7440 | PyObject * _argo0 = 0; |
7441 | PyObject * _argo1 = 0; | |
efc5f224 | 7442 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7443 | |
7444 | self = self; | |
efc5f224 | 7445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7446 | return NULL; |
1d99702e RD |
7447 | if (_argo0) { |
7448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7451 | return NULL; |
7452 | } | |
7453 | } | |
1d99702e RD |
7454 | if (_argo1) { |
7455 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7456 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); |
7458 | return NULL; | |
7459 | } | |
7460 | } | |
cf694132 RD |
7461 | { |
7462 | wxPy_BEGIN_ALLOW_THREADS; | |
7463 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); | |
7464 | ||
7465 | wxPy_END_ALLOW_THREADS; | |
7466 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7467 | _resultobj = Py_None; |
7468 | return _resultobj; | |
7469 | } | |
7470 | ||
7471 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
efc5f224 | 7472 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7473 | PyObject * _resultobj; |
f6bcfd97 | 7474 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7475 | wxTreeItemId * _arg1; |
1d99702e RD |
7476 | PyObject * _argo0 = 0; |
7477 | PyObject * _argo1 = 0; | |
efc5f224 | 7478 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7479 | |
7480 | self = self; | |
efc5f224 | 7481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7482 | return NULL; |
1d99702e RD |
7483 | if (_argo0) { |
7484 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7485 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7486 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7487 | return NULL; |
7488 | } | |
7489 | } | |
1d99702e RD |
7490 | if (_argo1) { |
7491 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7492 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); |
7494 | return NULL; | |
7495 | } | |
7496 | } | |
cf694132 RD |
7497 | { |
7498 | wxPy_BEGIN_ALLOW_THREADS; | |
7499 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); | |
7500 | ||
7501 | wxPy_END_ALLOW_THREADS; | |
7502 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7503 | _resultobj = Py_None; |
7504 | return _resultobj; | |
7505 | } | |
7506 | ||
7507 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
efc5f224 | 7508 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
7509 | PyObject * _resultobj; |
7510 | wxTextCtrl * _result; | |
f6bcfd97 | 7511 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7512 | wxTreeItemId * _arg1; |
1d99702e RD |
7513 | PyObject * _argo0 = 0; |
7514 | PyObject * _argo1 = 0; | |
efc5f224 | 7515 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7516 | |
7517 | self = self; | |
efc5f224 | 7518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7519 | return NULL; |
1d99702e RD |
7520 | if (_argo0) { |
7521 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7522 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7524 | return NULL; |
7525 | } | |
7526 | } | |
1d99702e RD |
7527 | if (_argo1) { |
7528 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7529 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); |
7531 | return NULL; | |
7532 | } | |
7533 | } | |
cf694132 RD |
7534 | { |
7535 | wxPy_BEGIN_ALLOW_THREADS; | |
7536 | _result = (wxTextCtrl *)wxTreeCtrl_EditLabel(_arg0,*_arg1); | |
7537 | ||
7538 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 7539 | }{ _resultobj = wxPyMake_wxObject(_result); } |
d5c9047a RD |
7540 | return _resultobj; |
7541 | } | |
7542 | ||
7543 | #define wxTreeCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) | |
efc5f224 | 7544 | static PyObject *_wrap_wxTreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
7545 | PyObject * _resultobj; |
7546 | wxTextCtrl * _result; | |
f6bcfd97 | 7547 | wxPyTreeCtrl * _arg0; |
1d99702e | 7548 | PyObject * _argo0 = 0; |
efc5f224 | 7549 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
7550 | |
7551 | self = self; | |
efc5f224 | 7552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetEditControl",_kwnames,&_argo0)) |
d5c9047a | 7553 | return NULL; |
1d99702e RD |
7554 | if (_argo0) { |
7555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetEditControl. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7558 | return NULL; |
7559 | } | |
7560 | } | |
cf694132 RD |
7561 | { |
7562 | wxPy_BEGIN_ALLOW_THREADS; | |
7563 | _result = (wxTextCtrl *)wxTreeCtrl_GetEditControl(_arg0); | |
7564 | ||
7565 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 7566 | }{ _resultobj = wxPyMake_wxObject(_result); } |
d5c9047a RD |
7567 | return _resultobj; |
7568 | } | |
7569 | ||
7570 | #define wxTreeCtrl_EndEditLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->EndEditLabel(_swigarg0,_swigarg1)) | |
efc5f224 | 7571 | static PyObject *_wrap_wxTreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7572 | PyObject * _resultobj; |
f6bcfd97 | 7573 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7574 | wxTreeItemId * _arg1; |
b1462dfa | 7575 | int _arg2 = (int ) FALSE; |
1d99702e RD |
7576 | PyObject * _argo0 = 0; |
7577 | PyObject * _argo1 = 0; | |
efc5f224 | 7578 | char *_kwnames[] = { "self","item","discardChanges", NULL }; |
d5c9047a RD |
7579 | |
7580 | self = self; | |
b1462dfa | 7581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_EndEditLabel",_kwnames,&_argo0,&_argo1,&_arg2)) |
d5c9047a | 7582 | return NULL; |
1d99702e RD |
7583 | if (_argo0) { |
7584 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7585 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EndEditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7587 | return NULL; |
7588 | } | |
7589 | } | |
1d99702e RD |
7590 | if (_argo1) { |
7591 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7592 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EndEditLabel. Expected _wxTreeItemId_p."); |
7594 | return NULL; | |
7595 | } | |
7596 | } | |
cf694132 RD |
7597 | { |
7598 | wxPy_BEGIN_ALLOW_THREADS; | |
7599 | wxTreeCtrl_EndEditLabel(_arg0,*_arg1,_arg2); | |
7600 | ||
7601 | wxPy_END_ALLOW_THREADS; | |
7602 | } Py_INCREF(Py_None); | |
d5c9047a | 7603 | _resultobj = Py_None; |
8ab979d7 RD |
7604 | return _resultobj; |
7605 | } | |
7606 | ||
d426c97e RD |
7607 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) |
7608 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7609 | PyObject * _resultobj; | |
f6bcfd97 | 7610 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
7611 | wxTreeItemId * _arg1; |
7612 | PyObject * _argo0 = 0; | |
7613 | PyObject * _argo1 = 0; | |
7614 | char *_kwnames[] = { "self","item", NULL }; | |
7615 | ||
7616 | self = self; | |
7617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
7618 | return NULL; | |
7619 | if (_argo0) { | |
7620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
7623 | return NULL; |
7624 | } | |
7625 | } | |
7626 | if (_argo1) { | |
7627 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7628 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); | |
7630 | return NULL; | |
7631 | } | |
7632 | } | |
7633 | { | |
7634 | wxPy_BEGIN_ALLOW_THREADS; | |
7635 | wxTreeCtrl_SortChildren(_arg0,*_arg1); | |
7636 | ||
7637 | wxPy_END_ALLOW_THREADS; | |
7638 | } Py_INCREF(Py_None); | |
7639 | _resultobj = Py_None; | |
7640 | return _resultobj; | |
7641 | } | |
7642 | ||
b8b8dda7 | 7643 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) |
efc5f224 | 7644 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 | 7645 | PyObject * _resultobj; |
f6bcfd97 | 7646 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 7647 | wxTreeItemId * _arg1; |
b1462dfa | 7648 | int _arg2 = (int ) TRUE; |
1d99702e RD |
7649 | PyObject * _argo0 = 0; |
7650 | PyObject * _argo1 = 0; | |
efc5f224 | 7651 | char *_kwnames[] = { "self","item","bold", NULL }; |
b8b8dda7 RD |
7652 | |
7653 | self = self; | |
b1462dfa | 7654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) |
b8b8dda7 | 7655 | return NULL; |
1d99702e RD |
7656 | if (_argo0) { |
7657 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7658 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
7660 | return NULL; |
7661 | } | |
7662 | } | |
1d99702e RD |
7663 | if (_argo1) { |
7664 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7665 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
7666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); |
7667 | return NULL; | |
7668 | } | |
7669 | } | |
cf694132 RD |
7670 | { |
7671 | wxPy_BEGIN_ALLOW_THREADS; | |
7672 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); | |
7673 | ||
7674 | wxPy_END_ALLOW_THREADS; | |
7675 | } Py_INCREF(Py_None); | |
b8b8dda7 RD |
7676 | _resultobj = Py_None; |
7677 | return _resultobj; | |
7678 | } | |
7679 | ||
7680 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
efc5f224 | 7681 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
7682 | PyObject * _resultobj; |
7683 | bool _result; | |
f6bcfd97 | 7684 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 7685 | wxTreeItemId * _arg1; |
1d99702e RD |
7686 | PyObject * _argo0 = 0; |
7687 | PyObject * _argo1 = 0; | |
efc5f224 | 7688 | char *_kwnames[] = { "self","item", NULL }; |
b8b8dda7 RD |
7689 | |
7690 | self = self; | |
efc5f224 | 7691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 7692 | return NULL; |
1d99702e RD |
7693 | if (_argo0) { |
7694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
7697 | return NULL; |
7698 | } | |
7699 | } | |
1d99702e RD |
7700 | if (_argo1) { |
7701 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7702 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
7703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); |
7704 | return NULL; | |
7705 | } | |
7706 | } | |
cf694132 RD |
7707 | { |
7708 | wxPy_BEGIN_ALLOW_THREADS; | |
7709 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); | |
7710 | ||
7711 | wxPy_END_ALLOW_THREADS; | |
7712 | } _resultobj = Py_BuildValue("i",_result); | |
b8b8dda7 RD |
7713 | return _resultobj; |
7714 | } | |
7715 | ||
164b735b | 7716 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
efc5f224 | 7717 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
7718 | PyObject * _resultobj; |
7719 | wxTreeItemId * _result; | |
f6bcfd97 | 7720 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 7721 | wxPoint * _arg1; |
164b735b RD |
7722 | int * _arg2; |
7723 | int temp; | |
1d99702e | 7724 | PyObject * _argo0 = 0; |
164b735b | 7725 | wxPoint temp0; |
2f90df85 | 7726 | PyObject * _obj1 = 0; |
efc5f224 | 7727 | char *_kwnames[] = { "self","point", NULL }; |
b8b8dda7 RD |
7728 | char _ptemp[128]; |
7729 | ||
7730 | self = self; | |
164b735b RD |
7731 | { |
7732 | _arg2 = &temp; | |
7733 | } | |
2f90df85 | 7734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 7735 | return NULL; |
1d99702e RD |
7736 | if (_argo0) { |
7737 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7738 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
7740 | return NULL; |
7741 | } | |
7742 | } | |
2f90df85 | 7743 | { |
164b735b | 7744 | _arg1 = &temp0; |
2f90df85 | 7745 | if (! wxPoint_helper(_obj1, &_arg1)) |
b8b8dda7 | 7746 | return NULL; |
2f90df85 | 7747 | } |
cf694132 RD |
7748 | { |
7749 | wxPy_BEGIN_ALLOW_THREADS; | |
164b735b | 7750 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); |
cf694132 RD |
7751 | |
7752 | wxPy_END_ALLOW_THREADS; | |
7753 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
b8b8dda7 | 7754 | _resultobj = Py_BuildValue("s",_ptemp); |
164b735b RD |
7755 | { |
7756 | PyObject *o; | |
7757 | o = PyInt_FromLong((long) (*_arg2)); | |
7758 | _resultobj = t_output_helper(_resultobj, o); | |
7759 | } | |
b8b8dda7 RD |
7760 | return _resultobj; |
7761 | } | |
7762 | ||
b7e72427 RD |
7763 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
7764 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7765 | PyObject * _resultobj; | |
f6bcfd97 | 7766 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
7767 | wxTreeItemId * _arg1; |
7768 | wxColour * _arg2; | |
7769 | PyObject * _argo0 = 0; | |
7770 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
7771 | wxColour temp; |
7772 | PyObject * _obj2 = 0; | |
b7e72427 RD |
7773 | char *_kwnames[] = { "self","item","col", NULL }; |
7774 | ||
7775 | self = self; | |
f6bcfd97 | 7776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
7777 | return NULL; |
7778 | if (_argo0) { | |
7779 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7780 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
7782 | return NULL; |
7783 | } | |
7784 | } | |
7785 | if (_argo1) { | |
7786 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7787 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); | |
7789 | return NULL; | |
7790 | } | |
7791 | } | |
f6bcfd97 BP |
7792 | { |
7793 | _arg2 = &temp; | |
7794 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 7795 | return NULL; |
f6bcfd97 | 7796 | } |
b7e72427 RD |
7797 | { |
7798 | wxPy_BEGIN_ALLOW_THREADS; | |
7799 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); | |
7800 | ||
7801 | wxPy_END_ALLOW_THREADS; | |
7802 | } Py_INCREF(Py_None); | |
7803 | _resultobj = Py_None; | |
7804 | return _resultobj; | |
7805 | } | |
7806 | ||
7807 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
7808 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7809 | PyObject * _resultobj; | |
f6bcfd97 | 7810 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
7811 | wxTreeItemId * _arg1; |
7812 | wxColour * _arg2; | |
7813 | PyObject * _argo0 = 0; | |
7814 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
7815 | wxColour temp; |
7816 | PyObject * _obj2 = 0; | |
b7e72427 RD |
7817 | char *_kwnames[] = { "self","item","col", NULL }; |
7818 | ||
7819 | self = self; | |
f6bcfd97 | 7820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
7821 | return NULL; |
7822 | if (_argo0) { | |
7823 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7824 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
7826 | return NULL; |
7827 | } | |
7828 | } | |
7829 | if (_argo1) { | |
7830 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7831 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
7833 | return NULL; | |
7834 | } | |
7835 | } | |
f6bcfd97 BP |
7836 | { |
7837 | _arg2 = &temp; | |
7838 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 7839 | return NULL; |
f6bcfd97 | 7840 | } |
b7e72427 RD |
7841 | { |
7842 | wxPy_BEGIN_ALLOW_THREADS; | |
7843 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); | |
7844 | ||
7845 | wxPy_END_ALLOW_THREADS; | |
7846 | } Py_INCREF(Py_None); | |
7847 | _resultobj = Py_None; | |
7848 | return _resultobj; | |
7849 | } | |
7850 | ||
7851 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
7852 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7853 | PyObject * _resultobj; | |
f6bcfd97 | 7854 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
7855 | wxTreeItemId * _arg1; |
7856 | wxFont * _arg2; | |
7857 | PyObject * _argo0 = 0; | |
7858 | PyObject * _argo1 = 0; | |
7859 | PyObject * _argo2 = 0; | |
7860 | char *_kwnames[] = { "self","item","font", NULL }; | |
7861 | ||
7862 | self = self; | |
7863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
7864 | return NULL; | |
7865 | if (_argo0) { | |
7866 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7867 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
7869 | return NULL; |
7870 | } | |
7871 | } | |
7872 | if (_argo1) { | |
7873 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7874 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); | |
7876 | return NULL; | |
7877 | } | |
7878 | } | |
7879 | if (_argo2) { | |
7880 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7881 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
7882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); | |
7883 | return NULL; | |
7884 | } | |
7885 | } | |
7886 | { | |
7887 | wxPy_BEGIN_ALLOW_THREADS; | |
7888 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); | |
7889 | ||
7890 | wxPy_END_ALLOW_THREADS; | |
7891 | } Py_INCREF(Py_None); | |
7892 | _resultobj = Py_None; | |
7893 | return _resultobj; | |
7894 | } | |
7895 | ||
b1462dfa RD |
7896 | #define wxTreeCtrl_SetItemDropHighlight(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemDropHighlight(_swigarg0,_swigarg1)) |
7897 | static PyObject *_wrap_wxTreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7898 | PyObject * _resultobj; | |
f6bcfd97 | 7899 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
7900 | wxTreeItemId * _arg1; |
7901 | int _arg2 = (int ) TRUE; | |
7902 | PyObject * _argo0 = 0; | |
7903 | PyObject * _argo1 = 0; | |
7904 | char *_kwnames[] = { "self","item","highlight", NULL }; | |
7905 | ||
7906 | self = self; | |
7907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemDropHighlight",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7908 | return NULL; | |
7909 | if (_argo0) { | |
7910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemDropHighlight. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
7913 | return NULL; |
7914 | } | |
7915 | } | |
7916 | if (_argo1) { | |
7917 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7918 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemDropHighlight. Expected _wxTreeItemId_p."); | |
7920 | return NULL; | |
7921 | } | |
7922 | } | |
7923 | { | |
7924 | wxPy_BEGIN_ALLOW_THREADS; | |
7925 | wxTreeCtrl_SetItemDropHighlight(_arg0,*_arg1,_arg2); | |
7926 | ||
7927 | wxPy_END_ALLOW_THREADS; | |
7928 | } Py_INCREF(Py_None); | |
7929 | _resultobj = Py_None; | |
7930 | return _resultobj; | |
7931 | } | |
7932 | ||
f6bcfd97 | 7933 | static PyObject * wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,const wxTreeItemId & item,int textOnly) { |
d426c97e | 7934 | wxRect rect; |
164b735b RD |
7935 | if (self->GetBoundingRect(item, rect, textOnly)) { |
7936 | bool doSave = wxPyRestoreThread(); | |
7937 | wxRect* r = new wxRect(rect); | |
7938 | PyObject* val = wxPyConstructObject((void*)r, "wxRect"); | |
7939 | wxPySaveThread(doSave); | |
7940 | return val; | |
7941 | } | |
d426c97e RD |
7942 | else { |
7943 | Py_INCREF(Py_None); | |
7944 | return Py_None; | |
7945 | } | |
7946 | } | |
7947 | static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7948 | PyObject * _resultobj; | |
7949 | PyObject * _result; | |
f6bcfd97 | 7950 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
7951 | wxTreeItemId * _arg1; |
7952 | int _arg2 = (int ) FALSE; | |
7953 | PyObject * _argo0 = 0; | |
7954 | PyObject * _argo1 = 0; | |
7955 | char *_kwnames[] = { "self","item","textOnly", NULL }; | |
7956 | ||
7957 | self = self; | |
7958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7959 | return NULL; | |
7960 | if (_argo0) { | |
7961 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7962 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetBoundingRect. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
7964 | return NULL; |
7965 | } | |
7966 | } | |
7967 | if (_argo1) { | |
7968 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7969 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeItemId_p."); | |
7971 | return NULL; | |
7972 | } | |
7973 | } | |
7974 | { | |
7975 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 7976 | _result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(_arg0,*_arg1,_arg2); |
d426c97e RD |
7977 | |
7978 | wxPy_END_ALLOW_THREADS; | |
7979 | }{ | |
7980 | _resultobj = _result; | |
7981 | } | |
7982 | return _resultobj; | |
7983 | } | |
7984 | ||
8ab979d7 | 7985 | static PyMethodDef controls2cMethods[] = { |
d426c97e | 7986 | { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 7987 | { "wxTreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_wxTreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 RD |
7988 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, |
7989 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
7990 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
7991 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
7992 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
7993 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 7994 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
7995 | { "wxTreeCtrl_EndEditLabel", (PyCFunction) _wrap_wxTreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, |
7996 | { "wxTreeCtrl_GetEditControl", (PyCFunction) _wrap_wxTreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
7997 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
7998 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
7999 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
8000 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
8001 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
8002 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
8003 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
8004 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
8005 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
8006 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
8007 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
8008 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
8009 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
8010 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 8011 | { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8012 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, |
8013 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
8014 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 8015 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8016 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, |
8017 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
8018 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
8019 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
8020 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
8021 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
8022 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
8023 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 8024 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 8025 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8026 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
8027 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
8028 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
8029 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
8030 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
8031 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
8032 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, | |
8033 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
8034 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
8035 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
8036 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
8037 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
8038 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
8039 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
8040 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
8041 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
8042 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
8043 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, |
8044 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8045 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, |
8046 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
8047 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
8048 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
8049 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
8050 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
8051 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 8052 | { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 8053 | { "wxTreeCtrl__setSelf", (PyCFunction) _wrap_wxTreeCtrl__setSelf, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8054 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, |
8055 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
8056 | { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
8057 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
8058 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
8059 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
8060 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
8061 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
8062 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
8063 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
8064 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 8065 | { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8066 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, |
8067 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
8068 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
dcd38683 | 8069 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8070 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
8071 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
8072 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
8073 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
8074 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
8075 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
8076 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
8077 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
8078 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
8079 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
8080 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
8081 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
8082 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8083 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
8084 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
8085 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
8086 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
8087 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
8088 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 | 8089 | { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8090 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
8091 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
8092 | { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8093 | { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8094 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
8095 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
8096 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
8097 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
8098 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
8099 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
8100 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
8101 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
8102 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
8103 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
8104 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
8105 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
8106 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
8107 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
8108 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
8109 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
8110 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
8111 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
8112 | { "wxListCtrl_GetEditControl", (PyCFunction) _wrap_wxListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
8113 | { "wxListCtrl_EndEditLabel", (PyCFunction) _wrap_wxListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, | |
8114 | { "wxListCtrl_EditLabel", (PyCFunction) _wrap_wxListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
8115 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
8116 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
8117 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
8118 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
8119 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 8120 | { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8121 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, |
8122 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
8123 | { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, |
8124 | { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
8125 | { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
8126 | { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
8127 | { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
8128 | { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
8129 | { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
8130 | { "wxListEvent_Cancelled", (PyCFunction) _wrap_wxListEvent_Cancelled, METH_VARARGS | METH_KEYWORDS }, | |
8131 | { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
8132 | { "wxListEvent_GetOldItem", (PyCFunction) _wrap_wxListEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
8133 | { "wxListEvent_GetOldIndex", (PyCFunction) _wrap_wxListEvent_GetOldIndex, METH_VARARGS | METH_KEYWORDS }, | |
8134 | { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
8135 | { "wxListEvent_GetCode", (PyCFunction) _wrap_wxListEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8136 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, |
8137 | { "wxListEvent_m_item_set", (PyCFunction) _wrap_wxListEvent_m_item_set, METH_VARARGS | METH_KEYWORDS }, | |
8138 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
8139 | { "wxListEvent_m_pointDrag_set", (PyCFunction) _wrap_wxListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
8140 | { "wxListEvent_m_cancelled_get", (PyCFunction) _wrap_wxListEvent_m_cancelled_get, METH_VARARGS | METH_KEYWORDS }, | |
8141 | { "wxListEvent_m_cancelled_set", (PyCFunction) _wrap_wxListEvent_m_cancelled_set, METH_VARARGS | METH_KEYWORDS }, | |
8142 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
8143 | { "wxListEvent_m_col_set", (PyCFunction) _wrap_wxListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
8144 | { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
8145 | { "wxListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
8146 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
8147 | { "wxListEvent_m_itemIndex_set", (PyCFunction) _wrap_wxListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
8148 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
8149 | { "wxListEvent_m_code_set", (PyCFunction) _wrap_wxListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8150 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, |
8151 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
8152 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
8153 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
8154 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
8155 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
8156 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
8157 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
8158 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
8159 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
8160 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
8161 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
8162 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
8163 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
8164 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
8165 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
8166 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
8167 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
8168 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
8169 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
8170 | { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, |
8171 | { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8172 | { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8173 | { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
8174 | { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
8175 | { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
8176 | { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
8177 | { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
8178 | { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
8179 | { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
8180 | { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
8181 | { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
8182 | { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
8183 | { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
8184 | { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
8185 | { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8186 | { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8187 | { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
8188 | { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
8189 | { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
8190 | { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
8191 | { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
8192 | { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
8193 | { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
8194 | { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
8195 | { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
8196 | { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
8197 | { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
8198 | { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
8199 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
8200 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
8201 | { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
8202 | { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8203 | { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8204 | { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
8205 | { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8206 | { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8207 | { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
8208 | { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8209 | { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8210 | { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
8211 | { NULL, NULL } |
8212 | }; | |
1d99702e RD |
8213 | #ifdef __cplusplus |
8214 | } | |
8215 | #endif | |
8216 | /* | |
8217 | * This table is used by the pointer type-checker | |
8218 | */ | |
8219 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
8220 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
8221 | { "_wxEvent","_class_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
8222 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
8223 | { "_wxEvent","_class_wxListEvent",SwigwxListEventTowxEvent}, | |
8224 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, | |
8225 | { "_wxEvent","_class_wxEvent",0}, | |
8226 | { "_class_wxActivateEvent","_wxActivateEvent",0}, | |
8227 | { "_signed_long","_long",0}, | |
8228 | { "_wxMenuEvent","_class_wxMenuEvent",0}, | |
65dd82cb | 8229 | { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0}, |
b1462dfa | 8230 | { "_wxBitmapDataObject","_class_wxBitmapDataObject",0}, |
2f90df85 | 8231 | { "_class_wxPyCommandEvent","_wxPyCommandEvent",0}, |
b1462dfa | 8232 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
8233 | { "_wxPrintQuality","_int",0}, |
8234 | { "_wxPrintQuality","_signed_int",0}, | |
8235 | { "_wxPrintQuality","_unsigned_int",0}, | |
8236 | { "_wxPrintQuality","_wxWindowID",0}, | |
8237 | { "_wxPrintQuality","_uint",0}, | |
8238 | { "_wxPrintQuality","_EBool",0}, | |
8239 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 8240 | { "_wxPrintQuality","_time_t",0}, |
b1462dfa | 8241 | { "_class_wxCustomDataObject","_wxCustomDataObject",0}, |
f6bcfd97 | 8242 | { "_wxSpinCtrl","_class_wxSpinCtrl",0}, |
1d99702e | 8243 | { "_class_wxRegionIterator","_wxRegionIterator",0}, |
b1462dfa | 8244 | { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0}, |
1d99702e RD |
8245 | { "_class_wxMenuBar","_wxMenuBar",0}, |
8246 | { "_class_wxPyTreeItemData","_wxPyTreeItemData",0}, | |
f6bcfd97 BP |
8247 | { "_class_wxEvtHandler","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
8248 | { "_class_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, | |
1d99702e RD |
8249 | { "_class_wxEvtHandler","_class_wxListCtrl",SwigwxListCtrlTowxEvtHandler}, |
8250 | { "_class_wxEvtHandler","_wxListCtrl",SwigwxListCtrlTowxEvtHandler}, | |
8251 | { "_class_wxEvtHandler","_wxEvtHandler",0}, | |
8252 | { "_wxPaintEvent","_class_wxPaintEvent",0}, | |
8253 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, | |
8254 | { "_wxCursor","_class_wxCursor",0}, | |
8255 | { "_wxNotifyEvent","_class_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
8256 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
c368d904 RD |
8257 | { "_wxNotifyEvent","_class_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
8258 | { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, | |
1d99702e | 8259 | { "_wxNotifyEvent","_class_wxNotifyEvent",0}, |
f6bcfd97 | 8260 | { "_wxPyTreeCtrl","_class_wxPyTreeCtrl",0}, |
1d99702e RD |
8261 | { "_wxMask","_class_wxMask",0}, |
8262 | { "_wxPen","_class_wxPen",0}, | |
8263 | { "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0}, | |
8264 | { "_byte","_unsigned_char",0}, | |
b1462dfa | 8265 | { "_wxDataObject","_class_wxDataObject",0}, |
1d99702e | 8266 | { "_wxStaticBox","_class_wxStaticBox",0}, |
e0672e2f | 8267 | { "_wxColourDatabase","_class_wxColourDatabase",0}, |
65dd82cb RD |
8268 | { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0}, |
8269 | { "_wxPyDropSource","_class_wxPyDropSource",0}, | |
1d99702e RD |
8270 | { "_wxChoice","_class_wxChoice",0}, |
8271 | { "_wxSlider","_class_wxSlider",0}, | |
1d99702e RD |
8272 | { "_long","_unsigned_long",0}, |
8273 | { "_long","_signed_long",0}, | |
8274 | { "_wxImageList","_class_wxImageList",0}, | |
b1462dfa | 8275 | { "_wxDataObjectSimple","_class_wxDataObjectSimple",0}, |
1d99702e RD |
8276 | { "_wxDropFilesEvent","_class_wxDropFilesEvent",0}, |
8277 | { "_wxBitmapButton","_class_wxBitmapButton",0}, | |
8278 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, | |
b1462dfa | 8279 | { "_class_wxClipboard","_wxClipboard",0}, |
1d99702e | 8280 | { "_class_wxGauge","_wxGauge",0}, |
9416aa89 | 8281 | { "_wxGDIObject","_class_wxGDIObject",0}, |
1d99702e | 8282 | { "_wxDC","_class_wxDC",0}, |
b1462dfa | 8283 | { "_class_wxBitmapDataObject","_wxBitmapDataObject",0}, |
1d99702e | 8284 | { "_wxListEvent","_class_wxListEvent",0}, |
9416aa89 RD |
8285 | { "_class_wxObject","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, |
8286 | { "_class_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, | |
8287 | { "_class_wxObject","_class_wxTreeEvent",SwigwxTreeEventTowxObject}, | |
8288 | { "_class_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject}, | |
8289 | { "_class_wxObject","_class_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, | |
8290 | { "_class_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, | |
8291 | { "_class_wxObject","_class_wxListCtrl",SwigwxListCtrlTowxObject}, | |
8292 | { "_class_wxObject","_wxListCtrl",SwigwxListCtrlTowxObject}, | |
8293 | { "_class_wxObject","_class_wxListEvent",SwigwxListEventTowxObject}, | |
8294 | { "_class_wxObject","_wxListEvent",SwigwxListEventTowxObject}, | |
8295 | { "_class_wxObject","_class_wxListItem",SwigwxListItemTowxObject}, | |
8296 | { "_class_wxObject","_wxListItem",SwigwxListItemTowxObject}, | |
8297 | { "_class_wxObject","_wxObject",0}, | |
1d99702e | 8298 | { "_wxSpinEvent","_class_wxSpinEvent",0}, |
b1462dfa | 8299 | { "_size_t","_wxCoord",0}, |
1d99702e | 8300 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 8301 | { "_size_t","_time_t",0}, |
1d99702e RD |
8302 | { "_size_t","_unsigned_int",0}, |
8303 | { "_size_t","_int",0}, | |
8304 | { "_size_t","_wxWindowID",0}, | |
8305 | { "_size_t","_uint",0}, | |
8306 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
48115f4a | 8307 | { "_wxNavigationKeyEvent","_class_wxNavigationKeyEvent",0}, |
48115f4a | 8308 | { "_wxWindowCreateEvent","_class_wxWindowCreateEvent",0}, |
1d99702e RD |
8309 | { "_class_wxMenuItem","_wxMenuItem",0}, |
8310 | { "_class_wxPaintEvent","_wxPaintEvent",0}, | |
8311 | { "_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0}, | |
8312 | { "_wxPanel","_class_wxPanel",0}, | |
8313 | { "_wxInitDialogEvent","_class_wxInitDialogEvent",0}, | |
8314 | { "_wxCheckBox","_class_wxCheckBox",0}, | |
f6bcfd97 | 8315 | { "_class_wxPyTreeCtrl","_wxPyTreeCtrl",0}, |
1d99702e RD |
8316 | { "_wxPyEvent","_class_wxPyEvent",0}, |
8317 | { "_wxTextCtrl","_class_wxTextCtrl",0}, | |
8318 | { "_class_wxMask","_wxMask",0}, | |
b1462dfa | 8319 | { "_wxTextDataObject","_class_wxTextDataObject",0}, |
1d99702e RD |
8320 | { "_class_wxKeyEvent","_wxKeyEvent",0}, |
8321 | { "_wxColour","_class_wxColour",0}, | |
8322 | { "_class_wxDialog","_wxDialog",0}, | |
b1462dfa | 8323 | { "_class_wxFileDataObject","_wxFileDataObject",0}, |
1d99702e RD |
8324 | { "_wxIdleEvent","_class_wxIdleEvent",0}, |
8325 | { "_class_wxUpdateUIEvent","_wxUpdateUIEvent",0}, | |
b1462dfa | 8326 | { "_class_wxDataObject","_wxDataObject",0}, |
1d99702e RD |
8327 | { "_wxStaticLine","_class_wxStaticLine",0}, |
8328 | { "_wxBrush","_class_wxBrush",0}, | |
794c5cb1 | 8329 | { "_wxToggleButton","_class_wxToggleButton",0}, |
b1462dfa RD |
8330 | { "_wxDataFormat","_class_wxDataFormat",0}, |
8331 | { "_class_wxDataObjectSimple","_wxDataObjectSimple",0}, | |
1d99702e | 8332 | { "_wxShowEvent","_class_wxShowEvent",0}, |
b1462dfa | 8333 | { "_uint","_wxCoord",0}, |
1d99702e | 8334 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 8335 | { "_uint","_time_t",0}, |
1d99702e RD |
8336 | { "_uint","_size_t",0}, |
8337 | { "_uint","_unsigned_int",0}, | |
8338 | { "_uint","_int",0}, | |
8339 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 8340 | { "_wxChar","_char",0}, |
2f90df85 | 8341 | { "_wxPyValidator","_class_wxPyValidator",0}, |
1d99702e RD |
8342 | { "_class_wxEvent","_class_wxTreeEvent",SwigwxTreeEventTowxEvent}, |
8343 | { "_class_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
8344 | { "_class_wxEvent","_class_wxListEvent",SwigwxListEventTowxEvent}, | |
8345 | { "_class_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, | |
8346 | { "_class_wxEvent","_wxEvent",0}, | |
8347 | { "_wxCheckListBox","_class_wxCheckListBox",0}, | |
8348 | { "_wxRect","_class_wxRect",0}, | |
8349 | { "_wxCommandEvent","_class_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
8350 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
8351 | { "_wxCommandEvent","_class_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
8352 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
8353 | { "_wxCommandEvent","_class_wxCommandEvent",0}, | |
8354 | { "_wxSizeEvent","_class_wxSizeEvent",0}, | |
8355 | { "_wxPoint","_class_wxPoint",0}, | |
8356 | { "_class_wxButton","_wxButton",0}, | |
8357 | { "_wxRadioBox","_class_wxRadioBox",0}, | |
f6bcfd97 BP |
8358 | { "_class_wxSpinCtrl","_wxSpinCtrl",0}, |
8359 | { "_char","_wxChar",0}, | |
1d99702e | 8360 | { "_wxBitmap","_class_wxBitmap",0}, |
e0672e2f | 8361 | { "_wxPenList","_class_wxPenList",0}, |
1d99702e | 8362 | { "_wxWindowDC","_class_wxWindowDC",0}, |
f6bcfd97 | 8363 | { "_wxTimerEvent","_class_wxTimerEvent",0}, |
1d99702e RD |
8364 | { "_wxScrollBar","_class_wxScrollBar",0}, |
8365 | { "_wxSpinButton","_class_wxSpinButton",0}, | |
8366 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, | |
8367 | { "_class_wxNotifyEvent","_class_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
8368 | { "_class_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
c368d904 RD |
8369 | { "_class_wxNotifyEvent","_class_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
8370 | { "_class_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, | |
1d99702e | 8371 | { "_class_wxNotifyEvent","_wxNotifyEvent",0}, |
2f90df85 | 8372 | { "_class_wxValidator","_wxValidator",0}, |
1d99702e RD |
8373 | { "_class_wxPyEvent","_wxPyEvent",0}, |
8374 | { "_class_wxIconizeEvent","_wxIconizeEvent",0}, | |
8375 | { "_class_wxStaticBitmap","_wxStaticBitmap",0}, | |
8376 | { "_wxListItem","_class_wxListItem",0}, | |
b1462dfa | 8377 | { "_wxDropTarget","_class_wxDropTarget",0}, |
1d99702e | 8378 | { "_class_wxStaticLine","_wxStaticLine",0}, |
e0672e2f | 8379 | { "_class_wxColourDatabase","_wxColourDatabase",0}, |
1d99702e | 8380 | { "_wxScrollEvent","_class_wxScrollEvent",0}, |
b1462dfa | 8381 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
8382 | { "_EBool","_wxPrintQuality",0}, |
8383 | { "_EBool","_signed_int",0}, | |
8384 | { "_EBool","_int",0}, | |
8385 | { "_EBool","_wxWindowID",0}, | |
8386 | { "_class_wxRegion","_wxRegion",0}, | |
b1462dfa | 8387 | { "_class_wxDataFormat","_wxDataFormat",0}, |
1d99702e | 8388 | { "_class_wxDropFilesEvent","_wxDropFilesEvent",0}, |
48115f4a | 8389 | { "_wxWindowDestroyEvent","_class_wxWindowDestroyEvent",0}, |
1d99702e RD |
8390 | { "_wxStaticText","_class_wxStaticText",0}, |
8391 | { "_wxFont","_class_wxFont",0}, | |
b1462dfa | 8392 | { "_class_wxPyDropTarget","_wxPyDropTarget",0}, |
1d99702e | 8393 | { "_wxCloseEvent","_class_wxCloseEvent",0}, |
1d99702e RD |
8394 | { "_unsigned_long","_long",0}, |
8395 | { "_class_wxRect","_wxRect",0}, | |
8396 | { "_class_wxDC","_wxDC",0}, | |
d426c97e | 8397 | { "_wxScrollWinEvent","_class_wxScrollWinEvent",0}, |
e0672e2f | 8398 | { "_class_wxBrushList","_wxBrushList",0}, |
48115f4a | 8399 | { "_wxQueryNewPaletteEvent","_class_wxQueryNewPaletteEvent",0}, |
e0672e2f | 8400 | { "_class_wxPenList","_wxPenList",0}, |
48115f4a | 8401 | { "_class_wxWindowCreateEvent","_wxWindowCreateEvent",0}, |
1d99702e | 8402 | { "_class_wxTreeEvent","_wxTreeEvent",0}, |
1d99702e RD |
8403 | { "_wxFocusEvent","_class_wxFocusEvent",0}, |
8404 | { "_wxMaximizeEvent","_class_wxMaximizeEvent",0}, | |
f6bcfd97 | 8405 | { "_class_wxTimerEvent","_wxTimerEvent",0}, |
1d99702e RD |
8406 | { "_class_wxSpinButton","_wxSpinButton",0}, |
8407 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, | |
8408 | { "_class_wxPanel","_wxPanel",0}, | |
8409 | { "_class_wxCheckBox","_wxCheckBox",0}, | |
8410 | { "_wxComboBox","_class_wxComboBox",0}, | |
8411 | { "_wxRadioButton","_class_wxRadioButton",0}, | |
b1462dfa | 8412 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
8413 | { "_signed_int","_wxPrintQuality",0}, |
8414 | { "_signed_int","_EBool",0}, | |
8415 | { "_signed_int","_wxWindowID",0}, | |
8416 | { "_signed_int","_int",0}, | |
8417 | { "_class_wxTextCtrl","_wxTextCtrl",0}, | |
f6bcfd97 | 8418 | { "_class_wxListItemAttr","_wxListItemAttr",0}, |
1d99702e RD |
8419 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, |
8420 | { "_wxMetaFileDC","_class_wxMetaFileDC",0}, | |
b1462dfa | 8421 | { "_class_wxTextDataObject","_wxTextDataObject",0}, |
1d99702e RD |
8422 | { "_wxMenu","_class_wxMenu",0}, |
8423 | { "_class_wxMoveEvent","_wxMoveEvent",0}, | |
8424 | { "_wxListBox","_class_wxListBox",0}, | |
8425 | { "_wxScreenDC","_class_wxScreenDC",0}, | |
8426 | { "_WXTYPE","_short",0}, | |
8427 | { "_WXTYPE","_signed_short",0}, | |
8428 | { "_WXTYPE","_unsigned_short",0}, | |
b1462dfa | 8429 | { "_class_wxDropTarget","_wxDropTarget",0}, |
1d99702e RD |
8430 | { "_class_wxBrush","_wxBrush",0}, |
8431 | { "_unsigned_short","_WXTYPE",0}, | |
8432 | { "_unsigned_short","_short",0}, | |
f6bcfd97 BP |
8433 | { "_class_wxWindow","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
8434 | { "_class_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, | |
1d99702e RD |
8435 | { "_class_wxWindow","_class_wxListCtrl",SwigwxListCtrlTowxWindow}, |
8436 | { "_class_wxWindow","_wxListCtrl",SwigwxListCtrlTowxWindow}, | |
8437 | { "_class_wxWindow","_wxWindow",0}, | |
8438 | { "_class_wxStaticText","_wxStaticText",0}, | |
8439 | { "_class_wxFont","_wxFont",0}, | |
b1462dfa | 8440 | { "_wxClipboard","_class_wxClipboard",0}, |
2f90df85 | 8441 | { "_class_wxPyValidator","_wxPyValidator",0}, |
1d99702e | 8442 | { "_class_wxCloseEvent","_wxCloseEvent",0}, |
2abc0a0f | 8443 | { "_wxBusyInfo","_class_wxBusyInfo",0}, |
0569df0f | 8444 | { "_wxFontList","_class_wxFontList",0}, |
1d99702e | 8445 | { "_class_wxMenuEvent","_wxMenuEvent",0}, |
48115f4a | 8446 | { "_wxPaletteChangedEvent","_class_wxPaletteChangedEvent",0}, |
65dd82cb | 8447 | { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0}, |
1d99702e RD |
8448 | { "_wxClientDC","_class_wxClientDC",0}, |
8449 | { "_wxMouseEvent","_class_wxMouseEvent",0}, | |
8450 | { "_wxListCtrl","_class_wxListCtrl",0}, | |
9416aa89 RD |
8451 | { "_wxObject","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, |
8452 | { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, | |
8453 | { "_wxObject","_class_wxTreeEvent",SwigwxTreeEventTowxObject}, | |
8454 | { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject}, | |
8455 | { "_wxObject","_class_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, | |
8456 | { "_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, | |
8457 | { "_wxObject","_class_wxListCtrl",SwigwxListCtrlTowxObject}, | |
8458 | { "_wxObject","_wxListCtrl",SwigwxListCtrlTowxObject}, | |
8459 | { "_wxObject","_class_wxListEvent",SwigwxListEventTowxObject}, | |
8460 | { "_wxObject","_wxListEvent",SwigwxListEventTowxObject}, | |
8461 | { "_wxObject","_class_wxListItem",SwigwxListItemTowxObject}, | |
8462 | { "_wxObject","_wxListItem",SwigwxListItemTowxObject}, | |
8463 | { "_wxObject","_class_wxObject",0}, | |
1d99702e RD |
8464 | { "_class_wxPoint","_wxPoint",0}, |
8465 | { "_wxRealPoint","_class_wxRealPoint",0}, | |
8466 | { "_class_wxRadioBox","_wxRadioBox",0}, | |
8467 | { "_signed_short","_WXTYPE",0}, | |
8468 | { "_signed_short","_short",0}, | |
8469 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
65dd82cb | 8470 | { "_wxPyTextDataObject","_class_wxPyTextDataObject",0}, |
1d99702e RD |
8471 | { "_wxPaintDC","_class_wxPaintDC",0}, |
8472 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
8473 | { "_class_wxFocusEvent","_wxFocusEvent",0}, | |
8474 | { "_class_wxMaximizeEvent","_wxMaximizeEvent",0}, | |
8475 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, | |
8476 | { "_class_wxCursor","_wxCursor",0}, | |
b1462dfa | 8477 | { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0}, |
1d99702e RD |
8478 | { "_wxScrolledWindow","_class_wxScrolledWindow",0}, |
8479 | { "_wxTreeItemId","_class_wxTreeItemId",0}, | |
8480 | { "_unsigned_char","_byte",0}, | |
8481 | { "_class_wxMetaFileDC","_wxMetaFileDC",0}, | |
8482 | { "_class_wxMenu","_wxMenu",0}, | |
f6bcfd97 BP |
8483 | { "_wxControl","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
8484 | { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, | |
1d99702e RD |
8485 | { "_wxControl","_class_wxListCtrl",SwigwxListCtrlTowxControl}, |
8486 | { "_wxControl","_wxListCtrl",SwigwxListCtrlTowxControl}, | |
8487 | { "_wxControl","_class_wxControl",0}, | |
8488 | { "_class_wxListBox","_wxListBox",0}, | |
b1462dfa | 8489 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 8490 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 8491 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
8492 | { "_unsigned_int","_size_t",0}, |
8493 | { "_unsigned_int","_uint",0}, | |
8494 | { "_unsigned_int","_wxWindowID",0}, | |
8495 | { "_unsigned_int","_int",0}, | |
8496 | { "_wxIcon","_class_wxIcon",0}, | |
8497 | { "_wxDialog","_class_wxDialog",0}, | |
8498 | { "_class_wxListItem","_wxListItem",0}, | |
8499 | { "_class_wxPen","_wxPen",0}, | |
8500 | { "_short","_WXTYPE",0}, | |
8501 | { "_short","_unsigned_short",0}, | |
8502 | { "_short","_signed_short",0}, | |
8503 | { "_class_wxStaticBox","_wxStaticBox",0}, | |
65dd82cb RD |
8504 | { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0}, |
8505 | { "_class_wxPyDropSource","_wxPyDropSource",0}, | |
1d99702e RD |
8506 | { "_class_wxScrollEvent","_wxScrollEvent",0}, |
8507 | { "_wxJoystickEvent","_class_wxJoystickEvent",0}, | |
8508 | { "_class_wxChoice","_wxChoice",0}, | |
8509 | { "_class_wxSlider","_wxSlider",0}, | |
8510 | { "_class_wxImageList","_wxImageList",0}, | |
8511 | { "_class_wxBitmapButton","_wxBitmapButton",0}, | |
48115f4a | 8512 | { "_class_wxPaletteChangedEvent","_wxPaletteChangedEvent",0}, |
b1462dfa | 8513 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 8514 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 8515 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
8516 | { "_wxWindowID","_size_t",0}, |
8517 | { "_wxWindowID","_EBool",0}, | |
8518 | { "_wxWindowID","_uint",0}, | |
8519 | { "_wxWindowID","_int",0}, | |
8520 | { "_wxWindowID","_signed_int",0}, | |
8521 | { "_wxWindowID","_unsigned_int",0}, | |
9416aa89 | 8522 | { "_class_wxGDIObject","_wxGDIObject",0}, |
d426c97e | 8523 | { "_class_wxScrollWinEvent","_wxScrollWinEvent",0}, |
b1462dfa | 8524 | { "_int","_wxCoord",0}, |
1d99702e | 8525 | { "_int","_wxPrintQuality",0}, |
c368d904 | 8526 | { "_int","_time_t",0}, |
1d99702e RD |
8527 | { "_int","_size_t",0}, |
8528 | { "_int","_EBool",0}, | |
8529 | { "_int","_uint",0}, | |
8530 | { "_int","_wxWindowID",0}, | |
8531 | { "_int","_unsigned_int",0}, | |
8532 | { "_int","_signed_int",0}, | |
8533 | { "_class_wxMouseEvent","_wxMouseEvent",0}, | |
2f90df85 | 8534 | { "_wxPyCommandEvent","_class_wxPyCommandEvent",0}, |
1d99702e RD |
8535 | { "_class_wxListEvent","_wxListEvent",0}, |
8536 | { "_class_wxSpinEvent","_wxSpinEvent",0}, | |
48115f4a | 8537 | { "_class_wxQueryNewPaletteEvent","_wxQueryNewPaletteEvent",0}, |
c368d904 RD |
8538 | { "_time_t","_wxCoord",0}, |
8539 | { "_time_t","_wxPrintQuality",0}, | |
8540 | { "_time_t","_unsigned_int",0}, | |
8541 | { "_time_t","_int",0}, | |
8542 | { "_time_t","_wxWindowID",0}, | |
8543 | { "_time_t","_uint",0}, | |
8544 | { "_time_t","_size_t",0}, | |
48115f4a | 8545 | { "_class_wxNavigationKeyEvent","_wxNavigationKeyEvent",0}, |
1d99702e RD |
8546 | { "_wxButton","_class_wxButton",0}, |
8547 | { "_wxSize","_class_wxSize",0}, | |
8548 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
65dd82cb | 8549 | { "_class_wxPyTextDataObject","_wxPyTextDataObject",0}, |
1d99702e RD |
8550 | { "_wxPyTreeItemData","_class_wxPyTreeItemData",0}, |
8551 | { "_class_wxPaintDC","_wxPaintDC",0}, | |
8552 | { "_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0}, | |
b1462dfa | 8553 | { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0}, |
1d99702e RD |
8554 | { "_class_wxInitDialogEvent","_wxInitDialogEvent",0}, |
8555 | { "_class_wxComboBox","_wxComboBox",0}, | |
8556 | { "_class_wxRadioButton","_wxRadioButton",0}, | |
2f90df85 | 8557 | { "_wxValidator","_class_wxValidator",0}, |
1d99702e | 8558 | { "_class_wxTreeItemId","_wxTreeItemId",0}, |
1d99702e RD |
8559 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, |
8560 | { "_wxIconizeEvent","_class_wxIconizeEvent",0}, | |
f6bcfd97 BP |
8561 | { "_class_wxControl","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
8562 | { "_class_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, | |
1d99702e RD |
8563 | { "_class_wxControl","_class_wxListCtrl",SwigwxListCtrlTowxControl}, |
8564 | { "_class_wxControl","_wxListCtrl",SwigwxListCtrlTowxControl}, | |
8565 | { "_class_wxControl","_wxControl",0}, | |
8566 | { "_wxStaticBitmap","_class_wxStaticBitmap",0}, | |
8567 | { "_class_wxIcon","_wxIcon",0}, | |
8568 | { "_class_wxColour","_wxColour",0}, | |
8569 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
8570 | { "_wxPalette","_class_wxPalette",0}, | |
8571 | { "_class_wxIdleEvent","_wxIdleEvent",0}, | |
b1462dfa RD |
8572 | { "_wxCoord","_int",0}, |
8573 | { "_wxCoord","_signed_int",0}, | |
8574 | { "_wxCoord","_unsigned_int",0}, | |
8575 | { "_wxCoord","_wxWindowID",0}, | |
8576 | { "_wxCoord","_uint",0}, | |
8577 | { "_wxCoord","_EBool",0}, | |
8578 | { "_wxCoord","_size_t",0}, | |
c368d904 | 8579 | { "_wxCoord","_time_t",0}, |
b1462dfa | 8580 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e | 8581 | { "_wxEraseEvent","_class_wxEraseEvent",0}, |
b1462dfa | 8582 | { "_wxDataObjectComposite","_class_wxDataObjectComposite",0}, |
1d99702e | 8583 | { "_class_wxJoystickEvent","_wxJoystickEvent",0}, |
794c5cb1 | 8584 | { "_class_wxToggleButton","_wxToggleButton",0}, |
1d99702e RD |
8585 | { "_wxRegion","_class_wxRegion",0}, |
8586 | { "_class_wxShowEvent","_wxShowEvent",0}, | |
b1462dfa | 8587 | { "_wxPyDropTarget","_class_wxPyDropTarget",0}, |
1d99702e RD |
8588 | { "_wxActivateEvent","_class_wxActivateEvent",0}, |
8589 | { "_wxGauge","_class_wxGauge",0}, | |
8590 | { "_class_wxCheckListBox","_wxCheckListBox",0}, | |
2abc0a0f | 8591 | { "_class_wxBusyInfo","_wxBusyInfo",0}, |
0569df0f | 8592 | { "_class_wxFontList","_wxFontList",0}, |
1d99702e RD |
8593 | { "_class_wxCommandEvent","_class_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, |
8594 | { "_class_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
8595 | { "_class_wxCommandEvent","_class_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
8596 | { "_class_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
8597 | { "_class_wxCommandEvent","_wxCommandEvent",0}, | |
8598 | { "_class_wxClientDC","_wxClientDC",0}, | |
8599 | { "_class_wxSizeEvent","_wxSizeEvent",0}, | |
8600 | { "_class_wxListCtrl","_wxListCtrl",0}, | |
e0672e2f | 8601 | { "_wxBrushList","_class_wxBrushList",0}, |
b1462dfa | 8602 | { "_wxCustomDataObject","_class_wxCustomDataObject",0}, |
1d99702e RD |
8603 | { "_class_wxSize","_wxSize",0}, |
8604 | { "_class_wxBitmap","_wxBitmap",0}, | |
8605 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
b1462dfa | 8606 | { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0}, |
1d99702e RD |
8607 | { "_wxMenuBar","_class_wxMenuBar",0}, |
8608 | { "_wxTreeEvent","_class_wxTreeEvent",0}, | |
f6bcfd97 BP |
8609 | { "_wxEvtHandler","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
8610 | { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, | |
1d99702e RD |
8611 | { "_wxEvtHandler","_class_wxListCtrl",SwigwxListCtrlTowxEvtHandler}, |
8612 | { "_wxEvtHandler","_wxListCtrl",SwigwxListCtrlTowxEvtHandler}, | |
8613 | { "_wxEvtHandler","_class_wxEvtHandler",0}, | |
8614 | { "_wxMenuItem","_class_wxMenuItem",0}, | |
8615 | { "_class_wxScrollBar","_wxScrollBar",0}, | |
1d99702e | 8616 | { "_class_wxScrolledWindow","_wxScrolledWindow",0}, |
f6bcfd97 | 8617 | { "_wxListItemAttr","_class_wxListItemAttr",0}, |
1d99702e RD |
8618 | { "_wxKeyEvent","_class_wxKeyEvent",0}, |
8619 | { "_wxMoveEvent","_class_wxMoveEvent",0}, | |
8620 | { "_class_wxPalette","_wxPalette",0}, | |
b1462dfa | 8621 | { "_wxFileDataObject","_class_wxFileDataObject",0}, |
1d99702e | 8622 | { "_class_wxEraseEvent","_wxEraseEvent",0}, |
b1462dfa | 8623 | { "_class_wxDataObjectComposite","_wxDataObjectComposite",0}, |
f6bcfd97 BP |
8624 | { "_wxWindow","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
8625 | { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, | |
1d99702e RD |
8626 | { "_wxWindow","_class_wxListCtrl",SwigwxListCtrlTowxWindow}, |
8627 | { "_wxWindow","_wxListCtrl",SwigwxListCtrlTowxWindow}, | |
8628 | { "_wxWindow","_class_wxWindow",0}, | |
48115f4a | 8629 | { "_class_wxWindowDestroyEvent","_wxWindowDestroyEvent",0}, |
1d99702e RD |
8630 | {0,0,0}}; |
8631 | ||
8ab979d7 RD |
8632 | static PyObject *SWIG_globals; |
8633 | #ifdef __cplusplus | |
8634 | extern "C" | |
8635 | #endif | |
1d99702e | 8636 | SWIGEXPORT(void) initcontrols2c() { |
8ab979d7 RD |
8637 | PyObject *m, *d; |
8638 | SWIG_globals = SWIG_newvarlink(); | |
8639 | m = Py_InitModule("controls2c", controls2cMethods); | |
8640 | d = PyModule_GetDict(m); | |
af309447 RD |
8641 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); |
8642 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
8643 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
8644 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); | |
8645 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
bb0054cd | 8646 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); |
af309447 RD |
8647 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); |
8648 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
8649 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
8650 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
8651 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
8652 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
8653 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
8654 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
8655 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
8656 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
8657 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
8658 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
8659 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
8660 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
8661 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
8662 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
8663 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
8664 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
8665 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
8666 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
8667 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
8668 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
8669 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
8670 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
af309447 RD |
8671 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); |
8672 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
8673 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
8674 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
8675 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
8676 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
8677 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
8678 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
8679 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
f6bcfd97 BP |
8680 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); |
8681 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
8682 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
8683 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
1b62f00d RD |
8684 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
8685 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
8686 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
8687 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
8688 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
8689 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
8690 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO)); | |
8691 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO)); | |
8692 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
8693 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
8694 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN)); | |
8695 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
8696 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK)); | |
8697 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
8698 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
8699 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
694759cf RD |
8700 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); |
8701 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
8702 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
8703 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
8704 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
164b735b RD |
8705 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); |
8706 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
8707 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
8708 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
8709 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
8710 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
8711 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
8712 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
8713 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
8714 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
8715 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
8716 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
8717 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
8718 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
1b62f00d RD |
8719 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
8720 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
8721 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
8722 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
8723 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
8724 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO)); | |
8725 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO)); | |
8726 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
8727 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
8728 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
8729 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
8730 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
8731 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
8732 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN)); | |
8733 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
8734 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
8735 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
d1679124 | 8736 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG)); |
9416aa89 RD |
8737 | |
8738 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
8739 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
1d99702e RD |
8740 | { |
8741 | int i; | |
8742 | for (i = 0; _swig_mapping[i].n1; i++) | |
8743 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
8744 | } | |
8ab979d7 | 8745 | } |