]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/gtk/controls2.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 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__) | |
3bcd5e1c | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
3bcd5e1c | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
3bcd5e1c | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
3bcd5e1c RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
3bcd5e1c | 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> | |
9df61a29 | 64 | #include <wx/imaglist.h> |
db34b2d4 | 65 | #include <wx/dirctrl.h> |
8ab979d7 | 66 | |
8ab979d7 RD |
67 | |
68 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
69 | PyObject* o2; | |
70 | PyObject* o3; | |
71 | ||
3bcd5e1c | 72 | if (!target) { |
8ab979d7 | 73 | target = o; |
3bcd5e1c | 74 | } else if (target == Py_None) { |
8ab979d7 RD |
75 | Py_DECREF(Py_None); |
76 | target = o; | |
3bcd5e1c | 77 | } else { |
8ab979d7 RD |
78 | if (!PyTuple_Check(target)) { |
79 | o2 = target; | |
80 | target = PyTuple_New(1); | |
81 | PyTuple_SetItem(target, 0, o2); | |
82 | } | |
3bcd5e1c RD |
83 | o3 = PyTuple_New(1); |
84 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
85 | |
86 | o2 = target; | |
3bcd5e1c RD |
87 | target = PySequence_Concat(o2, o3); |
88 | Py_DECREF(o2); | |
8ab979d7 RD |
89 | Py_DECREF(o3); |
90 | } | |
91 | return target; | |
92 | } | |
93 | ||
7a446686 RD |
94 | #if PYTHON_API_VERSION >= 1009 |
95 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
96 | #else | |
0220cbc1 | 97 | static char* wxStringErrorMsg = "String type required"; |
7a446686 | 98 | #endif |
aa2a5b86 | 99 | // C++ Version of a Python aware class |
cd096152 RD |
100 | class wxPyListCtrl : public wxListCtrl { |
101 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
102 | public: | |
aa2a5b86 | 103 | wxPyListCtrl() : wxListCtrl() {} |
cd096152 RD |
104 | wxPyListCtrl(wxWindow* parent, wxWindowID id, |
105 | const wxPoint& pos, | |
106 | const wxSize& size, | |
107 | long style, | |
108 | const wxValidator& validator, | |
109 | char* name) : | |
110 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
111 | ||
aa2a5b86 RD |
112 | bool Create(wxWindow* parent, wxWindowID id, |
113 | const wxPoint& pos, | |
114 | const wxSize& size, | |
115 | long style, | |
116 | const wxValidator& validator, | |
117 | char* name) { | |
118 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
119 | } | |
120 | ||
cd096152 RD |
121 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); |
122 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
123 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
124 | ||
125 | PYPRIVATE; | |
126 | }; | |
127 | ||
128 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
129 | ||
130 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
131 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
132 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
059a841c | 133 | // Python aware sorting function for wxPyListCtrl |
f6bcfd97 | 134 | int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { |
dcd38683 RD |
135 | int retval = 0; |
136 | PyObject* func = (PyObject*)funcPtr; | |
474c48f9 | 137 | wxPyBeginBlockThreads(); |
dcd38683 RD |
138 | |
139 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
140 | PyObject* result = PyEval_CallObject(func, args); | |
141 | Py_DECREF(args); | |
142 | if (result) { | |
143 | retval = PyInt_AsLong(result); | |
144 | Py_DECREF(result); | |
145 | } | |
146 | ||
474c48f9 | 147 | wxPyEndBlockThreads(); |
dcd38683 RD |
148 | return retval; |
149 | } | |
150 | ||
151 | ||
cf694132 RD |
152 | class wxPyTreeItemData : public wxTreeItemData { |
153 | public: | |
154 | wxPyTreeItemData(PyObject* obj = NULL) { | |
c368d904 | 155 | if (obj == NULL) |
cf694132 | 156 | obj = Py_None; |
c368d904 RD |
157 | Py_INCREF(obj); |
158 | m_obj = obj; | |
cf694132 RD |
159 | } |
160 | ||
161 | ~wxPyTreeItemData() { | |
474c48f9 | 162 | wxPyBeginBlockThreads(); |
c368d904 | 163 | Py_DECREF(m_obj); |
474c48f9 | 164 | wxPyEndBlockThreads(); |
cf694132 RD |
165 | } |
166 | ||
167 | PyObject* GetData() { | |
168 | Py_INCREF(m_obj); | |
169 | return m_obj; | |
170 | } | |
171 | ||
172 | void SetData(PyObject* obj) { | |
474c48f9 | 173 | wxPyBeginBlockThreads(); |
cf694132 | 174 | Py_DECREF(m_obj); |
474c48f9 | 175 | wxPyEndBlockThreads(); |
cf694132 RD |
176 | m_obj = obj; |
177 | Py_INCREF(obj); | |
178 | } | |
179 | ||
180 | PyObject* m_obj; | |
181 | }; | |
aa2a5b86 | 182 | // C++ version of Python aware wxTreeCtrl |
f6bcfd97 | 183 | class wxPyTreeCtrl : public wxTreeCtrl { |
9df61a29 | 184 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); |
f6bcfd97 | 185 | public: |
aa2a5b86 | 186 | wxPyTreeCtrl() : wxTreeCtrl() {} |
f6bcfd97 BP |
187 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, |
188 | const wxPoint& pos, | |
189 | const wxSize& size, | |
190 | long style, | |
191 | const wxValidator& validator, | |
192 | char* name) : | |
193 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
194 | ||
aa2a5b86 RD |
195 | bool Create(wxWindow *parent, wxWindowID id, |
196 | const wxPoint& pos, | |
197 | const wxSize& size, | |
198 | long style, | |
199 | const wxValidator& validator, | |
200 | char* name) { | |
201 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
202 | } | |
203 | ||
204 | ||
f6bcfd97 BP |
205 | int OnCompareItems(const wxTreeItemId& item1, |
206 | const wxTreeItemId& item2) { | |
207 | int rval = 0; | |
059a841c | 208 | bool found; |
474c48f9 | 209 | wxPyBeginBlockThreads(); |
059a841c | 210 | if ((found = m_myInst.findCallback("OnCompareItems"))) |
f6bcfd97 BP |
211 | rval = m_myInst.callCallback(Py_BuildValue( |
212 | "(OO)", | |
213 | wxPyConstructObject((void*)&item1, "wxTreeItemId"), | |
214 | wxPyConstructObject((void*)&item2, "wxTreeItemId"))); | |
474c48f9 | 215 | wxPyEndBlockThreads(); |
059a841c | 216 | if (! found) |
f6bcfd97 | 217 | rval = wxTreeCtrl::OnCompareItems(item1, item2); |
f6bcfd97 BP |
218 | return rval; |
219 | } | |
220 | PYPRIVATE; | |
221 | }; | |
222 | ||
9df61a29 RD |
223 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); |
224 | ||
1d99702e RD |
225 | #ifdef __cplusplus |
226 | extern "C" { | |
227 | #endif | |
cd096152 | 228 | #define new_wxListItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxListItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
f6bcfd97 BP |
229 | static PyObject *_wrap_new_wxListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
230 | PyObject * _resultobj; | |
231 | wxListItemAttr * _result; | |
cd096152 RD |
232 | wxColour * _arg0 = (wxColour *) &wxNullColour; |
233 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
234 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
235 | wxColour temp; | |
236 | PyObject * _obj0 = 0; | |
237 | wxColour temp0; | |
238 | PyObject * _obj1 = 0; | |
239 | PyObject * _argo2 = 0; | |
240 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
f6bcfd97 BP |
241 | char _ptemp[128]; |
242 | ||
243 | self = self; | |
cd096152 RD |
244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxListItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) |
245 | return NULL; | |
246 | if (_obj0) | |
247 | { | |
248 | _arg0 = &temp; | |
249 | if (! wxColour_helper(_obj0, &_arg0)) | |
250 | return NULL; | |
251 | } | |
252 | if (_obj1) | |
253 | { | |
254 | _arg1 = &temp0; | |
255 | if (! wxColour_helper(_obj1, &_arg1)) | |
256 | return NULL; | |
257 | } | |
258 | if (_argo2) { | |
259 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
260 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxListItemAttr. Expected _wxFont_p."); | |
f6bcfd97 | 262 | return NULL; |
cd096152 RD |
263 | } |
264 | } | |
f6bcfd97 | 265 | { |
474c48f9 | 266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 267 | _result = (wxListItemAttr *)new_wxListItemAttr(*_arg0,*_arg1,*_arg2); |
f6bcfd97 | 268 | |
474c48f9 | 269 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 270 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
271 | } if (_result) { |
272 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
273 | _resultobj = Py_BuildValue("s",_ptemp); | |
274 | } else { | |
275 | Py_INCREF(Py_None); | |
276 | _resultobj = Py_None; | |
277 | } | |
278 | return _resultobj; | |
279 | } | |
280 | ||
281 | #define wxListItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
282 | static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
283 | PyObject * _resultobj; | |
284 | wxListItemAttr * _arg0; | |
285 | wxColour * _arg1; | |
286 | PyObject * _argo0 = 0; | |
287 | wxColour temp; | |
288 | PyObject * _obj1 = 0; | |
289 | char *_kwnames[] = { "self","colText", NULL }; | |
290 | ||
291 | self = self; | |
292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
293 | return NULL; | |
294 | if (_argo0) { | |
295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetTextColour. Expected _wxListItemAttr_p."); | |
298 | return NULL; | |
299 | } | |
300 | } | |
301 | { | |
302 | _arg1 = &temp; | |
303 | if (! wxColour_helper(_obj1, &_arg1)) | |
304 | return NULL; | |
305 | } | |
306 | { | |
474c48f9 | 307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
308 | wxListItemAttr_SetTextColour(_arg0,*_arg1); |
309 | ||
474c48f9 | 310 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 311 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
312 | } Py_INCREF(Py_None); |
313 | _resultobj = Py_None; | |
314 | return _resultobj; | |
315 | } | |
316 | ||
317 | #define wxListItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
318 | static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
319 | PyObject * _resultobj; | |
320 | wxListItemAttr * _arg0; | |
321 | wxColour * _arg1; | |
322 | PyObject * _argo0 = 0; | |
323 | wxColour temp; | |
324 | PyObject * _obj1 = 0; | |
325 | char *_kwnames[] = { "self","colBack", NULL }; | |
326 | ||
327 | self = self; | |
328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
329 | return NULL; | |
330 | if (_argo0) { | |
331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetBackgroundColour. Expected _wxListItemAttr_p."); | |
334 | return NULL; | |
335 | } | |
336 | } | |
337 | { | |
338 | _arg1 = &temp; | |
339 | if (! wxColour_helper(_obj1, &_arg1)) | |
340 | return NULL; | |
341 | } | |
342 | { | |
474c48f9 | 343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
344 | wxListItemAttr_SetBackgroundColour(_arg0,*_arg1); |
345 | ||
474c48f9 | 346 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 347 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
348 | } Py_INCREF(Py_None); |
349 | _resultobj = Py_None; | |
350 | return _resultobj; | |
351 | } | |
352 | ||
353 | #define wxListItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
354 | static PyObject *_wrap_wxListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
355 | PyObject * _resultobj; | |
356 | wxListItemAttr * _arg0; | |
357 | wxFont * _arg1; | |
358 | PyObject * _argo0 = 0; | |
359 | PyObject * _argo1 = 0; | |
360 | char *_kwnames[] = { "self","font", NULL }; | |
361 | ||
362 | self = self; | |
363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
364 | return NULL; | |
365 | if (_argo0) { | |
366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetFont. Expected _wxListItemAttr_p."); | |
369 | return NULL; | |
370 | } | |
371 | } | |
372 | if (_argo1) { | |
373 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
374 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetFont. Expected _wxFont_p."); | |
376 | return NULL; | |
377 | } | |
378 | } | |
379 | { | |
474c48f9 | 380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
381 | wxListItemAttr_SetFont(_arg0,*_arg1); |
382 | ||
474c48f9 | 383 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 384 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
385 | } Py_INCREF(Py_None); |
386 | _resultobj = Py_None; | |
387 | return _resultobj; | |
388 | } | |
389 | ||
390 | #define wxListItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
391 | static PyObject *_wrap_wxListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
392 | PyObject * _resultobj; | |
393 | bool _result; | |
394 | wxListItemAttr * _arg0; | |
395 | PyObject * _argo0 = 0; | |
396 | char *_kwnames[] = { "self", NULL }; | |
397 | ||
398 | self = self; | |
399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasTextColour",_kwnames,&_argo0)) | |
400 | return NULL; | |
401 | if (_argo0) { | |
402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasTextColour. Expected _wxListItemAttr_p."); | |
405 | return NULL; | |
406 | } | |
407 | } | |
408 | { | |
474c48f9 | 409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
410 | _result = (bool )wxListItemAttr_HasTextColour(_arg0); |
411 | ||
474c48f9 | 412 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 413 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
414 | } _resultobj = Py_BuildValue("i",_result); |
415 | return _resultobj; | |
416 | } | |
417 | ||
418 | #define wxListItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
419 | static PyObject *_wrap_wxListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
420 | PyObject * _resultobj; | |
421 | bool _result; | |
422 | wxListItemAttr * _arg0; | |
423 | PyObject * _argo0 = 0; | |
424 | char *_kwnames[] = { "self", NULL }; | |
425 | ||
426 | self = self; | |
427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
428 | return NULL; | |
429 | if (_argo0) { | |
430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasBackgroundColour. Expected _wxListItemAttr_p."); | |
433 | return NULL; | |
434 | } | |
435 | } | |
436 | { | |
474c48f9 | 437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
438 | _result = (bool )wxListItemAttr_HasBackgroundColour(_arg0); |
439 | ||
474c48f9 | 440 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 441 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
442 | } _resultobj = Py_BuildValue("i",_result); |
443 | return _resultobj; | |
444 | } | |
445 | ||
446 | #define wxListItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
447 | static PyObject *_wrap_wxListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
448 | PyObject * _resultobj; | |
449 | bool _result; | |
450 | wxListItemAttr * _arg0; | |
451 | PyObject * _argo0 = 0; | |
452 | char *_kwnames[] = { "self", NULL }; | |
453 | ||
454 | self = self; | |
455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasFont",_kwnames,&_argo0)) | |
456 | return NULL; | |
457 | if (_argo0) { | |
458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasFont. Expected _wxListItemAttr_p."); | |
461 | return NULL; | |
462 | } | |
463 | } | |
464 | { | |
474c48f9 | 465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
466 | _result = (bool )wxListItemAttr_HasFont(_arg0); |
467 | ||
474c48f9 | 468 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 469 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
470 | } _resultobj = Py_BuildValue("i",_result); |
471 | return _resultobj; | |
472 | } | |
473 | ||
474 | #define wxListItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
475 | static PyObject *_wrap_wxListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
476 | PyObject * _resultobj; | |
477 | wxColour * _result; | |
478 | wxListItemAttr * _arg0; | |
479 | PyObject * _argo0 = 0; | |
480 | char *_kwnames[] = { "self", NULL }; | |
481 | char _ptemp[128]; | |
482 | ||
483 | self = self; | |
484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetTextColour",_kwnames,&_argo0)) | |
485 | return NULL; | |
486 | if (_argo0) { | |
487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetTextColour. Expected _wxListItemAttr_p."); | |
490 | return NULL; | |
491 | } | |
492 | } | |
493 | { | |
474c48f9 | 494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3e212503 | 495 | _result = new wxColour (wxListItemAttr_GetTextColour(_arg0)); |
f6bcfd97 | 496 | |
474c48f9 | 497 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 498 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
499 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
500 | _resultobj = Py_BuildValue("s",_ptemp); | |
f6bcfd97 BP |
501 | return _resultobj; |
502 | } | |
503 | ||
504 | #define wxListItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
505 | static PyObject *_wrap_wxListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
506 | PyObject * _resultobj; | |
507 | wxColour * _result; | |
508 | wxListItemAttr * _arg0; | |
509 | PyObject * _argo0 = 0; | |
510 | char *_kwnames[] = { "self", NULL }; | |
511 | char _ptemp[128]; | |
512 | ||
513 | self = self; | |
514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
515 | return NULL; | |
516 | if (_argo0) { | |
517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetBackgroundColour. Expected _wxListItemAttr_p."); | |
520 | return NULL; | |
521 | } | |
522 | } | |
523 | { | |
474c48f9 | 524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3e212503 | 525 | _result = new wxColour (wxListItemAttr_GetBackgroundColour(_arg0)); |
f6bcfd97 | 526 | |
474c48f9 | 527 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 528 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
529 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
530 | _resultobj = Py_BuildValue("s",_ptemp); | |
f6bcfd97 BP |
531 | return _resultobj; |
532 | } | |
533 | ||
534 | #define wxListItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
535 | static PyObject *_wrap_wxListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
536 | PyObject * _resultobj; | |
537 | wxFont * _result; | |
538 | wxListItemAttr * _arg0; | |
539 | PyObject * _argo0 = 0; | |
540 | char *_kwnames[] = { "self", NULL }; | |
541 | char _ptemp[128]; | |
542 | ||
543 | self = self; | |
544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetFont",_kwnames,&_argo0)) | |
545 | return NULL; | |
546 | if (_argo0) { | |
547 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
548 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetFont. Expected _wxListItemAttr_p."); | |
550 | return NULL; | |
551 | } | |
552 | } | |
553 | { | |
474c48f9 | 554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3e212503 | 555 | _result = new wxFont (wxListItemAttr_GetFont(_arg0)); |
f6bcfd97 | 556 | |
474c48f9 | 557 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 558 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
559 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
560 | _resultobj = Py_BuildValue("s",_ptemp); | |
f6bcfd97 BP |
561 | return _resultobj; |
562 | } | |
563 | ||
9df61a29 RD |
564 | static void *SwigwxListItemTowxObject(void *ptr) { |
565 | wxListItem *src; | |
566 | wxObject *dest; | |
567 | src = (wxListItem *) ptr; | |
568 | dest = (wxObject *) src; | |
569 | return (void *) dest; | |
570 | } | |
571 | ||
f6bcfd97 BP |
572 | #define new_wxListItem() (new wxListItem()) |
573 | static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
574 | PyObject * _resultobj; | |
575 | wxListItem * _result; | |
576 | char *_kwnames[] = { NULL }; | |
577 | char _ptemp[128]; | |
578 | ||
579 | self = self; | |
580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames)) | |
581 | return NULL; | |
582 | { | |
474c48f9 | 583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
584 | _result = (wxListItem *)new_wxListItem(); |
585 | ||
474c48f9 | 586 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 587 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
588 | } if (_result) { |
589 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
590 | _resultobj = Py_BuildValue("s",_ptemp); | |
591 | } else { | |
592 | Py_INCREF(Py_None); | |
593 | _resultobj = Py_None; | |
594 | } | |
595 | return _resultobj; | |
596 | } | |
597 | ||
598 | #define delete_wxListItem(_swigobj) (delete _swigobj) | |
599 | static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
600 | PyObject * _resultobj; | |
601 | wxListItem * _arg0; | |
602 | PyObject * _argo0 = 0; | |
603 | char *_kwnames[] = { "self", NULL }; | |
604 | ||
605 | self = self; | |
606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0)) | |
607 | return NULL; | |
608 | if (_argo0) { | |
609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p."); | |
612 | return NULL; | |
613 | } | |
614 | } | |
615 | { | |
474c48f9 | 616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
617 | delete_wxListItem(_arg0); |
618 | ||
474c48f9 | 619 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 620 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
621 | } Py_INCREF(Py_None); |
622 | _resultobj = Py_None; | |
623 | return _resultobj; | |
624 | } | |
625 | ||
626 | #define wxListItem_Clear(_swigobj) (_swigobj->Clear()) | |
627 | static PyObject *_wrap_wxListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
628 | PyObject * _resultobj; | |
629 | wxListItem * _arg0; | |
630 | PyObject * _argo0 = 0; | |
631 | char *_kwnames[] = { "self", NULL }; | |
632 | ||
633 | self = self; | |
634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_Clear",_kwnames,&_argo0)) | |
635 | return NULL; | |
636 | if (_argo0) { | |
637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_Clear. Expected _wxListItem_p."); | |
640 | return NULL; | |
641 | } | |
642 | } | |
643 | { | |
474c48f9 | 644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
645 | wxListItem_Clear(_arg0); |
646 | ||
474c48f9 | 647 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 648 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
649 | } Py_INCREF(Py_None); |
650 | _resultobj = Py_None; | |
651 | return _resultobj; | |
652 | } | |
653 | ||
654 | #define wxListItem_ClearAttributes(_swigobj) (_swigobj->ClearAttributes()) | |
655 | static PyObject *_wrap_wxListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
656 | PyObject * _resultobj; | |
657 | wxListItem * _arg0; | |
658 | PyObject * _argo0 = 0; | |
659 | char *_kwnames[] = { "self", NULL }; | |
660 | ||
661 | self = self; | |
662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_ClearAttributes",_kwnames,&_argo0)) | |
663 | return NULL; | |
664 | if (_argo0) { | |
665 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
666 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_ClearAttributes. Expected _wxListItem_p."); | |
668 | return NULL; | |
669 | } | |
670 | } | |
671 | { | |
474c48f9 | 672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
673 | wxListItem_ClearAttributes(_arg0); |
674 | ||
474c48f9 | 675 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 676 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
677 | } Py_INCREF(Py_None); |
678 | _resultobj = Py_None; | |
679 | return _resultobj; | |
680 | } | |
681 | ||
682 | #define wxListItem_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
683 | static PyObject *_wrap_wxListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
684 | PyObject * _resultobj; | |
685 | wxListItem * _arg0; | |
686 | long _arg1; | |
687 | PyObject * _argo0 = 0; | |
688 | char *_kwnames[] = { "self","mask", NULL }; | |
689 | ||
690 | self = self; | |
691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetMask",_kwnames,&_argo0,&_arg1)) | |
692 | return NULL; | |
693 | if (_argo0) { | |
694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetMask. Expected _wxListItem_p."); | |
697 | return NULL; | |
698 | } | |
699 | } | |
700 | { | |
474c48f9 | 701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
702 | wxListItem_SetMask(_arg0,_arg1); |
703 | ||
474c48f9 | 704 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 705 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
706 | } Py_INCREF(Py_None); |
707 | _resultobj = Py_None; | |
708 | return _resultobj; | |
709 | } | |
710 | ||
711 | #define wxListItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
712 | static PyObject *_wrap_wxListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
713 | PyObject * _resultobj; | |
714 | wxListItem * _arg0; | |
715 | long _arg1; | |
716 | PyObject * _argo0 = 0; | |
717 | char *_kwnames[] = { "self","id", NULL }; | |
718 | ||
719 | self = self; | |
720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetId",_kwnames,&_argo0,&_arg1)) | |
721 | return NULL; | |
722 | if (_argo0) { | |
723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetId. Expected _wxListItem_p."); | |
726 | return NULL; | |
727 | } | |
728 | } | |
729 | { | |
474c48f9 | 730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
731 | wxListItem_SetId(_arg0,_arg1); |
732 | ||
474c48f9 | 733 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 734 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
735 | } Py_INCREF(Py_None); |
736 | _resultobj = Py_None; | |
737 | return _resultobj; | |
738 | } | |
739 | ||
740 | #define wxListItem_SetColumn(_swigobj,_swigarg0) (_swigobj->SetColumn(_swigarg0)) | |
741 | static PyObject *_wrap_wxListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
742 | PyObject * _resultobj; | |
743 | wxListItem * _arg0; | |
744 | int _arg1; | |
745 | PyObject * _argo0 = 0; | |
746 | char *_kwnames[] = { "self","col", NULL }; | |
747 | ||
748 | self = self; | |
749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetColumn",_kwnames,&_argo0,&_arg1)) | |
750 | return NULL; | |
751 | if (_argo0) { | |
752 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
753 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetColumn. Expected _wxListItem_p."); | |
755 | return NULL; | |
756 | } | |
757 | } | |
758 | { | |
474c48f9 | 759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
760 | wxListItem_SetColumn(_arg0,_arg1); |
761 | ||
474c48f9 | 762 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 763 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
764 | } Py_INCREF(Py_None); |
765 | _resultobj = Py_None; | |
766 | return _resultobj; | |
767 | } | |
768 | ||
769 | #define wxListItem_SetState(_swigobj,_swigarg0) (_swigobj->SetState(_swigarg0)) | |
770 | static PyObject *_wrap_wxListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
771 | PyObject * _resultobj; | |
772 | wxListItem * _arg0; | |
773 | long _arg1; | |
774 | PyObject * _argo0 = 0; | |
775 | char *_kwnames[] = { "self","state", NULL }; | |
776 | ||
777 | self = self; | |
778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetState",_kwnames,&_argo0,&_arg1)) | |
779 | return NULL; | |
780 | if (_argo0) { | |
781 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
782 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
783 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetState. Expected _wxListItem_p."); | |
784 | return NULL; | |
785 | } | |
786 | } | |
787 | { | |
474c48f9 | 788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
789 | wxListItem_SetState(_arg0,_arg1); |
790 | ||
474c48f9 | 791 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 792 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
793 | } Py_INCREF(Py_None); |
794 | _resultobj = Py_None; | |
795 | return _resultobj; | |
796 | } | |
797 | ||
798 | #define wxListItem_SetStateMask(_swigobj,_swigarg0) (_swigobj->SetStateMask(_swigarg0)) | |
799 | static PyObject *_wrap_wxListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
800 | PyObject * _resultobj; | |
801 | wxListItem * _arg0; | |
802 | long _arg1; | |
803 | PyObject * _argo0 = 0; | |
804 | char *_kwnames[] = { "self","stateMask", NULL }; | |
805 | ||
806 | self = self; | |
807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetStateMask",_kwnames,&_argo0,&_arg1)) | |
808 | return NULL; | |
809 | if (_argo0) { | |
810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetStateMask. Expected _wxListItem_p."); | |
813 | return NULL; | |
814 | } | |
815 | } | |
816 | { | |
474c48f9 | 817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
818 | wxListItem_SetStateMask(_arg0,_arg1); |
819 | ||
474c48f9 | 820 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 821 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
822 | } Py_INCREF(Py_None); |
823 | _resultobj = Py_None; | |
824 | return _resultobj; | |
825 | } | |
826 | ||
827 | #define wxListItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
828 | static PyObject *_wrap_wxListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
829 | PyObject * _resultobj; | |
830 | wxListItem * _arg0; | |
831 | wxString * _arg1; | |
832 | PyObject * _argo0 = 0; | |
833 | PyObject * _obj1 = 0; | |
834 | char *_kwnames[] = { "self","text", NULL }; | |
835 | ||
836 | self = self; | |
837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetText",_kwnames,&_argo0,&_obj1)) | |
838 | return NULL; | |
839 | if (_argo0) { | |
840 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
841 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetText. Expected _wxListItem_p."); | |
843 | return NULL; | |
844 | } | |
845 | } | |
846 | { | |
2cd2fac8 RD |
847 | #if PYTHON_API_VERSION >= 1009 |
848 | char* tmpPtr; int tmpSize; | |
849 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 850 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
851 | return NULL; |
852 | } | |
853 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
854 | return NULL; | |
855 | _arg1 = new wxString(tmpPtr, tmpSize); | |
856 | #else | |
f6bcfd97 BP |
857 | if (!PyString_Check(_obj1)) { |
858 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
859 | return NULL; | |
860 | } | |
2cd2fac8 RD |
861 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
862 | #endif | |
f6bcfd97 BP |
863 | } |
864 | { | |
474c48f9 | 865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
866 | wxListItem_SetText(_arg0,*_arg1); |
867 | ||
474c48f9 | 868 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 869 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
870 | } Py_INCREF(Py_None); |
871 | _resultobj = Py_None; | |
872 | { | |
873 | if (_obj1) | |
874 | delete _arg1; | |
875 | } | |
876 | return _resultobj; | |
877 | } | |
878 | ||
879 | #define wxListItem_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0)) | |
880 | static PyObject *_wrap_wxListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
881 | PyObject * _resultobj; | |
882 | wxListItem * _arg0; | |
883 | int _arg1; | |
884 | PyObject * _argo0 = 0; | |
885 | char *_kwnames[] = { "self","image", NULL }; | |
886 | ||
887 | self = self; | |
888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetImage",_kwnames,&_argo0,&_arg1)) | |
889 | return NULL; | |
890 | if (_argo0) { | |
891 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
892 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetImage. Expected _wxListItem_p."); | |
894 | return NULL; | |
895 | } | |
896 | } | |
897 | { | |
474c48f9 | 898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
899 | wxListItem_SetImage(_arg0,_arg1); |
900 | ||
474c48f9 | 901 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 902 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
903 | } Py_INCREF(Py_None); |
904 | _resultobj = Py_None; | |
905 | return _resultobj; | |
906 | } | |
907 | ||
908 | #define wxListItem_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
909 | static PyObject *_wrap_wxListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
910 | PyObject * _resultobj; | |
911 | wxListItem * _arg0; | |
912 | long _arg1; | |
913 | PyObject * _argo0 = 0; | |
914 | char *_kwnames[] = { "self","data", NULL }; | |
915 | ||
916 | self = self; | |
917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetData",_kwnames,&_argo0,&_arg1)) | |
918 | return NULL; | |
919 | if (_argo0) { | |
920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetData. Expected _wxListItem_p."); | |
923 | return NULL; | |
924 | } | |
925 | } | |
926 | { | |
474c48f9 | 927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
928 | wxListItem_SetData(_arg0,_arg1); |
929 | ||
474c48f9 | 930 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 931 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
932 | } Py_INCREF(Py_None); |
933 | _resultobj = Py_None; | |
934 | return _resultobj; | |
935 | } | |
936 | ||
937 | #define wxListItem_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
938 | static PyObject *_wrap_wxListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
939 | PyObject * _resultobj; | |
940 | wxListItem * _arg0; | |
941 | int _arg1; | |
942 | PyObject * _argo0 = 0; | |
943 | char *_kwnames[] = { "self","width", NULL }; | |
944 | ||
945 | self = self; | |
946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetWidth",_kwnames,&_argo0,&_arg1)) | |
947 | return NULL; | |
948 | if (_argo0) { | |
949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetWidth. Expected _wxListItem_p."); | |
952 | return NULL; | |
953 | } | |
954 | } | |
955 | { | |
474c48f9 | 956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
957 | wxListItem_SetWidth(_arg0,_arg1); |
958 | ||
474c48f9 | 959 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 960 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
961 | } Py_INCREF(Py_None); |
962 | _resultobj = Py_None; | |
963 | return _resultobj; | |
964 | } | |
965 | ||
966 | #define wxListItem_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0)) | |
967 | static PyObject *_wrap_wxListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
968 | PyObject * _resultobj; | |
969 | wxListItem * _arg0; | |
970 | wxListColumnFormat _arg1; | |
971 | PyObject * _argo0 = 0; | |
972 | char *_kwnames[] = { "self","align", NULL }; | |
973 | ||
974 | self = self; | |
975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetAlign",_kwnames,&_argo0,&_arg1)) | |
976 | return NULL; | |
977 | if (_argo0) { | |
978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetAlign. Expected _wxListItem_p."); | |
981 | return NULL; | |
982 | } | |
983 | } | |
984 | { | |
474c48f9 | 985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
986 | wxListItem_SetAlign(_arg0,_arg1); |
987 | ||
474c48f9 | 988 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 989 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
990 | } Py_INCREF(Py_None); |
991 | _resultobj = Py_None; | |
992 | return _resultobj; | |
993 | } | |
994 | ||
995 | #define wxListItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
996 | static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
997 | PyObject * _resultobj; | |
998 | wxListItem * _arg0; | |
999 | wxColour * _arg1; | |
1000 | PyObject * _argo0 = 0; | |
1001 | wxColour temp; | |
1002 | PyObject * _obj1 = 0; | |
1003 | char *_kwnames[] = { "self","colText", NULL }; | |
1004 | ||
1005 | self = self; | |
1006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
1007 | return NULL; | |
1008 | if (_argo0) { | |
1009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetTextColour. Expected _wxListItem_p."); | |
1012 | return NULL; | |
1013 | } | |
1014 | } | |
1015 | { | |
1016 | _arg1 = &temp; | |
1017 | if (! wxColour_helper(_obj1, &_arg1)) | |
1018 | return NULL; | |
1019 | } | |
1020 | { | |
474c48f9 | 1021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1022 | wxListItem_SetTextColour(_arg0,*_arg1); |
1023 | ||
474c48f9 | 1024 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1025 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1026 | } Py_INCREF(Py_None); |
1027 | _resultobj = Py_None; | |
1028 | return _resultobj; | |
1029 | } | |
1030 | ||
1031 | #define wxListItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
1032 | static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1033 | PyObject * _resultobj; | |
1034 | wxListItem * _arg0; | |
1035 | wxColour * _arg1; | |
1036 | PyObject * _argo0 = 0; | |
1037 | wxColour temp; | |
1038 | PyObject * _obj1 = 0; | |
1039 | char *_kwnames[] = { "self","colBack", NULL }; | |
1040 | ||
1041 | self = self; | |
1042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
1043 | return NULL; | |
1044 | if (_argo0) { | |
1045 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1046 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetBackgroundColour. Expected _wxListItem_p."); | |
1048 | return NULL; | |
1049 | } | |
1050 | } | |
1051 | { | |
1052 | _arg1 = &temp; | |
1053 | if (! wxColour_helper(_obj1, &_arg1)) | |
1054 | return NULL; | |
1055 | } | |
1056 | { | |
474c48f9 | 1057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1058 | wxListItem_SetBackgroundColour(_arg0,*_arg1); |
1059 | ||
474c48f9 | 1060 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1061 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1062 | } Py_INCREF(Py_None); |
1063 | _resultobj = Py_None; | |
1064 | return _resultobj; | |
1065 | } | |
1066 | ||
1067 | #define wxListItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1068 | static PyObject *_wrap_wxListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1069 | PyObject * _resultobj; | |
1070 | wxListItem * _arg0; | |
1071 | wxFont * _arg1; | |
1072 | PyObject * _argo0 = 0; | |
1073 | PyObject * _argo1 = 0; | |
1074 | char *_kwnames[] = { "self","font", NULL }; | |
1075 | ||
1076 | self = self; | |
1077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
1078 | return NULL; | |
1079 | if (_argo0) { | |
1080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetFont. Expected _wxListItem_p."); | |
1083 | return NULL; | |
1084 | } | |
1085 | } | |
1086 | if (_argo1) { | |
1087 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1088 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
1089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetFont. Expected _wxFont_p."); | |
1090 | return NULL; | |
1091 | } | |
1092 | } | |
1093 | { | |
474c48f9 | 1094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1095 | wxListItem_SetFont(_arg0,*_arg1); |
1096 | ||
474c48f9 | 1097 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1098 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1099 | } Py_INCREF(Py_None); |
1100 | _resultobj = Py_None; | |
1101 | return _resultobj; | |
1102 | } | |
1103 | ||
1104 | #define wxListItem_GetMask(_swigobj) (_swigobj->GetMask()) | |
1105 | static PyObject *_wrap_wxListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1106 | PyObject * _resultobj; | |
1107 | long _result; | |
1108 | wxListItem * _arg0; | |
1109 | PyObject * _argo0 = 0; | |
1110 | char *_kwnames[] = { "self", NULL }; | |
1111 | ||
1112 | self = self; | |
1113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetMask",_kwnames,&_argo0)) | |
1114 | return NULL; | |
1115 | if (_argo0) { | |
1116 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1117 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetMask. Expected _wxListItem_p."); | |
1119 | return NULL; | |
1120 | } | |
1121 | } | |
1122 | { | |
474c48f9 | 1123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1124 | _result = (long )wxListItem_GetMask(_arg0); |
1125 | ||
474c48f9 | 1126 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1127 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1128 | } _resultobj = Py_BuildValue("l",_result); |
1129 | return _resultobj; | |
1130 | } | |
1131 | ||
1132 | #define wxListItem_GetId(_swigobj) (_swigobj->GetId()) | |
1133 | static PyObject *_wrap_wxListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1134 | PyObject * _resultobj; | |
1135 | long _result; | |
1136 | wxListItem * _arg0; | |
1137 | PyObject * _argo0 = 0; | |
1138 | char *_kwnames[] = { "self", NULL }; | |
1139 | ||
1140 | self = self; | |
1141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetId",_kwnames,&_argo0)) | |
1142 | return NULL; | |
1143 | if (_argo0) { | |
1144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetId. Expected _wxListItem_p."); | |
1147 | return NULL; | |
1148 | } | |
1149 | } | |
1150 | { | |
474c48f9 | 1151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1152 | _result = (long )wxListItem_GetId(_arg0); |
1153 | ||
474c48f9 | 1154 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1155 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1156 | } _resultobj = Py_BuildValue("l",_result); |
1157 | return _resultobj; | |
1158 | } | |
1159 | ||
1160 | #define wxListItem_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
1161 | static PyObject *_wrap_wxListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1162 | PyObject * _resultobj; | |
1163 | int _result; | |
1164 | wxListItem * _arg0; | |
1165 | PyObject * _argo0 = 0; | |
1166 | char *_kwnames[] = { "self", NULL }; | |
1167 | ||
1168 | self = self; | |
1169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetColumn",_kwnames,&_argo0)) | |
1170 | return NULL; | |
1171 | if (_argo0) { | |
1172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetColumn. Expected _wxListItem_p."); | |
1175 | return NULL; | |
1176 | } | |
1177 | } | |
1178 | { | |
474c48f9 | 1179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1180 | _result = (int )wxListItem_GetColumn(_arg0); |
1181 | ||
474c48f9 | 1182 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1183 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1184 | } _resultobj = Py_BuildValue("i",_result); |
1185 | return _resultobj; | |
1186 | } | |
1187 | ||
1188 | #define wxListItem_GetState(_swigobj) (_swigobj->GetState()) | |
1189 | static PyObject *_wrap_wxListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1190 | PyObject * _resultobj; | |
1191 | long _result; | |
1192 | wxListItem * _arg0; | |
1193 | PyObject * _argo0 = 0; | |
1194 | char *_kwnames[] = { "self", NULL }; | |
1195 | ||
1196 | self = self; | |
1197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetState",_kwnames,&_argo0)) | |
1198 | return NULL; | |
1199 | if (_argo0) { | |
1200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetState. Expected _wxListItem_p."); | |
1203 | return NULL; | |
1204 | } | |
1205 | } | |
1206 | { | |
474c48f9 | 1207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1208 | _result = (long )wxListItem_GetState(_arg0); |
1209 | ||
474c48f9 | 1210 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1211 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1212 | } _resultobj = Py_BuildValue("l",_result); |
1213 | return _resultobj; | |
1214 | } | |
1215 | ||
1216 | #define wxListItem_GetText(_swigobj) (_swigobj->GetText()) | |
1217 | static PyObject *_wrap_wxListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1218 | PyObject * _resultobj; | |
1219 | wxString * _result; | |
1220 | wxListItem * _arg0; | |
1221 | PyObject * _argo0 = 0; | |
1222 | char *_kwnames[] = { "self", NULL }; | |
1223 | ||
1224 | self = self; | |
1225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetText",_kwnames,&_argo0)) | |
1226 | return NULL; | |
1227 | if (_argo0) { | |
1228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetText. Expected _wxListItem_p."); | |
1231 | return NULL; | |
1232 | } | |
1233 | } | |
1234 | { | |
474c48f9 | 1235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1236 | const wxString & _result_ref = wxListItem_GetText(_arg0); |
1237 | _result = (wxString *) &_result_ref; | |
1238 | ||
474c48f9 | 1239 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1240 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1241 | }{ |
1242 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1243 | } | |
1244 | return _resultobj; | |
1245 | } | |
1246 | ||
1247 | #define wxListItem_GetImage(_swigobj) (_swigobj->GetImage()) | |
1248 | static PyObject *_wrap_wxListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1249 | PyObject * _resultobj; | |
1250 | int _result; | |
1251 | wxListItem * _arg0; | |
1252 | PyObject * _argo0 = 0; | |
1253 | char *_kwnames[] = { "self", NULL }; | |
1254 | ||
1255 | self = self; | |
1256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetImage",_kwnames,&_argo0)) | |
1257 | return NULL; | |
1258 | if (_argo0) { | |
1259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetImage. Expected _wxListItem_p."); | |
1262 | return NULL; | |
1263 | } | |
1264 | } | |
1265 | { | |
474c48f9 | 1266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1267 | _result = (int )wxListItem_GetImage(_arg0); |
1268 | ||
474c48f9 | 1269 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1270 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1271 | } _resultobj = Py_BuildValue("i",_result); |
1272 | return _resultobj; | |
1273 | } | |
1274 | ||
1275 | #define wxListItem_GetData(_swigobj) (_swigobj->GetData()) | |
1276 | static PyObject *_wrap_wxListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1277 | PyObject * _resultobj; | |
1278 | long _result; | |
1279 | wxListItem * _arg0; | |
1280 | PyObject * _argo0 = 0; | |
1281 | char *_kwnames[] = { "self", NULL }; | |
1282 | ||
1283 | self = self; | |
1284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetData",_kwnames,&_argo0)) | |
1285 | return NULL; | |
1286 | if (_argo0) { | |
1287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetData. Expected _wxListItem_p."); | |
1290 | return NULL; | |
1291 | } | |
1292 | } | |
1293 | { | |
474c48f9 | 1294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1295 | _result = (long )wxListItem_GetData(_arg0); |
1296 | ||
474c48f9 | 1297 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1298 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1299 | } _resultobj = Py_BuildValue("l",_result); |
1300 | return _resultobj; | |
1301 | } | |
1302 | ||
1303 | #define wxListItem_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1304 | static PyObject *_wrap_wxListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1305 | PyObject * _resultobj; | |
1306 | int _result; | |
1307 | wxListItem * _arg0; | |
1308 | PyObject * _argo0 = 0; | |
1309 | char *_kwnames[] = { "self", NULL }; | |
1310 | ||
1311 | self = self; | |
1312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetWidth",_kwnames,&_argo0)) | |
1313 | return NULL; | |
1314 | if (_argo0) { | |
1315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetWidth. Expected _wxListItem_p."); | |
1318 | return NULL; | |
1319 | } | |
1320 | } | |
1321 | { | |
474c48f9 | 1322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1323 | _result = (int )wxListItem_GetWidth(_arg0); |
1324 | ||
474c48f9 | 1325 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1326 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1327 | } _resultobj = Py_BuildValue("i",_result); |
1328 | return _resultobj; | |
1329 | } | |
1330 | ||
1331 | #define wxListItem_GetAlign(_swigobj) (_swigobj->GetAlign()) | |
1332 | static PyObject *_wrap_wxListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1333 | PyObject * _resultobj; | |
1334 | wxListColumnFormat _result; | |
1335 | wxListItem * _arg0; | |
1336 | PyObject * _argo0 = 0; | |
1337 | char *_kwnames[] = { "self", NULL }; | |
1338 | ||
1339 | self = self; | |
1340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAlign",_kwnames,&_argo0)) | |
1341 | return NULL; | |
1342 | if (_argo0) { | |
1343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAlign. Expected _wxListItem_p."); | |
1346 | return NULL; | |
1347 | } | |
1348 | } | |
1349 | { | |
474c48f9 | 1350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1351 | _result = (wxListColumnFormat )wxListItem_GetAlign(_arg0); |
1352 | ||
474c48f9 | 1353 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1354 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1355 | } _resultobj = Py_BuildValue("i",_result); |
1356 | return _resultobj; | |
1357 | } | |
1358 | ||
1359 | #define wxListItem_GetAttributes(_swigobj) (_swigobj->GetAttributes()) | |
1360 | static PyObject *_wrap_wxListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1361 | PyObject * _resultobj; | |
1362 | wxListItemAttr * _result; | |
1363 | wxListItem * _arg0; | |
1364 | PyObject * _argo0 = 0; | |
1365 | char *_kwnames[] = { "self", NULL }; | |
1366 | char _ptemp[128]; | |
1367 | ||
1368 | self = self; | |
1369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAttributes",_kwnames,&_argo0)) | |
1370 | return NULL; | |
1371 | if (_argo0) { | |
1372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAttributes. Expected _wxListItem_p."); | |
1375 | return NULL; | |
1376 | } | |
1377 | } | |
1378 | { | |
474c48f9 | 1379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1380 | _result = (wxListItemAttr *)wxListItem_GetAttributes(_arg0); |
1381 | ||
474c48f9 | 1382 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1383 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1384 | } if (_result) { |
1385 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
1386 | _resultobj = Py_BuildValue("s",_ptemp); | |
1387 | } else { | |
1388 | Py_INCREF(Py_None); | |
1389 | _resultobj = Py_None; | |
1390 | } | |
1391 | return _resultobj; | |
1392 | } | |
1393 | ||
1394 | #define wxListItem_HasAttributes(_swigobj) (_swigobj->HasAttributes()) | |
1395 | static PyObject *_wrap_wxListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1396 | PyObject * _resultobj; | |
1397 | bool _result; | |
1398 | wxListItem * _arg0; | |
1399 | PyObject * _argo0 = 0; | |
1400 | char *_kwnames[] = { "self", NULL }; | |
1401 | ||
1402 | self = self; | |
1403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_HasAttributes",_kwnames,&_argo0)) | |
1404 | return NULL; | |
1405 | if (_argo0) { | |
1406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_HasAttributes. Expected _wxListItem_p."); | |
1409 | return NULL; | |
1410 | } | |
1411 | } | |
1412 | { | |
474c48f9 | 1413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1414 | _result = (bool )wxListItem_HasAttributes(_arg0); |
1415 | ||
474c48f9 | 1416 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1417 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1418 | } _resultobj = Py_BuildValue("i",_result); |
1419 | return _resultobj; | |
1420 | } | |
1421 | ||
1422 | #define wxListItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
1423 | static PyObject *_wrap_wxListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1424 | PyObject * _resultobj; | |
1425 | wxColour * _result; | |
1426 | wxListItem * _arg0; | |
1427 | PyObject * _argo0 = 0; | |
1428 | char *_kwnames[] = { "self", NULL }; | |
1429 | char _ptemp[128]; | |
1430 | ||
1431 | self = self; | |
1432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetTextColour",_kwnames,&_argo0)) | |
1433 | return NULL; | |
1434 | if (_argo0) { | |
1435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetTextColour. Expected _wxListItem_p."); | |
1438 | return NULL; | |
1439 | } | |
1440 | } | |
1441 | { | |
474c48f9 | 1442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1443 | _result = new wxColour (wxListItem_GetTextColour(_arg0)); |
1444 | ||
474c48f9 | 1445 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1446 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1447 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1448 | _resultobj = Py_BuildValue("s",_ptemp); | |
1449 | return _resultobj; | |
1450 | } | |
1451 | ||
1452 | #define wxListItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1453 | static PyObject *_wrap_wxListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1454 | PyObject * _resultobj; | |
1455 | wxColour * _result; | |
1456 | wxListItem * _arg0; | |
1457 | PyObject * _argo0 = 0; | |
1458 | char *_kwnames[] = { "self", NULL }; | |
1459 | char _ptemp[128]; | |
1460 | ||
1461 | self = self; | |
1462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetBackgroundColour",_kwnames,&_argo0)) | |
1463 | return NULL; | |
1464 | if (_argo0) { | |
1465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetBackgroundColour. Expected _wxListItem_p."); | |
1468 | return NULL; | |
1469 | } | |
1470 | } | |
1471 | { | |
474c48f9 | 1472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1473 | _result = new wxColour (wxListItem_GetBackgroundColour(_arg0)); |
1474 | ||
474c48f9 | 1475 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1476 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1477 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1478 | _resultobj = Py_BuildValue("s",_ptemp); | |
1479 | return _resultobj; | |
1480 | } | |
1481 | ||
1482 | #define wxListItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
1483 | static PyObject *_wrap_wxListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1484 | PyObject * _resultobj; | |
1485 | wxFont * _result; | |
1486 | wxListItem * _arg0; | |
1487 | PyObject * _argo0 = 0; | |
1488 | char *_kwnames[] = { "self", NULL }; | |
1489 | char _ptemp[128]; | |
1490 | ||
1491 | self = self; | |
1492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetFont",_kwnames,&_argo0)) | |
1493 | return NULL; | |
1494 | if (_argo0) { | |
1495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetFont. Expected _wxListItem_p."); | |
1498 | return NULL; | |
1499 | } | |
1500 | } | |
1501 | { | |
474c48f9 | 1502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1503 | _result = new wxFont (wxListItem_GetFont(_arg0)); |
1504 | ||
474c48f9 | 1505 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1506 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1507 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
1508 | _resultobj = Py_BuildValue("s",_ptemp); | |
1509 | return _resultobj; | |
1510 | } | |
1511 | ||
1512 | #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval) | |
1513 | static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1514 | PyObject * _resultobj; | |
1515 | long _result; | |
1516 | wxListItem * _arg0; | |
1517 | long _arg1; | |
1518 | PyObject * _argo0 = 0; | |
1519 | char *_kwnames[] = { "self","m_mask", NULL }; | |
1520 | ||
1521 | self = self; | |
1522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1)) | |
1523 | return NULL; | |
1524 | if (_argo0) { | |
1525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p."); | |
1528 | return NULL; | |
1529 | } | |
1530 | } | |
1531 | { | |
474c48f9 | 1532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1533 | _result = (long )wxListItem_m_mask_set(_arg0,_arg1); |
1534 | ||
474c48f9 | 1535 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1536 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1537 | } _resultobj = Py_BuildValue("l",_result); |
1538 | return _resultobj; | |
1539 | } | |
1540 | ||
1541 | #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask) | |
1542 | static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1543 | PyObject * _resultobj; | |
1544 | long _result; | |
1545 | wxListItem * _arg0; | |
1546 | PyObject * _argo0 = 0; | |
1547 | char *_kwnames[] = { "self", NULL }; | |
1548 | ||
1549 | self = self; | |
1550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0)) | |
1551 | return NULL; | |
1552 | if (_argo0) { | |
1553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p."); | |
1556 | return NULL; | |
1557 | } | |
1558 | } | |
1559 | { | |
474c48f9 | 1560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1561 | _result = (long )wxListItem_m_mask_get(_arg0); |
1562 | ||
474c48f9 | 1563 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1564 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1565 | } _resultobj = Py_BuildValue("l",_result); |
1566 | return _resultobj; | |
1567 | } | |
1568 | ||
1569 | #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval) | |
1570 | static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
1571 | PyObject * _resultobj; |
1572 | long _result; | |
1573 | wxListItem * _arg0; | |
1574 | long _arg1; | |
1d99702e | 1575 | PyObject * _argo0 = 0; |
f6bcfd97 | 1576 | char *_kwnames[] = { "self","m_itemId", NULL }; |
af309447 RD |
1577 | |
1578 | self = self; | |
f6bcfd97 | 1579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1580 | return NULL; |
1d99702e RD |
1581 | if (_argo0) { |
1582 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1583 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1584 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p."); |
af309447 RD |
1585 | return NULL; |
1586 | } | |
1587 | } | |
cf694132 | 1588 | { |
474c48f9 | 1589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1590 | _result = (long )wxListItem_m_itemId_set(_arg0,_arg1); |
1591 | ||
474c48f9 | 1592 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1593 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1594 | } _resultobj = Py_BuildValue("l",_result); |
1595 | return _resultobj; | |
1596 | } | |
1597 | ||
1598 | #define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId) | |
1599 | static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1600 | PyObject * _resultobj; | |
1601 | long _result; | |
1602 | wxListItem * _arg0; | |
1603 | PyObject * _argo0 = 0; | |
1604 | char *_kwnames[] = { "self", NULL }; | |
1605 | ||
1606 | self = self; | |
1607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0)) | |
1608 | return NULL; | |
1609 | if (_argo0) { | |
1610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p."); | |
1613 | return NULL; | |
1614 | } | |
1615 | } | |
1616 | { | |
474c48f9 | 1617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1618 | _result = (long )wxListItem_m_itemId_get(_arg0); |
1619 | ||
474c48f9 | 1620 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1621 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1622 | } _resultobj = Py_BuildValue("l",_result); |
1623 | return _resultobj; | |
1624 | } | |
1625 | ||
1626 | #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
1627 | static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1628 | PyObject * _resultobj; | |
1629 | int _result; | |
1630 | wxListItem * _arg0; | |
1631 | int _arg1; | |
1632 | PyObject * _argo0 = 0; | |
1633 | char *_kwnames[] = { "self","m_col", NULL }; | |
1634 | ||
1635 | self = self; | |
1636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1)) | |
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_col_set. Expected _wxListItem_p."); | |
1642 | return NULL; | |
1643 | } | |
1644 | } | |
1645 | { | |
474c48f9 | 1646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1647 | _result = (int )wxListItem_m_col_set(_arg0,_arg1); |
1648 | ||
474c48f9 | 1649 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1650 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1651 | } _resultobj = Py_BuildValue("i",_result); |
1652 | return _resultobj; | |
1653 | } | |
1654 | ||
1655 | #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
1656 | static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1657 | PyObject * _resultobj; | |
1658 | int _result; | |
1659 | wxListItem * _arg0; | |
1660 | PyObject * _argo0 = 0; | |
1661 | char *_kwnames[] = { "self", NULL }; | |
1662 | ||
1663 | self = self; | |
1664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0)) | |
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_col_get. Expected _wxListItem_p."); | |
1670 | return NULL; | |
1671 | } | |
1672 | } | |
1673 | { | |
474c48f9 | 1674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1675 | _result = (int )wxListItem_m_col_get(_arg0); |
1676 | ||
474c48f9 | 1677 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1678 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1679 | } _resultobj = Py_BuildValue("i",_result); |
1680 | return _resultobj; | |
1681 | } | |
1682 | ||
1683 | #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval) | |
1684 | static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1685 | PyObject * _resultobj; | |
1686 | long _result; | |
1687 | wxListItem * _arg0; | |
1688 | long _arg1; | |
1689 | PyObject * _argo0 = 0; | |
1690 | char *_kwnames[] = { "self","m_state", NULL }; | |
1691 | ||
1692 | self = self; | |
1693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1)) | |
1694 | return NULL; | |
1695 | if (_argo0) { | |
1696 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1697 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p."); | |
1699 | return NULL; | |
1700 | } | |
1701 | } | |
1702 | { | |
474c48f9 | 1703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1704 | _result = (long )wxListItem_m_state_set(_arg0,_arg1); |
1705 | ||
474c48f9 | 1706 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1707 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1708 | } _resultobj = Py_BuildValue("l",_result); |
1709 | return _resultobj; | |
1710 | } | |
1711 | ||
1712 | #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state) | |
1713 | static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1714 | PyObject * _resultobj; | |
1715 | long _result; | |
1716 | wxListItem * _arg0; | |
1717 | PyObject * _argo0 = 0; | |
1718 | char *_kwnames[] = { "self", NULL }; | |
1719 | ||
1720 | self = self; | |
1721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0)) | |
1722 | return NULL; | |
1723 | if (_argo0) { | |
1724 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1725 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p."); | |
1727 | return NULL; | |
1728 | } | |
1729 | } | |
1730 | { | |
474c48f9 | 1731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1732 | _result = (long )wxListItem_m_state_get(_arg0); |
1733 | ||
474c48f9 | 1734 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1735 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1736 | } _resultobj = Py_BuildValue("l",_result); |
1737 | return _resultobj; | |
1738 | } | |
1739 | ||
1740 | #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval) | |
1741 | static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1742 | PyObject * _resultobj; | |
1743 | long _result; | |
1744 | wxListItem * _arg0; | |
1745 | long _arg1; | |
1746 | PyObject * _argo0 = 0; | |
1747 | char *_kwnames[] = { "self","m_stateMask", NULL }; | |
1748 | ||
1749 | self = self; | |
1750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1)) | |
1751 | return NULL; | |
1752 | if (_argo0) { | |
1753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p."); | |
1756 | return NULL; | |
1757 | } | |
1758 | } | |
1759 | { | |
474c48f9 | 1760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1761 | _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1); |
1762 | ||
474c48f9 | 1763 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1764 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1765 | } _resultobj = Py_BuildValue("l",_result); |
1766 | return _resultobj; | |
1767 | } | |
1768 | ||
1769 | #define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask) | |
1770 | static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1771 | PyObject * _resultobj; | |
1772 | long _result; | |
1773 | wxListItem * _arg0; | |
1774 | PyObject * _argo0 = 0; | |
1775 | char *_kwnames[] = { "self", NULL }; | |
1776 | ||
1777 | self = self; | |
1778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0)) | |
1779 | return NULL; | |
1780 | if (_argo0) { | |
1781 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1782 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1783 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p."); | |
1784 | return NULL; | |
1785 | } | |
1786 | } | |
1787 | { | |
474c48f9 | 1788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 1789 | _result = (long )wxListItem_m_stateMask_get(_arg0); |
cf694132 | 1790 | |
474c48f9 | 1791 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1792 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1793 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
1794 | return _resultobj; |
1795 | } | |
1796 | ||
f6bcfd97 BP |
1797 | #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval) |
1798 | static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1799 | PyObject * _resultobj; | |
1800 | wxString * _result; | |
1801 | wxListItem * _arg0; | |
1802 | wxString * _arg1; | |
1803 | PyObject * _argo0 = 0; | |
1804 | PyObject * _obj1 = 0; | |
1805 | char *_kwnames[] = { "self","m_text", NULL }; | |
1806 | ||
1807 | self = self; | |
1808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1)) | |
1809 | return NULL; | |
1810 | if (_argo0) { | |
1811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p."); | |
1814 | return NULL; | |
1815 | } | |
1816 | } | |
1817 | { | |
2cd2fac8 RD |
1818 | #if PYTHON_API_VERSION >= 1009 |
1819 | char* tmpPtr; int tmpSize; | |
1820 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1821 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1822 | return NULL; |
1823 | } | |
1824 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1825 | return NULL; | |
1826 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1827 | #else | |
f6bcfd97 BP |
1828 | if (!PyString_Check(_obj1)) { |
1829 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1830 | return NULL; | |
1831 | } | |
2cd2fac8 RD |
1832 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1833 | #endif | |
f6bcfd97 BP |
1834 | } |
1835 | { | |
474c48f9 | 1836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1837 | _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1); |
1838 | ||
474c48f9 | 1839 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1840 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1841 | }{ |
1842 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1843 | } | |
1844 | { | |
1845 | if (_obj1) | |
1846 | delete _arg1; | |
1847 | } | |
1848 | return _resultobj; | |
1849 | } | |
1850 | ||
1851 | #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text) | |
1852 | static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1853 | PyObject * _resultobj; |
f6bcfd97 | 1854 | wxString * _result; |
8ab979d7 | 1855 | wxListItem * _arg0; |
1d99702e | 1856 | PyObject * _argo0 = 0; |
efc5f224 | 1857 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1858 | |
1859 | self = self; | |
f6bcfd97 | 1860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0)) |
8ab979d7 | 1861 | return NULL; |
1d99702e RD |
1862 | if (_argo0) { |
1863 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1864 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1866 | return NULL; |
1867 | } | |
1868 | } | |
cf694132 | 1869 | { |
474c48f9 | 1870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 1871 | _result = (wxString *)wxListItem_m_text_get(_arg0); |
cf694132 | 1872 | |
474c48f9 | 1873 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1874 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1875 | }{ |
1876 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1877 | } | |
8ab979d7 RD |
1878 | return _resultobj; |
1879 | } | |
1880 | ||
f6bcfd97 BP |
1881 | #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval) |
1882 | static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1883 | PyObject * _resultobj; |
f6bcfd97 | 1884 | int _result; |
af309447 | 1885 | wxListItem * _arg0; |
f6bcfd97 | 1886 | int _arg1; |
1d99702e | 1887 | PyObject * _argo0 = 0; |
f6bcfd97 | 1888 | char *_kwnames[] = { "self","m_image", NULL }; |
af309447 RD |
1889 | |
1890 | self = self; | |
f6bcfd97 | 1891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1892 | return NULL; |
1d99702e RD |
1893 | if (_argo0) { |
1894 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1895 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p."); |
af309447 RD |
1897 | return NULL; |
1898 | } | |
1899 | } | |
cf694132 | 1900 | { |
474c48f9 | 1901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 1902 | _result = (int )wxListItem_m_image_set(_arg0,_arg1); |
cf694132 | 1903 | |
474c48f9 | 1904 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1905 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1906 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
1907 | return _resultobj; |
1908 | } | |
1909 | ||
f6bcfd97 BP |
1910 | #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image) |
1911 | static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1912 | PyObject * _resultobj; |
f6bcfd97 | 1913 | int _result; |
8ab979d7 | 1914 | wxListItem * _arg0; |
1d99702e | 1915 | PyObject * _argo0 = 0; |
efc5f224 | 1916 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1917 | |
1918 | self = self; | |
f6bcfd97 | 1919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0)) |
8ab979d7 | 1920 | return NULL; |
1d99702e RD |
1921 | if (_argo0) { |
1922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1925 | return NULL; |
1926 | } | |
1927 | } | |
cf694132 | 1928 | { |
474c48f9 | 1929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 1930 | _result = (int )wxListItem_m_image_get(_arg0); |
cf694132 | 1931 | |
474c48f9 | 1932 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1933 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1934 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1935 | return _resultobj; |
1936 | } | |
1937 | ||
f6bcfd97 BP |
1938 | #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval) |
1939 | static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1940 | PyObject * _resultobj; |
f6bcfd97 | 1941 | long _result; |
af309447 | 1942 | wxListItem * _arg0; |
f6bcfd97 | 1943 | long _arg1; |
1d99702e | 1944 | PyObject * _argo0 = 0; |
f6bcfd97 | 1945 | char *_kwnames[] = { "self","m_data", NULL }; |
af309447 RD |
1946 | |
1947 | self = self; | |
f6bcfd97 | 1948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1949 | return NULL; |
1d99702e RD |
1950 | if (_argo0) { |
1951 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1952 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p."); |
af309447 RD |
1954 | return NULL; |
1955 | } | |
1956 | } | |
cf694132 | 1957 | { |
474c48f9 | 1958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 1959 | _result = (long )wxListItem_m_data_set(_arg0,_arg1); |
cf694132 | 1960 | |
474c48f9 | 1961 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1962 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1963 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
1964 | return _resultobj; |
1965 | } | |
1966 | ||
f6bcfd97 BP |
1967 | #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data) |
1968 | static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1969 | PyObject * _resultobj; |
f6bcfd97 | 1970 | long _result; |
8ab979d7 | 1971 | wxListItem * _arg0; |
1d99702e | 1972 | PyObject * _argo0 = 0; |
efc5f224 | 1973 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1974 | |
1975 | self = self; | |
f6bcfd97 | 1976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0)) |
8ab979d7 | 1977 | return NULL; |
1d99702e RD |
1978 | if (_argo0) { |
1979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1982 | return NULL; |
1983 | } | |
1984 | } | |
cf694132 | 1985 | { |
474c48f9 | 1986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 1987 | _result = (long )wxListItem_m_data_get(_arg0); |
cf694132 | 1988 | |
474c48f9 | 1989 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1990 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1991 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
1992 | return _resultobj; |
1993 | } | |
1994 | ||
f6bcfd97 BP |
1995 | #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval) |
1996 | static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1997 | PyObject * _resultobj; |
f6bcfd97 | 1998 | int _result; |
af309447 | 1999 | wxListItem * _arg0; |
f6bcfd97 | 2000 | int _arg1; |
1d99702e | 2001 | PyObject * _argo0 = 0; |
f6bcfd97 | 2002 | char *_kwnames[] = { "self","m_format", NULL }; |
af309447 RD |
2003 | |
2004 | self = self; | |
f6bcfd97 | 2005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2006 | return NULL; |
1d99702e RD |
2007 | if (_argo0) { |
2008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p."); |
af309447 RD |
2011 | return NULL; |
2012 | } | |
2013 | } | |
cf694132 | 2014 | { |
474c48f9 | 2015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 2016 | _result = (int )wxListItem_m_format_set(_arg0,_arg1); |
cf694132 | 2017 | |
474c48f9 | 2018 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2019 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2020 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2021 | return _resultobj; |
2022 | } | |
2023 | ||
f6bcfd97 BP |
2024 | #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format) |
2025 | static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2026 | PyObject * _resultobj; |
f6bcfd97 | 2027 | int _result; |
8ab979d7 | 2028 | wxListItem * _arg0; |
1d99702e | 2029 | PyObject * _argo0 = 0; |
efc5f224 | 2030 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2031 | |
2032 | self = self; | |
f6bcfd97 | 2033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0)) |
8ab979d7 | 2034 | return NULL; |
1d99702e RD |
2035 | if (_argo0) { |
2036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p."); |
8ab979d7 RD |
2039 | return NULL; |
2040 | } | |
2041 | } | |
cf694132 | 2042 | { |
474c48f9 | 2043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 2044 | _result = (int )wxListItem_m_format_get(_arg0); |
cf694132 | 2045 | |
474c48f9 | 2046 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2047 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2048 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2049 | return _resultobj; |
2050 | } | |
2051 | ||
f6bcfd97 BP |
2052 | #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval) |
2053 | static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2054 | PyObject * _resultobj; |
f6bcfd97 | 2055 | int _result; |
af309447 | 2056 | wxListItem * _arg0; |
f6bcfd97 | 2057 | int _arg1; |
1d99702e | 2058 | PyObject * _argo0 = 0; |
f6bcfd97 | 2059 | char *_kwnames[] = { "self","m_width", NULL }; |
af309447 RD |
2060 | |
2061 | self = self; | |
f6bcfd97 | 2062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2063 | return NULL; |
1d99702e RD |
2064 | if (_argo0) { |
2065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p."); |
af309447 RD |
2068 | return NULL; |
2069 | } | |
2070 | } | |
cf694132 | 2071 | { |
474c48f9 | 2072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 2073 | _result = (int )wxListItem_m_width_set(_arg0,_arg1); |
cf694132 | 2074 | |
474c48f9 | 2075 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2076 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2077 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2078 | return _resultobj; |
2079 | } | |
2080 | ||
f6bcfd97 BP |
2081 | #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width) |
2082 | static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2083 | PyObject * _resultobj; |
f6bcfd97 | 2084 | int _result; |
8ab979d7 | 2085 | wxListItem * _arg0; |
1d99702e | 2086 | PyObject * _argo0 = 0; |
efc5f224 | 2087 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2088 | |
2089 | self = self; | |
f6bcfd97 | 2090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0)) |
8ab979d7 | 2091 | return NULL; |
1d99702e RD |
2092 | if (_argo0) { |
2093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p."); |
8ab979d7 RD |
2096 | return NULL; |
2097 | } | |
2098 | } | |
cf694132 | 2099 | { |
474c48f9 | 2100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 2101 | _result = (int )wxListItem_m_width_get(_arg0); |
cf694132 | 2102 | |
474c48f9 | 2103 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2104 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2105 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2106 | return _resultobj; |
2107 | } | |
2108 | ||
c368d904 RD |
2109 | static void *SwigwxListEventTowxNotifyEvent(void *ptr) { |
2110 | wxListEvent *src; | |
2111 | wxNotifyEvent *dest; | |
2112 | src = (wxListEvent *) ptr; | |
2113 | dest = (wxNotifyEvent *) src; | |
2114 | return (void *) dest; | |
2115 | } | |
2116 | ||
f6bcfd97 BP |
2117 | static void *SwigwxListEventTowxCommandEvent(void *ptr) { |
2118 | wxListEvent *src; | |
2119 | wxCommandEvent *dest; | |
2120 | src = (wxListEvent *) ptr; | |
2121 | dest = (wxCommandEvent *) src; | |
2122 | return (void *) dest; | |
2123 | } | |
2124 | ||
2125 | static void *SwigwxListEventTowxEvent(void *ptr) { | |
2126 | wxListEvent *src; | |
2127 | wxEvent *dest; | |
2128 | src = (wxListEvent *) ptr; | |
2129 | dest = (wxEvent *) src; | |
2130 | return (void *) dest; | |
2131 | } | |
2132 | ||
9df61a29 RD |
2133 | static void *SwigwxListEventTowxObject(void *ptr) { |
2134 | wxListEvent *src; | |
2135 | wxObject *dest; | |
2136 | src = (wxListEvent *) ptr; | |
2137 | dest = (wxObject *) src; | |
2138 | return (void *) dest; | |
2139 | } | |
2140 | ||
059a841c RD |
2141 | #define new_wxListEvent(_swigarg0,_swigarg1) (new wxListEvent(_swigarg0,_swigarg1)) |
2142 | static PyObject *_wrap_new_wxListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2143 | PyObject * _resultobj; | |
2144 | wxListEvent * _result; | |
2145 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
2146 | int _arg1 = (int ) 0; | |
2147 | char *_kwnames[] = { "commandType","id", NULL }; | |
2148 | char _ptemp[128]; | |
2149 | ||
2150 | self = self; | |
2151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxListEvent",_kwnames,&_arg0,&_arg1)) | |
2152 | return NULL; | |
2153 | { | |
474c48f9 | 2154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
2155 | _result = (wxListEvent *)new_wxListEvent(_arg0,_arg1); |
2156 | ||
474c48f9 | 2157 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
2158 | if (PyErr_Occurred()) return NULL; |
2159 | } if (_result) { | |
2160 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListEvent_p"); | |
2161 | _resultobj = Py_BuildValue("s",_ptemp); | |
2162 | } else { | |
2163 | Py_INCREF(Py_None); | |
2164 | _resultobj = Py_None; | |
2165 | } | |
2166 | return _resultobj; | |
2167 | } | |
2168 | ||
f6bcfd97 BP |
2169 | #define wxListEvent_m_code_set(_swigobj,_swigval) (_swigobj->m_code = _swigval,_swigval) |
2170 | static PyObject *_wrap_wxListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2171 | PyObject * _resultobj; |
f6bcfd97 BP |
2172 | int _result; |
2173 | wxListEvent * _arg0; | |
2174 | int _arg1; | |
1d99702e | 2175 | PyObject * _argo0 = 0; |
f6bcfd97 | 2176 | char *_kwnames[] = { "self","m_code", NULL }; |
af309447 RD |
2177 | |
2178 | self = self; | |
f6bcfd97 | 2179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_code_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2180 | return NULL; |
1d99702e RD |
2181 | if (_argo0) { |
2182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_set. Expected _wxListEvent_p."); | |
af309447 RD |
2185 | return NULL; |
2186 | } | |
2187 | } | |
af309447 | 2188 | { |
474c48f9 | 2189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 2190 | _result = (int )wxListEvent_m_code_set(_arg0,_arg1); |
cf694132 | 2191 | |
474c48f9 | 2192 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2193 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2194 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2195 | return _resultobj; |
2196 | } | |
2197 | ||
f6bcfd97 BP |
2198 | #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code) |
2199 | static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2200 | PyObject * _resultobj; |
f6bcfd97 BP |
2201 | int _result; |
2202 | wxListEvent * _arg0; | |
1d99702e | 2203 | PyObject * _argo0 = 0; |
efc5f224 | 2204 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2205 | |
2206 | self = self; | |
f6bcfd97 | 2207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0)) |
8ab979d7 | 2208 | return NULL; |
1d99702e RD |
2209 | if (_argo0) { |
2210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2213 | return NULL; |
2214 | } | |
2215 | } | |
8ab979d7 | 2216 | { |
474c48f9 | 2217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 2218 | _result = (int )wxListEvent_m_code_get(_arg0); |
cf694132 | 2219 | |
474c48f9 | 2220 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2221 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2222 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2223 | return _resultobj; |
2224 | } | |
2225 | ||
6e8a778a RD |
2226 | #define wxListEvent_m_oldItemIndex_set(_swigobj,_swigval) (_swigobj->m_oldItemIndex = _swigval,_swigval) |
2227 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2228 | PyObject * _resultobj; |
f6bcfd97 BP |
2229 | long _result; |
2230 | wxListEvent * _arg0; | |
2231 | long _arg1; | |
1d99702e | 2232 | PyObject * _argo0 = 0; |
6e8a778a | 2233 | char *_kwnames[] = { "self","m_oldItemIndex", NULL }; |
af309447 RD |
2234 | |
2235 | self = self; | |
6e8a778a | 2236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_oldItemIndex_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2237 | return NULL; |
1d99702e RD |
2238 | if (_argo0) { |
2239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_set. Expected _wxListEvent_p."); |
af309447 RD |
2242 | return NULL; |
2243 | } | |
2244 | } | |
cf694132 | 2245 | { |
474c48f9 | 2246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6e8a778a | 2247 | _result = (long )wxListEvent_m_oldItemIndex_set(_arg0,_arg1); |
cf694132 | 2248 | |
474c48f9 | 2249 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2250 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2251 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2252 | return _resultobj; |
2253 | } | |
2254 | ||
6e8a778a RD |
2255 | #define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex) |
2256 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2257 | PyObject * _resultobj; |
f6bcfd97 BP |
2258 | long _result; |
2259 | wxListEvent * _arg0; | |
1d99702e | 2260 | PyObject * _argo0 = 0; |
efc5f224 | 2261 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2262 | |
2263 | self = self; | |
6e8a778a | 2264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0)) |
8ab979d7 | 2265 | return NULL; |
1d99702e RD |
2266 | if (_argo0) { |
2267 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2268 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p."); |
8ab979d7 RD |
2270 | return NULL; |
2271 | } | |
2272 | } | |
cf694132 | 2273 | { |
474c48f9 | 2274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6e8a778a | 2275 | _result = (long )wxListEvent_m_oldItemIndex_get(_arg0); |
cf694132 | 2276 | |
474c48f9 | 2277 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2278 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2279 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2280 | return _resultobj; |
2281 | } | |
2282 | ||
6e8a778a RD |
2283 | #define wxListEvent_m_itemIndex_set(_swigobj,_swigval) (_swigobj->m_itemIndex = _swigval,_swigval) |
2284 | static PyObject *_wrap_wxListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2285 | PyObject * _resultobj; |
6e8a778a | 2286 | long _result; |
f6bcfd97 | 2287 | wxListEvent * _arg0; |
6e8a778a | 2288 | long _arg1; |
1d99702e | 2289 | PyObject * _argo0 = 0; |
6e8a778a | 2290 | char *_kwnames[] = { "self","m_itemIndex", NULL }; |
af309447 RD |
2291 | |
2292 | self = self; | |
6e8a778a | 2293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_itemIndex_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2294 | return NULL; |
1d99702e RD |
2295 | if (_argo0) { |
2296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_set. Expected _wxListEvent_p."); |
af309447 RD |
2299 | return NULL; |
2300 | } | |
2301 | } | |
cf694132 | 2302 | { |
474c48f9 | 2303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6e8a778a | 2304 | _result = (long )wxListEvent_m_itemIndex_set(_arg0,_arg1); |
cf694132 | 2305 | |
474c48f9 | 2306 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2307 | if (PyErr_Occurred()) return NULL; |
6e8a778a | 2308 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2309 | return _resultobj; |
2310 | } | |
2311 | ||
6e8a778a RD |
2312 | #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex) |
2313 | static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2314 | PyObject * _resultobj; |
6e8a778a | 2315 | long _result; |
f6bcfd97 | 2316 | wxListEvent * _arg0; |
1d99702e | 2317 | PyObject * _argo0 = 0; |
efc5f224 | 2318 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2319 | |
2320 | self = self; | |
6e8a778a | 2321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0)) |
8ab979d7 | 2322 | return NULL; |
1d99702e RD |
2323 | if (_argo0) { |
2324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p."); |
8ab979d7 RD |
2327 | return NULL; |
2328 | } | |
2329 | } | |
cf694132 | 2330 | { |
474c48f9 | 2331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6e8a778a | 2332 | _result = (long )wxListEvent_m_itemIndex_get(_arg0); |
cf694132 | 2333 | |
474c48f9 | 2334 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2335 | if (PyErr_Occurred()) return NULL; |
6e8a778a | 2336 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2337 | return _resultobj; |
2338 | } | |
2339 | ||
6e8a778a RD |
2340 | #define wxListEvent_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) |
2341 | static PyObject *_wrap_wxListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2342 | PyObject * _resultobj; |
6e8a778a | 2343 | int _result; |
f6bcfd97 | 2344 | wxListEvent * _arg0; |
6e8a778a | 2345 | int _arg1; |
1d99702e | 2346 | PyObject * _argo0 = 0; |
6e8a778a | 2347 | char *_kwnames[] = { "self","m_col", NULL }; |
af309447 RD |
2348 | |
2349 | self = self; | |
6e8a778a | 2350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_col_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2351 | return NULL; |
1d99702e RD |
2352 | if (_argo0) { |
2353 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2354 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2355 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_set. Expected _wxListEvent_p."); |
af309447 RD |
2356 | return NULL; |
2357 | } | |
2358 | } | |
cf694132 | 2359 | { |
474c48f9 | 2360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6e8a778a | 2361 | _result = (int )wxListEvent_m_col_set(_arg0,_arg1); |
cf694132 | 2362 | |
474c48f9 | 2363 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2364 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2365 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2366 | return _resultobj; |
2367 | } | |
2368 | ||
6e8a778a RD |
2369 | #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col) |
2370 | static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2371 | PyObject * _resultobj; |
6e8a778a | 2372 | int _result; |
f6bcfd97 | 2373 | wxListEvent * _arg0; |
1d99702e | 2374 | PyObject * _argo0 = 0; |
efc5f224 | 2375 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2376 | |
2377 | self = self; | |
6e8a778a | 2378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0)) |
8ab979d7 | 2379 | return NULL; |
1d99702e RD |
2380 | if (_argo0) { |
2381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p."); |
8ab979d7 RD |
2384 | return NULL; |
2385 | } | |
2386 | } | |
cf694132 | 2387 | { |
474c48f9 | 2388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6e8a778a | 2389 | _result = (int )wxListEvent_m_col_get(_arg0); |
cf694132 | 2390 | |
474c48f9 | 2391 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2392 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2393 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2394 | return _resultobj; |
2395 | } | |
2396 | ||
f6bcfd97 BP |
2397 | #define wxListEvent_m_pointDrag_set(_swigobj,_swigval) (_swigobj->m_pointDrag = *(_swigval),_swigval) |
2398 | static PyObject *_wrap_wxListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2399 | PyObject * _resultobj; |
f6bcfd97 BP |
2400 | wxPoint * _result; |
2401 | wxListEvent * _arg0; | |
2402 | wxPoint * _arg1; | |
2403 | PyObject * _argo0 = 0; | |
2404 | wxPoint temp; | |
2405 | PyObject * _obj1 = 0; | |
2406 | char *_kwnames[] = { "self","m_pointDrag", NULL }; | |
8ab979d7 RD |
2407 | char _ptemp[128]; |
2408 | ||
2409 | self = self; | |
f6bcfd97 BP |
2410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_pointDrag_set",_kwnames,&_argo0,&_obj1)) |
2411 | return NULL; | |
2412 | if (_argo0) { | |
2413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_set. Expected _wxListEvent_p."); | |
2416 | return NULL; | |
2417 | } | |
2418 | } | |
2419 | { | |
2420 | _arg1 = &temp; | |
2421 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 2422 | return NULL; |
f6bcfd97 | 2423 | } |
cf694132 | 2424 | { |
474c48f9 | 2425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 2426 | _result = (wxPoint *)wxListEvent_m_pointDrag_set(_arg0,_arg1); |
cf694132 | 2427 | |
474c48f9 | 2428 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2429 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2430 | } if (_result) { |
f6bcfd97 | 2431 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); |
1d99702e RD |
2432 | _resultobj = Py_BuildValue("s",_ptemp); |
2433 | } else { | |
2434 | Py_INCREF(Py_None); | |
2435 | _resultobj = Py_None; | |
2436 | } | |
8ab979d7 RD |
2437 | return _resultobj; |
2438 | } | |
2439 | ||
f6bcfd97 BP |
2440 | #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag) |
2441 | static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2442 | PyObject * _resultobj; |
f6bcfd97 BP |
2443 | wxPoint * _result; |
2444 | wxListEvent * _arg0; | |
1d99702e | 2445 | PyObject * _argo0 = 0; |
efc5f224 | 2446 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2447 | char _ptemp[128]; |
8ab979d7 RD |
2448 | |
2449 | self = self; | |
f6bcfd97 | 2450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0)) |
8ab979d7 | 2451 | return NULL; |
1d99702e RD |
2452 | if (_argo0) { |
2453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2456 | return NULL; |
2457 | } | |
2458 | } | |
cf694132 | 2459 | { |
474c48f9 | 2460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 2461 | _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0); |
cf694132 | 2462 | |
474c48f9 | 2463 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2464 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2465 | } if (_result) { |
2466 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
2467 | _resultobj = Py_BuildValue("s",_ptemp); | |
2468 | } else { | |
2469 | Py_INCREF(Py_None); | |
2470 | _resultobj = Py_None; | |
2471 | } | |
8ab979d7 RD |
2472 | return _resultobj; |
2473 | } | |
2474 | ||
f6bcfd97 BP |
2475 | #define wxListEvent_m_item_set(_swigobj,_swigval) (_swigobj->m_item = *(_swigval),_swigval) |
2476 | static PyObject *_wrap_wxListEvent_m_item_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2477 | PyObject * _resultobj; | |
2478 | wxListItem * _result; | |
2479 | wxListEvent * _arg0; | |
2480 | wxListItem * _arg1; | |
2481 | PyObject * _argo0 = 0; | |
2482 | PyObject * _argo1 = 0; | |
2483 | char *_kwnames[] = { "self","m_item", NULL }; | |
8ab979d7 | 2484 | |
f6bcfd97 BP |
2485 | self = self; |
2486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_item_set",_kwnames,&_argo0,&_argo1)) | |
2487 | return NULL; | |
2488 | if (_argo0) { | |
2489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_set. Expected _wxListEvent_p."); | |
2492 | return NULL; | |
2493 | } | |
2494 | } | |
2495 | if (_argo1) { | |
2496 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2497 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
2498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListEvent_m_item_set. Expected _wxListItem_p."); | |
2499 | return NULL; | |
2500 | } | |
2501 | } | |
2502 | { | |
474c48f9 | 2503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2504 | _result = (wxListItem *)wxListEvent_m_item_set(_arg0,_arg1); |
2505 | ||
474c48f9 | 2506 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2507 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2508 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 | 2509 | return _resultobj; |
8ab979d7 RD |
2510 | } |
2511 | ||
f6bcfd97 BP |
2512 | #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item) |
2513 | static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2514 | PyObject * _resultobj; |
f6bcfd97 | 2515 | wxListItem * _result; |
af309447 | 2516 | wxListEvent * _arg0; |
1d99702e | 2517 | PyObject * _argo0 = 0; |
f6bcfd97 | 2518 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2519 | |
2520 | self = self; | |
f6bcfd97 | 2521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0)) |
af309447 | 2522 | return NULL; |
1d99702e RD |
2523 | if (_argo0) { |
2524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p."); |
af309447 RD |
2527 | return NULL; |
2528 | } | |
2529 | } | |
cf694132 | 2530 | { |
474c48f9 | 2531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 2532 | _result = (wxListItem *)wxListEvent_m_item_get(_arg0); |
cf694132 | 2533 | |
474c48f9 | 2534 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2535 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2536 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
2537 | return _resultobj; |
2538 | } | |
2539 | ||
f6bcfd97 BP |
2540 | #define wxListEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
2541 | static PyObject *_wrap_wxListEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2542 | PyObject * _resultobj; |
2543 | int _result; | |
2544 | wxListEvent * _arg0; | |
1d99702e | 2545 | PyObject * _argo0 = 0; |
efc5f224 | 2546 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2547 | |
2548 | self = self; | |
f6bcfd97 | 2549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 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_GetCode. Expected _wxListEvent_p."); |
8ab979d7 RD |
2555 | return NULL; |
2556 | } | |
2557 | } | |
cf694132 | 2558 | { |
474c48f9 | 2559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 2560 | _result = (int )wxListEvent_GetCode(_arg0); |
cf694132 | 2561 | |
474c48f9 | 2562 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2563 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2564 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2565 | return _resultobj; |
2566 | } | |
2567 | ||
f6bcfd97 BP |
2568 | #define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex()) |
2569 | static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2570 | PyObject * _resultobj; |
2571 | long _result; | |
2572 | wxListEvent * _arg0; | |
1d99702e | 2573 | PyObject * _argo0 = 0; |
f6bcfd97 | 2574 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2575 | |
2576 | self = self; | |
f6bcfd97 | 2577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0)) |
af309447 | 2578 | return NULL; |
1d99702e RD |
2579 | if (_argo0) { |
2580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p."); |
af309447 RD |
2583 | return NULL; |
2584 | } | |
2585 | } | |
cf694132 | 2586 | { |
474c48f9 | 2587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 2588 | _result = (long )wxListEvent_GetIndex(_arg0); |
cf694132 | 2589 | |
474c48f9 | 2590 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2591 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2592 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2593 | return _resultobj; |
2594 | } | |
2595 | ||
f6bcfd97 BP |
2596 | #define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn()) |
2597 | static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2598 | PyObject * _resultobj; |
f6bcfd97 | 2599 | int _result; |
8ab979d7 | 2600 | wxListEvent * _arg0; |
1d99702e | 2601 | PyObject * _argo0 = 0; |
efc5f224 | 2602 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2603 | |
2604 | self = self; | |
f6bcfd97 | 2605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0)) |
8ab979d7 | 2606 | return NULL; |
1d99702e RD |
2607 | if (_argo0) { |
2608 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2609 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p."); |
8ab979d7 RD |
2611 | return NULL; |
2612 | } | |
2613 | } | |
cf694132 | 2614 | { |
474c48f9 | 2615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 2616 | _result = (int )wxListEvent_GetColumn(_arg0); |
cf694132 | 2617 | |
474c48f9 | 2618 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2619 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2620 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2621 | return _resultobj; |
2622 | } | |
2623 | ||
f6bcfd97 BP |
2624 | #define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
2625 | static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2626 | PyObject * _resultobj; |
f6bcfd97 | 2627 | wxPoint * _result; |
8ab979d7 | 2628 | wxListEvent * _arg0; |
1d99702e | 2629 | PyObject * _argo0 = 0; |
efc5f224 | 2630 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2631 | char _ptemp[128]; |
8ab979d7 RD |
2632 | |
2633 | self = self; | |
f6bcfd97 | 2634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 2635 | return NULL; |
1d99702e RD |
2636 | if (_argo0) { |
2637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetPoint. Expected _wxListEvent_p."); |
8ab979d7 RD |
2640 | return NULL; |
2641 | } | |
2642 | } | |
cf694132 | 2643 | { |
474c48f9 | 2644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 2645 | _result = new wxPoint (wxListEvent_GetPoint(_arg0)); |
cf694132 | 2646 | |
474c48f9 | 2647 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2648 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2649 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2650 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
2651 | return _resultobj; |
2652 | } | |
2653 | ||
f6bcfd97 BP |
2654 | #define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
2655 | static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2656 | PyObject * _resultobj; |
f6bcfd97 | 2657 | wxString * _result; |
af309447 | 2658 | wxListEvent * _arg0; |
1d99702e | 2659 | PyObject * _argo0 = 0; |
f6bcfd97 | 2660 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2661 | |
2662 | self = self; | |
f6bcfd97 | 2663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetLabel",_kwnames,&_argo0)) |
af309447 | 2664 | return NULL; |
1d99702e RD |
2665 | if (_argo0) { |
2666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetLabel. Expected _wxListEvent_p."); |
af309447 RD |
2669 | return NULL; |
2670 | } | |
2671 | } | |
cf694132 | 2672 | { |
474c48f9 | 2673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2674 | const wxString & _result_ref = wxListEvent_GetLabel(_arg0); |
2675 | _result = (wxString *) &_result_ref; | |
cf694132 | 2676 | |
474c48f9 | 2677 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2678 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2679 | }{ |
2680 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2681 | } | |
af309447 RD |
2682 | return _resultobj; |
2683 | } | |
2684 | ||
f6bcfd97 BP |
2685 | #define wxListEvent_GetText(_swigobj) (_swigobj->GetText()) |
2686 | static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2687 | PyObject * _resultobj; |
f6bcfd97 | 2688 | wxString * _result; |
8ab979d7 | 2689 | wxListEvent * _arg0; |
1d99702e | 2690 | PyObject * _argo0 = 0; |
efc5f224 | 2691 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2692 | |
2693 | self = self; | |
f6bcfd97 | 2694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0)) |
8ab979d7 | 2695 | return NULL; |
1d99702e RD |
2696 | if (_argo0) { |
2697 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2698 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p."); |
8ab979d7 RD |
2700 | return NULL; |
2701 | } | |
2702 | } | |
cf694132 | 2703 | { |
474c48f9 | 2704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2705 | const wxString & _result_ref = wxListEvent_GetText(_arg0); |
2706 | _result = (wxString *) &_result_ref; | |
cf694132 | 2707 | |
474c48f9 | 2708 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2709 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2710 | }{ |
2711 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2712 | } | |
8ab979d7 RD |
2713 | return _resultobj; |
2714 | } | |
2715 | ||
f6bcfd97 BP |
2716 | #define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage()) |
2717 | static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2718 | PyObject * _resultobj; |
f6bcfd97 | 2719 | int _result; |
af309447 | 2720 | wxListEvent * _arg0; |
1d99702e | 2721 | PyObject * _argo0 = 0; |
f6bcfd97 | 2722 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2723 | |
2724 | self = self; | |
f6bcfd97 | 2725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0)) |
af309447 | 2726 | return NULL; |
1d99702e RD |
2727 | if (_argo0) { |
2728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p."); |
af309447 RD |
2731 | return NULL; |
2732 | } | |
2733 | } | |
cf694132 | 2734 | { |
474c48f9 | 2735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 2736 | _result = (int )wxListEvent_GetImage(_arg0); |
cf694132 | 2737 | |
474c48f9 | 2738 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2739 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2740 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2741 | return _resultobj; |
2742 | } | |
2743 | ||
f6bcfd97 BP |
2744 | #define wxListEvent_GetData(_swigobj) (_swigobj->GetData()) |
2745 | static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2746 | PyObject * _resultobj; |
f6bcfd97 | 2747 | long _result; |
8ab979d7 | 2748 | wxListEvent * _arg0; |
1d99702e | 2749 | PyObject * _argo0 = 0; |
efc5f224 | 2750 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2751 | |
2752 | self = self; | |
f6bcfd97 | 2753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0)) |
8ab979d7 | 2754 | return NULL; |
1d99702e RD |
2755 | if (_argo0) { |
2756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p."); |
8ab979d7 RD |
2759 | return NULL; |
2760 | } | |
2761 | } | |
cf694132 | 2762 | { |
474c48f9 | 2763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 2764 | _result = (long )wxListEvent_GetData(_arg0); |
cf694132 | 2765 | |
474c48f9 | 2766 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2767 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2768 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2769 | return _resultobj; |
2770 | } | |
2771 | ||
f6bcfd97 BP |
2772 | #define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask()) |
2773 | static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2774 | PyObject * _resultobj; |
f6bcfd97 | 2775 | long _result; |
af309447 | 2776 | wxListEvent * _arg0; |
1d99702e | 2777 | PyObject * _argo0 = 0; |
f6bcfd97 | 2778 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2779 | |
2780 | self = self; | |
f6bcfd97 | 2781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetMask",_kwnames,&_argo0)) |
af309447 | 2782 | return NULL; |
1d99702e RD |
2783 | if (_argo0) { |
2784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetMask. Expected _wxListEvent_p."); |
af309447 RD |
2787 | return NULL; |
2788 | } | |
2789 | } | |
cf694132 | 2790 | { |
474c48f9 | 2791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 2792 | _result = (long )wxListEvent_GetMask(_arg0); |
cf694132 | 2793 | |
474c48f9 | 2794 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2795 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2796 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2797 | return _resultobj; |
2798 | } | |
2799 | ||
f6bcfd97 BP |
2800 | #define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
2801 | static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2802 | PyObject * _resultobj; |
2803 | wxListItem * _result; | |
2804 | wxListEvent * _arg0; | |
1d99702e | 2805 | PyObject * _argo0 = 0; |
efc5f224 | 2806 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2807 | |
2808 | self = self; | |
f6bcfd97 | 2809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 2810 | return NULL; |
1d99702e RD |
2811 | if (_argo0) { |
2812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p."); |
8ab979d7 RD |
2815 | return NULL; |
2816 | } | |
2817 | } | |
cf694132 | 2818 | { |
474c48f9 | 2819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2820 | const wxListItem & _result_ref = wxListEvent_GetItem(_arg0); |
2821 | _result = (wxListItem *) &_result_ref; | |
cf694132 | 2822 | |
474c48f9 | 2823 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2824 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2825 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2826 | return _resultobj; |
2827 | } | |
2828 | ||
059a841c RD |
2829 | #define wxListEvent_GetCacheFrom(_swigobj) (_swigobj->GetCacheFrom()) |
2830 | static PyObject *_wrap_wxListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2831 | PyObject * _resultobj; | |
2832 | long _result; | |
2833 | wxListEvent * _arg0; | |
2834 | PyObject * _argo0 = 0; | |
2835 | char *_kwnames[] = { "self", NULL }; | |
2836 | ||
2837 | self = self; | |
2838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheFrom",_kwnames,&_argo0)) | |
2839 | return NULL; | |
2840 | if (_argo0) { | |
2841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheFrom. Expected _wxListEvent_p."); | |
2844 | return NULL; | |
2845 | } | |
2846 | } | |
2847 | { | |
474c48f9 | 2848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
2849 | _result = (long )wxListEvent_GetCacheFrom(_arg0); |
2850 | ||
474c48f9 | 2851 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
2852 | if (PyErr_Occurred()) return NULL; |
2853 | } _resultobj = Py_BuildValue("l",_result); | |
2854 | return _resultobj; | |
2855 | } | |
2856 | ||
2857 | #define wxListEvent_GetCacheTo(_swigobj) (_swigobj->GetCacheTo()) | |
2858 | static PyObject *_wrap_wxListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2859 | PyObject * _resultobj; | |
2860 | long _result; | |
2861 | wxListEvent * _arg0; | |
2862 | PyObject * _argo0 = 0; | |
2863 | char *_kwnames[] = { "self", NULL }; | |
2864 | ||
2865 | self = self; | |
2866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheTo",_kwnames,&_argo0)) | |
2867 | return NULL; | |
2868 | if (_argo0) { | |
2869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheTo. Expected _wxListEvent_p."); | |
2872 | return NULL; | |
2873 | } | |
2874 | } | |
2875 | { | |
474c48f9 | 2876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
2877 | _result = (long )wxListEvent_GetCacheTo(_arg0); |
2878 | ||
474c48f9 | 2879 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
2880 | if (PyErr_Occurred()) return NULL; |
2881 | } _resultobj = Py_BuildValue("l",_result); | |
2882 | return _resultobj; | |
2883 | } | |
2884 | ||
cd096152 RD |
2885 | static void *SwigwxPyListCtrlTowxControl(void *ptr) { |
2886 | wxPyListCtrl *src; | |
8ab979d7 | 2887 | wxControl *dest; |
cd096152 | 2888 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2889 | dest = (wxControl *) src; |
2890 | return (void *) dest; | |
2891 | } | |
2892 | ||
cd096152 RD |
2893 | static void *SwigwxPyListCtrlTowxWindow(void *ptr) { |
2894 | wxPyListCtrl *src; | |
8ab979d7 | 2895 | wxWindow *dest; |
cd096152 | 2896 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2897 | dest = (wxWindow *) src; |
2898 | return (void *) dest; | |
2899 | } | |
2900 | ||
cd096152 RD |
2901 | static void *SwigwxPyListCtrlTowxEvtHandler(void *ptr) { |
2902 | wxPyListCtrl *src; | |
8ab979d7 | 2903 | wxEvtHandler *dest; |
cd096152 | 2904 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2905 | dest = (wxEvtHandler *) src; |
2906 | return (void *) dest; | |
2907 | } | |
2908 | ||
cd096152 RD |
2909 | static void *SwigwxPyListCtrlTowxObject(void *ptr) { |
2910 | wxPyListCtrl *src; | |
9df61a29 | 2911 | wxObject *dest; |
cd096152 | 2912 | src = (wxPyListCtrl *) ptr; |
9df61a29 RD |
2913 | dest = (wxObject *) src; |
2914 | return (void *) dest; | |
2915 | } | |
2916 | ||
cd096152 | 2917 | #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 2918 | static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 2919 | PyObject * _resultobj; |
cd096152 | 2920 | wxPyListCtrl * _result; |
8ab979d7 | 2921 | wxWindow * _arg0; |
cd096152 | 2922 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
2923 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
2924 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2c8a649d | 2925 | long _arg4 = (long ) (wxLC_ICON); |
b68dc582 | 2926 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
2927 | char * _arg6 = (char *) "listCtrl"; |
2928 | PyObject * _argo0 = 0; | |
2f90df85 RD |
2929 | wxPoint temp; |
2930 | PyObject * _obj2 = 0; | |
2931 | wxSize temp0; | |
2932 | PyObject * _obj3 = 0; | |
1d99702e | 2933 | PyObject * _argo5 = 0; |
efc5f224 | 2934 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
2935 | char _ptemp[128]; |
2936 | ||
2937 | self = self; | |
cd096152 | 2938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 2939 | return NULL; |
1d99702e RD |
2940 | if (_argo0) { |
2941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p."); |
2944 | return NULL; | |
2945 | } | |
2946 | } | |
2f90df85 RD |
2947 | if (_obj2) |
2948 | { | |
2949 | _arg2 = &temp; | |
2950 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 2951 | return NULL; |
2f90df85 RD |
2952 | } |
2953 | if (_obj3) | |
2954 | { | |
2955 | _arg3 = &temp0; | |
2956 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 2957 | return NULL; |
2f90df85 | 2958 | } |
1d99702e RD |
2959 | if (_argo5) { |
2960 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
2961 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
2962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p."); |
2963 | return NULL; | |
2964 | } | |
2965 | } | |
cf694132 | 2966 | { |
474c48f9 | 2967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 2968 | _result = (wxPyListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
cf694132 | 2969 | |
474c48f9 | 2970 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2971 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2972 | } if (_result) { |
cd096152 | 2973 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); |
1d99702e RD |
2974 | _resultobj = Py_BuildValue("s",_ptemp); |
2975 | } else { | |
2976 | Py_INCREF(Py_None); | |
2977 | _resultobj = Py_None; | |
2978 | } | |
8ab979d7 RD |
2979 | return _resultobj; |
2980 | } | |
2981 | ||
aa2a5b86 RD |
2982 | #define new_wxPreListCtrl() (new wxPyListCtrl()) |
2983 | static PyObject *_wrap_new_wxPreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2984 | PyObject * _resultobj; | |
2985 | wxPyListCtrl * _result; | |
2986 | char *_kwnames[] = { NULL }; | |
2987 | char _ptemp[128]; | |
2988 | ||
2989 | self = self; | |
2990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListCtrl",_kwnames)) | |
2991 | return NULL; | |
2992 | { | |
474c48f9 | 2993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
aa2a5b86 RD |
2994 | _result = (wxPyListCtrl *)new_wxPreListCtrl(); |
2995 | ||
474c48f9 | 2996 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
2997 | if (PyErr_Occurred()) return NULL; |
2998 | } if (_result) { | |
2999 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); | |
3000 | _resultobj = Py_BuildValue("s",_ptemp); | |
3001 | } else { | |
3002 | Py_INCREF(Py_None); | |
3003 | _resultobj = Py_None; | |
3004 | } | |
3005 | return _resultobj; | |
3006 | } | |
3007 | ||
3008 | #define wxListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3009 | static PyObject *_wrap_wxListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3010 | PyObject * _resultobj; | |
3011 | bool _result; | |
3012 | wxPyListCtrl * _arg0; | |
3013 | wxWindow * _arg1; | |
3014 | wxWindowID _arg2 = (wxWindowID ) -1; | |
3015 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
3016 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
3017 | long _arg5 = (long ) (wxLC_ICON); | |
3018 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
3019 | char * _arg7 = (char *) "listCtrl"; | |
3020 | PyObject * _argo0 = 0; | |
3021 | PyObject * _argo1 = 0; | |
3022 | wxPoint temp; | |
3023 | PyObject * _obj3 = 0; | |
3024 | wxSize temp0; | |
3025 | PyObject * _obj4 = 0; | |
3026 | PyObject * _argo6 = 0; | |
3027 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
3028 | ||
3029 | self = self; | |
3030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
3031 | return NULL; | |
3032 | if (_argo0) { | |
3033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Create. Expected _wxPyListCtrl_p."); | |
3036 | return NULL; | |
3037 | } | |
3038 | } | |
3039 | if (_argo1) { | |
3040 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3041 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_Create. Expected _wxWindow_p."); | |
3043 | return NULL; | |
3044 | } | |
3045 | } | |
3046 | if (_obj3) | |
3047 | { | |
3048 | _arg3 = &temp; | |
3049 | if (! wxPoint_helper(_obj3, &_arg3)) | |
3050 | return NULL; | |
3051 | } | |
3052 | if (_obj4) | |
3053 | { | |
3054 | _arg4 = &temp0; | |
3055 | if (! wxSize_helper(_obj4, &_arg4)) | |
3056 | return NULL; | |
3057 | } | |
3058 | if (_argo6) { | |
3059 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
3060 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
3061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListCtrl_Create. Expected _wxValidator_p."); | |
3062 | return NULL; | |
3063 | } | |
3064 | } | |
3065 | { | |
474c48f9 | 3066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
aa2a5b86 RD |
3067 | _result = (bool )wxListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
3068 | ||
474c48f9 | 3069 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
3070 | if (PyErr_Occurred()) return NULL; |
3071 | } _resultobj = Py_BuildValue("i",_result); | |
3072 | return _resultobj; | |
3073 | } | |
3074 | ||
0220cbc1 RD |
3075 | #define wxListCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
3076 | static PyObject *_wrap_wxListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3077 | PyObject * _resultobj; |
cd096152 RD |
3078 | wxPyListCtrl * _arg0; |
3079 | PyObject * _arg1; | |
3080 | PyObject * _arg2; | |
1d99702e | 3081 | PyObject * _argo0 = 0; |
cd096152 RD |
3082 | PyObject * _obj1 = 0; |
3083 | PyObject * _obj2 = 0; | |
3084 | char *_kwnames[] = { "self","self","_class", NULL }; | |
8ab979d7 RD |
3085 | |
3086 | self = self; | |
0220cbc1 | 3087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxListCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3088 | return NULL; |
1d99702e RD |
3089 | if (_argo0) { |
3090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 | 3091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
0220cbc1 | 3092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl__setCallbackInfo. Expected _wxPyListCtrl_p."); |
8ab979d7 RD |
3093 | return NULL; |
3094 | } | |
3095 | } | |
cd096152 RD |
3096 | { |
3097 | _arg1 = _obj1; | |
3098 | } | |
3099 | { | |
3100 | _arg2 = _obj2; | |
3101 | } | |
cf694132 | 3102 | { |
474c48f9 | 3103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0220cbc1 | 3104 | wxListCtrl__setCallbackInfo(_arg0,_arg1,_arg2); |
cf694132 | 3105 | |
474c48f9 | 3106 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3107 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3108 | } Py_INCREF(Py_None); |
3109 | _resultobj = Py_None; | |
8ab979d7 RD |
3110 | return _resultobj; |
3111 | } | |
3112 | ||
cd096152 RD |
3113 | #define wxListCtrl_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) |
3114 | static PyObject *_wrap_wxListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c4165ad | 3115 | PyObject * _resultobj; |
cd096152 RD |
3116 | bool _result; |
3117 | wxPyListCtrl * _arg0; | |
3118 | wxColour * _arg1; | |
9c4165ad | 3119 | PyObject * _argo0 = 0; |
cd096152 RD |
3120 | wxColour temp; |
3121 | PyObject * _obj1 = 0; | |
3122 | char *_kwnames[] = { "self","col", NULL }; | |
9c4165ad RD |
3123 | |
3124 | self = self; | |
cd096152 | 3125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
9c4165ad RD |
3126 | return NULL; |
3127 | if (_argo0) { | |
3128 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetForegroundColour. Expected _wxPyListCtrl_p."); | |
9c4165ad RD |
3131 | return NULL; |
3132 | } | |
3133 | } | |
cd096152 RD |
3134 | { |
3135 | _arg1 = &temp; | |
3136 | if (! wxColour_helper(_obj1, &_arg1)) | |
3137 | return NULL; | |
3138 | } | |
3139 | { | |
474c48f9 | 3140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 RD |
3141 | _result = (bool )wxListCtrl_SetForegroundColour(_arg0,*_arg1); |
3142 | ||
474c48f9 | 3143 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
3144 | if (PyErr_Occurred()) return NULL; |
3145 | } _resultobj = Py_BuildValue("i",_result); | |
3146 | return _resultobj; | |
3147 | } | |
3148 | ||
3149 | #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
3150 | static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3151 | PyObject * _resultobj; | |
3152 | bool _result; | |
3153 | wxPyListCtrl * _arg0; | |
3154 | wxColour * _arg1; | |
3155 | PyObject * _argo0 = 0; | |
3156 | wxColour temp; | |
3157 | PyObject * _obj1 = 0; | |
3158 | char *_kwnames[] = { "self","col", NULL }; | |
3159 | ||
3160 | self = self; | |
3161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
3162 | return NULL; | |
3163 | if (_argo0) { | |
3164 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3165 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxPyListCtrl_p."); | |
9c4165ad RD |
3167 | return NULL; |
3168 | } | |
3169 | } | |
cd096152 RD |
3170 | { |
3171 | _arg1 = &temp; | |
3172 | if (! wxColour_helper(_obj1, &_arg1)) | |
3173 | return NULL; | |
3174 | } | |
9c4165ad | 3175 | { |
474c48f9 | 3176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 3177 | _result = (bool )wxListCtrl_SetBackgroundColour(_arg0,*_arg1); |
9c4165ad | 3178 | |
474c48f9 | 3179 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3180 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3181 | } _resultobj = Py_BuildValue("i",_result); |
9c4165ad RD |
3182 | return _resultobj; |
3183 | } | |
3184 | ||
cd096152 RD |
3185 | #define wxListCtrl_GetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetColumn(_swigarg0,_swigarg1)) |
3186 | static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3187 | PyObject * _resultobj; |
3188 | bool _result; | |
cd096152 RD |
3189 | wxPyListCtrl * _arg0; |
3190 | int _arg1; | |
3191 | wxListItem * _arg2; | |
1d99702e | 3192 | PyObject * _argo0 = 0; |
cd096152 RD |
3193 | PyObject * _argo2 = 0; |
3194 | char *_kwnames[] = { "self","col","item", NULL }; | |
8ab979d7 RD |
3195 | |
3196 | self = self; | |
cd096152 | 3197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3198 | return NULL; |
1d99702e RD |
3199 | if (_argo0) { |
3200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxPyListCtrl_p."); | |
3203 | return NULL; | |
3204 | } | |
3205 | } | |
3206 | if (_argo2) { | |
3207 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3208 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
3209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_GetColumn. Expected _wxListItem_p."); | |
8ab979d7 RD |
3210 | return NULL; |
3211 | } | |
3212 | } | |
cf694132 | 3213 | { |
474c48f9 | 3214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 3215 | _result = (bool )wxListCtrl_GetColumn(_arg0,_arg1,*_arg2); |
cf694132 | 3216 | |
474c48f9 | 3217 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3218 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3219 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3220 | return _resultobj; |
3221 | } | |
3222 | ||
cd096152 RD |
3223 | #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1)) |
3224 | static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3225 | PyObject * _resultobj; |
3226 | bool _result; | |
cd096152 RD |
3227 | wxPyListCtrl * _arg0; |
3228 | int _arg1; | |
3229 | wxListItem * _arg2; | |
1d99702e | 3230 | PyObject * _argo0 = 0; |
cd096152 RD |
3231 | PyObject * _argo2 = 0; |
3232 | char *_kwnames[] = { "self","col","item", NULL }; | |
8ab979d7 RD |
3233 | |
3234 | self = self; | |
cd096152 | 3235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3236 | return NULL; |
1d99702e RD |
3237 | if (_argo0) { |
3238 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3239 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxPyListCtrl_p."); | |
3241 | return NULL; | |
3242 | } | |
3243 | } | |
3244 | if (_argo2) { | |
3245 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3246 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
3247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p."); | |
8ab979d7 RD |
3248 | return NULL; |
3249 | } | |
3250 | } | |
cf694132 | 3251 | { |
474c48f9 | 3252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 3253 | _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2); |
cf694132 | 3254 | |
474c48f9 | 3255 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3256 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3257 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3258 | return _resultobj; |
3259 | } | |
3260 | ||
cd096152 RD |
3261 | #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0)) |
3262 | static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3263 | PyObject * _resultobj; |
cd096152 RD |
3264 | int _result; |
3265 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3266 | int _arg1; |
1d99702e | 3267 | PyObject * _argo0 = 0; |
efc5f224 | 3268 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3269 | |
3270 | self = self; | |
cd096152 | 3271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3272 | return NULL; |
1d99702e RD |
3273 | if (_argo0) { |
3274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3277 | return NULL; |
3278 | } | |
3279 | } | |
cf694132 | 3280 | { |
474c48f9 | 3281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 3282 | _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1); |
cf694132 | 3283 | |
474c48f9 | 3284 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3285 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3286 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3287 | return _resultobj; |
3288 | } | |
3289 | ||
cd096152 RD |
3290 | #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1)) |
3291 | static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3292 | PyObject * _resultobj; |
3293 | bool _result; | |
cd096152 RD |
3294 | wxPyListCtrl * _arg0; |
3295 | int _arg1; | |
3296 | int _arg2; | |
1d99702e | 3297 | PyObject * _argo0 = 0; |
cd096152 | 3298 | char *_kwnames[] = { "self","col","width", NULL }; |
8ab979d7 RD |
3299 | |
3300 | self = self; | |
cd096152 | 3301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3302 | return NULL; |
1d99702e RD |
3303 | if (_argo0) { |
3304 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3307 | return NULL; |
3308 | } | |
3309 | } | |
cf694132 | 3310 | { |
474c48f9 | 3311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 3312 | _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2); |
cf694132 | 3313 | |
474c48f9 | 3314 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3315 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3316 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3317 | return _resultobj; |
3318 | } | |
3319 | ||
cd096152 RD |
3320 | #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage()) |
3321 | static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3322 | PyObject * _resultobj; |
cd096152 RD |
3323 | int _result; |
3324 | wxPyListCtrl * _arg0; | |
1d99702e | 3325 | PyObject * _argo0 = 0; |
efc5f224 | 3326 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3327 | |
3328 | self = self; | |
cd096152 | 3329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0)) |
8ab979d7 | 3330 | return NULL; |
1d99702e RD |
3331 | if (_argo0) { |
3332 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3333 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3335 | return NULL; |
3336 | } | |
3337 | } | |
cf694132 | 3338 | { |
474c48f9 | 3339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 3340 | _result = (int )wxListCtrl_GetCountPerPage(_arg0); |
cf694132 | 3341 | |
474c48f9 | 3342 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3343 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3344 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3345 | return _resultobj; |
3346 | } | |
3347 | ||
cd096152 RD |
3348 | static wxListItem * wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col) { |
3349 | wxListItem* info = new wxListItem; | |
3350 | info->m_itemId = itemId; | |
3351 | info->m_col = col; | |
3352 | info->m_mask = 0xFFFF; | |
3353 | self->GetItem(*info); | |
3354 | return info; | |
3355 | } | |
3356 | static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3357 | PyObject * _resultobj; |
cd096152 RD |
3358 | wxListItem * _result; |
3359 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3360 | long _arg1; |
cd096152 | 3361 | int _arg2 = (int ) 0; |
1d99702e | 3362 | PyObject * _argo0 = 0; |
cd096152 | 3363 | char *_kwnames[] = { "self","itemId","col", NULL }; |
8ab979d7 RD |
3364 | |
3365 | self = self; | |
cd096152 | 3366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3367 | return NULL; |
1d99702e RD |
3368 | if (_argo0) { |
3369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3372 | return NULL; |
3373 | } | |
3374 | } | |
cf694132 | 3375 | { |
474c48f9 | 3376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 3377 | _result = (wxListItem *)wxPyListCtrl_GetItem(_arg0,_arg1,_arg2); |
cf694132 | 3378 | |
474c48f9 | 3379 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3380 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3381 | }{ _resultobj = wxPyMake_wxObject(_result); } |
be4d9c1f RD |
3382 | return _resultobj; |
3383 | } | |
3384 | ||
cd096152 RD |
3385 | #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) |
3386 | static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3387 | PyObject * _resultobj; |
3388 | bool _result; | |
cd096152 RD |
3389 | wxPyListCtrl * _arg0; |
3390 | wxListItem * _arg1; | |
1d99702e | 3391 | PyObject * _argo0 = 0; |
cd096152 RD |
3392 | PyObject * _argo1 = 0; |
3393 | char *_kwnames[] = { "self","info", NULL }; | |
8ab979d7 RD |
3394 | |
3395 | self = self; | |
cd096152 | 3396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3397 | return NULL; |
1d99702e RD |
3398 | if (_argo0) { |
3399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxPyListCtrl_p."); | |
3402 | return NULL; | |
3403 | } | |
3404 | } | |
3405 | if (_argo1) { | |
3406 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3407 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
3408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p."); | |
8ab979d7 RD |
3409 | return NULL; |
3410 | } | |
3411 | } | |
cf694132 | 3412 | { |
474c48f9 | 3413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 3414 | _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1); |
cf694132 | 3415 | |
474c48f9 | 3416 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3417 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3418 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3419 | return _resultobj; |
3420 | } | |
3421 | ||
cd096152 RD |
3422 | #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3423 | static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3424 | PyObject * _resultobj; |
3425 | long _result; | |
cd096152 | 3426 | wxPyListCtrl * _arg0; |
8ab979d7 | 3427 | long _arg1; |
cd096152 RD |
3428 | int _arg2; |
3429 | wxString * _arg3; | |
3430 | int _arg4 = (int ) -1; | |
1d99702e | 3431 | PyObject * _argo0 = 0; |
cd096152 RD |
3432 | PyObject * _obj3 = 0; |
3433 | char *_kwnames[] = { "self","index","col","label","imageId", NULL }; | |
8ab979d7 RD |
3434 | |
3435 | self = self; | |
cd096152 | 3436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
8ab979d7 | 3437 | return NULL; |
1d99702e RD |
3438 | if (_argo0) { |
3439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3442 | return NULL; |
3443 | } | |
3444 | } | |
3445 | { | |
2cd2fac8 RD |
3446 | #if PYTHON_API_VERSION >= 1009 |
3447 | char* tmpPtr; int tmpSize; | |
cd096152 | 3448 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { |
7a446686 | 3449 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
3450 | return NULL; |
3451 | } | |
cd096152 | 3452 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) |
2cd2fac8 | 3453 | return NULL; |
cd096152 | 3454 | _arg3 = new wxString(tmpPtr, tmpSize); |
2cd2fac8 | 3455 | #else |
cd096152 | 3456 | if (!PyString_Check(_obj3)) { |
8ab979d7 RD |
3457 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
3458 | return NULL; | |
3459 | } | |
cd096152 | 3460 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
2cd2fac8 | 3461 | #endif |
8ab979d7 | 3462 | } |
cf694132 | 3463 | { |
474c48f9 | 3464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 3465 | _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4); |
cf694132 | 3466 | |
474c48f9 | 3467 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3468 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3469 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 3470 | { |
cd096152 RD |
3471 | if (_obj3) |
3472 | delete _arg3; | |
8ab979d7 RD |
3473 | } |
3474 | return _resultobj; | |
3475 | } | |
3476 | ||
cd096152 RD |
3477 | #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1)) |
3478 | static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3479 | PyObject * _resultobj; |
cd096152 RD |
3480 | int _result; |
3481 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
3482 | long _arg1; |
3483 | long _arg2; | |
1d99702e | 3484 | PyObject * _argo0 = 0; |
cd096152 | 3485 | char *_kwnames[] = { "self","item","stateMask", NULL }; |
8ab979d7 RD |
3486 | |
3487 | self = self; | |
cd096152 | 3488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3489 | return NULL; |
1d99702e RD |
3490 | if (_argo0) { |
3491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3494 | return NULL; |
3495 | } | |
3496 | } | |
cf694132 | 3497 | { |
474c48f9 | 3498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 3499 | _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2); |
cf694132 | 3500 | |
474c48f9 | 3501 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3502 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3503 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3504 | return _resultobj; |
3505 | } | |
3506 | ||
cd096152 RD |
3507 | #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2)) |
3508 | static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3509 | PyObject * _resultobj; |
cd096152 RD |
3510 | bool _result; |
3511 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3512 | long _arg1; |
cd096152 RD |
3513 | long _arg2; |
3514 | long _arg3; | |
1d99702e | 3515 | PyObject * _argo0 = 0; |
cd096152 | 3516 | char *_kwnames[] = { "self","item","state","stateMask", NULL }; |
8ab979d7 RD |
3517 | |
3518 | self = self; | |
cd096152 | 3519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3520 | return NULL; |
1d99702e RD |
3521 | if (_argo0) { |
3522 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3523 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3525 | return NULL; |
3526 | } | |
3527 | } | |
cf694132 | 3528 | { |
474c48f9 | 3529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 3530 | _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3531 | |
474c48f9 | 3532 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3533 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3534 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3535 | return _resultobj; |
3536 | } | |
3537 | ||
cd096152 RD |
3538 | #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
3539 | static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3540 | PyObject * _resultobj; |
3541 | bool _result; | |
cd096152 RD |
3542 | wxPyListCtrl * _arg0; |
3543 | long _arg1; | |
3544 | int _arg2; | |
3545 | int _arg3; | |
1d99702e | 3546 | PyObject * _argo0 = 0; |
cd096152 | 3547 | char *_kwnames[] = { "self","item","image","selImage", NULL }; |
8ab979d7 RD |
3548 | |
3549 | self = self; | |
cd096152 | 3550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3551 | return NULL; |
1d99702e RD |
3552 | if (_argo0) { |
3553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3556 | return NULL; |
3557 | } | |
3558 | } | |
cf694132 | 3559 | { |
474c48f9 | 3560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 3561 | _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3562 | |
474c48f9 | 3563 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3564 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3565 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3566 | return _resultobj; |
3567 | } | |
3568 | ||
cd096152 RD |
3569 | #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
3570 | static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3571 | PyObject * _resultobj; |
cd096152 RD |
3572 | wxString * _result; |
3573 | wxPyListCtrl * _arg0; | |
3574 | long _arg1; | |
1d99702e | 3575 | PyObject * _argo0 = 0; |
cd096152 | 3576 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3577 | |
3578 | self = self; | |
cd096152 | 3579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3580 | return NULL; |
1d99702e RD |
3581 | if (_argo0) { |
3582 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3583 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3584 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3585 | return NULL; |
3586 | } | |
3587 | } | |
cf694132 | 3588 | { |
474c48f9 | 3589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 3590 | _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1)); |
cf694132 | 3591 | |
474c48f9 | 3592 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3593 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3594 | }{ |
3595 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3596 | } | |
3597 | { | |
3598 | delete _result; | |
3599 | } | |
8ab979d7 RD |
3600 | return _resultobj; |
3601 | } | |
3602 | ||
cd096152 RD |
3603 | #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
3604 | static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3605 | PyObject * _resultobj; |
cd096152 RD |
3606 | wxPyListCtrl * _arg0; |
3607 | long _arg1; | |
3608 | wxString * _arg2; | |
1d99702e | 3609 | PyObject * _argo0 = 0; |
cd096152 RD |
3610 | PyObject * _obj2 = 0; |
3611 | char *_kwnames[] = { "self","item","str", NULL }; | |
8ab979d7 RD |
3612 | |
3613 | self = self; | |
cd096152 | 3614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3615 | return NULL; |
1d99702e RD |
3616 | if (_argo0) { |
3617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3620 | return NULL; |
3621 | } | |
3622 | } | |
cf694132 | 3623 | { |
cd096152 RD |
3624 | #if PYTHON_API_VERSION >= 1009 |
3625 | char* tmpPtr; int tmpSize; | |
3626 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3627 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 3628 | return NULL; |
cd096152 RD |
3629 | } |
3630 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3631 | return NULL; | |
3632 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3633 | #else | |
3634 | if (!PyString_Check(_obj2)) { | |
3635 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 3636 | return NULL; |
8ab979d7 | 3637 | } |
cd096152 RD |
3638 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3639 | #endif | |
3640 | } | |
cf694132 | 3641 | { |
474c48f9 | 3642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 3643 | wxListCtrl_SetItemText(_arg0,_arg1,*_arg2); |
cf694132 | 3644 | |
474c48f9 | 3645 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3646 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3647 | } Py_INCREF(Py_None); |
3648 | _resultobj = Py_None; | |
3649 | { | |
3650 | if (_obj2) | |
3651 | delete _arg2; | |
3652 | } | |
8ab979d7 RD |
3653 | return _resultobj; |
3654 | } | |
3655 | ||
3656 | #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0)) | |
efc5f224 | 3657 | static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3658 | PyObject * _resultobj; |
3659 | long _result; | |
cd096152 | 3660 | wxPyListCtrl * _arg0; |
8ab979d7 | 3661 | long _arg1; |
1d99702e | 3662 | PyObject * _argo0 = 0; |
efc5f224 | 3663 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3664 | |
3665 | self = self; | |
efc5f224 | 3666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3667 | return NULL; |
1d99702e RD |
3668 | if (_argo0) { |
3669 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3670 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3672 | return NULL; |
3673 | } | |
3674 | } | |
cf694132 | 3675 | { |
474c48f9 | 3676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3677 | _result = (long )wxListCtrl_GetItemData(_arg0,_arg1); |
3678 | ||
474c48f9 | 3679 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3680 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3681 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
3682 | return _resultobj; |
3683 | } | |
3684 | ||
cd096152 RD |
3685 | #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1)) |
3686 | static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3687 | PyObject * _resultobj; |
cd096152 RD |
3688 | bool _result; |
3689 | wxPyListCtrl * _arg0; | |
0699c864 | 3690 | long _arg1; |
cd096152 | 3691 | long _arg2; |
1d99702e | 3692 | PyObject * _argo0 = 0; |
cd096152 | 3693 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
3694 | |
3695 | self = self; | |
cd096152 | 3696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3697 | return NULL; |
1d99702e RD |
3698 | if (_argo0) { |
3699 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3700 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3702 | return NULL; |
3703 | } | |
3704 | } | |
cf694132 | 3705 | { |
474c48f9 | 3706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 3707 | _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2); |
cf694132 | 3708 | |
474c48f9 | 3709 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3710 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3711 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3712 | return _resultobj; |
3713 | } | |
3714 | ||
cd096152 | 3715 | static wxPoint * wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item) { |
8ab979d7 RD |
3716 | wxPoint* pos = new wxPoint; |
3717 | self->GetItemPosition(item, *pos); | |
3718 | return pos; | |
3719 | } | |
efc5f224 | 3720 | static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3721 | PyObject * _resultobj; |
3722 | wxPoint * _result; | |
cd096152 | 3723 | wxPyListCtrl * _arg0; |
8ab979d7 | 3724 | long _arg1; |
1d99702e | 3725 | PyObject * _argo0 = 0; |
efc5f224 | 3726 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3727 | char _ptemp[128]; |
3728 | ||
3729 | self = self; | |
efc5f224 | 3730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3731 | return NULL; |
1d99702e RD |
3732 | if (_argo0) { |
3733 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3734 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3736 | return NULL; |
3737 | } | |
3738 | } | |
cf694132 | 3739 | { |
474c48f9 | 3740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 3741 | _result = (wxPoint *)wxPyListCtrl_GetItemPosition(_arg0,_arg1); |
cf694132 | 3742 | |
474c48f9 | 3743 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3744 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3745 | } if (_result) { |
3746 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
3747 | _resultobj = Py_BuildValue("s",_ptemp); | |
3748 | } else { | |
3749 | Py_INCREF(Py_None); | |
3750 | _resultobj = Py_None; | |
3751 | } | |
8ab979d7 RD |
3752 | return _resultobj; |
3753 | } | |
3754 | ||
cd096152 | 3755 | static wxRect * wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code) { |
8ab979d7 RD |
3756 | wxRect* rect= new wxRect; |
3757 | self->GetItemRect(item, *rect, code); | |
3758 | return rect; | |
3759 | } | |
efc5f224 | 3760 | static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3761 | PyObject * _resultobj; |
3762 | wxRect * _result; | |
cd096152 | 3763 | wxPyListCtrl * _arg0; |
8ab979d7 | 3764 | long _arg1; |
1d99702e RD |
3765 | int _arg2 = (int ) (wxLIST_RECT_BOUNDS); |
3766 | PyObject * _argo0 = 0; | |
efc5f224 | 3767 | char *_kwnames[] = { "self","item","code", NULL }; |
8ab979d7 RD |
3768 | char _ptemp[128]; |
3769 | ||
3770 | self = self; | |
efc5f224 | 3771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3772 | return NULL; |
1d99702e RD |
3773 | if (_argo0) { |
3774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3777 | return NULL; |
3778 | } | |
3779 | } | |
cf694132 | 3780 | { |
474c48f9 | 3781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 3782 | _result = (wxRect *)wxPyListCtrl_GetItemRect(_arg0,_arg1,_arg2); |
cf694132 | 3783 | |
474c48f9 | 3784 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3785 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3786 | } if (_result) { |
3787 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
3788 | _resultobj = Py_BuildValue("s",_ptemp); | |
3789 | } else { | |
3790 | Py_INCREF(Py_None); | |
3791 | _resultobj = Py_None; | |
3792 | } | |
8ab979d7 RD |
3793 | return _resultobj; |
3794 | } | |
3795 | ||
cd096152 RD |
3796 | #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1)) |
3797 | static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3798 | PyObject * _resultobj; |
cd096152 RD |
3799 | bool _result; |
3800 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3801 | long _arg1; |
cd096152 | 3802 | wxPoint * _arg2; |
1d99702e | 3803 | PyObject * _argo0 = 0; |
cd096152 RD |
3804 | wxPoint temp; |
3805 | PyObject * _obj2 = 0; | |
3806 | char *_kwnames[] = { "self","item","pos", NULL }; | |
8ab979d7 RD |
3807 | |
3808 | self = self; | |
cd096152 | 3809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3810 | return NULL; |
1d99702e RD |
3811 | if (_argo0) { |
3812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3815 | return NULL; |
3816 | } | |
3817 | } | |
cd096152 RD |
3818 | { |
3819 | _arg2 = &temp; | |
3820 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3821 | return NULL; | |
3822 | } | |
cf694132 | 3823 | { |
474c48f9 | 3824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 3825 | _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2); |
cf694132 | 3826 | |
474c48f9 | 3827 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3828 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3829 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3830 | return _resultobj; |
3831 | } | |
3832 | ||
3833 | #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
efc5f224 | 3834 | static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3835 | PyObject * _resultobj; |
3836 | int _result; | |
cd096152 | 3837 | wxPyListCtrl * _arg0; |
1d99702e | 3838 | PyObject * _argo0 = 0; |
efc5f224 | 3839 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3840 | |
3841 | self = self; | |
efc5f224 | 3842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3843 | return NULL; |
1d99702e RD |
3844 | if (_argo0) { |
3845 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3846 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3847 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3848 | return NULL; |
3849 | } | |
3850 | } | |
cf694132 | 3851 | { |
474c48f9 | 3852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3853 | _result = (int )wxListCtrl_GetItemCount(_arg0); |
3854 | ||
474c48f9 | 3855 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3856 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3857 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3858 | return _resultobj; |
3859 | } | |
3860 | ||
cd096152 RD |
3861 | #define wxListCtrl_GetColumnCount(_swigobj) (_swigobj->GetColumnCount()) |
3862 | static PyObject *_wrap_wxListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3863 | PyObject * _resultobj; | |
3864 | int _result; | |
3865 | wxPyListCtrl * _arg0; | |
3866 | PyObject * _argo0 = 0; | |
3867 | char *_kwnames[] = { "self", NULL }; | |
3868 | ||
3869 | self = self; | |
3870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetColumnCount",_kwnames,&_argo0)) | |
3871 | return NULL; | |
3872 | if (_argo0) { | |
3873 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3874 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnCount. Expected _wxPyListCtrl_p."); | |
3876 | return NULL; | |
3877 | } | |
3878 | } | |
3879 | { | |
474c48f9 | 3880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 RD |
3881 | _result = (int )wxListCtrl_GetColumnCount(_arg0); |
3882 | ||
474c48f9 | 3883 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
3884 | if (PyErr_Occurred()) return NULL; |
3885 | } _resultobj = Py_BuildValue("i",_result); | |
3886 | return _resultobj; | |
3887 | } | |
3888 | ||
8ab979d7 | 3889 | #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0)) |
efc5f224 | 3890 | static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3891 | PyObject * _resultobj; |
3892 | int _result; | |
cd096152 | 3893 | wxPyListCtrl * _arg0; |
8ab979d7 | 3894 | bool _arg1; |
1d99702e | 3895 | PyObject * _argo0 = 0; |
8ab979d7 | 3896 | int tempbool1; |
efc5f224 | 3897 | char *_kwnames[] = { "self","isSmall", NULL }; |
8ab979d7 RD |
3898 | |
3899 | self = self; | |
efc5f224 | 3900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3901 | return NULL; |
1d99702e RD |
3902 | if (_argo0) { |
3903 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3904 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3906 | return NULL; |
3907 | } | |
3908 | } | |
3909 | _arg1 = (bool ) tempbool1; | |
cf694132 | 3910 | { |
474c48f9 | 3911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
3912 | _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1); |
3913 | ||
474c48f9 | 3914 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3915 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3916 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3917 | return _resultobj; |
3918 | } | |
3919 | ||
cd096152 RD |
3920 | #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount()) |
3921 | static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3922 | PyObject * _resultobj; |
cd096152 RD |
3923 | int _result; |
3924 | wxPyListCtrl * _arg0; | |
1d99702e | 3925 | PyObject * _argo0 = 0; |
cd096152 | 3926 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3927 | |
3928 | self = self; | |
cd096152 | 3929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3930 | return NULL; |
1d99702e RD |
3931 | if (_argo0) { |
3932 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3933 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3935 | return NULL; |
3936 | } | |
3937 | } | |
8ab979d7 | 3938 | { |
474c48f9 | 3939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 3940 | _result = (int )wxListCtrl_GetSelectedItemCount(_arg0); |
cf694132 | 3941 | |
474c48f9 | 3942 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3943 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3944 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3945 | return _resultobj; |
3946 | } | |
3947 | ||
cd096152 RD |
3948 | #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
3949 | static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3950 | PyObject * _resultobj; |
cd096152 RD |
3951 | wxColour * _result; |
3952 | wxPyListCtrl * _arg0; | |
1d99702e | 3953 | PyObject * _argo0 = 0; |
cd096152 RD |
3954 | char *_kwnames[] = { "self", NULL }; |
3955 | char _ptemp[128]; | |
8ab979d7 RD |
3956 | |
3957 | self = self; | |
cd096152 | 3958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 3959 | return NULL; |
1d99702e RD |
3960 | if (_argo0) { |
3961 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3962 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3964 | return NULL; |
3965 | } | |
3966 | } | |
cf694132 | 3967 | { |
474c48f9 | 3968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 3969 | _result = new wxColour (wxListCtrl_GetTextColour(_arg0)); |
cf694132 | 3970 | |
474c48f9 | 3971 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3972 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3973 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
3974 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
3975 | return _resultobj; |
3976 | } | |
3977 | ||
cd096152 RD |
3978 | #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
3979 | static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3980 | PyObject * _resultobj; |
cd096152 RD |
3981 | wxPyListCtrl * _arg0; |
3982 | wxColour * _arg1; | |
1d99702e | 3983 | PyObject * _argo0 = 0; |
cd096152 RD |
3984 | wxColour temp; |
3985 | PyObject * _obj1 = 0; | |
3986 | char *_kwnames[] = { "self","col", NULL }; | |
8ab979d7 RD |
3987 | |
3988 | self = self; | |
cd096152 | 3989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3990 | return NULL; |
1d99702e RD |
3991 | if (_argo0) { |
3992 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3993 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3995 | return NULL; |
3996 | } | |
3997 | } | |
cd096152 RD |
3998 | { |
3999 | _arg1 = &temp; | |
4000 | if (! wxColour_helper(_obj1, &_arg1)) | |
4001 | return NULL; | |
4002 | } | |
cf694132 | 4003 | { |
474c48f9 | 4004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 4005 | wxListCtrl_SetTextColour(_arg0,*_arg1); |
cf694132 | 4006 | |
474c48f9 | 4007 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4008 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4009 | } Py_INCREF(Py_None); |
4010 | _resultobj = Py_None; | |
8ab979d7 RD |
4011 | return _resultobj; |
4012 | } | |
4013 | ||
8ab979d7 | 4014 | #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem()) |
efc5f224 | 4015 | static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4016 | PyObject * _resultobj; |
4017 | long _result; | |
cd096152 | 4018 | wxPyListCtrl * _arg0; |
1d99702e | 4019 | PyObject * _argo0 = 0; |
efc5f224 | 4020 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4021 | |
4022 | self = self; | |
efc5f224 | 4023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0)) |
8ab979d7 | 4024 | return NULL; |
1d99702e RD |
4025 | if (_argo0) { |
4026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4029 | return NULL; |
4030 | } | |
4031 | } | |
cf694132 | 4032 | { |
474c48f9 | 4033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
4034 | _result = (long )wxListCtrl_GetTopItem(_arg0); |
4035 | ||
474c48f9 | 4036 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4037 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4038 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4039 | return _resultobj; |
4040 | } | |
4041 | ||
cd096152 RD |
4042 | #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1)) |
4043 | static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4044 | PyObject * _resultobj; | |
4045 | wxPyListCtrl * _arg0; | |
4046 | long _arg1; | |
4047 | bool _arg2 = (bool ) TRUE; | |
1d99702e | 4048 | PyObject * _argo0 = 0; |
cd096152 RD |
4049 | int tempbool2 = (int) TRUE; |
4050 | char *_kwnames[] = { "self","style","add", NULL }; | |
8ab979d7 RD |
4051 | |
4052 | self = self; | |
cd096152 RD |
4053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2)) |
4054 | return NULL; | |
4055 | if (_argo0) { | |
4056 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4057 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxPyListCtrl_p."); | |
4059 | return NULL; | |
4060 | } | |
4061 | } | |
4062 | _arg2 = (bool ) tempbool2; | |
8ab979d7 | 4063 | { |
474c48f9 | 4064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 RD |
4065 | wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2); |
4066 | ||
474c48f9 | 4067 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4068 | if (PyErr_Occurred()) return NULL; |
4069 | } Py_INCREF(Py_None); | |
4070 | _resultobj = Py_None; | |
4071 | return _resultobj; | |
8ab979d7 | 4072 | } |
cd096152 RD |
4073 | |
4074 | #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) | |
4075 | static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4076 | PyObject * _resultobj; | |
4077 | wxPyListCtrl * _arg0; | |
4078 | long _arg1; | |
4079 | PyObject * _argo0 = 0; | |
4080 | char *_kwnames[] = { "self","style", NULL }; | |
4081 | ||
4082 | self = self; | |
4083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
8ab979d7 | 4084 | return NULL; |
1d99702e RD |
4085 | if (_argo0) { |
4086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4089 | return NULL; |
4090 | } | |
4091 | } | |
2f90df85 | 4092 | { |
474c48f9 | 4093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 RD |
4094 | wxListCtrl_SetWindowStyleFlag(_arg0,_arg1); |
4095 | ||
474c48f9 | 4096 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4097 | if (PyErr_Occurred()) return NULL; |
4098 | } Py_INCREF(Py_None); | |
4099 | _resultobj = Py_None; | |
4100 | return _resultobj; | |
2f90df85 | 4101 | } |
cd096152 RD |
4102 | |
4103 | #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2)) | |
4104 | static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4105 | PyObject * _resultobj; | |
4106 | long _result; | |
4107 | wxPyListCtrl * _arg0; | |
4108 | long _arg1; | |
4109 | int _arg2 = (int ) (wxLIST_NEXT_ALL); | |
4110 | int _arg3 = (int ) (wxLIST_STATE_DONTCARE); | |
4111 | PyObject * _argo0 = 0; | |
4112 | char *_kwnames[] = { "self","item","geometry","state", NULL }; | |
4113 | ||
4114 | self = self; | |
4115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
4116 | return NULL; | |
4117 | if (_argo0) { | |
4118 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4119 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxPyListCtrl_p."); | |
4121 | return NULL; | |
4122 | } | |
4123 | } | |
cf694132 | 4124 | { |
474c48f9 | 4125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 4126 | _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 4127 | |
474c48f9 | 4128 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4129 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4130 | } _resultobj = Py_BuildValue("l",_result); |
cd096152 | 4131 | return _resultobj; |
8ab979d7 | 4132 | } |
cd096152 RD |
4133 | |
4134 | #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0)) | |
4135 | static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4136 | PyObject * _resultobj; | |
4137 | wxImageList * _result; | |
4138 | wxPyListCtrl * _arg0; | |
4139 | int _arg1; | |
4140 | PyObject * _argo0 = 0; | |
4141 | char *_kwnames[] = { "self","which", NULL }; | |
4142 | ||
4143 | self = self; | |
4144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1)) | |
4145 | return NULL; | |
4146 | if (_argo0) { | |
4147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxPyListCtrl_p."); | |
4150 | return NULL; | |
4151 | } | |
4152 | } | |
4153 | { | |
474c48f9 | 4154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 RD |
4155 | _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1); |
4156 | ||
474c48f9 | 4157 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4158 | if (PyErr_Occurred()) return NULL; |
4159 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
8ab979d7 RD |
4160 | return _resultobj; |
4161 | } | |
4162 | ||
cd096152 RD |
4163 | #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1)) |
4164 | static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4165 | PyObject * _resultobj; |
cd096152 RD |
4166 | wxPyListCtrl * _arg0; |
4167 | wxImageList * _arg1; | |
4168 | int _arg2; | |
1d99702e | 4169 | PyObject * _argo0 = 0; |
cd096152 RD |
4170 | PyObject * _argo1 = 0; |
4171 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
8ab979d7 RD |
4172 | |
4173 | self = self; | |
cd096152 | 4174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4175 | return NULL; |
1d99702e RD |
4176 | if (_argo0) { |
4177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4180 | return NULL; |
4181 | } | |
4182 | } | |
cd096152 RD |
4183 | if (_argo1) { |
4184 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4185 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p."); | |
8ab979d7 RD |
4187 | return NULL; |
4188 | } | |
4189 | } | |
cf694132 | 4190 | { |
474c48f9 | 4191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 4192 | wxListCtrl_SetImageList(_arg0,_arg1,_arg2); |
cf694132 | 4193 | |
474c48f9 | 4194 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4195 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4196 | } Py_INCREF(Py_None); |
4197 | _resultobj = Py_None; | |
8ab979d7 RD |
4198 | return _resultobj; |
4199 | } | |
4200 | ||
cd096152 RD |
4201 | #define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1)) |
4202 | static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4203 | PyObject * _resultobj; |
cd096152 RD |
4204 | wxPyListCtrl * _arg0; |
4205 | wxImageList * _arg1; | |
4206 | int _arg2; | |
1d99702e | 4207 | PyObject * _argo0 = 0; |
cd096152 RD |
4208 | PyObject * _argo1 = 0; |
4209 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
8ab979d7 RD |
4210 | |
4211 | self = self; | |
cd096152 | 4212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4213 | return NULL; |
1d99702e RD |
4214 | if (_argo0) { |
4215 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4218 | return NULL; |
4219 | } | |
4220 | } | |
cd096152 RD |
4221 | if (_argo1) { |
4222 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4223 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p."); | |
2cd2fac8 | 4225 | return NULL; |
cd096152 | 4226 | } |
2cd2fac8 | 4227 | } |
cd096152 | 4228 | { |
474c48f9 | 4229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 RD |
4230 | wxListCtrl_AssignImageList(_arg0,_arg1,_arg2); |
4231 | ||
474c48f9 | 4232 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4233 | if (PyErr_Occurred()) return NULL; |
4234 | } Py_INCREF(Py_None); | |
4235 | _resultobj = Py_None; | |
4236 | return _resultobj; | |
4237 | } | |
4238 | ||
4239 | #define wxListCtrl_IsVirtual(_swigobj) (_swigobj->IsVirtual()) | |
4240 | static PyObject *_wrap_wxListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4241 | PyObject * _resultobj; | |
4242 | bool _result; | |
4243 | wxPyListCtrl * _arg0; | |
4244 | PyObject * _argo0 = 0; | |
4245 | char *_kwnames[] = { "self", NULL }; | |
4246 | ||
4247 | self = self; | |
4248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_IsVirtual",_kwnames,&_argo0)) | |
2cd2fac8 | 4249 | return NULL; |
cd096152 RD |
4250 | if (_argo0) { |
4251 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4252 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_IsVirtual. Expected _wxPyListCtrl_p."); | |
8ab979d7 | 4254 | return NULL; |
cd096152 | 4255 | } |
8ab979d7 | 4256 | } |
cf694132 | 4257 | { |
474c48f9 | 4258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 4259 | _result = (bool )wxListCtrl_IsVirtual(_arg0); |
cf694132 | 4260 | |
474c48f9 | 4261 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4262 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4263 | } _resultobj = Py_BuildValue("i",_result); |
4264 | return _resultobj; | |
8ab979d7 | 4265 | } |
cd096152 RD |
4266 | |
4267 | #define wxListCtrl_RefreshItem(_swigobj,_swigarg0) (_swigobj->RefreshItem(_swigarg0)) | |
4268 | static PyObject *_wrap_wxListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4269 | PyObject * _resultobj; | |
4270 | wxPyListCtrl * _arg0; | |
4271 | long _arg1; | |
4272 | PyObject * _argo0 = 0; | |
4273 | char *_kwnames[] = { "self","item", NULL }; | |
4274 | ||
4275 | self = self; | |
4276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_RefreshItem",_kwnames,&_argo0,&_arg1)) | |
4277 | return NULL; | |
4278 | if (_argo0) { | |
4279 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4280 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItem. Expected _wxPyListCtrl_p."); | |
4282 | return NULL; | |
4283 | } | |
4284 | } | |
4285 | { | |
474c48f9 | 4286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 RD |
4287 | wxListCtrl_RefreshItem(_arg0,_arg1); |
4288 | ||
474c48f9 | 4289 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4290 | if (PyErr_Occurred()) return NULL; |
4291 | } Py_INCREF(Py_None); | |
4292 | _resultobj = Py_None; | |
8ab979d7 RD |
4293 | return _resultobj; |
4294 | } | |
4295 | ||
cd096152 RD |
4296 | #define wxListCtrl_RefreshItems(_swigobj,_swigarg0,_swigarg1) (_swigobj->RefreshItems(_swigarg0,_swigarg1)) |
4297 | static PyObject *_wrap_wxListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4298 | PyObject * _resultobj; |
cd096152 RD |
4299 | wxPyListCtrl * _arg0; |
4300 | long _arg1; | |
4301 | long _arg2; | |
1d99702e | 4302 | PyObject * _argo0 = 0; |
cd096152 | 4303 | char *_kwnames[] = { "self","itemFrom","itemTo", NULL }; |
8ab979d7 RD |
4304 | |
4305 | self = self; | |
cd096152 | 4306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_RefreshItems",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4307 | return NULL; |
1d99702e RD |
4308 | if (_argo0) { |
4309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItems. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4312 | return NULL; |
4313 | } | |
4314 | } | |
cd096152 | 4315 | { |
474c48f9 | 4316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 RD |
4317 | wxListCtrl_RefreshItems(_arg0,_arg1,_arg2); |
4318 | ||
474c48f9 | 4319 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4320 | if (PyErr_Occurred()) return NULL; |
4321 | } Py_INCREF(Py_None); | |
4322 | _resultobj = Py_None; | |
4323 | return _resultobj; | |
4324 | } | |
4325 | ||
4326 | #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0)) | |
4327 | static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4328 | PyObject * _resultobj; | |
4329 | bool _result; | |
4330 | wxPyListCtrl * _arg0; | |
4331 | int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT); | |
4332 | PyObject * _argo0 = 0; | |
4333 | char *_kwnames[] = { "self","flag", NULL }; | |
4334 | ||
4335 | self = self; | |
4336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1)) | |
4337 | return NULL; | |
4338 | if (_argo0) { | |
4339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4342 | return NULL; |
4343 | } | |
4344 | } | |
cf694132 | 4345 | { |
474c48f9 | 4346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 4347 | _result = (bool )wxListCtrl_Arrange(_arg0,_arg1); |
cf694132 | 4348 | |
474c48f9 | 4349 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4350 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4351 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4352 | return _resultobj; |
4353 | } | |
4354 | ||
cd096152 RD |
4355 | #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0)) |
4356 | static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4357 | PyObject * _resultobj; |
cd096152 RD |
4358 | bool _result; |
4359 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4360 | long _arg1; |
1d99702e | 4361 | PyObject * _argo0 = 0; |
cd096152 | 4362 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4363 | |
4364 | self = self; | |
cd096152 | 4365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4366 | return NULL; |
1d99702e RD |
4367 | if (_argo0) { |
4368 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4369 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4371 | return NULL; |
4372 | } | |
4373 | } | |
4374 | { | |
474c48f9 | 4375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 RD |
4376 | _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1); |
4377 | ||
474c48f9 | 4378 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4379 | if (PyErr_Occurred()) return NULL; |
4380 | } _resultobj = Py_BuildValue("i",_result); | |
4381 | return _resultobj; | |
4382 | } | |
4383 | ||
4384 | #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
4385 | static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4386 | PyObject * _resultobj; | |
4387 | bool _result; | |
4388 | wxPyListCtrl * _arg0; | |
4389 | PyObject * _argo0 = 0; | |
4390 | char *_kwnames[] = { "self", NULL }; | |
4391 | ||
4392 | self = self; | |
4393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0)) | |
4394 | return NULL; | |
4395 | if (_argo0) { | |
4396 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4397 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxPyListCtrl_p."); | |
2cd2fac8 | 4399 | return NULL; |
cd096152 | 4400 | } |
2cd2fac8 | 4401 | } |
cd096152 | 4402 | { |
474c48f9 | 4403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 RD |
4404 | _result = (bool )wxListCtrl_DeleteAllItems(_arg0); |
4405 | ||
474c48f9 | 4406 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4407 | if (PyErr_Occurred()) return NULL; |
4408 | } _resultobj = Py_BuildValue("i",_result); | |
4409 | return _resultobj; | |
4410 | } | |
4411 | ||
4412 | #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0)) | |
4413 | static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4414 | PyObject * _resultobj; | |
4415 | bool _result; | |
4416 | wxPyListCtrl * _arg0; | |
4417 | int _arg1; | |
4418 | PyObject * _argo0 = 0; | |
4419 | char *_kwnames[] = { "self","col", NULL }; | |
4420 | ||
4421 | self = self; | |
4422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1)) | |
2cd2fac8 | 4423 | return NULL; |
cd096152 RD |
4424 | if (_argo0) { |
4425 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4426 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxPyListCtrl_p."); | |
4428 | return NULL; | |
4429 | } | |
4430 | } | |
4431 | { | |
474c48f9 | 4432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 RD |
4433 | _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1); |
4434 | ||
474c48f9 | 4435 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4436 | if (PyErr_Occurred()) return NULL; |
4437 | } _resultobj = Py_BuildValue("i",_result); | |
4438 | return _resultobj; | |
4439 | } | |
4440 | ||
4441 | #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns()) | |
4442 | static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4443 | PyObject * _resultobj; | |
4444 | bool _result; | |
4445 | wxPyListCtrl * _arg0; | |
4446 | PyObject * _argo0 = 0; | |
4447 | char *_kwnames[] = { "self", NULL }; | |
4448 | ||
4449 | self = self; | |
4450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0)) | |
4451 | return NULL; | |
4452 | if (_argo0) { | |
4453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxPyListCtrl_p."); | |
4456 | return NULL; | |
4457 | } | |
4458 | } | |
4459 | { | |
474c48f9 | 4460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 RD |
4461 | _result = (bool )wxListCtrl_DeleteAllColumns(_arg0); |
4462 | ||
474c48f9 | 4463 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4464 | if (PyErr_Occurred()) return NULL; |
4465 | } _resultobj = Py_BuildValue("i",_result); | |
4466 | return _resultobj; | |
4467 | } | |
4468 | ||
4469 | #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll()) | |
4470 | static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4471 | PyObject * _resultobj; | |
4472 | wxPyListCtrl * _arg0; | |
4473 | PyObject * _argo0 = 0; | |
4474 | char *_kwnames[] = { "self", NULL }; | |
4475 | ||
4476 | self = self; | |
4477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0)) | |
8ab979d7 | 4478 | return NULL; |
cd096152 RD |
4479 | if (_argo0) { |
4480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxPyListCtrl_p."); | |
4483 | return NULL; | |
4484 | } | |
8ab979d7 | 4485 | } |
cf694132 | 4486 | { |
474c48f9 | 4487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 4488 | wxListCtrl_ClearAll(_arg0); |
cf694132 | 4489 | |
474c48f9 | 4490 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4491 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4492 | } Py_INCREF(Py_None); |
4493 | _resultobj = Py_None; | |
8ab979d7 RD |
4494 | return _resultobj; |
4495 | } | |
4496 | ||
cd096152 RD |
4497 | #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) |
4498 | static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4499 | PyObject * _resultobj; |
cd096152 RD |
4500 | bool _result; |
4501 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4502 | long _arg1; |
1d99702e | 4503 | PyObject * _argo0 = 0; |
cd096152 | 4504 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4505 | |
4506 | self = self; | |
cd096152 | 4507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4508 | return NULL; |
1d99702e RD |
4509 | if (_argo0) { |
4510 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4511 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4512 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4513 | return NULL; |
4514 | } | |
4515 | } | |
cf694132 | 4516 | { |
474c48f9 | 4517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 4518 | _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1); |
cf694132 | 4519 | |
474c48f9 | 4520 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4521 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4522 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4523 | return _resultobj; |
4524 | } | |
4525 | ||
cd096152 RD |
4526 | #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4527 | static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4528 | PyObject * _resultobj; |
4529 | long _result; | |
cd096152 | 4530 | wxPyListCtrl * _arg0; |
8ab979d7 RD |
4531 | long _arg1; |
4532 | wxString * _arg2; | |
cd096152 | 4533 | bool _arg3 = (bool ) FALSE; |
1d99702e | 4534 | PyObject * _argo0 = 0; |
8ab979d7 | 4535 | PyObject * _obj2 = 0; |
cd096152 RD |
4536 | int tempbool3 = (int) FALSE; |
4537 | char *_kwnames[] = { "self","start","str","partial", NULL }; | |
8ab979d7 RD |
4538 | |
4539 | self = self; | |
cd096152 | 4540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
8ab979d7 | 4541 | return NULL; |
1d99702e RD |
4542 | if (_argo0) { |
4543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4546 | return NULL; |
4547 | } | |
4548 | } | |
4549 | { | |
2cd2fac8 RD |
4550 | #if PYTHON_API_VERSION >= 1009 |
4551 | char* tmpPtr; int tmpSize; | |
4552 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 4553 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4554 | return NULL; |
4555 | } | |
4556 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4557 | return NULL; | |
4558 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4559 | #else | |
8ab979d7 RD |
4560 | if (!PyString_Check(_obj2)) { |
4561 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4562 | return NULL; | |
4563 | } | |
2cd2fac8 RD |
4564 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
4565 | #endif | |
8ab979d7 | 4566 | } |
cd096152 | 4567 | _arg3 = (bool ) tempbool3; |
cf694132 | 4568 | { |
474c48f9 | 4569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 4570 | _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4571 | |
474c48f9 | 4572 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4573 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4574 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4575 | { |
4576 | if (_obj2) | |
4577 | delete _arg2; | |
4578 | } | |
4579 | return _resultobj; | |
4580 | } | |
4581 | ||
cd096152 RD |
4582 | #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1)) |
4583 | static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4584 | PyObject * _resultobj; |
cd096152 RD |
4585 | long _result; |
4586 | wxPyListCtrl * _arg0; | |
4587 | long _arg1; | |
4588 | long _arg2; | |
1d99702e | 4589 | PyObject * _argo0 = 0; |
cd096152 | 4590 | char *_kwnames[] = { "self","start","data", NULL }; |
8ab979d7 RD |
4591 | |
4592 | self = self; | |
cd096152 | 4593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4594 | return NULL; |
1d99702e RD |
4595 | if (_argo0) { |
4596 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4597 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4599 | return NULL; |
4600 | } | |
4601 | } | |
cf694132 | 4602 | { |
474c48f9 | 4603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 4604 | _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2); |
cf694132 | 4605 | |
474c48f9 | 4606 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4607 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4608 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4609 | return _resultobj; |
4610 | } | |
4611 | ||
cd096152 RD |
4612 | #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4613 | static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4614 | PyObject * _resultobj; |
cd096152 RD |
4615 | long _result; |
4616 | wxPyListCtrl * _arg0; | |
4617 | long _arg1; | |
4618 | wxPoint * _arg2; | |
4619 | int _arg3; | |
1d99702e | 4620 | PyObject * _argo0 = 0; |
cd096152 RD |
4621 | wxPoint temp; |
4622 | PyObject * _obj2 = 0; | |
4623 | char *_kwnames[] = { "self","start","pt","direction", NULL }; | |
8ab979d7 RD |
4624 | |
4625 | self = self; | |
cd096152 | 4626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4627 | return NULL; |
1d99702e RD |
4628 | if (_argo0) { |
4629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4632 | return NULL; |
4633 | } | |
4634 | } | |
f6bcfd97 | 4635 | { |
cd096152 RD |
4636 | _arg2 = &temp; |
4637 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 4638 | return NULL; |
f6bcfd97 | 4639 | } |
cf694132 | 4640 | { |
474c48f9 | 4641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 4642 | _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4643 | |
474c48f9 | 4644 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4645 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4646 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4647 | return _resultobj; |
4648 | } | |
4649 | ||
cd096152 RD |
4650 | #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
4651 | static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4652 | PyObject * _resultobj; |
cd096152 RD |
4653 | long _result; |
4654 | wxPyListCtrl * _arg0; | |
4655 | wxPoint * _arg1; | |
4656 | int * _arg2; | |
4657 | int temp; | |
1d99702e | 4658 | PyObject * _argo0 = 0; |
cd096152 RD |
4659 | wxPoint temp0; |
4660 | PyObject * _obj1 = 0; | |
4661 | char *_kwnames[] = { "self","point", NULL }; | |
8ab979d7 RD |
4662 | |
4663 | self = self; | |
cf694132 | 4664 | { |
cd096152 | 4665 | _arg2 = &temp; |
8ab979d7 | 4666 | } |
cd096152 | 4667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4668 | return NULL; |
1d99702e RD |
4669 | if (_argo0) { |
4670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4673 | return NULL; |
4674 | } | |
4675 | } | |
cf694132 | 4676 | { |
cd096152 RD |
4677 | _arg1 = &temp0; |
4678 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4679 | return NULL; |
cd096152 | 4680 | } |
cf694132 | 4681 | { |
474c48f9 | 4682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 4683 | _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2); |
cf694132 | 4684 | |
474c48f9 | 4685 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4686 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4687 | } _resultobj = Py_BuildValue("l",_result); |
4688 | { | |
4689 | PyObject *o; | |
4690 | o = PyInt_FromLong((long) (*_arg2)); | |
4691 | _resultobj = t_output_helper(_resultobj, o); | |
4692 | } | |
8ab979d7 RD |
4693 | return _resultobj; |
4694 | } | |
4695 | ||
cd096152 RD |
4696 | #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0)) |
4697 | static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4698 | PyObject * _resultobj; |
cd096152 RD |
4699 | long _result; |
4700 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4701 | wxListItem * _arg1; |
1d99702e RD |
4702 | PyObject * _argo0 = 0; |
4703 | PyObject * _argo1 = 0; | |
efc5f224 | 4704 | char *_kwnames[] = { "self","info", NULL }; |
8ab979d7 RD |
4705 | |
4706 | self = self; | |
cd096152 | 4707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4708 | return NULL; |
1d99702e RD |
4709 | if (_argo0) { |
4710 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4711 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4712 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4713 | return NULL; |
4714 | } | |
4715 | } | |
1d99702e RD |
4716 | if (_argo1) { |
4717 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4718 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
cd096152 | 4719 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p."); |
8ab979d7 RD |
4720 | return NULL; |
4721 | } | |
4722 | } | |
cf694132 | 4723 | { |
474c48f9 | 4724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 4725 | _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1); |
cf694132 | 4726 | |
474c48f9 | 4727 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4728 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4729 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4730 | return _resultobj; |
4731 | } | |
4732 | ||
cd096152 RD |
4733 | #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) |
4734 | static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4735 | PyObject * _resultobj; |
4736 | long _result; | |
cd096152 | 4737 | wxPyListCtrl * _arg0; |
8ab979d7 | 4738 | long _arg1; |
cd096152 | 4739 | wxString * _arg2; |
1d99702e | 4740 | PyObject * _argo0 = 0; |
cd096152 RD |
4741 | PyObject * _obj2 = 0; |
4742 | char *_kwnames[] = { "self","index","label", NULL }; | |
8ab979d7 RD |
4743 | |
4744 | self = self; | |
cd096152 | 4745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4746 | return NULL; |
1d99702e RD |
4747 | if (_argo0) { |
4748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4751 | return NULL; |
4752 | } | |
4753 | } | |
4754 | { | |
2cd2fac8 RD |
4755 | #if PYTHON_API_VERSION >= 1009 |
4756 | char* tmpPtr; int tmpSize; | |
cd096152 | 4757 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { |
7a446686 | 4758 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4759 | return NULL; |
4760 | } | |
cd096152 | 4761 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) |
2cd2fac8 | 4762 | return NULL; |
cd096152 | 4763 | _arg2 = new wxString(tmpPtr, tmpSize); |
2cd2fac8 | 4764 | #else |
cd096152 | 4765 | if (!PyString_Check(_obj2)) { |
8ab979d7 RD |
4766 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
4767 | return NULL; | |
4768 | } | |
cd096152 | 4769 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
2cd2fac8 | 4770 | #endif |
8ab979d7 | 4771 | } |
cf694132 | 4772 | { |
474c48f9 | 4773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 4774 | _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2); |
cf694132 | 4775 | |
474c48f9 | 4776 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4777 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4778 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 4779 | { |
cd096152 RD |
4780 | if (_obj2) |
4781 | delete _arg2; | |
4782 | } | |
8ab979d7 RD |
4783 | return _resultobj; |
4784 | } | |
4785 | ||
cd096152 RD |
4786 | #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) |
4787 | static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4788 | PyObject * _resultobj; |
cd096152 RD |
4789 | long _result; |
4790 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4791 | long _arg1; |
4792 | int _arg2; | |
1d99702e | 4793 | PyObject * _argo0 = 0; |
cd096152 | 4794 | char *_kwnames[] = { "self","index","imageIndex", NULL }; |
8ab979d7 RD |
4795 | |
4796 | self = self; | |
cd096152 | 4797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4798 | return NULL; |
1d99702e RD |
4799 | if (_argo0) { |
4800 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4801 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4802 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4803 | return NULL; |
4804 | } | |
4805 | } | |
cf694132 | 4806 | { |
474c48f9 | 4807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 4808 | _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2); |
cf694132 | 4809 | |
474c48f9 | 4810 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4811 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4812 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4813 | return _resultobj; |
4814 | } | |
4815 | ||
cd096152 RD |
4816 | #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2)) |
4817 | static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4818 | PyObject * _resultobj; |
cd096152 RD |
4819 | long _result; |
4820 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4821 | long _arg1; |
cd096152 RD |
4822 | wxString * _arg2; |
4823 | int _arg3; | |
1d99702e | 4824 | PyObject * _argo0 = 0; |
2f90df85 | 4825 | PyObject * _obj2 = 0; |
cd096152 | 4826 | char *_kwnames[] = { "self","index","label","imageIndex", NULL }; |
8ab979d7 RD |
4827 | |
4828 | self = self; | |
cd096152 | 4829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4830 | return NULL; |
1d99702e RD |
4831 | if (_argo0) { |
4832 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4833 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4835 | return NULL; |
4836 | } | |
4837 | } | |
2f90df85 | 4838 | { |
cd096152 RD |
4839 | #if PYTHON_API_VERSION >= 1009 |
4840 | char* tmpPtr; int tmpSize; | |
4841 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4842 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4843 | return NULL; | |
4844 | } | |
4845 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4846 | return NULL; | |
4847 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4848 | #else | |
4849 | if (!PyString_Check(_obj2)) { | |
4850 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 4851 | return NULL; |
cd096152 RD |
4852 | } |
4853 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
4854 | #endif | |
2f90df85 | 4855 | } |
cf694132 | 4856 | { |
474c48f9 | 4857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 4858 | _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4859 | |
474c48f9 | 4860 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4861 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4862 | } _resultobj = Py_BuildValue("l",_result); |
4863 | { | |
4864 | if (_obj2) | |
4865 | delete _arg2; | |
4866 | } | |
8ab979d7 RD |
4867 | return _resultobj; |
4868 | } | |
4869 | ||
cd096152 RD |
4870 | #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) |
4871 | static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4872 | PyObject * _resultobj; |
cd096152 RD |
4873 | long _result; |
4874 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4875 | long _arg1; |
cd096152 | 4876 | wxListItem * _arg2; |
1d99702e | 4877 | PyObject * _argo0 = 0; |
cd096152 RD |
4878 | PyObject * _argo2 = 0; |
4879 | char *_kwnames[] = { "self","col","info", NULL }; | |
8ab979d7 RD |
4880 | |
4881 | self = self; | |
cd096152 | 4882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 4883 | return NULL; |
1d99702e RD |
4884 | if (_argo0) { |
4885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxPyListCtrl_p."); | |
4888 | return NULL; | |
4889 | } | |
4890 | } | |
4891 | if (_argo2) { | |
4892 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4893 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
4894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p."); | |
8ab979d7 RD |
4895 | return NULL; |
4896 | } | |
4897 | } | |
cf694132 | 4898 | { |
474c48f9 | 4899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 4900 | _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2); |
cf694132 | 4901 | |
474c48f9 | 4902 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4903 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4904 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4905 | return _resultobj; |
4906 | } | |
4907 | ||
cd096152 RD |
4908 | #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4909 | static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4910 | PyObject * _resultobj; |
cd096152 RD |
4911 | long _result; |
4912 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4913 | long _arg1; |
4914 | wxString * _arg2; | |
cd096152 RD |
4915 | int _arg3 = (int ) (wxLIST_FORMAT_LEFT); |
4916 | int _arg4 = (int ) -1; | |
1d99702e | 4917 | PyObject * _argo0 = 0; |
8ab979d7 | 4918 | PyObject * _obj2 = 0; |
cd096152 | 4919 | char *_kwnames[] = { "self","col","heading","format","width", NULL }; |
8ab979d7 RD |
4920 | |
4921 | self = self; | |
cd096152 | 4922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 4923 | return NULL; |
1d99702e RD |
4924 | if (_argo0) { |
4925 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4926 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4928 | return NULL; |
4929 | } | |
4930 | } | |
4931 | { | |
2cd2fac8 RD |
4932 | #if PYTHON_API_VERSION >= 1009 |
4933 | char* tmpPtr; int tmpSize; | |
4934 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 4935 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4936 | return NULL; |
4937 | } | |
4938 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4939 | return NULL; | |
4940 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4941 | #else | |
8ab979d7 RD |
4942 | if (!PyString_Check(_obj2)) { |
4943 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4944 | return NULL; | |
4945 | } | |
2cd2fac8 RD |
4946 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
4947 | #endif | |
8ab979d7 | 4948 | } |
cf694132 | 4949 | { |
474c48f9 | 4950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 4951 | _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4); |
cf694132 | 4952 | |
474c48f9 | 4953 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4954 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4955 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4956 | { |
4957 | if (_obj2) | |
4958 | delete _arg2; | |
4959 | } | |
4960 | return _resultobj; | |
4961 | } | |
4962 | ||
cd096152 RD |
4963 | #define wxListCtrl_SetItemCount(_swigobj,_swigarg0) (_swigobj->SetItemCount(_swigarg0)) |
4964 | static PyObject *_wrap_wxListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4965 | PyObject * _resultobj; |
cd096152 | 4966 | wxPyListCtrl * _arg0; |
8ab979d7 | 4967 | long _arg1; |
1d99702e | 4968 | PyObject * _argo0 = 0; |
cd096152 | 4969 | char *_kwnames[] = { "self","count", NULL }; |
8ab979d7 RD |
4970 | |
4971 | self = self; | |
cd096152 | 4972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetItemCount",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4973 | return NULL; |
1d99702e RD |
4974 | if (_argo0) { |
4975 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4976 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4978 | return NULL; |
4979 | } | |
4980 | } | |
cf694132 | 4981 | { |
474c48f9 | 4982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 4983 | wxListCtrl_SetItemCount(_arg0,_arg1); |
cf694132 | 4984 | |
474c48f9 | 4985 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4986 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4987 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4988 | _resultobj = Py_None; |
4989 | return _resultobj; | |
4990 | } | |
4991 | ||
cd096152 RD |
4992 | #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1)) |
4993 | static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4994 | PyObject * _resultobj; |
cd096152 RD |
4995 | bool _result; |
4996 | wxPyListCtrl * _arg0; | |
4997 | int _arg1; | |
4998 | int _arg2; | |
1d99702e | 4999 | PyObject * _argo0 = 0; |
cd096152 | 5000 | char *_kwnames[] = { "self","dx","dy", NULL }; |
8ab979d7 RD |
5001 | |
5002 | self = self; | |
cd096152 | 5003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 5004 | return NULL; |
1d99702e RD |
5005 | if (_argo0) { |
5006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
5007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
5009 | return NULL; |
5010 | } | |
5011 | } | |
cf694132 | 5012 | { |
474c48f9 | 5013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 5014 | _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2); |
cf694132 | 5015 | |
474c48f9 | 5016 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5017 | if (PyErr_Occurred()) return NULL; |
cd096152 | 5018 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5019 | return _resultobj; |
5020 | } | |
5021 | ||
cd096152 | 5022 | static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject * func) { |
dcd38683 RD |
5023 | if (!PyCallable_Check(func)) |
5024 | return FALSE; | |
f6bcfd97 | 5025 | return self->SortItems(wxPyListCtrl_SortItems, (long)func); |
dcd38683 RD |
5026 | } |
5027 | static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5028 | PyObject * _resultobj; | |
5029 | bool _result; | |
cd096152 | 5030 | wxPyListCtrl * _arg0; |
dcd38683 RD |
5031 | PyObject * _arg1; |
5032 | PyObject * _argo0 = 0; | |
5033 | PyObject * _obj1 = 0; | |
5034 | char *_kwnames[] = { "self","func", NULL }; | |
5035 | ||
5036 | self = self; | |
5037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1)) | |
5038 | return NULL; | |
5039 | if (_argo0) { | |
5040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
5041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxPyListCtrl_p."); | |
dcd38683 RD |
5043 | return NULL; |
5044 | } | |
5045 | } | |
5046 | { | |
5047 | _arg1 = _obj1; | |
5048 | } | |
5049 | { | |
474c48f9 | 5050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cd096152 | 5051 | _result = (bool )wxPyListCtrl_SortItems(_arg0,_arg1); |
dcd38683 | 5052 | |
474c48f9 | 5053 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5054 | if (PyErr_Occurred()) return NULL; |
dcd38683 RD |
5055 | } _resultobj = Py_BuildValue("i",_result); |
5056 | return _resultobj; | |
5057 | } | |
5058 | ||
059a841c RD |
5059 | static void *SwigwxListViewTowxPyListCtrl(void *ptr) { |
5060 | wxListView *src; | |
5061 | wxPyListCtrl *dest; | |
5062 | src = (wxListView *) ptr; | |
5063 | dest = (wxPyListCtrl *) src; | |
5064 | return (void *) dest; | |
5065 | } | |
5066 | ||
5067 | static void *SwigwxListViewTowxControl(void *ptr) { | |
5068 | wxListView *src; | |
5069 | wxControl *dest; | |
5070 | src = (wxListView *) ptr; | |
5071 | dest = (wxControl *) src; | |
5072 | return (void *) dest; | |
5073 | } | |
5074 | ||
5075 | static void *SwigwxListViewTowxWindow(void *ptr) { | |
5076 | wxListView *src; | |
5077 | wxWindow *dest; | |
5078 | src = (wxListView *) ptr; | |
5079 | dest = (wxWindow *) src; | |
5080 | return (void *) dest; | |
5081 | } | |
5082 | ||
5083 | static void *SwigwxListViewTowxEvtHandler(void *ptr) { | |
5084 | wxListView *src; | |
5085 | wxEvtHandler *dest; | |
5086 | src = (wxListView *) ptr; | |
5087 | dest = (wxEvtHandler *) src; | |
5088 | return (void *) dest; | |
5089 | } | |
5090 | ||
5091 | static void *SwigwxListViewTowxObject(void *ptr) { | |
5092 | wxListView *src; | |
5093 | wxObject *dest; | |
5094 | src = (wxListView *) ptr; | |
5095 | dest = (wxObject *) src; | |
5096 | return (void *) dest; | |
5097 | } | |
5098 | ||
5099 | #define new_wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5100 | static PyObject *_wrap_new_wxListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5101 | PyObject * _resultobj; | |
5102 | wxListView * _result; | |
5103 | wxWindow * _arg0; | |
5104 | wxWindowID _arg1 = (wxWindowID ) -1; | |
5105 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
5106 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5107 | long _arg4 = (long ) (wxLC_REPORT); | |
5108 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
5109 | wxString * _arg6 = (wxString *) &"listctrl"; | |
5110 | PyObject * _argo0 = 0; | |
5111 | wxPoint temp; | |
5112 | PyObject * _obj2 = 0; | |
5113 | wxSize temp0; | |
5114 | PyObject * _obj3 = 0; | |
5115 | PyObject * _argo5 = 0; | |
5116 | PyObject * _obj6 = 0; | |
5117 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
5118 | char _ptemp[128]; | |
5119 | ||
5120 | self = self; | |
5121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListView",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) | |
5122 | return NULL; | |
5123 | if (_argo0) { | |
5124 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5125 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5126 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListView. Expected _wxWindow_p."); | |
5127 | return NULL; | |
5128 | } | |
5129 | } | |
5130 | if (_obj2) | |
5131 | { | |
5132 | _arg2 = &temp; | |
5133 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5134 | return NULL; | |
5135 | } | |
5136 | if (_obj3) | |
5137 | { | |
5138 | _arg3 = &temp0; | |
5139 | if (! wxSize_helper(_obj3, &_arg3)) | |
5140 | return NULL; | |
5141 | } | |
5142 | if (_argo5) { | |
5143 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5144 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
5145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListView. Expected _wxValidator_p."); | |
5146 | return NULL; | |
5147 | } | |
5148 | } | |
5149 | if (_obj6) | |
5150 | { | |
5151 | #if PYTHON_API_VERSION >= 1009 | |
5152 | char* tmpPtr; int tmpSize; | |
5153 | if (!PyString_Check(_obj6) && !PyUnicode_Check(_obj6)) { | |
5154 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5155 | return NULL; | |
5156 | } | |
5157 | if (PyString_AsStringAndSize(_obj6, &tmpPtr, &tmpSize) == -1) | |
5158 | return NULL; | |
5159 | _arg6 = new wxString(tmpPtr, tmpSize); | |
5160 | #else | |
5161 | if (!PyString_Check(_obj6)) { | |
5162 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5163 | return NULL; | |
5164 | } | |
5165 | _arg6 = new wxString(PyString_AS_STRING(_obj6), PyString_GET_SIZE(_obj6)); | |
5166 | #endif | |
5167 | } | |
5168 | { | |
474c48f9 | 5169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
5170 | _result = (wxListView *)new_wxListView(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
5171 | ||
474c48f9 | 5172 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5173 | if (PyErr_Occurred()) return NULL; |
5174 | } if (_result) { | |
5175 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5176 | _resultobj = Py_BuildValue("s",_ptemp); | |
5177 | } else { | |
5178 | Py_INCREF(Py_None); | |
5179 | _resultobj = Py_None; | |
5180 | } | |
5181 | { | |
5182 | if (_obj6) | |
5183 | delete _arg6; | |
5184 | } | |
5185 | return _resultobj; | |
5186 | } | |
5187 | ||
5188 | #define new_wxPreListView() (new wxListView()) | |
5189 | static PyObject *_wrap_new_wxPreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5190 | PyObject * _resultobj; | |
5191 | wxListView * _result; | |
5192 | char *_kwnames[] = { NULL }; | |
5193 | char _ptemp[128]; | |
5194 | ||
5195 | self = self; | |
5196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListView",_kwnames)) | |
5197 | return NULL; | |
5198 | { | |
474c48f9 | 5199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
5200 | _result = (wxListView *)new_wxPreListView(); |
5201 | ||
474c48f9 | 5202 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5203 | if (PyErr_Occurred()) return NULL; |
5204 | } if (_result) { | |
5205 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5206 | _resultobj = Py_BuildValue("s",_ptemp); | |
5207 | } else { | |
5208 | Py_INCREF(Py_None); | |
5209 | _resultobj = Py_None; | |
5210 | } | |
5211 | return _resultobj; | |
5212 | } | |
5213 | ||
5214 | #define wxListView_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5215 | static PyObject *_wrap_wxListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5216 | PyObject * _resultobj; | |
5217 | bool _result; | |
5218 | wxListView * _arg0; | |
5219 | wxWindow * _arg1; | |
5220 | wxWindowID _arg2 = (wxWindowID ) -1; | |
5221 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5222 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5223 | long _arg5 = (long ) (wxLC_REPORT); | |
5224 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
5225 | wxString * _arg7 = (wxString *) &"listctrl"; | |
5226 | PyObject * _argo0 = 0; | |
5227 | PyObject * _argo1 = 0; | |
5228 | wxPoint temp; | |
5229 | PyObject * _obj3 = 0; | |
5230 | wxSize temp0; | |
5231 | PyObject * _obj4 = 0; | |
5232 | PyObject * _argo6 = 0; | |
5233 | PyObject * _obj7 = 0; | |
5234 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
5235 | ||
5236 | self = self; | |
5237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListView_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
5238 | return NULL; | |
5239 | if (_argo0) { | |
5240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Create. Expected _wxListView_p."); | |
5243 | return NULL; | |
5244 | } | |
5245 | } | |
5246 | if (_argo1) { | |
5247 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5248 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListView_Create. Expected _wxWindow_p."); | |
5250 | return NULL; | |
5251 | } | |
5252 | } | |
5253 | if (_obj3) | |
5254 | { | |
5255 | _arg3 = &temp; | |
5256 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5257 | return NULL; | |
5258 | } | |
5259 | if (_obj4) | |
5260 | { | |
5261 | _arg4 = &temp0; | |
5262 | if (! wxSize_helper(_obj4, &_arg4)) | |
5263 | return NULL; | |
5264 | } | |
5265 | if (_argo6) { | |
5266 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
5267 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
5268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListView_Create. Expected _wxValidator_p."); | |
5269 | return NULL; | |
5270 | } | |
5271 | } | |
5272 | if (_obj7) | |
5273 | { | |
5274 | #if PYTHON_API_VERSION >= 1009 | |
5275 | char* tmpPtr; int tmpSize; | |
5276 | if (!PyString_Check(_obj7) && !PyUnicode_Check(_obj7)) { | |
5277 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5278 | return NULL; | |
5279 | } | |
5280 | if (PyString_AsStringAndSize(_obj7, &tmpPtr, &tmpSize) == -1) | |
5281 | return NULL; | |
5282 | _arg7 = new wxString(tmpPtr, tmpSize); | |
5283 | #else | |
5284 | if (!PyString_Check(_obj7)) { | |
5285 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5286 | return NULL; | |
5287 | } | |
5288 | _arg7 = new wxString(PyString_AS_STRING(_obj7), PyString_GET_SIZE(_obj7)); | |
5289 | #endif | |
5290 | } | |
5291 | { | |
474c48f9 | 5292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
5293 | _result = (bool )wxListView_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
5294 | ||
474c48f9 | 5295 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5296 | if (PyErr_Occurred()) return NULL; |
5297 | } _resultobj = Py_BuildValue("i",_result); | |
5298 | { | |
5299 | if (_obj7) | |
5300 | delete _arg7; | |
5301 | } | |
5302 | return _resultobj; | |
5303 | } | |
5304 | ||
5305 | #define wxListView_Select(_swigobj,_swigarg0,_swigarg1) (_swigobj->Select(_swigarg0,_swigarg1)) | |
5306 | static PyObject *_wrap_wxListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5307 | PyObject * _resultobj; | |
5308 | wxListView * _arg0; | |
5309 | long _arg1; | |
5310 | bool _arg2 = (bool ) TRUE; | |
5311 | PyObject * _argo0 = 0; | |
5312 | int tempbool2 = (int) TRUE; | |
5313 | char *_kwnames[] = { "self","n","on", NULL }; | |
5314 | ||
5315 | self = self; | |
5316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListView_Select",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
5317 | return NULL; | |
5318 | if (_argo0) { | |
5319 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5320 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Select. Expected _wxListView_p."); | |
5322 | return NULL; | |
5323 | } | |
5324 | } | |
5325 | _arg2 = (bool ) tempbool2; | |
5326 | { | |
474c48f9 | 5327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
5328 | wxListView_Select(_arg0,_arg1,_arg2); |
5329 | ||
474c48f9 | 5330 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5331 | if (PyErr_Occurred()) return NULL; |
5332 | } Py_INCREF(Py_None); | |
5333 | _resultobj = Py_None; | |
5334 | return _resultobj; | |
5335 | } | |
5336 | ||
5337 | #define wxListView_Focus(_swigobj,_swigarg0) (_swigobj->Focus(_swigarg0)) | |
5338 | static PyObject *_wrap_wxListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5339 | PyObject * _resultobj; | |
5340 | wxListView * _arg0; | |
5341 | long _arg1; | |
5342 | PyObject * _argo0 = 0; | |
5343 | char *_kwnames[] = { "self","index", NULL }; | |
5344 | ||
5345 | self = self; | |
5346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_Focus",_kwnames,&_argo0,&_arg1)) | |
5347 | return NULL; | |
5348 | if (_argo0) { | |
5349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Focus. Expected _wxListView_p."); | |
5352 | return NULL; | |
5353 | } | |
5354 | } | |
5355 | { | |
474c48f9 | 5356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
5357 | wxListView_Focus(_arg0,_arg1); |
5358 | ||
474c48f9 | 5359 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5360 | if (PyErr_Occurred()) return NULL; |
5361 | } Py_INCREF(Py_None); | |
5362 | _resultobj = Py_None; | |
5363 | return _resultobj; | |
5364 | } | |
5365 | ||
5366 | #define wxListView_GetFocusedItem(_swigobj) (_swigobj->GetFocusedItem()) | |
5367 | static PyObject *_wrap_wxListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5368 | PyObject * _resultobj; | |
5369 | long _result; | |
5370 | wxListView * _arg0; | |
5371 | PyObject * _argo0 = 0; | |
5372 | char *_kwnames[] = { "self", NULL }; | |
5373 | ||
5374 | self = self; | |
5375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFocusedItem",_kwnames,&_argo0)) | |
5376 | return NULL; | |
5377 | if (_argo0) { | |
5378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFocusedItem. Expected _wxListView_p."); | |
5381 | return NULL; | |
5382 | } | |
5383 | } | |
5384 | { | |
474c48f9 | 5385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
5386 | _result = (long )wxListView_GetFocusedItem(_arg0); |
5387 | ||
474c48f9 | 5388 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5389 | if (PyErr_Occurred()) return NULL; |
5390 | } _resultobj = Py_BuildValue("l",_result); | |
5391 | return _resultobj; | |
5392 | } | |
5393 | ||
5394 | #define wxListView_GetNextSelected(_swigobj,_swigarg0) (_swigobj->GetNextSelected(_swigarg0)) | |
5395 | static PyObject *_wrap_wxListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5396 | PyObject * _resultobj; | |
5397 | long _result; | |
5398 | wxListView * _arg0; | |
5399 | long _arg1; | |
5400 | PyObject * _argo0 = 0; | |
5401 | char *_kwnames[] = { "self","item", NULL }; | |
5402 | ||
5403 | self = self; | |
5404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_GetNextSelected",_kwnames,&_argo0,&_arg1)) | |
5405 | return NULL; | |
5406 | if (_argo0) { | |
5407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetNextSelected. Expected _wxListView_p."); | |
5410 | return NULL; | |
5411 | } | |
5412 | } | |
5413 | { | |
474c48f9 | 5414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
5415 | _result = (long )wxListView_GetNextSelected(_arg0,_arg1); |
5416 | ||
474c48f9 | 5417 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5418 | if (PyErr_Occurred()) return NULL; |
5419 | } _resultobj = Py_BuildValue("l",_result); | |
5420 | return _resultobj; | |
5421 | } | |
5422 | ||
5423 | #define wxListView_GetFirstSelected(_swigobj) (_swigobj->GetFirstSelected()) | |
5424 | static PyObject *_wrap_wxListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5425 | PyObject * _resultobj; | |
5426 | long _result; | |
5427 | wxListView * _arg0; | |
5428 | PyObject * _argo0 = 0; | |
5429 | char *_kwnames[] = { "self", NULL }; | |
5430 | ||
5431 | self = self; | |
5432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFirstSelected",_kwnames,&_argo0)) | |
5433 | return NULL; | |
5434 | if (_argo0) { | |
5435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFirstSelected. Expected _wxListView_p."); | |
5438 | return NULL; | |
5439 | } | |
5440 | } | |
5441 | { | |
474c48f9 | 5442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
5443 | _result = (long )wxListView_GetFirstSelected(_arg0); |
5444 | ||
474c48f9 | 5445 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5446 | if (PyErr_Occurred()) return NULL; |
5447 | } _resultobj = Py_BuildValue("l",_result); | |
5448 | return _resultobj; | |
5449 | } | |
5450 | ||
5451 | #define wxListView_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) | |
5452 | static PyObject *_wrap_wxListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5453 | PyObject * _resultobj; | |
5454 | bool _result; | |
5455 | wxListView * _arg0; | |
5456 | long _arg1; | |
5457 | PyObject * _argo0 = 0; | |
5458 | char *_kwnames[] = { "self","index", NULL }; | |
5459 | ||
5460 | self = self; | |
5461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_IsSelected",_kwnames,&_argo0,&_arg1)) | |
5462 | return NULL; | |
5463 | if (_argo0) { | |
5464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_IsSelected. Expected _wxListView_p."); | |
5467 | return NULL; | |
5468 | } | |
5469 | } | |
5470 | { | |
474c48f9 | 5471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
5472 | _result = (bool )wxListView_IsSelected(_arg0,_arg1); |
5473 | ||
474c48f9 | 5474 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5475 | if (PyErr_Occurred()) return NULL; |
5476 | } _resultobj = Py_BuildValue("i",_result); | |
5477 | return _resultobj; | |
5478 | } | |
5479 | ||
5480 | #define wxListView_SetColumnImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnImage(_swigarg0,_swigarg1)) | |
5481 | static PyObject *_wrap_wxListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5482 | PyObject * _resultobj; | |
5483 | wxListView * _arg0; | |
5484 | int _arg1; | |
5485 | int _arg2; | |
5486 | PyObject * _argo0 = 0; | |
5487 | char *_kwnames[] = { "self","col","image", NULL }; | |
5488 | ||
5489 | self = self; | |
5490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListView_SetColumnImage",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5491 | return NULL; | |
5492 | if (_argo0) { | |
5493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_SetColumnImage. Expected _wxListView_p."); | |
5496 | return NULL; | |
5497 | } | |
5498 | } | |
5499 | { | |
474c48f9 | 5500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
5501 | wxListView_SetColumnImage(_arg0,_arg1,_arg2); |
5502 | ||
474c48f9 | 5503 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5504 | if (PyErr_Occurred()) return NULL; |
5505 | } Py_INCREF(Py_None); | |
5506 | _resultobj = Py_None; | |
5507 | return _resultobj; | |
5508 | } | |
5509 | ||
5510 | #define wxListView_ClearColumnImage(_swigobj,_swigarg0) (_swigobj->ClearColumnImage(_swigarg0)) | |
5511 | static PyObject *_wrap_wxListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5512 | PyObject * _resultobj; | |
5513 | wxListView * _arg0; | |
5514 | int _arg1; | |
5515 | PyObject * _argo0 = 0; | |
5516 | char *_kwnames[] = { "self","col", NULL }; | |
5517 | ||
5518 | self = self; | |
5519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListView_ClearColumnImage",_kwnames,&_argo0,&_arg1)) | |
5520 | return NULL; | |
5521 | if (_argo0) { | |
5522 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5523 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_ClearColumnImage. Expected _wxListView_p."); | |
5525 | return NULL; | |
5526 | } | |
5527 | } | |
5528 | { | |
474c48f9 | 5529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
059a841c RD |
5530 | wxListView_ClearColumnImage(_arg0,_arg1); |
5531 | ||
474c48f9 | 5532 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5533 | if (PyErr_Occurred()) return NULL; |
5534 | } Py_INCREF(Py_None); | |
5535 | _resultobj = Py_None; | |
5536 | return _resultobj; | |
5537 | } | |
5538 | ||
aa2a5b86 RD |
5539 | #define new_wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
5540 | static PyObject *_wrap_new_wxTreeItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5541 | PyObject * _resultobj; |
aa2a5b86 RD |
5542 | wxTreeItemAttr * _result; |
5543 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5544 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5545 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5546 | wxColour temp; | |
5547 | PyObject * _obj0 = 0; | |
5548 | wxColour temp0; | |
5549 | PyObject * _obj1 = 0; | |
5550 | PyObject * _argo2 = 0; | |
5551 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
d5c9047a | 5552 | char _ptemp[128]; |
8ab979d7 RD |
5553 | |
5554 | self = self; | |
aa2a5b86 RD |
5555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTreeItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) |
5556 | return NULL; | |
5557 | if (_obj0) | |
5558 | { | |
5559 | _arg0 = &temp; | |
5560 | if (! wxColour_helper(_obj0, &_arg0)) | |
5561 | return NULL; | |
5562 | } | |
5563 | if (_obj1) | |
5564 | { | |
5565 | _arg1 = &temp0; | |
5566 | if (! wxColour_helper(_obj1, &_arg1)) | |
5567 | return NULL; | |
5568 | } | |
5569 | if (_argo2) { | |
5570 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5571 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
5572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTreeItemAttr. Expected _wxFont_p."); | |
8ab979d7 | 5573 | return NULL; |
aa2a5b86 RD |
5574 | } |
5575 | } | |
cf694132 | 5576 | { |
474c48f9 | 5577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
aa2a5b86 | 5578 | _result = (wxTreeItemAttr *)new_wxTreeItemAttr(*_arg0,*_arg1,*_arg2); |
cf694132 | 5579 | |
474c48f9 | 5580 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5581 | if (PyErr_Occurred()) return NULL; |
1d99702e | 5582 | } if (_result) { |
aa2a5b86 | 5583 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemAttr_p"); |
1d99702e RD |
5584 | _resultobj = Py_BuildValue("s",_ptemp); |
5585 | } else { | |
5586 | Py_INCREF(Py_None); | |
5587 | _resultobj = Py_None; | |
5588 | } | |
8ab979d7 RD |
5589 | return _resultobj; |
5590 | } | |
5591 | ||
aa2a5b86 RD |
5592 | #define wxTreeItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
5593 | static PyObject *_wrap_wxTreeItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5594 | PyObject * _resultobj; |
aa2a5b86 RD |
5595 | wxTreeItemAttr * _arg0; |
5596 | wxColour * _arg1; | |
1d99702e | 5597 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
5598 | wxColour temp; |
5599 | PyObject * _obj1 = 0; | |
5600 | char *_kwnames[] = { "self","colText", NULL }; | |
8ab979d7 RD |
5601 | |
5602 | self = self; | |
aa2a5b86 | 5603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5604 | return NULL; |
1d99702e RD |
5605 | if (_argo0) { |
5606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetTextColour. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5609 | return NULL; |
5610 | } | |
5611 | } | |
aa2a5b86 RD |
5612 | { |
5613 | _arg1 = &temp; | |
5614 | if (! wxColour_helper(_obj1, &_arg1)) | |
5615 | return NULL; | |
5616 | } | |
cf694132 | 5617 | { |
474c48f9 | 5618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
aa2a5b86 | 5619 | wxTreeItemAttr_SetTextColour(_arg0,*_arg1); |
cf694132 | 5620 | |
474c48f9 | 5621 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5622 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5623 | } Py_INCREF(Py_None); |
d5c9047a | 5624 | _resultobj = Py_None; |
8ab979d7 RD |
5625 | return _resultobj; |
5626 | } | |
5627 | ||
aa2a5b86 RD |
5628 | #define wxTreeItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
5629 | static PyObject *_wrap_wxTreeItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5630 | PyObject * _resultobj; |
aa2a5b86 RD |
5631 | wxTreeItemAttr * _arg0; |
5632 | wxColour * _arg1; | |
1d99702e | 5633 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
5634 | wxColour temp; |
5635 | PyObject * _obj1 = 0; | |
5636 | char *_kwnames[] = { "self","colBack", NULL }; | |
8ab979d7 RD |
5637 | |
5638 | self = self; | |
aa2a5b86 | 5639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5640 | return NULL; |
1d99702e RD |
5641 | if (_argo0) { |
5642 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5643 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5645 | return NULL; |
5646 | } | |
5647 | } | |
aa2a5b86 RD |
5648 | { |
5649 | _arg1 = &temp; | |
5650 | if (! wxColour_helper(_obj1, &_arg1)) | |
5651 | return NULL; | |
5652 | } | |
cf694132 | 5653 | { |
474c48f9 | 5654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
aa2a5b86 | 5655 | wxTreeItemAttr_SetBackgroundColour(_arg0,*_arg1); |
cf694132 | 5656 | |
474c48f9 | 5657 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5658 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 RD |
5659 | } Py_INCREF(Py_None); |
5660 | _resultobj = Py_None; | |
8ab979d7 RD |
5661 | return _resultobj; |
5662 | } | |
5663 | ||
aa2a5b86 RD |
5664 | #define wxTreeItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
5665 | static PyObject *_wrap_wxTreeItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 5666 | PyObject * _resultobj; |
aa2a5b86 RD |
5667 | wxTreeItemAttr * _arg0; |
5668 | wxFont * _arg1; | |
f6bcfd97 BP |
5669 | PyObject * _argo0 = 0; |
5670 | PyObject * _argo1 = 0; | |
aa2a5b86 | 5671 | char *_kwnames[] = { "self","font", NULL }; |
f6bcfd97 BP |
5672 | |
5673 | self = self; | |
aa2a5b86 | 5674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) |
f6bcfd97 BP |
5675 | return NULL; |
5676 | if (_argo0) { | |
5677 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5678 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetFont. Expected _wxTreeItemAttr_p."); | |
f6bcfd97 BP |
5680 | return NULL; |
5681 | } | |
5682 | } | |
5683 | if (_argo1) { | |
5684 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
aa2a5b86 RD |
5685 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { |
5686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemAttr_SetFont. Expected _wxFont_p."); | |
f6bcfd97 BP |
5687 | return NULL; |
5688 | } | |
5689 | } | |
5690 | { | |
474c48f9 | 5691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
aa2a5b86 | 5692 | wxTreeItemAttr_SetFont(_arg0,*_arg1); |
f6bcfd97 | 5693 | |
474c48f9 | 5694 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5695 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 RD |
5696 | } Py_INCREF(Py_None); |
5697 | _resultobj = Py_None; | |
f6bcfd97 BP |
5698 | return _resultobj; |
5699 | } | |
5700 | ||
aa2a5b86 RD |
5701 | #define wxTreeItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) |
5702 | static PyObject *_wrap_wxTreeItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5703 | PyObject * _resultobj; |
aa2a5b86 RD |
5704 | bool _result; |
5705 | wxTreeItemAttr * _arg0; | |
5706 | PyObject * _argo0 = 0; | |
5707 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
5708 | |
5709 | self = self; | |
aa2a5b86 | 5710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasTextColour",_kwnames,&_argo0)) |
8ab979d7 | 5711 | return NULL; |
aa2a5b86 RD |
5712 | if (_argo0) { |
5713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasTextColour. Expected _wxTreeItemAttr_p."); | |
5716 | return NULL; | |
5717 | } | |
5718 | } | |
cf694132 | 5719 | { |
474c48f9 | 5720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
aa2a5b86 | 5721 | _result = (bool )wxTreeItemAttr_HasTextColour(_arg0); |
cf694132 | 5722 | |
474c48f9 | 5723 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5724 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5725 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5726 | return _resultobj; |
5727 | } | |
5728 | ||
aa2a5b86 RD |
5729 | #define wxTreeItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) |
5730 | static PyObject *_wrap_wxTreeItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 5731 | PyObject * _resultobj; |
aa2a5b86 RD |
5732 | bool _result; |
5733 | wxTreeItemAttr * _arg0; | |
1d99702e | 5734 | PyObject * _argo0 = 0; |
efc5f224 | 5735 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
5736 | |
5737 | self = self; | |
aa2a5b86 | 5738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasBackgroundColour",_kwnames,&_argo0)) |
cf694132 | 5739 | return NULL; |
1d99702e RD |
5740 | if (_argo0) { |
5741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasBackgroundColour. Expected _wxTreeItemAttr_p."); | |
cf694132 RD |
5744 | return NULL; |
5745 | } | |
5746 | } | |
5747 | { | |
474c48f9 | 5748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
aa2a5b86 | 5749 | _result = (bool )wxTreeItemAttr_HasBackgroundColour(_arg0); |
cf694132 | 5750 | |
474c48f9 | 5751 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5752 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5753 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
5754 | return _resultobj; |
5755 | } | |
5756 | ||
aa2a5b86 RD |
5757 | #define wxTreeItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) |
5758 | static PyObject *_wrap_wxTreeItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5759 | PyObject * _resultobj; |
aa2a5b86 RD |
5760 | bool _result; |
5761 | wxTreeItemAttr * _arg0; | |
1d99702e | 5762 | PyObject * _argo0 = 0; |
aa2a5b86 | 5763 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5764 | |
5765 | self = self; | |
aa2a5b86 | 5766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasFont",_kwnames,&_argo0)) |
8ab979d7 | 5767 | return NULL; |
1d99702e RD |
5768 | if (_argo0) { |
5769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasFont. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5772 | return NULL; |
5773 | } | |
5774 | } | |
cf694132 | 5775 | { |
474c48f9 | 5776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
aa2a5b86 | 5777 | _result = (bool )wxTreeItemAttr_HasFont(_arg0); |
cf694132 | 5778 | |
474c48f9 | 5779 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5780 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5781 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5782 | return _resultobj; |
5783 | } | |
5784 | ||
aa2a5b86 RD |
5785 | #define wxTreeItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
5786 | static PyObject *_wrap_wxTreeItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5787 | PyObject * _resultobj; |
aa2a5b86 RD |
5788 | wxColour * _result; |
5789 | wxTreeItemAttr * _arg0; | |
1d99702e | 5790 | PyObject * _argo0 = 0; |
efc5f224 | 5791 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5792 | char _ptemp[128]; |
5793 | ||
5794 | self = self; | |
aa2a5b86 | 5795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 5796 | return NULL; |
1d99702e RD |
5797 | if (_argo0) { |
5798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetTextColour. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5801 | return NULL; |
5802 | } | |
5803 | } | |
cf694132 | 5804 | { |
474c48f9 | 5805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3e212503 | 5806 | _result = new wxColour (wxTreeItemAttr_GetTextColour(_arg0)); |
cf694132 | 5807 | |
474c48f9 | 5808 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5809 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
5810 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5811 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
5812 | return _resultobj; |
5813 | } | |
5814 | ||
aa2a5b86 RD |
5815 | #define wxTreeItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) |
5816 | static PyObject *_wrap_wxTreeItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
630d84f2 | 5817 | PyObject * _resultobj; |
aa2a5b86 RD |
5818 | wxColour * _result; |
5819 | wxTreeItemAttr * _arg0; | |
1d99702e | 5820 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
5821 | char *_kwnames[] = { "self", NULL }; |
5822 | char _ptemp[128]; | |
5823 | ||
5824 | self = self; | |
5825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
5826 | return NULL; | |
5827 | if (_argo0) { | |
5828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5831 | return NULL; | |
5832 | } | |
5833 | } | |
5834 | { | |
474c48f9 | 5835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3e212503 | 5836 | _result = new wxColour (wxTreeItemAttr_GetBackgroundColour(_arg0)); |
aa2a5b86 | 5837 | |
474c48f9 | 5838 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 | 5839 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
5840 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5841 | _resultobj = Py_BuildValue("s",_ptemp); | |
aa2a5b86 RD |
5842 | return _resultobj; |
5843 | } | |
5844 | ||
5845 | #define wxTreeItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
5846 | static PyObject *_wrap_wxTreeItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5847 | PyObject * _resultobj; | |
5848 | wxFont * _result; | |
5849 | wxTreeItemAttr * _arg0; | |
5850 | PyObject * _argo0 = 0; | |
5851 | char *_kwnames[] = { "self", NULL }; | |
5852 | char _ptemp[128]; | |
5853 | ||
5854 | self = self; | |
5855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetFont",_kwnames,&_argo0)) | |
5856 | return NULL; | |
5857 | if (_argo0) { | |
5858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetFont. Expected _wxTreeItemAttr_p."); | |
5861 | return NULL; | |
5862 | } | |
5863 | } | |
5864 | { | |
474c48f9 | 5865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3e212503 | 5866 | _result = new wxFont (wxTreeItemAttr_GetFont(_arg0)); |
aa2a5b86 | 5867 | |
474c48f9 | 5868 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 | 5869 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
5870 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
5871 | _resultobj = Py_BuildValue("s",_ptemp); | |
aa2a5b86 RD |
5872 | return _resultobj; |
5873 | } | |
5874 | ||
5875 | #define new_wxTreeItemId() (new wxTreeItemId()) | |
5876 | static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5877 | PyObject * _resultobj; | |
5878 | wxTreeItemId * _result; | |
5879 | char *_kwnames[] = { NULL }; | |
5880 | char _ptemp[128]; | |
5881 | ||
5882 | self = self; | |
5883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames)) | |
5884 | return NULL; | |
5885 | { | |
474c48f9 | 5886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
aa2a5b86 RD |
5887 | _result = (wxTreeItemId *)new_wxTreeItemId(); |
5888 | ||
474c48f9 | 5889 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5890 | if (PyErr_Occurred()) return NULL; |
5891 | } if (_result) { | |
5892 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
5893 | _resultobj = Py_BuildValue("s",_ptemp); | |
5894 | } else { | |
5895 | Py_INCREF(Py_None); | |
5896 | _resultobj = Py_None; | |
5897 | } | |
5898 | return _resultobj; | |
5899 | } | |
5900 | ||
5901 | #define delete_wxTreeItemId(_swigobj) (delete _swigobj) | |
5902 | static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5903 | PyObject * _resultobj; | |
5904 | wxTreeItemId * _arg0; | |
5905 | PyObject * _argo0 = 0; | |
5906 | char *_kwnames[] = { "self", NULL }; | |
5907 | ||
5908 | self = self; | |
5909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0)) | |
5910 | return NULL; | |
5911 | if (_argo0) { | |
5912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p."); | |
5915 | return NULL; | |
5916 | } | |
5917 | } | |
5918 | { | |
474c48f9 | 5919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
aa2a5b86 RD |
5920 | delete_wxTreeItemId(_arg0); |
5921 | ||
474c48f9 | 5922 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5923 | if (PyErr_Occurred()) return NULL; |
5924 | } Py_INCREF(Py_None); | |
5925 | _resultobj = Py_None; | |
5926 | return _resultobj; | |
5927 | } | |
5928 | ||
5929 | #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk()) | |
5930 | static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5931 | PyObject * _resultobj; | |
5932 | bool _result; | |
5933 | wxTreeItemId * _arg0; | |
5934 | PyObject * _argo0 = 0; | |
5935 | char *_kwnames[] = { "self", NULL }; | |
5936 | ||
5937 | self = self; | |
5938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0)) | |
5939 | return NULL; | |
5940 | if (_argo0) { | |
5941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p."); | |
5944 | return NULL; | |
5945 | } | |
5946 | } | |
5947 | { | |
474c48f9 | 5948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
aa2a5b86 RD |
5949 | _result = (bool )wxTreeItemId_IsOk(_arg0); |
5950 | ||
474c48f9 | 5951 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5952 | if (PyErr_Occurred()) return NULL; |
5953 | } _resultobj = Py_BuildValue("i",_result); | |
5954 | return _resultobj; | |
5955 | } | |
5956 | ||
5957 | static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) { | |
5958 | if (! other) return -1; | |
5959 | return *self != *other; | |
5960 | } | |
5961 | static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5962 | PyObject * _resultobj; | |
5963 | int _result; | |
5964 | wxTreeItemId * _arg0; | |
5965 | wxTreeItemId * _arg1; | |
5966 | PyObject * _argo0 = 0; | |
5967 | PyObject * _argo1 = 0; | |
5968 | char *_kwnames[] = { "self","other", NULL }; | |
5969 | ||
5970 | self = self; | |
5971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1)) | |
5972 | return NULL; | |
5973 | if (_argo0) { | |
5974 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5975 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5976 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5977 | return NULL; | |
5978 | } | |
5979 | } | |
5980 | if (_argo1) { | |
5981 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5982 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
5983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5984 | return NULL; | |
5985 | } | |
5986 | } | |
5987 | { | |
474c48f9 | 5988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
aa2a5b86 RD |
5989 | _result = (int )wxTreeItemId___cmp__(_arg0,_arg1); |
5990 | ||
474c48f9 | 5991 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5992 | if (PyErr_Occurred()) return NULL; |
5993 | } _resultobj = Py_BuildValue("i",_result); | |
5994 | return _resultobj; | |
5995 | } | |
5996 | ||
5997 | static void *SwigwxPyTreeItemDataTowxObject(void *ptr) { | |
5998 | wxPyTreeItemData *src; | |
5999 | wxObject *dest; | |
6000 | src = (wxPyTreeItemData *) ptr; | |
6001 | dest = (wxObject *) src; | |
6002 | return (void *) dest; | |
6003 | } | |
6004 | ||
6005 | #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) | |
6006 | static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6007 | PyObject * _resultobj; | |
6008 | wxPyTreeItemData * _result; | |
6009 | PyObject * _arg0 = (PyObject *) NULL; | |
6010 | PyObject * _obj0 = 0; | |
6011 | char *_kwnames[] = { "obj", NULL }; | |
6012 | char _ptemp[128]; | |
6013 | ||
6014 | self = self; | |
6015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0)) | |
6016 | return NULL; | |
6017 | if (_obj0) | |
6018 | { | |
6019 | _arg0 = _obj0; | |
6020 | } | |
6021 | { | |
474c48f9 | 6022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
aa2a5b86 RD |
6023 | _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0); |
6024 | ||
474c48f9 | 6025 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6026 | if (PyErr_Occurred()) return NULL; |
6027 | } if (_result) { | |
6028 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
6029 | _resultobj = Py_BuildValue("s",_ptemp); | |
6030 | } else { | |
6031 | Py_INCREF(Py_None); | |
6032 | _resultobj = Py_None; | |
6033 | } | |
6034 | return _resultobj; | |
6035 | } | |
6036 | ||
6037 | #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData()) | |
6038 | static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6039 | PyObject * _resultobj; | |
6040 | PyObject * _result; | |
6041 | wxPyTreeItemData * _arg0; | |
6042 | PyObject * _argo0 = 0; | |
6043 | char *_kwnames[] = { "self", NULL }; | |
6044 | ||
6045 | self = self; | |
6046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0)) | |
6047 | return NULL; | |
6048 | if (_argo0) { | |
6049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p."); | |
6052 | return NULL; | |
6053 | } | |
6054 | } | |
6055 | { | |
474c48f9 | 6056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
aa2a5b86 RD |
6057 | _result = (PyObject *)wxTreeItemData_GetData(_arg0); |
6058 | ||
474c48f9 | 6059 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6060 | if (PyErr_Occurred()) return NULL; |
6061 | }{ | |
6062 | _resultobj = _result; | |
6063 | } | |
6064 | return _resultobj; | |
6065 | } | |
6066 | ||
6067 | #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
6068 | static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6069 | PyObject * _resultobj; | |
6070 | wxPyTreeItemData * _arg0; | |
6071 | PyObject * _arg1; | |
6072 | PyObject * _argo0 = 0; | |
6073 | PyObject * _obj1 = 0; | |
6074 | char *_kwnames[] = { "self","obj", NULL }; | |
6075 | ||
6076 | self = self; | |
6077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1)) | |
6078 | return NULL; | |
6079 | if (_argo0) { | |
6080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p."); | |
6083 | return NULL; | |
6084 | } | |
6085 | } | |
6086 | { | |
6087 | _arg1 = _obj1; | |
6088 | } | |
6089 | { | |
474c48f9 | 6090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
aa2a5b86 RD |
6091 | wxTreeItemData_SetData(_arg0,_arg1); |
6092 | ||
474c48f9 | 6093 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6094 | if (PyErr_Occurred()) return NULL; |
6095 | } Py_INCREF(Py_None); | |
6096 | _resultobj = Py_None; | |
6097 | return _resultobj; | |
6098 | } | |
6099 | ||
6100 | #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId()) | |
6101 | static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6102 | PyObject * _resultobj; | |
6103 | wxTreeItemId * _result; | |
6104 | wxPyTreeItemData * _arg0; | |
6105 | PyObject * _argo0 = 0; | |
6106 | char *_kwnames[] = { "self", NULL }; | |
6107 | char _ptemp[128]; | |
6108 | ||
6109 | self = self; | |
6110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0)) | |
6111 | return NULL; | |
6112 | if (_argo0) { | |
6113 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6114 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p."); | |
6116 | return NULL; | |
6117 | } | |
6118 | } | |
6119 | { | |
474c48f9 | 6120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
aa2a5b86 RD |
6121 | const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0); |
6122 | _result = (wxTreeItemId *) &_result_ref; | |
6123 | ||
474c48f9 | 6124 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6125 | if (PyErr_Occurred()) return NULL; |
6126 | } if (_result) { | |
6127 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
6128 | _resultobj = Py_BuildValue("s",_ptemp); | |
6129 | } else { | |
6130 | Py_INCREF(Py_None); | |
6131 | _resultobj = Py_None; | |
6132 | } | |
6133 | return _resultobj; | |
6134 | } | |
6135 | ||
6136 | #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
6137 | static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6138 | PyObject * _resultobj; | |
6139 | wxPyTreeItemData * _arg0; | |
6140 | wxTreeItemId * _arg1; | |
6141 | PyObject * _argo0 = 0; | |
6142 | PyObject * _argo1 = 0; | |
6143 | char *_kwnames[] = { "self","id", NULL }; | |
630d84f2 RD |
6144 | |
6145 | self = self; | |
efc5f224 | 6146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1)) |
630d84f2 | 6147 | return NULL; |
1d99702e RD |
6148 | if (_argo0) { |
6149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 6151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p."); |
630d84f2 RD |
6152 | return NULL; |
6153 | } | |
6154 | } | |
1d99702e RD |
6155 | if (_argo1) { |
6156 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6157 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
630d84f2 RD |
6158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p."); |
6159 | return NULL; | |
6160 | } | |
6161 | } | |
cf694132 | 6162 | { |
474c48f9 | 6163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6164 | wxTreeItemData_SetId(_arg0,*_arg1); |
6165 | ||
474c48f9 | 6166 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6167 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6168 | } Py_INCREF(Py_None); |
630d84f2 RD |
6169 | _resultobj = Py_None; |
6170 | return _resultobj; | |
6171 | } | |
6172 | ||
8bf5d46e RD |
6173 | static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) { |
6174 | wxTreeEvent *src; | |
6175 | wxNotifyEvent *dest; | |
6176 | src = (wxTreeEvent *) ptr; | |
6177 | dest = (wxNotifyEvent *) src; | |
6178 | return (void *) dest; | |
6179 | } | |
6180 | ||
8ab979d7 RD |
6181 | static void *SwigwxTreeEventTowxCommandEvent(void *ptr) { |
6182 | wxTreeEvent *src; | |
6183 | wxCommandEvent *dest; | |
6184 | src = (wxTreeEvent *) ptr; | |
6185 | dest = (wxCommandEvent *) src; | |
6186 | return (void *) dest; | |
6187 | } | |
6188 | ||
6189 | static void *SwigwxTreeEventTowxEvent(void *ptr) { | |
6190 | wxTreeEvent *src; | |
6191 | wxEvent *dest; | |
6192 | src = (wxTreeEvent *) ptr; | |
6193 | dest = (wxEvent *) src; | |
6194 | return (void *) dest; | |
6195 | } | |
6196 | ||
9df61a29 RD |
6197 | static void *SwigwxTreeEventTowxObject(void *ptr) { |
6198 | wxTreeEvent *src; | |
6199 | wxObject *dest; | |
6200 | src = (wxTreeEvent *) ptr; | |
6201 | dest = (wxObject *) src; | |
6202 | return (void *) dest; | |
6203 | } | |
6204 | ||
aa2a5b86 RD |
6205 | #define new_wxTreeEvent(_swigarg0,_swigarg1) (new wxTreeEvent(_swigarg0,_swigarg1)) |
6206 | static PyObject *_wrap_new_wxTreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6207 | PyObject * _resultobj; | |
6208 | wxTreeEvent * _result; | |
6209 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
6210 | int _arg1 = (int ) 0; | |
6211 | char *_kwnames[] = { "commandType","id", NULL }; | |
6212 | char _ptemp[128]; | |
6213 | ||
6214 | self = self; | |
6215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxTreeEvent",_kwnames,&_arg0,&_arg1)) | |
6216 | return NULL; | |
6217 | { | |
474c48f9 | 6218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
aa2a5b86 RD |
6219 | _result = (wxTreeEvent *)new_wxTreeEvent(_arg0,_arg1); |
6220 | ||
474c48f9 | 6221 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6222 | if (PyErr_Occurred()) return NULL; |
6223 | } if (_result) { | |
6224 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeEvent_p"); | |
6225 | _resultobj = Py_BuildValue("s",_ptemp); | |
6226 | } else { | |
6227 | Py_INCREF(Py_None); | |
6228 | _resultobj = Py_None; | |
6229 | } | |
6230 | return _resultobj; | |
6231 | } | |
6232 | ||
d5c9047a | 6233 | #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
efc5f224 | 6234 | static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6235 | PyObject * _resultobj; |
d5c9047a | 6236 | wxTreeItemId * _result; |
8ab979d7 | 6237 | wxTreeEvent * _arg0; |
1d99702e | 6238 | PyObject * _argo0 = 0; |
efc5f224 | 6239 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6240 | char _ptemp[128]; |
8ab979d7 RD |
6241 | |
6242 | self = self; | |
efc5f224 | 6243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 6244 | return NULL; |
1d99702e RD |
6245 | if (_argo0) { |
6246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6249 | return NULL; |
6250 | } | |
6251 | } | |
cf694132 | 6252 | { |
474c48f9 | 6253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6254 | _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0)); |
6255 | ||
474c48f9 | 6256 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6257 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6258 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 6259 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6260 | return _resultobj; |
6261 | } | |
6262 | ||
d5c9047a | 6263 | #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
efc5f224 | 6264 | static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6265 | PyObject * _resultobj; |
d5c9047a | 6266 | wxTreeItemId * _result; |
8ab979d7 | 6267 | wxTreeEvent * _arg0; |
1d99702e | 6268 | PyObject * _argo0 = 0; |
efc5f224 | 6269 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6270 | char _ptemp[128]; |
6271 | ||
6272 | self = self; | |
efc5f224 | 6273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0)) |
8ab979d7 | 6274 | return NULL; |
1d99702e RD |
6275 | if (_argo0) { |
6276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6279 | return NULL; |
6280 | } | |
6281 | } | |
cf694132 | 6282 | { |
474c48f9 | 6283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6284 | _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0)); |
6285 | ||
474c48f9 | 6286 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6287 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6288 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8ab979d7 RD |
6289 | _resultobj = Py_BuildValue("s",_ptemp); |
6290 | return _resultobj; | |
6291 | } | |
6292 | ||
d5c9047a | 6293 | #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
efc5f224 | 6294 | static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6295 | PyObject * _resultobj; |
d5c9047a | 6296 | wxPoint * _result; |
8ab979d7 | 6297 | wxTreeEvent * _arg0; |
1d99702e | 6298 | PyObject * _argo0 = 0; |
efc5f224 | 6299 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6300 | char _ptemp[128]; |
8ab979d7 RD |
6301 | |
6302 | self = self; | |
efc5f224 | 6303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 6304 | return NULL; |
1d99702e RD |
6305 | if (_argo0) { |
6306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6309 | return NULL; |
6310 | } | |
6311 | } | |
cf694132 | 6312 | { |
474c48f9 | 6313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6314 | _result = new wxPoint (wxTreeEvent_GetPoint(_arg0)); |
6315 | ||
474c48f9 | 6316 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6317 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6318 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
d5c9047a | 6319 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6320 | return _resultobj; |
6321 | } | |
6322 | ||
65191ae8 RD |
6323 | #define wxTreeEvent_GetKeyEvent(_swigobj) (_swigobj->GetKeyEvent()) |
6324 | static PyObject *_wrap_wxTreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6325 | PyObject * _resultobj; | |
6326 | wxKeyEvent * _result; | |
6327 | wxTreeEvent * _arg0; | |
6328 | PyObject * _argo0 = 0; | |
6329 | char *_kwnames[] = { "self", NULL }; | |
6330 | char _ptemp[128]; | |
6331 | ||
6332 | self = self; | |
6333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetKeyEvent",_kwnames,&_argo0)) | |
6334 | return NULL; | |
6335 | if (_argo0) { | |
6336 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6337 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetKeyEvent. Expected _wxTreeEvent_p."); | |
6339 | return NULL; | |
6340 | } | |
6341 | } | |
6342 | { | |
474c48f9 | 6343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 RD |
6344 | const wxKeyEvent & _result_ref = wxTreeEvent_GetKeyEvent(_arg0); |
6345 | _result = (wxKeyEvent *) &_result_ref; | |
6346 | ||
474c48f9 | 6347 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
6348 | if (PyErr_Occurred()) return NULL; |
6349 | } if (_result) { | |
6350 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxKeyEvent_p"); | |
6351 | _resultobj = Py_BuildValue("s",_ptemp); | |
6352 | } else { | |
6353 | Py_INCREF(Py_None); | |
6354 | _resultobj = Py_None; | |
6355 | } | |
6356 | return _resultobj; | |
6357 | } | |
6358 | ||
d5c9047a | 6359 | #define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
efc5f224 | 6360 | static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6361 | PyObject * _resultobj; |
d5c9047a | 6362 | int _result; |
8ab979d7 | 6363 | wxTreeEvent * _arg0; |
1d99702e | 6364 | PyObject * _argo0 = 0; |
efc5f224 | 6365 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6366 | |
6367 | self = self; | |
efc5f224 | 6368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 6369 | return NULL; |
1d99702e RD |
6370 | if (_argo0) { |
6371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6374 | return NULL; |
6375 | } | |
6376 | } | |
cf694132 | 6377 | { |
474c48f9 | 6378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6379 | _result = (int )wxTreeEvent_GetCode(_arg0); |
6380 | ||
474c48f9 | 6381 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6382 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6383 | } _resultobj = Py_BuildValue("i",_result); |
d5c9047a RD |
6384 | return _resultobj; |
6385 | } | |
6386 | ||
8bf5d46e | 6387 | #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 6388 | static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 6389 | PyObject * _resultobj; |
8bf5d46e | 6390 | wxString * _result; |
d5c9047a | 6391 | wxTreeEvent * _arg0; |
1d99702e | 6392 | PyObject * _argo0 = 0; |
efc5f224 | 6393 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
6394 | |
6395 | self = self; | |
efc5f224 | 6396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0)) |
d5c9047a | 6397 | return NULL; |
1d99702e RD |
6398 | if (_argo0) { |
6399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
8bf5d46e | 6401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p."); |
d5c9047a RD |
6402 | return NULL; |
6403 | } | |
6404 | } | |
cf694132 | 6405 | { |
474c48f9 | 6406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8bf5d46e RD |
6407 | const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0); |
6408 | _result = (wxString *) &_result_ref; | |
cf694132 | 6409 | |
474c48f9 | 6410 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6411 | if (PyErr_Occurred()) return NULL; |
8bf5d46e | 6412 | }{ |
eec92d76 | 6413 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8bf5d46e | 6414 | } |
8ab979d7 RD |
6415 | return _resultobj; |
6416 | } | |
6417 | ||
f6bcfd97 BP |
6418 | static void *SwigwxPyTreeCtrlTowxControl(void *ptr) { |
6419 | wxPyTreeCtrl *src; | |
8ab979d7 | 6420 | wxControl *dest; |
f6bcfd97 | 6421 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6422 | dest = (wxControl *) src; |
6423 | return (void *) dest; | |
6424 | } | |
6425 | ||
f6bcfd97 BP |
6426 | static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) { |
6427 | wxPyTreeCtrl *src; | |
8ab979d7 | 6428 | wxWindow *dest; |
f6bcfd97 | 6429 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6430 | dest = (wxWindow *) src; |
6431 | return (void *) dest; | |
6432 | } | |
6433 | ||
f6bcfd97 BP |
6434 | static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) { |
6435 | wxPyTreeCtrl *src; | |
8ab979d7 | 6436 | wxEvtHandler *dest; |
f6bcfd97 | 6437 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6438 | dest = (wxEvtHandler *) src; |
6439 | return (void *) dest; | |
6440 | } | |
6441 | ||
9df61a29 RD |
6442 | static void *SwigwxPyTreeCtrlTowxObject(void *ptr) { |
6443 | wxPyTreeCtrl *src; | |
6444 | wxObject *dest; | |
6445 | src = (wxPyTreeCtrl *) ptr; | |
6446 | dest = (wxObject *) src; | |
6447 | return (void *) dest; | |
6448 | } | |
6449 | ||
f6bcfd97 | 6450 | #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6451 | static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6452 | PyObject * _resultobj; |
f6bcfd97 | 6453 | wxPyTreeCtrl * _result; |
8ab979d7 | 6454 | wxWindow * _arg0; |
1d99702e | 6455 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
6456 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6457 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
aa2a5b86 | 6458 | long _arg4 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); |
b68dc582 | 6459 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
6460 | char * _arg6 = (char *) "wxTreeCtrl"; |
6461 | PyObject * _argo0 = 0; | |
2f90df85 RD |
6462 | wxPoint temp; |
6463 | PyObject * _obj2 = 0; | |
6464 | wxSize temp0; | |
6465 | PyObject * _obj3 = 0; | |
1d99702e | 6466 | PyObject * _argo5 = 0; |
efc5f224 | 6467 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
6468 | char _ptemp[128]; |
6469 | ||
6470 | self = self; | |
2f90df85 | 6471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 6472 | return NULL; |
1d99702e RD |
6473 | if (_argo0) { |
6474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p."); |
6477 | return NULL; | |
6478 | } | |
6479 | } | |
2f90df85 RD |
6480 | if (_obj2) |
6481 | { | |
6482 | _arg2 = &temp; | |
6483 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6484 | return NULL; |
2f90df85 RD |
6485 | } |
6486 | if (_obj3) | |
6487 | { | |
6488 | _arg3 = &temp0; | |
6489 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6490 | return NULL; |
2f90df85 | 6491 | } |
1d99702e RD |
6492 | if (_argo5) { |
6493 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6494 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
6495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p."); |
6496 | return NULL; | |
6497 | } | |
6498 | } | |
cf694132 | 6499 | { |
474c48f9 | 6500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 6501 | _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
cf694132 | 6502 | |
474c48f9 | 6503 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6504 | if (PyErr_Occurred()) return NULL; |
1d99702e | 6505 | } if (_result) { |
f6bcfd97 | 6506 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); |
1d99702e RD |
6507 | _resultobj = Py_BuildValue("s",_ptemp); |
6508 | } else { | |
6509 | Py_INCREF(Py_None); | |
6510 | _resultobj = Py_None; | |
6511 | } | |
8ab979d7 RD |
6512 | return _resultobj; |
6513 | } | |
6514 | ||
aa2a5b86 RD |
6515 | #define new_wxPreTreeCtrl() (new wxPyTreeCtrl()) |
6516 | static PyObject *_wrap_new_wxPreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 6517 | PyObject * _resultobj; |
aa2a5b86 RD |
6518 | wxPyTreeCtrl * _result; |
6519 | char *_kwnames[] = { NULL }; | |
6520 | char _ptemp[128]; | |
6521 | ||
6522 | self = self; | |
6523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTreeCtrl",_kwnames)) | |
6524 | return NULL; | |
6525 | { | |
474c48f9 | 6526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
aa2a5b86 RD |
6527 | _result = (wxPyTreeCtrl *)new_wxPreTreeCtrl(); |
6528 | ||
474c48f9 | 6529 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6530 | if (PyErr_Occurred()) return NULL; |
6531 | } if (_result) { | |
6532 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); | |
6533 | _resultobj = Py_BuildValue("s",_ptemp); | |
6534 | } else { | |
6535 | Py_INCREF(Py_None); | |
6536 | _resultobj = Py_None; | |
6537 | } | |
6538 | return _resultobj; | |
6539 | } | |
6540 | ||
6541 | #define wxTreeCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
6542 | static PyObject *_wrap_wxTreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6543 | PyObject * _resultobj; | |
6544 | bool _result; | |
f6bcfd97 | 6545 | wxPyTreeCtrl * _arg0; |
aa2a5b86 RD |
6546 | wxWindow * _arg1; |
6547 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6548 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6549 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6550 | long _arg5 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); | |
6551 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
6552 | char * _arg7 = (char *) "wxTreeCtrl"; | |
f6bcfd97 | 6553 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
6554 | PyObject * _argo1 = 0; |
6555 | wxPoint temp; | |
6556 | PyObject * _obj3 = 0; | |
6557 | wxSize temp0; | |
6558 | PyObject * _obj4 = 0; | |
6559 | PyObject * _argo6 = 0; | |
6560 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
f6bcfd97 BP |
6561 | |
6562 | self = self; | |
aa2a5b86 | 6563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxTreeCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
f6bcfd97 BP |
6564 | return NULL; |
6565 | if (_argo0) { | |
6566 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6567 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
aa2a5b86 RD |
6568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Create. Expected _wxPyTreeCtrl_p."); |
6569 | return NULL; | |
6570 | } | |
6571 | } | |
6572 | if (_argo1) { | |
6573 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6574 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Create. Expected _wxWindow_p."); | |
f6bcfd97 BP |
6576 | return NULL; |
6577 | } | |
6578 | } | |
aa2a5b86 | 6579 | if (_obj3) |
f6bcfd97 | 6580 | { |
aa2a5b86 RD |
6581 | _arg3 = &temp; |
6582 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6583 | return NULL; | |
f6bcfd97 | 6584 | } |
aa2a5b86 | 6585 | if (_obj4) |
f6bcfd97 | 6586 | { |
aa2a5b86 RD |
6587 | _arg4 = &temp0; |
6588 | if (! wxSize_helper(_obj4, &_arg4)) | |
6589 | return NULL; | |
f6bcfd97 | 6590 | } |
aa2a5b86 RD |
6591 | if (_argo6) { |
6592 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6593 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
6594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_Create. Expected _wxValidator_p."); | |
6595 | return NULL; | |
6596 | } | |
6597 | } | |
f6bcfd97 | 6598 | { |
474c48f9 | 6599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
aa2a5b86 | 6600 | _result = (bool )wxTreeCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
f6bcfd97 | 6601 | |
474c48f9 | 6602 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6603 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 6604 | } _resultobj = Py_BuildValue("i",_result); |
f6bcfd97 BP |
6605 | return _resultobj; |
6606 | } | |
6607 | ||
0220cbc1 RD |
6608 | #define wxTreeCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
6609 | static PyObject *_wrap_wxTreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c4165ad RD |
6610 | PyObject * _resultobj; |
6611 | wxPyTreeCtrl * _arg0; | |
aa2a5b86 RD |
6612 | PyObject * _arg1; |
6613 | PyObject * _arg2; | |
9c4165ad | 6614 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
6615 | PyObject * _obj1 = 0; |
6616 | PyObject * _obj2 = 0; | |
6617 | char *_kwnames[] = { "self","self","_class", NULL }; | |
9c4165ad RD |
6618 | |
6619 | self = self; | |
0220cbc1 | 6620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
9c4165ad RD |
6621 | return NULL; |
6622 | if (_argo0) { | |
6623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
0220cbc1 | 6625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setCallbackInfo. Expected _wxPyTreeCtrl_p."); |
9c4165ad RD |
6626 | return NULL; |
6627 | } | |
6628 | } | |
aa2a5b86 RD |
6629 | { |
6630 | _arg1 = _obj1; | |
6631 | } | |
6632 | { | |
6633 | _arg2 = _obj2; | |
6634 | } | |
9c4165ad | 6635 | { |
474c48f9 | 6636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0220cbc1 | 6637 | wxTreeCtrl__setCallbackInfo(_arg0,_arg1,_arg2); |
9c4165ad | 6638 | |
474c48f9 | 6639 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6640 | if (PyErr_Occurred()) return NULL; |
9c4165ad RD |
6641 | } Py_INCREF(Py_None); |
6642 | _resultobj = Py_None; | |
6643 | return _resultobj; | |
6644 | } | |
6645 | ||
d5c9047a | 6646 | #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount()) |
efc5f224 | 6647 | static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6648 | PyObject * _resultobj; |
c127177f | 6649 | size_t _result; |
f6bcfd97 | 6650 | wxPyTreeCtrl * _arg0; |
1d99702e | 6651 | PyObject * _argo0 = 0; |
efc5f224 | 6652 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6653 | |
6654 | self = self; | |
efc5f224 | 6655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0)) |
8ab979d7 | 6656 | return NULL; |
1d99702e RD |
6657 | if (_argo0) { |
6658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6661 | return NULL; |
6662 | } | |
6663 | } | |
cf694132 | 6664 | { |
474c48f9 | 6665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c127177f | 6666 | _result = (size_t )wxTreeCtrl_GetCount(_arg0); |
cf694132 | 6667 | |
474c48f9 | 6668 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6669 | if (PyErr_Occurred()) return NULL; |
c127177f | 6670 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6671 | return _resultobj; |
6672 | } | |
6673 | ||
d5c9047a | 6674 | #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) |
efc5f224 | 6675 | static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6676 | PyObject * _resultobj; |
d5c9047a | 6677 | unsigned int _result; |
f6bcfd97 | 6678 | wxPyTreeCtrl * _arg0; |
1d99702e | 6679 | PyObject * _argo0 = 0; |
efc5f224 | 6680 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6681 | |
6682 | self = self; | |
efc5f224 | 6683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0)) |
8ab979d7 | 6684 | return NULL; |
1d99702e RD |
6685 | if (_argo0) { |
6686 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6687 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6689 | return NULL; |
6690 | } | |
6691 | } | |
cf694132 | 6692 | { |
474c48f9 | 6693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6694 | _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0); |
6695 | ||
474c48f9 | 6696 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6697 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6698 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6699 | return _resultobj; |
6700 | } | |
6701 | ||
d5c9047a | 6702 | #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) |
efc5f224 | 6703 | static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6704 | PyObject * _resultobj; |
f6bcfd97 | 6705 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6706 | unsigned int _arg1; |
1d99702e | 6707 | PyObject * _argo0 = 0; |
efc5f224 | 6708 | char *_kwnames[] = { "self","indent", NULL }; |
8ab979d7 RD |
6709 | |
6710 | self = self; | |
efc5f224 | 6711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6712 | return NULL; |
1d99702e RD |
6713 | if (_argo0) { |
6714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6717 | return NULL; |
6718 | } | |
6719 | } | |
cf694132 | 6720 | { |
474c48f9 | 6721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6722 | wxTreeCtrl_SetIndent(_arg0,_arg1); |
6723 | ||
474c48f9 | 6724 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6725 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6726 | } Py_INCREF(Py_None); |
d5c9047a | 6727 | _resultobj = Py_None; |
8ab979d7 RD |
6728 | return _resultobj; |
6729 | } | |
6730 | ||
d5c9047a | 6731 | #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList()) |
efc5f224 | 6732 | static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6733 | PyObject * _resultobj; |
d5c9047a | 6734 | wxImageList * _result; |
f6bcfd97 | 6735 | wxPyTreeCtrl * _arg0; |
1d99702e | 6736 | PyObject * _argo0 = 0; |
efc5f224 | 6737 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6738 | |
6739 | self = self; | |
efc5f224 | 6740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0)) |
8ab979d7 | 6741 | return NULL; |
1d99702e RD |
6742 | if (_argo0) { |
6743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6746 | return NULL; |
6747 | } | |
6748 | } | |
cf694132 | 6749 | { |
474c48f9 | 6750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6751 | _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0); |
6752 | ||
474c48f9 | 6753 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6754 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 6755 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
6756 | return _resultobj; |
6757 | } | |
6758 | ||
d5c9047a | 6759 | #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList()) |
efc5f224 | 6760 | static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6761 | PyObject * _resultobj; |
d5c9047a | 6762 | wxImageList * _result; |
f6bcfd97 | 6763 | wxPyTreeCtrl * _arg0; |
1d99702e | 6764 | PyObject * _argo0 = 0; |
efc5f224 | 6765 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6766 | |
6767 | self = self; | |
efc5f224 | 6768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0)) |
8ab979d7 | 6769 | return NULL; |
1d99702e RD |
6770 | if (_argo0) { |
6771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6774 | return NULL; |
6775 | } | |
6776 | } | |
cf694132 | 6777 | { |
474c48f9 | 6778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6779 | _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0); |
6780 | ||
474c48f9 | 6781 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6782 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 6783 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
6784 | return _resultobj; |
6785 | } | |
6786 | ||
d5c9047a | 6787 | #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) |
efc5f224 | 6788 | static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6789 | PyObject * _resultobj; |
f6bcfd97 | 6790 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6791 | wxImageList * _arg1; |
1d99702e RD |
6792 | PyObject * _argo0 = 0; |
6793 | PyObject * _argo1 = 0; | |
efc5f224 | 6794 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
6795 | |
6796 | self = self; | |
efc5f224 | 6797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6798 | return NULL; |
1d99702e RD |
6799 | if (_argo0) { |
6800 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6801 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6802 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6803 | return NULL; |
6804 | } | |
6805 | } | |
1d99702e RD |
6806 | if (_argo1) { |
6807 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6808 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
6809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p."); |
6810 | return NULL; | |
6811 | } | |
6812 | } | |
cf694132 | 6813 | { |
474c48f9 | 6814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6815 | wxTreeCtrl_SetImageList(_arg0,_arg1); |
6816 | ||
474c48f9 | 6817 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6818 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6819 | } Py_INCREF(Py_None); |
d5c9047a | 6820 | _resultobj = Py_None; |
8ab979d7 RD |
6821 | return _resultobj; |
6822 | } | |
6823 | ||
d5c9047a | 6824 | #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0)) |
efc5f224 | 6825 | static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6826 | PyObject * _resultobj; |
f6bcfd97 | 6827 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6828 | wxImageList * _arg1; |
1d99702e RD |
6829 | PyObject * _argo0 = 0; |
6830 | PyObject * _argo1 = 0; | |
efc5f224 | 6831 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
6832 | |
6833 | self = self; | |
efc5f224 | 6834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6835 | return NULL; |
1d99702e RD |
6836 | if (_argo0) { |
6837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6840 | return NULL; |
6841 | } | |
6842 | } | |
1d99702e RD |
6843 | if (_argo1) { |
6844 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6845 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
6846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p."); |
6847 | return NULL; | |
6848 | } | |
6849 | } | |
cf694132 | 6850 | { |
474c48f9 | 6851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
6852 | wxTreeCtrl_SetStateImageList(_arg0,_arg1); |
6853 | ||
474c48f9 | 6854 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6855 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6856 | } Py_INCREF(Py_None); |
d5c9047a | 6857 | _resultobj = Py_None; |
8ab979d7 RD |
6858 | return _resultobj; |
6859 | } | |
6860 | ||
aa2a5b86 RD |
6861 | #define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0)) |
6862 | static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6863 | PyObject * _resultobj; | |
6864 | wxPyTreeCtrl * _arg0; | |
6865 | wxImageList * _arg1; | |
6866 | PyObject * _argo0 = 0; | |
6867 | PyObject * _argo1 = 0; | |
6868 | char *_kwnames[] = { "self","imageList", NULL }; | |
6869 | ||
6870 | self = self; | |
6871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1)) | |
6872 | return NULL; | |
6873 | if (_argo0) { | |
6874 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6875 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p."); | |
6877 | return NULL; | |
6878 | } | |
6879 | } | |
6880 | if (_argo1) { | |
6881 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6882 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p."); | |
6884 | return NULL; | |
6885 | } | |
6886 | } | |
6887 | { | |
474c48f9 | 6888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
aa2a5b86 RD |
6889 | wxTreeCtrl_AssignImageList(_arg0,_arg1); |
6890 | ||
474c48f9 | 6891 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6892 | if (PyErr_Occurred()) return NULL; |
6893 | } Py_INCREF(Py_None); | |
6894 | _resultobj = Py_None; | |
6895 | return _resultobj; | |
6896 | } | |
6897 | ||
6898 | #define wxTreeCtrl_AssignStateImageList(_swigobj,_swigarg0) (_swigobj->AssignStateImageList(_swigarg0)) | |
6899 | static PyObject *_wrap_wxTreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6900 | PyObject * _resultobj; | |
6901 | wxPyTreeCtrl * _arg0; | |
6902 | wxImageList * _arg1; | |
6903 | PyObject * _argo0 = 0; | |
6904 | PyObject * _argo1 = 0; | |
6905 | char *_kwnames[] = { "self","imageList", NULL }; | |
6906 | ||
6907 | self = self; | |
6908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignStateImageList",_kwnames,&_argo0,&_argo1)) | |
6909 | return NULL; | |
6910 | if (_argo0) { | |
6911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignStateImageList. Expected _wxPyTreeCtrl_p."); | |
6914 | return NULL; | |
6915 | } | |
6916 | } | |
6917 | if (_argo1) { | |
6918 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6919 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignStateImageList. Expected _wxImageList_p."); | |
6921 | return NULL; | |
6922 | } | |
6923 | } | |
6924 | { | |
474c48f9 | 6925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
aa2a5b86 RD |
6926 | wxTreeCtrl_AssignStateImageList(_arg0,_arg1); |
6927 | ||
474c48f9 | 6928 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6929 | if (PyErr_Occurred()) return NULL; |
6930 | } Py_INCREF(Py_None); | |
6931 | _resultobj = Py_None; | |
6932 | return _resultobj; | |
6933 | } | |
6934 | ||
b1462dfa RD |
6935 | #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing()) |
6936 | static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6937 | PyObject * _resultobj; | |
6938 | unsigned int _result; | |
f6bcfd97 | 6939 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
6940 | PyObject * _argo0 = 0; |
6941 | char *_kwnames[] = { "self", NULL }; | |
6942 | ||
6943 | self = self; | |
6944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0)) | |
6945 | return NULL; | |
6946 | if (_argo0) { | |
6947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
6950 | return NULL; |
6951 | } | |
6952 | } | |
6953 | { | |
474c48f9 | 6954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
6955 | _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0); |
6956 | ||
474c48f9 | 6957 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6958 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
6959 | } _resultobj = Py_BuildValue("i",_result); |
6960 | return _resultobj; | |
6961 | } | |
6962 | ||
6963 | #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0)) | |
6964 | static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6965 | PyObject * _resultobj; | |
f6bcfd97 | 6966 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
6967 | unsigned int _arg1; |
6968 | PyObject * _argo0 = 0; | |
6969 | char *_kwnames[] = { "self","spacing", NULL }; | |
6970 | ||
6971 | self = self; | |
6972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1)) | |
6973 | return NULL; | |
6974 | if (_argo0) { | |
6975 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6976 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
6978 | return NULL; |
6979 | } | |
6980 | } | |
6981 | { | |
474c48f9 | 6982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
6983 | wxTreeCtrl_SetSpacing(_arg0,_arg1); |
6984 | ||
474c48f9 | 6985 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6986 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
6987 | } Py_INCREF(Py_None); |
6988 | _resultobj = Py_None; | |
6989 | return _resultobj; | |
6990 | } | |
6991 | ||
d5c9047a | 6992 | #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
efc5f224 | 6993 | static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6994 | PyObject * _resultobj; |
d5c9047a | 6995 | wxString * _result; |
f6bcfd97 | 6996 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6997 | wxTreeItemId * _arg1; |
1d99702e RD |
6998 | PyObject * _argo0 = 0; |
6999 | PyObject * _argo1 = 0; | |
efc5f224 | 7000 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7001 | |
7002 | self = self; | |
efc5f224 | 7003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7004 | return NULL; |
1d99702e RD |
7005 | if (_argo0) { |
7006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7009 | return NULL; |
7010 | } | |
7011 | } | |
1d99702e RD |
7012 | if (_argo1) { |
7013 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7014 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p."); |
7016 | return NULL; | |
7017 | } | |
7018 | } | |
d5c9047a | 7019 | { |
474c48f9 | 7020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7021 | _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1)); |
7022 | ||
474c48f9 | 7023 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7024 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7025 | }{ |
eec92d76 | 7026 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
d5c9047a RD |
7027 | } |
7028 | { | |
7029 | delete _result; | |
7030 | } | |
8ab979d7 RD |
7031 | return _resultobj; |
7032 | } | |
7033 | ||
694759cf | 7034 | #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1)) |
efc5f224 | 7035 | static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7036 | PyObject * _resultobj; |
d5c9047a | 7037 | int _result; |
f6bcfd97 | 7038 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7039 | wxTreeItemId * _arg1; |
694759cf | 7040 | wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
7041 | PyObject * _argo0 = 0; |
7042 | PyObject * _argo1 = 0; | |
694759cf | 7043 | char *_kwnames[] = { "self","item","which", NULL }; |
8ab979d7 RD |
7044 | |
7045 | self = self; | |
694759cf | 7046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 7047 | return NULL; |
1d99702e RD |
7048 | if (_argo0) { |
7049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7052 | return NULL; |
7053 | } | |
7054 | } | |
1d99702e RD |
7055 | if (_argo1) { |
7056 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7057 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p."); |
7059 | return NULL; | |
7060 | } | |
7061 | } | |
cf694132 | 7062 | { |
474c48f9 | 7063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
694759cf | 7064 | _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2); |
cf694132 | 7065 | |
474c48f9 | 7066 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7067 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7068 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7069 | return _resultobj; |
7070 | } | |
7071 | ||
d5c9047a | 7072 | #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0)) |
efc5f224 | 7073 | static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7074 | PyObject * _resultobj; |
d5c9047a | 7075 | int _result; |
f6bcfd97 | 7076 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7077 | wxTreeItemId * _arg1; |
1d99702e RD |
7078 | PyObject * _argo0 = 0; |
7079 | PyObject * _argo1 = 0; | |
efc5f224 | 7080 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7081 | |
7082 | self = self; | |
efc5f224 | 7083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7084 | return NULL; |
1d99702e RD |
7085 | if (_argo0) { |
7086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7089 | return NULL; |
7090 | } | |
7091 | } | |
1d99702e RD |
7092 | if (_argo1) { |
7093 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7094 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p."); |
7096 | return NULL; | |
7097 | } | |
7098 | } | |
cf694132 | 7099 | { |
474c48f9 | 7100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 | 7101 | _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1); |
8ab979d7 | 7102 | |
474c48f9 | 7103 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7104 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7105 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7106 | return _resultobj; |
7107 | } | |
7108 | ||
d5c9047a | 7109 | #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
efc5f224 | 7110 | static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7111 | PyObject * _resultobj; |
f6bcfd97 | 7112 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7113 | wxTreeItemId * _arg1; |
7114 | wxString * _arg2; | |
1d99702e RD |
7115 | PyObject * _argo0 = 0; |
7116 | PyObject * _argo1 = 0; | |
d5c9047a | 7117 | PyObject * _obj2 = 0; |
efc5f224 | 7118 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
7119 | |
7120 | self = self; | |
efc5f224 | 7121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7122 | return NULL; |
1d99702e RD |
7123 | if (_argo0) { |
7124 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7125 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7126 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7127 | return NULL; |
7128 | } | |
7129 | } | |
1d99702e RD |
7130 | if (_argo1) { |
7131 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7132 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p."); |
7134 | return NULL; | |
7135 | } | |
7136 | } | |
7137 | { | |
2cd2fac8 RD |
7138 | #if PYTHON_API_VERSION >= 1009 |
7139 | char* tmpPtr; int tmpSize; | |
7140 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 7141 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7142 | return NULL; |
7143 | } | |
7144 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7145 | return NULL; | |
7146 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7147 | #else | |
d5c9047a RD |
7148 | if (!PyString_Check(_obj2)) { |
7149 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7150 | return NULL; | |
7151 | } | |
2cd2fac8 RD |
7152 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7153 | #endif | |
d5c9047a | 7154 | } |
cf694132 | 7155 | { |
474c48f9 | 7156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7157 | wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2); |
7158 | ||
474c48f9 | 7159 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7160 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7161 | } Py_INCREF(Py_None); |
d5c9047a RD |
7162 | _resultobj = Py_None; |
7163 | { | |
7164 | if (_obj2) | |
7165 | delete _arg2; | |
7166 | } | |
8ab979d7 RD |
7167 | return _resultobj; |
7168 | } | |
7169 | ||
694759cf | 7170 | #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 7171 | static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7172 | PyObject * _resultobj; |
f6bcfd97 | 7173 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7174 | wxTreeItemId * _arg1; |
7175 | int _arg2; | |
694759cf | 7176 | wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
7177 | PyObject * _argo0 = 0; |
7178 | PyObject * _argo1 = 0; | |
694759cf | 7179 | char *_kwnames[] = { "self","item","image","which", NULL }; |
8ab979d7 RD |
7180 | |
7181 | self = self; | |
694759cf | 7182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 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_SetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7188 | return NULL; |
7189 | } | |
7190 | } | |
1d99702e RD |
7191 | if (_argo1) { |
7192 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7193 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p."); |
7195 | return NULL; | |
7196 | } | |
7197 | } | |
cf694132 | 7198 | { |
474c48f9 | 7199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
694759cf | 7200 | wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 7201 | |
474c48f9 | 7202 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7203 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7204 | } Py_INCREF(Py_None); |
d5c9047a | 7205 | _resultobj = Py_None; |
8ab979d7 RD |
7206 | return _resultobj; |
7207 | } | |
7208 | ||
d5c9047a | 7209 | #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1)) |
efc5f224 | 7210 | static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7211 | PyObject * _resultobj; |
f6bcfd97 | 7212 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7213 | wxTreeItemId * _arg1; |
7214 | int _arg2; | |
1d99702e RD |
7215 | PyObject * _argo0 = 0; |
7216 | PyObject * _argo1 = 0; | |
efc5f224 | 7217 | char *_kwnames[] = { "self","item","image", NULL }; |
8ab979d7 RD |
7218 | |
7219 | self = self; | |
efc5f224 | 7220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 7221 | return NULL; |
1d99702e RD |
7222 | if (_argo0) { |
7223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7226 | return NULL; |
7227 | } | |
7228 | } | |
1d99702e RD |
7229 | if (_argo1) { |
7230 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7231 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p."); |
7233 | return NULL; | |
7234 | } | |
7235 | } | |
cf694132 | 7236 | { |
474c48f9 | 7237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7238 | wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2); |
7239 | ||
474c48f9 | 7240 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7241 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7242 | } Py_INCREF(Py_None); |
7243 | _resultobj = Py_None; | |
7244 | return _resultobj; | |
7245 | } | |
7246 | ||
7247 | #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1)) | |
efc5f224 | 7248 | static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7249 | PyObject * _resultobj; |
f6bcfd97 | 7250 | wxPyTreeCtrl * _arg0; |
cf694132 | 7251 | wxTreeItemId * _arg1; |
1d99702e RD |
7252 | bool _arg2 = (bool ) TRUE; |
7253 | PyObject * _argo0 = 0; | |
7254 | PyObject * _argo1 = 0; | |
7255 | int tempbool2 = (int) TRUE; | |
efc5f224 | 7256 | char *_kwnames[] = { "self","item","hasChildren", NULL }; |
cf694132 RD |
7257 | |
7258 | self = self; | |
efc5f224 | 7259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2)) |
cf694132 | 7260 | return NULL; |
1d99702e RD |
7261 | if (_argo0) { |
7262 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7263 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7264 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7265 | return NULL; |
7266 | } | |
7267 | } | |
1d99702e RD |
7268 | if (_argo1) { |
7269 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7270 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p."); |
7272 | return NULL; | |
7273 | } | |
7274 | } | |
7275 | _arg2 = (bool ) tempbool2; | |
7276 | { | |
474c48f9 | 7277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7278 | wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2); |
7279 | ||
474c48f9 | 7280 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7281 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7282 | } Py_INCREF(Py_None); |
d5c9047a | 7283 | _resultobj = Py_None; |
8ab979d7 RD |
7284 | return _resultobj; |
7285 | } | |
7286 | ||
f6bcfd97 | 7287 | static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7288 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7289 | if (data == NULL) { | |
7290 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7291 | data->SetId(item); // set the id |
cf694132 RD |
7292 | self->SetItemData(item, data); |
7293 | } | |
7294 | return data; | |
7295 | } | |
efc5f224 | 7296 | static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
7297 | PyObject * _resultobj; |
7298 | wxPyTreeItemData * _result; | |
f6bcfd97 | 7299 | wxPyTreeCtrl * _arg0; |
cf694132 | 7300 | wxTreeItemId * _arg1; |
1d99702e RD |
7301 | PyObject * _argo0 = 0; |
7302 | PyObject * _argo1 = 0; | |
efc5f224 | 7303 | char *_kwnames[] = { "self","item", NULL }; |
cf694132 RD |
7304 | char _ptemp[128]; |
7305 | ||
7306 | self = self; | |
efc5f224 | 7307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1)) |
cf694132 | 7308 | return NULL; |
1d99702e RD |
7309 | if (_argo0) { |
7310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7313 | return NULL; |
7314 | } | |
7315 | } | |
1d99702e RD |
7316 | if (_argo1) { |
7317 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7318 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p."); |
7320 | return NULL; | |
7321 | } | |
7322 | } | |
7323 | { | |
474c48f9 | 7324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 7325 | _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1); |
cf694132 | 7326 | |
474c48f9 | 7327 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7328 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7329 | } if (_result) { |
7330 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
7331 | _resultobj = Py_BuildValue("s",_ptemp); | |
7332 | } else { | |
7333 | Py_INCREF(Py_None); | |
7334 | _resultobj = Py_None; | |
7335 | } | |
cf694132 RD |
7336 | return _resultobj; |
7337 | } | |
7338 | ||
f6bcfd97 BP |
7339 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) { |
7340 | data->SetId(item); // set the id | |
7341 | self->SetItemData(item, data); | |
c368d904 | 7342 | } |
efc5f224 | 7343 | static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7344 | PyObject * _resultobj; |
f6bcfd97 | 7345 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7346 | wxTreeItemId * _arg1; |
cf694132 | 7347 | wxPyTreeItemData * _arg2; |
1d99702e RD |
7348 | PyObject * _argo0 = 0; |
7349 | PyObject * _argo1 = 0; | |
7350 | PyObject * _argo2 = 0; | |
efc5f224 | 7351 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
7352 | |
7353 | self = self; | |
efc5f224 | 7354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2)) |
8ab979d7 | 7355 | return NULL; |
1d99702e RD |
7356 | if (_argo0) { |
7357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7360 | return NULL; |
7361 | } | |
7362 | } | |
1d99702e RD |
7363 | if (_argo1) { |
7364 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7365 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p."); |
7367 | return NULL; | |
7368 | } | |
7369 | } | |
1d99702e RD |
7370 | if (_argo2) { |
7371 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7372 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) { | |
cf694132 | 7373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
7374 | return NULL; |
7375 | } | |
7376 | } | |
cf694132 | 7377 | { |
474c48f9 | 7378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 7379 | wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2); |
cf694132 | 7380 | |
474c48f9 | 7381 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7382 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7383 | } Py_INCREF(Py_None); |
d5c9047a | 7384 | _resultobj = Py_None; |
8ab979d7 RD |
7385 | return _resultobj; |
7386 | } | |
7387 | ||
f6bcfd97 | 7388 | static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7389 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7390 | if (data == NULL) { | |
7391 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7392 | data->SetId(item); // set the id |
cf694132 RD |
7393 | self->SetItemData(item, data); |
7394 | } | |
7395 | return data->GetData(); | |
c368d904 | 7396 | } |
efc5f224 | 7397 | static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 7398 | PyObject * _resultobj; |
cf694132 | 7399 | PyObject * _result; |
f6bcfd97 | 7400 | wxPyTreeCtrl * _arg0; |
08127323 | 7401 | wxTreeItemId * _arg1; |
1d99702e RD |
7402 | PyObject * _argo0 = 0; |
7403 | PyObject * _argo1 = 0; | |
efc5f224 | 7404 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
7405 | |
7406 | self = self; | |
efc5f224 | 7407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1)) |
08127323 | 7408 | return NULL; |
1d99702e RD |
7409 | if (_argo0) { |
7410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
7413 | return NULL; |
7414 | } | |
7415 | } | |
1d99702e RD |
7416 | if (_argo1) { |
7417 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7418 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 | 7419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p."); |
08127323 RD |
7420 | return NULL; |
7421 | } | |
7422 | } | |
cf694132 | 7423 | { |
474c48f9 | 7424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 7425 | _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1); |
cf694132 | 7426 | |
474c48f9 | 7427 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7428 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7429 | }{ |
7430 | _resultobj = _result; | |
7431 | } | |
7432 | return _resultobj; | |
7433 | } | |
7434 | ||
f6bcfd97 | 7435 | static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) { |
cf694132 RD |
7436 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7437 | if (data == NULL) { | |
7438 | data = new wxPyTreeItemData(obj); | |
f6bcfd97 | 7439 | data->SetId(item); // set the id |
cf694132 RD |
7440 | self->SetItemData(item, data); |
7441 | } else | |
7442 | data->SetData(obj); | |
c368d904 | 7443 | } |
efc5f224 | 7444 | static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7445 | PyObject * _resultobj; |
f6bcfd97 | 7446 | wxPyTreeCtrl * _arg0; |
cf694132 RD |
7447 | wxTreeItemId * _arg1; |
7448 | PyObject * _arg2; | |
1d99702e RD |
7449 | PyObject * _argo0 = 0; |
7450 | PyObject * _argo1 = 0; | |
cf694132 | 7451 | PyObject * _obj2 = 0; |
efc5f224 | 7452 | char *_kwnames[] = { "self","item","obj", NULL }; |
cf694132 RD |
7453 | |
7454 | self = self; | |
efc5f224 | 7455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2)) |
cf694132 | 7456 | return NULL; |
1d99702e RD |
7457 | if (_argo0) { |
7458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7461 | return NULL; |
7462 | } | |
7463 | } | |
1d99702e RD |
7464 | if (_argo1) { |
7465 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7466 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p."); |
7468 | return NULL; | |
7469 | } | |
7470 | } | |
7471 | { | |
7472 | _arg2 = _obj2; | |
7473 | } | |
7474 | { | |
474c48f9 | 7475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 7476 | wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2); |
cf694132 | 7477 | |
474c48f9 | 7478 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7479 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7480 | } Py_INCREF(Py_None); |
08127323 RD |
7481 | _resultobj = Py_None; |
7482 | return _resultobj; | |
7483 | } | |
7484 | ||
d5c9047a | 7485 | #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) |
efc5f224 | 7486 | static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7487 | PyObject * _resultobj; |
d5c9047a | 7488 | bool _result; |
f6bcfd97 | 7489 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7490 | wxTreeItemId * _arg1; |
1d99702e RD |
7491 | PyObject * _argo0 = 0; |
7492 | PyObject * _argo1 = 0; | |
efc5f224 | 7493 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7494 | |
7495 | self = self; | |
efc5f224 | 7496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7497 | return NULL; |
1d99702e RD |
7498 | if (_argo0) { |
7499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7502 | return NULL; |
7503 | } | |
7504 | } | |
1d99702e RD |
7505 | if (_argo1) { |
7506 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7507 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p."); |
7509 | return NULL; | |
7510 | } | |
7511 | } | |
cf694132 | 7512 | { |
474c48f9 | 7513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7514 | _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1); |
7515 | ||
474c48f9 | 7516 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7517 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7518 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7519 | return _resultobj; |
7520 | } | |
7521 | ||
d5c9047a | 7522 | #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0)) |
efc5f224 | 7523 | static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7524 | PyObject * _resultobj; |
d5c9047a | 7525 | bool _result; |
f6bcfd97 | 7526 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7527 | wxTreeItemId * _arg1; |
1d99702e RD |
7528 | PyObject * _argo0 = 0; |
7529 | PyObject * _argo1 = 0; | |
efc5f224 | 7530 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7531 | |
7532 | self = self; | |
efc5f224 | 7533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7534 | return NULL; |
1d99702e RD |
7535 | if (_argo0) { |
7536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7539 | return NULL; |
7540 | } | |
7541 | } | |
1d99702e RD |
7542 | if (_argo1) { |
7543 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7544 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p."); |
7546 | return NULL; | |
7547 | } | |
7548 | } | |
cf694132 | 7549 | { |
474c48f9 | 7550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7551 | _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1); |
7552 | ||
474c48f9 | 7553 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7554 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7555 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7556 | return _resultobj; |
7557 | } | |
7558 | ||
d5c9047a | 7559 | #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0)) |
efc5f224 | 7560 | static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7561 | PyObject * _resultobj; |
d5c9047a | 7562 | bool _result; |
f6bcfd97 | 7563 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7564 | wxTreeItemId * _arg1; |
1d99702e RD |
7565 | PyObject * _argo0 = 0; |
7566 | PyObject * _argo1 = 0; | |
efc5f224 | 7567 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7568 | |
7569 | self = self; | |
efc5f224 | 7570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7571 | return NULL; |
1d99702e RD |
7572 | if (_argo0) { |
7573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7576 | return NULL; |
7577 | } | |
7578 | } | |
1d99702e RD |
7579 | if (_argo1) { |
7580 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7581 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p."); |
7583 | return NULL; | |
7584 | } | |
7585 | } | |
cf694132 | 7586 | { |
474c48f9 | 7587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7588 | _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1); |
7589 | ||
474c48f9 | 7590 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7591 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7592 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7593 | return _resultobj; |
7594 | } | |
7595 | ||
d5c9047a | 7596 | #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
efc5f224 | 7597 | static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7598 | PyObject * _resultobj; |
d5c9047a | 7599 | bool _result; |
f6bcfd97 | 7600 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7601 | wxTreeItemId * _arg1; |
1d99702e RD |
7602 | PyObject * _argo0 = 0; |
7603 | PyObject * _argo1 = 0; | |
efc5f224 | 7604 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7605 | |
7606 | self = self; | |
efc5f224 | 7607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7608 | return NULL; |
1d99702e RD |
7609 | if (_argo0) { |
7610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7613 | return NULL; |
7614 | } | |
7615 | } | |
1d99702e RD |
7616 | if (_argo1) { |
7617 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7618 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p."); |
7620 | return NULL; | |
7621 | } | |
7622 | } | |
cf694132 | 7623 | { |
474c48f9 | 7624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7625 | _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1); |
7626 | ||
474c48f9 | 7627 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7628 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7629 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7630 | return _resultobj; |
7631 | } | |
7632 | ||
7633 | #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem()) | |
efc5f224 | 7634 | static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7635 | PyObject * _resultobj; |
d5c9047a | 7636 | wxTreeItemId * _result; |
f6bcfd97 | 7637 | wxPyTreeCtrl * _arg0; |
1d99702e | 7638 | PyObject * _argo0 = 0; |
efc5f224 | 7639 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7640 | char _ptemp[128]; |
8ab979d7 RD |
7641 | |
7642 | self = self; | |
efc5f224 | 7643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0)) |
8ab979d7 | 7644 | return NULL; |
1d99702e RD |
7645 | if (_argo0) { |
7646 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7647 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7649 | return NULL; |
7650 | } | |
7651 | } | |
cf694132 | 7652 | { |
474c48f9 | 7653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7654 | _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0)); |
7655 | ||
474c48f9 | 7656 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7657 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7658 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7659 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7660 | return _resultobj; |
7661 | } | |
7662 | ||
7663 | #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 7664 | static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7665 | PyObject * _resultobj; |
d5c9047a | 7666 | wxTreeItemId * _result; |
f6bcfd97 | 7667 | wxPyTreeCtrl * _arg0; |
1d99702e | 7668 | PyObject * _argo0 = 0; |
efc5f224 | 7669 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7670 | char _ptemp[128]; |
8ab979d7 RD |
7671 | |
7672 | self = self; | |
efc5f224 | 7673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 7674 | return NULL; |
1d99702e RD |
7675 | if (_argo0) { |
7676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7679 | return NULL; |
7680 | } | |
7681 | } | |
cf694132 | 7682 | { |
474c48f9 | 7683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7684 | _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0)); |
7685 | ||
474c48f9 | 7686 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7687 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7688 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7689 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7690 | return _resultobj; |
7691 | } | |
7692 | ||
eb715945 RD |
7693 | #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0)) |
7694 | static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7695 | PyObject * _resultobj; |
d5c9047a | 7696 | wxTreeItemId * _result; |
f6bcfd97 | 7697 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7698 | wxTreeItemId * _arg1; |
1d99702e RD |
7699 | PyObject * _argo0 = 0; |
7700 | PyObject * _argo1 = 0; | |
efc5f224 | 7701 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7702 | char _ptemp[128]; |
8ab979d7 RD |
7703 | |
7704 | self = self; | |
eb715945 | 7705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7706 | return NULL; |
1d99702e RD |
7707 | if (_argo0) { |
7708 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7709 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7711 | return NULL; |
7712 | } | |
7713 | } | |
1d99702e RD |
7714 | if (_argo1) { |
7715 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7716 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
eb715945 | 7717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7718 | return NULL; |
7719 | } | |
7720 | } | |
cf694132 | 7721 | { |
474c48f9 | 7722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
eb715945 | 7723 | _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1)); |
cf694132 | 7724 | |
474c48f9 | 7725 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7726 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7727 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7728 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7729 | return _resultobj; |
7730 | } | |
7731 | ||
f6bcfd97 | 7732 | static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) { |
474c48f9 | 7733 | wxPyBeginBlockThreads(); |
d426c97e RD |
7734 | PyObject* rval = PyList_New(0); |
7735 | wxArrayTreeItemIds array; | |
7736 | size_t num, x; | |
7737 | num = self->GetSelections(array); | |
7738 | for (x=0; x < num; x++) { | |
c368d904 RD |
7739 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); |
7740 | PyObject* item = wxPyConstructObject((void*)tii, "wxTreeItemId", TRUE); | |
d426c97e RD |
7741 | PyList_Append(rval, item); |
7742 | } | |
474c48f9 | 7743 | wxPyEndBlockThreads(); |
d426c97e RD |
7744 | return rval; |
7745 | } | |
7746 | static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7747 | PyObject * _resultobj; | |
7748 | PyObject * _result; | |
f6bcfd97 | 7749 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
7750 | PyObject * _argo0 = 0; |
7751 | char *_kwnames[] = { "self", NULL }; | |
7752 | ||
7753 | self = self; | |
7754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0)) | |
7755 | return NULL; | |
7756 | if (_argo0) { | |
7757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
7760 | return NULL; |
7761 | } | |
7762 | } | |
7763 | { | |
474c48f9 | 7764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 7765 | _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0); |
d426c97e | 7766 | |
474c48f9 | 7767 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7768 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
7769 | }{ |
7770 | _resultobj = _result; | |
7771 | } | |
7772 | return _resultobj; | |
7773 | } | |
7774 | ||
bb0054cd | 7775 | #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1)) |
efc5f224 | 7776 | static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
7777 | PyObject * _resultobj; |
7778 | size_t _result; | |
f6bcfd97 | 7779 | wxPyTreeCtrl * _arg0; |
bb0054cd | 7780 | wxTreeItemId * _arg1; |
1d99702e RD |
7781 | bool _arg2 = (bool ) TRUE; |
7782 | PyObject * _argo0 = 0; | |
7783 | PyObject * _argo1 = 0; | |
7784 | int tempbool2 = (int) TRUE; | |
efc5f224 | 7785 | char *_kwnames[] = { "self","item","recursively", NULL }; |
bb0054cd RD |
7786 | |
7787 | self = self; | |
efc5f224 | 7788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2)) |
bb0054cd | 7789 | return NULL; |
1d99702e RD |
7790 | if (_argo0) { |
7791 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7792 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7793 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p."); | |
bb0054cd RD |
7794 | return NULL; |
7795 | } | |
7796 | } | |
1d99702e RD |
7797 | if (_argo1) { |
7798 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7799 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
bb0054cd RD |
7800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p."); |
7801 | return NULL; | |
7802 | } | |
7803 | } | |
7804 | _arg2 = (bool ) tempbool2; | |
7805 | { | |
474c48f9 | 7806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
bb0054cd RD |
7807 | _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2); |
7808 | ||
474c48f9 | 7809 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7810 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
7811 | } _resultobj = Py_BuildValue("i",_result); |
7812 | return _resultobj; | |
7813 | } | |
7814 | ||
d5c9047a | 7815 | #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1)) |
efc5f224 | 7816 | static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7817 | PyObject * _resultobj; |
d5c9047a | 7818 | wxTreeItemId * _result; |
f6bcfd97 | 7819 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7820 | wxTreeItemId * _arg1; |
7821 | long * _arg2; | |
1d99702e RD |
7822 | PyObject * _argo0 = 0; |
7823 | PyObject * _argo1 = 0; | |
d5c9047a RD |
7824 | long temp; |
7825 | PyObject * _obj2 = 0; | |
efc5f224 | 7826 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 7827 | char _ptemp[128]; |
8ab979d7 RD |
7828 | |
7829 | self = self; | |
efc5f224 | 7830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7831 | return NULL; |
1d99702e RD |
7832 | if (_argo0) { |
7833 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7834 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7835 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7836 | return NULL; |
7837 | } | |
7838 | } | |
1d99702e RD |
7839 | if (_argo1) { |
7840 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7841 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7843 | return NULL; |
7844 | } | |
7845 | } | |
d5c9047a RD |
7846 | { |
7847 | temp = (long) PyInt_AsLong(_obj2); | |
7848 | _arg2 = &temp; | |
7849 | } | |
cf694132 | 7850 | { |
474c48f9 | 7851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7852 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); |
7853 | ||
474c48f9 | 7854 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7855 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7856 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
7857 | _resultobj = Py_BuildValue("s",_ptemp); |
7858 | { | |
7859 | PyObject *o; | |
7860 | o = PyInt_FromLong((long) (*_arg2)); | |
7861 | _resultobj = t_output_helper(_resultobj, o); | |
7862 | } | |
8ab979d7 RD |
7863 | return _resultobj; |
7864 | } | |
7865 | ||
d5c9047a | 7866 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) |
efc5f224 | 7867 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7868 | PyObject * _resultobj; |
d5c9047a | 7869 | wxTreeItemId * _result; |
f6bcfd97 | 7870 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7871 | wxTreeItemId * _arg1; |
7872 | long * _arg2; | |
1d99702e RD |
7873 | PyObject * _argo0 = 0; |
7874 | PyObject * _argo1 = 0; | |
d5c9047a | 7875 | long temp; |
8ab979d7 | 7876 | PyObject * _obj2 = 0; |
efc5f224 | 7877 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 7878 | char _ptemp[128]; |
8ab979d7 RD |
7879 | |
7880 | self = self; | |
efc5f224 | 7881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7882 | return NULL; |
1d99702e RD |
7883 | if (_argo0) { |
7884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7887 | return NULL; |
7888 | } | |
7889 | } | |
1d99702e RD |
7890 | if (_argo1) { |
7891 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7892 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); |
8ab979d7 | 7894 | return NULL; |
d5c9047a | 7895 | } |
8ab979d7 | 7896 | } |
d5c9047a RD |
7897 | { |
7898 | temp = (long) PyInt_AsLong(_obj2); | |
7899 | _arg2 = &temp; | |
8ab979d7 | 7900 | } |
cf694132 | 7901 | { |
474c48f9 | 7902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7903 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); |
7904 | ||
474c48f9 | 7905 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7906 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7907 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7908 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 | 7909 | { |
d5c9047a RD |
7910 | PyObject *o; |
7911 | o = PyInt_FromLong((long) (*_arg2)); | |
7912 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
7913 | } |
7914 | return _resultobj; | |
7915 | } | |
7916 | ||
d5c9047a | 7917 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) |
efc5f224 | 7918 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7919 | PyObject * _resultobj; |
d5c9047a | 7920 | wxTreeItemId * _result; |
f6bcfd97 | 7921 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7922 | wxTreeItemId * _arg1; |
1d99702e RD |
7923 | PyObject * _argo0 = 0; |
7924 | PyObject * _argo1 = 0; | |
efc5f224 | 7925 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7926 | char _ptemp[128]; |
8ab979d7 RD |
7927 | |
7928 | self = self; | |
efc5f224 | 7929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7930 | return NULL; |
1d99702e RD |
7931 | if (_argo0) { |
7932 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7933 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7935 | return NULL; |
7936 | } | |
7937 | } | |
1d99702e RD |
7938 | if (_argo1) { |
7939 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7940 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); |
7942 | return NULL; | |
7943 | } | |
7944 | } | |
cf694132 | 7945 | { |
474c48f9 | 7946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7947 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); |
7948 | ||
474c48f9 | 7949 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7950 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7951 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7952 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7953 | return _resultobj; |
7954 | } | |
7955 | ||
d5c9047a | 7956 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) |
efc5f224 | 7957 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7958 | PyObject * _resultobj; |
d5c9047a | 7959 | wxTreeItemId * _result; |
f6bcfd97 | 7960 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7961 | wxTreeItemId * _arg1; |
1d99702e RD |
7962 | PyObject * _argo0 = 0; |
7963 | PyObject * _argo1 = 0; | |
efc5f224 | 7964 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7965 | char _ptemp[128]; |
8ab979d7 RD |
7966 | |
7967 | self = self; | |
efc5f224 | 7968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7969 | return NULL; |
1d99702e RD |
7970 | if (_argo0) { |
7971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7974 | return NULL; |
7975 | } | |
7976 | } | |
1d99702e RD |
7977 | if (_argo1) { |
7978 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7979 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); |
7981 | return NULL; | |
7982 | } | |
7983 | } | |
cf694132 | 7984 | { |
474c48f9 | 7985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
7986 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); |
7987 | ||
474c48f9 | 7988 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7989 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7990 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7991 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7992 | return _resultobj; |
7993 | } | |
7994 | ||
d5c9047a | 7995 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) |
efc5f224 | 7996 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7997 | PyObject * _resultobj; |
d5c9047a | 7998 | wxTreeItemId * _result; |
f6bcfd97 | 7999 | wxPyTreeCtrl * _arg0; |
1d99702e | 8000 | PyObject * _argo0 = 0; |
efc5f224 | 8001 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 8002 | char _ptemp[128]; |
8ab979d7 RD |
8003 | |
8004 | self = self; | |
efc5f224 | 8005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) |
8ab979d7 | 8006 | return NULL; |
1d99702e RD |
8007 | if (_argo0) { |
8008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8011 | return NULL; |
8012 | } | |
8013 | } | |
cf694132 | 8014 | { |
474c48f9 | 8015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8016 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); |
8017 | ||
474c48f9 | 8018 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8019 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8020 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8021 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8022 | return _resultobj; |
8023 | } | |
8024 | ||
d5c9047a | 8025 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) |
efc5f224 | 8026 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8027 | PyObject * _resultobj; |
d5c9047a | 8028 | wxTreeItemId * _result; |
f6bcfd97 | 8029 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8030 | wxTreeItemId * _arg1; |
1d99702e RD |
8031 | PyObject * _argo0 = 0; |
8032 | PyObject * _argo1 = 0; | |
efc5f224 | 8033 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8034 | char _ptemp[128]; |
8ab979d7 RD |
8035 | |
8036 | self = self; | |
efc5f224 | 8037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8038 | return NULL; |
1d99702e RD |
8039 | if (_argo0) { |
8040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8043 | return NULL; |
8044 | } | |
8045 | } | |
1d99702e RD |
8046 | if (_argo1) { |
8047 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8048 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); |
8050 | return NULL; | |
8051 | } | |
8052 | } | |
cf694132 | 8053 | { |
474c48f9 | 8054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8055 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); |
8056 | ||
474c48f9 | 8057 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8058 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8059 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8060 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8061 | return _resultobj; |
8062 | } | |
8063 | ||
d5c9047a | 8064 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) |
efc5f224 | 8065 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8066 | PyObject * _resultobj; |
d5c9047a | 8067 | wxTreeItemId * _result; |
f6bcfd97 | 8068 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8069 | wxTreeItemId * _arg1; |
1d99702e RD |
8070 | PyObject * _argo0 = 0; |
8071 | PyObject * _argo1 = 0; | |
efc5f224 | 8072 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8073 | char _ptemp[128]; |
8ab979d7 RD |
8074 | |
8075 | self = self; | |
efc5f224 | 8076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8077 | return NULL; |
1d99702e RD |
8078 | if (_argo0) { |
8079 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8080 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8082 | return NULL; |
8083 | } | |
8084 | } | |
1d99702e RD |
8085 | if (_argo1) { |
8086 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8087 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 8088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8089 | return NULL; |
8090 | } | |
8091 | } | |
cf694132 | 8092 | { |
474c48f9 | 8093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8094 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); |
8095 | ||
474c48f9 | 8096 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8097 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8098 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8099 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8100 | return _resultobj; |
8101 | } | |
8102 | ||
d426c97e RD |
8103 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) |
8104 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8105 | PyObject * _resultobj; | |
8106 | wxTreeItemId * _result; | |
f6bcfd97 | 8107 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8108 | wxTreeItemId * _arg1; |
8109 | PyObject * _argo0 = 0; | |
8110 | PyObject * _argo1 = 0; | |
8111 | char *_kwnames[] = { "self","item", NULL }; | |
8112 | char _ptemp[128]; | |
8113 | ||
8114 | self = self; | |
8115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
8116 | return NULL; | |
8117 | if (_argo0) { | |
8118 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8119 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8121 | return NULL; |
8122 | } | |
8123 | } | |
8124 | if (_argo1) { | |
8125 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8126 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); | |
8128 | return NULL; | |
8129 | } | |
8130 | } | |
8131 | { | |
474c48f9 | 8132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d426c97e RD |
8133 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); |
8134 | ||
474c48f9 | 8135 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8136 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8137 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8138 | _resultobj = Py_BuildValue("s",_ptemp); | |
8139 | return _resultobj; | |
8140 | } | |
8141 | ||
d5c9047a | 8142 | #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 8143 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8144 | PyObject * _resultobj; |
d5c9047a | 8145 | wxTreeItemId * _result; |
f6bcfd97 | 8146 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8147 | wxString * _arg1; |
1d99702e RD |
8148 | int _arg2 = (int ) -1; |
8149 | int _arg3 = (int ) -1; | |
8150 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
8151 | PyObject * _argo0 = 0; | |
d5c9047a | 8152 | PyObject * _obj1 = 0; |
1d99702e | 8153 | PyObject * _argo4 = 0; |
efc5f224 | 8154 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; |
d5c9047a | 8155 | char _ptemp[128]; |
8ab979d7 RD |
8156 | |
8157 | self = self; | |
efc5f224 | 8158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) |
8ab979d7 | 8159 | return NULL; |
1d99702e RD |
8160 | if (_argo0) { |
8161 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8162 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8164 | return NULL; |
8165 | } | |
8166 | } | |
d5c9047a | 8167 | { |
2cd2fac8 RD |
8168 | #if PYTHON_API_VERSION >= 1009 |
8169 | char* tmpPtr; int tmpSize; | |
8170 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 8171 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8172 | return NULL; |
8173 | } | |
8174 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8175 | return NULL; | |
8176 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8177 | #else | |
d5c9047a RD |
8178 | if (!PyString_Check(_obj1)) { |
8179 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8180 | return NULL; | |
8181 | } | |
2cd2fac8 RD |
8182 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8183 | #endif | |
d5c9047a | 8184 | } |
1d99702e RD |
8185 | if (_argo4) { |
8186 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
8187 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
cf694132 | 8188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
8189 | return NULL; |
8190 | } | |
8191 | } | |
cf694132 | 8192 | { |
474c48f9 | 8193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8194 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); |
8195 | ||
474c48f9 | 8196 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8197 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8198 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8199 | _resultobj = Py_BuildValue("s",_ptemp); |
8200 | { | |
8201 | if (_obj1) | |
8202 | delete _arg1; | |
8203 | } | |
8ab979d7 RD |
8204 | return _resultobj; |
8205 | } | |
8206 | ||
d5c9047a | 8207 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8208 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8209 | PyObject * _resultobj; |
d5c9047a | 8210 | wxTreeItemId * _result; |
f6bcfd97 | 8211 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8212 | wxTreeItemId * _arg1; |
8213 | wxString * _arg2; | |
1d99702e RD |
8214 | int _arg3 = (int ) -1; |
8215 | int _arg4 = (int ) -1; | |
8216 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8217 | PyObject * _argo0 = 0; | |
8218 | PyObject * _argo1 = 0; | |
d5c9047a | 8219 | PyObject * _obj2 = 0; |
1d99702e | 8220 | PyObject * _argo5 = 0; |
efc5f224 | 8221 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8222 | char _ptemp[128]; |
8ab979d7 RD |
8223 | |
8224 | self = self; | |
efc5f224 | 8225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8226 | return NULL; |
1d99702e RD |
8227 | if (_argo0) { |
8228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8231 | return NULL; |
8232 | } | |
8233 | } | |
1d99702e RD |
8234 | if (_argo1) { |
8235 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8236 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); |
8238 | return NULL; | |
8239 | } | |
8240 | } | |
8241 | { | |
2cd2fac8 RD |
8242 | #if PYTHON_API_VERSION >= 1009 |
8243 | char* tmpPtr; int tmpSize; | |
8244 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 8245 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8246 | return NULL; |
8247 | } | |
8248 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8249 | return NULL; | |
8250 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8251 | #else | |
d5c9047a RD |
8252 | if (!PyString_Check(_obj2)) { |
8253 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8254 | return NULL; | |
8255 | } | |
2cd2fac8 RD |
8256 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8257 | #endif | |
d5c9047a | 8258 | } |
1d99702e RD |
8259 | if (_argo5) { |
8260 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8261 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8263 | return NULL; |
8264 | } | |
8265 | } | |
cf694132 | 8266 | { |
474c48f9 | 8267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8268 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); |
8269 | ||
474c48f9 | 8270 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8271 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8272 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8273 | _resultobj = Py_BuildValue("s",_ptemp); |
8274 | { | |
8275 | if (_obj2) | |
8276 | delete _arg2; | |
8277 | } | |
8ab979d7 RD |
8278 | return _resultobj; |
8279 | } | |
8280 | ||
d5c9047a | 8281 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 8282 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8283 | PyObject * _resultobj; |
d5c9047a | 8284 | wxTreeItemId * _result; |
f6bcfd97 | 8285 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8286 | wxTreeItemId * _arg1; |
8287 | wxTreeItemId * _arg2; | |
8288 | wxString * _arg3; | |
1d99702e RD |
8289 | int _arg4 = (int ) -1; |
8290 | int _arg5 = (int ) -1; | |
8291 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
8292 | PyObject * _argo0 = 0; | |
8293 | PyObject * _argo1 = 0; | |
8294 | PyObject * _argo2 = 0; | |
d5c9047a | 8295 | PyObject * _obj3 = 0; |
1d99702e | 8296 | PyObject * _argo6 = 0; |
efc5f224 | 8297 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; |
d5c9047a | 8298 | char _ptemp[128]; |
8ab979d7 RD |
8299 | |
8300 | self = self; | |
efc5f224 | 8301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) |
8ab979d7 | 8302 | return NULL; |
1d99702e RD |
8303 | if (_argo0) { |
8304 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8307 | return NULL; |
8308 | } | |
8309 | } | |
1d99702e RD |
8310 | if (_argo1) { |
8311 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8312 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8314 | return NULL; | |
8315 | } | |
8316 | } | |
1d99702e RD |
8317 | if (_argo2) { |
8318 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8319 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8321 | return NULL; | |
8322 | } | |
8323 | } | |
8324 | { | |
2cd2fac8 RD |
8325 | #if PYTHON_API_VERSION >= 1009 |
8326 | char* tmpPtr; int tmpSize; | |
8327 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 8328 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8329 | return NULL; |
8330 | } | |
8331 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8332 | return NULL; | |
8333 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8334 | #else | |
d5c9047a RD |
8335 | if (!PyString_Check(_obj3)) { |
8336 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8337 | return NULL; | |
8338 | } | |
2cd2fac8 RD |
8339 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8340 | #endif | |
d5c9047a | 8341 | } |
1d99702e RD |
8342 | if (_argo6) { |
8343 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8344 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
cf694132 | 8345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8346 | return NULL; |
8347 | } | |
8348 | } | |
cf694132 | 8349 | { |
474c48f9 | 8350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8351 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); |
8352 | ||
474c48f9 | 8353 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8354 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8355 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8356 | _resultobj = Py_BuildValue("s",_ptemp); |
8357 | { | |
8358 | if (_obj3) | |
8359 | delete _arg3; | |
8360 | } | |
8ab979d7 RD |
8361 | return _resultobj; |
8362 | } | |
8363 | ||
f6bcfd97 BP |
8364 | #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
8365 | static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8366 | PyObject * _resultobj; | |
8367 | wxTreeItemId * _result; | |
8368 | wxPyTreeCtrl * _arg0; | |
8369 | wxTreeItemId * _arg1; | |
8370 | size_t _arg2; | |
8371 | wxString * _arg3; | |
8372 | int _arg4 = (int ) -1; | |
8373 | int _arg5 = (int ) -1; | |
8374 | wxTreeItemData * _arg6 = (wxTreeItemData *) NULL; | |
8375 | PyObject * _argo0 = 0; | |
8376 | PyObject * _argo1 = 0; | |
8377 | PyObject * _obj3 = 0; | |
8378 | PyObject * _argo6 = 0; | |
8379 | char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL }; | |
8380 | char _ptemp[128]; | |
8381 | ||
8382 | self = self; | |
8383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
8384 | return NULL; | |
8385 | if (_argo0) { | |
8386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p."); | |
8389 | return NULL; | |
8390 | } | |
8391 | } | |
8392 | if (_argo1) { | |
8393 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8394 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8395 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p."); | |
8396 | return NULL; | |
8397 | } | |
8398 | } | |
8399 | { | |
2cd2fac8 RD |
8400 | #if PYTHON_API_VERSION >= 1009 |
8401 | char* tmpPtr; int tmpSize; | |
8402 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 8403 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8404 | return NULL; |
8405 | } | |
8406 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8407 | return NULL; | |
8408 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8409 | #else | |
f6bcfd97 BP |
8410 | if (!PyString_Check(_obj3)) { |
8411 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8412 | return NULL; | |
8413 | } | |
2cd2fac8 RD |
8414 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8415 | #endif | |
f6bcfd97 BP |
8416 | } |
8417 | if (_argo6) { | |
8418 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8419 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxTreeItemData_p")) { | |
8420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemData_p."); | |
8421 | return NULL; | |
8422 | } | |
8423 | } | |
8424 | { | |
474c48f9 | 8425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
8426 | _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6)); |
8427 | ||
474c48f9 | 8428 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8429 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
8430 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8431 | _resultobj = Py_BuildValue("s",_ptemp); | |
8432 | { | |
8433 | if (_obj3) | |
8434 | delete _arg3; | |
8435 | } | |
8436 | return _resultobj; | |
8437 | } | |
8438 | ||
d5c9047a | 8439 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8440 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8441 | PyObject * _resultobj; |
d5c9047a | 8442 | wxTreeItemId * _result; |
f6bcfd97 | 8443 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8444 | wxTreeItemId * _arg1; |
8ab979d7 | 8445 | wxString * _arg2; |
1d99702e RD |
8446 | int _arg3 = (int ) -1; |
8447 | int _arg4 = (int ) -1; | |
8448 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8449 | PyObject * _argo0 = 0; | |
8450 | PyObject * _argo1 = 0; | |
8ab979d7 | 8451 | PyObject * _obj2 = 0; |
1d99702e | 8452 | PyObject * _argo5 = 0; |
efc5f224 | 8453 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8454 | char _ptemp[128]; |
8ab979d7 RD |
8455 | |
8456 | self = self; | |
efc5f224 | 8457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8458 | return NULL; |
1d99702e RD |
8459 | if (_argo0) { |
8460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8463 | return NULL; |
8464 | } | |
8465 | } | |
1d99702e RD |
8466 | if (_argo1) { |
8467 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8468 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 8469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8470 | return NULL; |
8471 | } | |
8472 | } | |
8473 | { | |
2cd2fac8 RD |
8474 | #if PYTHON_API_VERSION >= 1009 |
8475 | char* tmpPtr; int tmpSize; | |
8476 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 8477 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8478 | return NULL; |
8479 | } | |
8480 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8481 | return NULL; | |
8482 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8483 | #else | |
8ab979d7 RD |
8484 | if (!PyString_Check(_obj2)) { |
8485 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8486 | return NULL; | |
8487 | } | |
2cd2fac8 RD |
8488 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8489 | #endif | |
8ab979d7 | 8490 | } |
1d99702e RD |
8491 | if (_argo5) { |
8492 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8493 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8495 | return NULL; |
8496 | } | |
8497 | } | |
cf694132 | 8498 | { |
474c48f9 | 8499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8500 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); |
8501 | ||
474c48f9 | 8502 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8503 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8504 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8505 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8506 | { |
8507 | if (_obj2) | |
8508 | delete _arg2; | |
8509 | } | |
8510 | return _resultobj; | |
8511 | } | |
8512 | ||
d5c9047a | 8513 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
efc5f224 | 8514 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8515 | PyObject * _resultobj; |
f6bcfd97 | 8516 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8517 | wxTreeItemId * _arg1; |
1d99702e RD |
8518 | PyObject * _argo0 = 0; |
8519 | PyObject * _argo1 = 0; | |
efc5f224 | 8520 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
8521 | |
8522 | self = self; | |
efc5f224 | 8523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8524 | return NULL; |
1d99702e RD |
8525 | if (_argo0) { |
8526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8529 | return NULL; |
8530 | } | |
8531 | } | |
1d99702e RD |
8532 | if (_argo1) { |
8533 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8534 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); |
8536 | return NULL; | |
8537 | } | |
8538 | } | |
cf694132 | 8539 | { |
474c48f9 | 8540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8541 | wxTreeCtrl_Delete(_arg0,*_arg1); |
8542 | ||
474c48f9 | 8543 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8544 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8545 | } Py_INCREF(Py_None); |
d5c9047a RD |
8546 | _resultobj = Py_None; |
8547 | return _resultobj; | |
8548 | } | |
8549 | ||
08127323 | 8550 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) |
efc5f224 | 8551 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 8552 | PyObject * _resultobj; |
f6bcfd97 | 8553 | wxPyTreeCtrl * _arg0; |
08127323 | 8554 | wxTreeItemId * _arg1; |
1d99702e RD |
8555 | PyObject * _argo0 = 0; |
8556 | PyObject * _argo1 = 0; | |
efc5f224 | 8557 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
8558 | |
8559 | self = self; | |
efc5f224 | 8560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) |
08127323 | 8561 | return NULL; |
1d99702e RD |
8562 | if (_argo0) { |
8563 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8564 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
8566 | return NULL; |
8567 | } | |
8568 | } | |
1d99702e RD |
8569 | if (_argo1) { |
8570 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8571 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
08127323 RD |
8572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); |
8573 | return NULL; | |
8574 | } | |
8575 | } | |
cf694132 | 8576 | { |
474c48f9 | 8577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8578 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); |
8579 | ||
474c48f9 | 8580 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8581 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8582 | } Py_INCREF(Py_None); |
08127323 RD |
8583 | _resultobj = Py_None; |
8584 | return _resultobj; | |
8585 | } | |
8586 | ||
d5c9047a | 8587 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) |
efc5f224 | 8588 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8589 | PyObject * _resultobj; |
f6bcfd97 | 8590 | wxPyTreeCtrl * _arg0; |
1d99702e | 8591 | PyObject * _argo0 = 0; |
efc5f224 | 8592 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8593 | |
8594 | self = self; | |
efc5f224 | 8595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) |
d5c9047a | 8596 | return NULL; |
1d99702e RD |
8597 | if (_argo0) { |
8598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8601 | return NULL; |
8602 | } | |
8603 | } | |
cf694132 | 8604 | { |
474c48f9 | 8605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8606 | wxTreeCtrl_DeleteAllItems(_arg0); |
8607 | ||
474c48f9 | 8608 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8609 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8610 | } Py_INCREF(Py_None); |
d5c9047a RD |
8611 | _resultobj = Py_None; |
8612 | return _resultobj; | |
8613 | } | |
8614 | ||
8615 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
efc5f224 | 8616 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8617 | PyObject * _resultobj; |
f6bcfd97 | 8618 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8619 | wxTreeItemId * _arg1; |
1d99702e RD |
8620 | PyObject * _argo0 = 0; |
8621 | PyObject * _argo1 = 0; | |
efc5f224 | 8622 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8623 | |
8624 | self = self; | |
efc5f224 | 8625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8626 | return NULL; |
1d99702e RD |
8627 | if (_argo0) { |
8628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8631 | return NULL; |
8632 | } | |
8633 | } | |
1d99702e RD |
8634 | if (_argo1) { |
8635 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8636 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); |
8638 | return NULL; | |
8639 | } | |
8640 | } | |
cf694132 | 8641 | { |
474c48f9 | 8642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8643 | wxTreeCtrl_Expand(_arg0,*_arg1); |
8644 | ||
474c48f9 | 8645 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8646 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8647 | } Py_INCREF(Py_None); |
d5c9047a RD |
8648 | _resultobj = Py_None; |
8649 | return _resultobj; | |
8650 | } | |
8651 | ||
8652 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
efc5f224 | 8653 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8654 | PyObject * _resultobj; |
f6bcfd97 | 8655 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8656 | wxTreeItemId * _arg1; |
1d99702e RD |
8657 | PyObject * _argo0 = 0; |
8658 | PyObject * _argo1 = 0; | |
efc5f224 | 8659 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8660 | |
8661 | self = self; | |
efc5f224 | 8662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8663 | return NULL; |
1d99702e RD |
8664 | if (_argo0) { |
8665 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8666 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8668 | return NULL; |
8669 | } | |
8670 | } | |
1d99702e RD |
8671 | if (_argo1) { |
8672 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8673 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p."); |
8675 | return NULL; | |
8676 | } | |
8677 | } | |
cf694132 | 8678 | { |
474c48f9 | 8679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8680 | wxTreeCtrl_Collapse(_arg0,*_arg1); |
8681 | ||
474c48f9 | 8682 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8683 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8684 | } Py_INCREF(Py_None); |
d5c9047a RD |
8685 | _resultobj = Py_None; |
8686 | return _resultobj; | |
8687 | } | |
8688 | ||
8689 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
efc5f224 | 8690 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8691 | PyObject * _resultobj; |
f6bcfd97 | 8692 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8693 | wxTreeItemId * _arg1; |
1d99702e RD |
8694 | PyObject * _argo0 = 0; |
8695 | PyObject * _argo1 = 0; | |
efc5f224 | 8696 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8697 | |
8698 | self = self; | |
efc5f224 | 8699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8700 | return NULL; |
1d99702e RD |
8701 | if (_argo0) { |
8702 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8703 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8705 | return NULL; |
8706 | } | |
8707 | } | |
1d99702e RD |
8708 | if (_argo1) { |
8709 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8710 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8711 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); |
8712 | return NULL; | |
8713 | } | |
8714 | } | |
cf694132 | 8715 | { |
474c48f9 | 8716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8717 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); |
8718 | ||
474c48f9 | 8719 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8720 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8721 | } Py_INCREF(Py_None); |
d5c9047a RD |
8722 | _resultobj = Py_None; |
8723 | return _resultobj; | |
8724 | } | |
8725 | ||
8726 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
efc5f224 | 8727 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8728 | PyObject * _resultobj; |
f6bcfd97 | 8729 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8730 | wxTreeItemId * _arg1; |
1d99702e RD |
8731 | PyObject * _argo0 = 0; |
8732 | PyObject * _argo1 = 0; | |
efc5f224 | 8733 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8734 | |
8735 | self = self; | |
efc5f224 | 8736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8737 | return NULL; |
1d99702e RD |
8738 | if (_argo0) { |
8739 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8740 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8742 | return NULL; |
8743 | } | |
8744 | } | |
1d99702e RD |
8745 | if (_argo1) { |
8746 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8747 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); |
8749 | return NULL; | |
8750 | } | |
8751 | } | |
cf694132 | 8752 | { |
474c48f9 | 8753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8754 | wxTreeCtrl_Toggle(_arg0,*_arg1); |
8755 | ||
474c48f9 | 8756 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8757 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8758 | } Py_INCREF(Py_None); |
d5c9047a RD |
8759 | _resultobj = Py_None; |
8760 | return _resultobj; | |
8761 | } | |
8762 | ||
8763 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
efc5f224 | 8764 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8765 | PyObject * _resultobj; |
f6bcfd97 | 8766 | wxPyTreeCtrl * _arg0; |
1d99702e | 8767 | PyObject * _argo0 = 0; |
efc5f224 | 8768 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8769 | |
8770 | self = self; | |
efc5f224 | 8771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) |
d5c9047a | 8772 | return NULL; |
1d99702e RD |
8773 | if (_argo0) { |
8774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8777 | return NULL; |
8778 | } | |
8779 | } | |
cf694132 | 8780 | { |
474c48f9 | 8781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8782 | wxTreeCtrl_Unselect(_arg0); |
8783 | ||
474c48f9 | 8784 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8785 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8786 | } Py_INCREF(Py_None); |
d5c9047a RD |
8787 | _resultobj = Py_None; |
8788 | return _resultobj; | |
8789 | } | |
8790 | ||
8bf5d46e | 8791 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) |
efc5f224 | 8792 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e | 8793 | PyObject * _resultobj; |
f6bcfd97 | 8794 | wxPyTreeCtrl * _arg0; |
1d99702e | 8795 | PyObject * _argo0 = 0; |
efc5f224 | 8796 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
8797 | |
8798 | self = self; | |
efc5f224 | 8799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) |
8bf5d46e | 8800 | return NULL; |
1d99702e RD |
8801 | if (_argo0) { |
8802 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8803 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p."); | |
8bf5d46e RD |
8805 | return NULL; |
8806 | } | |
8807 | } | |
8808 | { | |
474c48f9 | 8809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8bf5d46e RD |
8810 | wxTreeCtrl_UnselectAll(_arg0); |
8811 | ||
474c48f9 | 8812 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8813 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
8814 | } Py_INCREF(Py_None); |
8815 | _resultobj = Py_None; | |
8816 | return _resultobj; | |
8817 | } | |
8818 | ||
d5c9047a | 8819 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) |
efc5f224 | 8820 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8821 | PyObject * _resultobj; |
f6bcfd97 | 8822 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8823 | wxTreeItemId * _arg1; |
1d99702e RD |
8824 | PyObject * _argo0 = 0; |
8825 | PyObject * _argo1 = 0; | |
efc5f224 | 8826 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8827 | |
8828 | self = self; | |
efc5f224 | 8829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8830 | return NULL; |
1d99702e RD |
8831 | if (_argo0) { |
8832 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8833 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8835 | return NULL; |
8836 | } | |
8837 | } | |
1d99702e RD |
8838 | if (_argo1) { |
8839 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8840 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8841 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); |
8842 | return NULL; | |
8843 | } | |
8844 | } | |
cf694132 | 8845 | { |
474c48f9 | 8846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8847 | wxTreeCtrl_SelectItem(_arg0,*_arg1); |
8848 | ||
474c48f9 | 8849 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8850 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8851 | } Py_INCREF(Py_None); |
d5c9047a RD |
8852 | _resultobj = Py_None; |
8853 | return _resultobj; | |
8854 | } | |
8855 | ||
8856 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
efc5f224 | 8857 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8858 | PyObject * _resultobj; |
f6bcfd97 | 8859 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8860 | wxTreeItemId * _arg1; |
1d99702e RD |
8861 | PyObject * _argo0 = 0; |
8862 | PyObject * _argo1 = 0; | |
efc5f224 | 8863 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8864 | |
8865 | self = self; | |
efc5f224 | 8866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8867 | return NULL; |
1d99702e RD |
8868 | if (_argo0) { |
8869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8872 | return NULL; |
8873 | } | |
8874 | } | |
1d99702e RD |
8875 | if (_argo1) { |
8876 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8877 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); |
8879 | return NULL; | |
8880 | } | |
8881 | } | |
cf694132 | 8882 | { |
474c48f9 | 8883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8884 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); |
8885 | ||
474c48f9 | 8886 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8887 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8888 | } Py_INCREF(Py_None); |
d5c9047a RD |
8889 | _resultobj = Py_None; |
8890 | return _resultobj; | |
8891 | } | |
8892 | ||
8893 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
efc5f224 | 8894 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8895 | PyObject * _resultobj; |
f6bcfd97 | 8896 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8897 | wxTreeItemId * _arg1; |
1d99702e RD |
8898 | PyObject * _argo0 = 0; |
8899 | PyObject * _argo1 = 0; | |
efc5f224 | 8900 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8901 | |
8902 | self = self; | |
efc5f224 | 8903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8904 | return NULL; |
1d99702e RD |
8905 | if (_argo0) { |
8906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8909 | return NULL; |
8910 | } | |
8911 | } | |
1d99702e RD |
8912 | if (_argo1) { |
8913 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8914 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); |
8916 | return NULL; | |
8917 | } | |
8918 | } | |
cf694132 | 8919 | { |
474c48f9 | 8920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
8921 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); |
8922 | ||
474c48f9 | 8923 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8924 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8925 | } Py_INCREF(Py_None); |
d5c9047a RD |
8926 | _resultobj = Py_None; |
8927 | return _resultobj; | |
8928 | } | |
8929 | ||
8930 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
efc5f224 | 8931 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8932 | PyObject * _resultobj; |
f6bcfd97 | 8933 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8934 | wxTreeItemId * _arg1; |
1d99702e RD |
8935 | PyObject * _argo0 = 0; |
8936 | PyObject * _argo1 = 0; | |
efc5f224 | 8937 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8938 | |
8939 | self = self; | |
efc5f224 | 8940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8941 | return NULL; |
1d99702e RD |
8942 | if (_argo0) { |
8943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8946 | return NULL; |
8947 | } | |
8948 | } | |
1d99702e RD |
8949 | if (_argo1) { |
8950 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8951 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); |
8953 | return NULL; | |
8954 | } | |
8955 | } | |
cf694132 | 8956 | { |
474c48f9 | 8957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 8958 | wxTreeCtrl_EditLabel(_arg0,*_arg1); |
cf694132 | 8959 | |
474c48f9 | 8960 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8961 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8962 | } Py_INCREF(Py_None); |
d5c9047a | 8963 | _resultobj = Py_None; |
8ab979d7 RD |
8964 | return _resultobj; |
8965 | } | |
8966 | ||
d426c97e RD |
8967 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) |
8968 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8969 | PyObject * _resultobj; | |
f6bcfd97 | 8970 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8971 | wxTreeItemId * _arg1; |
8972 | PyObject * _argo0 = 0; | |
8973 | PyObject * _argo1 = 0; | |
8974 | char *_kwnames[] = { "self","item", NULL }; | |
8975 | ||
8976 | self = self; | |
8977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
8978 | return NULL; | |
8979 | if (_argo0) { | |
8980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8983 | return NULL; |
8984 | } | |
8985 | } | |
8986 | if (_argo1) { | |
8987 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8988 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); | |
8990 | return NULL; | |
8991 | } | |
8992 | } | |
8993 | { | |
474c48f9 | 8994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d426c97e RD |
8995 | wxTreeCtrl_SortChildren(_arg0,*_arg1); |
8996 | ||
474c48f9 | 8997 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8998 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8999 | } Py_INCREF(Py_None); |
9000 | _resultobj = Py_None; | |
9001 | return _resultobj; | |
9002 | } | |
9003 | ||
b8b8dda7 | 9004 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) |
efc5f224 | 9005 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 | 9006 | PyObject * _resultobj; |
f6bcfd97 | 9007 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9008 | wxTreeItemId * _arg1; |
b1462dfa | 9009 | int _arg2 = (int ) TRUE; |
1d99702e RD |
9010 | PyObject * _argo0 = 0; |
9011 | PyObject * _argo1 = 0; | |
efc5f224 | 9012 | char *_kwnames[] = { "self","item","bold", NULL }; |
b8b8dda7 RD |
9013 | |
9014 | self = self; | |
b1462dfa | 9015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) |
b8b8dda7 | 9016 | return NULL; |
1d99702e RD |
9017 | if (_argo0) { |
9018 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9019 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9020 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9021 | return NULL; |
9022 | } | |
9023 | } | |
1d99702e RD |
9024 | if (_argo1) { |
9025 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9026 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
9027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); |
9028 | return NULL; | |
9029 | } | |
9030 | } | |
cf694132 | 9031 | { |
474c48f9 | 9032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9033 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); |
9034 | ||
474c48f9 | 9035 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9036 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9037 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
9038 | _resultobj = Py_None; |
9039 | return _resultobj; | |
9040 | } | |
9041 | ||
9042 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
efc5f224 | 9043 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
9044 | PyObject * _resultobj; |
9045 | bool _result; | |
f6bcfd97 | 9046 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9047 | wxTreeItemId * _arg1; |
1d99702e RD |
9048 | PyObject * _argo0 = 0; |
9049 | PyObject * _argo1 = 0; | |
efc5f224 | 9050 | char *_kwnames[] = { "self","item", NULL }; |
b8b8dda7 RD |
9051 | |
9052 | self = self; | |
efc5f224 | 9053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 9054 | return NULL; |
1d99702e RD |
9055 | if (_argo0) { |
9056 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9057 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9059 | return NULL; |
9060 | } | |
9061 | } | |
1d99702e RD |
9062 | if (_argo1) { |
9063 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9064 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
9065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); |
9066 | return NULL; | |
9067 | } | |
9068 | } | |
cf694132 | 9069 | { |
474c48f9 | 9070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
9071 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); |
9072 | ||
474c48f9 | 9073 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9074 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9075 | } _resultobj = Py_BuildValue("i",_result); |
b8b8dda7 RD |
9076 | return _resultobj; |
9077 | } | |
9078 | ||
164b735b | 9079 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
efc5f224 | 9080 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
9081 | PyObject * _resultobj; |
9082 | wxTreeItemId * _result; | |
f6bcfd97 | 9083 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9084 | wxPoint * _arg1; |
164b735b RD |
9085 | int * _arg2; |
9086 | int temp; | |
1d99702e | 9087 | PyObject * _argo0 = 0; |
164b735b | 9088 | wxPoint temp0; |
2f90df85 | 9089 | PyObject * _obj1 = 0; |
efc5f224 | 9090 | char *_kwnames[] = { "self","point", NULL }; |
b8b8dda7 RD |
9091 | char _ptemp[128]; |
9092 | ||
9093 | self = self; | |
164b735b RD |
9094 | { |
9095 | _arg2 = &temp; | |
9096 | } | |
2f90df85 | 9097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 9098 | return NULL; |
1d99702e RD |
9099 | if (_argo0) { |
9100 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9101 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9102 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9103 | return NULL; |
9104 | } | |
9105 | } | |
2f90df85 | 9106 | { |
164b735b | 9107 | _arg1 = &temp0; |
2f90df85 | 9108 | if (! wxPoint_helper(_obj1, &_arg1)) |
b8b8dda7 | 9109 | return NULL; |
2f90df85 | 9110 | } |
cf694132 | 9111 | { |
474c48f9 | 9112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
164b735b | 9113 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); |
cf694132 | 9114 | |
474c48f9 | 9115 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9116 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9117 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
b8b8dda7 | 9118 | _resultobj = Py_BuildValue("s",_ptemp); |
164b735b RD |
9119 | { |
9120 | PyObject *o; | |
9121 | o = PyInt_FromLong((long) (*_arg2)); | |
9122 | _resultobj = t_output_helper(_resultobj, o); | |
9123 | } | |
b8b8dda7 RD |
9124 | return _resultobj; |
9125 | } | |
9126 | ||
b7e72427 RD |
9127 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
9128 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9129 | PyObject * _resultobj; | |
f6bcfd97 | 9130 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9131 | wxTreeItemId * _arg1; |
9132 | wxColour * _arg2; | |
9133 | PyObject * _argo0 = 0; | |
9134 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9135 | wxColour temp; |
9136 | PyObject * _obj2 = 0; | |
b7e72427 RD |
9137 | char *_kwnames[] = { "self","item","col", NULL }; |
9138 | ||
9139 | self = self; | |
f6bcfd97 | 9140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9141 | return NULL; |
9142 | if (_argo0) { | |
9143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9146 | return NULL; |
9147 | } | |
9148 | } | |
9149 | if (_argo1) { | |
9150 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9151 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); | |
9153 | return NULL; | |
9154 | } | |
9155 | } | |
f6bcfd97 BP |
9156 | { |
9157 | _arg2 = &temp; | |
9158 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9159 | return NULL; |
f6bcfd97 | 9160 | } |
b7e72427 | 9161 | { |
474c48f9 | 9162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b7e72427 RD |
9163 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); |
9164 | ||
474c48f9 | 9165 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9166 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9167 | } Py_INCREF(Py_None); |
9168 | _resultobj = Py_None; | |
9169 | return _resultobj; | |
9170 | } | |
9171 | ||
9172 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
9173 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9174 | PyObject * _resultobj; | |
f6bcfd97 | 9175 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9176 | wxTreeItemId * _arg1; |
9177 | wxColour * _arg2; | |
9178 | PyObject * _argo0 = 0; | |
9179 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9180 | wxColour temp; |
9181 | PyObject * _obj2 = 0; | |
b7e72427 RD |
9182 | char *_kwnames[] = { "self","item","col", NULL }; |
9183 | ||
9184 | self = self; | |
f6bcfd97 | 9185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9186 | return NULL; |
9187 | if (_argo0) { | |
9188 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9189 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9190 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9191 | return NULL; |
9192 | } | |
9193 | } | |
9194 | if (_argo1) { | |
9195 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9196 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
9198 | return NULL; | |
9199 | } | |
9200 | } | |
f6bcfd97 BP |
9201 | { |
9202 | _arg2 = &temp; | |
9203 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9204 | return NULL; |
f6bcfd97 | 9205 | } |
b7e72427 | 9206 | { |
474c48f9 | 9207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b7e72427 RD |
9208 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); |
9209 | ||
474c48f9 | 9210 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9211 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9212 | } Py_INCREF(Py_None); |
9213 | _resultobj = Py_None; | |
9214 | return _resultobj; | |
9215 | } | |
9216 | ||
9217 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
9218 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9219 | PyObject * _resultobj; | |
f6bcfd97 | 9220 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9221 | wxTreeItemId * _arg1; |
9222 | wxFont * _arg2; | |
9223 | PyObject * _argo0 = 0; | |
9224 | PyObject * _argo1 = 0; | |
9225 | PyObject * _argo2 = 0; | |
9226 | char *_kwnames[] = { "self","item","font", NULL }; | |
9227 | ||
9228 | self = self; | |
9229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
9230 | return NULL; | |
9231 | if (_argo0) { | |
9232 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9233 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9235 | return NULL; |
9236 | } | |
9237 | } | |
9238 | if (_argo1) { | |
9239 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9240 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); | |
9242 | return NULL; | |
9243 | } | |
9244 | } | |
9245 | if (_argo2) { | |
9246 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9247 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
9248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); | |
9249 | return NULL; | |
9250 | } | |
9251 | } | |
9252 | { | |
474c48f9 | 9253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b7e72427 RD |
9254 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); |
9255 | ||
474c48f9 | 9256 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9257 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9258 | } Py_INCREF(Py_None); |
9259 | _resultobj = Py_None; | |
9260 | return _resultobj; | |
9261 | } | |
9262 | ||
74bcba0e RD |
9263 | static PyObject * wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,const wxTreeItemId & item,int textOnly) { |
9264 | wxRect rect; | |
9265 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
474c48f9 | 9266 | wxPyBeginBlockThreads(); |
74bcba0e RD |
9267 | wxRect* r = new wxRect(rect); |
9268 | PyObject* val = wxPyConstructObject((void*)r, "wxRect"); | |
474c48f9 | 9269 | wxPyEndBlockThreads(); |
74bcba0e RD |
9270 | return val; |
9271 | } | |
9272 | else { | |
9273 | Py_INCREF(Py_None); | |
9274 | return Py_None; | |
9275 | } | |
9276 | } | |
9277 | static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9278 | PyObject * _resultobj; | |
9279 | PyObject * _result; | |
9280 | wxPyTreeCtrl * _arg0; | |
9281 | wxTreeItemId * _arg1; | |
9282 | int _arg2 = (int ) FALSE; | |
9283 | PyObject * _argo0 = 0; | |
9284 | PyObject * _argo1 = 0; | |
9285 | char *_kwnames[] = { "self","item","textOnly", NULL }; | |
9286 | ||
9287 | self = self; | |
9288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&_arg2)) | |
9289 | return NULL; | |
9290 | if (_argo0) { | |
9291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetBoundingRect. Expected _wxPyTreeCtrl_p."); | |
9294 | return NULL; | |
9295 | } | |
9296 | } | |
9297 | if (_argo1) { | |
9298 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9299 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeItemId_p."); | |
9301 | return NULL; | |
9302 | } | |
9303 | } | |
9304 | { | |
474c48f9 | 9305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
74bcba0e RD |
9306 | _result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(_arg0,*_arg1,_arg2); |
9307 | ||
474c48f9 | 9308 | wxPyEndAllowThreads(__tstate); |
74bcba0e RD |
9309 | if (PyErr_Occurred()) return NULL; |
9310 | }{ | |
9311 | _resultobj = _result; | |
9312 | } | |
9313 | return _resultobj; | |
9314 | } | |
9315 | ||
db34b2d4 RD |
9316 | static void *SwigwxDirItemDataTowxObject(void *ptr) { |
9317 | wxDirItemData *src; | |
9318 | wxObject *dest; | |
9319 | src = (wxDirItemData *) ptr; | |
9320 | dest = (wxObject *) src; | |
9321 | return (void *) dest; | |
9322 | } | |
9323 | ||
9324 | #define new_wxDirItemData(_swigarg0,_swigarg1,_swigarg2) (new wxDirItemData(_swigarg0,_swigarg1,_swigarg2)) | |
9325 | static PyObject *_wrap_new_wxDirItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9326 | PyObject * _resultobj; | |
9327 | wxDirItemData * _result; | |
9328 | wxString * _arg0; | |
9329 | wxString * _arg1; | |
9330 | bool _arg2; | |
9331 | PyObject * _obj0 = 0; | |
9332 | PyObject * _obj1 = 0; | |
9333 | int tempbool2; | |
9334 | char *_kwnames[] = { "path","name","isDir", NULL }; | |
9335 | char _ptemp[128]; | |
9336 | ||
9337 | self = self; | |
9338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:new_wxDirItemData",_kwnames,&_obj0,&_obj1,&tempbool2)) | |
9339 | return NULL; | |
9340 | { | |
9341 | #if PYTHON_API_VERSION >= 1009 | |
9342 | char* tmpPtr; int tmpSize; | |
9343 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
9344 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9345 | return NULL; | |
9346 | } | |
9347 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
9348 | return NULL; | |
9349 | _arg0 = new wxString(tmpPtr, tmpSize); | |
9350 | #else | |
9351 | if (!PyString_Check(_obj0)) { | |
9352 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9353 | return NULL; | |
9354 | } | |
9355 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
9356 | #endif | |
9357 | } | |
9358 | { | |
9359 | #if PYTHON_API_VERSION >= 1009 | |
9360 | char* tmpPtr; int tmpSize; | |
9361 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9362 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9363 | return NULL; | |
9364 | } | |
9365 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9366 | return NULL; | |
9367 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9368 | #else | |
9369 | if (!PyString_Check(_obj1)) { | |
9370 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9371 | return NULL; | |
9372 | } | |
9373 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9374 | #endif | |
9375 | } | |
9376 | _arg2 = (bool ) tempbool2; | |
9377 | { | |
9378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9379 | _result = (wxDirItemData *)new_wxDirItemData(*_arg0,*_arg1,_arg2); | |
9380 | ||
9381 | wxPyEndAllowThreads(__tstate); | |
9382 | if (PyErr_Occurred()) return NULL; | |
9383 | } if (_result) { | |
9384 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirItemData_p"); | |
9385 | _resultobj = Py_BuildValue("s",_ptemp); | |
9386 | } else { | |
9387 | Py_INCREF(Py_None); | |
9388 | _resultobj = Py_None; | |
9389 | } | |
9390 | { | |
9391 | if (_obj0) | |
9392 | delete _arg0; | |
9393 | } | |
9394 | { | |
9395 | if (_obj1) | |
9396 | delete _arg1; | |
9397 | } | |
9398 | return _resultobj; | |
9399 | } | |
9400 | ||
9401 | #define wxDirItemData_SetNewDirName(_swigobj,_swigarg0) (_swigobj->SetNewDirName(_swigarg0)) | |
9402 | static PyObject *_wrap_wxDirItemData_SetNewDirName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9403 | PyObject * _resultobj; | |
9404 | wxDirItemData * _arg0; | |
9405 | wxString * _arg1; | |
9406 | PyObject * _argo0 = 0; | |
9407 | PyObject * _obj1 = 0; | |
9408 | char *_kwnames[] = { "self","path", NULL }; | |
9409 | ||
9410 | self = self; | |
9411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_SetNewDirName",_kwnames,&_argo0,&_obj1)) | |
9412 | return NULL; | |
9413 | if (_argo0) { | |
9414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_SetNewDirName. Expected _wxDirItemData_p."); | |
9417 | return NULL; | |
9418 | } | |
9419 | } | |
9420 | { | |
9421 | #if PYTHON_API_VERSION >= 1009 | |
9422 | char* tmpPtr; int tmpSize; | |
9423 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9424 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9425 | return NULL; | |
9426 | } | |
9427 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9428 | return NULL; | |
9429 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9430 | #else | |
9431 | if (!PyString_Check(_obj1)) { | |
9432 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9433 | return NULL; | |
9434 | } | |
9435 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9436 | #endif | |
9437 | } | |
9438 | { | |
9439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9440 | wxDirItemData_SetNewDirName(_arg0,*_arg1); | |
9441 | ||
9442 | wxPyEndAllowThreads(__tstate); | |
9443 | if (PyErr_Occurred()) return NULL; | |
9444 | } Py_INCREF(Py_None); | |
9445 | _resultobj = Py_None; | |
9446 | { | |
9447 | if (_obj1) | |
9448 | delete _arg1; | |
9449 | } | |
9450 | return _resultobj; | |
9451 | } | |
9452 | ||
9453 | #define wxDirItemData_m_path_set(_swigobj,_swigval) (_swigobj->m_path = *(_swigval),_swigval) | |
9454 | static PyObject *_wrap_wxDirItemData_m_path_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9455 | PyObject * _resultobj; | |
9456 | wxString * _result; | |
9457 | wxDirItemData * _arg0; | |
9458 | wxString * _arg1; | |
9459 | PyObject * _argo0 = 0; | |
9460 | PyObject * _obj1 = 0; | |
9461 | char *_kwnames[] = { "self","m_path", NULL }; | |
9462 | ||
9463 | self = self; | |
9464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_path_set",_kwnames,&_argo0,&_obj1)) | |
9465 | return NULL; | |
9466 | if (_argo0) { | |
9467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_set. Expected _wxDirItemData_p."); | |
9470 | return NULL; | |
9471 | } | |
9472 | } | |
9473 | { | |
9474 | #if PYTHON_API_VERSION >= 1009 | |
9475 | char* tmpPtr; int tmpSize; | |
9476 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9477 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9478 | return NULL; | |
9479 | } | |
9480 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9481 | return NULL; | |
9482 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9483 | #else | |
9484 | if (!PyString_Check(_obj1)) { | |
9485 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9486 | return NULL; | |
9487 | } | |
9488 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9489 | #endif | |
9490 | } | |
9491 | { | |
9492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9493 | _result = (wxString *)wxDirItemData_m_path_set(_arg0,_arg1); | |
9494 | ||
9495 | wxPyEndAllowThreads(__tstate); | |
9496 | if (PyErr_Occurred()) return NULL; | |
9497 | }{ | |
9498 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9499 | } | |
9500 | { | |
9501 | if (_obj1) | |
9502 | delete _arg1; | |
9503 | } | |
9504 | return _resultobj; | |
9505 | } | |
9506 | ||
9507 | #define wxDirItemData_m_path_get(_swigobj) (&_swigobj->m_path) | |
9508 | static PyObject *_wrap_wxDirItemData_m_path_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9509 | PyObject * _resultobj; | |
9510 | wxString * _result; | |
9511 | wxDirItemData * _arg0; | |
9512 | PyObject * _argo0 = 0; | |
9513 | char *_kwnames[] = { "self", NULL }; | |
9514 | ||
9515 | self = self; | |
9516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_path_get",_kwnames,&_argo0)) | |
9517 | return NULL; | |
9518 | if (_argo0) { | |
9519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_get. Expected _wxDirItemData_p."); | |
9522 | return NULL; | |
9523 | } | |
9524 | } | |
9525 | { | |
9526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9527 | _result = (wxString *)wxDirItemData_m_path_get(_arg0); | |
9528 | ||
9529 | wxPyEndAllowThreads(__tstate); | |
9530 | if (PyErr_Occurred()) return NULL; | |
9531 | }{ | |
9532 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9533 | } | |
9534 | return _resultobj; | |
9535 | } | |
9536 | ||
9537 | #define wxDirItemData_m_name_set(_swigobj,_swigval) (_swigobj->m_name = *(_swigval),_swigval) | |
9538 | static PyObject *_wrap_wxDirItemData_m_name_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9539 | PyObject * _resultobj; | |
9540 | wxString * _result; | |
9541 | wxDirItemData * _arg0; | |
9542 | wxString * _arg1; | |
9543 | PyObject * _argo0 = 0; | |
9544 | PyObject * _obj1 = 0; | |
9545 | char *_kwnames[] = { "self","m_name", NULL }; | |
9546 | ||
9547 | self = self; | |
9548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_name_set",_kwnames,&_argo0,&_obj1)) | |
9549 | return NULL; | |
9550 | if (_argo0) { | |
9551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_set. Expected _wxDirItemData_p."); | |
9554 | return NULL; | |
9555 | } | |
9556 | } | |
9557 | { | |
9558 | #if PYTHON_API_VERSION >= 1009 | |
9559 | char* tmpPtr; int tmpSize; | |
9560 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9561 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9562 | return NULL; | |
9563 | } | |
9564 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9565 | return NULL; | |
9566 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9567 | #else | |
9568 | if (!PyString_Check(_obj1)) { | |
9569 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9570 | return NULL; | |
9571 | } | |
9572 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9573 | #endif | |
9574 | } | |
9575 | { | |
9576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9577 | _result = (wxString *)wxDirItemData_m_name_set(_arg0,_arg1); | |
9578 | ||
9579 | wxPyEndAllowThreads(__tstate); | |
9580 | if (PyErr_Occurred()) return NULL; | |
9581 | }{ | |
9582 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9583 | } | |
9584 | { | |
9585 | if (_obj1) | |
9586 | delete _arg1; | |
9587 | } | |
9588 | return _resultobj; | |
9589 | } | |
9590 | ||
9591 | #define wxDirItemData_m_name_get(_swigobj) (&_swigobj->m_name) | |
9592 | static PyObject *_wrap_wxDirItemData_m_name_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9593 | PyObject * _resultobj; | |
9594 | wxString * _result; | |
9595 | wxDirItemData * _arg0; | |
9596 | PyObject * _argo0 = 0; | |
9597 | char *_kwnames[] = { "self", NULL }; | |
9598 | ||
9599 | self = self; | |
9600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_name_get",_kwnames,&_argo0)) | |
9601 | return NULL; | |
9602 | if (_argo0) { | |
9603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_get. Expected _wxDirItemData_p."); | |
9606 | return NULL; | |
9607 | } | |
9608 | } | |
9609 | { | |
9610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9611 | _result = (wxString *)wxDirItemData_m_name_get(_arg0); | |
9612 | ||
9613 | wxPyEndAllowThreads(__tstate); | |
9614 | if (PyErr_Occurred()) return NULL; | |
9615 | }{ | |
9616 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9617 | } | |
9618 | return _resultobj; | |
9619 | } | |
9620 | ||
9621 | #define wxDirItemData_m_isHidden_set(_swigobj,_swigval) (_swigobj->m_isHidden = _swigval,_swigval) | |
9622 | static PyObject *_wrap_wxDirItemData_m_isHidden_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9623 | PyObject * _resultobj; | |
9624 | bool _result; | |
9625 | wxDirItemData * _arg0; | |
9626 | bool _arg1; | |
9627 | PyObject * _argo0 = 0; | |
9628 | int tempbool1; | |
9629 | char *_kwnames[] = { "self","m_isHidden", NULL }; | |
9630 | ||
9631 | self = self; | |
9632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isHidden_set",_kwnames,&_argo0,&tempbool1)) | |
9633 | return NULL; | |
9634 | if (_argo0) { | |
9635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_set. Expected _wxDirItemData_p."); | |
9638 | return NULL; | |
9639 | } | |
9640 | } | |
9641 | _arg1 = (bool ) tempbool1; | |
9642 | { | |
9643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9644 | _result = (bool )wxDirItemData_m_isHidden_set(_arg0,_arg1); | |
9645 | ||
9646 | wxPyEndAllowThreads(__tstate); | |
9647 | if (PyErr_Occurred()) return NULL; | |
9648 | } _resultobj = Py_BuildValue("i",_result); | |
9649 | return _resultobj; | |
9650 | } | |
9651 | ||
9652 | #define wxDirItemData_m_isHidden_get(_swigobj) ((bool ) _swigobj->m_isHidden) | |
9653 | static PyObject *_wrap_wxDirItemData_m_isHidden_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9654 | PyObject * _resultobj; | |
9655 | bool _result; | |
9656 | wxDirItemData * _arg0; | |
9657 | PyObject * _argo0 = 0; | |
9658 | char *_kwnames[] = { "self", NULL }; | |
9659 | ||
9660 | self = self; | |
9661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isHidden_get",_kwnames,&_argo0)) | |
9662 | return NULL; | |
9663 | if (_argo0) { | |
9664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_get. Expected _wxDirItemData_p."); | |
9667 | return NULL; | |
9668 | } | |
9669 | } | |
9670 | { | |
9671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9672 | _result = (bool )wxDirItemData_m_isHidden_get(_arg0); | |
9673 | ||
9674 | wxPyEndAllowThreads(__tstate); | |
9675 | if (PyErr_Occurred()) return NULL; | |
9676 | } _resultobj = Py_BuildValue("i",_result); | |
9677 | return _resultobj; | |
9678 | } | |
9679 | ||
9680 | #define wxDirItemData_m_isExpanded_set(_swigobj,_swigval) (_swigobj->m_isExpanded = _swigval,_swigval) | |
9681 | static PyObject *_wrap_wxDirItemData_m_isExpanded_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9682 | PyObject * _resultobj; | |
9683 | bool _result; | |
9684 | wxDirItemData * _arg0; | |
9685 | bool _arg1; | |
9686 | PyObject * _argo0 = 0; | |
9687 | int tempbool1; | |
9688 | char *_kwnames[] = { "self","m_isExpanded", NULL }; | |
9689 | ||
9690 | self = self; | |
9691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isExpanded_set",_kwnames,&_argo0,&tempbool1)) | |
9692 | return NULL; | |
9693 | if (_argo0) { | |
9694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_set. Expected _wxDirItemData_p."); | |
9697 | return NULL; | |
9698 | } | |
9699 | } | |
9700 | _arg1 = (bool ) tempbool1; | |
9701 | { | |
9702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9703 | _result = (bool )wxDirItemData_m_isExpanded_set(_arg0,_arg1); | |
9704 | ||
9705 | wxPyEndAllowThreads(__tstate); | |
9706 | if (PyErr_Occurred()) return NULL; | |
9707 | } _resultobj = Py_BuildValue("i",_result); | |
9708 | return _resultobj; | |
9709 | } | |
9710 | ||
9711 | #define wxDirItemData_m_isExpanded_get(_swigobj) ((bool ) _swigobj->m_isExpanded) | |
9712 | static PyObject *_wrap_wxDirItemData_m_isExpanded_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9713 | PyObject * _resultobj; | |
9714 | bool _result; | |
9715 | wxDirItemData * _arg0; | |
9716 | PyObject * _argo0 = 0; | |
9717 | char *_kwnames[] = { "self", NULL }; | |
9718 | ||
9719 | self = self; | |
9720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isExpanded_get",_kwnames,&_argo0)) | |
9721 | return NULL; | |
9722 | if (_argo0) { | |
9723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_get. Expected _wxDirItemData_p."); | |
9726 | return NULL; | |
9727 | } | |
9728 | } | |
9729 | { | |
9730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9731 | _result = (bool )wxDirItemData_m_isExpanded_get(_arg0); | |
9732 | ||
9733 | wxPyEndAllowThreads(__tstate); | |
9734 | if (PyErr_Occurred()) return NULL; | |
9735 | } _resultobj = Py_BuildValue("i",_result); | |
9736 | return _resultobj; | |
9737 | } | |
9738 | ||
9739 | #define wxDirItemData_m_isDir_set(_swigobj,_swigval) (_swigobj->m_isDir = _swigval,_swigval) | |
9740 | static PyObject *_wrap_wxDirItemData_m_isDir_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9741 | PyObject * _resultobj; | |
9742 | bool _result; | |
9743 | wxDirItemData * _arg0; | |
9744 | bool _arg1; | |
9745 | PyObject * _argo0 = 0; | |
9746 | int tempbool1; | |
9747 | char *_kwnames[] = { "self","m_isDir", NULL }; | |
9748 | ||
9749 | self = self; | |
9750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isDir_set",_kwnames,&_argo0,&tempbool1)) | |
9751 | return NULL; | |
9752 | if (_argo0) { | |
9753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_set. Expected _wxDirItemData_p."); | |
9756 | return NULL; | |
9757 | } | |
9758 | } | |
9759 | _arg1 = (bool ) tempbool1; | |
9760 | { | |
9761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9762 | _result = (bool )wxDirItemData_m_isDir_set(_arg0,_arg1); | |
9763 | ||
9764 | wxPyEndAllowThreads(__tstate); | |
9765 | if (PyErr_Occurred()) return NULL; | |
9766 | } _resultobj = Py_BuildValue("i",_result); | |
9767 | return _resultobj; | |
9768 | } | |
9769 | ||
9770 | #define wxDirItemData_m_isDir_get(_swigobj) ((bool ) _swigobj->m_isDir) | |
9771 | static PyObject *_wrap_wxDirItemData_m_isDir_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9772 | PyObject * _resultobj; | |
9773 | bool _result; | |
9774 | wxDirItemData * _arg0; | |
9775 | PyObject * _argo0 = 0; | |
9776 | char *_kwnames[] = { "self", NULL }; | |
9777 | ||
9778 | self = self; | |
9779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isDir_get",_kwnames,&_argo0)) | |
9780 | return NULL; | |
9781 | if (_argo0) { | |
9782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_get. Expected _wxDirItemData_p."); | |
9785 | return NULL; | |
9786 | } | |
9787 | } | |
9788 | { | |
9789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9790 | _result = (bool )wxDirItemData_m_isDir_get(_arg0); | |
9791 | ||
9792 | wxPyEndAllowThreads(__tstate); | |
9793 | if (PyErr_Occurred()) return NULL; | |
9794 | } _resultobj = Py_BuildValue("i",_result); | |
9795 | return _resultobj; | |
9796 | } | |
9797 | ||
9798 | static void *SwigwxGenericDirCtrlTowxControl(void *ptr) { | |
9799 | wxGenericDirCtrl *src; | |
9800 | wxControl *dest; | |
9801 | src = (wxGenericDirCtrl *) ptr; | |
9802 | dest = (wxControl *) src; | |
9803 | return (void *) dest; | |
9804 | } | |
9805 | ||
9806 | static void *SwigwxGenericDirCtrlTowxWindow(void *ptr) { | |
9807 | wxGenericDirCtrl *src; | |
9808 | wxWindow *dest; | |
9809 | src = (wxGenericDirCtrl *) ptr; | |
9810 | dest = (wxWindow *) src; | |
9811 | return (void *) dest; | |
9812 | } | |
9813 | ||
9814 | static void *SwigwxGenericDirCtrlTowxEvtHandler(void *ptr) { | |
9815 | wxGenericDirCtrl *src; | |
9816 | wxEvtHandler *dest; | |
9817 | src = (wxGenericDirCtrl *) ptr; | |
9818 | dest = (wxEvtHandler *) src; | |
9819 | return (void *) dest; | |
9820 | } | |
9821 | ||
9822 | static void *SwigwxGenericDirCtrlTowxObject(void *ptr) { | |
9823 | wxGenericDirCtrl *src; | |
9824 | wxObject *dest; | |
9825 | src = (wxGenericDirCtrl *) ptr; | |
9826 | dest = (wxObject *) src; | |
9827 | return (void *) dest; | |
9828 | } | |
9829 | ||
9830 | #define new_wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
9831 | static PyObject *_wrap_new_wxGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9832 | PyObject * _resultobj; | |
9833 | wxGenericDirCtrl * _result; | |
9834 | wxWindow * _arg0; | |
9835 | wxWindowID _arg1 = (wxWindowID ) -1; | |
85247b36 | 9836 | char * _arg2 = (char *) wxDirDialogDefaultFolderStr; |
db34b2d4 RD |
9837 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
9838 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
9839 | long _arg5 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
85247b36 | 9840 | char * _arg6 = (char *) wxEmptyString; |
db34b2d4 | 9841 | int _arg7 = (int ) 0; |
85247b36 | 9842 | char * _arg8 = (char *) "dirCtrl"; |
db34b2d4 | 9843 | PyObject * _argo0 = 0; |
db34b2d4 RD |
9844 | wxPoint temp; |
9845 | PyObject * _obj3 = 0; | |
9846 | wxSize temp0; | |
9847 | PyObject * _obj4 = 0; | |
db34b2d4 RD |
9848 | char *_kwnames[] = { "parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; |
9849 | char _ptemp[128]; | |
9850 | ||
9851 | self = self; | |
85247b36 | 9852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|isOOlsis:new_wxGenericDirCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6,&_arg7,&_arg8)) |
db34b2d4 RD |
9853 | return NULL; |
9854 | if (_argo0) { | |
9855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGenericDirCtrl. Expected _wxWindow_p."); | |
9858 | return NULL; | |
9859 | } | |
9860 | } | |
db34b2d4 RD |
9861 | if (_obj3) |
9862 | { | |
9863 | _arg3 = &temp; | |
9864 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9865 | return NULL; | |
9866 | } | |
9867 | if (_obj4) | |
9868 | { | |
9869 | _arg4 = &temp0; | |
9870 | if (! wxSize_helper(_obj4, &_arg4)) | |
9871 | return NULL; | |
db34b2d4 RD |
9872 | } |
9873 | { | |
9874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
85247b36 | 9875 | _result = (wxGenericDirCtrl *)new_wxGenericDirCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8); |
db34b2d4 RD |
9876 | |
9877 | wxPyEndAllowThreads(__tstate); | |
9878 | if (PyErr_Occurred()) return NULL; | |
9879 | } if (_result) { | |
9880 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
9881 | _resultobj = Py_BuildValue("s",_ptemp); | |
9882 | } else { | |
9883 | Py_INCREF(Py_None); | |
9884 | _resultobj = Py_None; | |
9885 | } | |
db34b2d4 RD |
9886 | return _resultobj; |
9887 | } | |
9888 | ||
9889 | #define new_wxPreGenericDirCtrl() (new wxGenericDirCtrl()) | |
9890 | static PyObject *_wrap_new_wxPreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9891 | PyObject * _resultobj; | |
9892 | wxGenericDirCtrl * _result; | |
9893 | char *_kwnames[] = { NULL }; | |
9894 | char _ptemp[128]; | |
9895 | ||
9896 | self = self; | |
9897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGenericDirCtrl",_kwnames)) | |
9898 | return NULL; | |
9899 | { | |
9900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9901 | _result = (wxGenericDirCtrl *)new_wxPreGenericDirCtrl(); | |
9902 | ||
9903 | wxPyEndAllowThreads(__tstate); | |
9904 | if (PyErr_Occurred()) return NULL; | |
9905 | } if (_result) { | |
9906 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
9907 | _resultobj = Py_BuildValue("s",_ptemp); | |
9908 | } else { | |
9909 | Py_INCREF(Py_None); | |
9910 | _resultobj = Py_None; | |
9911 | } | |
9912 | return _resultobj; | |
9913 | } | |
9914 | ||
9915 | #define wxGenericDirCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
9916 | static PyObject *_wrap_wxGenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9917 | PyObject * _resultobj; | |
9918 | bool _result; | |
9919 | wxGenericDirCtrl * _arg0; | |
9920 | wxWindow * _arg1; | |
9921 | wxWindowID _arg2 = (wxWindowID ) -1; | |
85247b36 | 9922 | char * _arg3 = (char *) wxDirDialogDefaultFolderStr; |
db34b2d4 RD |
9923 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
9924 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
9925 | long _arg6 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
85247b36 | 9926 | char * _arg7 = (char *) wxEmptyString; |
db34b2d4 | 9927 | int _arg8 = (int ) 0; |
85247b36 | 9928 | char * _arg9 = (char *) "dirCtrl"; |
db34b2d4 RD |
9929 | PyObject * _argo0 = 0; |
9930 | PyObject * _argo1 = 0; | |
db34b2d4 RD |
9931 | wxPoint temp; |
9932 | PyObject * _obj4 = 0; | |
9933 | wxSize temp0; | |
9934 | PyObject * _obj5 = 0; | |
db34b2d4 RD |
9935 | char *_kwnames[] = { "self","parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; |
9936 | ||
9937 | self = self; | |
85247b36 | 9938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|isOOlsis:wxGenericDirCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_arg7,&_arg8,&_arg9)) |
db34b2d4 RD |
9939 | return NULL; |
9940 | if (_argo0) { | |
9941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
9943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
9944 | return NULL; | |
9945 | } | |
9946 | } | |
9947 | if (_argo1) { | |
9948 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9949 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGenericDirCtrl_Create. Expected _wxWindow_p."); | |
9951 | return NULL; | |
9952 | } | |
9953 | } | |
db34b2d4 RD |
9954 | if (_obj4) |
9955 | { | |
9956 | _arg4 = &temp; | |
9957 | if (! wxPoint_helper(_obj4, &_arg4)) | |
9958 | return NULL; | |
9959 | } | |
9960 | if (_obj5) | |
9961 | { | |
9962 | _arg5 = &temp0; | |
9963 | if (! wxSize_helper(_obj5, &_arg5)) | |
9964 | return NULL; | |
db34b2d4 RD |
9965 | } |
9966 | { | |
9967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
85247b36 | 9968 | _result = (bool )wxGenericDirCtrl_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9); |
db34b2d4 RD |
9969 | |
9970 | wxPyEndAllowThreads(__tstate); | |
9971 | if (PyErr_Occurred()) return NULL; | |
9972 | } _resultobj = Py_BuildValue("i",_result); | |
db34b2d4 RD |
9973 | return _resultobj; |
9974 | } | |
9975 | ||
9976 | #define wxGenericDirCtrl_ExpandPath(_swigobj,_swigarg0) (_swigobj->ExpandPath(_swigarg0)) | |
9977 | static PyObject *_wrap_wxGenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9978 | PyObject * _resultobj; | |
9979 | bool _result; | |
9980 | wxGenericDirCtrl * _arg0; | |
9981 | wxString * _arg1; | |
9982 | PyObject * _argo0 = 0; | |
9983 | PyObject * _obj1 = 0; | |
9984 | char *_kwnames[] = { "self","path", NULL }; | |
9985 | ||
9986 | self = self; | |
9987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_ExpandPath",_kwnames,&_argo0,&_obj1)) | |
9988 | return NULL; | |
9989 | if (_argo0) { | |
9990 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9991 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
9992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ExpandPath. Expected _wxGenericDirCtrl_p."); | |
9993 | return NULL; | |
9994 | } | |
9995 | } | |
9996 | { | |
9997 | #if PYTHON_API_VERSION >= 1009 | |
9998 | char* tmpPtr; int tmpSize; | |
9999 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
10000 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10001 | return NULL; | |
10002 | } | |
10003 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
10004 | return NULL; | |
10005 | _arg1 = new wxString(tmpPtr, tmpSize); | |
10006 | #else | |
10007 | if (!PyString_Check(_obj1)) { | |
10008 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10009 | return NULL; | |
10010 | } | |
10011 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
10012 | #endif | |
10013 | } | |
10014 | { | |
10015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10016 | _result = (bool )wxGenericDirCtrl_ExpandPath(_arg0,*_arg1); | |
10017 | ||
10018 | wxPyEndAllowThreads(__tstate); | |
10019 | if (PyErr_Occurred()) return NULL; | |
10020 | } _resultobj = Py_BuildValue("i",_result); | |
10021 | { | |
10022 | if (_obj1) | |
10023 | delete _arg1; | |
10024 | } | |
10025 | return _resultobj; | |
10026 | } | |
10027 | ||
10028 | #define wxGenericDirCtrl_GetDefaultPath(_swigobj) (_swigobj->GetDefaultPath()) | |
10029 | static PyObject *_wrap_wxGenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10030 | PyObject * _resultobj; | |
10031 | wxString * _result; | |
10032 | wxGenericDirCtrl * _arg0; | |
10033 | PyObject * _argo0 = 0; | |
10034 | char *_kwnames[] = { "self", NULL }; | |
10035 | ||
10036 | self = self; | |
10037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetDefaultPath",_kwnames,&_argo0)) | |
10038 | return NULL; | |
10039 | if (_argo0) { | |
10040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
10043 | return NULL; | |
10044 | } | |
10045 | } | |
10046 | { | |
10047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10048 | _result = new wxString (wxGenericDirCtrl_GetDefaultPath(_arg0)); | |
10049 | ||
10050 | wxPyEndAllowThreads(__tstate); | |
10051 | if (PyErr_Occurred()) return NULL; | |
10052 | }{ | |
10053 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
10054 | } | |
10055 | { | |
10056 | delete _result; | |
10057 | } | |
10058 | return _resultobj; | |
10059 | } | |
10060 | ||
10061 | #define wxGenericDirCtrl_SetDefaultPath(_swigobj,_swigarg0) (_swigobj->SetDefaultPath(_swigarg0)) | |
10062 | static PyObject *_wrap_wxGenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10063 | PyObject * _resultobj; | |
10064 | wxGenericDirCtrl * _arg0; | |
10065 | wxString * _arg1; | |
10066 | PyObject * _argo0 = 0; | |
10067 | PyObject * _obj1 = 0; | |
10068 | char *_kwnames[] = { "self","path", NULL }; | |
10069 | ||
10070 | self = self; | |
10071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetDefaultPath",_kwnames,&_argo0,&_obj1)) | |
10072 | return NULL; | |
10073 | if (_argo0) { | |
10074 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10075 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
10077 | return NULL; | |
10078 | } | |
10079 | } | |
10080 | { | |
10081 | #if PYTHON_API_VERSION >= 1009 | |
10082 | char* tmpPtr; int tmpSize; | |
10083 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
10084 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10085 | return NULL; | |
10086 | } | |
10087 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
10088 | return NULL; | |
10089 | _arg1 = new wxString(tmpPtr, tmpSize); | |
10090 | #else | |
10091 | if (!PyString_Check(_obj1)) { | |
10092 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10093 | return NULL; | |
10094 | } | |
10095 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
10096 | #endif | |
10097 | } | |
10098 | { | |
10099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10100 | wxGenericDirCtrl_SetDefaultPath(_arg0,*_arg1); | |
10101 | ||
10102 | wxPyEndAllowThreads(__tstate); | |
10103 | if (PyErr_Occurred()) return NULL; | |
10104 | } Py_INCREF(Py_None); | |
10105 | _resultobj = Py_None; | |
10106 | { | |
10107 | if (_obj1) | |
10108 | delete _arg1; | |
10109 | } | |
10110 | return _resultobj; | |
10111 | } | |
10112 | ||
10113 | #define wxGenericDirCtrl_GetPath(_swigobj) (_swigobj->GetPath()) | |
10114 | static PyObject *_wrap_wxGenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10115 | PyObject * _resultobj; | |
10116 | wxString * _result; | |
10117 | wxGenericDirCtrl * _arg0; | |
10118 | PyObject * _argo0 = 0; | |
10119 | char *_kwnames[] = { "self", NULL }; | |
10120 | ||
10121 | self = self; | |
10122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetPath",_kwnames,&_argo0)) | |
10123 | return NULL; | |
10124 | if (_argo0) { | |
10125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetPath. Expected _wxGenericDirCtrl_p."); | |
10128 | return NULL; | |
10129 | } | |
10130 | } | |
10131 | { | |
10132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10133 | _result = new wxString (wxGenericDirCtrl_GetPath(_arg0)); | |
10134 | ||
10135 | wxPyEndAllowThreads(__tstate); | |
10136 | if (PyErr_Occurred()) return NULL; | |
10137 | }{ | |
10138 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
10139 | } | |
10140 | { | |
10141 | delete _result; | |
10142 | } | |
10143 | return _resultobj; | |
10144 | } | |
10145 | ||
10146 | #define wxGenericDirCtrl_GetFilePath(_swigobj) (_swigobj->GetFilePath()) | |
10147 | static PyObject *_wrap_wxGenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10148 | PyObject * _resultobj; | |
10149 | wxString * _result; | |
10150 | wxGenericDirCtrl * _arg0; | |
10151 | PyObject * _argo0 = 0; | |
10152 | char *_kwnames[] = { "self", NULL }; | |
10153 | ||
10154 | self = self; | |
10155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilePath",_kwnames,&_argo0)) | |
10156 | return NULL; | |
10157 | if (_argo0) { | |
10158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilePath. Expected _wxGenericDirCtrl_p."); | |
10161 | return NULL; | |
10162 | } | |
10163 | } | |
10164 | { | |
10165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10166 | _result = new wxString (wxGenericDirCtrl_GetFilePath(_arg0)); | |
10167 | ||
10168 | wxPyEndAllowThreads(__tstate); | |
10169 | if (PyErr_Occurred()) return NULL; | |
10170 | }{ | |
10171 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
10172 | } | |
10173 | { | |
10174 | delete _result; | |
10175 | } | |
10176 | return _resultobj; | |
10177 | } | |
10178 | ||
10179 | #define wxGenericDirCtrl_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0)) | |
10180 | static PyObject *_wrap_wxGenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10181 | PyObject * _resultobj; | |
10182 | wxGenericDirCtrl * _arg0; | |
10183 | wxString * _arg1; | |
10184 | PyObject * _argo0 = 0; | |
10185 | PyObject * _obj1 = 0; | |
10186 | char *_kwnames[] = { "self","path", NULL }; | |
10187 | ||
10188 | self = self; | |
10189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetPath",_kwnames,&_argo0,&_obj1)) | |
10190 | return NULL; | |
10191 | if (_argo0) { | |
10192 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10193 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetPath. Expected _wxGenericDirCtrl_p."); | |
10195 | return NULL; | |
10196 | } | |
10197 | } | |
10198 | { | |
10199 | #if PYTHON_API_VERSION >= 1009 | |
10200 | char* tmpPtr; int tmpSize; | |
10201 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
10202 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10203 | return NULL; | |
10204 | } | |
10205 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
10206 | return NULL; | |
10207 | _arg1 = new wxString(tmpPtr, tmpSize); | |
10208 | #else | |
10209 | if (!PyString_Check(_obj1)) { | |
10210 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10211 | return NULL; | |
10212 | } | |
10213 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
10214 | #endif | |
10215 | } | |
10216 | { | |
10217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10218 | wxGenericDirCtrl_SetPath(_arg0,*_arg1); | |
10219 | ||
10220 | wxPyEndAllowThreads(__tstate); | |
10221 | if (PyErr_Occurred()) return NULL; | |
10222 | } Py_INCREF(Py_None); | |
10223 | _resultobj = Py_None; | |
10224 | { | |
10225 | if (_obj1) | |
10226 | delete _arg1; | |
10227 | } | |
10228 | return _resultobj; | |
10229 | } | |
10230 | ||
10231 | #define wxGenericDirCtrl_ShowHidden(_swigobj,_swigarg0) (_swigobj->ShowHidden(_swigarg0)) | |
10232 | static PyObject *_wrap_wxGenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10233 | PyObject * _resultobj; | |
10234 | wxGenericDirCtrl * _arg0; | |
10235 | bool _arg1; | |
10236 | PyObject * _argo0 = 0; | |
10237 | int tempbool1; | |
10238 | char *_kwnames[] = { "self","show", NULL }; | |
10239 | ||
10240 | self = self; | |
10241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_ShowHidden",_kwnames,&_argo0,&tempbool1)) | |
10242 | return NULL; | |
10243 | if (_argo0) { | |
10244 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10245 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ShowHidden. Expected _wxGenericDirCtrl_p."); | |
10247 | return NULL; | |
10248 | } | |
10249 | } | |
10250 | _arg1 = (bool ) tempbool1; | |
10251 | { | |
10252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10253 | wxGenericDirCtrl_ShowHidden(_arg0,_arg1); | |
10254 | ||
10255 | wxPyEndAllowThreads(__tstate); | |
10256 | if (PyErr_Occurred()) return NULL; | |
10257 | } Py_INCREF(Py_None); | |
10258 | _resultobj = Py_None; | |
10259 | return _resultobj; | |
10260 | } | |
10261 | ||
10262 | #define wxGenericDirCtrl_GetShowHidden(_swigobj) (_swigobj->GetShowHidden()) | |
10263 | static PyObject *_wrap_wxGenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10264 | PyObject * _resultobj; | |
10265 | bool _result; | |
10266 | wxGenericDirCtrl * _arg0; | |
10267 | PyObject * _argo0 = 0; | |
10268 | char *_kwnames[] = { "self", NULL }; | |
10269 | ||
10270 | self = self; | |
10271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetShowHidden",_kwnames,&_argo0)) | |
10272 | return NULL; | |
10273 | if (_argo0) { | |
10274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetShowHidden. Expected _wxGenericDirCtrl_p."); | |
10277 | return NULL; | |
10278 | } | |
10279 | } | |
10280 | { | |
10281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10282 | _result = (bool )wxGenericDirCtrl_GetShowHidden(_arg0); | |
10283 | ||
10284 | wxPyEndAllowThreads(__tstate); | |
10285 | if (PyErr_Occurred()) return NULL; | |
10286 | } _resultobj = Py_BuildValue("i",_result); | |
10287 | return _resultobj; | |
10288 | } | |
10289 | ||
10290 | #define wxGenericDirCtrl_GetFilter(_swigobj) (_swigobj->GetFilter()) | |
10291 | static PyObject *_wrap_wxGenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10292 | PyObject * _resultobj; | |
10293 | wxString * _result; | |
10294 | wxGenericDirCtrl * _arg0; | |
10295 | PyObject * _argo0 = 0; | |
10296 | char *_kwnames[] = { "self", NULL }; | |
10297 | ||
10298 | self = self; | |
10299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilter",_kwnames,&_argo0)) | |
10300 | return NULL; | |
10301 | if (_argo0) { | |
10302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilter. Expected _wxGenericDirCtrl_p."); | |
10305 | return NULL; | |
10306 | } | |
10307 | } | |
10308 | { | |
10309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10310 | _result = new wxString (wxGenericDirCtrl_GetFilter(_arg0)); | |
10311 | ||
10312 | wxPyEndAllowThreads(__tstate); | |
10313 | if (PyErr_Occurred()) return NULL; | |
10314 | }{ | |
10315 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
10316 | } | |
10317 | { | |
10318 | delete _result; | |
10319 | } | |
10320 | return _resultobj; | |
10321 | } | |
10322 | ||
10323 | #define wxGenericDirCtrl_SetFilter(_swigobj,_swigarg0) (_swigobj->SetFilter(_swigarg0)) | |
10324 | static PyObject *_wrap_wxGenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10325 | PyObject * _resultobj; | |
10326 | wxGenericDirCtrl * _arg0; | |
10327 | wxString * _arg1; | |
10328 | PyObject * _argo0 = 0; | |
10329 | PyObject * _obj1 = 0; | |
10330 | char *_kwnames[] = { "self","filter", NULL }; | |
10331 | ||
10332 | self = self; | |
10333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetFilter",_kwnames,&_argo0,&_obj1)) | |
10334 | return NULL; | |
10335 | if (_argo0) { | |
10336 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10337 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilter. Expected _wxGenericDirCtrl_p."); | |
10339 | return NULL; | |
10340 | } | |
10341 | } | |
10342 | { | |
10343 | #if PYTHON_API_VERSION >= 1009 | |
10344 | char* tmpPtr; int tmpSize; | |
10345 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
10346 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10347 | return NULL; | |
10348 | } | |
10349 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
10350 | return NULL; | |
10351 | _arg1 = new wxString(tmpPtr, tmpSize); | |
10352 | #else | |
10353 | if (!PyString_Check(_obj1)) { | |
10354 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10355 | return NULL; | |
10356 | } | |
10357 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
10358 | #endif | |
10359 | } | |
10360 | { | |
10361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10362 | wxGenericDirCtrl_SetFilter(_arg0,*_arg1); | |
10363 | ||
10364 | wxPyEndAllowThreads(__tstate); | |
10365 | if (PyErr_Occurred()) return NULL; | |
10366 | } Py_INCREF(Py_None); | |
10367 | _resultobj = Py_None; | |
10368 | { | |
10369 | if (_obj1) | |
10370 | delete _arg1; | |
10371 | } | |
10372 | return _resultobj; | |
10373 | } | |
10374 | ||
10375 | #define wxGenericDirCtrl_GetFilterIndex(_swigobj) (_swigobj->GetFilterIndex()) | |
10376 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10377 | PyObject * _resultobj; | |
10378 | int _result; | |
10379 | wxGenericDirCtrl * _arg0; | |
10380 | PyObject * _argo0 = 0; | |
10381 | char *_kwnames[] = { "self", NULL }; | |
10382 | ||
10383 | self = self; | |
10384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterIndex",_kwnames,&_argo0)) | |
10385 | return NULL; | |
10386 | if (_argo0) { | |
10387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10390 | return NULL; | |
10391 | } | |
10392 | } | |
10393 | { | |
10394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10395 | _result = (int )wxGenericDirCtrl_GetFilterIndex(_arg0); | |
10396 | ||
10397 | wxPyEndAllowThreads(__tstate); | |
10398 | if (PyErr_Occurred()) return NULL; | |
10399 | } _resultobj = Py_BuildValue("i",_result); | |
10400 | return _resultobj; | |
10401 | } | |
10402 | ||
10403 | #define wxGenericDirCtrl_SetFilterIndex(_swigobj,_swigarg0) (_swigobj->SetFilterIndex(_swigarg0)) | |
10404 | static PyObject *_wrap_wxGenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10405 | PyObject * _resultobj; | |
10406 | wxGenericDirCtrl * _arg0; | |
10407 | int _arg1; | |
10408 | PyObject * _argo0 = 0; | |
10409 | char *_kwnames[] = { "self","n", NULL }; | |
10410 | ||
10411 | self = self; | |
10412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_SetFilterIndex",_kwnames,&_argo0,&_arg1)) | |
10413 | return NULL; | |
10414 | if (_argo0) { | |
10415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10418 | return NULL; | |
10419 | } | |
10420 | } | |
10421 | { | |
10422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10423 | wxGenericDirCtrl_SetFilterIndex(_arg0,_arg1); | |
10424 | ||
10425 | wxPyEndAllowThreads(__tstate); | |
10426 | if (PyErr_Occurred()) return NULL; | |
10427 | } Py_INCREF(Py_None); | |
10428 | _resultobj = Py_None; | |
10429 | return _resultobj; | |
10430 | } | |
10431 | ||
10432 | #define wxGenericDirCtrl_GetRootId(_swigobj) (_swigobj->GetRootId()) | |
10433 | static PyObject *_wrap_wxGenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10434 | PyObject * _resultobj; | |
10435 | wxTreeItemId * _result; | |
10436 | wxGenericDirCtrl * _arg0; | |
10437 | PyObject * _argo0 = 0; | |
10438 | char *_kwnames[] = { "self", NULL }; | |
10439 | char _ptemp[128]; | |
10440 | ||
10441 | self = self; | |
10442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetRootId",_kwnames,&_argo0)) | |
10443 | return NULL; | |
10444 | if (_argo0) { | |
10445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetRootId. Expected _wxGenericDirCtrl_p."); | |
10448 | return NULL; | |
10449 | } | |
10450 | } | |
10451 | { | |
10452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10453 | _result = new wxTreeItemId (wxGenericDirCtrl_GetRootId(_arg0)); | |
10454 | ||
10455 | wxPyEndAllowThreads(__tstate); | |
10456 | if (PyErr_Occurred()) return NULL; | |
10457 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
10458 | _resultobj = Py_BuildValue("s",_ptemp); | |
10459 | return _resultobj; | |
10460 | } | |
10461 | ||
10462 | #define wxGenericDirCtrl_GetTreeCtrl(_swigobj) (_swigobj->GetTreeCtrl()) | |
10463 | static PyObject *_wrap_wxGenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10464 | PyObject * _resultobj; | |
10465 | wxTreeCtrl * _result; | |
10466 | wxGenericDirCtrl * _arg0; | |
10467 | PyObject * _argo0 = 0; | |
10468 | char *_kwnames[] = { "self", NULL }; | |
10469 | char _ptemp[128]; | |
10470 | ||
10471 | self = self; | |
10472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetTreeCtrl",_kwnames,&_argo0)) | |
10473 | return NULL; | |
10474 | if (_argo0) { | |
10475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetTreeCtrl. Expected _wxGenericDirCtrl_p."); | |
10478 | return NULL; | |
10479 | } | |
10480 | } | |
10481 | { | |
10482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10483 | _result = (wxTreeCtrl *)wxGenericDirCtrl_GetTreeCtrl(_arg0); | |
10484 | ||
10485 | wxPyEndAllowThreads(__tstate); | |
10486 | if (PyErr_Occurred()) return NULL; | |
10487 | } if (_result) { | |
10488 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeCtrl_p"); | |
10489 | _resultobj = Py_BuildValue("s",_ptemp); | |
10490 | } else { | |
10491 | Py_INCREF(Py_None); | |
10492 | _resultobj = Py_None; | |
10493 | } | |
10494 | return _resultobj; | |
10495 | } | |
10496 | ||
10497 | #define wxGenericDirCtrl_GetFilterListCtrl(_swigobj) (_swigobj->GetFilterListCtrl()) | |
10498 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10499 | PyObject * _resultobj; | |
10500 | wxDirFilterListCtrl * _result; | |
10501 | wxGenericDirCtrl * _arg0; | |
10502 | PyObject * _argo0 = 0; | |
10503 | char *_kwnames[] = { "self", NULL }; | |
10504 | char _ptemp[128]; | |
10505 | ||
10506 | self = self; | |
10507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterListCtrl",_kwnames,&_argo0)) | |
10508 | return NULL; | |
10509 | if (_argo0) { | |
10510 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10511 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10512 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10513 | return NULL; | |
10514 | } | |
10515 | } | |
10516 | { | |
10517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10518 | _result = (wxDirFilterListCtrl *)wxGenericDirCtrl_GetFilterListCtrl(_arg0); | |
10519 | ||
10520 | wxPyEndAllowThreads(__tstate); | |
10521 | if (PyErr_Occurred()) return NULL; | |
10522 | } if (_result) { | |
10523 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10524 | _resultobj = Py_BuildValue("s",_ptemp); | |
10525 | } else { | |
10526 | Py_INCREF(Py_None); | |
10527 | _resultobj = Py_None; | |
10528 | } | |
10529 | return _resultobj; | |
10530 | } | |
10531 | ||
10532 | static void *SwigwxDirFilterListCtrlTowxChoice(void *ptr) { | |
10533 | wxDirFilterListCtrl *src; | |
10534 | wxChoice *dest; | |
10535 | src = (wxDirFilterListCtrl *) ptr; | |
10536 | dest = (wxChoice *) src; | |
10537 | return (void *) dest; | |
10538 | } | |
10539 | ||
10540 | static void *SwigwxDirFilterListCtrlTowxControlWithItems(void *ptr) { | |
10541 | wxDirFilterListCtrl *src; | |
10542 | wxControlWithItems *dest; | |
10543 | src = (wxDirFilterListCtrl *) ptr; | |
10544 | dest = (wxControlWithItems *) src; | |
10545 | return (void *) dest; | |
10546 | } | |
10547 | ||
10548 | static void *SwigwxDirFilterListCtrlTowxControl(void *ptr) { | |
10549 | wxDirFilterListCtrl *src; | |
10550 | wxControl *dest; | |
10551 | src = (wxDirFilterListCtrl *) ptr; | |
10552 | dest = (wxControl *) src; | |
10553 | return (void *) dest; | |
10554 | } | |
10555 | ||
10556 | static void *SwigwxDirFilterListCtrlTowxWindow(void *ptr) { | |
10557 | wxDirFilterListCtrl *src; | |
10558 | wxWindow *dest; | |
10559 | src = (wxDirFilterListCtrl *) ptr; | |
10560 | dest = (wxWindow *) src; | |
10561 | return (void *) dest; | |
10562 | } | |
10563 | ||
10564 | static void *SwigwxDirFilterListCtrlTowxEvtHandler(void *ptr) { | |
10565 | wxDirFilterListCtrl *src; | |
10566 | wxEvtHandler *dest; | |
10567 | src = (wxDirFilterListCtrl *) ptr; | |
10568 | dest = (wxEvtHandler *) src; | |
10569 | return (void *) dest; | |
10570 | } | |
10571 | ||
10572 | static void *SwigwxDirFilterListCtrlTowxObject(void *ptr) { | |
10573 | wxDirFilterListCtrl *src; | |
10574 | wxObject *dest; | |
10575 | src = (wxDirFilterListCtrl *) ptr; | |
10576 | dest = (wxObject *) src; | |
10577 | return (void *) dest; | |
10578 | } | |
10579 | ||
10580 | #define new_wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10581 | static PyObject *_wrap_new_wxDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10582 | PyObject * _resultobj; | |
10583 | wxDirFilterListCtrl * _result; | |
10584 | wxGenericDirCtrl * _arg0; | |
10585 | wxWindowID _arg1 = (wxWindowID ) -1; | |
10586 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
10587 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
10588 | long _arg4 = (long ) 0; | |
10589 | PyObject * _argo0 = 0; | |
10590 | wxPoint temp; | |
10591 | PyObject * _obj2 = 0; | |
10592 | wxSize temp0; | |
10593 | PyObject * _obj3 = 0; | |
10594 | char *_kwnames[] = { "parent","id","pos","size","style", NULL }; | |
10595 | char _ptemp[128]; | |
10596 | ||
10597 | self = self; | |
10598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxDirFilterListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
10599 | return NULL; | |
10600 | if (_argo0) { | |
10601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDirFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10604 | return NULL; | |
10605 | } | |
10606 | } | |
10607 | if (_obj2) | |
10608 | { | |
10609 | _arg2 = &temp; | |
10610 | if (! wxPoint_helper(_obj2, &_arg2)) | |
10611 | return NULL; | |
10612 | } | |
10613 | if (_obj3) | |
10614 | { | |
10615 | _arg3 = &temp0; | |
10616 | if (! wxSize_helper(_obj3, &_arg3)) | |
10617 | return NULL; | |
10618 | } | |
10619 | { | |
10620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10621 | _result = (wxDirFilterListCtrl *)new_wxDirFilterListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
10622 | ||
10623 | wxPyEndAllowThreads(__tstate); | |
10624 | if (PyErr_Occurred()) return NULL; | |
10625 | } if (_result) { | |
10626 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10627 | _resultobj = Py_BuildValue("s",_ptemp); | |
10628 | } else { | |
10629 | Py_INCREF(Py_None); | |
10630 | _resultobj = Py_None; | |
10631 | } | |
10632 | return _resultobj; | |
10633 | } | |
10634 | ||
10635 | #define new_wxPreDirFilterListCtrl() (new wxDirFilterListCtrl()) | |
10636 | static PyObject *_wrap_new_wxPreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10637 | PyObject * _resultobj; | |
10638 | wxDirFilterListCtrl * _result; | |
10639 | char *_kwnames[] = { NULL }; | |
10640 | char _ptemp[128]; | |
10641 | ||
10642 | self = self; | |
10643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreDirFilterListCtrl",_kwnames)) | |
10644 | return NULL; | |
10645 | { | |
10646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10647 | _result = (wxDirFilterListCtrl *)new_wxPreDirFilterListCtrl(); | |
10648 | ||
10649 | wxPyEndAllowThreads(__tstate); | |
10650 | if (PyErr_Occurred()) return NULL; | |
10651 | } if (_result) { | |
10652 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10653 | _resultobj = Py_BuildValue("s",_ptemp); | |
10654 | } else { | |
10655 | Py_INCREF(Py_None); | |
10656 | _resultobj = Py_None; | |
10657 | } | |
10658 | return _resultobj; | |
10659 | } | |
10660 | ||
10661 | #define wxDirFilterListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10662 | static PyObject *_wrap_wxDirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10663 | PyObject * _resultobj; | |
10664 | bool _result; | |
10665 | wxDirFilterListCtrl * _arg0; | |
10666 | wxGenericDirCtrl * _arg1; | |
10667 | wxWindowID _arg2 = (wxWindowID ) -1; | |
10668 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
10669 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
10670 | long _arg5 = (long ) 0; | |
10671 | PyObject * _argo0 = 0; | |
10672 | PyObject * _argo1 = 0; | |
10673 | wxPoint temp; | |
10674 | PyObject * _obj3 = 0; | |
10675 | wxSize temp0; | |
10676 | PyObject * _obj4 = 0; | |
10677 | char *_kwnames[] = { "self","parent","id","pos","size","style", NULL }; | |
10678 | ||
10679 | self = self; | |
10680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOl:wxDirFilterListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5)) | |
10681 | return NULL; | |
10682 | if (_argo0) { | |
10683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
10685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_Create. Expected _wxDirFilterListCtrl_p."); | |
10686 | return NULL; | |
10687 | } | |
10688 | } | |
10689 | if (_argo1) { | |
10690 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10691 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxGenericDirCtrl_p")) { | |
10692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDirFilterListCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
10693 | return NULL; | |
10694 | } | |
10695 | } | |
10696 | if (_obj3) | |
10697 | { | |
10698 | _arg3 = &temp; | |
10699 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10700 | return NULL; | |
10701 | } | |
10702 | if (_obj4) | |
10703 | { | |
10704 | _arg4 = &temp0; | |
10705 | if (! wxSize_helper(_obj4, &_arg4)) | |
10706 | return NULL; | |
10707 | } | |
10708 | { | |
10709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10710 | _result = (bool )wxDirFilterListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5); | |
10711 | ||
10712 | wxPyEndAllowThreads(__tstate); | |
10713 | if (PyErr_Occurred()) return NULL; | |
10714 | } _resultobj = Py_BuildValue("i",_result); | |
10715 | return _resultobj; | |
10716 | } | |
10717 | ||
10718 | #define wxDirFilterListCtrl_FillFilterList(_swigobj,_swigarg0,_swigarg1) (_swigobj->FillFilterList(_swigarg0,_swigarg1)) | |
10719 | static PyObject *_wrap_wxDirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10720 | PyObject * _resultobj; | |
10721 | wxDirFilterListCtrl * _arg0; | |
10722 | wxString * _arg1; | |
10723 | int _arg2; | |
10724 | PyObject * _argo0 = 0; | |
10725 | PyObject * _obj1 = 0; | |
10726 | char *_kwnames[] = { "self","filter","defaultFilter", NULL }; | |
10727 | ||
10728 | self = self; | |
10729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxDirFilterListCtrl_FillFilterList",_kwnames,&_argo0,&_obj1,&_arg2)) | |
10730 | return NULL; | |
10731 | if (_argo0) { | |
10732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
10734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_FillFilterList. Expected _wxDirFilterListCtrl_p."); | |
10735 | return NULL; | |
10736 | } | |
10737 | } | |
10738 | { | |
10739 | #if PYTHON_API_VERSION >= 1009 | |
10740 | char* tmpPtr; int tmpSize; | |
10741 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
10742 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10743 | return NULL; | |
10744 | } | |
10745 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
10746 | return NULL; | |
10747 | _arg1 = new wxString(tmpPtr, tmpSize); | |
10748 | #else | |
10749 | if (!PyString_Check(_obj1)) { | |
10750 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10751 | return NULL; | |
10752 | } | |
10753 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
10754 | #endif | |
10755 | } | |
10756 | { | |
10757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10758 | wxDirFilterListCtrl_FillFilterList(_arg0,*_arg1,_arg2); | |
10759 | ||
10760 | wxPyEndAllowThreads(__tstate); | |
10761 | if (PyErr_Occurred()) return NULL; | |
10762 | } Py_INCREF(Py_None); | |
10763 | _resultobj = Py_None; | |
10764 | { | |
10765 | if (_obj1) | |
10766 | delete _arg1; | |
10767 | } | |
10768 | return _resultobj; | |
10769 | } | |
10770 | ||
8ab979d7 | 10771 | static PyMethodDef controls2cMethods[] = { |
db34b2d4 RD |
10772 | { "wxDirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_wxDirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, |
10773 | { "wxDirFilterListCtrl_Create", (PyCFunction) _wrap_wxDirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10774 | { "new_wxPreDirFilterListCtrl", (PyCFunction) _wrap_new_wxPreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10775 | { "new_wxDirFilterListCtrl", (PyCFunction) _wrap_new_wxDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10776 | { "wxGenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10777 | { "wxGenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10778 | { "wxGenericDirCtrl_GetRootId", (PyCFunction) _wrap_wxGenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
10779 | { "wxGenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
10780 | { "wxGenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
10781 | { "wxGenericDirCtrl_SetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
10782 | { "wxGenericDirCtrl_GetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
10783 | { "wxGenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
10784 | { "wxGenericDirCtrl_ShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
10785 | { "wxGenericDirCtrl_SetPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
10786 | { "wxGenericDirCtrl_GetFilePath", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
10787 | { "wxGenericDirCtrl_GetPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
10788 | { "wxGenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
10789 | { "wxGenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
10790 | { "wxGenericDirCtrl_ExpandPath", (PyCFunction) _wrap_wxGenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
10791 | { "wxGenericDirCtrl_Create", (PyCFunction) _wrap_wxGenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10792 | { "new_wxPreGenericDirCtrl", (PyCFunction) _wrap_new_wxPreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10793 | { "new_wxGenericDirCtrl", (PyCFunction) _wrap_new_wxGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10794 | { "wxDirItemData_m_isDir_get", (PyCFunction) _wrap_wxDirItemData_m_isDir_get, METH_VARARGS | METH_KEYWORDS }, | |
10795 | { "wxDirItemData_m_isDir_set", (PyCFunction) _wrap_wxDirItemData_m_isDir_set, METH_VARARGS | METH_KEYWORDS }, | |
10796 | { "wxDirItemData_m_isExpanded_get", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_get, METH_VARARGS | METH_KEYWORDS }, | |
10797 | { "wxDirItemData_m_isExpanded_set", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_set, METH_VARARGS | METH_KEYWORDS }, | |
10798 | { "wxDirItemData_m_isHidden_get", (PyCFunction) _wrap_wxDirItemData_m_isHidden_get, METH_VARARGS | METH_KEYWORDS }, | |
10799 | { "wxDirItemData_m_isHidden_set", (PyCFunction) _wrap_wxDirItemData_m_isHidden_set, METH_VARARGS | METH_KEYWORDS }, | |
10800 | { "wxDirItemData_m_name_get", (PyCFunction) _wrap_wxDirItemData_m_name_get, METH_VARARGS | METH_KEYWORDS }, | |
10801 | { "wxDirItemData_m_name_set", (PyCFunction) _wrap_wxDirItemData_m_name_set, METH_VARARGS | METH_KEYWORDS }, | |
10802 | { "wxDirItemData_m_path_get", (PyCFunction) _wrap_wxDirItemData_m_path_get, METH_VARARGS | METH_KEYWORDS }, | |
10803 | { "wxDirItemData_m_path_set", (PyCFunction) _wrap_wxDirItemData_m_path_set, METH_VARARGS | METH_KEYWORDS }, | |
10804 | { "wxDirItemData_SetNewDirName", (PyCFunction) _wrap_wxDirItemData_SetNewDirName, METH_VARARGS | METH_KEYWORDS }, | |
10805 | { "new_wxDirItemData", (PyCFunction) _wrap_new_wxDirItemData, METH_VARARGS | METH_KEYWORDS }, | |
74bcba0e | 10806 | { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 RD |
10807 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, |
10808 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10809 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10810 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
10811 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
10812 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10813 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10814 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, |
10815 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
10816 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
10817 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
10818 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
10819 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
10820 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
10821 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
10822 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
10823 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
10824 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
10825 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
10826 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
10827 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10828 | { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10829 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, |
10830 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
10831 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10832 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10833 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, |
10834 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
10835 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
10836 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
10837 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
10838 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
10839 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
10840 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10841 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 10842 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10843 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
10844 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
10845 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
10846 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
10847 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
10848 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
10849 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, | |
10850 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
10851 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10852 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10853 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
10854 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
10855 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10856 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10857 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
10858 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10859 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
10860 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, |
10861 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
10862 | { "wxTreeCtrl_AssignStateImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, |
10863 | { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10864 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, |
10865 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10866 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
10867 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10868 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
10869 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
10870 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
0220cbc1 | 10871 | { "wxTreeCtrl__setCallbackInfo", (PyCFunction) _wrap_wxTreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
10872 | { "wxTreeCtrl_Create", (PyCFunction) _wrap_wxTreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
10873 | { "new_wxPreTreeCtrl", (PyCFunction) _wrap_new_wxPreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10874 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, |
10875 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10876 | { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
65191ae8 | 10877 | { "wxTreeEvent_GetKeyEvent", (PyCFunction) _wrap_wxTreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10878 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, |
10879 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
10880 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 | 10881 | { "new_wxTreeEvent", (PyCFunction) _wrap_new_wxTreeEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10882 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, |
10883 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
10884 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
10885 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10886 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10887 | { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10888 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, |
10889 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
10890 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
10891 | { "wxTreeItemAttr_GetFont", (PyCFunction) _wrap_wxTreeItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, |
10892 | { "wxTreeItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10893 | { "wxTreeItemAttr_GetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10894 | { "wxTreeItemAttr_HasFont", (PyCFunction) _wrap_wxTreeItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
10895 | { "wxTreeItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10896 | { "wxTreeItemAttr_HasTextColour", (PyCFunction) _wrap_wxTreeItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10897 | { "wxTreeItemAttr_SetFont", (PyCFunction) _wrap_wxTreeItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10898 | { "wxTreeItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10899 | { "wxTreeItemAttr_SetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10900 | { "new_wxTreeItemAttr", (PyCFunction) _wrap_new_wxTreeItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
059a841c RD |
10901 | { "wxListView_ClearColumnImage", (PyCFunction) _wrap_wxListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, |
10902 | { "wxListView_SetColumnImage", (PyCFunction) _wrap_wxListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
10903 | { "wxListView_IsSelected", (PyCFunction) _wrap_wxListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
10904 | { "wxListView_GetFirstSelected", (PyCFunction) _wrap_wxListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
10905 | { "wxListView_GetNextSelected", (PyCFunction) _wrap_wxListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
10906 | { "wxListView_GetFocusedItem", (PyCFunction) _wrap_wxListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
10907 | { "wxListView_Focus", (PyCFunction) _wrap_wxListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
10908 | { "wxListView_Select", (PyCFunction) _wrap_wxListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
10909 | { "wxListView_Create", (PyCFunction) _wrap_wxListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
10910 | { "new_wxPreListView", (PyCFunction) _wrap_new_wxPreListView, METH_VARARGS | METH_KEYWORDS }, | |
10911 | { "new_wxListView", (PyCFunction) _wrap_new_wxListView, METH_VARARGS | METH_KEYWORDS }, | |
dcd38683 | 10912 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10913 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, |
cd096152 RD |
10914 | { "wxListCtrl_SetItemCount", (PyCFunction) _wrap_wxListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, |
10915 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
10916 | { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10917 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, |
10918 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
10919 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
10920 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10921 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10922 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, |
10923 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
10924 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
10925 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10926 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, |
10927 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
10928 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
10929 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
10930 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
10931 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
cd096152 RD |
10932 | { "wxListCtrl_RefreshItems", (PyCFunction) _wrap_wxListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, |
10933 | { "wxListCtrl_RefreshItem", (PyCFunction) _wrap_wxListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
10934 | { "wxListCtrl_IsVirtual", (PyCFunction) _wrap_wxListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
10935 | { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
10936 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10937 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10938 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
10939 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
10940 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
10941 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
10942 | { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10943 | { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10944 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10945 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
10946 | { "wxListCtrl_GetColumnCount", (PyCFunction) _wrap_wxListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
10947 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10948 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
10949 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
10950 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
10951 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10952 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10953 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10954 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10955 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10956 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
10957 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
10958 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
10959 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
10960 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
10961 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
10962 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
10963 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
10964 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10965 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10966 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10967 | { "wxListCtrl_SetForegroundColour", (PyCFunction) _wrap_wxListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
0220cbc1 | 10968 | { "wxListCtrl__setCallbackInfo", (PyCFunction) _wrap_wxListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
10969 | { "wxListCtrl_Create", (PyCFunction) _wrap_wxListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
10970 | { "new_wxPreListCtrl", (PyCFunction) _wrap_new_wxPreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10971 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, |
059a841c RD |
10972 | { "wxListEvent_GetCacheTo", (PyCFunction) _wrap_wxListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, |
10973 | { "wxListEvent_GetCacheFrom", (PyCFunction) _wrap_wxListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10974 | { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, |
10975 | { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
10976 | { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10977 | { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
10978 | { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10979 | { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10980 | { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10981 | { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
10982 | { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, |
10983 | { "wxListEvent_GetCode", (PyCFunction) _wrap_wxListEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10984 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, |
10985 | { "wxListEvent_m_item_set", (PyCFunction) _wrap_wxListEvent_m_item_set, METH_VARARGS | METH_KEYWORDS }, | |
10986 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
10987 | { "wxListEvent_m_pointDrag_set", (PyCFunction) _wrap_wxListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10988 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, |
10989 | { "wxListEvent_m_col_set", (PyCFunction) _wrap_wxListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10990 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
10991 | { "wxListEvent_m_itemIndex_set", (PyCFunction) _wrap_wxListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
6e8a778a RD |
10992 | { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
10993 | { "wxListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10994 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, |
10995 | { "wxListEvent_m_code_set", (PyCFunction) _wrap_wxListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
059a841c | 10996 | { "new_wxListEvent", (PyCFunction) _wrap_new_wxListEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10997 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, |
10998 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
10999 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
11000 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
11001 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
11002 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
11003 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
11004 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
11005 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
11006 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
11007 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
11008 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
11009 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
11010 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
11011 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
11012 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
11013 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
11014 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
11015 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
11016 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
11017 | { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, |
11018 | { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11019 | { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11020 | { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
11021 | { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
11022 | { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
11023 | { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11024 | { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
11025 | { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
11026 | { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
11027 | { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
11028 | { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
11029 | { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
11030 | { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
11031 | { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11032 | { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11033 | { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11034 | { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
11035 | { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11036 | { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
11037 | { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
11038 | { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
11039 | { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
11040 | { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
11041 | { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
11042 | { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
11043 | { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
11044 | { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
11045 | { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11046 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
11047 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
11048 | { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11049 | { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11050 | { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11051 | { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
11052 | { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11053 | { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11054 | { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11055 | { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11056 | { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11057 | { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
11058 | { NULL, NULL } |
11059 | }; | |
1d99702e RD |
11060 | #ifdef __cplusplus |
11061 | } | |
11062 | #endif | |
11063 | /* | |
11064 | * This table is used by the pointer type-checker | |
11065 | */ | |
11066 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 11067 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, |
1d99702e | 11068 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, |
1d99702e | 11069 | { "_signed_long","_long",0}, |
b1462dfa | 11070 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
11071 | { "_wxPrintQuality","_int",0}, |
11072 | { "_wxPrintQuality","_signed_int",0}, | |
11073 | { "_wxPrintQuality","_unsigned_int",0}, | |
11074 | { "_wxPrintQuality","_wxWindowID",0}, | |
11075 | { "_wxPrintQuality","_uint",0}, | |
11076 | { "_wxPrintQuality","_EBool",0}, | |
11077 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11078 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 11079 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, |
c368d904 | 11080 | { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
1d99702e | 11081 | { "_byte","_unsigned_char",0}, |
db34b2d4 | 11082 | { "_wxChoice","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxChoice}, |
1d99702e RD |
11083 | { "_long","_unsigned_long",0}, |
11084 | { "_long","_signed_long",0}, | |
b1462dfa | 11085 | { "_size_t","_wxCoord",0}, |
1d99702e | 11086 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11087 | { "_size_t","_time_t",0}, |
1d99702e RD |
11088 | { "_size_t","_unsigned_int",0}, |
11089 | { "_size_t","_int",0}, | |
11090 | { "_size_t","_wxWindowID",0}, | |
11091 | { "_size_t","_uint",0}, | |
b1462dfa | 11092 | { "_uint","_wxCoord",0}, |
1d99702e | 11093 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11094 | { "_uint","_time_t",0}, |
1d99702e RD |
11095 | { "_uint","_size_t",0}, |
11096 | { "_uint","_unsigned_int",0}, | |
11097 | { "_uint","_int",0}, | |
11098 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11099 | { "_wxChar","_char",0}, |
1d99702e | 11100 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, |
1d99702e | 11101 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, |
f6bcfd97 | 11102 | { "_char","_wxChar",0}, |
059a841c | 11103 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 11104 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
11105 | { "_EBool","_wxPrintQuality",0}, |
11106 | { "_EBool","_signed_int",0}, | |
11107 | { "_EBool","_int",0}, | |
11108 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 11109 | { "_unsigned_long","_long",0}, |
059a841c | 11110 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 11111 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
11112 | { "_signed_int","_wxPrintQuality",0}, |
11113 | { "_signed_int","_EBool",0}, | |
11114 | { "_signed_int","_wxWindowID",0}, | |
11115 | { "_signed_int","_int",0}, | |
1d99702e RD |
11116 | { "_WXTYPE","_short",0}, |
11117 | { "_WXTYPE","_signed_short",0}, | |
11118 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
11119 | { "_unsigned_short","_WXTYPE",0}, |
11120 | { "_unsigned_short","_short",0}, | |
db34b2d4 RD |
11121 | { "_wxObject","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxObject}, |
11122 | { "_wxObject","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxObject}, | |
11123 | { "_wxObject","_wxDirItemData",SwigwxDirItemDataTowxObject}, | |
9df61a29 | 11124 | { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, |
9df61a29 | 11125 | { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject}, |
9df61a29 | 11126 | { "_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, |
059a841c | 11127 | { "_wxObject","_wxListView",SwigwxListViewTowxObject}, |
cd096152 | 11128 | { "_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, |
9df61a29 | 11129 | { "_wxObject","_wxListEvent",SwigwxListEventTowxObject}, |
9df61a29 | 11130 | { "_wxObject","_wxListItem",SwigwxListItemTowxObject}, |
1d99702e RD |
11131 | { "_signed_short","_WXTYPE",0}, |
11132 | { "_signed_short","_short",0}, | |
1d99702e | 11133 | { "_unsigned_char","_byte",0}, |
db34b2d4 RD |
11134 | { "_wxControl","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControl}, |
11135 | { "_wxControl","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxControl}, | |
f6bcfd97 | 11136 | { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
059a841c | 11137 | { "_wxControl","_wxListView",SwigwxListViewTowxControl}, |
cd096152 | 11138 | { "_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, |
b1462dfa | 11139 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 11140 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 11141 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
11142 | { "_unsigned_int","_size_t",0}, |
11143 | { "_unsigned_int","_uint",0}, | |
11144 | { "_unsigned_int","_wxWindowID",0}, | |
11145 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
11146 | { "_short","_WXTYPE",0}, |
11147 | { "_short","_unsigned_short",0}, | |
11148 | { "_short","_signed_short",0}, | |
db34b2d4 | 11149 | { "_wxControlWithItems","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControlWithItems}, |
b1462dfa | 11150 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 11151 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 11152 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
11153 | { "_wxWindowID","_size_t",0}, |
11154 | { "_wxWindowID","_EBool",0}, | |
11155 | { "_wxWindowID","_uint",0}, | |
11156 | { "_wxWindowID","_int",0}, | |
11157 | { "_wxWindowID","_signed_int",0}, | |
11158 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 11159 | { "_int","_wxCoord",0}, |
1d99702e | 11160 | { "_int","_wxPrintQuality",0}, |
c368d904 | 11161 | { "_int","_time_t",0}, |
1d99702e RD |
11162 | { "_int","_size_t",0}, |
11163 | { "_int","_EBool",0}, | |
11164 | { "_int","_uint",0}, | |
11165 | { "_int","_wxWindowID",0}, | |
11166 | { "_int","_unsigned_int",0}, | |
11167 | { "_int","_signed_int",0}, | |
c368d904 RD |
11168 | { "_time_t","_wxCoord",0}, |
11169 | { "_time_t","_wxPrintQuality",0}, | |
11170 | { "_time_t","_unsigned_int",0}, | |
11171 | { "_time_t","_int",0}, | |
11172 | { "_time_t","_wxWindowID",0}, | |
11173 | { "_time_t","_uint",0}, | |
11174 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
11175 | { "_wxCoord","_int",0}, |
11176 | { "_wxCoord","_signed_int",0}, | |
11177 | { "_wxCoord","_unsigned_int",0}, | |
11178 | { "_wxCoord","_wxWindowID",0}, | |
11179 | { "_wxCoord","_uint",0}, | |
11180 | { "_wxCoord","_EBool",0}, | |
11181 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11182 | { "_wxCoord","_time_t",0}, |
b1462dfa | 11183 | { "_wxCoord","_wxPrintQuality",0}, |
059a841c | 11184 | { "_wxPyListCtrl","_wxListView",SwigwxListViewTowxPyListCtrl}, |
db34b2d4 RD |
11185 | { "_wxEvtHandler","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxEvtHandler}, |
11186 | { "_wxEvtHandler","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxEvtHandler}, | |
f6bcfd97 | 11187 | { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
059a841c | 11188 | { "_wxEvtHandler","_wxListView",SwigwxListViewTowxEvtHandler}, |
cd096152 | 11189 | { "_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, |
db34b2d4 RD |
11190 | { "_wxWindow","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxWindow}, |
11191 | { "_wxWindow","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxWindow}, | |
f6bcfd97 | 11192 | { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
059a841c | 11193 | { "_wxWindow","_wxListView",SwigwxListViewTowxWindow}, |
cd096152 | 11194 | { "_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, |
1d99702e RD |
11195 | {0,0,0}}; |
11196 | ||
8ab979d7 RD |
11197 | static PyObject *SWIG_globals; |
11198 | #ifdef __cplusplus | |
11199 | extern "C" | |
11200 | #endif | |
1d99702e | 11201 | SWIGEXPORT(void) initcontrols2c() { |
8ab979d7 RD |
11202 | PyObject *m, *d; |
11203 | SWIG_globals = SWIG_newvarlink(); | |
11204 | m = Py_InitModule("controls2c", controls2cMethods); | |
11205 | d = PyModule_GetDict(m); | |
cd096152 RD |
11206 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
11207 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
11208 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
11209 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
11210 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
11211 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
11212 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO)); | |
11213 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO)); | |
11214 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
11215 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
11216 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN)); | |
11217 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
11218 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK)); | |
11219 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
11220 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
11221 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
11222 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_CACHE_HINT)); | |
059a841c RD |
11223 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); |
11224 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
11225 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
11226 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
262e41eb | 11227 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_FOCUSED)); |
cd096152 RD |
11228 | PyDict_SetItemString(d,"wxLC_VRULES", PyInt_FromLong((long) wxLC_VRULES)); |
11229 | PyDict_SetItemString(d,"wxLC_HRULES", PyInt_FromLong((long) wxLC_HRULES)); | |
11230 | PyDict_SetItemString(d,"wxLC_ICON", PyInt_FromLong((long) wxLC_ICON)); | |
11231 | PyDict_SetItemString(d,"wxLC_SMALL_ICON", PyInt_FromLong((long) wxLC_SMALL_ICON)); | |
11232 | PyDict_SetItemString(d,"wxLC_LIST", PyInt_FromLong((long) wxLC_LIST)); | |
11233 | PyDict_SetItemString(d,"wxLC_REPORT", PyInt_FromLong((long) wxLC_REPORT)); | |
11234 | PyDict_SetItemString(d,"wxLC_ALIGN_TOP", PyInt_FromLong((long) wxLC_ALIGN_TOP)); | |
11235 | PyDict_SetItemString(d,"wxLC_ALIGN_LEFT", PyInt_FromLong((long) wxLC_ALIGN_LEFT)); | |
11236 | PyDict_SetItemString(d,"wxLC_AUTOARRANGE", PyInt_FromLong((long) wxLC_AUTOARRANGE)); | |
11237 | PyDict_SetItemString(d,"wxLC_VIRTUAL", PyInt_FromLong((long) wxLC_VIRTUAL)); | |
11238 | PyDict_SetItemString(d,"wxLC_EDIT_LABELS", PyInt_FromLong((long) wxLC_EDIT_LABELS)); | |
11239 | PyDict_SetItemString(d,"wxLC_NO_HEADER", PyInt_FromLong((long) wxLC_NO_HEADER)); | |
11240 | PyDict_SetItemString(d,"wxLC_NO_SORT_HEADER", PyInt_FromLong((long) wxLC_NO_SORT_HEADER)); | |
11241 | PyDict_SetItemString(d,"wxLC_SINGLE_SEL", PyInt_FromLong((long) wxLC_SINGLE_SEL)); | |
11242 | PyDict_SetItemString(d,"wxLC_SORT_ASCENDING", PyInt_FromLong((long) wxLC_SORT_ASCENDING)); | |
11243 | PyDict_SetItemString(d,"wxLC_SORT_DESCENDING", PyInt_FromLong((long) wxLC_SORT_DESCENDING)); | |
11244 | PyDict_SetItemString(d,"wxLC_MASK_TYPE", PyInt_FromLong((long) wxLC_MASK_TYPE)); | |
11245 | PyDict_SetItemString(d,"wxLC_MASK_ALIGN", PyInt_FromLong((long) wxLC_MASK_ALIGN)); | |
11246 | PyDict_SetItemString(d,"wxLC_MASK_SORT", PyInt_FromLong((long) wxLC_MASK_SORT)); | |
059a841c | 11247 | PyDict_SetItemString(d,"wxLC_USER_TEXT", PyInt_FromLong((long) wxLC_USER_TEXT)); |
cd096152 | 11248 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); |
af309447 RD |
11249 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); |
11250 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
11251 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
cd096152 | 11252 | PyDict_SetItemString(d,"wxLIST_SET_ITEM", PyInt_FromLong((long) wxLIST_SET_ITEM)); |
af309447 RD |
11253 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); |
11254 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
11255 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); | |
11256 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
11257 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
11258 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
11259 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
11260 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
11261 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
11262 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
11263 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
11264 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
11265 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
11266 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
11267 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
11268 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
11269 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
11270 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
11271 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
11272 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
11273 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
11274 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
11275 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
11276 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
11277 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
11278 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
af309447 RD |
11279 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); |
11280 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
11281 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
11282 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
11283 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
11284 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
11285 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
11286 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
11287 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
f6bcfd97 BP |
11288 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); |
11289 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
11290 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
11291 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
aa2a5b86 RD |
11292 | PyDict_SetItemString(d,"wxTR_NO_BUTTONS", PyInt_FromLong((long) wxTR_NO_BUTTONS)); |
11293 | PyDict_SetItemString(d,"wxTR_HAS_BUTTONS", PyInt_FromLong((long) wxTR_HAS_BUTTONS)); | |
11294 | PyDict_SetItemString(d,"wxTR_TWIST_BUTTONS", PyInt_FromLong((long) wxTR_TWIST_BUTTONS)); | |
11295 | PyDict_SetItemString(d,"wxTR_NO_LINES", PyInt_FromLong((long) wxTR_NO_LINES)); | |
11296 | PyDict_SetItemString(d,"wxTR_MAC_BUTTONS", PyInt_FromLong((long) wxTR_MAC_BUTTONS)); | |
1893b029 | 11297 | PyDict_SetItemString(d,"wxTR_AQUA_BUTTONS", PyInt_FromLong((long) wxTR_AQUA_BUTTONS)); |
aa2a5b86 RD |
11298 | PyDict_SetItemString(d,"wxTR_SINGLE", PyInt_FromLong((long) wxTR_SINGLE)); |
11299 | PyDict_SetItemString(d,"wxTR_MULTIPLE", PyInt_FromLong((long) wxTR_MULTIPLE)); | |
11300 | PyDict_SetItemString(d,"wxTR_EXTENDED", PyInt_FromLong((long) wxTR_EXTENDED)); | |
1893b029 | 11301 | PyDict_SetItemString(d,"wxTR_FULL_ROW_HIGHLIGHT", PyInt_FromLong((long) wxTR_FULL_ROW_HIGHLIGHT)); |
aa2a5b86 RD |
11302 | PyDict_SetItemString(d,"wxTR_EDIT_LABELS", PyInt_FromLong((long) wxTR_EDIT_LABELS)); |
11303 | PyDict_SetItemString(d,"wxTR_LINES_AT_ROOT", PyInt_FromLong((long) wxTR_LINES_AT_ROOT)); | |
11304 | PyDict_SetItemString(d,"wxTR_HIDE_ROOT", PyInt_FromLong((long) wxTR_HIDE_ROOT)); | |
11305 | PyDict_SetItemString(d,"wxTR_ROW_LINES", PyInt_FromLong((long) wxTR_ROW_LINES)); | |
11306 | PyDict_SetItemString(d,"wxTR_HAS_VARIABLE_ROW_HEIGHT", PyInt_FromLong((long) wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
11307 | PyDict_SetItemString(d,"wxTR_DEFAULT_STYLE", PyInt_FromLong((long) wxTR_DEFAULT_STYLE)); | |
694759cf RD |
11308 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); |
11309 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
11310 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
11311 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
11312 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
164b735b RD |
11313 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); |
11314 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
11315 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
11316 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
11317 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
11318 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
11319 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
11320 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
11321 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
11322 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
11323 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
11324 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
11325 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
11326 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
9c4165ad RD |
11327 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
11328 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
11329 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
11330 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
11331 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
11332 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO)); | |
11333 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO)); | |
11334 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
11335 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
11336 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
11337 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
11338 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
11339 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
11340 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN)); | |
11341 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
11342 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
11343 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
7a446686 | 11344 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG)); |
db34b2d4 RD |
11345 | PyDict_SetItemString(d,"wxDIRCTRL_DIR_ONLY", PyInt_FromLong((long) wxDIRCTRL_DIR_ONLY)); |
11346 | PyDict_SetItemString(d,"wxDIRCTRL_SELECT_FIRST", PyInt_FromLong((long) wxDIRCTRL_SELECT_FIRST)); | |
11347 | PyDict_SetItemString(d,"wxDIRCTRL_SHOW_FILTERS", PyInt_FromLong((long) wxDIRCTRL_SHOW_FILTERS)); | |
11348 | PyDict_SetItemString(d,"wxDIRCTRL_3D_INTERNAL", PyInt_FromLong((long) wxDIRCTRL_3D_INTERNAL)); | |
9df61a29 | 11349 | |
059a841c | 11350 | // Map renamed classes back to their common name for OOR |
9df61a29 RD |
11351 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); |
11352 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
059a841c | 11353 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); |
1d99702e RD |
11354 | { |
11355 | int i; | |
11356 | for (i = 0; _swig_mapping[i].n1; i++) | |
11357 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11358 | } | |
8ab979d7 | 11359 | } |