]>
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 | } | |
aa2a5b86 | 93 | // C++ Version of a Python aware class |
cd096152 RD |
94 | class wxPyListCtrl : public wxListCtrl { |
95 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
96 | public: | |
aa2a5b86 | 97 | wxPyListCtrl() : wxListCtrl() {} |
cd096152 RD |
98 | wxPyListCtrl(wxWindow* parent, wxWindowID id, |
99 | const wxPoint& pos, | |
100 | const wxSize& size, | |
101 | long style, | |
102 | const wxValidator& validator, | |
103 | char* name) : | |
104 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
105 | ||
aa2a5b86 RD |
106 | bool Create(wxWindow* parent, wxWindowID id, |
107 | const wxPoint& pos, | |
108 | const wxSize& size, | |
109 | long style, | |
110 | const wxValidator& validator, | |
111 | char* name) { | |
112 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
113 | } | |
114 | ||
cd096152 RD |
115 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); |
116 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
117 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
118 | ||
119 | PYPRIVATE; | |
120 | }; | |
121 | ||
122 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
123 | ||
124 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
125 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
126 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
059a841c | 127 | // Python aware sorting function for wxPyListCtrl |
f6bcfd97 | 128 | int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { |
dcd38683 RD |
129 | int retval = 0; |
130 | PyObject* func = (PyObject*)funcPtr; | |
474c48f9 | 131 | wxPyBeginBlockThreads(); |
dcd38683 RD |
132 | |
133 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
134 | PyObject* result = PyEval_CallObject(func, args); | |
135 | Py_DECREF(args); | |
136 | if (result) { | |
137 | retval = PyInt_AsLong(result); | |
138 | Py_DECREF(result); | |
139 | } | |
140 | ||
474c48f9 | 141 | wxPyEndBlockThreads(); |
dcd38683 RD |
142 | return retval; |
143 | } | |
144 | ||
145 | ||
cf694132 RD |
146 | class wxPyTreeItemData : public wxTreeItemData { |
147 | public: | |
148 | wxPyTreeItemData(PyObject* obj = NULL) { | |
c368d904 | 149 | if (obj == NULL) |
cf694132 | 150 | obj = Py_None; |
c368d904 RD |
151 | Py_INCREF(obj); |
152 | m_obj = obj; | |
cf694132 RD |
153 | } |
154 | ||
155 | ~wxPyTreeItemData() { | |
474c48f9 | 156 | wxPyBeginBlockThreads(); |
c368d904 | 157 | Py_DECREF(m_obj); |
474c48f9 | 158 | wxPyEndBlockThreads(); |
cf694132 RD |
159 | } |
160 | ||
161 | PyObject* GetData() { | |
162 | Py_INCREF(m_obj); | |
163 | return m_obj; | |
164 | } | |
165 | ||
166 | void SetData(PyObject* obj) { | |
474c48f9 | 167 | wxPyBeginBlockThreads(); |
cf694132 | 168 | Py_DECREF(m_obj); |
474c48f9 | 169 | wxPyEndBlockThreads(); |
cf694132 RD |
170 | m_obj = obj; |
171 | Py_INCREF(obj); | |
172 | } | |
173 | ||
174 | PyObject* m_obj; | |
175 | }; | |
aa2a5b86 | 176 | // C++ version of Python aware wxTreeCtrl |
f6bcfd97 | 177 | class wxPyTreeCtrl : public wxTreeCtrl { |
9df61a29 | 178 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); |
f6bcfd97 | 179 | public: |
aa2a5b86 | 180 | wxPyTreeCtrl() : wxTreeCtrl() {} |
f6bcfd97 BP |
181 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, |
182 | const wxPoint& pos, | |
183 | const wxSize& size, | |
184 | long style, | |
185 | const wxValidator& validator, | |
186 | char* name) : | |
187 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
188 | ||
aa2a5b86 RD |
189 | bool Create(wxWindow *parent, wxWindowID id, |
190 | const wxPoint& pos, | |
191 | const wxSize& size, | |
192 | long style, | |
193 | const wxValidator& validator, | |
194 | char* name) { | |
195 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
196 | } | |
197 | ||
198 | ||
f6bcfd97 BP |
199 | int OnCompareItems(const wxTreeItemId& item1, |
200 | const wxTreeItemId& item2) { | |
201 | int rval = 0; | |
059a841c | 202 | bool found; |
474c48f9 | 203 | wxPyBeginBlockThreads(); |
059a841c | 204 | if ((found = m_myInst.findCallback("OnCompareItems"))) |
f6bcfd97 BP |
205 | rval = m_myInst.callCallback(Py_BuildValue( |
206 | "(OO)", | |
207 | wxPyConstructObject((void*)&item1, "wxTreeItemId"), | |
208 | wxPyConstructObject((void*)&item2, "wxTreeItemId"))); | |
474c48f9 | 209 | wxPyEndBlockThreads(); |
059a841c | 210 | if (! found) |
f6bcfd97 | 211 | rval = wxTreeCtrl::OnCompareItems(item1, item2); |
f6bcfd97 BP |
212 | return rval; |
213 | } | |
214 | PYPRIVATE; | |
215 | }; | |
216 | ||
9df61a29 RD |
217 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); |
218 | ||
1d99702e RD |
219 | #ifdef __cplusplus |
220 | extern "C" { | |
221 | #endif | |
cd096152 | 222 | #define new_wxListItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxListItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
f6bcfd97 BP |
223 | static PyObject *_wrap_new_wxListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
224 | PyObject * _resultobj; | |
225 | wxListItemAttr * _result; | |
cd096152 RD |
226 | wxColour * _arg0 = (wxColour *) &wxNullColour; |
227 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
228 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
229 | wxColour temp; | |
230 | PyObject * _obj0 = 0; | |
231 | wxColour temp0; | |
232 | PyObject * _obj1 = 0; | |
233 | PyObject * _argo2 = 0; | |
234 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
f6bcfd97 BP |
235 | char _ptemp[128]; |
236 | ||
237 | self = self; | |
cd096152 RD |
238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxListItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) |
239 | return NULL; | |
240 | if (_obj0) | |
241 | { | |
242 | _arg0 = &temp; | |
243 | if (! wxColour_helper(_obj0, &_arg0)) | |
244 | return NULL; | |
245 | } | |
246 | if (_obj1) | |
247 | { | |
248 | _arg1 = &temp0; | |
249 | if (! wxColour_helper(_obj1, &_arg1)) | |
250 | return NULL; | |
251 | } | |
252 | if (_argo2) { | |
253 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
254 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxListItemAttr. Expected _wxFont_p."); | |
f6bcfd97 | 256 | return NULL; |
cd096152 RD |
257 | } |
258 | } | |
f6bcfd97 | 259 | { |
474c48f9 | 260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 261 | _result = (wxListItemAttr *)new_wxListItemAttr(*_arg0,*_arg1,*_arg2); |
f6bcfd97 | 262 | |
474c48f9 | 263 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 264 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
265 | } if (_result) { |
266 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
267 | _resultobj = Py_BuildValue("s",_ptemp); | |
268 | } else { | |
269 | Py_INCREF(Py_None); | |
270 | _resultobj = Py_None; | |
271 | } | |
272 | return _resultobj; | |
273 | } | |
274 | ||
275 | #define wxListItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
276 | static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
277 | PyObject * _resultobj; | |
278 | wxListItemAttr * _arg0; | |
279 | wxColour * _arg1; | |
280 | PyObject * _argo0 = 0; | |
281 | wxColour temp; | |
282 | PyObject * _obj1 = 0; | |
283 | char *_kwnames[] = { "self","colText", NULL }; | |
284 | ||
285 | self = self; | |
286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
287 | return NULL; | |
288 | if (_argo0) { | |
289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetTextColour. Expected _wxListItemAttr_p."); | |
292 | return NULL; | |
293 | } | |
294 | } | |
295 | { | |
296 | _arg1 = &temp; | |
297 | if (! wxColour_helper(_obj1, &_arg1)) | |
298 | return NULL; | |
299 | } | |
300 | { | |
474c48f9 | 301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 302 | wxListItemAttr_SetTextColour(_arg0,*_arg1); |
f6bcfd97 | 303 | |
474c48f9 | 304 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 305 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
306 | } Py_INCREF(Py_None); |
307 | _resultobj = Py_None; | |
308 | return _resultobj; | |
309 | } | |
310 | ||
311 | #define wxListItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
312 | static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
313 | PyObject * _resultobj; | |
314 | wxListItemAttr * _arg0; | |
315 | wxColour * _arg1; | |
316 | PyObject * _argo0 = 0; | |
317 | wxColour temp; | |
318 | PyObject * _obj1 = 0; | |
319 | char *_kwnames[] = { "self","colBack", NULL }; | |
320 | ||
321 | self = self; | |
322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
323 | return NULL; | |
324 | if (_argo0) { | |
325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetBackgroundColour. Expected _wxListItemAttr_p."); | |
328 | return NULL; | |
329 | } | |
330 | } | |
331 | { | |
332 | _arg1 = &temp; | |
333 | if (! wxColour_helper(_obj1, &_arg1)) | |
334 | return NULL; | |
335 | } | |
336 | { | |
474c48f9 | 337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 338 | wxListItemAttr_SetBackgroundColour(_arg0,*_arg1); |
f6bcfd97 | 339 | |
474c48f9 | 340 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 341 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
342 | } Py_INCREF(Py_None); |
343 | _resultobj = Py_None; | |
344 | return _resultobj; | |
345 | } | |
346 | ||
347 | #define wxListItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
348 | static PyObject *_wrap_wxListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
349 | PyObject * _resultobj; | |
350 | wxListItemAttr * _arg0; | |
351 | wxFont * _arg1; | |
352 | PyObject * _argo0 = 0; | |
353 | PyObject * _argo1 = 0; | |
354 | char *_kwnames[] = { "self","font", NULL }; | |
355 | ||
356 | self = self; | |
357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
358 | return NULL; | |
359 | if (_argo0) { | |
360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetFont. Expected _wxListItemAttr_p."); | |
363 | return NULL; | |
364 | } | |
365 | } | |
366 | if (_argo1) { | |
367 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
368 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetFont. Expected _wxFont_p."); | |
370 | return NULL; | |
371 | } | |
372 | } | |
373 | { | |
474c48f9 | 374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 375 | wxListItemAttr_SetFont(_arg0,*_arg1); |
f6bcfd97 | 376 | |
474c48f9 | 377 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 378 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
379 | } Py_INCREF(Py_None); |
380 | _resultobj = Py_None; | |
381 | return _resultobj; | |
382 | } | |
383 | ||
384 | #define wxListItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
385 | static PyObject *_wrap_wxListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
386 | PyObject * _resultobj; | |
387 | bool _result; | |
388 | wxListItemAttr * _arg0; | |
389 | PyObject * _argo0 = 0; | |
390 | char *_kwnames[] = { "self", NULL }; | |
391 | ||
392 | self = self; | |
393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasTextColour",_kwnames,&_argo0)) | |
394 | return NULL; | |
395 | if (_argo0) { | |
396 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
397 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasTextColour. Expected _wxListItemAttr_p."); | |
399 | return NULL; | |
400 | } | |
401 | } | |
402 | { | |
474c48f9 | 403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 404 | _result = (bool )wxListItemAttr_HasTextColour(_arg0); |
f6bcfd97 | 405 | |
474c48f9 | 406 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 407 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
408 | } _resultobj = Py_BuildValue("i",_result); |
409 | return _resultobj; | |
410 | } | |
411 | ||
412 | #define wxListItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
413 | static PyObject *_wrap_wxListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
414 | PyObject * _resultobj; | |
415 | bool _result; | |
416 | wxListItemAttr * _arg0; | |
417 | PyObject * _argo0 = 0; | |
418 | char *_kwnames[] = { "self", NULL }; | |
419 | ||
420 | self = self; | |
421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
422 | return NULL; | |
423 | if (_argo0) { | |
424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasBackgroundColour. Expected _wxListItemAttr_p."); | |
427 | return NULL; | |
428 | } | |
429 | } | |
430 | { | |
474c48f9 | 431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 432 | _result = (bool )wxListItemAttr_HasBackgroundColour(_arg0); |
f6bcfd97 | 433 | |
474c48f9 | 434 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 435 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
436 | } _resultobj = Py_BuildValue("i",_result); |
437 | return _resultobj; | |
438 | } | |
439 | ||
440 | #define wxListItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
441 | static PyObject *_wrap_wxListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
442 | PyObject * _resultobj; | |
443 | bool _result; | |
444 | wxListItemAttr * _arg0; | |
445 | PyObject * _argo0 = 0; | |
446 | char *_kwnames[] = { "self", NULL }; | |
447 | ||
448 | self = self; | |
449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasFont",_kwnames,&_argo0)) | |
450 | return NULL; | |
451 | if (_argo0) { | |
452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasFont. Expected _wxListItemAttr_p."); | |
455 | return NULL; | |
456 | } | |
457 | } | |
458 | { | |
474c48f9 | 459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 460 | _result = (bool )wxListItemAttr_HasFont(_arg0); |
f6bcfd97 | 461 | |
474c48f9 | 462 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 463 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
464 | } _resultobj = Py_BuildValue("i",_result); |
465 | return _resultobj; | |
466 | } | |
467 | ||
468 | #define wxListItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
469 | static PyObject *_wrap_wxListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
470 | PyObject * _resultobj; | |
471 | wxColour * _result; | |
472 | wxListItemAttr * _arg0; | |
473 | PyObject * _argo0 = 0; | |
474 | char *_kwnames[] = { "self", NULL }; | |
475 | char _ptemp[128]; | |
476 | ||
477 | self = self; | |
478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetTextColour",_kwnames,&_argo0)) | |
479 | return NULL; | |
480 | if (_argo0) { | |
481 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
482 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetTextColour. Expected _wxListItemAttr_p."); | |
484 | return NULL; | |
485 | } | |
486 | } | |
487 | { | |
474c48f9 | 488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 489 | _result = new wxColour (wxListItemAttr_GetTextColour(_arg0)); |
f6bcfd97 | 490 | |
474c48f9 | 491 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 492 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
493 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
494 | _resultobj = Py_BuildValue("s",_ptemp); | |
f6bcfd97 BP |
495 | return _resultobj; |
496 | } | |
497 | ||
498 | #define wxListItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
499 | static PyObject *_wrap_wxListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
500 | PyObject * _resultobj; | |
501 | wxColour * _result; | |
502 | wxListItemAttr * _arg0; | |
503 | PyObject * _argo0 = 0; | |
504 | char *_kwnames[] = { "self", NULL }; | |
505 | char _ptemp[128]; | |
506 | ||
507 | self = self; | |
508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
509 | return NULL; | |
510 | if (_argo0) { | |
511 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
512 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
513 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetBackgroundColour. Expected _wxListItemAttr_p."); | |
514 | return NULL; | |
515 | } | |
516 | } | |
517 | { | |
474c48f9 | 518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 519 | _result = new wxColour (wxListItemAttr_GetBackgroundColour(_arg0)); |
f6bcfd97 | 520 | |
474c48f9 | 521 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 522 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
523 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
524 | _resultobj = Py_BuildValue("s",_ptemp); | |
f6bcfd97 BP |
525 | return _resultobj; |
526 | } | |
527 | ||
528 | #define wxListItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
529 | static PyObject *_wrap_wxListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
530 | PyObject * _resultobj; | |
531 | wxFont * _result; | |
532 | wxListItemAttr * _arg0; | |
533 | PyObject * _argo0 = 0; | |
534 | char *_kwnames[] = { "self", NULL }; | |
535 | char _ptemp[128]; | |
536 | ||
537 | self = self; | |
538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetFont",_kwnames,&_argo0)) | |
539 | return NULL; | |
540 | if (_argo0) { | |
541 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
542 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
543 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetFont. Expected _wxListItemAttr_p."); | |
544 | return NULL; | |
545 | } | |
546 | } | |
547 | { | |
474c48f9 | 548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 549 | _result = new wxFont (wxListItemAttr_GetFont(_arg0)); |
f6bcfd97 | 550 | |
474c48f9 | 551 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 552 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
553 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
554 | _resultobj = Py_BuildValue("s",_ptemp); | |
f6bcfd97 BP |
555 | return _resultobj; |
556 | } | |
557 | ||
9df61a29 RD |
558 | static void *SwigwxListItemTowxObject(void *ptr) { |
559 | wxListItem *src; | |
560 | wxObject *dest; | |
561 | src = (wxListItem *) ptr; | |
562 | dest = (wxObject *) src; | |
563 | return (void *) dest; | |
564 | } | |
565 | ||
f6bcfd97 BP |
566 | #define new_wxListItem() (new wxListItem()) |
567 | static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
568 | PyObject * _resultobj; | |
569 | wxListItem * _result; | |
570 | char *_kwnames[] = { NULL }; | |
571 | char _ptemp[128]; | |
572 | ||
573 | self = self; | |
574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames)) | |
575 | return NULL; | |
576 | { | |
474c48f9 | 577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 578 | _result = (wxListItem *)new_wxListItem(); |
f6bcfd97 | 579 | |
474c48f9 | 580 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 581 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
582 | } if (_result) { |
583 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
584 | _resultobj = Py_BuildValue("s",_ptemp); | |
585 | } else { | |
586 | Py_INCREF(Py_None); | |
587 | _resultobj = Py_None; | |
588 | } | |
589 | return _resultobj; | |
590 | } | |
591 | ||
592 | #define delete_wxListItem(_swigobj) (delete _swigobj) | |
593 | static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
594 | PyObject * _resultobj; | |
595 | wxListItem * _arg0; | |
596 | PyObject * _argo0 = 0; | |
597 | char *_kwnames[] = { "self", NULL }; | |
598 | ||
599 | self = self; | |
600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0)) | |
601 | return NULL; | |
602 | if (_argo0) { | |
603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p."); | |
606 | return NULL; | |
607 | } | |
608 | } | |
609 | { | |
474c48f9 | 610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 611 | delete_wxListItem(_arg0); |
f6bcfd97 | 612 | |
474c48f9 | 613 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 614 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
615 | } Py_INCREF(Py_None); |
616 | _resultobj = Py_None; | |
617 | return _resultobj; | |
618 | } | |
619 | ||
620 | #define wxListItem_Clear(_swigobj) (_swigobj->Clear()) | |
621 | static PyObject *_wrap_wxListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
622 | PyObject * _resultobj; | |
623 | wxListItem * _arg0; | |
624 | PyObject * _argo0 = 0; | |
625 | char *_kwnames[] = { "self", NULL }; | |
626 | ||
627 | self = self; | |
628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_Clear",_kwnames,&_argo0)) | |
629 | return NULL; | |
630 | if (_argo0) { | |
631 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
632 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_Clear. Expected _wxListItem_p."); | |
634 | return NULL; | |
635 | } | |
636 | } | |
637 | { | |
474c48f9 | 638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 639 | wxListItem_Clear(_arg0); |
f6bcfd97 | 640 | |
474c48f9 | 641 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 642 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
643 | } Py_INCREF(Py_None); |
644 | _resultobj = Py_None; | |
645 | return _resultobj; | |
646 | } | |
647 | ||
648 | #define wxListItem_ClearAttributes(_swigobj) (_swigobj->ClearAttributes()) | |
649 | static PyObject *_wrap_wxListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
650 | PyObject * _resultobj; | |
651 | wxListItem * _arg0; | |
652 | PyObject * _argo0 = 0; | |
653 | char *_kwnames[] = { "self", NULL }; | |
654 | ||
655 | self = self; | |
656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_ClearAttributes",_kwnames,&_argo0)) | |
657 | return NULL; | |
658 | if (_argo0) { | |
659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_ClearAttributes. Expected _wxListItem_p."); | |
662 | return NULL; | |
663 | } | |
664 | } | |
665 | { | |
474c48f9 | 666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 667 | wxListItem_ClearAttributes(_arg0); |
f6bcfd97 | 668 | |
474c48f9 | 669 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 670 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
671 | } Py_INCREF(Py_None); |
672 | _resultobj = Py_None; | |
673 | return _resultobj; | |
674 | } | |
675 | ||
676 | #define wxListItem_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
677 | static PyObject *_wrap_wxListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
678 | PyObject * _resultobj; | |
679 | wxListItem * _arg0; | |
680 | long _arg1; | |
681 | PyObject * _argo0 = 0; | |
682 | char *_kwnames[] = { "self","mask", NULL }; | |
683 | ||
684 | self = self; | |
685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetMask",_kwnames,&_argo0,&_arg1)) | |
686 | return NULL; | |
687 | if (_argo0) { | |
688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetMask. Expected _wxListItem_p."); | |
691 | return NULL; | |
692 | } | |
693 | } | |
694 | { | |
474c48f9 | 695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 696 | wxListItem_SetMask(_arg0,_arg1); |
f6bcfd97 | 697 | |
474c48f9 | 698 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 699 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
700 | } Py_INCREF(Py_None); |
701 | _resultobj = Py_None; | |
702 | return _resultobj; | |
703 | } | |
704 | ||
705 | #define wxListItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
706 | static PyObject *_wrap_wxListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
707 | PyObject * _resultobj; | |
708 | wxListItem * _arg0; | |
709 | long _arg1; | |
710 | PyObject * _argo0 = 0; | |
711 | char *_kwnames[] = { "self","id", NULL }; | |
712 | ||
713 | self = self; | |
714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetId",_kwnames,&_argo0,&_arg1)) | |
715 | return NULL; | |
716 | if (_argo0) { | |
717 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
718 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
719 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetId. Expected _wxListItem_p."); | |
720 | return NULL; | |
721 | } | |
722 | } | |
723 | { | |
474c48f9 | 724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 725 | wxListItem_SetId(_arg0,_arg1); |
f6bcfd97 | 726 | |
474c48f9 | 727 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 728 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
729 | } Py_INCREF(Py_None); |
730 | _resultobj = Py_None; | |
731 | return _resultobj; | |
732 | } | |
733 | ||
734 | #define wxListItem_SetColumn(_swigobj,_swigarg0) (_swigobj->SetColumn(_swigarg0)) | |
735 | static PyObject *_wrap_wxListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
736 | PyObject * _resultobj; | |
737 | wxListItem * _arg0; | |
738 | int _arg1; | |
739 | PyObject * _argo0 = 0; | |
740 | char *_kwnames[] = { "self","col", NULL }; | |
741 | ||
742 | self = self; | |
743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetColumn",_kwnames,&_argo0,&_arg1)) | |
744 | return NULL; | |
745 | if (_argo0) { | |
746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetColumn. Expected _wxListItem_p."); | |
749 | return NULL; | |
750 | } | |
751 | } | |
752 | { | |
474c48f9 | 753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 754 | wxListItem_SetColumn(_arg0,_arg1); |
f6bcfd97 | 755 | |
474c48f9 | 756 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 757 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
758 | } Py_INCREF(Py_None); |
759 | _resultobj = Py_None; | |
760 | return _resultobj; | |
761 | } | |
762 | ||
763 | #define wxListItem_SetState(_swigobj,_swigarg0) (_swigobj->SetState(_swigarg0)) | |
764 | static PyObject *_wrap_wxListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
765 | PyObject * _resultobj; | |
766 | wxListItem * _arg0; | |
767 | long _arg1; | |
768 | PyObject * _argo0 = 0; | |
769 | char *_kwnames[] = { "self","state", NULL }; | |
770 | ||
771 | self = self; | |
772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetState",_kwnames,&_argo0,&_arg1)) | |
773 | return NULL; | |
774 | if (_argo0) { | |
775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetState. Expected _wxListItem_p."); | |
778 | return NULL; | |
779 | } | |
780 | } | |
781 | { | |
474c48f9 | 782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 783 | wxListItem_SetState(_arg0,_arg1); |
f6bcfd97 | 784 | |
474c48f9 | 785 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 786 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
787 | } Py_INCREF(Py_None); |
788 | _resultobj = Py_None; | |
789 | return _resultobj; | |
790 | } | |
791 | ||
792 | #define wxListItem_SetStateMask(_swigobj,_swigarg0) (_swigobj->SetStateMask(_swigarg0)) | |
793 | static PyObject *_wrap_wxListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
794 | PyObject * _resultobj; | |
795 | wxListItem * _arg0; | |
796 | long _arg1; | |
797 | PyObject * _argo0 = 0; | |
798 | char *_kwnames[] = { "self","stateMask", NULL }; | |
799 | ||
800 | self = self; | |
801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetStateMask",_kwnames,&_argo0,&_arg1)) | |
802 | return NULL; | |
803 | if (_argo0) { | |
804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetStateMask. Expected _wxListItem_p."); | |
807 | return NULL; | |
808 | } | |
809 | } | |
810 | { | |
474c48f9 | 811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 812 | wxListItem_SetStateMask(_arg0,_arg1); |
f6bcfd97 | 813 | |
474c48f9 | 814 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 815 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
816 | } Py_INCREF(Py_None); |
817 | _resultobj = Py_None; | |
818 | return _resultobj; | |
819 | } | |
820 | ||
821 | #define wxListItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
822 | static PyObject *_wrap_wxListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
823 | PyObject * _resultobj; | |
824 | wxListItem * _arg0; | |
825 | wxString * _arg1; | |
826 | PyObject * _argo0 = 0; | |
827 | PyObject * _obj1 = 0; | |
828 | char *_kwnames[] = { "self","text", NULL }; | |
829 | ||
830 | self = self; | |
831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetText",_kwnames,&_argo0,&_obj1)) | |
832 | return NULL; | |
833 | if (_argo0) { | |
834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetText. Expected _wxListItem_p."); | |
837 | return NULL; | |
838 | } | |
839 | } | |
840 | { | |
c8bc7bb8 RD |
841 | _arg1 = wxString_in_helper(_obj1); |
842 | if (_arg1 == NULL) | |
f6bcfd97 | 843 | return NULL; |
f6bcfd97 BP |
844 | } |
845 | { | |
474c48f9 | 846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 847 | wxListItem_SetText(_arg0,*_arg1); |
f6bcfd97 | 848 | |
474c48f9 | 849 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 850 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
851 | } Py_INCREF(Py_None); |
852 | _resultobj = Py_None; | |
853 | { | |
854 | if (_obj1) | |
855 | delete _arg1; | |
856 | } | |
857 | return _resultobj; | |
858 | } | |
859 | ||
860 | #define wxListItem_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0)) | |
861 | static PyObject *_wrap_wxListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
862 | PyObject * _resultobj; | |
863 | wxListItem * _arg0; | |
864 | int _arg1; | |
865 | PyObject * _argo0 = 0; | |
866 | char *_kwnames[] = { "self","image", NULL }; | |
867 | ||
868 | self = self; | |
869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetImage",_kwnames,&_argo0,&_arg1)) | |
870 | return NULL; | |
871 | if (_argo0) { | |
872 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
873 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetImage. Expected _wxListItem_p."); | |
875 | return NULL; | |
876 | } | |
877 | } | |
878 | { | |
474c48f9 | 879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 880 | wxListItem_SetImage(_arg0,_arg1); |
f6bcfd97 | 881 | |
474c48f9 | 882 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 883 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
884 | } Py_INCREF(Py_None); |
885 | _resultobj = Py_None; | |
886 | return _resultobj; | |
887 | } | |
888 | ||
889 | #define wxListItem_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
890 | static PyObject *_wrap_wxListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
891 | PyObject * _resultobj; | |
892 | wxListItem * _arg0; | |
893 | long _arg1; | |
894 | PyObject * _argo0 = 0; | |
895 | char *_kwnames[] = { "self","data", NULL }; | |
896 | ||
897 | self = self; | |
898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetData",_kwnames,&_argo0,&_arg1)) | |
899 | return NULL; | |
900 | if (_argo0) { | |
901 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
902 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetData. Expected _wxListItem_p."); | |
904 | return NULL; | |
905 | } | |
906 | } | |
907 | { | |
474c48f9 | 908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 909 | wxListItem_SetData(_arg0,_arg1); |
f6bcfd97 | 910 | |
474c48f9 | 911 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 912 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
913 | } Py_INCREF(Py_None); |
914 | _resultobj = Py_None; | |
915 | return _resultobj; | |
916 | } | |
917 | ||
918 | #define wxListItem_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
919 | static PyObject *_wrap_wxListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
920 | PyObject * _resultobj; | |
921 | wxListItem * _arg0; | |
922 | int _arg1; | |
923 | PyObject * _argo0 = 0; | |
924 | char *_kwnames[] = { "self","width", NULL }; | |
925 | ||
926 | self = self; | |
927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetWidth",_kwnames,&_argo0,&_arg1)) | |
928 | return NULL; | |
929 | if (_argo0) { | |
930 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
931 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetWidth. Expected _wxListItem_p."); | |
933 | return NULL; | |
934 | } | |
935 | } | |
936 | { | |
474c48f9 | 937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 938 | wxListItem_SetWidth(_arg0,_arg1); |
f6bcfd97 | 939 | |
474c48f9 | 940 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 941 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
942 | } Py_INCREF(Py_None); |
943 | _resultobj = Py_None; | |
944 | return _resultobj; | |
945 | } | |
946 | ||
947 | #define wxListItem_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0)) | |
948 | static PyObject *_wrap_wxListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
949 | PyObject * _resultobj; | |
950 | wxListItem * _arg0; | |
951 | wxListColumnFormat _arg1; | |
952 | PyObject * _argo0 = 0; | |
953 | char *_kwnames[] = { "self","align", NULL }; | |
954 | ||
955 | self = self; | |
956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetAlign",_kwnames,&_argo0,&_arg1)) | |
957 | return NULL; | |
958 | if (_argo0) { | |
959 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
960 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetAlign. Expected _wxListItem_p."); | |
962 | return NULL; | |
963 | } | |
964 | } | |
965 | { | |
474c48f9 | 966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 967 | wxListItem_SetAlign(_arg0,_arg1); |
f6bcfd97 | 968 | |
474c48f9 | 969 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 970 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
971 | } Py_INCREF(Py_None); |
972 | _resultobj = Py_None; | |
973 | return _resultobj; | |
974 | } | |
975 | ||
976 | #define wxListItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
977 | static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
978 | PyObject * _resultobj; | |
979 | wxListItem * _arg0; | |
980 | wxColour * _arg1; | |
981 | PyObject * _argo0 = 0; | |
982 | wxColour temp; | |
983 | PyObject * _obj1 = 0; | |
984 | char *_kwnames[] = { "self","colText", NULL }; | |
985 | ||
986 | self = self; | |
987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
988 | return NULL; | |
989 | if (_argo0) { | |
990 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
991 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetTextColour. Expected _wxListItem_p."); | |
993 | return NULL; | |
994 | } | |
995 | } | |
996 | { | |
997 | _arg1 = &temp; | |
998 | if (! wxColour_helper(_obj1, &_arg1)) | |
999 | return NULL; | |
1000 | } | |
1001 | { | |
474c48f9 | 1002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1003 | wxListItem_SetTextColour(_arg0,*_arg1); |
f6bcfd97 | 1004 | |
474c48f9 | 1005 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1006 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1007 | } Py_INCREF(Py_None); |
1008 | _resultobj = Py_None; | |
1009 | return _resultobj; | |
1010 | } | |
1011 | ||
1012 | #define wxListItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
1013 | static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1014 | PyObject * _resultobj; | |
1015 | wxListItem * _arg0; | |
1016 | wxColour * _arg1; | |
1017 | PyObject * _argo0 = 0; | |
1018 | wxColour temp; | |
1019 | PyObject * _obj1 = 0; | |
1020 | char *_kwnames[] = { "self","colBack", NULL }; | |
1021 | ||
1022 | self = self; | |
1023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
1024 | return NULL; | |
1025 | if (_argo0) { | |
1026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetBackgroundColour. Expected _wxListItem_p."); | |
1029 | return NULL; | |
1030 | } | |
1031 | } | |
1032 | { | |
1033 | _arg1 = &temp; | |
1034 | if (! wxColour_helper(_obj1, &_arg1)) | |
1035 | return NULL; | |
1036 | } | |
1037 | { | |
474c48f9 | 1038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1039 | wxListItem_SetBackgroundColour(_arg0,*_arg1); |
f6bcfd97 | 1040 | |
474c48f9 | 1041 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1042 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1043 | } Py_INCREF(Py_None); |
1044 | _resultobj = Py_None; | |
1045 | return _resultobj; | |
1046 | } | |
1047 | ||
1048 | #define wxListItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1049 | static PyObject *_wrap_wxListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1050 | PyObject * _resultobj; | |
1051 | wxListItem * _arg0; | |
1052 | wxFont * _arg1; | |
1053 | PyObject * _argo0 = 0; | |
1054 | PyObject * _argo1 = 0; | |
1055 | char *_kwnames[] = { "self","font", NULL }; | |
1056 | ||
1057 | self = self; | |
1058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
1059 | return NULL; | |
1060 | if (_argo0) { | |
1061 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1062 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetFont. Expected _wxListItem_p."); | |
1064 | return NULL; | |
1065 | } | |
1066 | } | |
1067 | if (_argo1) { | |
1068 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1069 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
1070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetFont. Expected _wxFont_p."); | |
1071 | return NULL; | |
1072 | } | |
1073 | } | |
1074 | { | |
474c48f9 | 1075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1076 | wxListItem_SetFont(_arg0,*_arg1); |
f6bcfd97 | 1077 | |
474c48f9 | 1078 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1079 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1080 | } Py_INCREF(Py_None); |
1081 | _resultobj = Py_None; | |
1082 | return _resultobj; | |
1083 | } | |
1084 | ||
1085 | #define wxListItem_GetMask(_swigobj) (_swigobj->GetMask()) | |
1086 | static PyObject *_wrap_wxListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1087 | PyObject * _resultobj; | |
1088 | long _result; | |
1089 | wxListItem * _arg0; | |
1090 | PyObject * _argo0 = 0; | |
1091 | char *_kwnames[] = { "self", NULL }; | |
1092 | ||
1093 | self = self; | |
1094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetMask",_kwnames,&_argo0)) | |
1095 | return NULL; | |
1096 | if (_argo0) { | |
1097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetMask. Expected _wxListItem_p."); | |
1100 | return NULL; | |
1101 | } | |
1102 | } | |
1103 | { | |
474c48f9 | 1104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1105 | _result = (long )wxListItem_GetMask(_arg0); |
f6bcfd97 | 1106 | |
474c48f9 | 1107 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1108 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1109 | } _resultobj = Py_BuildValue("l",_result); |
1110 | return _resultobj; | |
1111 | } | |
1112 | ||
1113 | #define wxListItem_GetId(_swigobj) (_swigobj->GetId()) | |
1114 | static PyObject *_wrap_wxListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1115 | PyObject * _resultobj; | |
1116 | long _result; | |
1117 | wxListItem * _arg0; | |
1118 | PyObject * _argo0 = 0; | |
1119 | char *_kwnames[] = { "self", NULL }; | |
1120 | ||
1121 | self = self; | |
1122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetId",_kwnames,&_argo0)) | |
1123 | return NULL; | |
1124 | if (_argo0) { | |
1125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetId. Expected _wxListItem_p."); | |
1128 | return NULL; | |
1129 | } | |
1130 | } | |
1131 | { | |
474c48f9 | 1132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1133 | _result = (long )wxListItem_GetId(_arg0); |
f6bcfd97 | 1134 | |
474c48f9 | 1135 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1136 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1137 | } _resultobj = Py_BuildValue("l",_result); |
1138 | return _resultobj; | |
1139 | } | |
1140 | ||
1141 | #define wxListItem_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
1142 | static PyObject *_wrap_wxListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1143 | PyObject * _resultobj; | |
1144 | int _result; | |
1145 | wxListItem * _arg0; | |
1146 | PyObject * _argo0 = 0; | |
1147 | char *_kwnames[] = { "self", NULL }; | |
1148 | ||
1149 | self = self; | |
1150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetColumn",_kwnames,&_argo0)) | |
1151 | return NULL; | |
1152 | if (_argo0) { | |
1153 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1154 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetColumn. Expected _wxListItem_p."); | |
1156 | return NULL; | |
1157 | } | |
1158 | } | |
1159 | { | |
474c48f9 | 1160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1161 | _result = (int )wxListItem_GetColumn(_arg0); |
f6bcfd97 | 1162 | |
474c48f9 | 1163 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1164 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1165 | } _resultobj = Py_BuildValue("i",_result); |
1166 | return _resultobj; | |
1167 | } | |
1168 | ||
1169 | #define wxListItem_GetState(_swigobj) (_swigobj->GetState()) | |
1170 | static PyObject *_wrap_wxListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1171 | PyObject * _resultobj; | |
1172 | long _result; | |
1173 | wxListItem * _arg0; | |
1174 | PyObject * _argo0 = 0; | |
1175 | char *_kwnames[] = { "self", NULL }; | |
1176 | ||
1177 | self = self; | |
1178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetState",_kwnames,&_argo0)) | |
1179 | return NULL; | |
1180 | if (_argo0) { | |
1181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetState. Expected _wxListItem_p."); | |
1184 | return NULL; | |
1185 | } | |
1186 | } | |
1187 | { | |
474c48f9 | 1188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1189 | _result = (long )wxListItem_GetState(_arg0); |
f6bcfd97 | 1190 | |
474c48f9 | 1191 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1192 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1193 | } _resultobj = Py_BuildValue("l",_result); |
1194 | return _resultobj; | |
1195 | } | |
1196 | ||
1197 | #define wxListItem_GetText(_swigobj) (_swigobj->GetText()) | |
1198 | static PyObject *_wrap_wxListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1199 | PyObject * _resultobj; | |
1200 | wxString * _result; | |
1201 | wxListItem * _arg0; | |
1202 | PyObject * _argo0 = 0; | |
1203 | char *_kwnames[] = { "self", NULL }; | |
1204 | ||
1205 | self = self; | |
1206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetText",_kwnames,&_argo0)) | |
1207 | return NULL; | |
1208 | if (_argo0) { | |
1209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetText. Expected _wxListItem_p."); | |
1212 | return NULL; | |
1213 | } | |
1214 | } | |
1215 | { | |
474c48f9 | 1216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1217 | const wxString & _result_ref = wxListItem_GetText(_arg0); |
f6bcfd97 BP |
1218 | _result = (wxString *) &_result_ref; |
1219 | ||
474c48f9 | 1220 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1221 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1222 | }{ |
c8bc7bb8 RD |
1223 | #if wxUSE_UNICODE |
1224 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1225 | #else | |
f6bcfd97 | 1226 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1227 | #endif |
f6bcfd97 BP |
1228 | } |
1229 | return _resultobj; | |
1230 | } | |
1231 | ||
1232 | #define wxListItem_GetImage(_swigobj) (_swigobj->GetImage()) | |
1233 | static PyObject *_wrap_wxListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1234 | PyObject * _resultobj; | |
1235 | int _result; | |
1236 | wxListItem * _arg0; | |
1237 | PyObject * _argo0 = 0; | |
1238 | char *_kwnames[] = { "self", NULL }; | |
1239 | ||
1240 | self = self; | |
1241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetImage",_kwnames,&_argo0)) | |
1242 | return NULL; | |
1243 | if (_argo0) { | |
1244 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1245 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetImage. Expected _wxListItem_p."); | |
1247 | return NULL; | |
1248 | } | |
1249 | } | |
1250 | { | |
474c48f9 | 1251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1252 | _result = (int )wxListItem_GetImage(_arg0); |
f6bcfd97 | 1253 | |
474c48f9 | 1254 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1255 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1256 | } _resultobj = Py_BuildValue("i",_result); |
1257 | return _resultobj; | |
1258 | } | |
1259 | ||
1260 | #define wxListItem_GetData(_swigobj) (_swigobj->GetData()) | |
1261 | static PyObject *_wrap_wxListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1262 | PyObject * _resultobj; | |
1263 | long _result; | |
1264 | wxListItem * _arg0; | |
1265 | PyObject * _argo0 = 0; | |
1266 | char *_kwnames[] = { "self", NULL }; | |
1267 | ||
1268 | self = self; | |
1269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetData",_kwnames,&_argo0)) | |
1270 | return NULL; | |
1271 | if (_argo0) { | |
1272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetData. Expected _wxListItem_p."); | |
1275 | return NULL; | |
1276 | } | |
1277 | } | |
1278 | { | |
474c48f9 | 1279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1280 | _result = (long )wxListItem_GetData(_arg0); |
f6bcfd97 | 1281 | |
474c48f9 | 1282 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1283 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1284 | } _resultobj = Py_BuildValue("l",_result); |
1285 | return _resultobj; | |
1286 | } | |
1287 | ||
1288 | #define wxListItem_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1289 | static PyObject *_wrap_wxListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1290 | PyObject * _resultobj; | |
1291 | int _result; | |
1292 | wxListItem * _arg0; | |
1293 | PyObject * _argo0 = 0; | |
1294 | char *_kwnames[] = { "self", NULL }; | |
1295 | ||
1296 | self = self; | |
1297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetWidth",_kwnames,&_argo0)) | |
1298 | return NULL; | |
1299 | if (_argo0) { | |
1300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1301 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetWidth. Expected _wxListItem_p."); | |
1303 | return NULL; | |
1304 | } | |
1305 | } | |
1306 | { | |
474c48f9 | 1307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1308 | _result = (int )wxListItem_GetWidth(_arg0); |
f6bcfd97 | 1309 | |
474c48f9 | 1310 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1311 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1312 | } _resultobj = Py_BuildValue("i",_result); |
1313 | return _resultobj; | |
1314 | } | |
1315 | ||
1316 | #define wxListItem_GetAlign(_swigobj) (_swigobj->GetAlign()) | |
1317 | static PyObject *_wrap_wxListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1318 | PyObject * _resultobj; | |
1319 | wxListColumnFormat _result; | |
1320 | wxListItem * _arg0; | |
1321 | PyObject * _argo0 = 0; | |
1322 | char *_kwnames[] = { "self", NULL }; | |
1323 | ||
1324 | self = self; | |
1325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAlign",_kwnames,&_argo0)) | |
1326 | return NULL; | |
1327 | if (_argo0) { | |
1328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAlign. Expected _wxListItem_p."); | |
1331 | return NULL; | |
1332 | } | |
1333 | } | |
1334 | { | |
474c48f9 | 1335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1336 | _result = (wxListColumnFormat )wxListItem_GetAlign(_arg0); |
f6bcfd97 | 1337 | |
474c48f9 | 1338 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1339 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1340 | } _resultobj = Py_BuildValue("i",_result); |
1341 | return _resultobj; | |
1342 | } | |
1343 | ||
1344 | #define wxListItem_GetAttributes(_swigobj) (_swigobj->GetAttributes()) | |
1345 | static PyObject *_wrap_wxListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1346 | PyObject * _resultobj; | |
1347 | wxListItemAttr * _result; | |
1348 | wxListItem * _arg0; | |
1349 | PyObject * _argo0 = 0; | |
1350 | char *_kwnames[] = { "self", NULL }; | |
1351 | char _ptemp[128]; | |
1352 | ||
1353 | self = self; | |
1354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAttributes",_kwnames,&_argo0)) | |
1355 | return NULL; | |
1356 | if (_argo0) { | |
1357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAttributes. Expected _wxListItem_p."); | |
1360 | return NULL; | |
1361 | } | |
1362 | } | |
1363 | { | |
474c48f9 | 1364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1365 | _result = (wxListItemAttr *)wxListItem_GetAttributes(_arg0); |
f6bcfd97 | 1366 | |
474c48f9 | 1367 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1368 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1369 | } if (_result) { |
1370 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
1371 | _resultobj = Py_BuildValue("s",_ptemp); | |
1372 | } else { | |
1373 | Py_INCREF(Py_None); | |
1374 | _resultobj = Py_None; | |
1375 | } | |
1376 | return _resultobj; | |
1377 | } | |
1378 | ||
1379 | #define wxListItem_HasAttributes(_swigobj) (_swigobj->HasAttributes()) | |
1380 | static PyObject *_wrap_wxListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1381 | PyObject * _resultobj; | |
1382 | bool _result; | |
1383 | wxListItem * _arg0; | |
1384 | PyObject * _argo0 = 0; | |
1385 | char *_kwnames[] = { "self", NULL }; | |
1386 | ||
1387 | self = self; | |
1388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_HasAttributes",_kwnames,&_argo0)) | |
1389 | return NULL; | |
1390 | if (_argo0) { | |
1391 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1392 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_HasAttributes. Expected _wxListItem_p."); | |
1394 | return NULL; | |
1395 | } | |
1396 | } | |
1397 | { | |
474c48f9 | 1398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1399 | _result = (bool )wxListItem_HasAttributes(_arg0); |
f6bcfd97 | 1400 | |
474c48f9 | 1401 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1402 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1403 | } _resultobj = Py_BuildValue("i",_result); |
1404 | return _resultobj; | |
1405 | } | |
1406 | ||
1407 | #define wxListItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
1408 | static PyObject *_wrap_wxListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1409 | PyObject * _resultobj; | |
1410 | wxColour * _result; | |
1411 | wxListItem * _arg0; | |
1412 | PyObject * _argo0 = 0; | |
1413 | char *_kwnames[] = { "self", NULL }; | |
1414 | char _ptemp[128]; | |
1415 | ||
1416 | self = self; | |
1417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetTextColour",_kwnames,&_argo0)) | |
1418 | return NULL; | |
1419 | if (_argo0) { | |
1420 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1421 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetTextColour. Expected _wxListItem_p."); | |
1423 | return NULL; | |
1424 | } | |
1425 | } | |
1426 | { | |
474c48f9 | 1427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1428 | _result = new wxColour (wxListItem_GetTextColour(_arg0)); |
f6bcfd97 | 1429 | |
474c48f9 | 1430 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1431 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1432 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1433 | _resultobj = Py_BuildValue("s",_ptemp); | |
1434 | return _resultobj; | |
1435 | } | |
1436 | ||
1437 | #define wxListItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1438 | static PyObject *_wrap_wxListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1439 | PyObject * _resultobj; | |
1440 | wxColour * _result; | |
1441 | wxListItem * _arg0; | |
1442 | PyObject * _argo0 = 0; | |
1443 | char *_kwnames[] = { "self", NULL }; | |
1444 | char _ptemp[128]; | |
1445 | ||
1446 | self = self; | |
1447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetBackgroundColour",_kwnames,&_argo0)) | |
1448 | return NULL; | |
1449 | if (_argo0) { | |
1450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetBackgroundColour. Expected _wxListItem_p."); | |
1453 | return NULL; | |
1454 | } | |
1455 | } | |
1456 | { | |
474c48f9 | 1457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1458 | _result = new wxColour (wxListItem_GetBackgroundColour(_arg0)); |
f6bcfd97 | 1459 | |
474c48f9 | 1460 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1461 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1462 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1463 | _resultobj = Py_BuildValue("s",_ptemp); | |
1464 | return _resultobj; | |
1465 | } | |
1466 | ||
1467 | #define wxListItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
1468 | static PyObject *_wrap_wxListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1469 | PyObject * _resultobj; | |
1470 | wxFont * _result; | |
1471 | wxListItem * _arg0; | |
1472 | PyObject * _argo0 = 0; | |
1473 | char *_kwnames[] = { "self", NULL }; | |
1474 | char _ptemp[128]; | |
1475 | ||
1476 | self = self; | |
1477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetFont",_kwnames,&_argo0)) | |
1478 | return NULL; | |
1479 | if (_argo0) { | |
1480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetFont. Expected _wxListItem_p."); | |
1483 | return NULL; | |
1484 | } | |
1485 | } | |
1486 | { | |
474c48f9 | 1487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1488 | _result = new wxFont (wxListItem_GetFont(_arg0)); |
f6bcfd97 | 1489 | |
474c48f9 | 1490 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1491 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1492 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
1493 | _resultobj = Py_BuildValue("s",_ptemp); | |
1494 | return _resultobj; | |
1495 | } | |
1496 | ||
1497 | #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval) | |
1498 | static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1499 | PyObject * _resultobj; | |
1500 | long _result; | |
1501 | wxListItem * _arg0; | |
1502 | long _arg1; | |
1503 | PyObject * _argo0 = 0; | |
1504 | char *_kwnames[] = { "self","m_mask", NULL }; | |
1505 | ||
1506 | self = self; | |
1507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1)) | |
1508 | return NULL; | |
1509 | if (_argo0) { | |
1510 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1511 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1512 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p."); | |
1513 | return NULL; | |
1514 | } | |
1515 | } | |
1516 | { | |
474c48f9 | 1517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1518 | _result = (long )wxListItem_m_mask_set(_arg0,_arg1); |
f6bcfd97 | 1519 | |
474c48f9 | 1520 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1521 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1522 | } _resultobj = Py_BuildValue("l",_result); |
1523 | return _resultobj; | |
1524 | } | |
1525 | ||
1526 | #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask) | |
1527 | static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1528 | PyObject * _resultobj; | |
1529 | long _result; | |
1530 | wxListItem * _arg0; | |
1531 | PyObject * _argo0 = 0; | |
1532 | char *_kwnames[] = { "self", NULL }; | |
1533 | ||
1534 | self = self; | |
1535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0)) | |
1536 | return NULL; | |
1537 | if (_argo0) { | |
1538 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1539 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p."); | |
1541 | return NULL; | |
1542 | } | |
1543 | } | |
1544 | { | |
474c48f9 | 1545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1546 | _result = (long )wxListItem_m_mask_get(_arg0); |
f6bcfd97 | 1547 | |
474c48f9 | 1548 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1549 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1550 | } _resultobj = Py_BuildValue("l",_result); |
1551 | return _resultobj; | |
1552 | } | |
1553 | ||
1554 | #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval) | |
1555 | static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
1556 | PyObject * _resultobj; |
1557 | long _result; | |
1558 | wxListItem * _arg0; | |
1559 | long _arg1; | |
1d99702e | 1560 | PyObject * _argo0 = 0; |
f6bcfd97 | 1561 | char *_kwnames[] = { "self","m_itemId", NULL }; |
af309447 RD |
1562 | |
1563 | self = self; | |
f6bcfd97 | 1564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1565 | return NULL; |
1d99702e RD |
1566 | if (_argo0) { |
1567 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1568 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p."); |
af309447 RD |
1570 | return NULL; |
1571 | } | |
1572 | } | |
cf694132 | 1573 | { |
474c48f9 | 1574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1575 | _result = (long )wxListItem_m_itemId_set(_arg0,_arg1); |
f6bcfd97 | 1576 | |
474c48f9 | 1577 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1578 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1579 | } _resultobj = Py_BuildValue("l",_result); |
1580 | return _resultobj; | |
1581 | } | |
1582 | ||
1583 | #define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId) | |
1584 | static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1585 | PyObject * _resultobj; | |
1586 | long _result; | |
1587 | wxListItem * _arg0; | |
1588 | PyObject * _argo0 = 0; | |
1589 | char *_kwnames[] = { "self", NULL }; | |
1590 | ||
1591 | self = self; | |
1592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0)) | |
1593 | return NULL; | |
1594 | if (_argo0) { | |
1595 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1596 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p."); | |
1598 | return NULL; | |
1599 | } | |
1600 | } | |
1601 | { | |
474c48f9 | 1602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1603 | _result = (long )wxListItem_m_itemId_get(_arg0); |
f6bcfd97 | 1604 | |
474c48f9 | 1605 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1606 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1607 | } _resultobj = Py_BuildValue("l",_result); |
1608 | return _resultobj; | |
1609 | } | |
1610 | ||
1611 | #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
1612 | static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1613 | PyObject * _resultobj; | |
1614 | int _result; | |
1615 | wxListItem * _arg0; | |
1616 | int _arg1; | |
1617 | PyObject * _argo0 = 0; | |
1618 | char *_kwnames[] = { "self","m_col", NULL }; | |
1619 | ||
1620 | self = self; | |
1621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1)) | |
1622 | return NULL; | |
1623 | if (_argo0) { | |
1624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p."); | |
1627 | return NULL; | |
1628 | } | |
1629 | } | |
1630 | { | |
474c48f9 | 1631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1632 | _result = (int )wxListItem_m_col_set(_arg0,_arg1); |
f6bcfd97 | 1633 | |
474c48f9 | 1634 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1635 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1636 | } _resultobj = Py_BuildValue("i",_result); |
1637 | return _resultobj; | |
1638 | } | |
1639 | ||
1640 | #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
1641 | static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1642 | PyObject * _resultobj; | |
1643 | int _result; | |
1644 | wxListItem * _arg0; | |
1645 | PyObject * _argo0 = 0; | |
1646 | char *_kwnames[] = { "self", NULL }; | |
1647 | ||
1648 | self = self; | |
1649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0)) | |
1650 | return NULL; | |
1651 | if (_argo0) { | |
1652 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1653 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p."); | |
1655 | return NULL; | |
1656 | } | |
1657 | } | |
1658 | { | |
474c48f9 | 1659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1660 | _result = (int )wxListItem_m_col_get(_arg0); |
f6bcfd97 | 1661 | |
474c48f9 | 1662 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1663 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1664 | } _resultobj = Py_BuildValue("i",_result); |
1665 | return _resultobj; | |
1666 | } | |
1667 | ||
1668 | #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval) | |
1669 | static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1670 | PyObject * _resultobj; | |
1671 | long _result; | |
1672 | wxListItem * _arg0; | |
1673 | long _arg1; | |
1674 | PyObject * _argo0 = 0; | |
1675 | char *_kwnames[] = { "self","m_state", NULL }; | |
1676 | ||
1677 | self = self; | |
1678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1)) | |
1679 | return NULL; | |
1680 | if (_argo0) { | |
1681 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1682 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p."); | |
1684 | return NULL; | |
1685 | } | |
1686 | } | |
1687 | { | |
474c48f9 | 1688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1689 | _result = (long )wxListItem_m_state_set(_arg0,_arg1); |
f6bcfd97 | 1690 | |
474c48f9 | 1691 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1692 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1693 | } _resultobj = Py_BuildValue("l",_result); |
1694 | return _resultobj; | |
1695 | } | |
1696 | ||
1697 | #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state) | |
1698 | static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1699 | PyObject * _resultobj; | |
1700 | long _result; | |
1701 | wxListItem * _arg0; | |
1702 | PyObject * _argo0 = 0; | |
1703 | char *_kwnames[] = { "self", NULL }; | |
1704 | ||
1705 | self = self; | |
1706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0)) | |
1707 | return NULL; | |
1708 | if (_argo0) { | |
1709 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1710 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1711 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p."); | |
1712 | return NULL; | |
1713 | } | |
1714 | } | |
1715 | { | |
474c48f9 | 1716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1717 | _result = (long )wxListItem_m_state_get(_arg0); |
f6bcfd97 | 1718 | |
474c48f9 | 1719 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1720 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1721 | } _resultobj = Py_BuildValue("l",_result); |
1722 | return _resultobj; | |
1723 | } | |
1724 | ||
1725 | #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval) | |
1726 | static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1727 | PyObject * _resultobj; | |
1728 | long _result; | |
1729 | wxListItem * _arg0; | |
1730 | long _arg1; | |
1731 | PyObject * _argo0 = 0; | |
1732 | char *_kwnames[] = { "self","m_stateMask", NULL }; | |
1733 | ||
1734 | self = self; | |
1735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1)) | |
1736 | return NULL; | |
1737 | if (_argo0) { | |
1738 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1739 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1740 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p."); | |
1741 | return NULL; | |
1742 | } | |
1743 | } | |
1744 | { | |
474c48f9 | 1745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1746 | _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1); |
f6bcfd97 | 1747 | |
474c48f9 | 1748 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1749 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1750 | } _resultobj = Py_BuildValue("l",_result); |
1751 | return _resultobj; | |
1752 | } | |
1753 | ||
1754 | #define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask) | |
1755 | static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1756 | PyObject * _resultobj; | |
1757 | long _result; | |
1758 | wxListItem * _arg0; | |
1759 | PyObject * _argo0 = 0; | |
1760 | char *_kwnames[] = { "self", NULL }; | |
1761 | ||
1762 | self = self; | |
1763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0)) | |
1764 | return NULL; | |
1765 | if (_argo0) { | |
1766 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1767 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p."); | |
1769 | return NULL; | |
1770 | } | |
1771 | } | |
1772 | { | |
474c48f9 | 1773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1774 | _result = (long )wxListItem_m_stateMask_get(_arg0); |
cf694132 | 1775 | |
474c48f9 | 1776 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1777 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1778 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
1779 | return _resultobj; |
1780 | } | |
1781 | ||
f6bcfd97 BP |
1782 | #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval) |
1783 | static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1784 | PyObject * _resultobj; | |
1785 | wxString * _result; | |
1786 | wxListItem * _arg0; | |
1787 | wxString * _arg1; | |
1788 | PyObject * _argo0 = 0; | |
1789 | PyObject * _obj1 = 0; | |
1790 | char *_kwnames[] = { "self","m_text", NULL }; | |
1791 | ||
1792 | self = self; | |
1793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1)) | |
1794 | return NULL; | |
1795 | if (_argo0) { | |
1796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p."); | |
1799 | return NULL; | |
1800 | } | |
1801 | } | |
1802 | { | |
c8bc7bb8 RD |
1803 | _arg1 = wxString_in_helper(_obj1); |
1804 | if (_arg1 == NULL) | |
f6bcfd97 | 1805 | return NULL; |
f6bcfd97 BP |
1806 | } |
1807 | { | |
474c48f9 | 1808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1809 | _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1); |
f6bcfd97 | 1810 | |
474c48f9 | 1811 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1812 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1813 | }{ |
c8bc7bb8 RD |
1814 | #if wxUSE_UNICODE |
1815 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1816 | #else | |
f6bcfd97 | 1817 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1818 | #endif |
f6bcfd97 BP |
1819 | } |
1820 | { | |
1821 | if (_obj1) | |
1822 | delete _arg1; | |
1823 | } | |
1824 | return _resultobj; | |
1825 | } | |
1826 | ||
1827 | #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text) | |
1828 | static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1829 | PyObject * _resultobj; |
f6bcfd97 | 1830 | wxString * _result; |
8ab979d7 | 1831 | wxListItem * _arg0; |
1d99702e | 1832 | PyObject * _argo0 = 0; |
efc5f224 | 1833 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1834 | |
1835 | self = self; | |
f6bcfd97 | 1836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0)) |
8ab979d7 | 1837 | return NULL; |
1d99702e RD |
1838 | if (_argo0) { |
1839 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1840 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1841 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1842 | return NULL; |
1843 | } | |
1844 | } | |
cf694132 | 1845 | { |
474c48f9 | 1846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1847 | _result = (wxString *)wxListItem_m_text_get(_arg0); |
cf694132 | 1848 | |
474c48f9 | 1849 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1850 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1851 | }{ |
c8bc7bb8 RD |
1852 | #if wxUSE_UNICODE |
1853 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1854 | #else | |
f6bcfd97 | 1855 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1856 | #endif |
f6bcfd97 | 1857 | } |
8ab979d7 RD |
1858 | return _resultobj; |
1859 | } | |
1860 | ||
f6bcfd97 BP |
1861 | #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval) |
1862 | static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1863 | PyObject * _resultobj; |
f6bcfd97 | 1864 | int _result; |
af309447 | 1865 | wxListItem * _arg0; |
f6bcfd97 | 1866 | int _arg1; |
1d99702e | 1867 | PyObject * _argo0 = 0; |
f6bcfd97 | 1868 | char *_kwnames[] = { "self","m_image", NULL }; |
af309447 RD |
1869 | |
1870 | self = self; | |
f6bcfd97 | 1871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1872 | return NULL; |
1d99702e RD |
1873 | if (_argo0) { |
1874 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1875 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p."); |
af309447 RD |
1877 | return NULL; |
1878 | } | |
1879 | } | |
cf694132 | 1880 | { |
474c48f9 | 1881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1882 | _result = (int )wxListItem_m_image_set(_arg0,_arg1); |
cf694132 | 1883 | |
474c48f9 | 1884 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1885 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1886 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
1887 | return _resultobj; |
1888 | } | |
1889 | ||
f6bcfd97 BP |
1890 | #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image) |
1891 | static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1892 | PyObject * _resultobj; |
f6bcfd97 | 1893 | int _result; |
8ab979d7 | 1894 | wxListItem * _arg0; |
1d99702e | 1895 | PyObject * _argo0 = 0; |
efc5f224 | 1896 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1897 | |
1898 | self = self; | |
f6bcfd97 | 1899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0)) |
8ab979d7 | 1900 | return NULL; |
1d99702e RD |
1901 | if (_argo0) { |
1902 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1903 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1905 | return NULL; |
1906 | } | |
1907 | } | |
cf694132 | 1908 | { |
474c48f9 | 1909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1910 | _result = (int )wxListItem_m_image_get(_arg0); |
cf694132 | 1911 | |
474c48f9 | 1912 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1913 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1914 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1915 | return _resultobj; |
1916 | } | |
1917 | ||
f6bcfd97 BP |
1918 | #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval) |
1919 | static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1920 | PyObject * _resultobj; |
f6bcfd97 | 1921 | long _result; |
af309447 | 1922 | wxListItem * _arg0; |
f6bcfd97 | 1923 | long _arg1; |
1d99702e | 1924 | PyObject * _argo0 = 0; |
f6bcfd97 | 1925 | char *_kwnames[] = { "self","m_data", NULL }; |
af309447 RD |
1926 | |
1927 | self = self; | |
f6bcfd97 | 1928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1929 | return NULL; |
1d99702e RD |
1930 | if (_argo0) { |
1931 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1932 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1933 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p."); |
af309447 RD |
1934 | return NULL; |
1935 | } | |
1936 | } | |
cf694132 | 1937 | { |
474c48f9 | 1938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1939 | _result = (long )wxListItem_m_data_set(_arg0,_arg1); |
cf694132 | 1940 | |
474c48f9 | 1941 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1942 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1943 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
1944 | return _resultobj; |
1945 | } | |
1946 | ||
f6bcfd97 BP |
1947 | #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data) |
1948 | static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1949 | PyObject * _resultobj; |
f6bcfd97 | 1950 | long _result; |
8ab979d7 | 1951 | wxListItem * _arg0; |
1d99702e | 1952 | PyObject * _argo0 = 0; |
efc5f224 | 1953 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1954 | |
1955 | self = self; | |
f6bcfd97 | 1956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0)) |
8ab979d7 | 1957 | return NULL; |
1d99702e RD |
1958 | if (_argo0) { |
1959 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1960 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1962 | return NULL; |
1963 | } | |
1964 | } | |
cf694132 | 1965 | { |
474c48f9 | 1966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1967 | _result = (long )wxListItem_m_data_get(_arg0); |
cf694132 | 1968 | |
474c48f9 | 1969 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1970 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1971 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
1972 | return _resultobj; |
1973 | } | |
1974 | ||
f6bcfd97 BP |
1975 | #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval) |
1976 | static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1977 | PyObject * _resultobj; |
f6bcfd97 | 1978 | int _result; |
af309447 | 1979 | wxListItem * _arg0; |
f6bcfd97 | 1980 | int _arg1; |
1d99702e | 1981 | PyObject * _argo0 = 0; |
f6bcfd97 | 1982 | char *_kwnames[] = { "self","m_format", NULL }; |
af309447 RD |
1983 | |
1984 | self = self; | |
f6bcfd97 | 1985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1986 | return NULL; |
1d99702e RD |
1987 | if (_argo0) { |
1988 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1989 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1990 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p."); |
af309447 RD |
1991 | return NULL; |
1992 | } | |
1993 | } | |
cf694132 | 1994 | { |
474c48f9 | 1995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1996 | _result = (int )wxListItem_m_format_set(_arg0,_arg1); |
cf694132 | 1997 | |
474c48f9 | 1998 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1999 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2000 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2001 | return _resultobj; |
2002 | } | |
2003 | ||
f6bcfd97 BP |
2004 | #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format) |
2005 | static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2006 | PyObject * _resultobj; |
f6bcfd97 | 2007 | int _result; |
8ab979d7 | 2008 | wxListItem * _arg0; |
1d99702e | 2009 | PyObject * _argo0 = 0; |
efc5f224 | 2010 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2011 | |
2012 | self = self; | |
f6bcfd97 | 2013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0)) |
8ab979d7 | 2014 | return NULL; |
1d99702e RD |
2015 | if (_argo0) { |
2016 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2017 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p."); |
8ab979d7 RD |
2019 | return NULL; |
2020 | } | |
2021 | } | |
cf694132 | 2022 | { |
474c48f9 | 2023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2024 | _result = (int )wxListItem_m_format_get(_arg0); |
cf694132 | 2025 | |
474c48f9 | 2026 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2027 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2028 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2029 | return _resultobj; |
2030 | } | |
2031 | ||
f6bcfd97 BP |
2032 | #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval) |
2033 | static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2034 | PyObject * _resultobj; |
f6bcfd97 | 2035 | int _result; |
af309447 | 2036 | wxListItem * _arg0; |
f6bcfd97 | 2037 | int _arg1; |
1d99702e | 2038 | PyObject * _argo0 = 0; |
f6bcfd97 | 2039 | char *_kwnames[] = { "self","m_width", NULL }; |
af309447 RD |
2040 | |
2041 | self = self; | |
f6bcfd97 | 2042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2043 | return NULL; |
1d99702e RD |
2044 | if (_argo0) { |
2045 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2046 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p."); |
af309447 RD |
2048 | return NULL; |
2049 | } | |
2050 | } | |
cf694132 | 2051 | { |
474c48f9 | 2052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2053 | _result = (int )wxListItem_m_width_set(_arg0,_arg1); |
cf694132 | 2054 | |
474c48f9 | 2055 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2056 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2057 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2058 | return _resultobj; |
2059 | } | |
2060 | ||
f6bcfd97 BP |
2061 | #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width) |
2062 | static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2063 | PyObject * _resultobj; |
f6bcfd97 | 2064 | int _result; |
8ab979d7 | 2065 | wxListItem * _arg0; |
1d99702e | 2066 | PyObject * _argo0 = 0; |
efc5f224 | 2067 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2068 | |
2069 | self = self; | |
f6bcfd97 | 2070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0)) |
8ab979d7 | 2071 | return NULL; |
1d99702e RD |
2072 | if (_argo0) { |
2073 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p."); |
8ab979d7 RD |
2076 | return NULL; |
2077 | } | |
2078 | } | |
cf694132 | 2079 | { |
474c48f9 | 2080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2081 | _result = (int )wxListItem_m_width_get(_arg0); |
cf694132 | 2082 | |
474c48f9 | 2083 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2084 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2085 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2086 | return _resultobj; |
2087 | } | |
2088 | ||
c368d904 RD |
2089 | static void *SwigwxListEventTowxNotifyEvent(void *ptr) { |
2090 | wxListEvent *src; | |
2091 | wxNotifyEvent *dest; | |
2092 | src = (wxListEvent *) ptr; | |
2093 | dest = (wxNotifyEvent *) src; | |
2094 | return (void *) dest; | |
2095 | } | |
2096 | ||
f6bcfd97 BP |
2097 | static void *SwigwxListEventTowxCommandEvent(void *ptr) { |
2098 | wxListEvent *src; | |
2099 | wxCommandEvent *dest; | |
2100 | src = (wxListEvent *) ptr; | |
2101 | dest = (wxCommandEvent *) src; | |
2102 | return (void *) dest; | |
2103 | } | |
2104 | ||
2105 | static void *SwigwxListEventTowxEvent(void *ptr) { | |
2106 | wxListEvent *src; | |
2107 | wxEvent *dest; | |
2108 | src = (wxListEvent *) ptr; | |
2109 | dest = (wxEvent *) src; | |
2110 | return (void *) dest; | |
2111 | } | |
2112 | ||
9df61a29 RD |
2113 | static void *SwigwxListEventTowxObject(void *ptr) { |
2114 | wxListEvent *src; | |
2115 | wxObject *dest; | |
2116 | src = (wxListEvent *) ptr; | |
2117 | dest = (wxObject *) src; | |
2118 | return (void *) dest; | |
2119 | } | |
2120 | ||
059a841c RD |
2121 | #define new_wxListEvent(_swigarg0,_swigarg1) (new wxListEvent(_swigarg0,_swigarg1)) |
2122 | static PyObject *_wrap_new_wxListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2123 | PyObject * _resultobj; | |
2124 | wxListEvent * _result; | |
2125 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
2126 | int _arg1 = (int ) 0; | |
2127 | char *_kwnames[] = { "commandType","id", NULL }; | |
2128 | char _ptemp[128]; | |
2129 | ||
2130 | self = self; | |
2131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxListEvent",_kwnames,&_arg0,&_arg1)) | |
2132 | return NULL; | |
2133 | { | |
474c48f9 | 2134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2135 | _result = (wxListEvent *)new_wxListEvent(_arg0,_arg1); |
059a841c | 2136 | |
474c48f9 | 2137 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
2138 | if (PyErr_Occurred()) return NULL; |
2139 | } if (_result) { | |
2140 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListEvent_p"); | |
2141 | _resultobj = Py_BuildValue("s",_ptemp); | |
2142 | } else { | |
2143 | Py_INCREF(Py_None); | |
2144 | _resultobj = Py_None; | |
2145 | } | |
2146 | return _resultobj; | |
2147 | } | |
2148 | ||
f6bcfd97 BP |
2149 | #define wxListEvent_m_code_set(_swigobj,_swigval) (_swigobj->m_code = _swigval,_swigval) |
2150 | static PyObject *_wrap_wxListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2151 | PyObject * _resultobj; |
f6bcfd97 BP |
2152 | int _result; |
2153 | wxListEvent * _arg0; | |
2154 | int _arg1; | |
1d99702e | 2155 | PyObject * _argo0 = 0; |
f6bcfd97 | 2156 | char *_kwnames[] = { "self","m_code", NULL }; |
af309447 RD |
2157 | |
2158 | self = self; | |
f6bcfd97 | 2159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_code_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2160 | return NULL; |
1d99702e RD |
2161 | if (_argo0) { |
2162 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2163 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2164 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_set. Expected _wxListEvent_p."); | |
af309447 RD |
2165 | return NULL; |
2166 | } | |
2167 | } | |
af309447 | 2168 | { |
474c48f9 | 2169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2170 | _result = (int )wxListEvent_m_code_set(_arg0,_arg1); |
cf694132 | 2171 | |
474c48f9 | 2172 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2173 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2174 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2175 | return _resultobj; |
2176 | } | |
2177 | ||
f6bcfd97 BP |
2178 | #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code) |
2179 | static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2180 | PyObject * _resultobj; |
f6bcfd97 BP |
2181 | int _result; |
2182 | wxListEvent * _arg0; | |
1d99702e | 2183 | PyObject * _argo0 = 0; |
efc5f224 | 2184 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2185 | |
2186 | self = self; | |
f6bcfd97 | 2187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0)) |
8ab979d7 | 2188 | return NULL; |
1d99702e RD |
2189 | if (_argo0) { |
2190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2191 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2193 | return NULL; |
2194 | } | |
2195 | } | |
8ab979d7 | 2196 | { |
474c48f9 | 2197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2198 | _result = (int )wxListEvent_m_code_get(_arg0); |
cf694132 | 2199 | |
474c48f9 | 2200 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2201 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2202 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2203 | return _resultobj; |
2204 | } | |
2205 | ||
6e8a778a RD |
2206 | #define wxListEvent_m_oldItemIndex_set(_swigobj,_swigval) (_swigobj->m_oldItemIndex = _swigval,_swigval) |
2207 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2208 | PyObject * _resultobj; |
f6bcfd97 BP |
2209 | long _result; |
2210 | wxListEvent * _arg0; | |
2211 | long _arg1; | |
1d99702e | 2212 | PyObject * _argo0 = 0; |
6e8a778a | 2213 | char *_kwnames[] = { "self","m_oldItemIndex", NULL }; |
af309447 RD |
2214 | |
2215 | self = self; | |
6e8a778a | 2216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_oldItemIndex_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2217 | return NULL; |
1d99702e RD |
2218 | if (_argo0) { |
2219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_set. Expected _wxListEvent_p."); |
af309447 RD |
2222 | return NULL; |
2223 | } | |
2224 | } | |
cf694132 | 2225 | { |
474c48f9 | 2226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2227 | _result = (long )wxListEvent_m_oldItemIndex_set(_arg0,_arg1); |
cf694132 | 2228 | |
474c48f9 | 2229 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2230 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2231 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2232 | return _resultobj; |
2233 | } | |
2234 | ||
6e8a778a RD |
2235 | #define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex) |
2236 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2237 | PyObject * _resultobj; |
f6bcfd97 BP |
2238 | long _result; |
2239 | wxListEvent * _arg0; | |
1d99702e | 2240 | PyObject * _argo0 = 0; |
efc5f224 | 2241 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2242 | |
2243 | self = self; | |
6e8a778a | 2244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0)) |
8ab979d7 | 2245 | return NULL; |
1d99702e RD |
2246 | if (_argo0) { |
2247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p."); |
8ab979d7 RD |
2250 | return NULL; |
2251 | } | |
2252 | } | |
cf694132 | 2253 | { |
474c48f9 | 2254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2255 | _result = (long )wxListEvent_m_oldItemIndex_get(_arg0); |
cf694132 | 2256 | |
474c48f9 | 2257 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2258 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2259 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2260 | return _resultobj; |
2261 | } | |
2262 | ||
6e8a778a RD |
2263 | #define wxListEvent_m_itemIndex_set(_swigobj,_swigval) (_swigobj->m_itemIndex = _swigval,_swigval) |
2264 | static PyObject *_wrap_wxListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2265 | PyObject * _resultobj; |
6e8a778a | 2266 | long _result; |
f6bcfd97 | 2267 | wxListEvent * _arg0; |
6e8a778a | 2268 | long _arg1; |
1d99702e | 2269 | PyObject * _argo0 = 0; |
6e8a778a | 2270 | char *_kwnames[] = { "self","m_itemIndex", NULL }; |
af309447 RD |
2271 | |
2272 | self = self; | |
6e8a778a | 2273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_itemIndex_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2274 | return NULL; |
1d99702e RD |
2275 | if (_argo0) { |
2276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_set. Expected _wxListEvent_p."); |
af309447 RD |
2279 | return NULL; |
2280 | } | |
2281 | } | |
cf694132 | 2282 | { |
474c48f9 | 2283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2284 | _result = (long )wxListEvent_m_itemIndex_set(_arg0,_arg1); |
cf694132 | 2285 | |
474c48f9 | 2286 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2287 | if (PyErr_Occurred()) return NULL; |
6e8a778a | 2288 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2289 | return _resultobj; |
2290 | } | |
2291 | ||
6e8a778a RD |
2292 | #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex) |
2293 | static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2294 | PyObject * _resultobj; |
6e8a778a | 2295 | long _result; |
f6bcfd97 | 2296 | wxListEvent * _arg0; |
1d99702e | 2297 | PyObject * _argo0 = 0; |
efc5f224 | 2298 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2299 | |
2300 | self = self; | |
6e8a778a | 2301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0)) |
8ab979d7 | 2302 | return NULL; |
1d99702e RD |
2303 | if (_argo0) { |
2304 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p."); |
8ab979d7 RD |
2307 | return NULL; |
2308 | } | |
2309 | } | |
cf694132 | 2310 | { |
474c48f9 | 2311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2312 | _result = (long )wxListEvent_m_itemIndex_get(_arg0); |
cf694132 | 2313 | |
474c48f9 | 2314 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2315 | if (PyErr_Occurred()) return NULL; |
6e8a778a | 2316 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2317 | return _resultobj; |
2318 | } | |
2319 | ||
6e8a778a RD |
2320 | #define wxListEvent_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) |
2321 | static PyObject *_wrap_wxListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2322 | PyObject * _resultobj; |
6e8a778a | 2323 | int _result; |
f6bcfd97 | 2324 | wxListEvent * _arg0; |
6e8a778a | 2325 | int _arg1; |
1d99702e | 2326 | PyObject * _argo0 = 0; |
6e8a778a | 2327 | char *_kwnames[] = { "self","m_col", NULL }; |
af309447 RD |
2328 | |
2329 | self = self; | |
6e8a778a | 2330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_col_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2331 | return NULL; |
1d99702e RD |
2332 | if (_argo0) { |
2333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_set. Expected _wxListEvent_p."); |
af309447 RD |
2336 | return NULL; |
2337 | } | |
2338 | } | |
cf694132 | 2339 | { |
474c48f9 | 2340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2341 | _result = (int )wxListEvent_m_col_set(_arg0,_arg1); |
cf694132 | 2342 | |
474c48f9 | 2343 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2344 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2345 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2346 | return _resultobj; |
2347 | } | |
2348 | ||
6e8a778a RD |
2349 | #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col) |
2350 | static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2351 | PyObject * _resultobj; |
6e8a778a | 2352 | int _result; |
f6bcfd97 | 2353 | wxListEvent * _arg0; |
1d99702e | 2354 | PyObject * _argo0 = 0; |
efc5f224 | 2355 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2356 | |
2357 | self = self; | |
6e8a778a | 2358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0)) |
8ab979d7 | 2359 | return NULL; |
1d99702e RD |
2360 | if (_argo0) { |
2361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p."); |
8ab979d7 RD |
2364 | return NULL; |
2365 | } | |
2366 | } | |
cf694132 | 2367 | { |
474c48f9 | 2368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2369 | _result = (int )wxListEvent_m_col_get(_arg0); |
cf694132 | 2370 | |
474c48f9 | 2371 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2372 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2373 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2374 | return _resultobj; |
2375 | } | |
2376 | ||
f6bcfd97 BP |
2377 | #define wxListEvent_m_pointDrag_set(_swigobj,_swigval) (_swigobj->m_pointDrag = *(_swigval),_swigval) |
2378 | static PyObject *_wrap_wxListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2379 | PyObject * _resultobj; |
f6bcfd97 BP |
2380 | wxPoint * _result; |
2381 | wxListEvent * _arg0; | |
2382 | wxPoint * _arg1; | |
2383 | PyObject * _argo0 = 0; | |
2384 | wxPoint temp; | |
2385 | PyObject * _obj1 = 0; | |
2386 | char *_kwnames[] = { "self","m_pointDrag", NULL }; | |
8ab979d7 RD |
2387 | char _ptemp[128]; |
2388 | ||
2389 | self = self; | |
f6bcfd97 BP |
2390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_pointDrag_set",_kwnames,&_argo0,&_obj1)) |
2391 | return NULL; | |
2392 | if (_argo0) { | |
2393 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2394 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2395 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_set. Expected _wxListEvent_p."); | |
2396 | return NULL; | |
2397 | } | |
2398 | } | |
2399 | { | |
2400 | _arg1 = &temp; | |
2401 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 2402 | return NULL; |
f6bcfd97 | 2403 | } |
cf694132 | 2404 | { |
474c48f9 | 2405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2406 | _result = (wxPoint *)wxListEvent_m_pointDrag_set(_arg0,_arg1); |
cf694132 | 2407 | |
474c48f9 | 2408 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2409 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2410 | } if (_result) { |
f6bcfd97 | 2411 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); |
1d99702e RD |
2412 | _resultobj = Py_BuildValue("s",_ptemp); |
2413 | } else { | |
2414 | Py_INCREF(Py_None); | |
2415 | _resultobj = Py_None; | |
2416 | } | |
8ab979d7 RD |
2417 | return _resultobj; |
2418 | } | |
2419 | ||
f6bcfd97 BP |
2420 | #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag) |
2421 | static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2422 | PyObject * _resultobj; |
f6bcfd97 BP |
2423 | wxPoint * _result; |
2424 | wxListEvent * _arg0; | |
1d99702e | 2425 | PyObject * _argo0 = 0; |
efc5f224 | 2426 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2427 | char _ptemp[128]; |
8ab979d7 RD |
2428 | |
2429 | self = self; | |
f6bcfd97 | 2430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0)) |
8ab979d7 | 2431 | return NULL; |
1d99702e RD |
2432 | if (_argo0) { |
2433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2436 | return NULL; |
2437 | } | |
2438 | } | |
cf694132 | 2439 | { |
474c48f9 | 2440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2441 | _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0); |
cf694132 | 2442 | |
474c48f9 | 2443 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2444 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2445 | } if (_result) { |
2446 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
2447 | _resultobj = Py_BuildValue("s",_ptemp); | |
2448 | } else { | |
2449 | Py_INCREF(Py_None); | |
2450 | _resultobj = Py_None; | |
2451 | } | |
8ab979d7 RD |
2452 | return _resultobj; |
2453 | } | |
2454 | ||
f6bcfd97 BP |
2455 | #define wxListEvent_m_item_set(_swigobj,_swigval) (_swigobj->m_item = *(_swigval),_swigval) |
2456 | static PyObject *_wrap_wxListEvent_m_item_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2457 | PyObject * _resultobj; | |
2458 | wxListItem * _result; | |
2459 | wxListEvent * _arg0; | |
2460 | wxListItem * _arg1; | |
2461 | PyObject * _argo0 = 0; | |
2462 | PyObject * _argo1 = 0; | |
2463 | char *_kwnames[] = { "self","m_item", NULL }; | |
8ab979d7 | 2464 | |
f6bcfd97 BP |
2465 | self = self; |
2466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_item_set",_kwnames,&_argo0,&_argo1)) | |
2467 | return NULL; | |
2468 | if (_argo0) { | |
2469 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2470 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_set. Expected _wxListEvent_p."); | |
2472 | return NULL; | |
2473 | } | |
2474 | } | |
2475 | if (_argo1) { | |
2476 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2477 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
2478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListEvent_m_item_set. Expected _wxListItem_p."); | |
2479 | return NULL; | |
2480 | } | |
2481 | } | |
2482 | { | |
474c48f9 | 2483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2484 | _result = (wxListItem *)wxListEvent_m_item_set(_arg0,_arg1); |
f6bcfd97 | 2485 | |
474c48f9 | 2486 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2487 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2488 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 | 2489 | return _resultobj; |
8ab979d7 RD |
2490 | } |
2491 | ||
f6bcfd97 BP |
2492 | #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item) |
2493 | static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2494 | PyObject * _resultobj; |
f6bcfd97 | 2495 | wxListItem * _result; |
af309447 | 2496 | wxListEvent * _arg0; |
1d99702e | 2497 | PyObject * _argo0 = 0; |
f6bcfd97 | 2498 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2499 | |
2500 | self = self; | |
f6bcfd97 | 2501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0)) |
af309447 | 2502 | return NULL; |
1d99702e RD |
2503 | if (_argo0) { |
2504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p."); |
af309447 RD |
2507 | return NULL; |
2508 | } | |
2509 | } | |
cf694132 | 2510 | { |
474c48f9 | 2511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2512 | _result = (wxListItem *)wxListEvent_m_item_get(_arg0); |
cf694132 | 2513 | |
474c48f9 | 2514 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2515 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2516 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
2517 | return _resultobj; |
2518 | } | |
2519 | ||
f6bcfd97 BP |
2520 | #define wxListEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
2521 | static PyObject *_wrap_wxListEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2522 | PyObject * _resultobj; |
2523 | int _result; | |
2524 | wxListEvent * _arg0; | |
1d99702e | 2525 | PyObject * _argo0 = 0; |
efc5f224 | 2526 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2527 | |
2528 | self = self; | |
f6bcfd97 | 2529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 2530 | return NULL; |
1d99702e RD |
2531 | if (_argo0) { |
2532 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2533 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCode. Expected _wxListEvent_p."); |
8ab979d7 RD |
2535 | return NULL; |
2536 | } | |
2537 | } | |
cf694132 | 2538 | { |
474c48f9 | 2539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2540 | _result = (int )wxListEvent_GetCode(_arg0); |
cf694132 | 2541 | |
474c48f9 | 2542 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2543 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2544 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2545 | return _resultobj; |
2546 | } | |
2547 | ||
f6bcfd97 BP |
2548 | #define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex()) |
2549 | static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2550 | PyObject * _resultobj; |
2551 | long _result; | |
2552 | wxListEvent * _arg0; | |
1d99702e | 2553 | PyObject * _argo0 = 0; |
f6bcfd97 | 2554 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2555 | |
2556 | self = self; | |
f6bcfd97 | 2557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0)) |
af309447 | 2558 | return NULL; |
1d99702e RD |
2559 | if (_argo0) { |
2560 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2561 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p."); |
af309447 RD |
2563 | return NULL; |
2564 | } | |
2565 | } | |
cf694132 | 2566 | { |
474c48f9 | 2567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2568 | _result = (long )wxListEvent_GetIndex(_arg0); |
cf694132 | 2569 | |
474c48f9 | 2570 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2571 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2572 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2573 | return _resultobj; |
2574 | } | |
2575 | ||
f6bcfd97 BP |
2576 | #define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn()) |
2577 | static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2578 | PyObject * _resultobj; |
f6bcfd97 | 2579 | int _result; |
8ab979d7 | 2580 | wxListEvent * _arg0; |
1d99702e | 2581 | PyObject * _argo0 = 0; |
efc5f224 | 2582 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2583 | |
2584 | self = self; | |
f6bcfd97 | 2585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0)) |
8ab979d7 | 2586 | return NULL; |
1d99702e RD |
2587 | if (_argo0) { |
2588 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2589 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p."); |
8ab979d7 RD |
2591 | return NULL; |
2592 | } | |
2593 | } | |
cf694132 | 2594 | { |
474c48f9 | 2595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2596 | _result = (int )wxListEvent_GetColumn(_arg0); |
cf694132 | 2597 | |
474c48f9 | 2598 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2599 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2600 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2601 | return _resultobj; |
2602 | } | |
2603 | ||
f6bcfd97 BP |
2604 | #define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
2605 | static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2606 | PyObject * _resultobj; |
f6bcfd97 | 2607 | wxPoint * _result; |
8ab979d7 | 2608 | wxListEvent * _arg0; |
1d99702e | 2609 | PyObject * _argo0 = 0; |
efc5f224 | 2610 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2611 | char _ptemp[128]; |
8ab979d7 RD |
2612 | |
2613 | self = self; | |
f6bcfd97 | 2614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 2615 | return NULL; |
1d99702e RD |
2616 | if (_argo0) { |
2617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetPoint. Expected _wxListEvent_p."); |
8ab979d7 RD |
2620 | return NULL; |
2621 | } | |
2622 | } | |
cf694132 | 2623 | { |
474c48f9 | 2624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2625 | _result = new wxPoint (wxListEvent_GetPoint(_arg0)); |
cf694132 | 2626 | |
474c48f9 | 2627 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2628 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2629 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2630 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
2631 | return _resultobj; |
2632 | } | |
2633 | ||
f6bcfd97 BP |
2634 | #define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
2635 | static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2636 | PyObject * _resultobj; |
f6bcfd97 | 2637 | wxString * _result; |
af309447 | 2638 | wxListEvent * _arg0; |
1d99702e | 2639 | PyObject * _argo0 = 0; |
f6bcfd97 | 2640 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2641 | |
2642 | self = self; | |
f6bcfd97 | 2643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetLabel",_kwnames,&_argo0)) |
af309447 | 2644 | return NULL; |
1d99702e RD |
2645 | if (_argo0) { |
2646 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2647 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetLabel. Expected _wxListEvent_p."); |
af309447 RD |
2649 | return NULL; |
2650 | } | |
2651 | } | |
cf694132 | 2652 | { |
474c48f9 | 2653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2654 | const wxString & _result_ref = wxListEvent_GetLabel(_arg0); |
f6bcfd97 | 2655 | _result = (wxString *) &_result_ref; |
cf694132 | 2656 | |
474c48f9 | 2657 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2658 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2659 | }{ |
c8bc7bb8 RD |
2660 | #if wxUSE_UNICODE |
2661 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2662 | #else | |
f6bcfd97 | 2663 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2664 | #endif |
f6bcfd97 | 2665 | } |
af309447 RD |
2666 | return _resultobj; |
2667 | } | |
2668 | ||
f6bcfd97 BP |
2669 | #define wxListEvent_GetText(_swigobj) (_swigobj->GetText()) |
2670 | static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2671 | PyObject * _resultobj; |
f6bcfd97 | 2672 | wxString * _result; |
8ab979d7 | 2673 | wxListEvent * _arg0; |
1d99702e | 2674 | PyObject * _argo0 = 0; |
efc5f224 | 2675 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2676 | |
2677 | self = self; | |
f6bcfd97 | 2678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0)) |
8ab979d7 | 2679 | return NULL; |
1d99702e RD |
2680 | if (_argo0) { |
2681 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2682 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p."); |
8ab979d7 RD |
2684 | return NULL; |
2685 | } | |
2686 | } | |
cf694132 | 2687 | { |
474c48f9 | 2688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2689 | const wxString & _result_ref = wxListEvent_GetText(_arg0); |
f6bcfd97 | 2690 | _result = (wxString *) &_result_ref; |
cf694132 | 2691 | |
474c48f9 | 2692 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2693 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2694 | }{ |
c8bc7bb8 RD |
2695 | #if wxUSE_UNICODE |
2696 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2697 | #else | |
f6bcfd97 | 2698 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2699 | #endif |
f6bcfd97 | 2700 | } |
8ab979d7 RD |
2701 | return _resultobj; |
2702 | } | |
2703 | ||
f6bcfd97 BP |
2704 | #define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage()) |
2705 | static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2706 | PyObject * _resultobj; |
f6bcfd97 | 2707 | int _result; |
af309447 | 2708 | wxListEvent * _arg0; |
1d99702e | 2709 | PyObject * _argo0 = 0; |
f6bcfd97 | 2710 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2711 | |
2712 | self = self; | |
f6bcfd97 | 2713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0)) |
af309447 | 2714 | return NULL; |
1d99702e RD |
2715 | if (_argo0) { |
2716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p."); |
af309447 RD |
2719 | return NULL; |
2720 | } | |
2721 | } | |
cf694132 | 2722 | { |
474c48f9 | 2723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2724 | _result = (int )wxListEvent_GetImage(_arg0); |
cf694132 | 2725 | |
474c48f9 | 2726 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2727 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2728 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2729 | return _resultobj; |
2730 | } | |
2731 | ||
f6bcfd97 BP |
2732 | #define wxListEvent_GetData(_swigobj) (_swigobj->GetData()) |
2733 | static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2734 | PyObject * _resultobj; |
f6bcfd97 | 2735 | long _result; |
8ab979d7 | 2736 | wxListEvent * _arg0; |
1d99702e | 2737 | PyObject * _argo0 = 0; |
efc5f224 | 2738 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2739 | |
2740 | self = self; | |
f6bcfd97 | 2741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0)) |
8ab979d7 | 2742 | return NULL; |
1d99702e RD |
2743 | if (_argo0) { |
2744 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p."); |
8ab979d7 RD |
2747 | return NULL; |
2748 | } | |
2749 | } | |
cf694132 | 2750 | { |
474c48f9 | 2751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2752 | _result = (long )wxListEvent_GetData(_arg0); |
cf694132 | 2753 | |
474c48f9 | 2754 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2755 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2756 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2757 | return _resultobj; |
2758 | } | |
2759 | ||
f6bcfd97 BP |
2760 | #define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask()) |
2761 | static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2762 | PyObject * _resultobj; |
f6bcfd97 | 2763 | long _result; |
af309447 | 2764 | wxListEvent * _arg0; |
1d99702e | 2765 | PyObject * _argo0 = 0; |
f6bcfd97 | 2766 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2767 | |
2768 | self = self; | |
f6bcfd97 | 2769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetMask",_kwnames,&_argo0)) |
af309447 | 2770 | return NULL; |
1d99702e RD |
2771 | if (_argo0) { |
2772 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2773 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetMask. Expected _wxListEvent_p."); |
af309447 RD |
2775 | return NULL; |
2776 | } | |
2777 | } | |
cf694132 | 2778 | { |
474c48f9 | 2779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2780 | _result = (long )wxListEvent_GetMask(_arg0); |
cf694132 | 2781 | |
474c48f9 | 2782 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2783 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2784 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2785 | return _resultobj; |
2786 | } | |
2787 | ||
f6bcfd97 BP |
2788 | #define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
2789 | static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2790 | PyObject * _resultobj; |
2791 | wxListItem * _result; | |
2792 | wxListEvent * _arg0; | |
1d99702e | 2793 | PyObject * _argo0 = 0; |
efc5f224 | 2794 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2795 | |
2796 | self = self; | |
f6bcfd97 | 2797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 2798 | return NULL; |
1d99702e RD |
2799 | if (_argo0) { |
2800 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2801 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2802 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p."); |
8ab979d7 RD |
2803 | return NULL; |
2804 | } | |
2805 | } | |
cf694132 | 2806 | { |
474c48f9 | 2807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2808 | const wxListItem & _result_ref = wxListEvent_GetItem(_arg0); |
f6bcfd97 | 2809 | _result = (wxListItem *) &_result_ref; |
cf694132 | 2810 | |
474c48f9 | 2811 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2812 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2813 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2814 | return _resultobj; |
2815 | } | |
2816 | ||
059a841c RD |
2817 | #define wxListEvent_GetCacheFrom(_swigobj) (_swigobj->GetCacheFrom()) |
2818 | static PyObject *_wrap_wxListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2819 | PyObject * _resultobj; | |
2820 | long _result; | |
2821 | wxListEvent * _arg0; | |
2822 | PyObject * _argo0 = 0; | |
2823 | char *_kwnames[] = { "self", NULL }; | |
2824 | ||
2825 | self = self; | |
2826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheFrom",_kwnames,&_argo0)) | |
2827 | return NULL; | |
2828 | if (_argo0) { | |
2829 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2830 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2831 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheFrom. Expected _wxListEvent_p."); | |
2832 | return NULL; | |
2833 | } | |
2834 | } | |
2835 | { | |
474c48f9 | 2836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2837 | _result = (long )wxListEvent_GetCacheFrom(_arg0); |
059a841c | 2838 | |
474c48f9 | 2839 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
2840 | if (PyErr_Occurred()) return NULL; |
2841 | } _resultobj = Py_BuildValue("l",_result); | |
2842 | return _resultobj; | |
2843 | } | |
2844 | ||
2845 | #define wxListEvent_GetCacheTo(_swigobj) (_swigobj->GetCacheTo()) | |
2846 | static PyObject *_wrap_wxListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2847 | PyObject * _resultobj; | |
2848 | long _result; | |
2849 | wxListEvent * _arg0; | |
2850 | PyObject * _argo0 = 0; | |
2851 | char *_kwnames[] = { "self", NULL }; | |
2852 | ||
2853 | self = self; | |
2854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheTo",_kwnames,&_argo0)) | |
2855 | return NULL; | |
2856 | if (_argo0) { | |
2857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheTo. Expected _wxListEvent_p."); | |
2860 | return NULL; | |
2861 | } | |
2862 | } | |
2863 | { | |
474c48f9 | 2864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2865 | _result = (long )wxListEvent_GetCacheTo(_arg0); |
059a841c | 2866 | |
474c48f9 | 2867 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
2868 | if (PyErr_Occurred()) return NULL; |
2869 | } _resultobj = Py_BuildValue("l",_result); | |
2870 | return _resultobj; | |
2871 | } | |
2872 | ||
cd096152 RD |
2873 | static void *SwigwxPyListCtrlTowxControl(void *ptr) { |
2874 | wxPyListCtrl *src; | |
8ab979d7 | 2875 | wxControl *dest; |
cd096152 | 2876 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2877 | dest = (wxControl *) src; |
2878 | return (void *) dest; | |
2879 | } | |
2880 | ||
cd096152 RD |
2881 | static void *SwigwxPyListCtrlTowxWindow(void *ptr) { |
2882 | wxPyListCtrl *src; | |
8ab979d7 | 2883 | wxWindow *dest; |
cd096152 | 2884 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2885 | dest = (wxWindow *) src; |
2886 | return (void *) dest; | |
2887 | } | |
2888 | ||
cd096152 RD |
2889 | static void *SwigwxPyListCtrlTowxEvtHandler(void *ptr) { |
2890 | wxPyListCtrl *src; | |
8ab979d7 | 2891 | wxEvtHandler *dest; |
cd096152 | 2892 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2893 | dest = (wxEvtHandler *) src; |
2894 | return (void *) dest; | |
2895 | } | |
2896 | ||
cd096152 RD |
2897 | static void *SwigwxPyListCtrlTowxObject(void *ptr) { |
2898 | wxPyListCtrl *src; | |
9df61a29 | 2899 | wxObject *dest; |
cd096152 | 2900 | src = (wxPyListCtrl *) ptr; |
9df61a29 RD |
2901 | dest = (wxObject *) src; |
2902 | return (void *) dest; | |
2903 | } | |
2904 | ||
cd096152 | 2905 | #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 2906 | static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 2907 | PyObject * _resultobj; |
cd096152 | 2908 | wxPyListCtrl * _result; |
8ab979d7 | 2909 | wxWindow * _arg0; |
cd096152 | 2910 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
2911 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
2912 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2c8a649d | 2913 | long _arg4 = (long ) (wxLC_ICON); |
b68dc582 | 2914 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
2915 | char * _arg6 = (char *) "listCtrl"; |
2916 | PyObject * _argo0 = 0; | |
2f90df85 RD |
2917 | wxPoint temp; |
2918 | PyObject * _obj2 = 0; | |
2919 | wxSize temp0; | |
2920 | PyObject * _obj3 = 0; | |
1d99702e | 2921 | PyObject * _argo5 = 0; |
efc5f224 | 2922 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
2923 | char _ptemp[128]; |
2924 | ||
2925 | self = self; | |
cd096152 | 2926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 2927 | return NULL; |
1d99702e RD |
2928 | if (_argo0) { |
2929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p."); |
2932 | return NULL; | |
2933 | } | |
2934 | } | |
2f90df85 RD |
2935 | if (_obj2) |
2936 | { | |
2937 | _arg2 = &temp; | |
2938 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 2939 | return NULL; |
2f90df85 RD |
2940 | } |
2941 | if (_obj3) | |
2942 | { | |
2943 | _arg3 = &temp0; | |
2944 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 2945 | return NULL; |
2f90df85 | 2946 | } |
1d99702e RD |
2947 | if (_argo5) { |
2948 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
2949 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
2950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p."); |
2951 | return NULL; | |
2952 | } | |
2953 | } | |
cf694132 | 2954 | { |
474c48f9 | 2955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2956 | _result = (wxPyListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
cf694132 | 2957 | |
474c48f9 | 2958 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2959 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2960 | } if (_result) { |
cd096152 | 2961 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); |
1d99702e RD |
2962 | _resultobj = Py_BuildValue("s",_ptemp); |
2963 | } else { | |
2964 | Py_INCREF(Py_None); | |
2965 | _resultobj = Py_None; | |
2966 | } | |
8ab979d7 RD |
2967 | return _resultobj; |
2968 | } | |
2969 | ||
aa2a5b86 RD |
2970 | #define new_wxPreListCtrl() (new wxPyListCtrl()) |
2971 | static PyObject *_wrap_new_wxPreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2972 | PyObject * _resultobj; | |
2973 | wxPyListCtrl * _result; | |
2974 | char *_kwnames[] = { NULL }; | |
2975 | char _ptemp[128]; | |
2976 | ||
2977 | self = self; | |
2978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListCtrl",_kwnames)) | |
2979 | return NULL; | |
2980 | { | |
474c48f9 | 2981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2982 | _result = (wxPyListCtrl *)new_wxPreListCtrl(); |
aa2a5b86 | 2983 | |
474c48f9 | 2984 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
2985 | if (PyErr_Occurred()) return NULL; |
2986 | } if (_result) { | |
2987 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); | |
2988 | _resultobj = Py_BuildValue("s",_ptemp); | |
2989 | } else { | |
2990 | Py_INCREF(Py_None); | |
2991 | _resultobj = Py_None; | |
2992 | } | |
2993 | return _resultobj; | |
2994 | } | |
2995 | ||
2996 | #define wxListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
2997 | static PyObject *_wrap_wxListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2998 | PyObject * _resultobj; | |
2999 | bool _result; | |
3000 | wxPyListCtrl * _arg0; | |
3001 | wxWindow * _arg1; | |
3002 | wxWindowID _arg2 = (wxWindowID ) -1; | |
3003 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
3004 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
3005 | long _arg5 = (long ) (wxLC_ICON); | |
3006 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
3007 | char * _arg7 = (char *) "listCtrl"; | |
3008 | PyObject * _argo0 = 0; | |
3009 | PyObject * _argo1 = 0; | |
3010 | wxPoint temp; | |
3011 | PyObject * _obj3 = 0; | |
3012 | wxSize temp0; | |
3013 | PyObject * _obj4 = 0; | |
3014 | PyObject * _argo6 = 0; | |
3015 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
3016 | ||
3017 | self = self; | |
3018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
3019 | return NULL; | |
3020 | if (_argo0) { | |
3021 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3022 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3023 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Create. Expected _wxPyListCtrl_p."); | |
3024 | return NULL; | |
3025 | } | |
3026 | } | |
3027 | if (_argo1) { | |
3028 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3029 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3030 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_Create. Expected _wxWindow_p."); | |
3031 | return NULL; | |
3032 | } | |
3033 | } | |
3034 | if (_obj3) | |
3035 | { | |
3036 | _arg3 = &temp; | |
3037 | if (! wxPoint_helper(_obj3, &_arg3)) | |
3038 | return NULL; | |
3039 | } | |
3040 | if (_obj4) | |
3041 | { | |
3042 | _arg4 = &temp0; | |
3043 | if (! wxSize_helper(_obj4, &_arg4)) | |
3044 | return NULL; | |
3045 | } | |
3046 | if (_argo6) { | |
3047 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
3048 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
3049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListCtrl_Create. Expected _wxValidator_p."); | |
3050 | return NULL; | |
3051 | } | |
3052 | } | |
3053 | { | |
474c48f9 | 3054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3055 | _result = (bool )wxListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
aa2a5b86 | 3056 | |
474c48f9 | 3057 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
3058 | if (PyErr_Occurred()) return NULL; |
3059 | } _resultobj = Py_BuildValue("i",_result); | |
3060 | return _resultobj; | |
3061 | } | |
3062 | ||
0220cbc1 RD |
3063 | #define wxListCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
3064 | static PyObject *_wrap_wxListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3065 | PyObject * _resultobj; |
cd096152 RD |
3066 | wxPyListCtrl * _arg0; |
3067 | PyObject * _arg1; | |
3068 | PyObject * _arg2; | |
1d99702e | 3069 | PyObject * _argo0 = 0; |
cd096152 RD |
3070 | PyObject * _obj1 = 0; |
3071 | PyObject * _obj2 = 0; | |
3072 | char *_kwnames[] = { "self","self","_class", NULL }; | |
8ab979d7 RD |
3073 | |
3074 | self = self; | |
0220cbc1 | 3075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxListCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3076 | return NULL; |
1d99702e RD |
3077 | if (_argo0) { |
3078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 | 3079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
0220cbc1 | 3080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl__setCallbackInfo. Expected _wxPyListCtrl_p."); |
8ab979d7 RD |
3081 | return NULL; |
3082 | } | |
3083 | } | |
cd096152 RD |
3084 | { |
3085 | _arg1 = _obj1; | |
3086 | } | |
3087 | { | |
3088 | _arg2 = _obj2; | |
3089 | } | |
cf694132 | 3090 | { |
474c48f9 | 3091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3092 | wxListCtrl__setCallbackInfo(_arg0,_arg1,_arg2); |
cf694132 | 3093 | |
474c48f9 | 3094 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3095 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3096 | } Py_INCREF(Py_None); |
3097 | _resultobj = Py_None; | |
8ab979d7 RD |
3098 | return _resultobj; |
3099 | } | |
3100 | ||
cd096152 RD |
3101 | #define wxListCtrl_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) |
3102 | static PyObject *_wrap_wxListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c4165ad | 3103 | PyObject * _resultobj; |
cd096152 RD |
3104 | bool _result; |
3105 | wxPyListCtrl * _arg0; | |
3106 | wxColour * _arg1; | |
9c4165ad | 3107 | PyObject * _argo0 = 0; |
cd096152 RD |
3108 | wxColour temp; |
3109 | PyObject * _obj1 = 0; | |
3110 | char *_kwnames[] = { "self","col", NULL }; | |
9c4165ad RD |
3111 | |
3112 | self = self; | |
cd096152 | 3113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
9c4165ad RD |
3114 | return NULL; |
3115 | if (_argo0) { | |
3116 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3117 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetForegroundColour. Expected _wxPyListCtrl_p."); | |
9c4165ad RD |
3119 | return NULL; |
3120 | } | |
3121 | } | |
cd096152 RD |
3122 | { |
3123 | _arg1 = &temp; | |
3124 | if (! wxColour_helper(_obj1, &_arg1)) | |
3125 | return NULL; | |
3126 | } | |
3127 | { | |
474c48f9 | 3128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3129 | _result = (bool )wxListCtrl_SetForegroundColour(_arg0,*_arg1); |
cd096152 | 3130 | |
474c48f9 | 3131 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
3132 | if (PyErr_Occurred()) return NULL; |
3133 | } _resultobj = Py_BuildValue("i",_result); | |
3134 | return _resultobj; | |
3135 | } | |
3136 | ||
3137 | #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
3138 | static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3139 | PyObject * _resultobj; | |
3140 | bool _result; | |
3141 | wxPyListCtrl * _arg0; | |
3142 | wxColour * _arg1; | |
3143 | PyObject * _argo0 = 0; | |
3144 | wxColour temp; | |
3145 | PyObject * _obj1 = 0; | |
3146 | char *_kwnames[] = { "self","col", NULL }; | |
3147 | ||
3148 | self = self; | |
3149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
3150 | return NULL; | |
3151 | if (_argo0) { | |
3152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxPyListCtrl_p."); | |
9c4165ad RD |
3155 | return NULL; |
3156 | } | |
3157 | } | |
cd096152 RD |
3158 | { |
3159 | _arg1 = &temp; | |
3160 | if (! wxColour_helper(_obj1, &_arg1)) | |
3161 | return NULL; | |
3162 | } | |
9c4165ad | 3163 | { |
474c48f9 | 3164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3165 | _result = (bool )wxListCtrl_SetBackgroundColour(_arg0,*_arg1); |
9c4165ad | 3166 | |
474c48f9 | 3167 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3168 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3169 | } _resultobj = Py_BuildValue("i",_result); |
9c4165ad RD |
3170 | return _resultobj; |
3171 | } | |
3172 | ||
94082a71 RD |
3173 | static wxListItem * wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col) { |
3174 | wxListItem item; | |
3175 | if (self->GetColumn(col, item)) | |
3176 | return new wxListItem(item); | |
3177 | else | |
3178 | return NULL; | |
3179 | } | |
cd096152 | 3180 | static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3181 | PyObject * _resultobj; |
94082a71 | 3182 | wxListItem * _result; |
cd096152 RD |
3183 | wxPyListCtrl * _arg0; |
3184 | int _arg1; | |
1d99702e | 3185 | PyObject * _argo0 = 0; |
94082a71 | 3186 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3187 | |
3188 | self = self; | |
94082a71 | 3189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3190 | return NULL; |
1d99702e RD |
3191 | if (_argo0) { |
3192 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3193 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxPyListCtrl_p."); | |
3195 | return NULL; | |
3196 | } | |
3197 | } | |
cf694132 | 3198 | { |
474c48f9 | 3199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3200 | _result = (wxListItem *)wxPyListCtrl_GetColumn(_arg0,_arg1); |
cf694132 | 3201 | |
474c48f9 | 3202 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3203 | if (PyErr_Occurred()) return NULL; |
94082a71 | 3204 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
3205 | return _resultobj; |
3206 | } | |
3207 | ||
cd096152 RD |
3208 | #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1)) |
3209 | static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3210 | PyObject * _resultobj; |
3211 | bool _result; | |
cd096152 RD |
3212 | wxPyListCtrl * _arg0; |
3213 | int _arg1; | |
3214 | wxListItem * _arg2; | |
1d99702e | 3215 | PyObject * _argo0 = 0; |
cd096152 RD |
3216 | PyObject * _argo2 = 0; |
3217 | char *_kwnames[] = { "self","col","item", NULL }; | |
8ab979d7 RD |
3218 | |
3219 | self = self; | |
cd096152 | 3220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3221 | return NULL; |
1d99702e RD |
3222 | if (_argo0) { |
3223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxPyListCtrl_p."); | |
3226 | return NULL; | |
3227 | } | |
3228 | } | |
3229 | if (_argo2) { | |
3230 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3231 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
3232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p."); | |
8ab979d7 RD |
3233 | return NULL; |
3234 | } | |
3235 | } | |
cf694132 | 3236 | { |
474c48f9 | 3237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3238 | _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2); |
cf694132 | 3239 | |
474c48f9 | 3240 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3241 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3242 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3243 | return _resultobj; |
3244 | } | |
3245 | ||
cd096152 RD |
3246 | #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0)) |
3247 | static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3248 | PyObject * _resultobj; |
cd096152 RD |
3249 | int _result; |
3250 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3251 | int _arg1; |
1d99702e | 3252 | PyObject * _argo0 = 0; |
efc5f224 | 3253 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3254 | |
3255 | self = self; | |
cd096152 | 3256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3257 | return NULL; |
1d99702e RD |
3258 | if (_argo0) { |
3259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3262 | return NULL; |
3263 | } | |
3264 | } | |
cf694132 | 3265 | { |
474c48f9 | 3266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3267 | _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1); |
cf694132 | 3268 | |
474c48f9 | 3269 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3270 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3271 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3272 | return _resultobj; |
3273 | } | |
3274 | ||
cd096152 RD |
3275 | #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1)) |
3276 | static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3277 | PyObject * _resultobj; |
3278 | bool _result; | |
cd096152 RD |
3279 | wxPyListCtrl * _arg0; |
3280 | int _arg1; | |
3281 | int _arg2; | |
1d99702e | 3282 | PyObject * _argo0 = 0; |
cd096152 | 3283 | char *_kwnames[] = { "self","col","width", NULL }; |
8ab979d7 RD |
3284 | |
3285 | self = self; | |
cd096152 | 3286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3287 | return NULL; |
1d99702e RD |
3288 | if (_argo0) { |
3289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3292 | return NULL; |
3293 | } | |
3294 | } | |
cf694132 | 3295 | { |
474c48f9 | 3296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3297 | _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2); |
cf694132 | 3298 | |
474c48f9 | 3299 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3300 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3301 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3302 | return _resultobj; |
3303 | } | |
3304 | ||
cd096152 RD |
3305 | #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage()) |
3306 | static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3307 | PyObject * _resultobj; |
cd096152 RD |
3308 | int _result; |
3309 | wxPyListCtrl * _arg0; | |
1d99702e | 3310 | PyObject * _argo0 = 0; |
efc5f224 | 3311 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3312 | |
3313 | self = self; | |
cd096152 | 3314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0)) |
8ab979d7 | 3315 | return NULL; |
1d99702e RD |
3316 | if (_argo0) { |
3317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3320 | return NULL; |
3321 | } | |
3322 | } | |
cf694132 | 3323 | { |
474c48f9 | 3324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3325 | _result = (int )wxListCtrl_GetCountPerPage(_arg0); |
cf694132 | 3326 | |
474c48f9 | 3327 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3328 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3329 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3330 | return _resultobj; |
3331 | } | |
3332 | ||
cd096152 RD |
3333 | static wxListItem * wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col) { |
3334 | wxListItem* info = new wxListItem; | |
3335 | info->m_itemId = itemId; | |
3336 | info->m_col = col; | |
3337 | info->m_mask = 0xFFFF; | |
3338 | self->GetItem(*info); | |
3339 | return info; | |
3340 | } | |
3341 | static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3342 | PyObject * _resultobj; |
cd096152 RD |
3343 | wxListItem * _result; |
3344 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3345 | long _arg1; |
cd096152 | 3346 | int _arg2 = (int ) 0; |
1d99702e | 3347 | PyObject * _argo0 = 0; |
cd096152 | 3348 | char *_kwnames[] = { "self","itemId","col", NULL }; |
8ab979d7 RD |
3349 | |
3350 | self = self; | |
cd096152 | 3351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3352 | return NULL; |
1d99702e RD |
3353 | if (_argo0) { |
3354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3357 | return NULL; |
3358 | } | |
3359 | } | |
cf694132 | 3360 | { |
474c48f9 | 3361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3362 | _result = (wxListItem *)wxPyListCtrl_GetItem(_arg0,_arg1,_arg2); |
cf694132 | 3363 | |
474c48f9 | 3364 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3365 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3366 | }{ _resultobj = wxPyMake_wxObject(_result); } |
be4d9c1f RD |
3367 | return _resultobj; |
3368 | } | |
3369 | ||
cd096152 RD |
3370 | #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) |
3371 | static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3372 | PyObject * _resultobj; |
3373 | bool _result; | |
cd096152 RD |
3374 | wxPyListCtrl * _arg0; |
3375 | wxListItem * _arg1; | |
1d99702e | 3376 | PyObject * _argo0 = 0; |
cd096152 RD |
3377 | PyObject * _argo1 = 0; |
3378 | char *_kwnames[] = { "self","info", NULL }; | |
8ab979d7 RD |
3379 | |
3380 | self = self; | |
cd096152 | 3381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3382 | return NULL; |
1d99702e RD |
3383 | if (_argo0) { |
3384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxPyListCtrl_p."); | |
3387 | return NULL; | |
3388 | } | |
3389 | } | |
3390 | if (_argo1) { | |
3391 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3392 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
3393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p."); | |
8ab979d7 RD |
3394 | return NULL; |
3395 | } | |
3396 | } | |
cf694132 | 3397 | { |
474c48f9 | 3398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3399 | _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1); |
cf694132 | 3400 | |
474c48f9 | 3401 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3402 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3403 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3404 | return _resultobj; |
3405 | } | |
3406 | ||
cd096152 RD |
3407 | #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3408 | static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3409 | PyObject * _resultobj; |
3410 | long _result; | |
cd096152 | 3411 | wxPyListCtrl * _arg0; |
8ab979d7 | 3412 | long _arg1; |
cd096152 RD |
3413 | int _arg2; |
3414 | wxString * _arg3; | |
3415 | int _arg4 = (int ) -1; | |
1d99702e | 3416 | PyObject * _argo0 = 0; |
cd096152 RD |
3417 | PyObject * _obj3 = 0; |
3418 | char *_kwnames[] = { "self","index","col","label","imageId", NULL }; | |
8ab979d7 RD |
3419 | |
3420 | self = self; | |
cd096152 | 3421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
8ab979d7 | 3422 | return NULL; |
1d99702e RD |
3423 | if (_argo0) { |
3424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3427 | return NULL; |
3428 | } | |
3429 | } | |
3430 | { | |
c8bc7bb8 RD |
3431 | _arg3 = wxString_in_helper(_obj3); |
3432 | if (_arg3 == NULL) | |
2cd2fac8 | 3433 | return NULL; |
8ab979d7 | 3434 | } |
cf694132 | 3435 | { |
474c48f9 | 3436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3437 | _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4); |
cf694132 | 3438 | |
474c48f9 | 3439 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3440 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3441 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 3442 | { |
cd096152 RD |
3443 | if (_obj3) |
3444 | delete _arg3; | |
8ab979d7 RD |
3445 | } |
3446 | return _resultobj; | |
3447 | } | |
3448 | ||
cd096152 RD |
3449 | #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1)) |
3450 | static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3451 | PyObject * _resultobj; |
cd096152 RD |
3452 | int _result; |
3453 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
3454 | long _arg1; |
3455 | long _arg2; | |
1d99702e | 3456 | PyObject * _argo0 = 0; |
cd096152 | 3457 | char *_kwnames[] = { "self","item","stateMask", NULL }; |
8ab979d7 RD |
3458 | |
3459 | self = self; | |
cd096152 | 3460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3461 | return NULL; |
1d99702e RD |
3462 | if (_argo0) { |
3463 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3464 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3466 | return NULL; |
3467 | } | |
3468 | } | |
cf694132 | 3469 | { |
474c48f9 | 3470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3471 | _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2); |
cf694132 | 3472 | |
474c48f9 | 3473 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3474 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3475 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3476 | return _resultobj; |
3477 | } | |
3478 | ||
cd096152 RD |
3479 | #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2)) |
3480 | static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3481 | PyObject * _resultobj; |
cd096152 RD |
3482 | bool _result; |
3483 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3484 | long _arg1; |
cd096152 RD |
3485 | long _arg2; |
3486 | long _arg3; | |
1d99702e | 3487 | PyObject * _argo0 = 0; |
cd096152 | 3488 | char *_kwnames[] = { "self","item","state","stateMask", NULL }; |
8ab979d7 RD |
3489 | |
3490 | self = self; | |
cd096152 | 3491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3492 | return NULL; |
1d99702e RD |
3493 | if (_argo0) { |
3494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3497 | return NULL; |
3498 | } | |
3499 | } | |
cf694132 | 3500 | { |
474c48f9 | 3501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3502 | _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3503 | |
474c48f9 | 3504 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3505 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3506 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3507 | return _resultobj; |
3508 | } | |
3509 | ||
cd096152 RD |
3510 | #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
3511 | static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3512 | PyObject * _resultobj; |
3513 | bool _result; | |
cd096152 RD |
3514 | wxPyListCtrl * _arg0; |
3515 | long _arg1; | |
3516 | int _arg2; | |
3517 | int _arg3; | |
1d99702e | 3518 | PyObject * _argo0 = 0; |
cd096152 | 3519 | char *_kwnames[] = { "self","item","image","selImage", NULL }; |
8ab979d7 RD |
3520 | |
3521 | self = self; | |
cd096152 | 3522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3523 | return NULL; |
1d99702e RD |
3524 | if (_argo0) { |
3525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3528 | return NULL; |
3529 | } | |
3530 | } | |
cf694132 | 3531 | { |
474c48f9 | 3532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3533 | _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3534 | |
474c48f9 | 3535 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3536 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3537 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3538 | return _resultobj; |
3539 | } | |
3540 | ||
cd096152 RD |
3541 | #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
3542 | static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3543 | PyObject * _resultobj; |
cd096152 RD |
3544 | wxString * _result; |
3545 | wxPyListCtrl * _arg0; | |
3546 | long _arg1; | |
1d99702e | 3547 | PyObject * _argo0 = 0; |
cd096152 | 3548 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3549 | |
3550 | self = self; | |
cd096152 | 3551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3552 | return NULL; |
1d99702e RD |
3553 | if (_argo0) { |
3554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3557 | return NULL; |
3558 | } | |
3559 | } | |
cf694132 | 3560 | { |
474c48f9 | 3561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3562 | _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1)); |
cf694132 | 3563 | |
474c48f9 | 3564 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3565 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3566 | }{ |
c8bc7bb8 RD |
3567 | #if wxUSE_UNICODE |
3568 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3569 | #else | |
cd096152 | 3570 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3571 | #endif |
cd096152 RD |
3572 | } |
3573 | { | |
3574 | delete _result; | |
3575 | } | |
8ab979d7 RD |
3576 | return _resultobj; |
3577 | } | |
3578 | ||
cd096152 RD |
3579 | #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
3580 | static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3581 | PyObject * _resultobj; |
cd096152 RD |
3582 | wxPyListCtrl * _arg0; |
3583 | long _arg1; | |
3584 | wxString * _arg2; | |
1d99702e | 3585 | PyObject * _argo0 = 0; |
cd096152 RD |
3586 | PyObject * _obj2 = 0; |
3587 | char *_kwnames[] = { "self","item","str", NULL }; | |
8ab979d7 RD |
3588 | |
3589 | self = self; | |
cd096152 | 3590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3591 | return NULL; |
1d99702e RD |
3592 | if (_argo0) { |
3593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3596 | return NULL; |
3597 | } | |
3598 | } | |
cf694132 | 3599 | { |
c8bc7bb8 RD |
3600 | _arg2 = wxString_in_helper(_obj2); |
3601 | if (_arg2 == NULL) | |
8ab979d7 | 3602 | return NULL; |
cd096152 | 3603 | } |
cf694132 | 3604 | { |
474c48f9 | 3605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3606 | wxListCtrl_SetItemText(_arg0,_arg1,*_arg2); |
cf694132 | 3607 | |
474c48f9 | 3608 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3609 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3610 | } Py_INCREF(Py_None); |
3611 | _resultobj = Py_None; | |
3612 | { | |
3613 | if (_obj2) | |
3614 | delete _arg2; | |
3615 | } | |
8ab979d7 RD |
3616 | return _resultobj; |
3617 | } | |
3618 | ||
3619 | #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0)) | |
efc5f224 | 3620 | static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3621 | PyObject * _resultobj; |
3622 | long _result; | |
cd096152 | 3623 | wxPyListCtrl * _arg0; |
8ab979d7 | 3624 | long _arg1; |
1d99702e | 3625 | PyObject * _argo0 = 0; |
efc5f224 | 3626 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3627 | |
3628 | self = self; | |
efc5f224 | 3629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3630 | return NULL; |
1d99702e RD |
3631 | if (_argo0) { |
3632 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3633 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3635 | return NULL; |
3636 | } | |
3637 | } | |
cf694132 | 3638 | { |
474c48f9 | 3639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3640 | _result = (long )wxListCtrl_GetItemData(_arg0,_arg1); |
cf694132 | 3641 | |
474c48f9 | 3642 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3643 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3644 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
3645 | return _resultobj; |
3646 | } | |
3647 | ||
cd096152 RD |
3648 | #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1)) |
3649 | static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3650 | PyObject * _resultobj; |
cd096152 RD |
3651 | bool _result; |
3652 | wxPyListCtrl * _arg0; | |
0699c864 | 3653 | long _arg1; |
cd096152 | 3654 | long _arg2; |
1d99702e | 3655 | PyObject * _argo0 = 0; |
cd096152 | 3656 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
3657 | |
3658 | self = self; | |
cd096152 | 3659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3660 | return NULL; |
1d99702e RD |
3661 | if (_argo0) { |
3662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3665 | return NULL; |
3666 | } | |
3667 | } | |
cf694132 | 3668 | { |
474c48f9 | 3669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3670 | _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2); |
cf694132 | 3671 | |
474c48f9 | 3672 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3673 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3674 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3675 | return _resultobj; |
3676 | } | |
3677 | ||
cd096152 | 3678 | static wxPoint * wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item) { |
8ab979d7 RD |
3679 | wxPoint* pos = new wxPoint; |
3680 | self->GetItemPosition(item, *pos); | |
3681 | return pos; | |
3682 | } | |
efc5f224 | 3683 | static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3684 | PyObject * _resultobj; |
3685 | wxPoint * _result; | |
cd096152 | 3686 | wxPyListCtrl * _arg0; |
8ab979d7 | 3687 | long _arg1; |
1d99702e | 3688 | PyObject * _argo0 = 0; |
efc5f224 | 3689 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3690 | char _ptemp[128]; |
3691 | ||
3692 | self = self; | |
efc5f224 | 3693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3694 | return NULL; |
1d99702e RD |
3695 | if (_argo0) { |
3696 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3697 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3699 | return NULL; |
3700 | } | |
3701 | } | |
cf694132 | 3702 | { |
474c48f9 | 3703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3704 | _result = (wxPoint *)wxPyListCtrl_GetItemPosition(_arg0,_arg1); |
cf694132 | 3705 | |
474c48f9 | 3706 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3707 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3708 | } if (_result) { |
3709 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
3710 | _resultobj = Py_BuildValue("s",_ptemp); | |
3711 | } else { | |
3712 | Py_INCREF(Py_None); | |
3713 | _resultobj = Py_None; | |
3714 | } | |
8ab979d7 RD |
3715 | return _resultobj; |
3716 | } | |
3717 | ||
cd096152 | 3718 | static wxRect * wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code) { |
8ab979d7 RD |
3719 | wxRect* rect= new wxRect; |
3720 | self->GetItemRect(item, *rect, code); | |
3721 | return rect; | |
3722 | } | |
efc5f224 | 3723 | static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3724 | PyObject * _resultobj; |
3725 | wxRect * _result; | |
cd096152 | 3726 | wxPyListCtrl * _arg0; |
8ab979d7 | 3727 | long _arg1; |
1d99702e RD |
3728 | int _arg2 = (int ) (wxLIST_RECT_BOUNDS); |
3729 | PyObject * _argo0 = 0; | |
efc5f224 | 3730 | char *_kwnames[] = { "self","item","code", NULL }; |
8ab979d7 RD |
3731 | char _ptemp[128]; |
3732 | ||
3733 | self = self; | |
efc5f224 | 3734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3735 | return NULL; |
1d99702e RD |
3736 | if (_argo0) { |
3737 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3738 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3740 | return NULL; |
3741 | } | |
3742 | } | |
cf694132 | 3743 | { |
474c48f9 | 3744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3745 | _result = (wxRect *)wxPyListCtrl_GetItemRect(_arg0,_arg1,_arg2); |
cf694132 | 3746 | |
474c48f9 | 3747 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3748 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3749 | } if (_result) { |
3750 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
3751 | _resultobj = Py_BuildValue("s",_ptemp); | |
3752 | } else { | |
3753 | Py_INCREF(Py_None); | |
3754 | _resultobj = Py_None; | |
3755 | } | |
8ab979d7 RD |
3756 | return _resultobj; |
3757 | } | |
3758 | ||
cd096152 RD |
3759 | #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1)) |
3760 | static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3761 | PyObject * _resultobj; |
cd096152 RD |
3762 | bool _result; |
3763 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3764 | long _arg1; |
cd096152 | 3765 | wxPoint * _arg2; |
1d99702e | 3766 | PyObject * _argo0 = 0; |
cd096152 RD |
3767 | wxPoint temp; |
3768 | PyObject * _obj2 = 0; | |
3769 | char *_kwnames[] = { "self","item","pos", NULL }; | |
8ab979d7 RD |
3770 | |
3771 | self = self; | |
cd096152 | 3772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3773 | return NULL; |
1d99702e RD |
3774 | if (_argo0) { |
3775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3778 | return NULL; |
3779 | } | |
3780 | } | |
cd096152 RD |
3781 | { |
3782 | _arg2 = &temp; | |
3783 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3784 | return NULL; | |
3785 | } | |
cf694132 | 3786 | { |
474c48f9 | 3787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3788 | _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2); |
cf694132 | 3789 | |
474c48f9 | 3790 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3791 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3792 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3793 | return _resultobj; |
3794 | } | |
3795 | ||
3796 | #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
efc5f224 | 3797 | static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3798 | PyObject * _resultobj; |
3799 | int _result; | |
cd096152 | 3800 | wxPyListCtrl * _arg0; |
1d99702e | 3801 | PyObject * _argo0 = 0; |
efc5f224 | 3802 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3803 | |
3804 | self = self; | |
efc5f224 | 3805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3806 | return NULL; |
1d99702e RD |
3807 | if (_argo0) { |
3808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3811 | return NULL; |
3812 | } | |
3813 | } | |
cf694132 | 3814 | { |
474c48f9 | 3815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3816 | _result = (int )wxListCtrl_GetItemCount(_arg0); |
cf694132 | 3817 | |
474c48f9 | 3818 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3819 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3820 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3821 | return _resultobj; |
3822 | } | |
3823 | ||
cd096152 RD |
3824 | #define wxListCtrl_GetColumnCount(_swigobj) (_swigobj->GetColumnCount()) |
3825 | static PyObject *_wrap_wxListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3826 | PyObject * _resultobj; | |
3827 | int _result; | |
3828 | wxPyListCtrl * _arg0; | |
3829 | PyObject * _argo0 = 0; | |
3830 | char *_kwnames[] = { "self", NULL }; | |
3831 | ||
3832 | self = self; | |
3833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetColumnCount",_kwnames,&_argo0)) | |
3834 | return NULL; | |
3835 | if (_argo0) { | |
3836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnCount. Expected _wxPyListCtrl_p."); | |
3839 | return NULL; | |
3840 | } | |
3841 | } | |
3842 | { | |
474c48f9 | 3843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3844 | _result = (int )wxListCtrl_GetColumnCount(_arg0); |
cd096152 | 3845 | |
474c48f9 | 3846 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
3847 | if (PyErr_Occurred()) return NULL; |
3848 | } _resultobj = Py_BuildValue("i",_result); | |
3849 | return _resultobj; | |
3850 | } | |
3851 | ||
8ab979d7 | 3852 | #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0)) |
efc5f224 | 3853 | static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3854 | PyObject * _resultobj; |
3855 | int _result; | |
cd096152 | 3856 | wxPyListCtrl * _arg0; |
8ab979d7 | 3857 | bool _arg1; |
1d99702e | 3858 | PyObject * _argo0 = 0; |
8ab979d7 | 3859 | int tempbool1; |
efc5f224 | 3860 | char *_kwnames[] = { "self","isSmall", NULL }; |
8ab979d7 RD |
3861 | |
3862 | self = self; | |
efc5f224 | 3863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3864 | return NULL; |
1d99702e RD |
3865 | if (_argo0) { |
3866 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3867 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3869 | return NULL; |
3870 | } | |
3871 | } | |
3872 | _arg1 = (bool ) tempbool1; | |
cf694132 | 3873 | { |
474c48f9 | 3874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3875 | _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1); |
cf694132 | 3876 | |
474c48f9 | 3877 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3878 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3879 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3880 | return _resultobj; |
3881 | } | |
3882 | ||
cd096152 RD |
3883 | #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount()) |
3884 | static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3885 | PyObject * _resultobj; |
cd096152 RD |
3886 | int _result; |
3887 | wxPyListCtrl * _arg0; | |
1d99702e | 3888 | PyObject * _argo0 = 0; |
cd096152 | 3889 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3890 | |
3891 | self = self; | |
cd096152 | 3892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3893 | return NULL; |
1d99702e RD |
3894 | if (_argo0) { |
3895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3898 | return NULL; |
3899 | } | |
3900 | } | |
8ab979d7 | 3901 | { |
474c48f9 | 3902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3903 | _result = (int )wxListCtrl_GetSelectedItemCount(_arg0); |
cf694132 | 3904 | |
474c48f9 | 3905 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3906 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3907 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3908 | return _resultobj; |
3909 | } | |
3910 | ||
cd096152 RD |
3911 | #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
3912 | static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3913 | PyObject * _resultobj; |
cd096152 RD |
3914 | wxColour * _result; |
3915 | wxPyListCtrl * _arg0; | |
1d99702e | 3916 | PyObject * _argo0 = 0; |
cd096152 RD |
3917 | char *_kwnames[] = { "self", NULL }; |
3918 | char _ptemp[128]; | |
8ab979d7 RD |
3919 | |
3920 | self = self; | |
cd096152 | 3921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 3922 | return NULL; |
1d99702e RD |
3923 | if (_argo0) { |
3924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3927 | return NULL; |
3928 | } | |
3929 | } | |
cf694132 | 3930 | { |
474c48f9 | 3931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3932 | _result = new wxColour (wxListCtrl_GetTextColour(_arg0)); |
cf694132 | 3933 | |
474c48f9 | 3934 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3935 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3936 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
3937 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
3938 | return _resultobj; |
3939 | } | |
3940 | ||
cd096152 RD |
3941 | #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
3942 | static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3943 | PyObject * _resultobj; |
cd096152 RD |
3944 | wxPyListCtrl * _arg0; |
3945 | wxColour * _arg1; | |
1d99702e | 3946 | PyObject * _argo0 = 0; |
cd096152 RD |
3947 | wxColour temp; |
3948 | PyObject * _obj1 = 0; | |
3949 | char *_kwnames[] = { "self","col", NULL }; | |
8ab979d7 RD |
3950 | |
3951 | self = self; | |
cd096152 | 3952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3953 | return NULL; |
1d99702e RD |
3954 | if (_argo0) { |
3955 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3956 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3958 | return NULL; |
3959 | } | |
3960 | } | |
cd096152 RD |
3961 | { |
3962 | _arg1 = &temp; | |
3963 | if (! wxColour_helper(_obj1, &_arg1)) | |
3964 | return NULL; | |
3965 | } | |
cf694132 | 3966 | { |
474c48f9 | 3967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3968 | wxListCtrl_SetTextColour(_arg0,*_arg1); |
cf694132 | 3969 | |
474c48f9 | 3970 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3971 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3972 | } Py_INCREF(Py_None); |
3973 | _resultobj = Py_None; | |
8ab979d7 RD |
3974 | return _resultobj; |
3975 | } | |
3976 | ||
8ab979d7 | 3977 | #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem()) |
efc5f224 | 3978 | static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3979 | PyObject * _resultobj; |
3980 | long _result; | |
cd096152 | 3981 | wxPyListCtrl * _arg0; |
1d99702e | 3982 | PyObject * _argo0 = 0; |
efc5f224 | 3983 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3984 | |
3985 | self = self; | |
efc5f224 | 3986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0)) |
8ab979d7 | 3987 | return NULL; |
1d99702e RD |
3988 | if (_argo0) { |
3989 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3990 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3991 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3992 | return NULL; |
3993 | } | |
3994 | } | |
cf694132 | 3995 | { |
474c48f9 | 3996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3997 | _result = (long )wxListCtrl_GetTopItem(_arg0); |
cf694132 | 3998 | |
474c48f9 | 3999 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4000 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4001 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4002 | return _resultobj; |
4003 | } | |
4004 | ||
cd096152 RD |
4005 | #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1)) |
4006 | static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4007 | PyObject * _resultobj; | |
4008 | wxPyListCtrl * _arg0; | |
4009 | long _arg1; | |
4010 | bool _arg2 = (bool ) TRUE; | |
1d99702e | 4011 | PyObject * _argo0 = 0; |
cd096152 RD |
4012 | int tempbool2 = (int) TRUE; |
4013 | char *_kwnames[] = { "self","style","add", NULL }; | |
8ab979d7 RD |
4014 | |
4015 | self = self; | |
cd096152 RD |
4016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2)) |
4017 | return NULL; | |
4018 | if (_argo0) { | |
4019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxPyListCtrl_p."); | |
4022 | return NULL; | |
4023 | } | |
4024 | } | |
4025 | _arg2 = (bool ) tempbool2; | |
8ab979d7 | 4026 | { |
474c48f9 | 4027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4028 | wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2); |
cd096152 | 4029 | |
474c48f9 | 4030 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4031 | if (PyErr_Occurred()) return NULL; |
4032 | } Py_INCREF(Py_None); | |
4033 | _resultobj = Py_None; | |
4034 | return _resultobj; | |
8ab979d7 | 4035 | } |
cd096152 RD |
4036 | |
4037 | #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) | |
4038 | static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4039 | PyObject * _resultobj; | |
4040 | wxPyListCtrl * _arg0; | |
4041 | long _arg1; | |
4042 | PyObject * _argo0 = 0; | |
4043 | char *_kwnames[] = { "self","style", NULL }; | |
4044 | ||
4045 | self = self; | |
4046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
8ab979d7 | 4047 | return NULL; |
1d99702e RD |
4048 | if (_argo0) { |
4049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4052 | return NULL; |
4053 | } | |
4054 | } | |
2f90df85 | 4055 | { |
474c48f9 | 4056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4057 | wxListCtrl_SetWindowStyleFlag(_arg0,_arg1); |
cd096152 | 4058 | |
474c48f9 | 4059 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4060 | if (PyErr_Occurred()) return NULL; |
4061 | } Py_INCREF(Py_None); | |
4062 | _resultobj = Py_None; | |
4063 | return _resultobj; | |
2f90df85 | 4064 | } |
cd096152 RD |
4065 | |
4066 | #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2)) | |
4067 | static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4068 | PyObject * _resultobj; | |
4069 | long _result; | |
4070 | wxPyListCtrl * _arg0; | |
4071 | long _arg1; | |
4072 | int _arg2 = (int ) (wxLIST_NEXT_ALL); | |
4073 | int _arg3 = (int ) (wxLIST_STATE_DONTCARE); | |
4074 | PyObject * _argo0 = 0; | |
4075 | char *_kwnames[] = { "self","item","geometry","state", NULL }; | |
4076 | ||
4077 | self = self; | |
4078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
4079 | return NULL; | |
4080 | if (_argo0) { | |
4081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxPyListCtrl_p."); | |
4084 | return NULL; | |
4085 | } | |
4086 | } | |
cf694132 | 4087 | { |
474c48f9 | 4088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4089 | _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 4090 | |
474c48f9 | 4091 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4092 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4093 | } _resultobj = Py_BuildValue("l",_result); |
cd096152 | 4094 | return _resultobj; |
8ab979d7 | 4095 | } |
cd096152 RD |
4096 | |
4097 | #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0)) | |
4098 | static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4099 | PyObject * _resultobj; | |
4100 | wxImageList * _result; | |
4101 | wxPyListCtrl * _arg0; | |
4102 | int _arg1; | |
4103 | PyObject * _argo0 = 0; | |
4104 | char *_kwnames[] = { "self","which", NULL }; | |
4105 | ||
4106 | self = self; | |
4107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1)) | |
4108 | return NULL; | |
4109 | if (_argo0) { | |
4110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxPyListCtrl_p."); | |
4113 | return NULL; | |
4114 | } | |
4115 | } | |
4116 | { | |
474c48f9 | 4117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4118 | _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1); |
cd096152 | 4119 | |
474c48f9 | 4120 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4121 | if (PyErr_Occurred()) return NULL; |
4122 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
8ab979d7 RD |
4123 | return _resultobj; |
4124 | } | |
4125 | ||
cd096152 RD |
4126 | #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1)) |
4127 | static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4128 | PyObject * _resultobj; |
cd096152 RD |
4129 | wxPyListCtrl * _arg0; |
4130 | wxImageList * _arg1; | |
4131 | int _arg2; | |
1d99702e | 4132 | PyObject * _argo0 = 0; |
cd096152 RD |
4133 | PyObject * _argo1 = 0; |
4134 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
8ab979d7 RD |
4135 | |
4136 | self = self; | |
cd096152 | 4137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4138 | return NULL; |
1d99702e RD |
4139 | if (_argo0) { |
4140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4143 | return NULL; |
4144 | } | |
4145 | } | |
cd096152 RD |
4146 | if (_argo1) { |
4147 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4148 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p."); | |
8ab979d7 RD |
4150 | return NULL; |
4151 | } | |
4152 | } | |
cf694132 | 4153 | { |
474c48f9 | 4154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4155 | wxListCtrl_SetImageList(_arg0,_arg1,_arg2); |
cf694132 | 4156 | |
474c48f9 | 4157 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4158 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4159 | } Py_INCREF(Py_None); |
4160 | _resultobj = Py_None; | |
8ab979d7 RD |
4161 | return _resultobj; |
4162 | } | |
4163 | ||
cd096152 RD |
4164 | #define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1)) |
4165 | static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4166 | PyObject * _resultobj; |
cd096152 RD |
4167 | wxPyListCtrl * _arg0; |
4168 | wxImageList * _arg1; | |
4169 | int _arg2; | |
1d99702e | 4170 | PyObject * _argo0 = 0; |
cd096152 RD |
4171 | PyObject * _argo1 = 0; |
4172 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
8ab979d7 RD |
4173 | |
4174 | self = self; | |
cd096152 | 4175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4176 | return NULL; |
1d99702e RD |
4177 | if (_argo0) { |
4178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4181 | return NULL; |
4182 | } | |
4183 | } | |
cd096152 RD |
4184 | if (_argo1) { |
4185 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4186 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p."); | |
2cd2fac8 | 4188 | return NULL; |
cd096152 | 4189 | } |
2cd2fac8 | 4190 | } |
cd096152 | 4191 | { |
474c48f9 | 4192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4193 | wxListCtrl_AssignImageList(_arg0,_arg1,_arg2); |
cd096152 | 4194 | |
474c48f9 | 4195 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4196 | if (PyErr_Occurred()) return NULL; |
4197 | } Py_INCREF(Py_None); | |
4198 | _resultobj = Py_None; | |
4199 | return _resultobj; | |
4200 | } | |
4201 | ||
4202 | #define wxListCtrl_IsVirtual(_swigobj) (_swigobj->IsVirtual()) | |
4203 | static PyObject *_wrap_wxListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4204 | PyObject * _resultobj; | |
4205 | bool _result; | |
4206 | wxPyListCtrl * _arg0; | |
4207 | PyObject * _argo0 = 0; | |
4208 | char *_kwnames[] = { "self", NULL }; | |
4209 | ||
4210 | self = self; | |
4211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_IsVirtual",_kwnames,&_argo0)) | |
2cd2fac8 | 4212 | return NULL; |
cd096152 RD |
4213 | if (_argo0) { |
4214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_IsVirtual. Expected _wxPyListCtrl_p."); | |
8ab979d7 | 4217 | return NULL; |
cd096152 | 4218 | } |
8ab979d7 | 4219 | } |
cf694132 | 4220 | { |
474c48f9 | 4221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4222 | _result = (bool )wxListCtrl_IsVirtual(_arg0); |
cf694132 | 4223 | |
474c48f9 | 4224 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4225 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4226 | } _resultobj = Py_BuildValue("i",_result); |
4227 | return _resultobj; | |
8ab979d7 | 4228 | } |
cd096152 RD |
4229 | |
4230 | #define wxListCtrl_RefreshItem(_swigobj,_swigarg0) (_swigobj->RefreshItem(_swigarg0)) | |
4231 | static PyObject *_wrap_wxListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4232 | PyObject * _resultobj; | |
4233 | wxPyListCtrl * _arg0; | |
4234 | long _arg1; | |
4235 | PyObject * _argo0 = 0; | |
4236 | char *_kwnames[] = { "self","item", NULL }; | |
4237 | ||
4238 | self = self; | |
4239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_RefreshItem",_kwnames,&_argo0,&_arg1)) | |
4240 | return NULL; | |
4241 | if (_argo0) { | |
4242 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4243 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItem. Expected _wxPyListCtrl_p."); | |
4245 | return NULL; | |
4246 | } | |
4247 | } | |
4248 | { | |
474c48f9 | 4249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4250 | wxListCtrl_RefreshItem(_arg0,_arg1); |
cd096152 | 4251 | |
474c48f9 | 4252 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4253 | if (PyErr_Occurred()) return NULL; |
4254 | } Py_INCREF(Py_None); | |
4255 | _resultobj = Py_None; | |
8ab979d7 RD |
4256 | return _resultobj; |
4257 | } | |
4258 | ||
cd096152 RD |
4259 | #define wxListCtrl_RefreshItems(_swigobj,_swigarg0,_swigarg1) (_swigobj->RefreshItems(_swigarg0,_swigarg1)) |
4260 | static PyObject *_wrap_wxListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4261 | PyObject * _resultobj; |
cd096152 RD |
4262 | wxPyListCtrl * _arg0; |
4263 | long _arg1; | |
4264 | long _arg2; | |
1d99702e | 4265 | PyObject * _argo0 = 0; |
cd096152 | 4266 | char *_kwnames[] = { "self","itemFrom","itemTo", NULL }; |
8ab979d7 RD |
4267 | |
4268 | self = self; | |
cd096152 | 4269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_RefreshItems",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4270 | return NULL; |
1d99702e RD |
4271 | if (_argo0) { |
4272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItems. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4275 | return NULL; |
4276 | } | |
4277 | } | |
cd096152 | 4278 | { |
474c48f9 | 4279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4280 | wxListCtrl_RefreshItems(_arg0,_arg1,_arg2); |
cd096152 | 4281 | |
474c48f9 | 4282 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4283 | if (PyErr_Occurred()) return NULL; |
4284 | } Py_INCREF(Py_None); | |
4285 | _resultobj = Py_None; | |
4286 | return _resultobj; | |
4287 | } | |
4288 | ||
4289 | #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0)) | |
4290 | static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4291 | PyObject * _resultobj; | |
4292 | bool _result; | |
4293 | wxPyListCtrl * _arg0; | |
4294 | int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT); | |
4295 | PyObject * _argo0 = 0; | |
4296 | char *_kwnames[] = { "self","flag", NULL }; | |
4297 | ||
4298 | self = self; | |
4299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1)) | |
4300 | return NULL; | |
4301 | if (_argo0) { | |
4302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4305 | return NULL; |
4306 | } | |
4307 | } | |
cf694132 | 4308 | { |
474c48f9 | 4309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4310 | _result = (bool )wxListCtrl_Arrange(_arg0,_arg1); |
cf694132 | 4311 | |
474c48f9 | 4312 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4313 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4314 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4315 | return _resultobj; |
4316 | } | |
4317 | ||
cd096152 RD |
4318 | #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0)) |
4319 | static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4320 | PyObject * _resultobj; |
cd096152 RD |
4321 | bool _result; |
4322 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4323 | long _arg1; |
1d99702e | 4324 | PyObject * _argo0 = 0; |
cd096152 | 4325 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4326 | |
4327 | self = self; | |
cd096152 | 4328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4329 | return NULL; |
1d99702e RD |
4330 | if (_argo0) { |
4331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4334 | return NULL; |
4335 | } | |
4336 | } | |
4337 | { | |
474c48f9 | 4338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4339 | _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1); |
cd096152 | 4340 | |
474c48f9 | 4341 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4342 | if (PyErr_Occurred()) return NULL; |
4343 | } _resultobj = Py_BuildValue("i",_result); | |
4344 | return _resultobj; | |
4345 | } | |
4346 | ||
4347 | #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
4348 | static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4349 | PyObject * _resultobj; | |
4350 | bool _result; | |
4351 | wxPyListCtrl * _arg0; | |
4352 | PyObject * _argo0 = 0; | |
4353 | char *_kwnames[] = { "self", NULL }; | |
4354 | ||
4355 | self = self; | |
4356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0)) | |
4357 | return NULL; | |
4358 | if (_argo0) { | |
4359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxPyListCtrl_p."); | |
2cd2fac8 | 4362 | return NULL; |
cd096152 | 4363 | } |
2cd2fac8 | 4364 | } |
cd096152 | 4365 | { |
474c48f9 | 4366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4367 | _result = (bool )wxListCtrl_DeleteAllItems(_arg0); |
cd096152 | 4368 | |
474c48f9 | 4369 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4370 | if (PyErr_Occurred()) return NULL; |
4371 | } _resultobj = Py_BuildValue("i",_result); | |
4372 | return _resultobj; | |
4373 | } | |
4374 | ||
4375 | #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0)) | |
4376 | static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4377 | PyObject * _resultobj; | |
4378 | bool _result; | |
4379 | wxPyListCtrl * _arg0; | |
4380 | int _arg1; | |
4381 | PyObject * _argo0 = 0; | |
4382 | char *_kwnames[] = { "self","col", NULL }; | |
4383 | ||
4384 | self = self; | |
4385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1)) | |
2cd2fac8 | 4386 | return NULL; |
cd096152 RD |
4387 | if (_argo0) { |
4388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxPyListCtrl_p."); | |
4391 | return NULL; | |
4392 | } | |
4393 | } | |
4394 | { | |
474c48f9 | 4395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4396 | _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1); |
cd096152 | 4397 | |
474c48f9 | 4398 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4399 | if (PyErr_Occurred()) return NULL; |
4400 | } _resultobj = Py_BuildValue("i",_result); | |
4401 | return _resultobj; | |
4402 | } | |
4403 | ||
4404 | #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns()) | |
4405 | static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4406 | PyObject * _resultobj; | |
4407 | bool _result; | |
4408 | wxPyListCtrl * _arg0; | |
4409 | PyObject * _argo0 = 0; | |
4410 | char *_kwnames[] = { "self", NULL }; | |
4411 | ||
4412 | self = self; | |
4413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0)) | |
4414 | return NULL; | |
4415 | if (_argo0) { | |
4416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxPyListCtrl_p."); | |
4419 | return NULL; | |
4420 | } | |
4421 | } | |
4422 | { | |
474c48f9 | 4423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4424 | _result = (bool )wxListCtrl_DeleteAllColumns(_arg0); |
cd096152 | 4425 | |
474c48f9 | 4426 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4427 | if (PyErr_Occurred()) return NULL; |
4428 | } _resultobj = Py_BuildValue("i",_result); | |
4429 | return _resultobj; | |
4430 | } | |
4431 | ||
4432 | #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll()) | |
4433 | static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4434 | PyObject * _resultobj; | |
4435 | wxPyListCtrl * _arg0; | |
4436 | PyObject * _argo0 = 0; | |
4437 | char *_kwnames[] = { "self", NULL }; | |
4438 | ||
4439 | self = self; | |
4440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0)) | |
8ab979d7 | 4441 | return NULL; |
cd096152 RD |
4442 | if (_argo0) { |
4443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxPyListCtrl_p."); | |
4446 | return NULL; | |
4447 | } | |
8ab979d7 | 4448 | } |
cf694132 | 4449 | { |
474c48f9 | 4450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4451 | wxListCtrl_ClearAll(_arg0); |
cf694132 | 4452 | |
474c48f9 | 4453 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4454 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4455 | } Py_INCREF(Py_None); |
4456 | _resultobj = Py_None; | |
8ab979d7 RD |
4457 | return _resultobj; |
4458 | } | |
4459 | ||
cd096152 RD |
4460 | #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) |
4461 | static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4462 | PyObject * _resultobj; |
cd096152 RD |
4463 | bool _result; |
4464 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4465 | long _arg1; |
1d99702e | 4466 | PyObject * _argo0 = 0; |
cd096152 | 4467 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4468 | |
4469 | self = self; | |
cd096152 | 4470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4471 | return NULL; |
1d99702e RD |
4472 | if (_argo0) { |
4473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4476 | return NULL; |
4477 | } | |
4478 | } | |
cf694132 | 4479 | { |
474c48f9 | 4480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4481 | _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1); |
cf694132 | 4482 | |
474c48f9 | 4483 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4484 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4485 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4486 | return _resultobj; |
4487 | } | |
4488 | ||
cd096152 RD |
4489 | #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4490 | static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4491 | PyObject * _resultobj; |
4492 | long _result; | |
cd096152 | 4493 | wxPyListCtrl * _arg0; |
8ab979d7 RD |
4494 | long _arg1; |
4495 | wxString * _arg2; | |
cd096152 | 4496 | bool _arg3 = (bool ) FALSE; |
1d99702e | 4497 | PyObject * _argo0 = 0; |
8ab979d7 | 4498 | PyObject * _obj2 = 0; |
cd096152 RD |
4499 | int tempbool3 = (int) FALSE; |
4500 | char *_kwnames[] = { "self","start","str","partial", NULL }; | |
8ab979d7 RD |
4501 | |
4502 | self = self; | |
cd096152 | 4503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
8ab979d7 | 4504 | return NULL; |
1d99702e RD |
4505 | if (_argo0) { |
4506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4509 | return NULL; |
4510 | } | |
4511 | } | |
4512 | { | |
c8bc7bb8 RD |
4513 | _arg2 = wxString_in_helper(_obj2); |
4514 | if (_arg2 == NULL) | |
8ab979d7 | 4515 | return NULL; |
8ab979d7 | 4516 | } |
cd096152 | 4517 | _arg3 = (bool ) tempbool3; |
cf694132 | 4518 | { |
474c48f9 | 4519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4520 | _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4521 | |
474c48f9 | 4522 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4523 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4524 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4525 | { |
4526 | if (_obj2) | |
4527 | delete _arg2; | |
4528 | } | |
4529 | return _resultobj; | |
4530 | } | |
4531 | ||
cd096152 RD |
4532 | #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1)) |
4533 | static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4534 | PyObject * _resultobj; |
cd096152 RD |
4535 | long _result; |
4536 | wxPyListCtrl * _arg0; | |
4537 | long _arg1; | |
4538 | long _arg2; | |
1d99702e | 4539 | PyObject * _argo0 = 0; |
cd096152 | 4540 | char *_kwnames[] = { "self","start","data", NULL }; |
8ab979d7 RD |
4541 | |
4542 | self = self; | |
cd096152 | 4543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4544 | return NULL; |
1d99702e RD |
4545 | if (_argo0) { |
4546 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4547 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4549 | return NULL; |
4550 | } | |
4551 | } | |
cf694132 | 4552 | { |
474c48f9 | 4553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4554 | _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2); |
cf694132 | 4555 | |
474c48f9 | 4556 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4557 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4558 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4559 | return _resultobj; |
4560 | } | |
4561 | ||
cd096152 RD |
4562 | #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4563 | static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4564 | PyObject * _resultobj; |
cd096152 RD |
4565 | long _result; |
4566 | wxPyListCtrl * _arg0; | |
4567 | long _arg1; | |
4568 | wxPoint * _arg2; | |
4569 | int _arg3; | |
1d99702e | 4570 | PyObject * _argo0 = 0; |
cd096152 RD |
4571 | wxPoint temp; |
4572 | PyObject * _obj2 = 0; | |
4573 | char *_kwnames[] = { "self","start","pt","direction", NULL }; | |
8ab979d7 RD |
4574 | |
4575 | self = self; | |
cd096152 | 4576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4577 | return NULL; |
1d99702e RD |
4578 | if (_argo0) { |
4579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4582 | return NULL; |
4583 | } | |
4584 | } | |
f6bcfd97 | 4585 | { |
cd096152 RD |
4586 | _arg2 = &temp; |
4587 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 4588 | return NULL; |
f6bcfd97 | 4589 | } |
cf694132 | 4590 | { |
474c48f9 | 4591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4592 | _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4593 | |
474c48f9 | 4594 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4595 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4596 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4597 | return _resultobj; |
4598 | } | |
4599 | ||
cd096152 RD |
4600 | #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
4601 | static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4602 | PyObject * _resultobj; |
cd096152 RD |
4603 | long _result; |
4604 | wxPyListCtrl * _arg0; | |
4605 | wxPoint * _arg1; | |
4606 | int * _arg2; | |
4607 | int temp; | |
1d99702e | 4608 | PyObject * _argo0 = 0; |
cd096152 RD |
4609 | wxPoint temp0; |
4610 | PyObject * _obj1 = 0; | |
4611 | char *_kwnames[] = { "self","point", NULL }; | |
8ab979d7 RD |
4612 | |
4613 | self = self; | |
cf694132 | 4614 | { |
cd096152 | 4615 | _arg2 = &temp; |
8ab979d7 | 4616 | } |
cd096152 | 4617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4618 | return NULL; |
1d99702e RD |
4619 | if (_argo0) { |
4620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4623 | return NULL; |
4624 | } | |
4625 | } | |
cf694132 | 4626 | { |
cd096152 RD |
4627 | _arg1 = &temp0; |
4628 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4629 | return NULL; |
cd096152 | 4630 | } |
cf694132 | 4631 | { |
474c48f9 | 4632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4633 | _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2); |
cf694132 | 4634 | |
474c48f9 | 4635 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4636 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4637 | } _resultobj = Py_BuildValue("l",_result); |
4638 | { | |
4639 | PyObject *o; | |
4640 | o = PyInt_FromLong((long) (*_arg2)); | |
4641 | _resultobj = t_output_helper(_resultobj, o); | |
4642 | } | |
8ab979d7 RD |
4643 | return _resultobj; |
4644 | } | |
4645 | ||
cd096152 RD |
4646 | #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0)) |
4647 | static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4648 | PyObject * _resultobj; |
cd096152 RD |
4649 | long _result; |
4650 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4651 | wxListItem * _arg1; |
1d99702e RD |
4652 | PyObject * _argo0 = 0; |
4653 | PyObject * _argo1 = 0; | |
efc5f224 | 4654 | char *_kwnames[] = { "self","info", NULL }; |
8ab979d7 RD |
4655 | |
4656 | self = self; | |
cd096152 | 4657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4658 | return NULL; |
1d99702e RD |
4659 | if (_argo0) { |
4660 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4661 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4663 | return NULL; |
4664 | } | |
4665 | } | |
1d99702e RD |
4666 | if (_argo1) { |
4667 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4668 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
cd096152 | 4669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p."); |
8ab979d7 RD |
4670 | return NULL; |
4671 | } | |
4672 | } | |
cf694132 | 4673 | { |
474c48f9 | 4674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4675 | _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1); |
cf694132 | 4676 | |
474c48f9 | 4677 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4678 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4679 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4680 | return _resultobj; |
4681 | } | |
4682 | ||
cd096152 RD |
4683 | #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) |
4684 | static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4685 | PyObject * _resultobj; |
4686 | long _result; | |
cd096152 | 4687 | wxPyListCtrl * _arg0; |
8ab979d7 | 4688 | long _arg1; |
cd096152 | 4689 | wxString * _arg2; |
1d99702e | 4690 | PyObject * _argo0 = 0; |
cd096152 RD |
4691 | PyObject * _obj2 = 0; |
4692 | char *_kwnames[] = { "self","index","label", NULL }; | |
8ab979d7 RD |
4693 | |
4694 | self = self; | |
cd096152 | 4695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4696 | return NULL; |
1d99702e RD |
4697 | if (_argo0) { |
4698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4701 | return NULL; |
4702 | } | |
4703 | } | |
4704 | { | |
c8bc7bb8 RD |
4705 | _arg2 = wxString_in_helper(_obj2); |
4706 | if (_arg2 == NULL) | |
8ab979d7 | 4707 | return NULL; |
8ab979d7 | 4708 | } |
cf694132 | 4709 | { |
474c48f9 | 4710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4711 | _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2); |
cf694132 | 4712 | |
474c48f9 | 4713 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4714 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4715 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 4716 | { |
cd096152 RD |
4717 | if (_obj2) |
4718 | delete _arg2; | |
4719 | } | |
8ab979d7 RD |
4720 | return _resultobj; |
4721 | } | |
4722 | ||
cd096152 RD |
4723 | #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) |
4724 | static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4725 | PyObject * _resultobj; |
cd096152 RD |
4726 | long _result; |
4727 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4728 | long _arg1; |
4729 | int _arg2; | |
1d99702e | 4730 | PyObject * _argo0 = 0; |
cd096152 | 4731 | char *_kwnames[] = { "self","index","imageIndex", NULL }; |
8ab979d7 RD |
4732 | |
4733 | self = self; | |
cd096152 | 4734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4735 | return NULL; |
1d99702e RD |
4736 | if (_argo0) { |
4737 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4738 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4740 | return NULL; |
4741 | } | |
4742 | } | |
cf694132 | 4743 | { |
474c48f9 | 4744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4745 | _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2); |
cf694132 | 4746 | |
474c48f9 | 4747 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4748 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4749 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4750 | return _resultobj; |
4751 | } | |
4752 | ||
cd096152 RD |
4753 | #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2)) |
4754 | static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4755 | PyObject * _resultobj; |
cd096152 RD |
4756 | long _result; |
4757 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4758 | long _arg1; |
cd096152 RD |
4759 | wxString * _arg2; |
4760 | int _arg3; | |
1d99702e | 4761 | PyObject * _argo0 = 0; |
2f90df85 | 4762 | PyObject * _obj2 = 0; |
cd096152 | 4763 | char *_kwnames[] = { "self","index","label","imageIndex", NULL }; |
8ab979d7 RD |
4764 | |
4765 | self = self; | |
cd096152 | 4766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4767 | return NULL; |
1d99702e RD |
4768 | if (_argo0) { |
4769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4772 | return NULL; |
4773 | } | |
4774 | } | |
2f90df85 | 4775 | { |
c8bc7bb8 RD |
4776 | _arg2 = wxString_in_helper(_obj2); |
4777 | if (_arg2 == NULL) | |
8ab979d7 | 4778 | return NULL; |
2f90df85 | 4779 | } |
cf694132 | 4780 | { |
474c48f9 | 4781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4782 | _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4783 | |
474c48f9 | 4784 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4785 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4786 | } _resultobj = Py_BuildValue("l",_result); |
4787 | { | |
4788 | if (_obj2) | |
4789 | delete _arg2; | |
4790 | } | |
8ab979d7 RD |
4791 | return _resultobj; |
4792 | } | |
4793 | ||
cd096152 RD |
4794 | #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) |
4795 | static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4796 | PyObject * _resultobj; |
cd096152 RD |
4797 | long _result; |
4798 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4799 | long _arg1; |
cd096152 | 4800 | wxListItem * _arg2; |
1d99702e | 4801 | PyObject * _argo0 = 0; |
cd096152 RD |
4802 | PyObject * _argo2 = 0; |
4803 | char *_kwnames[] = { "self","col","info", NULL }; | |
8ab979d7 RD |
4804 | |
4805 | self = self; | |
cd096152 | 4806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 4807 | return NULL; |
1d99702e RD |
4808 | if (_argo0) { |
4809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxPyListCtrl_p."); | |
4812 | return NULL; | |
4813 | } | |
4814 | } | |
4815 | if (_argo2) { | |
4816 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4817 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
4818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p."); | |
8ab979d7 RD |
4819 | return NULL; |
4820 | } | |
4821 | } | |
cf694132 | 4822 | { |
474c48f9 | 4823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4824 | _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2); |
cf694132 | 4825 | |
474c48f9 | 4826 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4827 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4828 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4829 | return _resultobj; |
4830 | } | |
4831 | ||
cd096152 RD |
4832 | #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4833 | static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4834 | PyObject * _resultobj; |
cd096152 RD |
4835 | long _result; |
4836 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4837 | long _arg1; |
4838 | wxString * _arg2; | |
cd096152 RD |
4839 | int _arg3 = (int ) (wxLIST_FORMAT_LEFT); |
4840 | int _arg4 = (int ) -1; | |
1d99702e | 4841 | PyObject * _argo0 = 0; |
8ab979d7 | 4842 | PyObject * _obj2 = 0; |
cd096152 | 4843 | char *_kwnames[] = { "self","col","heading","format","width", NULL }; |
8ab979d7 RD |
4844 | |
4845 | self = self; | |
cd096152 | 4846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 4847 | return NULL; |
1d99702e RD |
4848 | if (_argo0) { |
4849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4852 | return NULL; |
4853 | } | |
4854 | } | |
4855 | { | |
c8bc7bb8 RD |
4856 | _arg2 = wxString_in_helper(_obj2); |
4857 | if (_arg2 == NULL) | |
8ab979d7 | 4858 | return NULL; |
8ab979d7 | 4859 | } |
cf694132 | 4860 | { |
474c48f9 | 4861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4862 | _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4); |
cf694132 | 4863 | |
474c48f9 | 4864 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4865 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4866 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4867 | { |
4868 | if (_obj2) | |
4869 | delete _arg2; | |
4870 | } | |
4871 | return _resultobj; | |
4872 | } | |
4873 | ||
cd096152 RD |
4874 | #define wxListCtrl_SetItemCount(_swigobj,_swigarg0) (_swigobj->SetItemCount(_swigarg0)) |
4875 | static PyObject *_wrap_wxListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4876 | PyObject * _resultobj; |
cd096152 | 4877 | wxPyListCtrl * _arg0; |
8ab979d7 | 4878 | long _arg1; |
1d99702e | 4879 | PyObject * _argo0 = 0; |
cd096152 | 4880 | char *_kwnames[] = { "self","count", NULL }; |
8ab979d7 RD |
4881 | |
4882 | self = self; | |
cd096152 | 4883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetItemCount",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4884 | return NULL; |
1d99702e RD |
4885 | if (_argo0) { |
4886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4889 | return NULL; |
4890 | } | |
4891 | } | |
cf694132 | 4892 | { |
474c48f9 | 4893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4894 | wxListCtrl_SetItemCount(_arg0,_arg1); |
cf694132 | 4895 | |
474c48f9 | 4896 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4897 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4898 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4899 | _resultobj = Py_None; |
4900 | return _resultobj; | |
4901 | } | |
4902 | ||
cd096152 RD |
4903 | #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1)) |
4904 | static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4905 | PyObject * _resultobj; |
cd096152 RD |
4906 | bool _result; |
4907 | wxPyListCtrl * _arg0; | |
4908 | int _arg1; | |
4909 | int _arg2; | |
1d99702e | 4910 | PyObject * _argo0 = 0; |
cd096152 | 4911 | char *_kwnames[] = { "self","dx","dy", NULL }; |
8ab979d7 RD |
4912 | |
4913 | self = self; | |
cd096152 | 4914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4915 | return NULL; |
1d99702e RD |
4916 | if (_argo0) { |
4917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4920 | return NULL; |
4921 | } | |
4922 | } | |
cf694132 | 4923 | { |
474c48f9 | 4924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4925 | _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2); |
cf694132 | 4926 | |
474c48f9 | 4927 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4928 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4929 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4930 | return _resultobj; |
4931 | } | |
4932 | ||
cd096152 | 4933 | static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject * func) { |
dcd38683 RD |
4934 | if (!PyCallable_Check(func)) |
4935 | return FALSE; | |
f6bcfd97 | 4936 | return self->SortItems(wxPyListCtrl_SortItems, (long)func); |
dcd38683 RD |
4937 | } |
4938 | static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4939 | PyObject * _resultobj; | |
4940 | bool _result; | |
cd096152 | 4941 | wxPyListCtrl * _arg0; |
dcd38683 RD |
4942 | PyObject * _arg1; |
4943 | PyObject * _argo0 = 0; | |
4944 | PyObject * _obj1 = 0; | |
4945 | char *_kwnames[] = { "self","func", NULL }; | |
4946 | ||
4947 | self = self; | |
4948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1)) | |
4949 | return NULL; | |
4950 | if (_argo0) { | |
4951 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4952 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxPyListCtrl_p."); | |
dcd38683 RD |
4954 | return NULL; |
4955 | } | |
4956 | } | |
4957 | { | |
4958 | _arg1 = _obj1; | |
4959 | } | |
4960 | { | |
474c48f9 | 4961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4962 | _result = (bool )wxPyListCtrl_SortItems(_arg0,_arg1); |
dcd38683 | 4963 | |
474c48f9 | 4964 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4965 | if (PyErr_Occurred()) return NULL; |
dcd38683 RD |
4966 | } _resultobj = Py_BuildValue("i",_result); |
4967 | return _resultobj; | |
4968 | } | |
4969 | ||
059a841c RD |
4970 | static void *SwigwxListViewTowxPyListCtrl(void *ptr) { |
4971 | wxListView *src; | |
4972 | wxPyListCtrl *dest; | |
4973 | src = (wxListView *) ptr; | |
4974 | dest = (wxPyListCtrl *) src; | |
4975 | return (void *) dest; | |
4976 | } | |
4977 | ||
4978 | static void *SwigwxListViewTowxControl(void *ptr) { | |
4979 | wxListView *src; | |
4980 | wxControl *dest; | |
4981 | src = (wxListView *) ptr; | |
4982 | dest = (wxControl *) src; | |
4983 | return (void *) dest; | |
4984 | } | |
4985 | ||
4986 | static void *SwigwxListViewTowxWindow(void *ptr) { | |
4987 | wxListView *src; | |
4988 | wxWindow *dest; | |
4989 | src = (wxListView *) ptr; | |
4990 | dest = (wxWindow *) src; | |
4991 | return (void *) dest; | |
4992 | } | |
4993 | ||
4994 | static void *SwigwxListViewTowxEvtHandler(void *ptr) { | |
4995 | wxListView *src; | |
4996 | wxEvtHandler *dest; | |
4997 | src = (wxListView *) ptr; | |
4998 | dest = (wxEvtHandler *) src; | |
4999 | return (void *) dest; | |
5000 | } | |
5001 | ||
5002 | static void *SwigwxListViewTowxObject(void *ptr) { | |
5003 | wxListView *src; | |
5004 | wxObject *dest; | |
5005 | src = (wxListView *) ptr; | |
5006 | dest = (wxObject *) src; | |
5007 | return (void *) dest; | |
5008 | } | |
5009 | ||
5010 | #define new_wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5011 | static PyObject *_wrap_new_wxListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5012 | PyObject * _resultobj; | |
5013 | wxListView * _result; | |
5014 | wxWindow * _arg0; | |
5015 | wxWindowID _arg1 = (wxWindowID ) -1; | |
5016 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
5017 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5018 | long _arg4 = (long ) (wxLC_REPORT); | |
5019 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
5020 | wxString * _arg6 = (wxString *) &"listctrl"; | |
5021 | PyObject * _argo0 = 0; | |
5022 | wxPoint temp; | |
5023 | PyObject * _obj2 = 0; | |
5024 | wxSize temp0; | |
5025 | PyObject * _obj3 = 0; | |
5026 | PyObject * _argo5 = 0; | |
5027 | PyObject * _obj6 = 0; | |
5028 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
5029 | char _ptemp[128]; | |
5030 | ||
5031 | self = self; | |
5032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListView",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) | |
5033 | return NULL; | |
5034 | if (_argo0) { | |
5035 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5036 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListView. Expected _wxWindow_p."); | |
5038 | return NULL; | |
5039 | } | |
5040 | } | |
5041 | if (_obj2) | |
5042 | { | |
5043 | _arg2 = &temp; | |
5044 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5045 | return NULL; | |
5046 | } | |
5047 | if (_obj3) | |
5048 | { | |
5049 | _arg3 = &temp0; | |
5050 | if (! wxSize_helper(_obj3, &_arg3)) | |
5051 | return NULL; | |
5052 | } | |
5053 | if (_argo5) { | |
5054 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5055 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
5056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListView. Expected _wxValidator_p."); | |
5057 | return NULL; | |
5058 | } | |
5059 | } | |
5060 | if (_obj6) | |
5061 | { | |
c8bc7bb8 RD |
5062 | _arg6 = wxString_in_helper(_obj6); |
5063 | if (_arg6 == NULL) | |
059a841c | 5064 | return NULL; |
059a841c RD |
5065 | } |
5066 | { | |
474c48f9 | 5067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5068 | _result = (wxListView *)new_wxListView(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
059a841c | 5069 | |
474c48f9 | 5070 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5071 | if (PyErr_Occurred()) return NULL; |
5072 | } if (_result) { | |
5073 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5074 | _resultobj = Py_BuildValue("s",_ptemp); | |
5075 | } else { | |
5076 | Py_INCREF(Py_None); | |
5077 | _resultobj = Py_None; | |
5078 | } | |
5079 | { | |
5080 | if (_obj6) | |
5081 | delete _arg6; | |
5082 | } | |
5083 | return _resultobj; | |
5084 | } | |
5085 | ||
5086 | #define new_wxPreListView() (new wxListView()) | |
5087 | static PyObject *_wrap_new_wxPreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5088 | PyObject * _resultobj; | |
5089 | wxListView * _result; | |
5090 | char *_kwnames[] = { NULL }; | |
5091 | char _ptemp[128]; | |
5092 | ||
5093 | self = self; | |
5094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListView",_kwnames)) | |
5095 | return NULL; | |
5096 | { | |
474c48f9 | 5097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5098 | _result = (wxListView *)new_wxPreListView(); |
059a841c | 5099 | |
474c48f9 | 5100 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5101 | if (PyErr_Occurred()) return NULL; |
5102 | } if (_result) { | |
5103 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5104 | _resultobj = Py_BuildValue("s",_ptemp); | |
5105 | } else { | |
5106 | Py_INCREF(Py_None); | |
5107 | _resultobj = Py_None; | |
5108 | } | |
5109 | return _resultobj; | |
5110 | } | |
5111 | ||
5112 | #define wxListView_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5113 | static PyObject *_wrap_wxListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5114 | PyObject * _resultobj; | |
5115 | bool _result; | |
5116 | wxListView * _arg0; | |
5117 | wxWindow * _arg1; | |
5118 | wxWindowID _arg2 = (wxWindowID ) -1; | |
5119 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5120 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5121 | long _arg5 = (long ) (wxLC_REPORT); | |
5122 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
5123 | wxString * _arg7 = (wxString *) &"listctrl"; | |
5124 | PyObject * _argo0 = 0; | |
5125 | PyObject * _argo1 = 0; | |
5126 | wxPoint temp; | |
5127 | PyObject * _obj3 = 0; | |
5128 | wxSize temp0; | |
5129 | PyObject * _obj4 = 0; | |
5130 | PyObject * _argo6 = 0; | |
5131 | PyObject * _obj7 = 0; | |
5132 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
5133 | ||
5134 | self = self; | |
5135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListView_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
5136 | return NULL; | |
5137 | if (_argo0) { | |
5138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Create. Expected _wxListView_p."); | |
5141 | return NULL; | |
5142 | } | |
5143 | } | |
5144 | if (_argo1) { | |
5145 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5146 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListView_Create. Expected _wxWindow_p."); | |
5148 | return NULL; | |
5149 | } | |
5150 | } | |
5151 | if (_obj3) | |
5152 | { | |
5153 | _arg3 = &temp; | |
5154 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5155 | return NULL; | |
5156 | } | |
5157 | if (_obj4) | |
5158 | { | |
5159 | _arg4 = &temp0; | |
5160 | if (! wxSize_helper(_obj4, &_arg4)) | |
5161 | return NULL; | |
5162 | } | |
5163 | if (_argo6) { | |
5164 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
5165 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
5166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListView_Create. Expected _wxValidator_p."); | |
5167 | return NULL; | |
5168 | } | |
5169 | } | |
5170 | if (_obj7) | |
5171 | { | |
c8bc7bb8 RD |
5172 | _arg7 = wxString_in_helper(_obj7); |
5173 | if (_arg7 == NULL) | |
059a841c | 5174 | return NULL; |
059a841c RD |
5175 | } |
5176 | { | |
474c48f9 | 5177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5178 | _result = (bool )wxListView_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
059a841c | 5179 | |
474c48f9 | 5180 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5181 | if (PyErr_Occurred()) return NULL; |
5182 | } _resultobj = Py_BuildValue("i",_result); | |
5183 | { | |
5184 | if (_obj7) | |
5185 | delete _arg7; | |
5186 | } | |
5187 | return _resultobj; | |
5188 | } | |
5189 | ||
5190 | #define wxListView_Select(_swigobj,_swigarg0,_swigarg1) (_swigobj->Select(_swigarg0,_swigarg1)) | |
5191 | static PyObject *_wrap_wxListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5192 | PyObject * _resultobj; | |
5193 | wxListView * _arg0; | |
5194 | long _arg1; | |
5195 | bool _arg2 = (bool ) TRUE; | |
5196 | PyObject * _argo0 = 0; | |
5197 | int tempbool2 = (int) TRUE; | |
5198 | char *_kwnames[] = { "self","n","on", NULL }; | |
5199 | ||
5200 | self = self; | |
5201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListView_Select",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
5202 | return NULL; | |
5203 | if (_argo0) { | |
5204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Select. Expected _wxListView_p."); | |
5207 | return NULL; | |
5208 | } | |
5209 | } | |
5210 | _arg2 = (bool ) tempbool2; | |
5211 | { | |
474c48f9 | 5212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5213 | wxListView_Select(_arg0,_arg1,_arg2); |
059a841c | 5214 | |
474c48f9 | 5215 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5216 | if (PyErr_Occurred()) return NULL; |
5217 | } Py_INCREF(Py_None); | |
5218 | _resultobj = Py_None; | |
5219 | return _resultobj; | |
5220 | } | |
5221 | ||
5222 | #define wxListView_Focus(_swigobj,_swigarg0) (_swigobj->Focus(_swigarg0)) | |
5223 | static PyObject *_wrap_wxListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5224 | PyObject * _resultobj; | |
5225 | wxListView * _arg0; | |
5226 | long _arg1; | |
5227 | PyObject * _argo0 = 0; | |
5228 | char *_kwnames[] = { "self","index", NULL }; | |
5229 | ||
5230 | self = self; | |
5231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_Focus",_kwnames,&_argo0,&_arg1)) | |
5232 | return NULL; | |
5233 | if (_argo0) { | |
5234 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5235 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Focus. Expected _wxListView_p."); | |
5237 | return NULL; | |
5238 | } | |
5239 | } | |
5240 | { | |
474c48f9 | 5241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5242 | wxListView_Focus(_arg0,_arg1); |
059a841c | 5243 | |
474c48f9 | 5244 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5245 | if (PyErr_Occurred()) return NULL; |
5246 | } Py_INCREF(Py_None); | |
5247 | _resultobj = Py_None; | |
5248 | return _resultobj; | |
5249 | } | |
5250 | ||
5251 | #define wxListView_GetFocusedItem(_swigobj) (_swigobj->GetFocusedItem()) | |
5252 | static PyObject *_wrap_wxListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5253 | PyObject * _resultobj; | |
5254 | long _result; | |
5255 | wxListView * _arg0; | |
5256 | PyObject * _argo0 = 0; | |
5257 | char *_kwnames[] = { "self", NULL }; | |
5258 | ||
5259 | self = self; | |
5260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFocusedItem",_kwnames,&_argo0)) | |
5261 | return NULL; | |
5262 | if (_argo0) { | |
5263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFocusedItem. Expected _wxListView_p."); | |
5266 | return NULL; | |
5267 | } | |
5268 | } | |
5269 | { | |
474c48f9 | 5270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5271 | _result = (long )wxListView_GetFocusedItem(_arg0); |
059a841c | 5272 | |
474c48f9 | 5273 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5274 | if (PyErr_Occurred()) return NULL; |
5275 | } _resultobj = Py_BuildValue("l",_result); | |
5276 | return _resultobj; | |
5277 | } | |
5278 | ||
5279 | #define wxListView_GetNextSelected(_swigobj,_swigarg0) (_swigobj->GetNextSelected(_swigarg0)) | |
5280 | static PyObject *_wrap_wxListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5281 | PyObject * _resultobj; | |
5282 | long _result; | |
5283 | wxListView * _arg0; | |
5284 | long _arg1; | |
5285 | PyObject * _argo0 = 0; | |
5286 | char *_kwnames[] = { "self","item", NULL }; | |
5287 | ||
5288 | self = self; | |
5289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_GetNextSelected",_kwnames,&_argo0,&_arg1)) | |
5290 | return NULL; | |
5291 | if (_argo0) { | |
5292 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5293 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetNextSelected. Expected _wxListView_p."); | |
5295 | return NULL; | |
5296 | } | |
5297 | } | |
5298 | { | |
474c48f9 | 5299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5300 | _result = (long )wxListView_GetNextSelected(_arg0,_arg1); |
059a841c | 5301 | |
474c48f9 | 5302 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5303 | if (PyErr_Occurred()) return NULL; |
5304 | } _resultobj = Py_BuildValue("l",_result); | |
5305 | return _resultobj; | |
5306 | } | |
5307 | ||
5308 | #define wxListView_GetFirstSelected(_swigobj) (_swigobj->GetFirstSelected()) | |
5309 | static PyObject *_wrap_wxListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5310 | PyObject * _resultobj; | |
5311 | long _result; | |
5312 | wxListView * _arg0; | |
5313 | PyObject * _argo0 = 0; | |
5314 | char *_kwnames[] = { "self", NULL }; | |
5315 | ||
5316 | self = self; | |
5317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFirstSelected",_kwnames,&_argo0)) | |
5318 | return NULL; | |
5319 | if (_argo0) { | |
5320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFirstSelected. Expected _wxListView_p."); | |
5323 | return NULL; | |
5324 | } | |
5325 | } | |
5326 | { | |
474c48f9 | 5327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5328 | _result = (long )wxListView_GetFirstSelected(_arg0); |
059a841c | 5329 | |
474c48f9 | 5330 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5331 | if (PyErr_Occurred()) return NULL; |
5332 | } _resultobj = Py_BuildValue("l",_result); | |
5333 | return _resultobj; | |
5334 | } | |
5335 | ||
5336 | #define wxListView_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) | |
5337 | static PyObject *_wrap_wxListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5338 | PyObject * _resultobj; | |
5339 | bool _result; | |
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_IsSelected",_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_IsSelected. Expected _wxListView_p."); | |
5352 | return NULL; | |
5353 | } | |
5354 | } | |
5355 | { | |
474c48f9 | 5356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5357 | _result = (bool )wxListView_IsSelected(_arg0,_arg1); |
059a841c | 5358 | |
474c48f9 | 5359 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5360 | if (PyErr_Occurred()) return NULL; |
5361 | } _resultobj = Py_BuildValue("i",_result); | |
5362 | return _resultobj; | |
5363 | } | |
5364 | ||
5365 | #define wxListView_SetColumnImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnImage(_swigarg0,_swigarg1)) | |
5366 | static PyObject *_wrap_wxListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5367 | PyObject * _resultobj; | |
5368 | wxListView * _arg0; | |
5369 | int _arg1; | |
5370 | int _arg2; | |
5371 | PyObject * _argo0 = 0; | |
5372 | char *_kwnames[] = { "self","col","image", NULL }; | |
5373 | ||
5374 | self = self; | |
5375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListView_SetColumnImage",_kwnames,&_argo0,&_arg1,&_arg2)) | |
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_SetColumnImage. Expected _wxListView_p."); | |
5381 | return NULL; | |
5382 | } | |
5383 | } | |
5384 | { | |
474c48f9 | 5385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5386 | wxListView_SetColumnImage(_arg0,_arg1,_arg2); |
059a841c | 5387 | |
474c48f9 | 5388 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5389 | if (PyErr_Occurred()) return NULL; |
5390 | } Py_INCREF(Py_None); | |
5391 | _resultobj = Py_None; | |
5392 | return _resultobj; | |
5393 | } | |
5394 | ||
5395 | #define wxListView_ClearColumnImage(_swigobj,_swigarg0) (_swigobj->ClearColumnImage(_swigarg0)) | |
5396 | static PyObject *_wrap_wxListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5397 | PyObject * _resultobj; | |
5398 | wxListView * _arg0; | |
5399 | int _arg1; | |
5400 | PyObject * _argo0 = 0; | |
5401 | char *_kwnames[] = { "self","col", NULL }; | |
5402 | ||
5403 | self = self; | |
5404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListView_ClearColumnImage",_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_ClearColumnImage. Expected _wxListView_p."); | |
5410 | return NULL; | |
5411 | } | |
5412 | } | |
5413 | { | |
474c48f9 | 5414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5415 | wxListView_ClearColumnImage(_arg0,_arg1); |
059a841c | 5416 | |
474c48f9 | 5417 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5418 | if (PyErr_Occurred()) return NULL; |
5419 | } Py_INCREF(Py_None); | |
5420 | _resultobj = Py_None; | |
5421 | return _resultobj; | |
5422 | } | |
5423 | ||
aa2a5b86 RD |
5424 | #define new_wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
5425 | static PyObject *_wrap_new_wxTreeItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5426 | PyObject * _resultobj; |
aa2a5b86 RD |
5427 | wxTreeItemAttr * _result; |
5428 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5429 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5430 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5431 | wxColour temp; | |
5432 | PyObject * _obj0 = 0; | |
5433 | wxColour temp0; | |
5434 | PyObject * _obj1 = 0; | |
5435 | PyObject * _argo2 = 0; | |
5436 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
d5c9047a | 5437 | char _ptemp[128]; |
8ab979d7 RD |
5438 | |
5439 | self = self; | |
aa2a5b86 RD |
5440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTreeItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) |
5441 | return NULL; | |
5442 | if (_obj0) | |
5443 | { | |
5444 | _arg0 = &temp; | |
5445 | if (! wxColour_helper(_obj0, &_arg0)) | |
5446 | return NULL; | |
5447 | } | |
5448 | if (_obj1) | |
5449 | { | |
5450 | _arg1 = &temp0; | |
5451 | if (! wxColour_helper(_obj1, &_arg1)) | |
5452 | return NULL; | |
5453 | } | |
5454 | if (_argo2) { | |
5455 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5456 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
5457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTreeItemAttr. Expected _wxFont_p."); | |
8ab979d7 | 5458 | return NULL; |
aa2a5b86 RD |
5459 | } |
5460 | } | |
cf694132 | 5461 | { |
474c48f9 | 5462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5463 | _result = (wxTreeItemAttr *)new_wxTreeItemAttr(*_arg0,*_arg1,*_arg2); |
cf694132 | 5464 | |
474c48f9 | 5465 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5466 | if (PyErr_Occurred()) return NULL; |
1d99702e | 5467 | } if (_result) { |
aa2a5b86 | 5468 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemAttr_p"); |
1d99702e RD |
5469 | _resultobj = Py_BuildValue("s",_ptemp); |
5470 | } else { | |
5471 | Py_INCREF(Py_None); | |
5472 | _resultobj = Py_None; | |
5473 | } | |
8ab979d7 RD |
5474 | return _resultobj; |
5475 | } | |
5476 | ||
aa2a5b86 RD |
5477 | #define wxTreeItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
5478 | static PyObject *_wrap_wxTreeItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5479 | PyObject * _resultobj; |
aa2a5b86 RD |
5480 | wxTreeItemAttr * _arg0; |
5481 | wxColour * _arg1; | |
1d99702e | 5482 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
5483 | wxColour temp; |
5484 | PyObject * _obj1 = 0; | |
5485 | char *_kwnames[] = { "self","colText", NULL }; | |
8ab979d7 RD |
5486 | |
5487 | self = self; | |
aa2a5b86 | 5488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5489 | return NULL; |
1d99702e RD |
5490 | if (_argo0) { |
5491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetTextColour. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5494 | return NULL; |
5495 | } | |
5496 | } | |
aa2a5b86 RD |
5497 | { |
5498 | _arg1 = &temp; | |
5499 | if (! wxColour_helper(_obj1, &_arg1)) | |
5500 | return NULL; | |
5501 | } | |
cf694132 | 5502 | { |
474c48f9 | 5503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5504 | wxTreeItemAttr_SetTextColour(_arg0,*_arg1); |
cf694132 | 5505 | |
474c48f9 | 5506 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5507 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5508 | } Py_INCREF(Py_None); |
d5c9047a | 5509 | _resultobj = Py_None; |
8ab979d7 RD |
5510 | return _resultobj; |
5511 | } | |
5512 | ||
aa2a5b86 RD |
5513 | #define wxTreeItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
5514 | static PyObject *_wrap_wxTreeItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5515 | PyObject * _resultobj; |
aa2a5b86 RD |
5516 | wxTreeItemAttr * _arg0; |
5517 | wxColour * _arg1; | |
1d99702e | 5518 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
5519 | wxColour temp; |
5520 | PyObject * _obj1 = 0; | |
5521 | char *_kwnames[] = { "self","colBack", NULL }; | |
8ab979d7 RD |
5522 | |
5523 | self = self; | |
aa2a5b86 | 5524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5525 | return NULL; |
1d99702e RD |
5526 | if (_argo0) { |
5527 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5528 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5529 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5530 | return NULL; |
5531 | } | |
5532 | } | |
aa2a5b86 RD |
5533 | { |
5534 | _arg1 = &temp; | |
5535 | if (! wxColour_helper(_obj1, &_arg1)) | |
5536 | return NULL; | |
5537 | } | |
cf694132 | 5538 | { |
474c48f9 | 5539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5540 | wxTreeItemAttr_SetBackgroundColour(_arg0,*_arg1); |
cf694132 | 5541 | |
474c48f9 | 5542 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5543 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 RD |
5544 | } Py_INCREF(Py_None); |
5545 | _resultobj = Py_None; | |
8ab979d7 RD |
5546 | return _resultobj; |
5547 | } | |
5548 | ||
aa2a5b86 RD |
5549 | #define wxTreeItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
5550 | static PyObject *_wrap_wxTreeItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 5551 | PyObject * _resultobj; |
aa2a5b86 RD |
5552 | wxTreeItemAttr * _arg0; |
5553 | wxFont * _arg1; | |
f6bcfd97 BP |
5554 | PyObject * _argo0 = 0; |
5555 | PyObject * _argo1 = 0; | |
aa2a5b86 | 5556 | char *_kwnames[] = { "self","font", NULL }; |
f6bcfd97 BP |
5557 | |
5558 | self = self; | |
aa2a5b86 | 5559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) |
f6bcfd97 BP |
5560 | return NULL; |
5561 | if (_argo0) { | |
5562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetFont. Expected _wxTreeItemAttr_p."); | |
f6bcfd97 BP |
5565 | return NULL; |
5566 | } | |
5567 | } | |
5568 | if (_argo1) { | |
5569 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
aa2a5b86 RD |
5570 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { |
5571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemAttr_SetFont. Expected _wxFont_p."); | |
f6bcfd97 BP |
5572 | return NULL; |
5573 | } | |
5574 | } | |
5575 | { | |
474c48f9 | 5576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5577 | wxTreeItemAttr_SetFont(_arg0,*_arg1); |
f6bcfd97 | 5578 | |
474c48f9 | 5579 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5580 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 RD |
5581 | } Py_INCREF(Py_None); |
5582 | _resultobj = Py_None; | |
f6bcfd97 BP |
5583 | return _resultobj; |
5584 | } | |
5585 | ||
aa2a5b86 RD |
5586 | #define wxTreeItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) |
5587 | static PyObject *_wrap_wxTreeItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5588 | PyObject * _resultobj; |
aa2a5b86 RD |
5589 | bool _result; |
5590 | wxTreeItemAttr * _arg0; | |
5591 | PyObject * _argo0 = 0; | |
5592 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
5593 | |
5594 | self = self; | |
aa2a5b86 | 5595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasTextColour",_kwnames,&_argo0)) |
8ab979d7 | 5596 | return NULL; |
aa2a5b86 RD |
5597 | if (_argo0) { |
5598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasTextColour. Expected _wxTreeItemAttr_p."); | |
5601 | return NULL; | |
5602 | } | |
5603 | } | |
cf694132 | 5604 | { |
474c48f9 | 5605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5606 | _result = (bool )wxTreeItemAttr_HasTextColour(_arg0); |
cf694132 | 5607 | |
474c48f9 | 5608 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5609 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5610 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5611 | return _resultobj; |
5612 | } | |
5613 | ||
aa2a5b86 RD |
5614 | #define wxTreeItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) |
5615 | static PyObject *_wrap_wxTreeItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 5616 | PyObject * _resultobj; |
aa2a5b86 RD |
5617 | bool _result; |
5618 | wxTreeItemAttr * _arg0; | |
1d99702e | 5619 | PyObject * _argo0 = 0; |
efc5f224 | 5620 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
5621 | |
5622 | self = self; | |
aa2a5b86 | 5623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasBackgroundColour",_kwnames,&_argo0)) |
cf694132 | 5624 | return NULL; |
1d99702e RD |
5625 | if (_argo0) { |
5626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasBackgroundColour. Expected _wxTreeItemAttr_p."); | |
cf694132 RD |
5629 | return NULL; |
5630 | } | |
5631 | } | |
5632 | { | |
474c48f9 | 5633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5634 | _result = (bool )wxTreeItemAttr_HasBackgroundColour(_arg0); |
cf694132 | 5635 | |
474c48f9 | 5636 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5637 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5638 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
5639 | return _resultobj; |
5640 | } | |
5641 | ||
aa2a5b86 RD |
5642 | #define wxTreeItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) |
5643 | static PyObject *_wrap_wxTreeItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5644 | PyObject * _resultobj; |
aa2a5b86 RD |
5645 | bool _result; |
5646 | wxTreeItemAttr * _arg0; | |
1d99702e | 5647 | PyObject * _argo0 = 0; |
aa2a5b86 | 5648 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5649 | |
5650 | self = self; | |
aa2a5b86 | 5651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasFont",_kwnames,&_argo0)) |
8ab979d7 | 5652 | return NULL; |
1d99702e RD |
5653 | if (_argo0) { |
5654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasFont. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5657 | return NULL; |
5658 | } | |
5659 | } | |
cf694132 | 5660 | { |
474c48f9 | 5661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5662 | _result = (bool )wxTreeItemAttr_HasFont(_arg0); |
cf694132 | 5663 | |
474c48f9 | 5664 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5665 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5666 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5667 | return _resultobj; |
5668 | } | |
5669 | ||
aa2a5b86 RD |
5670 | #define wxTreeItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
5671 | static PyObject *_wrap_wxTreeItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5672 | PyObject * _resultobj; |
aa2a5b86 RD |
5673 | wxColour * _result; |
5674 | wxTreeItemAttr * _arg0; | |
1d99702e | 5675 | PyObject * _argo0 = 0; |
efc5f224 | 5676 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5677 | char _ptemp[128]; |
5678 | ||
5679 | self = self; | |
aa2a5b86 | 5680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 5681 | return NULL; |
1d99702e RD |
5682 | if (_argo0) { |
5683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetTextColour. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5686 | return NULL; |
5687 | } | |
5688 | } | |
cf694132 | 5689 | { |
474c48f9 | 5690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5691 | _result = new wxColour (wxTreeItemAttr_GetTextColour(_arg0)); |
cf694132 | 5692 | |
474c48f9 | 5693 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5694 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
5695 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5696 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
5697 | return _resultobj; |
5698 | } | |
5699 | ||
aa2a5b86 RD |
5700 | #define wxTreeItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) |
5701 | static PyObject *_wrap_wxTreeItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
630d84f2 | 5702 | PyObject * _resultobj; |
aa2a5b86 RD |
5703 | wxColour * _result; |
5704 | wxTreeItemAttr * _arg0; | |
1d99702e | 5705 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
5706 | char *_kwnames[] = { "self", NULL }; |
5707 | char _ptemp[128]; | |
5708 | ||
5709 | self = self; | |
5710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
5711 | return NULL; | |
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_GetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5716 | return NULL; | |
5717 | } | |
5718 | } | |
5719 | { | |
474c48f9 | 5720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5721 | _result = new wxColour (wxTreeItemAttr_GetBackgroundColour(_arg0)); |
aa2a5b86 | 5722 | |
474c48f9 | 5723 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 | 5724 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
5725 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5726 | _resultobj = Py_BuildValue("s",_ptemp); | |
aa2a5b86 RD |
5727 | return _resultobj; |
5728 | } | |
5729 | ||
5730 | #define wxTreeItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
5731 | static PyObject *_wrap_wxTreeItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5732 | PyObject * _resultobj; | |
5733 | wxFont * _result; | |
5734 | wxTreeItemAttr * _arg0; | |
5735 | PyObject * _argo0 = 0; | |
5736 | char *_kwnames[] = { "self", NULL }; | |
5737 | char _ptemp[128]; | |
5738 | ||
5739 | self = self; | |
5740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetFont",_kwnames,&_argo0)) | |
5741 | return NULL; | |
5742 | if (_argo0) { | |
5743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetFont. Expected _wxTreeItemAttr_p."); | |
5746 | return NULL; | |
5747 | } | |
5748 | } | |
5749 | { | |
474c48f9 | 5750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5751 | _result = new wxFont (wxTreeItemAttr_GetFont(_arg0)); |
aa2a5b86 | 5752 | |
474c48f9 | 5753 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 | 5754 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
5755 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
5756 | _resultobj = Py_BuildValue("s",_ptemp); | |
aa2a5b86 RD |
5757 | return _resultobj; |
5758 | } | |
5759 | ||
5760 | #define new_wxTreeItemId() (new wxTreeItemId()) | |
5761 | static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5762 | PyObject * _resultobj; | |
5763 | wxTreeItemId * _result; | |
5764 | char *_kwnames[] = { NULL }; | |
5765 | char _ptemp[128]; | |
5766 | ||
5767 | self = self; | |
5768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames)) | |
5769 | return NULL; | |
5770 | { | |
474c48f9 | 5771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5772 | _result = (wxTreeItemId *)new_wxTreeItemId(); |
aa2a5b86 | 5773 | |
474c48f9 | 5774 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5775 | if (PyErr_Occurred()) return NULL; |
5776 | } if (_result) { | |
5777 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
5778 | _resultobj = Py_BuildValue("s",_ptemp); | |
5779 | } else { | |
5780 | Py_INCREF(Py_None); | |
5781 | _resultobj = Py_None; | |
5782 | } | |
5783 | return _resultobj; | |
5784 | } | |
5785 | ||
5786 | #define delete_wxTreeItemId(_swigobj) (delete _swigobj) | |
5787 | static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5788 | PyObject * _resultobj; | |
5789 | wxTreeItemId * _arg0; | |
5790 | PyObject * _argo0 = 0; | |
5791 | char *_kwnames[] = { "self", NULL }; | |
5792 | ||
5793 | self = self; | |
5794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0)) | |
5795 | return NULL; | |
5796 | if (_argo0) { | |
5797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p."); | |
5800 | return NULL; | |
5801 | } | |
5802 | } | |
5803 | { | |
474c48f9 | 5804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5805 | delete_wxTreeItemId(_arg0); |
aa2a5b86 | 5806 | |
474c48f9 | 5807 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5808 | if (PyErr_Occurred()) return NULL; |
5809 | } Py_INCREF(Py_None); | |
5810 | _resultobj = Py_None; | |
5811 | return _resultobj; | |
5812 | } | |
5813 | ||
5814 | #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk()) | |
5815 | static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5816 | PyObject * _resultobj; | |
5817 | bool _result; | |
5818 | wxTreeItemId * _arg0; | |
5819 | PyObject * _argo0 = 0; | |
5820 | char *_kwnames[] = { "self", NULL }; | |
5821 | ||
5822 | self = self; | |
5823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0)) | |
5824 | return NULL; | |
5825 | if (_argo0) { | |
5826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p."); | |
5829 | return NULL; | |
5830 | } | |
5831 | } | |
5832 | { | |
474c48f9 | 5833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5834 | _result = (bool )wxTreeItemId_IsOk(_arg0); |
aa2a5b86 | 5835 | |
474c48f9 | 5836 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5837 | if (PyErr_Occurred()) return NULL; |
5838 | } _resultobj = Py_BuildValue("i",_result); | |
5839 | return _resultobj; | |
5840 | } | |
5841 | ||
5842 | static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) { | |
5843 | if (! other) return -1; | |
5844 | return *self != *other; | |
5845 | } | |
5846 | static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5847 | PyObject * _resultobj; | |
5848 | int _result; | |
5849 | wxTreeItemId * _arg0; | |
5850 | wxTreeItemId * _arg1; | |
5851 | PyObject * _argo0 = 0; | |
5852 | PyObject * _argo1 = 0; | |
5853 | char *_kwnames[] = { "self","other", NULL }; | |
5854 | ||
5855 | self = self; | |
5856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1)) | |
5857 | return NULL; | |
5858 | if (_argo0) { | |
5859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5862 | return NULL; | |
5863 | } | |
5864 | } | |
5865 | if (_argo1) { | |
5866 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5867 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
5868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5869 | return NULL; | |
5870 | } | |
5871 | } | |
5872 | { | |
474c48f9 | 5873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5874 | _result = (int )wxTreeItemId___cmp__(_arg0,_arg1); |
aa2a5b86 | 5875 | |
474c48f9 | 5876 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5877 | if (PyErr_Occurred()) return NULL; |
5878 | } _resultobj = Py_BuildValue("i",_result); | |
5879 | return _resultobj; | |
5880 | } | |
5881 | ||
5882 | static void *SwigwxPyTreeItemDataTowxObject(void *ptr) { | |
5883 | wxPyTreeItemData *src; | |
5884 | wxObject *dest; | |
5885 | src = (wxPyTreeItemData *) ptr; | |
5886 | dest = (wxObject *) src; | |
5887 | return (void *) dest; | |
5888 | } | |
5889 | ||
5890 | #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) | |
5891 | static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5892 | PyObject * _resultobj; | |
5893 | wxPyTreeItemData * _result; | |
5894 | PyObject * _arg0 = (PyObject *) NULL; | |
5895 | PyObject * _obj0 = 0; | |
5896 | char *_kwnames[] = { "obj", NULL }; | |
5897 | char _ptemp[128]; | |
5898 | ||
5899 | self = self; | |
5900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0)) | |
5901 | return NULL; | |
5902 | if (_obj0) | |
5903 | { | |
5904 | _arg0 = _obj0; | |
5905 | } | |
5906 | { | |
474c48f9 | 5907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5908 | _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0); |
aa2a5b86 | 5909 | |
474c48f9 | 5910 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5911 | if (PyErr_Occurred()) return NULL; |
5912 | } if (_result) { | |
5913 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
5914 | _resultobj = Py_BuildValue("s",_ptemp); | |
5915 | } else { | |
5916 | Py_INCREF(Py_None); | |
5917 | _resultobj = Py_None; | |
5918 | } | |
5919 | return _resultobj; | |
5920 | } | |
5921 | ||
5922 | #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData()) | |
5923 | static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5924 | PyObject * _resultobj; | |
5925 | PyObject * _result; | |
5926 | wxPyTreeItemData * _arg0; | |
5927 | PyObject * _argo0 = 0; | |
5928 | char *_kwnames[] = { "self", NULL }; | |
5929 | ||
5930 | self = self; | |
5931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0)) | |
5932 | return NULL; | |
5933 | if (_argo0) { | |
5934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
5936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p."); | |
5937 | return NULL; | |
5938 | } | |
5939 | } | |
5940 | { | |
474c48f9 | 5941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5942 | _result = (PyObject *)wxTreeItemData_GetData(_arg0); |
aa2a5b86 | 5943 | |
474c48f9 | 5944 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5945 | if (PyErr_Occurred()) return NULL; |
5946 | }{ | |
5947 | _resultobj = _result; | |
5948 | } | |
5949 | return _resultobj; | |
5950 | } | |
5951 | ||
5952 | #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
5953 | static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5954 | PyObject * _resultobj; | |
5955 | wxPyTreeItemData * _arg0; | |
5956 | PyObject * _arg1; | |
5957 | PyObject * _argo0 = 0; | |
5958 | PyObject * _obj1 = 0; | |
5959 | char *_kwnames[] = { "self","obj", NULL }; | |
5960 | ||
5961 | self = self; | |
5962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1)) | |
5963 | return NULL; | |
5964 | if (_argo0) { | |
5965 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5966 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
5967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p."); | |
5968 | return NULL; | |
5969 | } | |
5970 | } | |
5971 | { | |
5972 | _arg1 = _obj1; | |
5973 | } | |
5974 | { | |
474c48f9 | 5975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5976 | wxTreeItemData_SetData(_arg0,_arg1); |
aa2a5b86 | 5977 | |
474c48f9 | 5978 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5979 | if (PyErr_Occurred()) return NULL; |
5980 | } Py_INCREF(Py_None); | |
5981 | _resultobj = Py_None; | |
5982 | return _resultobj; | |
5983 | } | |
5984 | ||
5985 | #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId()) | |
5986 | static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5987 | PyObject * _resultobj; | |
5988 | wxTreeItemId * _result; | |
5989 | wxPyTreeItemData * _arg0; | |
5990 | PyObject * _argo0 = 0; | |
5991 | char *_kwnames[] = { "self", NULL }; | |
5992 | char _ptemp[128]; | |
5993 | ||
5994 | self = self; | |
5995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0)) | |
5996 | return NULL; | |
5997 | if (_argo0) { | |
5998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p."); | |
6001 | return NULL; | |
6002 | } | |
6003 | } | |
6004 | { | |
474c48f9 | 6005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6006 | const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0); |
aa2a5b86 RD |
6007 | _result = (wxTreeItemId *) &_result_ref; |
6008 | ||
474c48f9 | 6009 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6010 | if (PyErr_Occurred()) return NULL; |
6011 | } if (_result) { | |
6012 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
6013 | _resultobj = Py_BuildValue("s",_ptemp); | |
6014 | } else { | |
6015 | Py_INCREF(Py_None); | |
6016 | _resultobj = Py_None; | |
6017 | } | |
6018 | return _resultobj; | |
6019 | } | |
6020 | ||
6021 | #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
6022 | static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6023 | PyObject * _resultobj; | |
6024 | wxPyTreeItemData * _arg0; | |
6025 | wxTreeItemId * _arg1; | |
6026 | PyObject * _argo0 = 0; | |
6027 | PyObject * _argo1 = 0; | |
6028 | char *_kwnames[] = { "self","id", NULL }; | |
630d84f2 RD |
6029 | |
6030 | self = self; | |
efc5f224 | 6031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1)) |
630d84f2 | 6032 | return NULL; |
1d99702e RD |
6033 | if (_argo0) { |
6034 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6035 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 6036 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p."); |
630d84f2 RD |
6037 | return NULL; |
6038 | } | |
6039 | } | |
1d99702e RD |
6040 | if (_argo1) { |
6041 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6042 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
630d84f2 RD |
6043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p."); |
6044 | return NULL; | |
6045 | } | |
6046 | } | |
cf694132 | 6047 | { |
474c48f9 | 6048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6049 | wxTreeItemData_SetId(_arg0,*_arg1); |
cf694132 | 6050 | |
474c48f9 | 6051 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6052 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6053 | } Py_INCREF(Py_None); |
630d84f2 RD |
6054 | _resultobj = Py_None; |
6055 | return _resultobj; | |
6056 | } | |
6057 | ||
8bf5d46e RD |
6058 | static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) { |
6059 | wxTreeEvent *src; | |
6060 | wxNotifyEvent *dest; | |
6061 | src = (wxTreeEvent *) ptr; | |
6062 | dest = (wxNotifyEvent *) src; | |
6063 | return (void *) dest; | |
6064 | } | |
6065 | ||
8ab979d7 RD |
6066 | static void *SwigwxTreeEventTowxCommandEvent(void *ptr) { |
6067 | wxTreeEvent *src; | |
6068 | wxCommandEvent *dest; | |
6069 | src = (wxTreeEvent *) ptr; | |
6070 | dest = (wxCommandEvent *) src; | |
6071 | return (void *) dest; | |
6072 | } | |
6073 | ||
6074 | static void *SwigwxTreeEventTowxEvent(void *ptr) { | |
6075 | wxTreeEvent *src; | |
6076 | wxEvent *dest; | |
6077 | src = (wxTreeEvent *) ptr; | |
6078 | dest = (wxEvent *) src; | |
6079 | return (void *) dest; | |
6080 | } | |
6081 | ||
9df61a29 RD |
6082 | static void *SwigwxTreeEventTowxObject(void *ptr) { |
6083 | wxTreeEvent *src; | |
6084 | wxObject *dest; | |
6085 | src = (wxTreeEvent *) ptr; | |
6086 | dest = (wxObject *) src; | |
6087 | return (void *) dest; | |
6088 | } | |
6089 | ||
aa2a5b86 RD |
6090 | #define new_wxTreeEvent(_swigarg0,_swigarg1) (new wxTreeEvent(_swigarg0,_swigarg1)) |
6091 | static PyObject *_wrap_new_wxTreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6092 | PyObject * _resultobj; | |
6093 | wxTreeEvent * _result; | |
6094 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
6095 | int _arg1 = (int ) 0; | |
6096 | char *_kwnames[] = { "commandType","id", NULL }; | |
6097 | char _ptemp[128]; | |
6098 | ||
6099 | self = self; | |
6100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxTreeEvent",_kwnames,&_arg0,&_arg1)) | |
6101 | return NULL; | |
6102 | { | |
474c48f9 | 6103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6104 | _result = (wxTreeEvent *)new_wxTreeEvent(_arg0,_arg1); |
aa2a5b86 | 6105 | |
474c48f9 | 6106 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6107 | if (PyErr_Occurred()) return NULL; |
6108 | } if (_result) { | |
6109 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeEvent_p"); | |
6110 | _resultobj = Py_BuildValue("s",_ptemp); | |
6111 | } else { | |
6112 | Py_INCREF(Py_None); | |
6113 | _resultobj = Py_None; | |
6114 | } | |
6115 | return _resultobj; | |
6116 | } | |
6117 | ||
d5c9047a | 6118 | #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
efc5f224 | 6119 | static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6120 | PyObject * _resultobj; |
d5c9047a | 6121 | wxTreeItemId * _result; |
8ab979d7 | 6122 | wxTreeEvent * _arg0; |
1d99702e | 6123 | PyObject * _argo0 = 0; |
efc5f224 | 6124 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6125 | char _ptemp[128]; |
8ab979d7 RD |
6126 | |
6127 | self = self; | |
efc5f224 | 6128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 6129 | return NULL; |
1d99702e RD |
6130 | if (_argo0) { |
6131 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6132 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6134 | return NULL; |
6135 | } | |
6136 | } | |
cf694132 | 6137 | { |
474c48f9 | 6138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6139 | _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0)); |
cf694132 | 6140 | |
474c48f9 | 6141 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6142 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6143 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 6144 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6145 | return _resultobj; |
6146 | } | |
6147 | ||
d5c9047a | 6148 | #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
efc5f224 | 6149 | static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6150 | PyObject * _resultobj; |
d5c9047a | 6151 | wxTreeItemId * _result; |
8ab979d7 | 6152 | wxTreeEvent * _arg0; |
1d99702e | 6153 | PyObject * _argo0 = 0; |
efc5f224 | 6154 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6155 | char _ptemp[128]; |
6156 | ||
6157 | self = self; | |
efc5f224 | 6158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0)) |
8ab979d7 | 6159 | return NULL; |
1d99702e RD |
6160 | if (_argo0) { |
6161 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6162 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6164 | return NULL; |
6165 | } | |
6166 | } | |
cf694132 | 6167 | { |
474c48f9 | 6168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6169 | _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0)); |
cf694132 | 6170 | |
474c48f9 | 6171 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6172 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6173 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8ab979d7 RD |
6174 | _resultobj = Py_BuildValue("s",_ptemp); |
6175 | return _resultobj; | |
6176 | } | |
6177 | ||
d5c9047a | 6178 | #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
efc5f224 | 6179 | static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6180 | PyObject * _resultobj; |
d5c9047a | 6181 | wxPoint * _result; |
8ab979d7 | 6182 | wxTreeEvent * _arg0; |
1d99702e | 6183 | PyObject * _argo0 = 0; |
efc5f224 | 6184 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6185 | char _ptemp[128]; |
8ab979d7 RD |
6186 | |
6187 | self = self; | |
efc5f224 | 6188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 6189 | return NULL; |
1d99702e RD |
6190 | if (_argo0) { |
6191 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6192 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6194 | return NULL; |
6195 | } | |
6196 | } | |
cf694132 | 6197 | { |
474c48f9 | 6198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6199 | _result = new wxPoint (wxTreeEvent_GetPoint(_arg0)); |
cf694132 | 6200 | |
474c48f9 | 6201 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6202 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6203 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
d5c9047a | 6204 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6205 | return _resultobj; |
6206 | } | |
6207 | ||
65191ae8 RD |
6208 | #define wxTreeEvent_GetKeyEvent(_swigobj) (_swigobj->GetKeyEvent()) |
6209 | static PyObject *_wrap_wxTreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6210 | PyObject * _resultobj; | |
6211 | wxKeyEvent * _result; | |
6212 | wxTreeEvent * _arg0; | |
6213 | PyObject * _argo0 = 0; | |
6214 | char *_kwnames[] = { "self", NULL }; | |
6215 | char _ptemp[128]; | |
6216 | ||
6217 | self = self; | |
6218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetKeyEvent",_kwnames,&_argo0)) | |
6219 | return NULL; | |
6220 | if (_argo0) { | |
6221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetKeyEvent. Expected _wxTreeEvent_p."); | |
6224 | return NULL; | |
6225 | } | |
6226 | } | |
6227 | { | |
474c48f9 | 6228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6229 | const wxKeyEvent & _result_ref = wxTreeEvent_GetKeyEvent(_arg0); |
65191ae8 RD |
6230 | _result = (wxKeyEvent *) &_result_ref; |
6231 | ||
474c48f9 | 6232 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
6233 | if (PyErr_Occurred()) return NULL; |
6234 | } if (_result) { | |
6235 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxKeyEvent_p"); | |
6236 | _resultobj = Py_BuildValue("s",_ptemp); | |
6237 | } else { | |
6238 | Py_INCREF(Py_None); | |
6239 | _resultobj = Py_None; | |
6240 | } | |
6241 | return _resultobj; | |
6242 | } | |
6243 | ||
d5c9047a | 6244 | #define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
efc5f224 | 6245 | static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6246 | PyObject * _resultobj; |
d5c9047a | 6247 | int _result; |
8ab979d7 | 6248 | wxTreeEvent * _arg0; |
1d99702e | 6249 | PyObject * _argo0 = 0; |
efc5f224 | 6250 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6251 | |
6252 | self = self; | |
efc5f224 | 6253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 6254 | return NULL; |
1d99702e RD |
6255 | if (_argo0) { |
6256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6259 | return NULL; |
6260 | } | |
6261 | } | |
cf694132 | 6262 | { |
474c48f9 | 6263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6264 | _result = (int )wxTreeEvent_GetCode(_arg0); |
cf694132 | 6265 | |
474c48f9 | 6266 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6267 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6268 | } _resultobj = Py_BuildValue("i",_result); |
d5c9047a RD |
6269 | return _resultobj; |
6270 | } | |
6271 | ||
8bf5d46e | 6272 | #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 6273 | static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 6274 | PyObject * _resultobj; |
8bf5d46e | 6275 | wxString * _result; |
d5c9047a | 6276 | wxTreeEvent * _arg0; |
1d99702e | 6277 | PyObject * _argo0 = 0; |
efc5f224 | 6278 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
6279 | |
6280 | self = self; | |
efc5f224 | 6281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0)) |
d5c9047a | 6282 | return NULL; |
1d99702e RD |
6283 | if (_argo0) { |
6284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
8bf5d46e | 6286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p."); |
d5c9047a RD |
6287 | return NULL; |
6288 | } | |
6289 | } | |
cf694132 | 6290 | { |
474c48f9 | 6291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6292 | const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0); |
8bf5d46e | 6293 | _result = (wxString *) &_result_ref; |
cf694132 | 6294 | |
474c48f9 | 6295 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6296 | if (PyErr_Occurred()) return NULL; |
8bf5d46e | 6297 | }{ |
c8bc7bb8 RD |
6298 | #if wxUSE_UNICODE |
6299 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6300 | #else | |
eec92d76 | 6301 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6302 | #endif |
8bf5d46e | 6303 | } |
8ab979d7 RD |
6304 | return _resultobj; |
6305 | } | |
6306 | ||
f6bcfd97 BP |
6307 | static void *SwigwxPyTreeCtrlTowxControl(void *ptr) { |
6308 | wxPyTreeCtrl *src; | |
8ab979d7 | 6309 | wxControl *dest; |
f6bcfd97 | 6310 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6311 | dest = (wxControl *) src; |
6312 | return (void *) dest; | |
6313 | } | |
6314 | ||
f6bcfd97 BP |
6315 | static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) { |
6316 | wxPyTreeCtrl *src; | |
8ab979d7 | 6317 | wxWindow *dest; |
f6bcfd97 | 6318 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6319 | dest = (wxWindow *) src; |
6320 | return (void *) dest; | |
6321 | } | |
6322 | ||
f6bcfd97 BP |
6323 | static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) { |
6324 | wxPyTreeCtrl *src; | |
8ab979d7 | 6325 | wxEvtHandler *dest; |
f6bcfd97 | 6326 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6327 | dest = (wxEvtHandler *) src; |
6328 | return (void *) dest; | |
6329 | } | |
6330 | ||
9df61a29 RD |
6331 | static void *SwigwxPyTreeCtrlTowxObject(void *ptr) { |
6332 | wxPyTreeCtrl *src; | |
6333 | wxObject *dest; | |
6334 | src = (wxPyTreeCtrl *) ptr; | |
6335 | dest = (wxObject *) src; | |
6336 | return (void *) dest; | |
6337 | } | |
6338 | ||
f6bcfd97 | 6339 | #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6340 | static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6341 | PyObject * _resultobj; |
f6bcfd97 | 6342 | wxPyTreeCtrl * _result; |
8ab979d7 | 6343 | wxWindow * _arg0; |
1d99702e | 6344 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
6345 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6346 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
aa2a5b86 | 6347 | long _arg4 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); |
b68dc582 | 6348 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
6349 | char * _arg6 = (char *) "wxTreeCtrl"; |
6350 | PyObject * _argo0 = 0; | |
2f90df85 RD |
6351 | wxPoint temp; |
6352 | PyObject * _obj2 = 0; | |
6353 | wxSize temp0; | |
6354 | PyObject * _obj3 = 0; | |
1d99702e | 6355 | PyObject * _argo5 = 0; |
efc5f224 | 6356 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
6357 | char _ptemp[128]; |
6358 | ||
6359 | self = self; | |
2f90df85 | 6360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 6361 | return NULL; |
1d99702e RD |
6362 | if (_argo0) { |
6363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p."); |
6366 | return NULL; | |
6367 | } | |
6368 | } | |
2f90df85 RD |
6369 | if (_obj2) |
6370 | { | |
6371 | _arg2 = &temp; | |
6372 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6373 | return NULL; |
2f90df85 RD |
6374 | } |
6375 | if (_obj3) | |
6376 | { | |
6377 | _arg3 = &temp0; | |
6378 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6379 | return NULL; |
2f90df85 | 6380 | } |
1d99702e RD |
6381 | if (_argo5) { |
6382 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6383 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
6384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p."); |
6385 | return NULL; | |
6386 | } | |
6387 | } | |
cf694132 | 6388 | { |
474c48f9 | 6389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6390 | _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
cf694132 | 6391 | |
474c48f9 | 6392 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6393 | if (PyErr_Occurred()) return NULL; |
1d99702e | 6394 | } if (_result) { |
f6bcfd97 | 6395 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); |
1d99702e RD |
6396 | _resultobj = Py_BuildValue("s",_ptemp); |
6397 | } else { | |
6398 | Py_INCREF(Py_None); | |
6399 | _resultobj = Py_None; | |
6400 | } | |
8ab979d7 RD |
6401 | return _resultobj; |
6402 | } | |
6403 | ||
aa2a5b86 RD |
6404 | #define new_wxPreTreeCtrl() (new wxPyTreeCtrl()) |
6405 | static PyObject *_wrap_new_wxPreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 6406 | PyObject * _resultobj; |
aa2a5b86 RD |
6407 | wxPyTreeCtrl * _result; |
6408 | char *_kwnames[] = { NULL }; | |
6409 | char _ptemp[128]; | |
6410 | ||
6411 | self = self; | |
6412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTreeCtrl",_kwnames)) | |
6413 | return NULL; | |
6414 | { | |
474c48f9 | 6415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6416 | _result = (wxPyTreeCtrl *)new_wxPreTreeCtrl(); |
aa2a5b86 | 6417 | |
474c48f9 | 6418 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6419 | if (PyErr_Occurred()) return NULL; |
6420 | } if (_result) { | |
6421 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); | |
6422 | _resultobj = Py_BuildValue("s",_ptemp); | |
6423 | } else { | |
6424 | Py_INCREF(Py_None); | |
6425 | _resultobj = Py_None; | |
6426 | } | |
6427 | return _resultobj; | |
6428 | } | |
6429 | ||
6430 | #define wxTreeCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
6431 | static PyObject *_wrap_wxTreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6432 | PyObject * _resultobj; | |
6433 | bool _result; | |
f6bcfd97 | 6434 | wxPyTreeCtrl * _arg0; |
aa2a5b86 RD |
6435 | wxWindow * _arg1; |
6436 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6437 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6438 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6439 | long _arg5 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); | |
6440 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
6441 | char * _arg7 = (char *) "wxTreeCtrl"; | |
f6bcfd97 | 6442 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
6443 | PyObject * _argo1 = 0; |
6444 | wxPoint temp; | |
6445 | PyObject * _obj3 = 0; | |
6446 | wxSize temp0; | |
6447 | PyObject * _obj4 = 0; | |
6448 | PyObject * _argo6 = 0; | |
6449 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
f6bcfd97 BP |
6450 | |
6451 | self = self; | |
aa2a5b86 | 6452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxTreeCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
f6bcfd97 BP |
6453 | return NULL; |
6454 | if (_argo0) { | |
6455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
aa2a5b86 RD |
6457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Create. Expected _wxPyTreeCtrl_p."); |
6458 | return NULL; | |
6459 | } | |
6460 | } | |
6461 | if (_argo1) { | |
6462 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6463 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Create. Expected _wxWindow_p."); | |
f6bcfd97 BP |
6465 | return NULL; |
6466 | } | |
6467 | } | |
aa2a5b86 | 6468 | if (_obj3) |
f6bcfd97 | 6469 | { |
aa2a5b86 RD |
6470 | _arg3 = &temp; |
6471 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6472 | return NULL; | |
f6bcfd97 | 6473 | } |
aa2a5b86 | 6474 | if (_obj4) |
f6bcfd97 | 6475 | { |
aa2a5b86 RD |
6476 | _arg4 = &temp0; |
6477 | if (! wxSize_helper(_obj4, &_arg4)) | |
6478 | return NULL; | |
f6bcfd97 | 6479 | } |
aa2a5b86 RD |
6480 | if (_argo6) { |
6481 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6482 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
6483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_Create. Expected _wxValidator_p."); | |
6484 | return NULL; | |
6485 | } | |
6486 | } | |
f6bcfd97 | 6487 | { |
474c48f9 | 6488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6489 | _result = (bool )wxTreeCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
f6bcfd97 | 6490 | |
474c48f9 | 6491 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6492 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 6493 | } _resultobj = Py_BuildValue("i",_result); |
f6bcfd97 BP |
6494 | return _resultobj; |
6495 | } | |
6496 | ||
0220cbc1 RD |
6497 | #define wxTreeCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
6498 | static PyObject *_wrap_wxTreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c4165ad RD |
6499 | PyObject * _resultobj; |
6500 | wxPyTreeCtrl * _arg0; | |
aa2a5b86 RD |
6501 | PyObject * _arg1; |
6502 | PyObject * _arg2; | |
9c4165ad | 6503 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
6504 | PyObject * _obj1 = 0; |
6505 | PyObject * _obj2 = 0; | |
6506 | char *_kwnames[] = { "self","self","_class", NULL }; | |
9c4165ad RD |
6507 | |
6508 | self = self; | |
0220cbc1 | 6509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
9c4165ad RD |
6510 | return NULL; |
6511 | if (_argo0) { | |
6512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
0220cbc1 | 6514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setCallbackInfo. Expected _wxPyTreeCtrl_p."); |
9c4165ad RD |
6515 | return NULL; |
6516 | } | |
6517 | } | |
aa2a5b86 RD |
6518 | { |
6519 | _arg1 = _obj1; | |
6520 | } | |
6521 | { | |
6522 | _arg2 = _obj2; | |
6523 | } | |
9c4165ad | 6524 | { |
474c48f9 | 6525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6526 | wxTreeCtrl__setCallbackInfo(_arg0,_arg1,_arg2); |
9c4165ad | 6527 | |
474c48f9 | 6528 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6529 | if (PyErr_Occurred()) return NULL; |
9c4165ad RD |
6530 | } Py_INCREF(Py_None); |
6531 | _resultobj = Py_None; | |
6532 | return _resultobj; | |
6533 | } | |
6534 | ||
d5c9047a | 6535 | #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount()) |
efc5f224 | 6536 | static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6537 | PyObject * _resultobj; |
c127177f | 6538 | size_t _result; |
f6bcfd97 | 6539 | wxPyTreeCtrl * _arg0; |
1d99702e | 6540 | PyObject * _argo0 = 0; |
efc5f224 | 6541 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6542 | |
6543 | self = self; | |
efc5f224 | 6544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0)) |
8ab979d7 | 6545 | return NULL; |
1d99702e RD |
6546 | if (_argo0) { |
6547 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6548 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6550 | return NULL; |
6551 | } | |
6552 | } | |
cf694132 | 6553 | { |
474c48f9 | 6554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6555 | _result = (size_t )wxTreeCtrl_GetCount(_arg0); |
cf694132 | 6556 | |
474c48f9 | 6557 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6558 | if (PyErr_Occurred()) return NULL; |
c127177f | 6559 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6560 | return _resultobj; |
6561 | } | |
6562 | ||
d5c9047a | 6563 | #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) |
efc5f224 | 6564 | static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6565 | PyObject * _resultobj; |
d5c9047a | 6566 | unsigned int _result; |
f6bcfd97 | 6567 | wxPyTreeCtrl * _arg0; |
1d99702e | 6568 | PyObject * _argo0 = 0; |
efc5f224 | 6569 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6570 | |
6571 | self = self; | |
efc5f224 | 6572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0)) |
8ab979d7 | 6573 | return NULL; |
1d99702e RD |
6574 | if (_argo0) { |
6575 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6576 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6578 | return NULL; |
6579 | } | |
6580 | } | |
cf694132 | 6581 | { |
474c48f9 | 6582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6583 | _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0); |
cf694132 | 6584 | |
474c48f9 | 6585 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6586 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6587 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6588 | return _resultobj; |
6589 | } | |
6590 | ||
d5c9047a | 6591 | #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) |
efc5f224 | 6592 | static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6593 | PyObject * _resultobj; |
f6bcfd97 | 6594 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6595 | unsigned int _arg1; |
1d99702e | 6596 | PyObject * _argo0 = 0; |
efc5f224 | 6597 | char *_kwnames[] = { "self","indent", NULL }; |
8ab979d7 RD |
6598 | |
6599 | self = self; | |
efc5f224 | 6600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6601 | return NULL; |
1d99702e RD |
6602 | if (_argo0) { |
6603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6606 | return NULL; |
6607 | } | |
6608 | } | |
cf694132 | 6609 | { |
474c48f9 | 6610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6611 | wxTreeCtrl_SetIndent(_arg0,_arg1); |
cf694132 | 6612 | |
474c48f9 | 6613 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6614 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6615 | } Py_INCREF(Py_None); |
d5c9047a | 6616 | _resultobj = Py_None; |
8ab979d7 RD |
6617 | return _resultobj; |
6618 | } | |
6619 | ||
d5c9047a | 6620 | #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList()) |
efc5f224 | 6621 | static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6622 | PyObject * _resultobj; |
d5c9047a | 6623 | wxImageList * _result; |
f6bcfd97 | 6624 | wxPyTreeCtrl * _arg0; |
1d99702e | 6625 | PyObject * _argo0 = 0; |
efc5f224 | 6626 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6627 | |
6628 | self = self; | |
efc5f224 | 6629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0)) |
8ab979d7 | 6630 | return NULL; |
1d99702e RD |
6631 | if (_argo0) { |
6632 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6633 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6635 | return NULL; |
6636 | } | |
6637 | } | |
cf694132 | 6638 | { |
474c48f9 | 6639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6640 | _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0); |
cf694132 | 6641 | |
474c48f9 | 6642 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6643 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 6644 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
6645 | return _resultobj; |
6646 | } | |
6647 | ||
d5c9047a | 6648 | #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList()) |
efc5f224 | 6649 | static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6650 | PyObject * _resultobj; |
d5c9047a | 6651 | wxImageList * _result; |
f6bcfd97 | 6652 | wxPyTreeCtrl * _arg0; |
1d99702e | 6653 | PyObject * _argo0 = 0; |
efc5f224 | 6654 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6655 | |
6656 | self = self; | |
efc5f224 | 6657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0)) |
8ab979d7 | 6658 | return NULL; |
1d99702e RD |
6659 | if (_argo0) { |
6660 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6661 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6663 | return NULL; |
6664 | } | |
6665 | } | |
cf694132 | 6666 | { |
474c48f9 | 6667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6668 | _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0); |
cf694132 | 6669 | |
474c48f9 | 6670 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6671 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 6672 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
6673 | return _resultobj; |
6674 | } | |
6675 | ||
d5c9047a | 6676 | #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) |
efc5f224 | 6677 | static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6678 | PyObject * _resultobj; |
f6bcfd97 | 6679 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6680 | wxImageList * _arg1; |
1d99702e RD |
6681 | PyObject * _argo0 = 0; |
6682 | PyObject * _argo1 = 0; | |
efc5f224 | 6683 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
6684 | |
6685 | self = self; | |
efc5f224 | 6686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6687 | return NULL; |
1d99702e RD |
6688 | if (_argo0) { |
6689 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6690 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6691 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6692 | return NULL; |
6693 | } | |
6694 | } | |
1d99702e RD |
6695 | if (_argo1) { |
6696 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6697 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
6698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p."); |
6699 | return NULL; | |
6700 | } | |
6701 | } | |
cf694132 | 6702 | { |
474c48f9 | 6703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6704 | wxTreeCtrl_SetImageList(_arg0,_arg1); |
cf694132 | 6705 | |
474c48f9 | 6706 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6707 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6708 | } Py_INCREF(Py_None); |
d5c9047a | 6709 | _resultobj = Py_None; |
8ab979d7 RD |
6710 | return _resultobj; |
6711 | } | |
6712 | ||
d5c9047a | 6713 | #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0)) |
efc5f224 | 6714 | static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6715 | PyObject * _resultobj; |
f6bcfd97 | 6716 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6717 | wxImageList * _arg1; |
1d99702e RD |
6718 | PyObject * _argo0 = 0; |
6719 | PyObject * _argo1 = 0; | |
efc5f224 | 6720 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
6721 | |
6722 | self = self; | |
efc5f224 | 6723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6724 | return NULL; |
1d99702e RD |
6725 | if (_argo0) { |
6726 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6727 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6729 | return NULL; |
6730 | } | |
6731 | } | |
1d99702e RD |
6732 | if (_argo1) { |
6733 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6734 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
6735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p."); |
6736 | return NULL; | |
6737 | } | |
6738 | } | |
cf694132 | 6739 | { |
474c48f9 | 6740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6741 | wxTreeCtrl_SetStateImageList(_arg0,_arg1); |
cf694132 | 6742 | |
474c48f9 | 6743 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6744 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6745 | } Py_INCREF(Py_None); |
d5c9047a | 6746 | _resultobj = Py_None; |
8ab979d7 RD |
6747 | return _resultobj; |
6748 | } | |
6749 | ||
aa2a5b86 RD |
6750 | #define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0)) |
6751 | static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6752 | PyObject * _resultobj; | |
6753 | wxPyTreeCtrl * _arg0; | |
6754 | wxImageList * _arg1; | |
6755 | PyObject * _argo0 = 0; | |
6756 | PyObject * _argo1 = 0; | |
6757 | char *_kwnames[] = { "self","imageList", NULL }; | |
6758 | ||
6759 | self = self; | |
6760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1)) | |
6761 | return NULL; | |
6762 | if (_argo0) { | |
6763 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6764 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p."); | |
6766 | return NULL; | |
6767 | } | |
6768 | } | |
6769 | if (_argo1) { | |
6770 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6771 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p."); | |
6773 | return NULL; | |
6774 | } | |
6775 | } | |
6776 | { | |
474c48f9 | 6777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6778 | wxTreeCtrl_AssignImageList(_arg0,_arg1); |
aa2a5b86 | 6779 | |
474c48f9 | 6780 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6781 | if (PyErr_Occurred()) return NULL; |
6782 | } Py_INCREF(Py_None); | |
6783 | _resultobj = Py_None; | |
6784 | return _resultobj; | |
6785 | } | |
6786 | ||
6787 | #define wxTreeCtrl_AssignStateImageList(_swigobj,_swigarg0) (_swigobj->AssignStateImageList(_swigarg0)) | |
6788 | static PyObject *_wrap_wxTreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6789 | PyObject * _resultobj; | |
6790 | wxPyTreeCtrl * _arg0; | |
6791 | wxImageList * _arg1; | |
6792 | PyObject * _argo0 = 0; | |
6793 | PyObject * _argo1 = 0; | |
6794 | char *_kwnames[] = { "self","imageList", NULL }; | |
6795 | ||
6796 | self = self; | |
6797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignStateImageList",_kwnames,&_argo0,&_argo1)) | |
6798 | return NULL; | |
6799 | if (_argo0) { | |
6800 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6801 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6802 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignStateImageList. Expected _wxPyTreeCtrl_p."); | |
6803 | return NULL; | |
6804 | } | |
6805 | } | |
6806 | if (_argo1) { | |
6807 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6808 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignStateImageList. Expected _wxImageList_p."); | |
6810 | return NULL; | |
6811 | } | |
6812 | } | |
6813 | { | |
474c48f9 | 6814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6815 | wxTreeCtrl_AssignStateImageList(_arg0,_arg1); |
aa2a5b86 | 6816 | |
474c48f9 | 6817 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6818 | if (PyErr_Occurred()) return NULL; |
6819 | } Py_INCREF(Py_None); | |
6820 | _resultobj = Py_None; | |
6821 | return _resultobj; | |
6822 | } | |
6823 | ||
b1462dfa RD |
6824 | #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing()) |
6825 | static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6826 | PyObject * _resultobj; | |
6827 | unsigned int _result; | |
f6bcfd97 | 6828 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
6829 | PyObject * _argo0 = 0; |
6830 | char *_kwnames[] = { "self", NULL }; | |
6831 | ||
6832 | self = self; | |
6833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0)) | |
6834 | return NULL; | |
6835 | if (_argo0) { | |
6836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
6839 | return NULL; |
6840 | } | |
6841 | } | |
6842 | { | |
474c48f9 | 6843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6844 | _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0); |
b1462dfa | 6845 | |
474c48f9 | 6846 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6847 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
6848 | } _resultobj = Py_BuildValue("i",_result); |
6849 | return _resultobj; | |
6850 | } | |
6851 | ||
6852 | #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0)) | |
6853 | static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6854 | PyObject * _resultobj; | |
f6bcfd97 | 6855 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
6856 | unsigned int _arg1; |
6857 | PyObject * _argo0 = 0; | |
6858 | char *_kwnames[] = { "self","spacing", NULL }; | |
6859 | ||
6860 | self = self; | |
6861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1)) | |
6862 | return NULL; | |
6863 | if (_argo0) { | |
6864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
6867 | return NULL; |
6868 | } | |
6869 | } | |
6870 | { | |
474c48f9 | 6871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6872 | wxTreeCtrl_SetSpacing(_arg0,_arg1); |
b1462dfa | 6873 | |
474c48f9 | 6874 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6875 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
6876 | } Py_INCREF(Py_None); |
6877 | _resultobj = Py_None; | |
6878 | return _resultobj; | |
6879 | } | |
6880 | ||
d5c9047a | 6881 | #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
efc5f224 | 6882 | static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6883 | PyObject * _resultobj; |
d5c9047a | 6884 | wxString * _result; |
f6bcfd97 | 6885 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6886 | wxTreeItemId * _arg1; |
1d99702e RD |
6887 | PyObject * _argo0 = 0; |
6888 | PyObject * _argo1 = 0; | |
efc5f224 | 6889 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6890 | |
6891 | self = self; | |
efc5f224 | 6892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6893 | return NULL; |
1d99702e RD |
6894 | if (_argo0) { |
6895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6898 | return NULL; |
6899 | } | |
6900 | } | |
1d99702e RD |
6901 | if (_argo1) { |
6902 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6903 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p."); |
6905 | return NULL; | |
6906 | } | |
6907 | } | |
d5c9047a | 6908 | { |
474c48f9 | 6909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6910 | _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1)); |
cf694132 | 6911 | |
474c48f9 | 6912 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6913 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6914 | }{ |
c8bc7bb8 RD |
6915 | #if wxUSE_UNICODE |
6916 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6917 | #else | |
eec92d76 | 6918 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6919 | #endif |
d5c9047a RD |
6920 | } |
6921 | { | |
6922 | delete _result; | |
6923 | } | |
8ab979d7 RD |
6924 | return _resultobj; |
6925 | } | |
6926 | ||
694759cf | 6927 | #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1)) |
efc5f224 | 6928 | static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6929 | PyObject * _resultobj; |
d5c9047a | 6930 | int _result; |
f6bcfd97 | 6931 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6932 | wxTreeItemId * _arg1; |
694759cf | 6933 | wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
6934 | PyObject * _argo0 = 0; |
6935 | PyObject * _argo1 = 0; | |
694759cf | 6936 | char *_kwnames[] = { "self","item","which", NULL }; |
8ab979d7 RD |
6937 | |
6938 | self = self; | |
694759cf | 6939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 6940 | return NULL; |
1d99702e RD |
6941 | if (_argo0) { |
6942 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6943 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6945 | return NULL; |
6946 | } | |
6947 | } | |
1d99702e RD |
6948 | if (_argo1) { |
6949 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6950 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p."); |
6952 | return NULL; | |
6953 | } | |
6954 | } | |
cf694132 | 6955 | { |
474c48f9 | 6956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6957 | _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2); |
cf694132 | 6958 | |
474c48f9 | 6959 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6960 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6961 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6962 | return _resultobj; |
6963 | } | |
6964 | ||
d5c9047a | 6965 | #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0)) |
efc5f224 | 6966 | static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6967 | PyObject * _resultobj; |
d5c9047a | 6968 | int _result; |
f6bcfd97 | 6969 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6970 | wxTreeItemId * _arg1; |
1d99702e RD |
6971 | PyObject * _argo0 = 0; |
6972 | PyObject * _argo1 = 0; | |
efc5f224 | 6973 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6974 | |
6975 | self = self; | |
efc5f224 | 6976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6977 | return NULL; |
1d99702e RD |
6978 | if (_argo0) { |
6979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6982 | return NULL; |
6983 | } | |
6984 | } | |
1d99702e RD |
6985 | if (_argo1) { |
6986 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6987 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p."); |
6989 | return NULL; | |
6990 | } | |
6991 | } | |
cf694132 | 6992 | { |
474c48f9 | 6993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6994 | _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1); |
8ab979d7 | 6995 | |
474c48f9 | 6996 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6997 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6998 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6999 | return _resultobj; |
7000 | } | |
7001 | ||
d5c9047a | 7002 | #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
efc5f224 | 7003 | static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7004 | PyObject * _resultobj; |
f6bcfd97 | 7005 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7006 | wxTreeItemId * _arg1; |
7007 | wxString * _arg2; | |
1d99702e RD |
7008 | PyObject * _argo0 = 0; |
7009 | PyObject * _argo1 = 0; | |
d5c9047a | 7010 | PyObject * _obj2 = 0; |
efc5f224 | 7011 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
7012 | |
7013 | self = self; | |
efc5f224 | 7014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7015 | return NULL; |
1d99702e RD |
7016 | if (_argo0) { |
7017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7020 | return NULL; |
7021 | } | |
7022 | } | |
1d99702e RD |
7023 | if (_argo1) { |
7024 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7025 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p."); |
7027 | return NULL; | |
7028 | } | |
7029 | } | |
7030 | { | |
c8bc7bb8 RD |
7031 | _arg2 = wxString_in_helper(_obj2); |
7032 | if (_arg2 == NULL) | |
2cd2fac8 | 7033 | return NULL; |
d5c9047a | 7034 | } |
cf694132 | 7035 | { |
474c48f9 | 7036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7037 | wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2); |
cf694132 | 7038 | |
474c48f9 | 7039 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7040 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7041 | } Py_INCREF(Py_None); |
d5c9047a RD |
7042 | _resultobj = Py_None; |
7043 | { | |
7044 | if (_obj2) | |
7045 | delete _arg2; | |
7046 | } | |
8ab979d7 RD |
7047 | return _resultobj; |
7048 | } | |
7049 | ||
694759cf | 7050 | #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 7051 | static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7052 | PyObject * _resultobj; |
f6bcfd97 | 7053 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7054 | wxTreeItemId * _arg1; |
7055 | int _arg2; | |
694759cf | 7056 | wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
7057 | PyObject * _argo0 = 0; |
7058 | PyObject * _argo1 = 0; | |
694759cf | 7059 | char *_kwnames[] = { "self","item","image","which", NULL }; |
8ab979d7 RD |
7060 | |
7061 | self = self; | |
694759cf | 7062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 7063 | return NULL; |
1d99702e RD |
7064 | if (_argo0) { |
7065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7068 | return NULL; |
7069 | } | |
7070 | } | |
1d99702e RD |
7071 | if (_argo1) { |
7072 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7073 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p."); |
7075 | return NULL; | |
7076 | } | |
7077 | } | |
cf694132 | 7078 | { |
474c48f9 | 7079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7080 | wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 7081 | |
474c48f9 | 7082 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7083 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7084 | } Py_INCREF(Py_None); |
d5c9047a | 7085 | _resultobj = Py_None; |
8ab979d7 RD |
7086 | return _resultobj; |
7087 | } | |
7088 | ||
d5c9047a | 7089 | #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1)) |
efc5f224 | 7090 | static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7091 | PyObject * _resultobj; |
f6bcfd97 | 7092 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7093 | wxTreeItemId * _arg1; |
7094 | int _arg2; | |
1d99702e RD |
7095 | PyObject * _argo0 = 0; |
7096 | PyObject * _argo1 = 0; | |
efc5f224 | 7097 | char *_kwnames[] = { "self","item","image", NULL }; |
8ab979d7 RD |
7098 | |
7099 | self = self; | |
efc5f224 | 7100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 7101 | return NULL; |
1d99702e RD |
7102 | if (_argo0) { |
7103 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7104 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7106 | return NULL; |
7107 | } | |
7108 | } | |
1d99702e RD |
7109 | if (_argo1) { |
7110 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7111 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p."); |
7113 | return NULL; | |
7114 | } | |
7115 | } | |
cf694132 | 7116 | { |
474c48f9 | 7117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7118 | wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2); |
cf694132 | 7119 | |
474c48f9 | 7120 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7121 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7122 | } Py_INCREF(Py_None); |
7123 | _resultobj = Py_None; | |
7124 | return _resultobj; | |
7125 | } | |
7126 | ||
7127 | #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1)) | |
efc5f224 | 7128 | static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7129 | PyObject * _resultobj; |
f6bcfd97 | 7130 | wxPyTreeCtrl * _arg0; |
cf694132 | 7131 | wxTreeItemId * _arg1; |
1d99702e RD |
7132 | bool _arg2 = (bool ) TRUE; |
7133 | PyObject * _argo0 = 0; | |
7134 | PyObject * _argo1 = 0; | |
7135 | int tempbool2 = (int) TRUE; | |
efc5f224 | 7136 | char *_kwnames[] = { "self","item","hasChildren", NULL }; |
cf694132 RD |
7137 | |
7138 | self = self; | |
efc5f224 | 7139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2)) |
cf694132 | 7140 | return NULL; |
1d99702e RD |
7141 | if (_argo0) { |
7142 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7143 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7145 | return NULL; |
7146 | } | |
7147 | } | |
1d99702e RD |
7148 | if (_argo1) { |
7149 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7150 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p."); |
7152 | return NULL; | |
7153 | } | |
7154 | } | |
7155 | _arg2 = (bool ) tempbool2; | |
7156 | { | |
474c48f9 | 7157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7158 | wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2); |
cf694132 | 7159 | |
474c48f9 | 7160 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7161 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7162 | } Py_INCREF(Py_None); |
d5c9047a | 7163 | _resultobj = Py_None; |
8ab979d7 RD |
7164 | return _resultobj; |
7165 | } | |
7166 | ||
f6bcfd97 | 7167 | static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7168 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7169 | if (data == NULL) { | |
7170 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7171 | data->SetId(item); // set the id |
cf694132 RD |
7172 | self->SetItemData(item, data); |
7173 | } | |
7174 | return data; | |
7175 | } | |
efc5f224 | 7176 | static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
7177 | PyObject * _resultobj; |
7178 | wxPyTreeItemData * _result; | |
f6bcfd97 | 7179 | wxPyTreeCtrl * _arg0; |
cf694132 | 7180 | wxTreeItemId * _arg1; |
1d99702e RD |
7181 | PyObject * _argo0 = 0; |
7182 | PyObject * _argo1 = 0; | |
efc5f224 | 7183 | char *_kwnames[] = { "self","item", NULL }; |
cf694132 RD |
7184 | char _ptemp[128]; |
7185 | ||
7186 | self = self; | |
efc5f224 | 7187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1)) |
cf694132 | 7188 | return NULL; |
1d99702e RD |
7189 | if (_argo0) { |
7190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7191 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7193 | return NULL; |
7194 | } | |
7195 | } | |
1d99702e RD |
7196 | if (_argo1) { |
7197 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7198 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p."); |
7200 | return NULL; | |
7201 | } | |
7202 | } | |
7203 | { | |
474c48f9 | 7204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7205 | _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1); |
cf694132 | 7206 | |
474c48f9 | 7207 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7208 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7209 | } if (_result) { |
7210 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
7211 | _resultobj = Py_BuildValue("s",_ptemp); | |
7212 | } else { | |
7213 | Py_INCREF(Py_None); | |
7214 | _resultobj = Py_None; | |
7215 | } | |
cf694132 RD |
7216 | return _resultobj; |
7217 | } | |
7218 | ||
f6bcfd97 BP |
7219 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) { |
7220 | data->SetId(item); // set the id | |
7221 | self->SetItemData(item, data); | |
c368d904 | 7222 | } |
efc5f224 | 7223 | static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7224 | PyObject * _resultobj; |
f6bcfd97 | 7225 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7226 | wxTreeItemId * _arg1; |
cf694132 | 7227 | wxPyTreeItemData * _arg2; |
1d99702e RD |
7228 | PyObject * _argo0 = 0; |
7229 | PyObject * _argo1 = 0; | |
7230 | PyObject * _argo2 = 0; | |
efc5f224 | 7231 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
7232 | |
7233 | self = self; | |
efc5f224 | 7234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2)) |
8ab979d7 | 7235 | return NULL; |
1d99702e RD |
7236 | if (_argo0) { |
7237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7240 | return NULL; |
7241 | } | |
7242 | } | |
1d99702e RD |
7243 | if (_argo1) { |
7244 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7245 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p."); |
7247 | return NULL; | |
7248 | } | |
7249 | } | |
1d99702e RD |
7250 | if (_argo2) { |
7251 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7252 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) { | |
cf694132 | 7253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
7254 | return NULL; |
7255 | } | |
7256 | } | |
cf694132 | 7257 | { |
474c48f9 | 7258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7259 | wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2); |
cf694132 | 7260 | |
474c48f9 | 7261 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7262 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7263 | } Py_INCREF(Py_None); |
d5c9047a | 7264 | _resultobj = Py_None; |
8ab979d7 RD |
7265 | return _resultobj; |
7266 | } | |
7267 | ||
f6bcfd97 | 7268 | static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7269 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7270 | if (data == NULL) { | |
7271 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7272 | data->SetId(item); // set the id |
cf694132 RD |
7273 | self->SetItemData(item, data); |
7274 | } | |
7275 | return data->GetData(); | |
c368d904 | 7276 | } |
efc5f224 | 7277 | static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 7278 | PyObject * _resultobj; |
cf694132 | 7279 | PyObject * _result; |
f6bcfd97 | 7280 | wxPyTreeCtrl * _arg0; |
08127323 | 7281 | wxTreeItemId * _arg1; |
1d99702e RD |
7282 | PyObject * _argo0 = 0; |
7283 | PyObject * _argo1 = 0; | |
efc5f224 | 7284 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
7285 | |
7286 | self = self; | |
efc5f224 | 7287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1)) |
08127323 | 7288 | return NULL; |
1d99702e RD |
7289 | if (_argo0) { |
7290 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7291 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
7293 | return NULL; |
7294 | } | |
7295 | } | |
1d99702e RD |
7296 | if (_argo1) { |
7297 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7298 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 | 7299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p."); |
08127323 RD |
7300 | return NULL; |
7301 | } | |
7302 | } | |
cf694132 | 7303 | { |
474c48f9 | 7304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7305 | _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1); |
cf694132 | 7306 | |
474c48f9 | 7307 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7308 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7309 | }{ |
7310 | _resultobj = _result; | |
7311 | } | |
7312 | return _resultobj; | |
7313 | } | |
7314 | ||
f6bcfd97 | 7315 | static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) { |
cf694132 RD |
7316 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7317 | if (data == NULL) { | |
7318 | data = new wxPyTreeItemData(obj); | |
f6bcfd97 | 7319 | data->SetId(item); // set the id |
cf694132 RD |
7320 | self->SetItemData(item, data); |
7321 | } else | |
7322 | data->SetData(obj); | |
c368d904 | 7323 | } |
efc5f224 | 7324 | static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7325 | PyObject * _resultobj; |
f6bcfd97 | 7326 | wxPyTreeCtrl * _arg0; |
cf694132 RD |
7327 | wxTreeItemId * _arg1; |
7328 | PyObject * _arg2; | |
1d99702e RD |
7329 | PyObject * _argo0 = 0; |
7330 | PyObject * _argo1 = 0; | |
cf694132 | 7331 | PyObject * _obj2 = 0; |
efc5f224 | 7332 | char *_kwnames[] = { "self","item","obj", NULL }; |
cf694132 RD |
7333 | |
7334 | self = self; | |
efc5f224 | 7335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2)) |
cf694132 | 7336 | return NULL; |
1d99702e RD |
7337 | if (_argo0) { |
7338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7341 | return NULL; |
7342 | } | |
7343 | } | |
1d99702e RD |
7344 | if (_argo1) { |
7345 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7346 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p."); |
7348 | return NULL; | |
7349 | } | |
7350 | } | |
7351 | { | |
7352 | _arg2 = _obj2; | |
7353 | } | |
7354 | { | |
474c48f9 | 7355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7356 | wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2); |
cf694132 | 7357 | |
474c48f9 | 7358 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7359 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7360 | } Py_INCREF(Py_None); |
08127323 RD |
7361 | _resultobj = Py_None; |
7362 | return _resultobj; | |
7363 | } | |
7364 | ||
d5c9047a | 7365 | #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) |
efc5f224 | 7366 | static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7367 | PyObject * _resultobj; |
d5c9047a | 7368 | bool _result; |
f6bcfd97 | 7369 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7370 | wxTreeItemId * _arg1; |
1d99702e RD |
7371 | PyObject * _argo0 = 0; |
7372 | PyObject * _argo1 = 0; | |
efc5f224 | 7373 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7374 | |
7375 | self = self; | |
efc5f224 | 7376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7377 | return NULL; |
1d99702e RD |
7378 | if (_argo0) { |
7379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7382 | return NULL; |
7383 | } | |
7384 | } | |
1d99702e RD |
7385 | if (_argo1) { |
7386 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7387 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p."); |
7389 | return NULL; | |
7390 | } | |
7391 | } | |
cf694132 | 7392 | { |
474c48f9 | 7393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7394 | _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1); |
cf694132 | 7395 | |
474c48f9 | 7396 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7397 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7398 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7399 | return _resultobj; |
7400 | } | |
7401 | ||
d5c9047a | 7402 | #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0)) |
efc5f224 | 7403 | static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7404 | PyObject * _resultobj; |
d5c9047a | 7405 | bool _result; |
f6bcfd97 | 7406 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7407 | wxTreeItemId * _arg1; |
1d99702e RD |
7408 | PyObject * _argo0 = 0; |
7409 | PyObject * _argo1 = 0; | |
efc5f224 | 7410 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7411 | |
7412 | self = self; | |
efc5f224 | 7413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7414 | return NULL; |
1d99702e RD |
7415 | if (_argo0) { |
7416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7419 | return NULL; |
7420 | } | |
7421 | } | |
1d99702e RD |
7422 | if (_argo1) { |
7423 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7424 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p."); |
7426 | return NULL; | |
7427 | } | |
7428 | } | |
cf694132 | 7429 | { |
474c48f9 | 7430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7431 | _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1); |
cf694132 | 7432 | |
474c48f9 | 7433 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7434 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7435 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7436 | return _resultobj; |
7437 | } | |
7438 | ||
d5c9047a | 7439 | #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0)) |
efc5f224 | 7440 | static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7441 | PyObject * _resultobj; |
d5c9047a | 7442 | bool _result; |
f6bcfd97 | 7443 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7444 | wxTreeItemId * _arg1; |
1d99702e RD |
7445 | PyObject * _argo0 = 0; |
7446 | PyObject * _argo1 = 0; | |
efc5f224 | 7447 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7448 | |
7449 | self = self; | |
efc5f224 | 7450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7451 | return NULL; |
1d99702e RD |
7452 | if (_argo0) { |
7453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7456 | return NULL; |
7457 | } | |
7458 | } | |
1d99702e RD |
7459 | if (_argo1) { |
7460 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7461 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p."); |
7463 | return NULL; | |
7464 | } | |
7465 | } | |
cf694132 | 7466 | { |
474c48f9 | 7467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7468 | _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1); |
cf694132 | 7469 | |
474c48f9 | 7470 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7471 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7472 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7473 | return _resultobj; |
7474 | } | |
7475 | ||
d5c9047a | 7476 | #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
efc5f224 | 7477 | static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7478 | PyObject * _resultobj; |
d5c9047a | 7479 | bool _result; |
f6bcfd97 | 7480 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7481 | wxTreeItemId * _arg1; |
1d99702e RD |
7482 | PyObject * _argo0 = 0; |
7483 | PyObject * _argo1 = 0; | |
efc5f224 | 7484 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7485 | |
7486 | self = self; | |
efc5f224 | 7487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7488 | return NULL; |
1d99702e RD |
7489 | if (_argo0) { |
7490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7493 | return NULL; |
7494 | } | |
7495 | } | |
1d99702e RD |
7496 | if (_argo1) { |
7497 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7498 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p."); |
7500 | return NULL; | |
7501 | } | |
7502 | } | |
cf694132 | 7503 | { |
474c48f9 | 7504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7505 | _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1); |
cf694132 | 7506 | |
474c48f9 | 7507 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7508 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7509 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7510 | return _resultobj; |
7511 | } | |
7512 | ||
7513 | #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem()) | |
efc5f224 | 7514 | static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7515 | PyObject * _resultobj; |
d5c9047a | 7516 | wxTreeItemId * _result; |
f6bcfd97 | 7517 | wxPyTreeCtrl * _arg0; |
1d99702e | 7518 | PyObject * _argo0 = 0; |
efc5f224 | 7519 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7520 | char _ptemp[128]; |
8ab979d7 RD |
7521 | |
7522 | self = self; | |
efc5f224 | 7523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0)) |
8ab979d7 | 7524 | return NULL; |
1d99702e RD |
7525 | if (_argo0) { |
7526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7529 | return NULL; |
7530 | } | |
7531 | } | |
cf694132 | 7532 | { |
474c48f9 | 7533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7534 | _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0)); |
cf694132 | 7535 | |
474c48f9 | 7536 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7537 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7538 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7539 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7540 | return _resultobj; |
7541 | } | |
7542 | ||
7543 | #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 7544 | static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7545 | PyObject * _resultobj; |
d5c9047a | 7546 | wxTreeItemId * _result; |
f6bcfd97 | 7547 | wxPyTreeCtrl * _arg0; |
1d99702e | 7548 | PyObject * _argo0 = 0; |
efc5f224 | 7549 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7550 | char _ptemp[128]; |
8ab979d7 RD |
7551 | |
7552 | self = self; | |
efc5f224 | 7553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 7554 | return NULL; |
1d99702e RD |
7555 | if (_argo0) { |
7556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7559 | return NULL; |
7560 | } | |
7561 | } | |
cf694132 | 7562 | { |
474c48f9 | 7563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7564 | _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0)); |
cf694132 | 7565 | |
474c48f9 | 7566 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7567 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7568 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7569 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7570 | return _resultobj; |
7571 | } | |
7572 | ||
eb715945 RD |
7573 | #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0)) |
7574 | static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7575 | PyObject * _resultobj; |
d5c9047a | 7576 | wxTreeItemId * _result; |
f6bcfd97 | 7577 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7578 | wxTreeItemId * _arg1; |
1d99702e RD |
7579 | PyObject * _argo0 = 0; |
7580 | PyObject * _argo1 = 0; | |
efc5f224 | 7581 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7582 | char _ptemp[128]; |
8ab979d7 RD |
7583 | |
7584 | self = self; | |
eb715945 | 7585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7586 | return NULL; |
1d99702e RD |
7587 | if (_argo0) { |
7588 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7589 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7591 | return NULL; |
7592 | } | |
7593 | } | |
1d99702e RD |
7594 | if (_argo1) { |
7595 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7596 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
eb715945 | 7597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7598 | return NULL; |
7599 | } | |
7600 | } | |
cf694132 | 7601 | { |
474c48f9 | 7602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7603 | _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1)); |
cf694132 | 7604 | |
474c48f9 | 7605 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7606 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7607 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7608 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7609 | return _resultobj; |
7610 | } | |
7611 | ||
f6bcfd97 | 7612 | static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) { |
474c48f9 | 7613 | wxPyBeginBlockThreads(); |
d426c97e RD |
7614 | PyObject* rval = PyList_New(0); |
7615 | wxArrayTreeItemIds array; | |
7616 | size_t num, x; | |
7617 | num = self->GetSelections(array); | |
7618 | for (x=0; x < num; x++) { | |
c368d904 RD |
7619 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); |
7620 | PyObject* item = wxPyConstructObject((void*)tii, "wxTreeItemId", TRUE); | |
d426c97e RD |
7621 | PyList_Append(rval, item); |
7622 | } | |
474c48f9 | 7623 | wxPyEndBlockThreads(); |
d426c97e RD |
7624 | return rval; |
7625 | } | |
7626 | static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7627 | PyObject * _resultobj; | |
7628 | PyObject * _result; | |
f6bcfd97 | 7629 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
7630 | PyObject * _argo0 = 0; |
7631 | char *_kwnames[] = { "self", NULL }; | |
7632 | ||
7633 | self = self; | |
7634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0)) | |
7635 | return NULL; | |
7636 | if (_argo0) { | |
7637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
7640 | return NULL; |
7641 | } | |
7642 | } | |
7643 | { | |
474c48f9 | 7644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7645 | _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0); |
d426c97e | 7646 | |
474c48f9 | 7647 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7648 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
7649 | }{ |
7650 | _resultobj = _result; | |
7651 | } | |
7652 | return _resultobj; | |
7653 | } | |
7654 | ||
bb0054cd | 7655 | #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1)) |
efc5f224 | 7656 | static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
7657 | PyObject * _resultobj; |
7658 | size_t _result; | |
f6bcfd97 | 7659 | wxPyTreeCtrl * _arg0; |
bb0054cd | 7660 | wxTreeItemId * _arg1; |
1d99702e RD |
7661 | bool _arg2 = (bool ) TRUE; |
7662 | PyObject * _argo0 = 0; | |
7663 | PyObject * _argo1 = 0; | |
7664 | int tempbool2 = (int) TRUE; | |
efc5f224 | 7665 | char *_kwnames[] = { "self","item","recursively", NULL }; |
bb0054cd RD |
7666 | |
7667 | self = self; | |
efc5f224 | 7668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2)) |
bb0054cd | 7669 | return NULL; |
1d99702e RD |
7670 | if (_argo0) { |
7671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p."); | |
bb0054cd RD |
7674 | return NULL; |
7675 | } | |
7676 | } | |
1d99702e RD |
7677 | if (_argo1) { |
7678 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7679 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
bb0054cd RD |
7680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p."); |
7681 | return NULL; | |
7682 | } | |
7683 | } | |
7684 | _arg2 = (bool ) tempbool2; | |
7685 | { | |
474c48f9 | 7686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7687 | _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2); |
bb0054cd | 7688 | |
474c48f9 | 7689 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7690 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
7691 | } _resultobj = Py_BuildValue("i",_result); |
7692 | return _resultobj; | |
7693 | } | |
7694 | ||
d5c9047a | 7695 | #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1)) |
efc5f224 | 7696 | static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7697 | PyObject * _resultobj; |
d5c9047a | 7698 | wxTreeItemId * _result; |
f6bcfd97 | 7699 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7700 | wxTreeItemId * _arg1; |
7701 | long * _arg2; | |
1d99702e RD |
7702 | PyObject * _argo0 = 0; |
7703 | PyObject * _argo1 = 0; | |
d5c9047a RD |
7704 | long temp; |
7705 | PyObject * _obj2 = 0; | |
efc5f224 | 7706 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 7707 | char _ptemp[128]; |
8ab979d7 RD |
7708 | |
7709 | self = self; | |
efc5f224 | 7710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7711 | return NULL; |
1d99702e RD |
7712 | if (_argo0) { |
7713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7716 | return NULL; |
7717 | } | |
7718 | } | |
1d99702e RD |
7719 | if (_argo1) { |
7720 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7721 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7723 | return NULL; |
7724 | } | |
7725 | } | |
d5c9047a RD |
7726 | { |
7727 | temp = (long) PyInt_AsLong(_obj2); | |
7728 | _arg2 = &temp; | |
7729 | } | |
cf694132 | 7730 | { |
474c48f9 | 7731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7732 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); |
cf694132 | 7733 | |
474c48f9 | 7734 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7735 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7736 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
7737 | _resultobj = Py_BuildValue("s",_ptemp); |
7738 | { | |
7739 | PyObject *o; | |
7740 | o = PyInt_FromLong((long) (*_arg2)); | |
7741 | _resultobj = t_output_helper(_resultobj, o); | |
7742 | } | |
8ab979d7 RD |
7743 | return _resultobj; |
7744 | } | |
7745 | ||
d5c9047a | 7746 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) |
efc5f224 | 7747 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7748 | PyObject * _resultobj; |
d5c9047a | 7749 | wxTreeItemId * _result; |
f6bcfd97 | 7750 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7751 | wxTreeItemId * _arg1; |
7752 | long * _arg2; | |
1d99702e RD |
7753 | PyObject * _argo0 = 0; |
7754 | PyObject * _argo1 = 0; | |
d5c9047a | 7755 | long temp; |
8ab979d7 | 7756 | PyObject * _obj2 = 0; |
efc5f224 | 7757 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 7758 | char _ptemp[128]; |
8ab979d7 RD |
7759 | |
7760 | self = self; | |
efc5f224 | 7761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7762 | return NULL; |
1d99702e RD |
7763 | if (_argo0) { |
7764 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7765 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7766 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7767 | return NULL; |
7768 | } | |
7769 | } | |
1d99702e RD |
7770 | if (_argo1) { |
7771 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7772 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); |
8ab979d7 | 7774 | return NULL; |
d5c9047a | 7775 | } |
8ab979d7 | 7776 | } |
d5c9047a RD |
7777 | { |
7778 | temp = (long) PyInt_AsLong(_obj2); | |
7779 | _arg2 = &temp; | |
8ab979d7 | 7780 | } |
cf694132 | 7781 | { |
474c48f9 | 7782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7783 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); |
cf694132 | 7784 | |
474c48f9 | 7785 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7786 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7787 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7788 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 | 7789 | { |
d5c9047a RD |
7790 | PyObject *o; |
7791 | o = PyInt_FromLong((long) (*_arg2)); | |
7792 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
7793 | } |
7794 | return _resultobj; | |
7795 | } | |
7796 | ||
d5c9047a | 7797 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) |
efc5f224 | 7798 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7799 | PyObject * _resultobj; |
d5c9047a | 7800 | wxTreeItemId * _result; |
f6bcfd97 | 7801 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7802 | wxTreeItemId * _arg1; |
1d99702e RD |
7803 | PyObject * _argo0 = 0; |
7804 | PyObject * _argo1 = 0; | |
efc5f224 | 7805 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7806 | char _ptemp[128]; |
8ab979d7 RD |
7807 | |
7808 | self = self; | |
efc5f224 | 7809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7810 | return NULL; |
1d99702e RD |
7811 | if (_argo0) { |
7812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7815 | return NULL; |
7816 | } | |
7817 | } | |
1d99702e RD |
7818 | if (_argo1) { |
7819 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7820 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); |
7822 | return NULL; | |
7823 | } | |
7824 | } | |
cf694132 | 7825 | { |
474c48f9 | 7826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7827 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); |
cf694132 | 7828 | |
474c48f9 | 7829 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7830 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7831 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7832 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7833 | return _resultobj; |
7834 | } | |
7835 | ||
d5c9047a | 7836 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) |
efc5f224 | 7837 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7838 | PyObject * _resultobj; |
d5c9047a | 7839 | wxTreeItemId * _result; |
f6bcfd97 | 7840 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7841 | wxTreeItemId * _arg1; |
1d99702e RD |
7842 | PyObject * _argo0 = 0; |
7843 | PyObject * _argo1 = 0; | |
efc5f224 | 7844 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7845 | char _ptemp[128]; |
8ab979d7 RD |
7846 | |
7847 | self = self; | |
efc5f224 | 7848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7849 | return NULL; |
1d99702e RD |
7850 | if (_argo0) { |
7851 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7852 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7854 | return NULL; |
7855 | } | |
7856 | } | |
1d99702e RD |
7857 | if (_argo1) { |
7858 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7859 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); |
7861 | return NULL; | |
7862 | } | |
7863 | } | |
cf694132 | 7864 | { |
474c48f9 | 7865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7866 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); |
cf694132 | 7867 | |
474c48f9 | 7868 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7869 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7870 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7871 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7872 | return _resultobj; |
7873 | } | |
7874 | ||
d5c9047a | 7875 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) |
efc5f224 | 7876 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7877 | PyObject * _resultobj; |
d5c9047a | 7878 | wxTreeItemId * _result; |
f6bcfd97 | 7879 | wxPyTreeCtrl * _arg0; |
1d99702e | 7880 | PyObject * _argo0 = 0; |
efc5f224 | 7881 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7882 | char _ptemp[128]; |
8ab979d7 RD |
7883 | |
7884 | self = self; | |
efc5f224 | 7885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) |
8ab979d7 | 7886 | return NULL; |
1d99702e RD |
7887 | if (_argo0) { |
7888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7891 | return NULL; |
7892 | } | |
7893 | } | |
cf694132 | 7894 | { |
474c48f9 | 7895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7896 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); |
cf694132 | 7897 | |
474c48f9 | 7898 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7899 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7900 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7901 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7902 | return _resultobj; |
7903 | } | |
7904 | ||
d5c9047a | 7905 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) |
efc5f224 | 7906 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7907 | PyObject * _resultobj; |
d5c9047a | 7908 | wxTreeItemId * _result; |
f6bcfd97 | 7909 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7910 | wxTreeItemId * _arg1; |
1d99702e RD |
7911 | PyObject * _argo0 = 0; |
7912 | PyObject * _argo1 = 0; | |
efc5f224 | 7913 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7914 | char _ptemp[128]; |
8ab979d7 RD |
7915 | |
7916 | self = self; | |
efc5f224 | 7917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7918 | return NULL; |
1d99702e RD |
7919 | if (_argo0) { |
7920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7923 | return NULL; |
7924 | } | |
7925 | } | |
1d99702e RD |
7926 | if (_argo1) { |
7927 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7928 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7929 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); |
7930 | return NULL; | |
7931 | } | |
7932 | } | |
cf694132 | 7933 | { |
474c48f9 | 7934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7935 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); |
cf694132 | 7936 | |
474c48f9 | 7937 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7938 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7939 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7940 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7941 | return _resultobj; |
7942 | } | |
7943 | ||
d5c9047a | 7944 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) |
efc5f224 | 7945 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7946 | PyObject * _resultobj; |
d5c9047a | 7947 | wxTreeItemId * _result; |
f6bcfd97 | 7948 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7949 | wxTreeItemId * _arg1; |
1d99702e RD |
7950 | PyObject * _argo0 = 0; |
7951 | PyObject * _argo1 = 0; | |
efc5f224 | 7952 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7953 | char _ptemp[128]; |
8ab979d7 RD |
7954 | |
7955 | self = self; | |
efc5f224 | 7956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7957 | return NULL; |
1d99702e RD |
7958 | if (_argo0) { |
7959 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7960 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7962 | return NULL; |
7963 | } | |
7964 | } | |
1d99702e RD |
7965 | if (_argo1) { |
7966 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7967 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7969 | return NULL; |
7970 | } | |
7971 | } | |
cf694132 | 7972 | { |
474c48f9 | 7973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7974 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); |
cf694132 | 7975 | |
474c48f9 | 7976 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7977 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7978 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7979 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7980 | return _resultobj; |
7981 | } | |
7982 | ||
d426c97e RD |
7983 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) |
7984 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7985 | PyObject * _resultobj; | |
7986 | wxTreeItemId * _result; | |
f6bcfd97 | 7987 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
7988 | wxTreeItemId * _arg1; |
7989 | PyObject * _argo0 = 0; | |
7990 | PyObject * _argo1 = 0; | |
7991 | char *_kwnames[] = { "self","item", NULL }; | |
7992 | char _ptemp[128]; | |
7993 | ||
7994 | self = self; | |
7995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
7996 | return NULL; | |
7997 | if (_argo0) { | |
7998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8001 | return NULL; |
8002 | } | |
8003 | } | |
8004 | if (_argo1) { | |
8005 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8006 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); | |
8008 | return NULL; | |
8009 | } | |
8010 | } | |
8011 | { | |
474c48f9 | 8012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8013 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); |
d426c97e | 8014 | |
474c48f9 | 8015 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8016 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8017 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8018 | _resultobj = Py_BuildValue("s",_ptemp); | |
8019 | return _resultobj; | |
8020 | } | |
8021 | ||
d5c9047a | 8022 | #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 8023 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8024 | PyObject * _resultobj; |
d5c9047a | 8025 | wxTreeItemId * _result; |
f6bcfd97 | 8026 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8027 | wxString * _arg1; |
1d99702e RD |
8028 | int _arg2 = (int ) -1; |
8029 | int _arg3 = (int ) -1; | |
8030 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
8031 | PyObject * _argo0 = 0; | |
d5c9047a | 8032 | PyObject * _obj1 = 0; |
1d99702e | 8033 | PyObject * _argo4 = 0; |
efc5f224 | 8034 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; |
d5c9047a | 8035 | char _ptemp[128]; |
8ab979d7 RD |
8036 | |
8037 | self = self; | |
efc5f224 | 8038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) |
8ab979d7 | 8039 | return NULL; |
1d99702e RD |
8040 | if (_argo0) { |
8041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8044 | return NULL; |
8045 | } | |
8046 | } | |
d5c9047a | 8047 | { |
c8bc7bb8 RD |
8048 | _arg1 = wxString_in_helper(_obj1); |
8049 | if (_arg1 == NULL) | |
2cd2fac8 | 8050 | return NULL; |
d5c9047a | 8051 | } |
1d99702e RD |
8052 | if (_argo4) { |
8053 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
8054 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
cf694132 | 8055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
8056 | return NULL; |
8057 | } | |
8058 | } | |
cf694132 | 8059 | { |
474c48f9 | 8060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8061 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); |
cf694132 | 8062 | |
474c48f9 | 8063 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8064 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8065 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8066 | _resultobj = Py_BuildValue("s",_ptemp); |
8067 | { | |
8068 | if (_obj1) | |
8069 | delete _arg1; | |
8070 | } | |
8ab979d7 RD |
8071 | return _resultobj; |
8072 | } | |
8073 | ||
d5c9047a | 8074 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8075 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8076 | PyObject * _resultobj; |
d5c9047a | 8077 | wxTreeItemId * _result; |
f6bcfd97 | 8078 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8079 | wxTreeItemId * _arg1; |
8080 | wxString * _arg2; | |
1d99702e RD |
8081 | int _arg3 = (int ) -1; |
8082 | int _arg4 = (int ) -1; | |
8083 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8084 | PyObject * _argo0 = 0; | |
8085 | PyObject * _argo1 = 0; | |
d5c9047a | 8086 | PyObject * _obj2 = 0; |
1d99702e | 8087 | PyObject * _argo5 = 0; |
efc5f224 | 8088 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8089 | char _ptemp[128]; |
8ab979d7 RD |
8090 | |
8091 | self = self; | |
efc5f224 | 8092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8093 | return NULL; |
1d99702e RD |
8094 | if (_argo0) { |
8095 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8096 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8097 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8098 | return NULL; |
8099 | } | |
8100 | } | |
1d99702e RD |
8101 | if (_argo1) { |
8102 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8103 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); |
8105 | return NULL; | |
8106 | } | |
8107 | } | |
8108 | { | |
c8bc7bb8 RD |
8109 | _arg2 = wxString_in_helper(_obj2); |
8110 | if (_arg2 == NULL) | |
2cd2fac8 | 8111 | return NULL; |
d5c9047a | 8112 | } |
1d99702e RD |
8113 | if (_argo5) { |
8114 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8115 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8117 | return NULL; |
8118 | } | |
8119 | } | |
cf694132 | 8120 | { |
474c48f9 | 8121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8122 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); |
cf694132 | 8123 | |
474c48f9 | 8124 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8125 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8126 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8127 | _resultobj = Py_BuildValue("s",_ptemp); |
8128 | { | |
8129 | if (_obj2) | |
8130 | delete _arg2; | |
8131 | } | |
8ab979d7 RD |
8132 | return _resultobj; |
8133 | } | |
8134 | ||
d5c9047a | 8135 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 8136 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8137 | PyObject * _resultobj; |
d5c9047a | 8138 | wxTreeItemId * _result; |
f6bcfd97 | 8139 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8140 | wxTreeItemId * _arg1; |
8141 | wxTreeItemId * _arg2; | |
8142 | wxString * _arg3; | |
1d99702e RD |
8143 | int _arg4 = (int ) -1; |
8144 | int _arg5 = (int ) -1; | |
8145 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
8146 | PyObject * _argo0 = 0; | |
8147 | PyObject * _argo1 = 0; | |
8148 | PyObject * _argo2 = 0; | |
d5c9047a | 8149 | PyObject * _obj3 = 0; |
1d99702e | 8150 | PyObject * _argo6 = 0; |
efc5f224 | 8151 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; |
d5c9047a | 8152 | char _ptemp[128]; |
8ab979d7 RD |
8153 | |
8154 | self = self; | |
efc5f224 | 8155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) |
8ab979d7 | 8156 | return NULL; |
1d99702e RD |
8157 | if (_argo0) { |
8158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8161 | return NULL; |
8162 | } | |
8163 | } | |
1d99702e RD |
8164 | if (_argo1) { |
8165 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8166 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8168 | return NULL; | |
8169 | } | |
8170 | } | |
1d99702e RD |
8171 | if (_argo2) { |
8172 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8173 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8175 | return NULL; | |
8176 | } | |
8177 | } | |
8178 | { | |
c8bc7bb8 RD |
8179 | _arg3 = wxString_in_helper(_obj3); |
8180 | if (_arg3 == NULL) | |
2cd2fac8 | 8181 | return NULL; |
d5c9047a | 8182 | } |
1d99702e RD |
8183 | if (_argo6) { |
8184 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8185 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
cf694132 | 8186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8187 | return NULL; |
8188 | } | |
8189 | } | |
cf694132 | 8190 | { |
474c48f9 | 8191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8192 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); |
cf694132 | 8193 | |
474c48f9 | 8194 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8195 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8196 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8197 | _resultobj = Py_BuildValue("s",_ptemp); |
8198 | { | |
8199 | if (_obj3) | |
8200 | delete _arg3; | |
8201 | } | |
8ab979d7 RD |
8202 | return _resultobj; |
8203 | } | |
8204 | ||
f6bcfd97 BP |
8205 | #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
8206 | static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8207 | PyObject * _resultobj; | |
8208 | wxTreeItemId * _result; | |
8209 | wxPyTreeCtrl * _arg0; | |
8210 | wxTreeItemId * _arg1; | |
8211 | size_t _arg2; | |
8212 | wxString * _arg3; | |
8213 | int _arg4 = (int ) -1; | |
8214 | int _arg5 = (int ) -1; | |
55d18651 | 8215 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; |
f6bcfd97 BP |
8216 | PyObject * _argo0 = 0; |
8217 | PyObject * _argo1 = 0; | |
8218 | PyObject * _obj3 = 0; | |
8219 | PyObject * _argo6 = 0; | |
8220 | char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL }; | |
8221 | char _ptemp[128]; | |
8222 | ||
8223 | self = self; | |
8224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
8225 | return NULL; | |
8226 | if (_argo0) { | |
8227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p."); | |
8230 | return NULL; | |
8231 | } | |
8232 | } | |
8233 | if (_argo1) { | |
8234 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8235 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p."); | |
8237 | return NULL; | |
8238 | } | |
8239 | } | |
8240 | { | |
c8bc7bb8 RD |
8241 | _arg3 = wxString_in_helper(_obj3); |
8242 | if (_arg3 == NULL) | |
2cd2fac8 | 8243 | return NULL; |
f6bcfd97 BP |
8244 | } |
8245 | if (_argo6) { | |
8246 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
55d18651 RD |
8247 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { |
8248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeItemData_p."); | |
f6bcfd97 BP |
8249 | return NULL; |
8250 | } | |
8251 | } | |
8252 | { | |
474c48f9 | 8253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8254 | _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6)); |
f6bcfd97 | 8255 | |
474c48f9 | 8256 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8257 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
8258 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8259 | _resultobj = Py_BuildValue("s",_ptemp); | |
8260 | { | |
8261 | if (_obj3) | |
8262 | delete _arg3; | |
8263 | } | |
8264 | return _resultobj; | |
8265 | } | |
8266 | ||
d5c9047a | 8267 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8268 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8269 | PyObject * _resultobj; |
d5c9047a | 8270 | wxTreeItemId * _result; |
f6bcfd97 | 8271 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8272 | wxTreeItemId * _arg1; |
8ab979d7 | 8273 | wxString * _arg2; |
1d99702e RD |
8274 | int _arg3 = (int ) -1; |
8275 | int _arg4 = (int ) -1; | |
8276 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8277 | PyObject * _argo0 = 0; | |
8278 | PyObject * _argo1 = 0; | |
8ab979d7 | 8279 | PyObject * _obj2 = 0; |
1d99702e | 8280 | PyObject * _argo5 = 0; |
efc5f224 | 8281 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8282 | char _ptemp[128]; |
8ab979d7 RD |
8283 | |
8284 | self = self; | |
efc5f224 | 8285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8286 | return NULL; |
1d99702e RD |
8287 | if (_argo0) { |
8288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8291 | return NULL; |
8292 | } | |
8293 | } | |
1d99702e RD |
8294 | if (_argo1) { |
8295 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8296 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 8297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8298 | return NULL; |
8299 | } | |
8300 | } | |
8301 | { | |
c8bc7bb8 RD |
8302 | _arg2 = wxString_in_helper(_obj2); |
8303 | if (_arg2 == NULL) | |
2cd2fac8 | 8304 | return NULL; |
8ab979d7 | 8305 | } |
1d99702e RD |
8306 | if (_argo5) { |
8307 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8308 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8310 | return NULL; |
8311 | } | |
8312 | } | |
cf694132 | 8313 | { |
474c48f9 | 8314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8315 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); |
cf694132 | 8316 | |
474c48f9 | 8317 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8318 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8319 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8320 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8321 | { |
8322 | if (_obj2) | |
8323 | delete _arg2; | |
8324 | } | |
8325 | return _resultobj; | |
8326 | } | |
8327 | ||
d5c9047a | 8328 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
efc5f224 | 8329 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8330 | PyObject * _resultobj; |
f6bcfd97 | 8331 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8332 | wxTreeItemId * _arg1; |
1d99702e RD |
8333 | PyObject * _argo0 = 0; |
8334 | PyObject * _argo1 = 0; | |
efc5f224 | 8335 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
8336 | |
8337 | self = self; | |
efc5f224 | 8338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8339 | return NULL; |
1d99702e RD |
8340 | if (_argo0) { |
8341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8344 | return NULL; |
8345 | } | |
8346 | } | |
1d99702e RD |
8347 | if (_argo1) { |
8348 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8349 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); |
8351 | return NULL; | |
8352 | } | |
8353 | } | |
cf694132 | 8354 | { |
474c48f9 | 8355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8356 | wxTreeCtrl_Delete(_arg0,*_arg1); |
cf694132 | 8357 | |
474c48f9 | 8358 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8359 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8360 | } Py_INCREF(Py_None); |
d5c9047a RD |
8361 | _resultobj = Py_None; |
8362 | return _resultobj; | |
8363 | } | |
8364 | ||
08127323 | 8365 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) |
efc5f224 | 8366 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 8367 | PyObject * _resultobj; |
f6bcfd97 | 8368 | wxPyTreeCtrl * _arg0; |
08127323 | 8369 | wxTreeItemId * _arg1; |
1d99702e RD |
8370 | PyObject * _argo0 = 0; |
8371 | PyObject * _argo1 = 0; | |
efc5f224 | 8372 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
8373 | |
8374 | self = self; | |
efc5f224 | 8375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) |
08127323 | 8376 | return NULL; |
1d99702e RD |
8377 | if (_argo0) { |
8378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
8381 | return NULL; |
8382 | } | |
8383 | } | |
1d99702e RD |
8384 | if (_argo1) { |
8385 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8386 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
08127323 RD |
8387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); |
8388 | return NULL; | |
8389 | } | |
8390 | } | |
cf694132 | 8391 | { |
474c48f9 | 8392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8393 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); |
cf694132 | 8394 | |
474c48f9 | 8395 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8396 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8397 | } Py_INCREF(Py_None); |
08127323 RD |
8398 | _resultobj = Py_None; |
8399 | return _resultobj; | |
8400 | } | |
8401 | ||
d5c9047a | 8402 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) |
efc5f224 | 8403 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8404 | PyObject * _resultobj; |
f6bcfd97 | 8405 | wxPyTreeCtrl * _arg0; |
1d99702e | 8406 | PyObject * _argo0 = 0; |
efc5f224 | 8407 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8408 | |
8409 | self = self; | |
efc5f224 | 8410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) |
d5c9047a | 8411 | return NULL; |
1d99702e RD |
8412 | if (_argo0) { |
8413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8416 | return NULL; |
8417 | } | |
8418 | } | |
cf694132 | 8419 | { |
474c48f9 | 8420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8421 | wxTreeCtrl_DeleteAllItems(_arg0); |
cf694132 | 8422 | |
474c48f9 | 8423 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8424 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8425 | } Py_INCREF(Py_None); |
d5c9047a RD |
8426 | _resultobj = Py_None; |
8427 | return _resultobj; | |
8428 | } | |
8429 | ||
8430 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
efc5f224 | 8431 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8432 | PyObject * _resultobj; |
f6bcfd97 | 8433 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8434 | wxTreeItemId * _arg1; |
1d99702e RD |
8435 | PyObject * _argo0 = 0; |
8436 | PyObject * _argo1 = 0; | |
efc5f224 | 8437 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8438 | |
8439 | self = self; | |
efc5f224 | 8440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8441 | return NULL; |
1d99702e RD |
8442 | if (_argo0) { |
8443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8446 | return NULL; |
8447 | } | |
8448 | } | |
1d99702e RD |
8449 | if (_argo1) { |
8450 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8451 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); |
8453 | return NULL; | |
8454 | } | |
8455 | } | |
cf694132 | 8456 | { |
474c48f9 | 8457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8458 | wxTreeCtrl_Expand(_arg0,*_arg1); |
cf694132 | 8459 | |
474c48f9 | 8460 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8461 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8462 | } Py_INCREF(Py_None); |
d5c9047a RD |
8463 | _resultobj = Py_None; |
8464 | return _resultobj; | |
8465 | } | |
8466 | ||
8467 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
efc5f224 | 8468 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8469 | PyObject * _resultobj; |
f6bcfd97 | 8470 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8471 | wxTreeItemId * _arg1; |
1d99702e RD |
8472 | PyObject * _argo0 = 0; |
8473 | PyObject * _argo1 = 0; | |
efc5f224 | 8474 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8475 | |
8476 | self = self; | |
efc5f224 | 8477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8478 | return NULL; |
1d99702e RD |
8479 | if (_argo0) { |
8480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8483 | return NULL; |
8484 | } | |
8485 | } | |
1d99702e RD |
8486 | if (_argo1) { |
8487 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8488 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p."); |
8490 | return NULL; | |
8491 | } | |
8492 | } | |
cf694132 | 8493 | { |
474c48f9 | 8494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8495 | wxTreeCtrl_Collapse(_arg0,*_arg1); |
cf694132 | 8496 | |
474c48f9 | 8497 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8498 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8499 | } Py_INCREF(Py_None); |
d5c9047a RD |
8500 | _resultobj = Py_None; |
8501 | return _resultobj; | |
8502 | } | |
8503 | ||
8504 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
efc5f224 | 8505 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8506 | PyObject * _resultobj; |
f6bcfd97 | 8507 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8508 | wxTreeItemId * _arg1; |
1d99702e RD |
8509 | PyObject * _argo0 = 0; |
8510 | PyObject * _argo1 = 0; | |
efc5f224 | 8511 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8512 | |
8513 | self = self; | |
efc5f224 | 8514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8515 | return NULL; |
1d99702e RD |
8516 | if (_argo0) { |
8517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8520 | return NULL; |
8521 | } | |
8522 | } | |
1d99702e RD |
8523 | if (_argo1) { |
8524 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8525 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); |
8527 | return NULL; | |
8528 | } | |
8529 | } | |
cf694132 | 8530 | { |
474c48f9 | 8531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8532 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); |
cf694132 | 8533 | |
474c48f9 | 8534 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8535 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8536 | } Py_INCREF(Py_None); |
d5c9047a RD |
8537 | _resultobj = Py_None; |
8538 | return _resultobj; | |
8539 | } | |
8540 | ||
8541 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
efc5f224 | 8542 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8543 | PyObject * _resultobj; |
f6bcfd97 | 8544 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8545 | wxTreeItemId * _arg1; |
1d99702e RD |
8546 | PyObject * _argo0 = 0; |
8547 | PyObject * _argo1 = 0; | |
efc5f224 | 8548 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8549 | |
8550 | self = self; | |
efc5f224 | 8551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8552 | return NULL; |
1d99702e RD |
8553 | if (_argo0) { |
8554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8557 | return NULL; |
8558 | } | |
8559 | } | |
1d99702e RD |
8560 | if (_argo1) { |
8561 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8562 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); |
8564 | return NULL; | |
8565 | } | |
8566 | } | |
cf694132 | 8567 | { |
474c48f9 | 8568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8569 | wxTreeCtrl_Toggle(_arg0,*_arg1); |
cf694132 | 8570 | |
474c48f9 | 8571 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8572 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8573 | } Py_INCREF(Py_None); |
d5c9047a RD |
8574 | _resultobj = Py_None; |
8575 | return _resultobj; | |
8576 | } | |
8577 | ||
8578 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
efc5f224 | 8579 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8580 | PyObject * _resultobj; |
f6bcfd97 | 8581 | wxPyTreeCtrl * _arg0; |
1d99702e | 8582 | PyObject * _argo0 = 0; |
efc5f224 | 8583 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8584 | |
8585 | self = self; | |
efc5f224 | 8586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) |
d5c9047a | 8587 | return NULL; |
1d99702e RD |
8588 | if (_argo0) { |
8589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8592 | return NULL; |
8593 | } | |
8594 | } | |
cf694132 | 8595 | { |
474c48f9 | 8596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8597 | wxTreeCtrl_Unselect(_arg0); |
cf694132 | 8598 | |
474c48f9 | 8599 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8600 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8601 | } Py_INCREF(Py_None); |
d5c9047a RD |
8602 | _resultobj = Py_None; |
8603 | return _resultobj; | |
8604 | } | |
8605 | ||
8bf5d46e | 8606 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) |
efc5f224 | 8607 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e | 8608 | PyObject * _resultobj; |
f6bcfd97 | 8609 | wxPyTreeCtrl * _arg0; |
1d99702e | 8610 | PyObject * _argo0 = 0; |
efc5f224 | 8611 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
8612 | |
8613 | self = self; | |
efc5f224 | 8614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) |
8bf5d46e | 8615 | return NULL; |
1d99702e RD |
8616 | if (_argo0) { |
8617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p."); | |
8bf5d46e RD |
8620 | return NULL; |
8621 | } | |
8622 | } | |
8623 | { | |
474c48f9 | 8624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8625 | wxTreeCtrl_UnselectAll(_arg0); |
8bf5d46e | 8626 | |
474c48f9 | 8627 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8628 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
8629 | } Py_INCREF(Py_None); |
8630 | _resultobj = Py_None; | |
8631 | return _resultobj; | |
8632 | } | |
8633 | ||
d5c9047a | 8634 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) |
efc5f224 | 8635 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8636 | PyObject * _resultobj; |
f6bcfd97 | 8637 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8638 | wxTreeItemId * _arg1; |
1d99702e RD |
8639 | PyObject * _argo0 = 0; |
8640 | PyObject * _argo1 = 0; | |
efc5f224 | 8641 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8642 | |
8643 | self = self; | |
efc5f224 | 8644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8645 | return NULL; |
1d99702e RD |
8646 | if (_argo0) { |
8647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8650 | return NULL; |
8651 | } | |
8652 | } | |
1d99702e RD |
8653 | if (_argo1) { |
8654 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8655 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); |
8657 | return NULL; | |
8658 | } | |
8659 | } | |
cf694132 | 8660 | { |
474c48f9 | 8661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8662 | wxTreeCtrl_SelectItem(_arg0,*_arg1); |
cf694132 | 8663 | |
474c48f9 | 8664 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8665 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8666 | } Py_INCREF(Py_None); |
d5c9047a RD |
8667 | _resultobj = Py_None; |
8668 | return _resultobj; | |
8669 | } | |
8670 | ||
8671 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
efc5f224 | 8672 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8673 | PyObject * _resultobj; |
f6bcfd97 | 8674 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8675 | wxTreeItemId * _arg1; |
1d99702e RD |
8676 | PyObject * _argo0 = 0; |
8677 | PyObject * _argo1 = 0; | |
efc5f224 | 8678 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8679 | |
8680 | self = self; | |
efc5f224 | 8681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8682 | return NULL; |
1d99702e RD |
8683 | if (_argo0) { |
8684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8687 | return NULL; |
8688 | } | |
8689 | } | |
1d99702e RD |
8690 | if (_argo1) { |
8691 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8692 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); |
8694 | return NULL; | |
8695 | } | |
8696 | } | |
cf694132 | 8697 | { |
474c48f9 | 8698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8699 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); |
cf694132 | 8700 | |
474c48f9 | 8701 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8702 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8703 | } Py_INCREF(Py_None); |
d5c9047a RD |
8704 | _resultobj = Py_None; |
8705 | return _resultobj; | |
8706 | } | |
8707 | ||
8708 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
efc5f224 | 8709 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8710 | PyObject * _resultobj; |
f6bcfd97 | 8711 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8712 | wxTreeItemId * _arg1; |
1d99702e RD |
8713 | PyObject * _argo0 = 0; |
8714 | PyObject * _argo1 = 0; | |
efc5f224 | 8715 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8716 | |
8717 | self = self; | |
efc5f224 | 8718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8719 | return NULL; |
1d99702e RD |
8720 | if (_argo0) { |
8721 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8724 | return NULL; |
8725 | } | |
8726 | } | |
1d99702e RD |
8727 | if (_argo1) { |
8728 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8729 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); |
8731 | return NULL; | |
8732 | } | |
8733 | } | |
cf694132 | 8734 | { |
474c48f9 | 8735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8736 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); |
cf694132 | 8737 | |
474c48f9 | 8738 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8739 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8740 | } Py_INCREF(Py_None); |
d5c9047a RD |
8741 | _resultobj = Py_None; |
8742 | return _resultobj; | |
8743 | } | |
8744 | ||
8745 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
efc5f224 | 8746 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8747 | PyObject * _resultobj; |
f6bcfd97 | 8748 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8749 | wxTreeItemId * _arg1; |
1d99702e RD |
8750 | PyObject * _argo0 = 0; |
8751 | PyObject * _argo1 = 0; | |
efc5f224 | 8752 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8753 | |
8754 | self = self; | |
efc5f224 | 8755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8756 | return NULL; |
1d99702e RD |
8757 | if (_argo0) { |
8758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8761 | return NULL; |
8762 | } | |
8763 | } | |
1d99702e RD |
8764 | if (_argo1) { |
8765 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8766 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); |
8768 | return NULL; | |
8769 | } | |
8770 | } | |
cf694132 | 8771 | { |
474c48f9 | 8772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8773 | wxTreeCtrl_EditLabel(_arg0,*_arg1); |
cf694132 | 8774 | |
474c48f9 | 8775 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8776 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8777 | } Py_INCREF(Py_None); |
d5c9047a | 8778 | _resultobj = Py_None; |
8ab979d7 RD |
8779 | return _resultobj; |
8780 | } | |
8781 | ||
d426c97e RD |
8782 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) |
8783 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8784 | PyObject * _resultobj; | |
f6bcfd97 | 8785 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8786 | wxTreeItemId * _arg1; |
8787 | PyObject * _argo0 = 0; | |
8788 | PyObject * _argo1 = 0; | |
8789 | char *_kwnames[] = { "self","item", NULL }; | |
8790 | ||
8791 | self = self; | |
8792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
8793 | return NULL; | |
8794 | if (_argo0) { | |
8795 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8796 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8798 | return NULL; |
8799 | } | |
8800 | } | |
8801 | if (_argo1) { | |
8802 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8803 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); | |
8805 | return NULL; | |
8806 | } | |
8807 | } | |
8808 | { | |
474c48f9 | 8809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8810 | wxTreeCtrl_SortChildren(_arg0,*_arg1); |
d426c97e | 8811 | |
474c48f9 | 8812 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8813 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8814 | } Py_INCREF(Py_None); |
8815 | _resultobj = Py_None; | |
8816 | return _resultobj; | |
8817 | } | |
8818 | ||
b8b8dda7 | 8819 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) |
efc5f224 | 8820 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 | 8821 | PyObject * _resultobj; |
f6bcfd97 | 8822 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 8823 | wxTreeItemId * _arg1; |
b1462dfa | 8824 | int _arg2 = (int ) TRUE; |
1d99702e RD |
8825 | PyObject * _argo0 = 0; |
8826 | PyObject * _argo1 = 0; | |
efc5f224 | 8827 | char *_kwnames[] = { "self","item","bold", NULL }; |
b8b8dda7 RD |
8828 | |
8829 | self = self; | |
b1462dfa | 8830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) |
b8b8dda7 | 8831 | return NULL; |
1d99702e RD |
8832 | if (_argo0) { |
8833 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8834 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8835 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
8836 | return NULL; |
8837 | } | |
8838 | } | |
1d99702e RD |
8839 | if (_argo1) { |
8840 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8841 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
8842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); |
8843 | return NULL; | |
8844 | } | |
8845 | } | |
cf694132 | 8846 | { |
474c48f9 | 8847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8848 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); |
cf694132 | 8849 | |
474c48f9 | 8850 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8851 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8852 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
8853 | _resultobj = Py_None; |
8854 | return _resultobj; | |
8855 | } | |
8856 | ||
8857 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
efc5f224 | 8858 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
8859 | PyObject * _resultobj; |
8860 | bool _result; | |
f6bcfd97 | 8861 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 8862 | wxTreeItemId * _arg1; |
1d99702e RD |
8863 | PyObject * _argo0 = 0; |
8864 | PyObject * _argo1 = 0; | |
efc5f224 | 8865 | char *_kwnames[] = { "self","item", NULL }; |
b8b8dda7 RD |
8866 | |
8867 | self = self; | |
efc5f224 | 8868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 8869 | return NULL; |
1d99702e RD |
8870 | if (_argo0) { |
8871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
8874 | return NULL; |
8875 | } | |
8876 | } | |
1d99702e RD |
8877 | if (_argo1) { |
8878 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8879 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
8880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); |
8881 | return NULL; | |
8882 | } | |
8883 | } | |
cf694132 | 8884 | { |
474c48f9 | 8885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8886 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); |
cf694132 | 8887 | |
474c48f9 | 8888 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8889 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8890 | } _resultobj = Py_BuildValue("i",_result); |
b8b8dda7 RD |
8891 | return _resultobj; |
8892 | } | |
8893 | ||
164b735b | 8894 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
efc5f224 | 8895 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
8896 | PyObject * _resultobj; |
8897 | wxTreeItemId * _result; | |
f6bcfd97 | 8898 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 8899 | wxPoint * _arg1; |
164b735b RD |
8900 | int * _arg2; |
8901 | int temp; | |
1d99702e | 8902 | PyObject * _argo0 = 0; |
164b735b | 8903 | wxPoint temp0; |
2f90df85 | 8904 | PyObject * _obj1 = 0; |
efc5f224 | 8905 | char *_kwnames[] = { "self","point", NULL }; |
b8b8dda7 RD |
8906 | char _ptemp[128]; |
8907 | ||
8908 | self = self; | |
164b735b RD |
8909 | { |
8910 | _arg2 = &temp; | |
8911 | } | |
2f90df85 | 8912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 8913 | return NULL; |
1d99702e RD |
8914 | if (_argo0) { |
8915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
8918 | return NULL; |
8919 | } | |
8920 | } | |
2f90df85 | 8921 | { |
164b735b | 8922 | _arg1 = &temp0; |
2f90df85 | 8923 | if (! wxPoint_helper(_obj1, &_arg1)) |
b8b8dda7 | 8924 | return NULL; |
2f90df85 | 8925 | } |
cf694132 | 8926 | { |
474c48f9 | 8927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8928 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); |
cf694132 | 8929 | |
474c48f9 | 8930 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8931 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8932 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
b8b8dda7 | 8933 | _resultobj = Py_BuildValue("s",_ptemp); |
164b735b RD |
8934 | { |
8935 | PyObject *o; | |
8936 | o = PyInt_FromLong((long) (*_arg2)); | |
8937 | _resultobj = t_output_helper(_resultobj, o); | |
8938 | } | |
b8b8dda7 RD |
8939 | return _resultobj; |
8940 | } | |
8941 | ||
b7e72427 RD |
8942 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
8943 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8944 | PyObject * _resultobj; | |
f6bcfd97 | 8945 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
8946 | wxTreeItemId * _arg1; |
8947 | wxColour * _arg2; | |
8948 | PyObject * _argo0 = 0; | |
8949 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
8950 | wxColour temp; |
8951 | PyObject * _obj2 = 0; | |
b7e72427 RD |
8952 | char *_kwnames[] = { "self","item","col", NULL }; |
8953 | ||
8954 | self = self; | |
f6bcfd97 | 8955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
8956 | return NULL; |
8957 | if (_argo0) { | |
8958 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8959 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8960 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
8961 | return NULL; |
8962 | } | |
8963 | } | |
8964 | if (_argo1) { | |
8965 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8966 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); | |
8968 | return NULL; | |
8969 | } | |
8970 | } | |
f6bcfd97 BP |
8971 | { |
8972 | _arg2 = &temp; | |
8973 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 8974 | return NULL; |
f6bcfd97 | 8975 | } |
b7e72427 | 8976 | { |
474c48f9 | 8977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8978 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); |
b7e72427 | 8979 | |
474c48f9 | 8980 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8981 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
8982 | } Py_INCREF(Py_None); |
8983 | _resultobj = Py_None; | |
8984 | return _resultobj; | |
8985 | } | |
8986 | ||
8987 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
8988 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8989 | PyObject * _resultobj; | |
f6bcfd97 | 8990 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
8991 | wxTreeItemId * _arg1; |
8992 | wxColour * _arg2; | |
8993 | PyObject * _argo0 = 0; | |
8994 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
8995 | wxColour temp; |
8996 | PyObject * _obj2 = 0; | |
b7e72427 RD |
8997 | char *_kwnames[] = { "self","item","col", NULL }; |
8998 | ||
8999 | self = self; | |
f6bcfd97 | 9000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9001 | return NULL; |
9002 | if (_argo0) { | |
9003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9006 | return NULL; |
9007 | } | |
9008 | } | |
9009 | if (_argo1) { | |
9010 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9011 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
9013 | return NULL; | |
9014 | } | |
9015 | } | |
f6bcfd97 BP |
9016 | { |
9017 | _arg2 = &temp; | |
9018 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9019 | return NULL; |
f6bcfd97 | 9020 | } |
b7e72427 | 9021 | { |
474c48f9 | 9022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9023 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); |
b7e72427 | 9024 | |
474c48f9 | 9025 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9026 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9027 | } Py_INCREF(Py_None); |
9028 | _resultobj = Py_None; | |
9029 | return _resultobj; | |
9030 | } | |
9031 | ||
9032 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
9033 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9034 | PyObject * _resultobj; | |
f6bcfd97 | 9035 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9036 | wxTreeItemId * _arg1; |
9037 | wxFont * _arg2; | |
9038 | PyObject * _argo0 = 0; | |
9039 | PyObject * _argo1 = 0; | |
9040 | PyObject * _argo2 = 0; | |
9041 | char *_kwnames[] = { "self","item","font", NULL }; | |
9042 | ||
9043 | self = self; | |
9044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
9045 | return NULL; | |
9046 | if (_argo0) { | |
9047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9050 | return NULL; |
9051 | } | |
9052 | } | |
9053 | if (_argo1) { | |
9054 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9055 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); | |
9057 | return NULL; | |
9058 | } | |
9059 | } | |
9060 | if (_argo2) { | |
9061 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9062 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
9063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); | |
9064 | return NULL; | |
9065 | } | |
9066 | } | |
9067 | { | |
474c48f9 | 9068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9069 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); |
b7e72427 | 9070 | |
474c48f9 | 9071 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9072 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9073 | } Py_INCREF(Py_None); |
9074 | _resultobj = Py_None; | |
9075 | return _resultobj; | |
9076 | } | |
9077 | ||
74bcba0e RD |
9078 | static PyObject * wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,const wxTreeItemId & item,int textOnly) { |
9079 | wxRect rect; | |
9080 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
474c48f9 | 9081 | wxPyBeginBlockThreads(); |
74bcba0e RD |
9082 | wxRect* r = new wxRect(rect); |
9083 | PyObject* val = wxPyConstructObject((void*)r, "wxRect"); | |
474c48f9 | 9084 | wxPyEndBlockThreads(); |
74bcba0e RD |
9085 | return val; |
9086 | } | |
9087 | else { | |
9088 | Py_INCREF(Py_None); | |
9089 | return Py_None; | |
9090 | } | |
9091 | } | |
9092 | static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9093 | PyObject * _resultobj; | |
9094 | PyObject * _result; | |
9095 | wxPyTreeCtrl * _arg0; | |
9096 | wxTreeItemId * _arg1; | |
9097 | int _arg2 = (int ) FALSE; | |
9098 | PyObject * _argo0 = 0; | |
9099 | PyObject * _argo1 = 0; | |
9100 | char *_kwnames[] = { "self","item","textOnly", NULL }; | |
9101 | ||
9102 | self = self; | |
9103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&_arg2)) | |
9104 | return NULL; | |
9105 | if (_argo0) { | |
9106 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9107 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetBoundingRect. Expected _wxPyTreeCtrl_p."); | |
9109 | return NULL; | |
9110 | } | |
9111 | } | |
9112 | if (_argo1) { | |
9113 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9114 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeItemId_p."); | |
9116 | return NULL; | |
9117 | } | |
9118 | } | |
9119 | { | |
474c48f9 | 9120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9121 | _result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(_arg0,*_arg1,_arg2); |
74bcba0e | 9122 | |
474c48f9 | 9123 | wxPyEndAllowThreads(__tstate); |
74bcba0e RD |
9124 | if (PyErr_Occurred()) return NULL; |
9125 | }{ | |
9126 | _resultobj = _result; | |
9127 | } | |
9128 | return _resultobj; | |
9129 | } | |
9130 | ||
db34b2d4 RD |
9131 | static void *SwigwxDirItemDataTowxObject(void *ptr) { |
9132 | wxDirItemData *src; | |
9133 | wxObject *dest; | |
9134 | src = (wxDirItemData *) ptr; | |
9135 | dest = (wxObject *) src; | |
9136 | return (void *) dest; | |
9137 | } | |
9138 | ||
9139 | #define new_wxDirItemData(_swigarg0,_swigarg1,_swigarg2) (new wxDirItemData(_swigarg0,_swigarg1,_swigarg2)) | |
9140 | static PyObject *_wrap_new_wxDirItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9141 | PyObject * _resultobj; | |
9142 | wxDirItemData * _result; | |
9143 | wxString * _arg0; | |
9144 | wxString * _arg1; | |
9145 | bool _arg2; | |
9146 | PyObject * _obj0 = 0; | |
9147 | PyObject * _obj1 = 0; | |
9148 | int tempbool2; | |
9149 | char *_kwnames[] = { "path","name","isDir", NULL }; | |
9150 | char _ptemp[128]; | |
9151 | ||
9152 | self = self; | |
9153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:new_wxDirItemData",_kwnames,&_obj0,&_obj1,&tempbool2)) | |
9154 | return NULL; | |
9155 | { | |
c8bc7bb8 RD |
9156 | _arg0 = wxString_in_helper(_obj0); |
9157 | if (_arg0 == NULL) | |
db34b2d4 | 9158 | return NULL; |
db34b2d4 RD |
9159 | } |
9160 | { | |
c8bc7bb8 RD |
9161 | _arg1 = wxString_in_helper(_obj1); |
9162 | if (_arg1 == NULL) | |
db34b2d4 | 9163 | return NULL; |
db34b2d4 RD |
9164 | } |
9165 | _arg2 = (bool ) tempbool2; | |
9166 | { | |
9167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9168 | _result = (wxDirItemData *)new_wxDirItemData(*_arg0,*_arg1,_arg2); |
db34b2d4 RD |
9169 | |
9170 | wxPyEndAllowThreads(__tstate); | |
9171 | if (PyErr_Occurred()) return NULL; | |
9172 | } if (_result) { | |
9173 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirItemData_p"); | |
9174 | _resultobj = Py_BuildValue("s",_ptemp); | |
9175 | } else { | |
9176 | Py_INCREF(Py_None); | |
9177 | _resultobj = Py_None; | |
9178 | } | |
9179 | { | |
9180 | if (_obj0) | |
9181 | delete _arg0; | |
9182 | } | |
9183 | { | |
9184 | if (_obj1) | |
9185 | delete _arg1; | |
9186 | } | |
9187 | return _resultobj; | |
9188 | } | |
9189 | ||
9190 | #define wxDirItemData_SetNewDirName(_swigobj,_swigarg0) (_swigobj->SetNewDirName(_swigarg0)) | |
9191 | static PyObject *_wrap_wxDirItemData_SetNewDirName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9192 | PyObject * _resultobj; | |
9193 | wxDirItemData * _arg0; | |
9194 | wxString * _arg1; | |
9195 | PyObject * _argo0 = 0; | |
9196 | PyObject * _obj1 = 0; | |
9197 | char *_kwnames[] = { "self","path", NULL }; | |
9198 | ||
9199 | self = self; | |
9200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_SetNewDirName",_kwnames,&_argo0,&_obj1)) | |
9201 | return NULL; | |
9202 | if (_argo0) { | |
9203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_SetNewDirName. Expected _wxDirItemData_p."); | |
9206 | return NULL; | |
9207 | } | |
9208 | } | |
9209 | { | |
c8bc7bb8 RD |
9210 | _arg1 = wxString_in_helper(_obj1); |
9211 | if (_arg1 == NULL) | |
db34b2d4 | 9212 | return NULL; |
db34b2d4 RD |
9213 | } |
9214 | { | |
9215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9216 | wxDirItemData_SetNewDirName(_arg0,*_arg1); |
db34b2d4 RD |
9217 | |
9218 | wxPyEndAllowThreads(__tstate); | |
9219 | if (PyErr_Occurred()) return NULL; | |
9220 | } Py_INCREF(Py_None); | |
9221 | _resultobj = Py_None; | |
9222 | { | |
9223 | if (_obj1) | |
9224 | delete _arg1; | |
9225 | } | |
9226 | return _resultobj; | |
9227 | } | |
9228 | ||
9229 | #define wxDirItemData_m_path_set(_swigobj,_swigval) (_swigobj->m_path = *(_swigval),_swigval) | |
9230 | static PyObject *_wrap_wxDirItemData_m_path_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9231 | PyObject * _resultobj; | |
9232 | wxString * _result; | |
9233 | wxDirItemData * _arg0; | |
9234 | wxString * _arg1; | |
9235 | PyObject * _argo0 = 0; | |
9236 | PyObject * _obj1 = 0; | |
9237 | char *_kwnames[] = { "self","m_path", NULL }; | |
9238 | ||
9239 | self = self; | |
9240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_path_set",_kwnames,&_argo0,&_obj1)) | |
9241 | return NULL; | |
9242 | if (_argo0) { | |
9243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_set. Expected _wxDirItemData_p."); | |
9246 | return NULL; | |
9247 | } | |
9248 | } | |
9249 | { | |
c8bc7bb8 RD |
9250 | _arg1 = wxString_in_helper(_obj1); |
9251 | if (_arg1 == NULL) | |
db34b2d4 | 9252 | return NULL; |
db34b2d4 RD |
9253 | } |
9254 | { | |
9255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9256 | _result = (wxString *)wxDirItemData_m_path_set(_arg0,_arg1); |
db34b2d4 RD |
9257 | |
9258 | wxPyEndAllowThreads(__tstate); | |
9259 | if (PyErr_Occurred()) return NULL; | |
9260 | }{ | |
c8bc7bb8 RD |
9261 | #if wxUSE_UNICODE |
9262 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9263 | #else | |
db34b2d4 | 9264 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9265 | #endif |
db34b2d4 RD |
9266 | } |
9267 | { | |
9268 | if (_obj1) | |
9269 | delete _arg1; | |
9270 | } | |
9271 | return _resultobj; | |
9272 | } | |
9273 | ||
9274 | #define wxDirItemData_m_path_get(_swigobj) (&_swigobj->m_path) | |
9275 | static PyObject *_wrap_wxDirItemData_m_path_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9276 | PyObject * _resultobj; | |
9277 | wxString * _result; | |
9278 | wxDirItemData * _arg0; | |
9279 | PyObject * _argo0 = 0; | |
9280 | char *_kwnames[] = { "self", NULL }; | |
9281 | ||
9282 | self = self; | |
9283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_path_get",_kwnames,&_argo0)) | |
9284 | return NULL; | |
9285 | if (_argo0) { | |
9286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_get. Expected _wxDirItemData_p."); | |
9289 | return NULL; | |
9290 | } | |
9291 | } | |
9292 | { | |
9293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9294 | _result = (wxString *)wxDirItemData_m_path_get(_arg0); |
db34b2d4 RD |
9295 | |
9296 | wxPyEndAllowThreads(__tstate); | |
9297 | if (PyErr_Occurred()) return NULL; | |
9298 | }{ | |
c8bc7bb8 RD |
9299 | #if wxUSE_UNICODE |
9300 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9301 | #else | |
db34b2d4 | 9302 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9303 | #endif |
db34b2d4 RD |
9304 | } |
9305 | return _resultobj; | |
9306 | } | |
9307 | ||
9308 | #define wxDirItemData_m_name_set(_swigobj,_swigval) (_swigobj->m_name = *(_swigval),_swigval) | |
9309 | static PyObject *_wrap_wxDirItemData_m_name_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9310 | PyObject * _resultobj; | |
9311 | wxString * _result; | |
9312 | wxDirItemData * _arg0; | |
9313 | wxString * _arg1; | |
9314 | PyObject * _argo0 = 0; | |
9315 | PyObject * _obj1 = 0; | |
9316 | char *_kwnames[] = { "self","m_name", NULL }; | |
9317 | ||
9318 | self = self; | |
9319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_name_set",_kwnames,&_argo0,&_obj1)) | |
9320 | return NULL; | |
9321 | if (_argo0) { | |
9322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_set. Expected _wxDirItemData_p."); | |
9325 | return NULL; | |
9326 | } | |
9327 | } | |
9328 | { | |
c8bc7bb8 RD |
9329 | _arg1 = wxString_in_helper(_obj1); |
9330 | if (_arg1 == NULL) | |
db34b2d4 | 9331 | return NULL; |
db34b2d4 RD |
9332 | } |
9333 | { | |
9334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9335 | _result = (wxString *)wxDirItemData_m_name_set(_arg0,_arg1); |
db34b2d4 RD |
9336 | |
9337 | wxPyEndAllowThreads(__tstate); | |
9338 | if (PyErr_Occurred()) return NULL; | |
9339 | }{ | |
c8bc7bb8 RD |
9340 | #if wxUSE_UNICODE |
9341 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9342 | #else | |
db34b2d4 | 9343 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9344 | #endif |
db34b2d4 RD |
9345 | } |
9346 | { | |
9347 | if (_obj1) | |
9348 | delete _arg1; | |
9349 | } | |
9350 | return _resultobj; | |
9351 | } | |
9352 | ||
9353 | #define wxDirItemData_m_name_get(_swigobj) (&_swigobj->m_name) | |
9354 | static PyObject *_wrap_wxDirItemData_m_name_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9355 | PyObject * _resultobj; | |
9356 | wxString * _result; | |
9357 | wxDirItemData * _arg0; | |
9358 | PyObject * _argo0 = 0; | |
9359 | char *_kwnames[] = { "self", NULL }; | |
9360 | ||
9361 | self = self; | |
9362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_name_get",_kwnames,&_argo0)) | |
9363 | return NULL; | |
9364 | if (_argo0) { | |
9365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_get. Expected _wxDirItemData_p."); | |
9368 | return NULL; | |
9369 | } | |
9370 | } | |
9371 | { | |
9372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9373 | _result = (wxString *)wxDirItemData_m_name_get(_arg0); |
db34b2d4 RD |
9374 | |
9375 | wxPyEndAllowThreads(__tstate); | |
9376 | if (PyErr_Occurred()) return NULL; | |
9377 | }{ | |
c8bc7bb8 RD |
9378 | #if wxUSE_UNICODE |
9379 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9380 | #else | |
db34b2d4 | 9381 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9382 | #endif |
db34b2d4 RD |
9383 | } |
9384 | return _resultobj; | |
9385 | } | |
9386 | ||
9387 | #define wxDirItemData_m_isHidden_set(_swigobj,_swigval) (_swigobj->m_isHidden = _swigval,_swigval) | |
9388 | static PyObject *_wrap_wxDirItemData_m_isHidden_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9389 | PyObject * _resultobj; | |
9390 | bool _result; | |
9391 | wxDirItemData * _arg0; | |
9392 | bool _arg1; | |
9393 | PyObject * _argo0 = 0; | |
9394 | int tempbool1; | |
9395 | char *_kwnames[] = { "self","m_isHidden", NULL }; | |
9396 | ||
9397 | self = self; | |
9398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isHidden_set",_kwnames,&_argo0,&tempbool1)) | |
9399 | return NULL; | |
9400 | if (_argo0) { | |
9401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_set. Expected _wxDirItemData_p."); | |
9404 | return NULL; | |
9405 | } | |
9406 | } | |
9407 | _arg1 = (bool ) tempbool1; | |
9408 | { | |
9409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9410 | _result = (bool )wxDirItemData_m_isHidden_set(_arg0,_arg1); |
db34b2d4 RD |
9411 | |
9412 | wxPyEndAllowThreads(__tstate); | |
9413 | if (PyErr_Occurred()) return NULL; | |
9414 | } _resultobj = Py_BuildValue("i",_result); | |
9415 | return _resultobj; | |
9416 | } | |
9417 | ||
9418 | #define wxDirItemData_m_isHidden_get(_swigobj) ((bool ) _swigobj->m_isHidden) | |
9419 | static PyObject *_wrap_wxDirItemData_m_isHidden_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9420 | PyObject * _resultobj; | |
9421 | bool _result; | |
9422 | wxDirItemData * _arg0; | |
9423 | PyObject * _argo0 = 0; | |
9424 | char *_kwnames[] = { "self", NULL }; | |
9425 | ||
9426 | self = self; | |
9427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isHidden_get",_kwnames,&_argo0)) | |
9428 | return NULL; | |
9429 | if (_argo0) { | |
9430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_get. Expected _wxDirItemData_p."); | |
9433 | return NULL; | |
9434 | } | |
9435 | } | |
9436 | { | |
9437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9438 | _result = (bool )wxDirItemData_m_isHidden_get(_arg0); |
db34b2d4 RD |
9439 | |
9440 | wxPyEndAllowThreads(__tstate); | |
9441 | if (PyErr_Occurred()) return NULL; | |
9442 | } _resultobj = Py_BuildValue("i",_result); | |
9443 | return _resultobj; | |
9444 | } | |
9445 | ||
9446 | #define wxDirItemData_m_isExpanded_set(_swigobj,_swigval) (_swigobj->m_isExpanded = _swigval,_swigval) | |
9447 | static PyObject *_wrap_wxDirItemData_m_isExpanded_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9448 | PyObject * _resultobj; | |
9449 | bool _result; | |
9450 | wxDirItemData * _arg0; | |
9451 | bool _arg1; | |
9452 | PyObject * _argo0 = 0; | |
9453 | int tempbool1; | |
9454 | char *_kwnames[] = { "self","m_isExpanded", NULL }; | |
9455 | ||
9456 | self = self; | |
9457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isExpanded_set",_kwnames,&_argo0,&tempbool1)) | |
9458 | return NULL; | |
9459 | if (_argo0) { | |
9460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_set. Expected _wxDirItemData_p."); | |
9463 | return NULL; | |
9464 | } | |
9465 | } | |
9466 | _arg1 = (bool ) tempbool1; | |
9467 | { | |
9468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9469 | _result = (bool )wxDirItemData_m_isExpanded_set(_arg0,_arg1); |
db34b2d4 RD |
9470 | |
9471 | wxPyEndAllowThreads(__tstate); | |
9472 | if (PyErr_Occurred()) return NULL; | |
9473 | } _resultobj = Py_BuildValue("i",_result); | |
9474 | return _resultobj; | |
9475 | } | |
9476 | ||
9477 | #define wxDirItemData_m_isExpanded_get(_swigobj) ((bool ) _swigobj->m_isExpanded) | |
9478 | static PyObject *_wrap_wxDirItemData_m_isExpanded_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9479 | PyObject * _resultobj; | |
9480 | bool _result; | |
9481 | wxDirItemData * _arg0; | |
9482 | PyObject * _argo0 = 0; | |
9483 | char *_kwnames[] = { "self", NULL }; | |
9484 | ||
9485 | self = self; | |
9486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isExpanded_get",_kwnames,&_argo0)) | |
9487 | return NULL; | |
9488 | if (_argo0) { | |
9489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_get. Expected _wxDirItemData_p."); | |
9492 | return NULL; | |
9493 | } | |
9494 | } | |
9495 | { | |
9496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9497 | _result = (bool )wxDirItemData_m_isExpanded_get(_arg0); |
db34b2d4 RD |
9498 | |
9499 | wxPyEndAllowThreads(__tstate); | |
9500 | if (PyErr_Occurred()) return NULL; | |
9501 | } _resultobj = Py_BuildValue("i",_result); | |
9502 | return _resultobj; | |
9503 | } | |
9504 | ||
9505 | #define wxDirItemData_m_isDir_set(_swigobj,_swigval) (_swigobj->m_isDir = _swigval,_swigval) | |
9506 | static PyObject *_wrap_wxDirItemData_m_isDir_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9507 | PyObject * _resultobj; | |
9508 | bool _result; | |
9509 | wxDirItemData * _arg0; | |
9510 | bool _arg1; | |
9511 | PyObject * _argo0 = 0; | |
9512 | int tempbool1; | |
9513 | char *_kwnames[] = { "self","m_isDir", NULL }; | |
9514 | ||
9515 | self = self; | |
9516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isDir_set",_kwnames,&_argo0,&tempbool1)) | |
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_isDir_set. Expected _wxDirItemData_p."); | |
9522 | return NULL; | |
9523 | } | |
9524 | } | |
9525 | _arg1 = (bool ) tempbool1; | |
9526 | { | |
9527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9528 | _result = (bool )wxDirItemData_m_isDir_set(_arg0,_arg1); |
db34b2d4 RD |
9529 | |
9530 | wxPyEndAllowThreads(__tstate); | |
9531 | if (PyErr_Occurred()) return NULL; | |
9532 | } _resultobj = Py_BuildValue("i",_result); | |
9533 | return _resultobj; | |
9534 | } | |
9535 | ||
9536 | #define wxDirItemData_m_isDir_get(_swigobj) ((bool ) _swigobj->m_isDir) | |
9537 | static PyObject *_wrap_wxDirItemData_m_isDir_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9538 | PyObject * _resultobj; | |
9539 | bool _result; | |
9540 | wxDirItemData * _arg0; | |
9541 | PyObject * _argo0 = 0; | |
9542 | char *_kwnames[] = { "self", NULL }; | |
9543 | ||
9544 | self = self; | |
9545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isDir_get",_kwnames,&_argo0)) | |
9546 | return NULL; | |
9547 | if (_argo0) { | |
9548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_get. Expected _wxDirItemData_p."); | |
9551 | return NULL; | |
9552 | } | |
9553 | } | |
9554 | { | |
9555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9556 | _result = (bool )wxDirItemData_m_isDir_get(_arg0); |
db34b2d4 RD |
9557 | |
9558 | wxPyEndAllowThreads(__tstate); | |
9559 | if (PyErr_Occurred()) return NULL; | |
9560 | } _resultobj = Py_BuildValue("i",_result); | |
9561 | return _resultobj; | |
9562 | } | |
9563 | ||
9564 | static void *SwigwxGenericDirCtrlTowxControl(void *ptr) { | |
9565 | wxGenericDirCtrl *src; | |
9566 | wxControl *dest; | |
9567 | src = (wxGenericDirCtrl *) ptr; | |
9568 | dest = (wxControl *) src; | |
9569 | return (void *) dest; | |
9570 | } | |
9571 | ||
9572 | static void *SwigwxGenericDirCtrlTowxWindow(void *ptr) { | |
9573 | wxGenericDirCtrl *src; | |
9574 | wxWindow *dest; | |
9575 | src = (wxGenericDirCtrl *) ptr; | |
9576 | dest = (wxWindow *) src; | |
9577 | return (void *) dest; | |
9578 | } | |
9579 | ||
9580 | static void *SwigwxGenericDirCtrlTowxEvtHandler(void *ptr) { | |
9581 | wxGenericDirCtrl *src; | |
9582 | wxEvtHandler *dest; | |
9583 | src = (wxGenericDirCtrl *) ptr; | |
9584 | dest = (wxEvtHandler *) src; | |
9585 | return (void *) dest; | |
9586 | } | |
9587 | ||
9588 | static void *SwigwxGenericDirCtrlTowxObject(void *ptr) { | |
9589 | wxGenericDirCtrl *src; | |
9590 | wxObject *dest; | |
9591 | src = (wxGenericDirCtrl *) ptr; | |
9592 | dest = (wxObject *) src; | |
9593 | return (void *) dest; | |
9594 | } | |
9595 | ||
9596 | #define new_wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
9597 | static PyObject *_wrap_new_wxGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9598 | PyObject * _resultobj; | |
9599 | wxGenericDirCtrl * _result; | |
9600 | wxWindow * _arg0; | |
9601 | wxWindowID _arg1 = (wxWindowID ) -1; | |
85247b36 | 9602 | char * _arg2 = (char *) wxDirDialogDefaultFolderStr; |
db34b2d4 RD |
9603 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
9604 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
9605 | long _arg5 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
85247b36 | 9606 | char * _arg6 = (char *) wxEmptyString; |
db34b2d4 | 9607 | int _arg7 = (int ) 0; |
85247b36 | 9608 | char * _arg8 = (char *) "dirCtrl"; |
db34b2d4 | 9609 | PyObject * _argo0 = 0; |
db34b2d4 RD |
9610 | wxPoint temp; |
9611 | PyObject * _obj3 = 0; | |
9612 | wxSize temp0; | |
9613 | PyObject * _obj4 = 0; | |
db34b2d4 RD |
9614 | char *_kwnames[] = { "parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; |
9615 | char _ptemp[128]; | |
9616 | ||
9617 | self = self; | |
85247b36 | 9618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|isOOlsis:new_wxGenericDirCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6,&_arg7,&_arg8)) |
db34b2d4 RD |
9619 | return NULL; |
9620 | if (_argo0) { | |
9621 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9622 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGenericDirCtrl. Expected _wxWindow_p."); | |
9624 | return NULL; | |
9625 | } | |
9626 | } | |
db34b2d4 RD |
9627 | if (_obj3) |
9628 | { | |
9629 | _arg3 = &temp; | |
9630 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9631 | return NULL; | |
9632 | } | |
9633 | if (_obj4) | |
9634 | { | |
9635 | _arg4 = &temp0; | |
9636 | if (! wxSize_helper(_obj4, &_arg4)) | |
9637 | return NULL; | |
db34b2d4 RD |
9638 | } |
9639 | { | |
9640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9641 | _result = (wxGenericDirCtrl *)new_wxGenericDirCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8); |
db34b2d4 RD |
9642 | |
9643 | wxPyEndAllowThreads(__tstate); | |
9644 | if (PyErr_Occurred()) return NULL; | |
9645 | } if (_result) { | |
9646 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
9647 | _resultobj = Py_BuildValue("s",_ptemp); | |
9648 | } else { | |
9649 | Py_INCREF(Py_None); | |
9650 | _resultobj = Py_None; | |
9651 | } | |
db34b2d4 RD |
9652 | return _resultobj; |
9653 | } | |
9654 | ||
9655 | #define new_wxPreGenericDirCtrl() (new wxGenericDirCtrl()) | |
9656 | static PyObject *_wrap_new_wxPreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9657 | PyObject * _resultobj; | |
9658 | wxGenericDirCtrl * _result; | |
9659 | char *_kwnames[] = { NULL }; | |
9660 | char _ptemp[128]; | |
9661 | ||
9662 | self = self; | |
9663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGenericDirCtrl",_kwnames)) | |
9664 | return NULL; | |
9665 | { | |
9666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9667 | _result = (wxGenericDirCtrl *)new_wxPreGenericDirCtrl(); |
db34b2d4 RD |
9668 | |
9669 | wxPyEndAllowThreads(__tstate); | |
9670 | if (PyErr_Occurred()) return NULL; | |
9671 | } if (_result) { | |
9672 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
9673 | _resultobj = Py_BuildValue("s",_ptemp); | |
9674 | } else { | |
9675 | Py_INCREF(Py_None); | |
9676 | _resultobj = Py_None; | |
9677 | } | |
9678 | return _resultobj; | |
9679 | } | |
9680 | ||
9681 | #define wxGenericDirCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
9682 | static PyObject *_wrap_wxGenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9683 | PyObject * _resultobj; | |
9684 | bool _result; | |
9685 | wxGenericDirCtrl * _arg0; | |
9686 | wxWindow * _arg1; | |
9687 | wxWindowID _arg2 = (wxWindowID ) -1; | |
85247b36 | 9688 | char * _arg3 = (char *) wxDirDialogDefaultFolderStr; |
db34b2d4 RD |
9689 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
9690 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
9691 | long _arg6 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
85247b36 | 9692 | char * _arg7 = (char *) wxEmptyString; |
db34b2d4 | 9693 | int _arg8 = (int ) 0; |
85247b36 | 9694 | char * _arg9 = (char *) "dirCtrl"; |
db34b2d4 RD |
9695 | PyObject * _argo0 = 0; |
9696 | PyObject * _argo1 = 0; | |
db34b2d4 RD |
9697 | wxPoint temp; |
9698 | PyObject * _obj4 = 0; | |
9699 | wxSize temp0; | |
9700 | PyObject * _obj5 = 0; | |
db34b2d4 RD |
9701 | char *_kwnames[] = { "self","parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; |
9702 | ||
9703 | self = self; | |
85247b36 | 9704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|isOOlsis:wxGenericDirCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_arg7,&_arg8,&_arg9)) |
db34b2d4 RD |
9705 | return NULL; |
9706 | if (_argo0) { | |
9707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
9709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
9710 | return NULL; | |
9711 | } | |
9712 | } | |
9713 | if (_argo1) { | |
9714 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9715 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGenericDirCtrl_Create. Expected _wxWindow_p."); | |
9717 | return NULL; | |
9718 | } | |
9719 | } | |
db34b2d4 RD |
9720 | if (_obj4) |
9721 | { | |
9722 | _arg4 = &temp; | |
9723 | if (! wxPoint_helper(_obj4, &_arg4)) | |
9724 | return NULL; | |
9725 | } | |
9726 | if (_obj5) | |
9727 | { | |
9728 | _arg5 = &temp0; | |
9729 | if (! wxSize_helper(_obj5, &_arg5)) | |
9730 | return NULL; | |
db34b2d4 RD |
9731 | } |
9732 | { | |
9733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9734 | _result = (bool )wxGenericDirCtrl_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9); |
db34b2d4 RD |
9735 | |
9736 | wxPyEndAllowThreads(__tstate); | |
9737 | if (PyErr_Occurred()) return NULL; | |
9738 | } _resultobj = Py_BuildValue("i",_result); | |
db34b2d4 RD |
9739 | return _resultobj; |
9740 | } | |
9741 | ||
9742 | #define wxGenericDirCtrl_ExpandPath(_swigobj,_swigarg0) (_swigobj->ExpandPath(_swigarg0)) | |
9743 | static PyObject *_wrap_wxGenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9744 | PyObject * _resultobj; | |
9745 | bool _result; | |
9746 | wxGenericDirCtrl * _arg0; | |
9747 | wxString * _arg1; | |
9748 | PyObject * _argo0 = 0; | |
9749 | PyObject * _obj1 = 0; | |
9750 | char *_kwnames[] = { "self","path", NULL }; | |
9751 | ||
9752 | self = self; | |
9753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_ExpandPath",_kwnames,&_argo0,&_obj1)) | |
9754 | return NULL; | |
9755 | if (_argo0) { | |
9756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
9758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ExpandPath. Expected _wxGenericDirCtrl_p."); | |
9759 | return NULL; | |
9760 | } | |
9761 | } | |
9762 | { | |
c8bc7bb8 RD |
9763 | _arg1 = wxString_in_helper(_obj1); |
9764 | if (_arg1 == NULL) | |
db34b2d4 | 9765 | return NULL; |
db34b2d4 RD |
9766 | } |
9767 | { | |
9768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9769 | _result = (bool )wxGenericDirCtrl_ExpandPath(_arg0,*_arg1); |
db34b2d4 RD |
9770 | |
9771 | wxPyEndAllowThreads(__tstate); | |
9772 | if (PyErr_Occurred()) return NULL; | |
9773 | } _resultobj = Py_BuildValue("i",_result); | |
9774 | { | |
9775 | if (_obj1) | |
9776 | delete _arg1; | |
9777 | } | |
9778 | return _resultobj; | |
9779 | } | |
9780 | ||
9781 | #define wxGenericDirCtrl_GetDefaultPath(_swigobj) (_swigobj->GetDefaultPath()) | |
9782 | static PyObject *_wrap_wxGenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9783 | PyObject * _resultobj; | |
9784 | wxString * _result; | |
9785 | wxGenericDirCtrl * _arg0; | |
9786 | PyObject * _argo0 = 0; | |
9787 | char *_kwnames[] = { "self", NULL }; | |
9788 | ||
9789 | self = self; | |
9790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetDefaultPath",_kwnames,&_argo0)) | |
9791 | return NULL; | |
9792 | if (_argo0) { | |
9793 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9794 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
9795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
9796 | return NULL; | |
9797 | } | |
9798 | } | |
9799 | { | |
9800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9801 | _result = new wxString (wxGenericDirCtrl_GetDefaultPath(_arg0)); |
db34b2d4 RD |
9802 | |
9803 | wxPyEndAllowThreads(__tstate); | |
9804 | if (PyErr_Occurred()) return NULL; | |
9805 | }{ | |
c8bc7bb8 RD |
9806 | #if wxUSE_UNICODE |
9807 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9808 | #else | |
db34b2d4 | 9809 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9810 | #endif |
db34b2d4 RD |
9811 | } |
9812 | { | |
9813 | delete _result; | |
9814 | } | |
9815 | return _resultobj; | |
9816 | } | |
9817 | ||
9818 | #define wxGenericDirCtrl_SetDefaultPath(_swigobj,_swigarg0) (_swigobj->SetDefaultPath(_swigarg0)) | |
9819 | static PyObject *_wrap_wxGenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9820 | PyObject * _resultobj; | |
9821 | wxGenericDirCtrl * _arg0; | |
9822 | wxString * _arg1; | |
9823 | PyObject * _argo0 = 0; | |
9824 | PyObject * _obj1 = 0; | |
9825 | char *_kwnames[] = { "self","path", NULL }; | |
9826 | ||
9827 | self = self; | |
9828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetDefaultPath",_kwnames,&_argo0,&_obj1)) | |
9829 | return NULL; | |
9830 | if (_argo0) { | |
9831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
9833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
9834 | return NULL; | |
9835 | } | |
9836 | } | |
9837 | { | |
c8bc7bb8 RD |
9838 | _arg1 = wxString_in_helper(_obj1); |
9839 | if (_arg1 == NULL) | |
db34b2d4 | 9840 | return NULL; |
db34b2d4 RD |
9841 | } |
9842 | { | |
9843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9844 | wxGenericDirCtrl_SetDefaultPath(_arg0,*_arg1); |
db34b2d4 RD |
9845 | |
9846 | wxPyEndAllowThreads(__tstate); | |
9847 | if (PyErr_Occurred()) return NULL; | |
9848 | } Py_INCREF(Py_None); | |
9849 | _resultobj = Py_None; | |
9850 | { | |
9851 | if (_obj1) | |
9852 | delete _arg1; | |
9853 | } | |
9854 | return _resultobj; | |
9855 | } | |
9856 | ||
9857 | #define wxGenericDirCtrl_GetPath(_swigobj) (_swigobj->GetPath()) | |
9858 | static PyObject *_wrap_wxGenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9859 | PyObject * _resultobj; | |
9860 | wxString * _result; | |
9861 | wxGenericDirCtrl * _arg0; | |
9862 | PyObject * _argo0 = 0; | |
9863 | char *_kwnames[] = { "self", NULL }; | |
9864 | ||
9865 | self = self; | |
9866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetPath",_kwnames,&_argo0)) | |
9867 | return NULL; | |
9868 | if (_argo0) { | |
9869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
9871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetPath. Expected _wxGenericDirCtrl_p."); | |
9872 | return NULL; | |
9873 | } | |
9874 | } | |
9875 | { | |
9876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9877 | _result = new wxString (wxGenericDirCtrl_GetPath(_arg0)); |
db34b2d4 RD |
9878 | |
9879 | wxPyEndAllowThreads(__tstate); | |
9880 | if (PyErr_Occurred()) return NULL; | |
9881 | }{ | |
c8bc7bb8 RD |
9882 | #if wxUSE_UNICODE |
9883 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9884 | #else | |
db34b2d4 | 9885 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9886 | #endif |
db34b2d4 RD |
9887 | } |
9888 | { | |
9889 | delete _result; | |
9890 | } | |
9891 | return _resultobj; | |
9892 | } | |
9893 | ||
9894 | #define wxGenericDirCtrl_GetFilePath(_swigobj) (_swigobj->GetFilePath()) | |
9895 | static PyObject *_wrap_wxGenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9896 | PyObject * _resultobj; | |
9897 | wxString * _result; | |
9898 | wxGenericDirCtrl * _arg0; | |
9899 | PyObject * _argo0 = 0; | |
9900 | char *_kwnames[] = { "self", NULL }; | |
9901 | ||
9902 | self = self; | |
9903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilePath",_kwnames,&_argo0)) | |
9904 | return NULL; | |
9905 | if (_argo0) { | |
9906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
9908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilePath. Expected _wxGenericDirCtrl_p."); | |
9909 | return NULL; | |
9910 | } | |
9911 | } | |
9912 | { | |
9913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9914 | _result = new wxString (wxGenericDirCtrl_GetFilePath(_arg0)); |
db34b2d4 RD |
9915 | |
9916 | wxPyEndAllowThreads(__tstate); | |
9917 | if (PyErr_Occurred()) return NULL; | |
9918 | }{ | |
c8bc7bb8 RD |
9919 | #if wxUSE_UNICODE |
9920 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9921 | #else | |
db34b2d4 | 9922 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9923 | #endif |
db34b2d4 RD |
9924 | } |
9925 | { | |
9926 | delete _result; | |
9927 | } | |
9928 | return _resultobj; | |
9929 | } | |
9930 | ||
9931 | #define wxGenericDirCtrl_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0)) | |
9932 | static PyObject *_wrap_wxGenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9933 | PyObject * _resultobj; | |
9934 | wxGenericDirCtrl * _arg0; | |
9935 | wxString * _arg1; | |
9936 | PyObject * _argo0 = 0; | |
9937 | PyObject * _obj1 = 0; | |
9938 | char *_kwnames[] = { "self","path", NULL }; | |
9939 | ||
9940 | self = self; | |
9941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetPath",_kwnames,&_argo0,&_obj1)) | |
9942 | return NULL; | |
9943 | if (_argo0) { | |
9944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
9946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetPath. Expected _wxGenericDirCtrl_p."); | |
9947 | return NULL; | |
9948 | } | |
9949 | } | |
9950 | { | |
c8bc7bb8 RD |
9951 | _arg1 = wxString_in_helper(_obj1); |
9952 | if (_arg1 == NULL) | |
db34b2d4 | 9953 | return NULL; |
db34b2d4 RD |
9954 | } |
9955 | { | |
9956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9957 | wxGenericDirCtrl_SetPath(_arg0,*_arg1); |
db34b2d4 RD |
9958 | |
9959 | wxPyEndAllowThreads(__tstate); | |
9960 | if (PyErr_Occurred()) return NULL; | |
9961 | } Py_INCREF(Py_None); | |
9962 | _resultobj = Py_None; | |
9963 | { | |
9964 | if (_obj1) | |
9965 | delete _arg1; | |
9966 | } | |
9967 | return _resultobj; | |
9968 | } | |
9969 | ||
9970 | #define wxGenericDirCtrl_ShowHidden(_swigobj,_swigarg0) (_swigobj->ShowHidden(_swigarg0)) | |
9971 | static PyObject *_wrap_wxGenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9972 | PyObject * _resultobj; | |
9973 | wxGenericDirCtrl * _arg0; | |
9974 | bool _arg1; | |
9975 | PyObject * _argo0 = 0; | |
9976 | int tempbool1; | |
9977 | char *_kwnames[] = { "self","show", NULL }; | |
9978 | ||
9979 | self = self; | |
9980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_ShowHidden",_kwnames,&_argo0,&tempbool1)) | |
9981 | return NULL; | |
9982 | if (_argo0) { | |
9983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
9985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ShowHidden. Expected _wxGenericDirCtrl_p."); | |
9986 | return NULL; | |
9987 | } | |
9988 | } | |
9989 | _arg1 = (bool ) tempbool1; | |
9990 | { | |
9991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9992 | wxGenericDirCtrl_ShowHidden(_arg0,_arg1); |
db34b2d4 RD |
9993 | |
9994 | wxPyEndAllowThreads(__tstate); | |
9995 | if (PyErr_Occurred()) return NULL; | |
9996 | } Py_INCREF(Py_None); | |
9997 | _resultobj = Py_None; | |
9998 | return _resultobj; | |
9999 | } | |
10000 | ||
10001 | #define wxGenericDirCtrl_GetShowHidden(_swigobj) (_swigobj->GetShowHidden()) | |
10002 | static PyObject *_wrap_wxGenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10003 | PyObject * _resultobj; | |
10004 | bool _result; | |
10005 | wxGenericDirCtrl * _arg0; | |
10006 | PyObject * _argo0 = 0; | |
10007 | char *_kwnames[] = { "self", NULL }; | |
10008 | ||
10009 | self = self; | |
10010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetShowHidden",_kwnames,&_argo0)) | |
10011 | return NULL; | |
10012 | if (_argo0) { | |
10013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetShowHidden. Expected _wxGenericDirCtrl_p."); | |
10016 | return NULL; | |
10017 | } | |
10018 | } | |
10019 | { | |
10020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10021 | _result = (bool )wxGenericDirCtrl_GetShowHidden(_arg0); |
db34b2d4 RD |
10022 | |
10023 | wxPyEndAllowThreads(__tstate); | |
10024 | if (PyErr_Occurred()) return NULL; | |
10025 | } _resultobj = Py_BuildValue("i",_result); | |
10026 | return _resultobj; | |
10027 | } | |
10028 | ||
10029 | #define wxGenericDirCtrl_GetFilter(_swigobj) (_swigobj->GetFilter()) | |
10030 | static PyObject *_wrap_wxGenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10031 | PyObject * _resultobj; | |
10032 | wxString * _result; | |
10033 | wxGenericDirCtrl * _arg0; | |
10034 | PyObject * _argo0 = 0; | |
10035 | char *_kwnames[] = { "self", NULL }; | |
10036 | ||
10037 | self = self; | |
10038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilter",_kwnames,&_argo0)) | |
10039 | return NULL; | |
10040 | if (_argo0) { | |
10041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilter. Expected _wxGenericDirCtrl_p."); | |
10044 | return NULL; | |
10045 | } | |
10046 | } | |
10047 | { | |
10048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10049 | _result = new wxString (wxGenericDirCtrl_GetFilter(_arg0)); |
db34b2d4 RD |
10050 | |
10051 | wxPyEndAllowThreads(__tstate); | |
10052 | if (PyErr_Occurred()) return NULL; | |
10053 | }{ | |
c8bc7bb8 RD |
10054 | #if wxUSE_UNICODE |
10055 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10056 | #else | |
db34b2d4 | 10057 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10058 | #endif |
db34b2d4 RD |
10059 | } |
10060 | { | |
10061 | delete _result; | |
10062 | } | |
10063 | return _resultobj; | |
10064 | } | |
10065 | ||
10066 | #define wxGenericDirCtrl_SetFilter(_swigobj,_swigarg0) (_swigobj->SetFilter(_swigarg0)) | |
10067 | static PyObject *_wrap_wxGenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10068 | PyObject * _resultobj; | |
10069 | wxGenericDirCtrl * _arg0; | |
10070 | wxString * _arg1; | |
10071 | PyObject * _argo0 = 0; | |
10072 | PyObject * _obj1 = 0; | |
10073 | char *_kwnames[] = { "self","filter", NULL }; | |
10074 | ||
10075 | self = self; | |
10076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetFilter",_kwnames,&_argo0,&_obj1)) | |
10077 | return NULL; | |
10078 | if (_argo0) { | |
10079 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10080 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilter. Expected _wxGenericDirCtrl_p."); | |
10082 | return NULL; | |
10083 | } | |
10084 | } | |
10085 | { | |
c8bc7bb8 RD |
10086 | _arg1 = wxString_in_helper(_obj1); |
10087 | if (_arg1 == NULL) | |
db34b2d4 | 10088 | return NULL; |
db34b2d4 RD |
10089 | } |
10090 | { | |
10091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10092 | wxGenericDirCtrl_SetFilter(_arg0,*_arg1); |
db34b2d4 RD |
10093 | |
10094 | wxPyEndAllowThreads(__tstate); | |
10095 | if (PyErr_Occurred()) return NULL; | |
10096 | } Py_INCREF(Py_None); | |
10097 | _resultobj = Py_None; | |
10098 | { | |
10099 | if (_obj1) | |
10100 | delete _arg1; | |
10101 | } | |
10102 | return _resultobj; | |
10103 | } | |
10104 | ||
10105 | #define wxGenericDirCtrl_GetFilterIndex(_swigobj) (_swigobj->GetFilterIndex()) | |
10106 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10107 | PyObject * _resultobj; | |
10108 | int _result; | |
10109 | wxGenericDirCtrl * _arg0; | |
10110 | PyObject * _argo0 = 0; | |
10111 | char *_kwnames[] = { "self", NULL }; | |
10112 | ||
10113 | self = self; | |
10114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterIndex",_kwnames,&_argo0)) | |
10115 | return NULL; | |
10116 | if (_argo0) { | |
10117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10120 | return NULL; | |
10121 | } | |
10122 | } | |
10123 | { | |
10124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10125 | _result = (int )wxGenericDirCtrl_GetFilterIndex(_arg0); |
db34b2d4 RD |
10126 | |
10127 | wxPyEndAllowThreads(__tstate); | |
10128 | if (PyErr_Occurred()) return NULL; | |
10129 | } _resultobj = Py_BuildValue("i",_result); | |
10130 | return _resultobj; | |
10131 | } | |
10132 | ||
10133 | #define wxGenericDirCtrl_SetFilterIndex(_swigobj,_swigarg0) (_swigobj->SetFilterIndex(_swigarg0)) | |
10134 | static PyObject *_wrap_wxGenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10135 | PyObject * _resultobj; | |
10136 | wxGenericDirCtrl * _arg0; | |
10137 | int _arg1; | |
10138 | PyObject * _argo0 = 0; | |
10139 | char *_kwnames[] = { "self","n", NULL }; | |
10140 | ||
10141 | self = self; | |
10142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_SetFilterIndex",_kwnames,&_argo0,&_arg1)) | |
10143 | return NULL; | |
10144 | if (_argo0) { | |
10145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10148 | return NULL; | |
10149 | } | |
10150 | } | |
10151 | { | |
10152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10153 | wxGenericDirCtrl_SetFilterIndex(_arg0,_arg1); |
db34b2d4 RD |
10154 | |
10155 | wxPyEndAllowThreads(__tstate); | |
10156 | if (PyErr_Occurred()) return NULL; | |
10157 | } Py_INCREF(Py_None); | |
10158 | _resultobj = Py_None; | |
10159 | return _resultobj; | |
10160 | } | |
10161 | ||
10162 | #define wxGenericDirCtrl_GetRootId(_swigobj) (_swigobj->GetRootId()) | |
10163 | static PyObject *_wrap_wxGenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10164 | PyObject * _resultobj; | |
10165 | wxTreeItemId * _result; | |
10166 | wxGenericDirCtrl * _arg0; | |
10167 | PyObject * _argo0 = 0; | |
10168 | char *_kwnames[] = { "self", NULL }; | |
10169 | char _ptemp[128]; | |
10170 | ||
10171 | self = self; | |
10172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetRootId",_kwnames,&_argo0)) | |
10173 | return NULL; | |
10174 | if (_argo0) { | |
10175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetRootId. Expected _wxGenericDirCtrl_p."); | |
10178 | return NULL; | |
10179 | } | |
10180 | } | |
10181 | { | |
10182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10183 | _result = new wxTreeItemId (wxGenericDirCtrl_GetRootId(_arg0)); |
db34b2d4 RD |
10184 | |
10185 | wxPyEndAllowThreads(__tstate); | |
10186 | if (PyErr_Occurred()) return NULL; | |
10187 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
10188 | _resultobj = Py_BuildValue("s",_ptemp); | |
10189 | return _resultobj; | |
10190 | } | |
10191 | ||
10192 | #define wxGenericDirCtrl_GetTreeCtrl(_swigobj) (_swigobj->GetTreeCtrl()) | |
10193 | static PyObject *_wrap_wxGenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10194 | PyObject * _resultobj; | |
10195 | wxTreeCtrl * _result; | |
10196 | wxGenericDirCtrl * _arg0; | |
10197 | PyObject * _argo0 = 0; | |
10198 | char *_kwnames[] = { "self", NULL }; | |
10199 | char _ptemp[128]; | |
10200 | ||
10201 | self = self; | |
10202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetTreeCtrl",_kwnames,&_argo0)) | |
10203 | return NULL; | |
10204 | if (_argo0) { | |
10205 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10206 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetTreeCtrl. Expected _wxGenericDirCtrl_p."); | |
10208 | return NULL; | |
10209 | } | |
10210 | } | |
10211 | { | |
10212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10213 | _result = (wxTreeCtrl *)wxGenericDirCtrl_GetTreeCtrl(_arg0); |
db34b2d4 RD |
10214 | |
10215 | wxPyEndAllowThreads(__tstate); | |
10216 | if (PyErr_Occurred()) return NULL; | |
10217 | } if (_result) { | |
10218 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeCtrl_p"); | |
10219 | _resultobj = Py_BuildValue("s",_ptemp); | |
10220 | } else { | |
10221 | Py_INCREF(Py_None); | |
10222 | _resultobj = Py_None; | |
10223 | } | |
10224 | return _resultobj; | |
10225 | } | |
10226 | ||
10227 | #define wxGenericDirCtrl_GetFilterListCtrl(_swigobj) (_swigobj->GetFilterListCtrl()) | |
10228 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10229 | PyObject * _resultobj; | |
10230 | wxDirFilterListCtrl * _result; | |
10231 | wxGenericDirCtrl * _arg0; | |
10232 | PyObject * _argo0 = 0; | |
10233 | char *_kwnames[] = { "self", NULL }; | |
10234 | char _ptemp[128]; | |
10235 | ||
10236 | self = self; | |
10237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterListCtrl",_kwnames,&_argo0)) | |
10238 | return NULL; | |
10239 | if (_argo0) { | |
10240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10243 | return NULL; | |
10244 | } | |
10245 | } | |
10246 | { | |
10247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10248 | _result = (wxDirFilterListCtrl *)wxGenericDirCtrl_GetFilterListCtrl(_arg0); |
db34b2d4 RD |
10249 | |
10250 | wxPyEndAllowThreads(__tstate); | |
10251 | if (PyErr_Occurred()) return NULL; | |
10252 | } if (_result) { | |
10253 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10254 | _resultobj = Py_BuildValue("s",_ptemp); | |
10255 | } else { | |
10256 | Py_INCREF(Py_None); | |
10257 | _resultobj = Py_None; | |
10258 | } | |
10259 | return _resultobj; | |
10260 | } | |
10261 | ||
10262 | static void *SwigwxDirFilterListCtrlTowxChoice(void *ptr) { | |
10263 | wxDirFilterListCtrl *src; | |
10264 | wxChoice *dest; | |
10265 | src = (wxDirFilterListCtrl *) ptr; | |
10266 | dest = (wxChoice *) src; | |
10267 | return (void *) dest; | |
10268 | } | |
10269 | ||
10270 | static void *SwigwxDirFilterListCtrlTowxControlWithItems(void *ptr) { | |
10271 | wxDirFilterListCtrl *src; | |
10272 | wxControlWithItems *dest; | |
10273 | src = (wxDirFilterListCtrl *) ptr; | |
10274 | dest = (wxControlWithItems *) src; | |
10275 | return (void *) dest; | |
10276 | } | |
10277 | ||
10278 | static void *SwigwxDirFilterListCtrlTowxControl(void *ptr) { | |
10279 | wxDirFilterListCtrl *src; | |
10280 | wxControl *dest; | |
10281 | src = (wxDirFilterListCtrl *) ptr; | |
10282 | dest = (wxControl *) src; | |
10283 | return (void *) dest; | |
10284 | } | |
10285 | ||
10286 | static void *SwigwxDirFilterListCtrlTowxWindow(void *ptr) { | |
10287 | wxDirFilterListCtrl *src; | |
10288 | wxWindow *dest; | |
10289 | src = (wxDirFilterListCtrl *) ptr; | |
10290 | dest = (wxWindow *) src; | |
10291 | return (void *) dest; | |
10292 | } | |
10293 | ||
10294 | static void *SwigwxDirFilterListCtrlTowxEvtHandler(void *ptr) { | |
10295 | wxDirFilterListCtrl *src; | |
10296 | wxEvtHandler *dest; | |
10297 | src = (wxDirFilterListCtrl *) ptr; | |
10298 | dest = (wxEvtHandler *) src; | |
10299 | return (void *) dest; | |
10300 | } | |
10301 | ||
10302 | static void *SwigwxDirFilterListCtrlTowxObject(void *ptr) { | |
10303 | wxDirFilterListCtrl *src; | |
10304 | wxObject *dest; | |
10305 | src = (wxDirFilterListCtrl *) ptr; | |
10306 | dest = (wxObject *) src; | |
10307 | return (void *) dest; | |
10308 | } | |
10309 | ||
10310 | #define new_wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10311 | static PyObject *_wrap_new_wxDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10312 | PyObject * _resultobj; | |
10313 | wxDirFilterListCtrl * _result; | |
10314 | wxGenericDirCtrl * _arg0; | |
10315 | wxWindowID _arg1 = (wxWindowID ) -1; | |
10316 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
10317 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
10318 | long _arg4 = (long ) 0; | |
10319 | PyObject * _argo0 = 0; | |
10320 | wxPoint temp; | |
10321 | PyObject * _obj2 = 0; | |
10322 | wxSize temp0; | |
10323 | PyObject * _obj3 = 0; | |
10324 | char *_kwnames[] = { "parent","id","pos","size","style", NULL }; | |
10325 | char _ptemp[128]; | |
10326 | ||
10327 | self = self; | |
10328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxDirFilterListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
10329 | return NULL; | |
10330 | if (_argo0) { | |
10331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDirFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10334 | return NULL; | |
10335 | } | |
10336 | } | |
10337 | if (_obj2) | |
10338 | { | |
10339 | _arg2 = &temp; | |
10340 | if (! wxPoint_helper(_obj2, &_arg2)) | |
10341 | return NULL; | |
10342 | } | |
10343 | if (_obj3) | |
10344 | { | |
10345 | _arg3 = &temp0; | |
10346 | if (! wxSize_helper(_obj3, &_arg3)) | |
10347 | return NULL; | |
10348 | } | |
10349 | { | |
10350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10351 | _result = (wxDirFilterListCtrl *)new_wxDirFilterListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
db34b2d4 RD |
10352 | |
10353 | wxPyEndAllowThreads(__tstate); | |
10354 | if (PyErr_Occurred()) return NULL; | |
10355 | } if (_result) { | |
10356 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10357 | _resultobj = Py_BuildValue("s",_ptemp); | |
10358 | } else { | |
10359 | Py_INCREF(Py_None); | |
10360 | _resultobj = Py_None; | |
10361 | } | |
10362 | return _resultobj; | |
10363 | } | |
10364 | ||
10365 | #define new_wxPreDirFilterListCtrl() (new wxDirFilterListCtrl()) | |
10366 | static PyObject *_wrap_new_wxPreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10367 | PyObject * _resultobj; | |
10368 | wxDirFilterListCtrl * _result; | |
10369 | char *_kwnames[] = { NULL }; | |
10370 | char _ptemp[128]; | |
10371 | ||
10372 | self = self; | |
10373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreDirFilterListCtrl",_kwnames)) | |
10374 | return NULL; | |
10375 | { | |
10376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10377 | _result = (wxDirFilterListCtrl *)new_wxPreDirFilterListCtrl(); |
db34b2d4 RD |
10378 | |
10379 | wxPyEndAllowThreads(__tstate); | |
10380 | if (PyErr_Occurred()) return NULL; | |
10381 | } if (_result) { | |
10382 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10383 | _resultobj = Py_BuildValue("s",_ptemp); | |
10384 | } else { | |
10385 | Py_INCREF(Py_None); | |
10386 | _resultobj = Py_None; | |
10387 | } | |
10388 | return _resultobj; | |
10389 | } | |
10390 | ||
10391 | #define wxDirFilterListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10392 | static PyObject *_wrap_wxDirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10393 | PyObject * _resultobj; | |
10394 | bool _result; | |
10395 | wxDirFilterListCtrl * _arg0; | |
10396 | wxGenericDirCtrl * _arg1; | |
10397 | wxWindowID _arg2 = (wxWindowID ) -1; | |
10398 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
10399 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
10400 | long _arg5 = (long ) 0; | |
10401 | PyObject * _argo0 = 0; | |
10402 | PyObject * _argo1 = 0; | |
10403 | wxPoint temp; | |
10404 | PyObject * _obj3 = 0; | |
10405 | wxSize temp0; | |
10406 | PyObject * _obj4 = 0; | |
10407 | char *_kwnames[] = { "self","parent","id","pos","size","style", NULL }; | |
10408 | ||
10409 | self = self; | |
10410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOl:wxDirFilterListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5)) | |
10411 | return NULL; | |
10412 | if (_argo0) { | |
10413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
10415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_Create. Expected _wxDirFilterListCtrl_p."); | |
10416 | return NULL; | |
10417 | } | |
10418 | } | |
10419 | if (_argo1) { | |
10420 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10421 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxGenericDirCtrl_p")) { | |
10422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDirFilterListCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
10423 | return NULL; | |
10424 | } | |
10425 | } | |
10426 | if (_obj3) | |
10427 | { | |
10428 | _arg3 = &temp; | |
10429 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10430 | return NULL; | |
10431 | } | |
10432 | if (_obj4) | |
10433 | { | |
10434 | _arg4 = &temp0; | |
10435 | if (! wxSize_helper(_obj4, &_arg4)) | |
10436 | return NULL; | |
10437 | } | |
10438 | { | |
10439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10440 | _result = (bool )wxDirFilterListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5); |
db34b2d4 RD |
10441 | |
10442 | wxPyEndAllowThreads(__tstate); | |
10443 | if (PyErr_Occurred()) return NULL; | |
10444 | } _resultobj = Py_BuildValue("i",_result); | |
10445 | return _resultobj; | |
10446 | } | |
10447 | ||
10448 | #define wxDirFilterListCtrl_FillFilterList(_swigobj,_swigarg0,_swigarg1) (_swigobj->FillFilterList(_swigarg0,_swigarg1)) | |
10449 | static PyObject *_wrap_wxDirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10450 | PyObject * _resultobj; | |
10451 | wxDirFilterListCtrl * _arg0; | |
10452 | wxString * _arg1; | |
10453 | int _arg2; | |
10454 | PyObject * _argo0 = 0; | |
10455 | PyObject * _obj1 = 0; | |
10456 | char *_kwnames[] = { "self","filter","defaultFilter", NULL }; | |
10457 | ||
10458 | self = self; | |
10459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxDirFilterListCtrl_FillFilterList",_kwnames,&_argo0,&_obj1,&_arg2)) | |
10460 | return NULL; | |
10461 | if (_argo0) { | |
10462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
10464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_FillFilterList. Expected _wxDirFilterListCtrl_p."); | |
10465 | return NULL; | |
10466 | } | |
10467 | } | |
10468 | { | |
c8bc7bb8 RD |
10469 | _arg1 = wxString_in_helper(_obj1); |
10470 | if (_arg1 == NULL) | |
db34b2d4 | 10471 | return NULL; |
db34b2d4 RD |
10472 | } |
10473 | { | |
10474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10475 | wxDirFilterListCtrl_FillFilterList(_arg0,*_arg1,_arg2); |
db34b2d4 RD |
10476 | |
10477 | wxPyEndAllowThreads(__tstate); | |
10478 | if (PyErr_Occurred()) return NULL; | |
10479 | } Py_INCREF(Py_None); | |
10480 | _resultobj = Py_None; | |
10481 | { | |
10482 | if (_obj1) | |
10483 | delete _arg1; | |
10484 | } | |
10485 | return _resultobj; | |
10486 | } | |
10487 | ||
8ab979d7 | 10488 | static PyMethodDef controls2cMethods[] = { |
db34b2d4 RD |
10489 | { "wxDirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_wxDirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, |
10490 | { "wxDirFilterListCtrl_Create", (PyCFunction) _wrap_wxDirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10491 | { "new_wxPreDirFilterListCtrl", (PyCFunction) _wrap_new_wxPreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10492 | { "new_wxDirFilterListCtrl", (PyCFunction) _wrap_new_wxDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10493 | { "wxGenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10494 | { "wxGenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10495 | { "wxGenericDirCtrl_GetRootId", (PyCFunction) _wrap_wxGenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
10496 | { "wxGenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
10497 | { "wxGenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
10498 | { "wxGenericDirCtrl_SetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
10499 | { "wxGenericDirCtrl_GetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
10500 | { "wxGenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
10501 | { "wxGenericDirCtrl_ShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
10502 | { "wxGenericDirCtrl_SetPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
10503 | { "wxGenericDirCtrl_GetFilePath", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
10504 | { "wxGenericDirCtrl_GetPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
10505 | { "wxGenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
10506 | { "wxGenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
10507 | { "wxGenericDirCtrl_ExpandPath", (PyCFunction) _wrap_wxGenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
10508 | { "wxGenericDirCtrl_Create", (PyCFunction) _wrap_wxGenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10509 | { "new_wxPreGenericDirCtrl", (PyCFunction) _wrap_new_wxPreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10510 | { "new_wxGenericDirCtrl", (PyCFunction) _wrap_new_wxGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10511 | { "wxDirItemData_m_isDir_get", (PyCFunction) _wrap_wxDirItemData_m_isDir_get, METH_VARARGS | METH_KEYWORDS }, | |
10512 | { "wxDirItemData_m_isDir_set", (PyCFunction) _wrap_wxDirItemData_m_isDir_set, METH_VARARGS | METH_KEYWORDS }, | |
10513 | { "wxDirItemData_m_isExpanded_get", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_get, METH_VARARGS | METH_KEYWORDS }, | |
10514 | { "wxDirItemData_m_isExpanded_set", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_set, METH_VARARGS | METH_KEYWORDS }, | |
10515 | { "wxDirItemData_m_isHidden_get", (PyCFunction) _wrap_wxDirItemData_m_isHidden_get, METH_VARARGS | METH_KEYWORDS }, | |
10516 | { "wxDirItemData_m_isHidden_set", (PyCFunction) _wrap_wxDirItemData_m_isHidden_set, METH_VARARGS | METH_KEYWORDS }, | |
10517 | { "wxDirItemData_m_name_get", (PyCFunction) _wrap_wxDirItemData_m_name_get, METH_VARARGS | METH_KEYWORDS }, | |
10518 | { "wxDirItemData_m_name_set", (PyCFunction) _wrap_wxDirItemData_m_name_set, METH_VARARGS | METH_KEYWORDS }, | |
10519 | { "wxDirItemData_m_path_get", (PyCFunction) _wrap_wxDirItemData_m_path_get, METH_VARARGS | METH_KEYWORDS }, | |
10520 | { "wxDirItemData_m_path_set", (PyCFunction) _wrap_wxDirItemData_m_path_set, METH_VARARGS | METH_KEYWORDS }, | |
10521 | { "wxDirItemData_SetNewDirName", (PyCFunction) _wrap_wxDirItemData_SetNewDirName, METH_VARARGS | METH_KEYWORDS }, | |
10522 | { "new_wxDirItemData", (PyCFunction) _wrap_new_wxDirItemData, METH_VARARGS | METH_KEYWORDS }, | |
74bcba0e | 10523 | { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 RD |
10524 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, |
10525 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10526 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10527 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
10528 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
10529 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10530 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10531 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, |
10532 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
10533 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
10534 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
10535 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
10536 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
10537 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
10538 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
10539 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
10540 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
10541 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
10542 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
10543 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
10544 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10545 | { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10546 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, |
10547 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
10548 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10549 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10550 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, |
10551 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
10552 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
10553 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
10554 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
10555 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
10556 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
10557 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10558 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 10559 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10560 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
10561 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
10562 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
10563 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
10564 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
10565 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
10566 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, | |
10567 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
10568 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10569 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10570 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
10571 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
10572 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10573 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10574 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
10575 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10576 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
10577 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, |
10578 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
10579 | { "wxTreeCtrl_AssignStateImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, |
10580 | { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10581 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, |
10582 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10583 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
10584 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10585 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
10586 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
10587 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
0220cbc1 | 10588 | { "wxTreeCtrl__setCallbackInfo", (PyCFunction) _wrap_wxTreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
10589 | { "wxTreeCtrl_Create", (PyCFunction) _wrap_wxTreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
10590 | { "new_wxPreTreeCtrl", (PyCFunction) _wrap_new_wxPreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10591 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, |
10592 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10593 | { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
65191ae8 | 10594 | { "wxTreeEvent_GetKeyEvent", (PyCFunction) _wrap_wxTreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10595 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, |
10596 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
10597 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 | 10598 | { "new_wxTreeEvent", (PyCFunction) _wrap_new_wxTreeEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10599 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, |
10600 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
10601 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
10602 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10603 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10604 | { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10605 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, |
10606 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
10607 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
10608 | { "wxTreeItemAttr_GetFont", (PyCFunction) _wrap_wxTreeItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, |
10609 | { "wxTreeItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10610 | { "wxTreeItemAttr_GetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10611 | { "wxTreeItemAttr_HasFont", (PyCFunction) _wrap_wxTreeItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
10612 | { "wxTreeItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10613 | { "wxTreeItemAttr_HasTextColour", (PyCFunction) _wrap_wxTreeItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10614 | { "wxTreeItemAttr_SetFont", (PyCFunction) _wrap_wxTreeItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10615 | { "wxTreeItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10616 | { "wxTreeItemAttr_SetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10617 | { "new_wxTreeItemAttr", (PyCFunction) _wrap_new_wxTreeItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
059a841c RD |
10618 | { "wxListView_ClearColumnImage", (PyCFunction) _wrap_wxListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, |
10619 | { "wxListView_SetColumnImage", (PyCFunction) _wrap_wxListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
10620 | { "wxListView_IsSelected", (PyCFunction) _wrap_wxListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
10621 | { "wxListView_GetFirstSelected", (PyCFunction) _wrap_wxListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
10622 | { "wxListView_GetNextSelected", (PyCFunction) _wrap_wxListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
10623 | { "wxListView_GetFocusedItem", (PyCFunction) _wrap_wxListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
10624 | { "wxListView_Focus", (PyCFunction) _wrap_wxListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
10625 | { "wxListView_Select", (PyCFunction) _wrap_wxListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
10626 | { "wxListView_Create", (PyCFunction) _wrap_wxListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
10627 | { "new_wxPreListView", (PyCFunction) _wrap_new_wxPreListView, METH_VARARGS | METH_KEYWORDS }, | |
10628 | { "new_wxListView", (PyCFunction) _wrap_new_wxListView, METH_VARARGS | METH_KEYWORDS }, | |
dcd38683 | 10629 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10630 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, |
cd096152 RD |
10631 | { "wxListCtrl_SetItemCount", (PyCFunction) _wrap_wxListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, |
10632 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
10633 | { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10634 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, |
10635 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
10636 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
10637 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10638 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10639 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, |
10640 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
10641 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
10642 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10643 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, |
10644 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
10645 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
10646 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
10647 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
10648 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
cd096152 RD |
10649 | { "wxListCtrl_RefreshItems", (PyCFunction) _wrap_wxListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, |
10650 | { "wxListCtrl_RefreshItem", (PyCFunction) _wrap_wxListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
10651 | { "wxListCtrl_IsVirtual", (PyCFunction) _wrap_wxListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
10652 | { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
10653 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10654 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10655 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
10656 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
10657 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
10658 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
10659 | { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10660 | { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10661 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10662 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
10663 | { "wxListCtrl_GetColumnCount", (PyCFunction) _wrap_wxListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
10664 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10665 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
10666 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
10667 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
10668 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10669 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10670 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10671 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10672 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10673 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
10674 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
10675 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
10676 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
10677 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
10678 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
10679 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
10680 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
10681 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10682 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10683 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10684 | { "wxListCtrl_SetForegroundColour", (PyCFunction) _wrap_wxListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
0220cbc1 | 10685 | { "wxListCtrl__setCallbackInfo", (PyCFunction) _wrap_wxListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
10686 | { "wxListCtrl_Create", (PyCFunction) _wrap_wxListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
10687 | { "new_wxPreListCtrl", (PyCFunction) _wrap_new_wxPreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10688 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, |
059a841c RD |
10689 | { "wxListEvent_GetCacheTo", (PyCFunction) _wrap_wxListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, |
10690 | { "wxListEvent_GetCacheFrom", (PyCFunction) _wrap_wxListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10691 | { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, |
10692 | { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
10693 | { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10694 | { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
10695 | { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10696 | { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10697 | { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10698 | { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
10699 | { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, |
10700 | { "wxListEvent_GetCode", (PyCFunction) _wrap_wxListEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10701 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, |
10702 | { "wxListEvent_m_item_set", (PyCFunction) _wrap_wxListEvent_m_item_set, METH_VARARGS | METH_KEYWORDS }, | |
10703 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
10704 | { "wxListEvent_m_pointDrag_set", (PyCFunction) _wrap_wxListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10705 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, |
10706 | { "wxListEvent_m_col_set", (PyCFunction) _wrap_wxListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10707 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
10708 | { "wxListEvent_m_itemIndex_set", (PyCFunction) _wrap_wxListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
6e8a778a RD |
10709 | { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
10710 | { "wxListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10711 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, |
10712 | { "wxListEvent_m_code_set", (PyCFunction) _wrap_wxListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
059a841c | 10713 | { "new_wxListEvent", (PyCFunction) _wrap_new_wxListEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10714 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, |
10715 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
10716 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
10717 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
10718 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
10719 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
10720 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
10721 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
10722 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
10723 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
10724 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
10725 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
10726 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
10727 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
10728 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
10729 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
10730 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
10731 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
10732 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
10733 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10734 | { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, |
10735 | { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10736 | { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10737 | { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
10738 | { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
10739 | { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
10740 | { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10741 | { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10742 | { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
10743 | { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10744 | { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
10745 | { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10746 | { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
10747 | { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
10748 | { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10749 | { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10750 | { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10751 | { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
10752 | { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10753 | { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
10754 | { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
10755 | { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
10756 | { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
10757 | { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
10758 | { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10759 | { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10760 | { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
10761 | { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
10762 | { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
10763 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
10764 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
10765 | { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10766 | { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10767 | { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10768 | { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
10769 | { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10770 | { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10771 | { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10772 | { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10773 | { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10774 | { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
10775 | { NULL, NULL } |
10776 | }; | |
1d99702e RD |
10777 | #ifdef __cplusplus |
10778 | } | |
10779 | #endif | |
10780 | /* | |
10781 | * This table is used by the pointer type-checker | |
10782 | */ | |
10783 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 10784 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, |
1d99702e | 10785 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, |
1d99702e | 10786 | { "_signed_long","_long",0}, |
b1462dfa | 10787 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
10788 | { "_wxPrintQuality","_int",0}, |
10789 | { "_wxPrintQuality","_signed_int",0}, | |
10790 | { "_wxPrintQuality","_unsigned_int",0}, | |
10791 | { "_wxPrintQuality","_wxWindowID",0}, | |
10792 | { "_wxPrintQuality","_uint",0}, | |
10793 | { "_wxPrintQuality","_EBool",0}, | |
10794 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 10795 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 10796 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, |
c368d904 | 10797 | { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
1d99702e | 10798 | { "_byte","_unsigned_char",0}, |
db34b2d4 | 10799 | { "_wxChoice","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxChoice}, |
1d99702e RD |
10800 | { "_long","_unsigned_long",0}, |
10801 | { "_long","_signed_long",0}, | |
b1462dfa | 10802 | { "_size_t","_wxCoord",0}, |
1d99702e | 10803 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 10804 | { "_size_t","_time_t",0}, |
1d99702e RD |
10805 | { "_size_t","_unsigned_int",0}, |
10806 | { "_size_t","_int",0}, | |
10807 | { "_size_t","_wxWindowID",0}, | |
10808 | { "_size_t","_uint",0}, | |
b1462dfa | 10809 | { "_uint","_wxCoord",0}, |
1d99702e | 10810 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 10811 | { "_uint","_time_t",0}, |
1d99702e RD |
10812 | { "_uint","_size_t",0}, |
10813 | { "_uint","_unsigned_int",0}, | |
10814 | { "_uint","_int",0}, | |
10815 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 10816 | { "_wxChar","_char",0}, |
1d99702e | 10817 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, |
1d99702e | 10818 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, |
f6bcfd97 | 10819 | { "_char","_wxChar",0}, |
059a841c | 10820 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 10821 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
10822 | { "_EBool","_wxPrintQuality",0}, |
10823 | { "_EBool","_signed_int",0}, | |
10824 | { "_EBool","_int",0}, | |
10825 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 10826 | { "_unsigned_long","_long",0}, |
059a841c | 10827 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 10828 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
10829 | { "_signed_int","_wxPrintQuality",0}, |
10830 | { "_signed_int","_EBool",0}, | |
10831 | { "_signed_int","_wxWindowID",0}, | |
10832 | { "_signed_int","_int",0}, | |
1d99702e RD |
10833 | { "_WXTYPE","_short",0}, |
10834 | { "_WXTYPE","_signed_short",0}, | |
10835 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
10836 | { "_unsigned_short","_WXTYPE",0}, |
10837 | { "_unsigned_short","_short",0}, | |
db34b2d4 RD |
10838 | { "_wxObject","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxObject}, |
10839 | { "_wxObject","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxObject}, | |
10840 | { "_wxObject","_wxDirItemData",SwigwxDirItemDataTowxObject}, | |
9df61a29 | 10841 | { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, |
9df61a29 | 10842 | { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject}, |
9df61a29 | 10843 | { "_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, |
059a841c | 10844 | { "_wxObject","_wxListView",SwigwxListViewTowxObject}, |
cd096152 | 10845 | { "_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, |
9df61a29 | 10846 | { "_wxObject","_wxListEvent",SwigwxListEventTowxObject}, |
9df61a29 | 10847 | { "_wxObject","_wxListItem",SwigwxListItemTowxObject}, |
1d99702e RD |
10848 | { "_signed_short","_WXTYPE",0}, |
10849 | { "_signed_short","_short",0}, | |
1d99702e | 10850 | { "_unsigned_char","_byte",0}, |
db34b2d4 RD |
10851 | { "_wxControl","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControl}, |
10852 | { "_wxControl","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxControl}, | |
f6bcfd97 | 10853 | { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
059a841c | 10854 | { "_wxControl","_wxListView",SwigwxListViewTowxControl}, |
cd096152 | 10855 | { "_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, |
b1462dfa | 10856 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 10857 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 10858 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
10859 | { "_unsigned_int","_size_t",0}, |
10860 | { "_unsigned_int","_uint",0}, | |
10861 | { "_unsigned_int","_wxWindowID",0}, | |
10862 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
10863 | { "_short","_WXTYPE",0}, |
10864 | { "_short","_unsigned_short",0}, | |
10865 | { "_short","_signed_short",0}, | |
db34b2d4 | 10866 | { "_wxControlWithItems","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControlWithItems}, |
b1462dfa | 10867 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 10868 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 10869 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
10870 | { "_wxWindowID","_size_t",0}, |
10871 | { "_wxWindowID","_EBool",0}, | |
10872 | { "_wxWindowID","_uint",0}, | |
10873 | { "_wxWindowID","_int",0}, | |
10874 | { "_wxWindowID","_signed_int",0}, | |
10875 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 10876 | { "_int","_wxCoord",0}, |
1d99702e | 10877 | { "_int","_wxPrintQuality",0}, |
c368d904 | 10878 | { "_int","_time_t",0}, |
1d99702e RD |
10879 | { "_int","_size_t",0}, |
10880 | { "_int","_EBool",0}, | |
10881 | { "_int","_uint",0}, | |
10882 | { "_int","_wxWindowID",0}, | |
10883 | { "_int","_unsigned_int",0}, | |
10884 | { "_int","_signed_int",0}, | |
c368d904 RD |
10885 | { "_time_t","_wxCoord",0}, |
10886 | { "_time_t","_wxPrintQuality",0}, | |
10887 | { "_time_t","_unsigned_int",0}, | |
10888 | { "_time_t","_int",0}, | |
10889 | { "_time_t","_wxWindowID",0}, | |
10890 | { "_time_t","_uint",0}, | |
10891 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
10892 | { "_wxCoord","_int",0}, |
10893 | { "_wxCoord","_signed_int",0}, | |
10894 | { "_wxCoord","_unsigned_int",0}, | |
10895 | { "_wxCoord","_wxWindowID",0}, | |
10896 | { "_wxCoord","_uint",0}, | |
10897 | { "_wxCoord","_EBool",0}, | |
10898 | { "_wxCoord","_size_t",0}, | |
c368d904 | 10899 | { "_wxCoord","_time_t",0}, |
b1462dfa | 10900 | { "_wxCoord","_wxPrintQuality",0}, |
059a841c | 10901 | { "_wxPyListCtrl","_wxListView",SwigwxListViewTowxPyListCtrl}, |
db34b2d4 RD |
10902 | { "_wxEvtHandler","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxEvtHandler}, |
10903 | { "_wxEvtHandler","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxEvtHandler}, | |
f6bcfd97 | 10904 | { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
059a841c | 10905 | { "_wxEvtHandler","_wxListView",SwigwxListViewTowxEvtHandler}, |
cd096152 | 10906 | { "_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, |
db34b2d4 RD |
10907 | { "_wxWindow","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxWindow}, |
10908 | { "_wxWindow","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxWindow}, | |
f6bcfd97 | 10909 | { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
059a841c | 10910 | { "_wxWindow","_wxListView",SwigwxListViewTowxWindow}, |
cd096152 | 10911 | { "_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, |
1d99702e RD |
10912 | {0,0,0}}; |
10913 | ||
8ab979d7 RD |
10914 | static PyObject *SWIG_globals; |
10915 | #ifdef __cplusplus | |
10916 | extern "C" | |
10917 | #endif | |
1d99702e | 10918 | SWIGEXPORT(void) initcontrols2c() { |
8ab979d7 RD |
10919 | PyObject *m, *d; |
10920 | SWIG_globals = SWIG_newvarlink(); | |
10921 | m = Py_InitModule("controls2c", controls2cMethods); | |
10922 | d = PyModule_GetDict(m); | |
cd096152 RD |
10923 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
10924 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
10925 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
10926 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
10927 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
10928 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
10929 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO)); | |
10930 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO)); | |
10931 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
10932 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
10933 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN)); | |
10934 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
10935 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK)); | |
10936 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
10937 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
10938 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
10939 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_CACHE_HINT)); | |
059a841c RD |
10940 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); |
10941 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
10942 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
10943 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
262e41eb | 10944 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_FOCUSED)); |
cd096152 RD |
10945 | PyDict_SetItemString(d,"wxLC_VRULES", PyInt_FromLong((long) wxLC_VRULES)); |
10946 | PyDict_SetItemString(d,"wxLC_HRULES", PyInt_FromLong((long) wxLC_HRULES)); | |
10947 | PyDict_SetItemString(d,"wxLC_ICON", PyInt_FromLong((long) wxLC_ICON)); | |
10948 | PyDict_SetItemString(d,"wxLC_SMALL_ICON", PyInt_FromLong((long) wxLC_SMALL_ICON)); | |
10949 | PyDict_SetItemString(d,"wxLC_LIST", PyInt_FromLong((long) wxLC_LIST)); | |
10950 | PyDict_SetItemString(d,"wxLC_REPORT", PyInt_FromLong((long) wxLC_REPORT)); | |
10951 | PyDict_SetItemString(d,"wxLC_ALIGN_TOP", PyInt_FromLong((long) wxLC_ALIGN_TOP)); | |
10952 | PyDict_SetItemString(d,"wxLC_ALIGN_LEFT", PyInt_FromLong((long) wxLC_ALIGN_LEFT)); | |
10953 | PyDict_SetItemString(d,"wxLC_AUTOARRANGE", PyInt_FromLong((long) wxLC_AUTOARRANGE)); | |
10954 | PyDict_SetItemString(d,"wxLC_VIRTUAL", PyInt_FromLong((long) wxLC_VIRTUAL)); | |
10955 | PyDict_SetItemString(d,"wxLC_EDIT_LABELS", PyInt_FromLong((long) wxLC_EDIT_LABELS)); | |
10956 | PyDict_SetItemString(d,"wxLC_NO_HEADER", PyInt_FromLong((long) wxLC_NO_HEADER)); | |
10957 | PyDict_SetItemString(d,"wxLC_NO_SORT_HEADER", PyInt_FromLong((long) wxLC_NO_SORT_HEADER)); | |
10958 | PyDict_SetItemString(d,"wxLC_SINGLE_SEL", PyInt_FromLong((long) wxLC_SINGLE_SEL)); | |
10959 | PyDict_SetItemString(d,"wxLC_SORT_ASCENDING", PyInt_FromLong((long) wxLC_SORT_ASCENDING)); | |
10960 | PyDict_SetItemString(d,"wxLC_SORT_DESCENDING", PyInt_FromLong((long) wxLC_SORT_DESCENDING)); | |
10961 | PyDict_SetItemString(d,"wxLC_MASK_TYPE", PyInt_FromLong((long) wxLC_MASK_TYPE)); | |
10962 | PyDict_SetItemString(d,"wxLC_MASK_ALIGN", PyInt_FromLong((long) wxLC_MASK_ALIGN)); | |
10963 | PyDict_SetItemString(d,"wxLC_MASK_SORT", PyInt_FromLong((long) wxLC_MASK_SORT)); | |
059a841c | 10964 | PyDict_SetItemString(d,"wxLC_USER_TEXT", PyInt_FromLong((long) wxLC_USER_TEXT)); |
cd096152 | 10965 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); |
af309447 RD |
10966 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); |
10967 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
10968 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
cd096152 | 10969 | PyDict_SetItemString(d,"wxLIST_SET_ITEM", PyInt_FromLong((long) wxLIST_SET_ITEM)); |
af309447 RD |
10970 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); |
10971 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
10972 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); | |
10973 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
10974 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
10975 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
10976 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
10977 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
10978 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
10979 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
10980 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
10981 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
10982 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
10983 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
10984 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
10985 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
10986 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
10987 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
10988 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
10989 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
10990 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
10991 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
10992 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
10993 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
10994 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
10995 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
af309447 RD |
10996 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); |
10997 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
10998 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
10999 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
11000 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
11001 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
11002 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
11003 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
11004 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
f6bcfd97 BP |
11005 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); |
11006 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
11007 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
11008 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
aa2a5b86 RD |
11009 | PyDict_SetItemString(d,"wxTR_NO_BUTTONS", PyInt_FromLong((long) wxTR_NO_BUTTONS)); |
11010 | PyDict_SetItemString(d,"wxTR_HAS_BUTTONS", PyInt_FromLong((long) wxTR_HAS_BUTTONS)); | |
11011 | PyDict_SetItemString(d,"wxTR_TWIST_BUTTONS", PyInt_FromLong((long) wxTR_TWIST_BUTTONS)); | |
11012 | PyDict_SetItemString(d,"wxTR_NO_LINES", PyInt_FromLong((long) wxTR_NO_LINES)); | |
11013 | PyDict_SetItemString(d,"wxTR_MAC_BUTTONS", PyInt_FromLong((long) wxTR_MAC_BUTTONS)); | |
1893b029 | 11014 | PyDict_SetItemString(d,"wxTR_AQUA_BUTTONS", PyInt_FromLong((long) wxTR_AQUA_BUTTONS)); |
aa2a5b86 RD |
11015 | PyDict_SetItemString(d,"wxTR_SINGLE", PyInt_FromLong((long) wxTR_SINGLE)); |
11016 | PyDict_SetItemString(d,"wxTR_MULTIPLE", PyInt_FromLong((long) wxTR_MULTIPLE)); | |
11017 | PyDict_SetItemString(d,"wxTR_EXTENDED", PyInt_FromLong((long) wxTR_EXTENDED)); | |
1893b029 | 11018 | PyDict_SetItemString(d,"wxTR_FULL_ROW_HIGHLIGHT", PyInt_FromLong((long) wxTR_FULL_ROW_HIGHLIGHT)); |
aa2a5b86 RD |
11019 | PyDict_SetItemString(d,"wxTR_EDIT_LABELS", PyInt_FromLong((long) wxTR_EDIT_LABELS)); |
11020 | PyDict_SetItemString(d,"wxTR_LINES_AT_ROOT", PyInt_FromLong((long) wxTR_LINES_AT_ROOT)); | |
11021 | PyDict_SetItemString(d,"wxTR_HIDE_ROOT", PyInt_FromLong((long) wxTR_HIDE_ROOT)); | |
11022 | PyDict_SetItemString(d,"wxTR_ROW_LINES", PyInt_FromLong((long) wxTR_ROW_LINES)); | |
11023 | PyDict_SetItemString(d,"wxTR_HAS_VARIABLE_ROW_HEIGHT", PyInt_FromLong((long) wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
11024 | PyDict_SetItemString(d,"wxTR_DEFAULT_STYLE", PyInt_FromLong((long) wxTR_DEFAULT_STYLE)); | |
694759cf RD |
11025 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); |
11026 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
11027 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
11028 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
11029 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
164b735b RD |
11030 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); |
11031 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
11032 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
11033 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
11034 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
11035 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
11036 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
11037 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
11038 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
11039 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
11040 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
11041 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
11042 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
11043 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
9c4165ad RD |
11044 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
11045 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
11046 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
11047 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
11048 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
11049 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO)); | |
11050 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO)); | |
11051 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
11052 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
11053 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
11054 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
11055 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
11056 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
11057 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN)); | |
11058 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
11059 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
11060 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
7a446686 | 11061 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG)); |
db34b2d4 RD |
11062 | PyDict_SetItemString(d,"wxDIRCTRL_DIR_ONLY", PyInt_FromLong((long) wxDIRCTRL_DIR_ONLY)); |
11063 | PyDict_SetItemString(d,"wxDIRCTRL_SELECT_FIRST", PyInt_FromLong((long) wxDIRCTRL_SELECT_FIRST)); | |
11064 | PyDict_SetItemString(d,"wxDIRCTRL_SHOW_FILTERS", PyInt_FromLong((long) wxDIRCTRL_SHOW_FILTERS)); | |
11065 | PyDict_SetItemString(d,"wxDIRCTRL_3D_INTERNAL", PyInt_FromLong((long) wxDIRCTRL_3D_INTERNAL)); | |
9df61a29 | 11066 | |
059a841c | 11067 | // Map renamed classes back to their common name for OOR |
9df61a29 RD |
11068 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); |
11069 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
059a841c | 11070 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); |
1d99702e RD |
11071 | { |
11072 | int i; | |
11073 | for (i = 0; _swig_mapping[i].n1; i++) | |
11074 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11075 | } | |
8ab979d7 | 11076 | } |