]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/msw/controls2.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
185d7c3e | 6 | * Version 1.1 (Build 883) |
8ab979d7 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
185d7c3e | 44 | |
8ab979d7 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initcontrols2c |
55 | ||
56 | #define SWIG_name "controls2c" | |
57 | ||
58 | #include "helpers.h" | |
2f90df85 RD |
59 | #ifdef __WXMSW__ |
60 | #include <windows.h> | |
61 | #endif | |
8ab979d7 RD |
62 | #include <wx/listctrl.h> |
63 | #include <wx/treectrl.h> | |
9416aa89 | 64 | #include <wx/imaglist.h> |
8ab979d7 | 65 | |
8ab979d7 RD |
66 | |
67 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
68 | PyObject* o2; | |
69 | PyObject* o3; | |
70 | ||
e0672e2f | 71 | if (!target) { |
8ab979d7 | 72 | target = o; |
e0672e2f | 73 | } else if (target == Py_None) { |
8ab979d7 RD |
74 | Py_DECREF(Py_None); |
75 | target = o; | |
e0672e2f | 76 | } else { |
8ab979d7 RD |
77 | if (!PyTuple_Check(target)) { |
78 | o2 = target; | |
79 | target = PyTuple_New(1); | |
80 | PyTuple_SetItem(target, 0, o2); | |
81 | } | |
e0672e2f RD |
82 | o3 = PyTuple_New(1); |
83 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
84 | |
85 | o2 = target; | |
e0672e2f RD |
86 | target = PySequence_Concat(o2, o3); |
87 | Py_DECREF(o2); | |
8ab979d7 RD |
88 | Py_DECREF(o3); |
89 | } | |
90 | return target; | |
91 | } | |
92 | ||
794c5cb1 RD |
93 | #if PYTHON_API_VERSION >= 1009 |
94 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
95 | #else | |
96 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
97 | #endif | |
09f3d4e6 | 98 | // C++ Version of a Python aware class |
c7e7022c RD |
99 | class wxPyListCtrl : public wxListCtrl { |
100 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
101 | public: | |
09f3d4e6 | 102 | wxPyListCtrl() : wxListCtrl() {} |
c7e7022c RD |
103 | wxPyListCtrl(wxWindow* parent, wxWindowID id, |
104 | const wxPoint& pos, | |
105 | const wxSize& size, | |
106 | long style, | |
107 | const wxValidator& validator, | |
108 | char* name) : | |
109 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
110 | ||
09f3d4e6 RD |
111 | bool Create(wxWindow* parent, wxWindowID id, |
112 | const wxPoint& pos, | |
113 | const wxSize& size, | |
114 | long style, | |
115 | const wxValidator& validator, | |
116 | char* name) { | |
117 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
118 | } | |
119 | ||
c7e7022c RD |
120 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); |
121 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
122 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
123 | ||
124 | PYPRIVATE; | |
125 | }; | |
126 | ||
127 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
128 | ||
129 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
130 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
131 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
6d19860f | 132 | // Python aware sorting function for wxPyListCtrl |
f6bcfd97 | 133 | int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { |
dcd38683 RD |
134 | int retval = 0; |
135 | PyObject* func = (PyObject*)funcPtr; | |
19a97bd6 | 136 | wxPyTState* state = wxPyBeginBlockThreads(); |
dcd38683 RD |
137 | |
138 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
139 | PyObject* result = PyEval_CallObject(func, args); | |
140 | Py_DECREF(args); | |
141 | if (result) { | |
142 | retval = PyInt_AsLong(result); | |
143 | Py_DECREF(result); | |
144 | } | |
145 | ||
19a97bd6 | 146 | wxPyEndBlockThreads(state); |
dcd38683 RD |
147 | return retval; |
148 | } | |
149 | ||
150 | ||
cf694132 RD |
151 | class wxPyTreeItemData : public wxTreeItemData { |
152 | public: | |
153 | wxPyTreeItemData(PyObject* obj = NULL) { | |
c368d904 | 154 | if (obj == NULL) |
cf694132 | 155 | obj = Py_None; |
c368d904 RD |
156 | Py_INCREF(obj); |
157 | m_obj = obj; | |
cf694132 RD |
158 | } |
159 | ||
160 | ~wxPyTreeItemData() { | |
19a97bd6 | 161 | wxPyTState* state = wxPyBeginBlockThreads(); |
c368d904 | 162 | Py_DECREF(m_obj); |
19a97bd6 | 163 | wxPyEndBlockThreads(state); |
cf694132 RD |
164 | } |
165 | ||
166 | PyObject* GetData() { | |
167 | Py_INCREF(m_obj); | |
168 | return m_obj; | |
169 | } | |
170 | ||
171 | void SetData(PyObject* obj) { | |
19a97bd6 | 172 | wxPyTState* state = wxPyBeginBlockThreads(); |
cf694132 | 173 | Py_DECREF(m_obj); |
19a97bd6 | 174 | wxPyEndBlockThreads(state); |
cf694132 RD |
175 | m_obj = obj; |
176 | Py_INCREF(obj); | |
177 | } | |
178 | ||
179 | PyObject* m_obj; | |
180 | }; | |
09f3d4e6 | 181 | // C++ version of Python aware wxTreeCtrl |
f6bcfd97 | 182 | class wxPyTreeCtrl : public wxTreeCtrl { |
3b36695d | 183 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); |
f6bcfd97 | 184 | public: |
09f3d4e6 | 185 | wxPyTreeCtrl() : wxTreeCtrl() {} |
f6bcfd97 BP |
186 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, |
187 | const wxPoint& pos, | |
188 | const wxSize& size, | |
189 | long style, | |
190 | const wxValidator& validator, | |
191 | char* name) : | |
192 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
193 | ||
09f3d4e6 RD |
194 | bool Create(wxWindow *parent, wxWindowID id, |
195 | const wxPoint& pos, | |
196 | const wxSize& size, | |
197 | long style, | |
198 | const wxValidator& validator, | |
199 | char* name) { | |
200 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
201 | } | |
202 | ||
203 | ||
f6bcfd97 BP |
204 | int OnCompareItems(const wxTreeItemId& item1, |
205 | const wxTreeItemId& item2) { | |
206 | int rval = 0; | |
19a97bd6 RD |
207 | bool found; |
208 | wxPyTState* state = wxPyBeginBlockThreads(); | |
209 | if ((found = m_myInst.findCallback("OnCompareItems"))) | |
f6bcfd97 BP |
210 | rval = m_myInst.callCallback(Py_BuildValue( |
211 | "(OO)", | |
212 | wxPyConstructObject((void*)&item1, "wxTreeItemId"), | |
213 | wxPyConstructObject((void*)&item2, "wxTreeItemId"))); | |
19a97bd6 RD |
214 | wxPyEndBlockThreads(state); |
215 | if (! found) | |
f6bcfd97 | 216 | rval = wxTreeCtrl::OnCompareItems(item1, item2); |
f6bcfd97 BP |
217 | return rval; |
218 | } | |
219 | PYPRIVATE; | |
220 | }; | |
221 | ||
3b36695d RD |
222 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); |
223 | ||
1d99702e RD |
224 | #ifdef __cplusplus |
225 | extern "C" { | |
226 | #endif | |
c7e7022c | 227 | #define new_wxListItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxListItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
f6bcfd97 | 228 | static PyObject *_wrap_new_wxListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 | 229 | PyObject * _resultobj; |
f6bcfd97 | 230 | wxListItemAttr * _result; |
c7e7022c RD |
231 | wxColour * _arg0 = (wxColour *) &wxNullColour; |
232 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
233 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
234 | wxColour temp; | |
235 | PyObject * _obj0 = 0; | |
236 | wxColour temp0; | |
237 | PyObject * _obj1 = 0; | |
238 | PyObject * _argo2 = 0; | |
239 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
f6bcfd97 | 240 | char _ptemp[128]; |
af309447 RD |
241 | |
242 | self = self; | |
c7e7022c RD |
243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxListItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) |
244 | return NULL; | |
245 | if (_obj0) | |
246 | { | |
247 | _arg0 = &temp; | |
248 | if (! wxColour_helper(_obj0, &_arg0)) | |
249 | return NULL; | |
250 | } | |
251 | if (_obj1) | |
252 | { | |
253 | _arg1 = &temp0; | |
254 | if (! wxColour_helper(_obj1, &_arg1)) | |
255 | return NULL; | |
256 | } | |
257 | if (_argo2) { | |
258 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
259 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxListItemAttr. Expected _wxFont_p."); | |
af309447 | 261 | return NULL; |
c7e7022c RD |
262 | } |
263 | } | |
cf694132 RD |
264 | { |
265 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 266 | _result = (wxListItemAttr *)new_wxListItemAttr(*_arg0,*_arg1,*_arg2); |
cf694132 RD |
267 | |
268 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 269 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
270 | } if (_result) { |
271 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
272 | _resultobj = Py_BuildValue("s",_ptemp); | |
273 | } else { | |
274 | Py_INCREF(Py_None); | |
275 | _resultobj = Py_None; | |
276 | } | |
af309447 RD |
277 | return _resultobj; |
278 | } | |
279 | ||
f6bcfd97 BP |
280 | #define wxListItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
281 | static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 282 | PyObject * _resultobj; |
f6bcfd97 BP |
283 | wxListItemAttr * _arg0; |
284 | wxColour * _arg1; | |
1d99702e | 285 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
286 | wxColour temp; |
287 | PyObject * _obj1 = 0; | |
288 | char *_kwnames[] = { "self","colText", NULL }; | |
8ab979d7 RD |
289 | |
290 | self = self; | |
f6bcfd97 | 291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 292 | return NULL; |
1d99702e RD |
293 | if (_argo0) { |
294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetTextColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
297 | return NULL; |
298 | } | |
299 | } | |
f6bcfd97 BP |
300 | { |
301 | _arg1 = &temp; | |
302 | if (! wxColour_helper(_obj1, &_arg1)) | |
303 | return NULL; | |
304 | } | |
cf694132 RD |
305 | { |
306 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 307 | wxListItemAttr_SetTextColour(_arg0,*_arg1); |
cf694132 RD |
308 | |
309 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 310 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
311 | } Py_INCREF(Py_None); |
312 | _resultobj = Py_None; | |
8ab979d7 RD |
313 | return _resultobj; |
314 | } | |
315 | ||
f6bcfd97 BP |
316 | #define wxListItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
317 | static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 318 | PyObject * _resultobj; |
f6bcfd97 BP |
319 | wxListItemAttr * _arg0; |
320 | wxColour * _arg1; | |
1d99702e | 321 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
322 | wxColour temp; |
323 | PyObject * _obj1 = 0; | |
324 | char *_kwnames[] = { "self","colBack", NULL }; | |
af309447 RD |
325 | |
326 | self = self; | |
f6bcfd97 | 327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
af309447 | 328 | return NULL; |
1d99702e RD |
329 | if (_argo0) { |
330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetBackgroundColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
333 | return NULL; |
334 | } | |
335 | } | |
f6bcfd97 BP |
336 | { |
337 | _arg1 = &temp; | |
338 | if (! wxColour_helper(_obj1, &_arg1)) | |
339 | return NULL; | |
340 | } | |
cf694132 RD |
341 | { |
342 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 343 | wxListItemAttr_SetBackgroundColour(_arg0,*_arg1); |
cf694132 RD |
344 | |
345 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 346 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
347 | } Py_INCREF(Py_None); |
348 | _resultobj = Py_None; | |
af309447 RD |
349 | return _resultobj; |
350 | } | |
351 | ||
f6bcfd97 BP |
352 | #define wxListItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
353 | static PyObject *_wrap_wxListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 354 | PyObject * _resultobj; |
f6bcfd97 BP |
355 | wxListItemAttr * _arg0; |
356 | wxFont * _arg1; | |
1d99702e | 357 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
358 | PyObject * _argo1 = 0; |
359 | char *_kwnames[] = { "self","font", NULL }; | |
8ab979d7 RD |
360 | |
361 | self = self; | |
f6bcfd97 | 362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 363 | return NULL; |
1d99702e RD |
364 | if (_argo0) { |
365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetFont. Expected _wxListItemAttr_p."); | |
368 | return NULL; | |
369 | } | |
370 | } | |
371 | if (_argo1) { | |
372 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
373 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetFont. Expected _wxFont_p."); | |
8ab979d7 RD |
375 | return NULL; |
376 | } | |
377 | } | |
cf694132 RD |
378 | { |
379 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 380 | wxListItemAttr_SetFont(_arg0,*_arg1); |
cf694132 RD |
381 | |
382 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 383 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
384 | } Py_INCREF(Py_None); |
385 | _resultobj = Py_None; | |
8ab979d7 RD |
386 | return _resultobj; |
387 | } | |
388 | ||
f6bcfd97 BP |
389 | #define wxListItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) |
390 | static PyObject *_wrap_wxListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 391 | PyObject * _resultobj; |
f6bcfd97 BP |
392 | bool _result; |
393 | wxListItemAttr * _arg0; | |
1d99702e | 394 | PyObject * _argo0 = 0; |
f6bcfd97 | 395 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
396 | |
397 | self = self; | |
f6bcfd97 | 398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasTextColour",_kwnames,&_argo0)) |
af309447 | 399 | return NULL; |
1d99702e RD |
400 | if (_argo0) { |
401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasTextColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
404 | return NULL; |
405 | } | |
406 | } | |
cf694132 RD |
407 | { |
408 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 409 | _result = (bool )wxListItemAttr_HasTextColour(_arg0); |
cf694132 RD |
410 | |
411 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 412 | if (PyErr_Occurred()) return NULL; |
cf694132 | 413 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
414 | return _resultobj; |
415 | } | |
416 | ||
f6bcfd97 BP |
417 | #define wxListItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) |
418 | static PyObject *_wrap_wxListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 419 | PyObject * _resultobj; |
f6bcfd97 BP |
420 | bool _result; |
421 | wxListItemAttr * _arg0; | |
1d99702e | 422 | PyObject * _argo0 = 0; |
efc5f224 | 423 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
424 | |
425 | self = self; | |
f6bcfd97 | 426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 427 | return NULL; |
1d99702e RD |
428 | if (_argo0) { |
429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasBackgroundColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
432 | return NULL; |
433 | } | |
434 | } | |
cf694132 RD |
435 | { |
436 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 437 | _result = (bool )wxListItemAttr_HasBackgroundColour(_arg0); |
cf694132 RD |
438 | |
439 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 440 | if (PyErr_Occurred()) return NULL; |
cf694132 | 441 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
442 | return _resultobj; |
443 | } | |
444 | ||
f6bcfd97 BP |
445 | #define wxListItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) |
446 | static PyObject *_wrap_wxListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 447 | PyObject * _resultobj; |
f6bcfd97 BP |
448 | bool _result; |
449 | wxListItemAttr * _arg0; | |
1d99702e | 450 | PyObject * _argo0 = 0; |
f6bcfd97 | 451 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
452 | |
453 | self = self; | |
f6bcfd97 | 454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasFont",_kwnames,&_argo0)) |
af309447 | 455 | return NULL; |
1d99702e RD |
456 | if (_argo0) { |
457 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
458 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasFont. Expected _wxListItemAttr_p."); | |
af309447 RD |
460 | return NULL; |
461 | } | |
462 | } | |
cf694132 RD |
463 | { |
464 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 465 | _result = (bool )wxListItemAttr_HasFont(_arg0); |
cf694132 RD |
466 | |
467 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 468 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 469 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
470 | return _resultobj; |
471 | } | |
472 | ||
f6bcfd97 BP |
473 | #define wxListItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
474 | static PyObject *_wrap_wxListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 475 | PyObject * _resultobj; |
f6bcfd97 BP |
476 | wxColour * _result; |
477 | wxListItemAttr * _arg0; | |
1d99702e | 478 | PyObject * _argo0 = 0; |
efc5f224 | 479 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 480 | char _ptemp[128]; |
8ab979d7 RD |
481 | |
482 | self = self; | |
f6bcfd97 | 483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 484 | return NULL; |
1d99702e RD |
485 | if (_argo0) { |
486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetTextColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
489 | return NULL; |
490 | } | |
491 | } | |
cf694132 RD |
492 | { |
493 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
494 | const wxColour & _result_ref = wxListItemAttr_GetTextColour(_arg0); |
495 | _result = (wxColour *) &_result_ref; | |
cf694132 RD |
496 | |
497 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 498 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
499 | } if (_result) { |
500 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
501 | _resultobj = Py_BuildValue("s",_ptemp); | |
502 | } else { | |
503 | Py_INCREF(Py_None); | |
504 | _resultobj = Py_None; | |
505 | } | |
8ab979d7 RD |
506 | return _resultobj; |
507 | } | |
508 | ||
f6bcfd97 BP |
509 | #define wxListItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) |
510 | static PyObject *_wrap_wxListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 511 | PyObject * _resultobj; |
f6bcfd97 BP |
512 | wxColour * _result; |
513 | wxListItemAttr * _arg0; | |
1d99702e | 514 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
515 | char *_kwnames[] = { "self", NULL }; |
516 | char _ptemp[128]; | |
af309447 RD |
517 | |
518 | self = self; | |
f6bcfd97 | 519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetBackgroundColour",_kwnames,&_argo0)) |
af309447 | 520 | return NULL; |
1d99702e RD |
521 | if (_argo0) { |
522 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
523 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetBackgroundColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
525 | return NULL; |
526 | } | |
527 | } | |
cf694132 RD |
528 | { |
529 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
530 | const wxColour & _result_ref = wxListItemAttr_GetBackgroundColour(_arg0); |
531 | _result = (wxColour *) &_result_ref; | |
cf694132 RD |
532 | |
533 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 534 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
535 | } if (_result) { |
536 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
537 | _resultobj = Py_BuildValue("s",_ptemp); | |
538 | } else { | |
539 | Py_INCREF(Py_None); | |
540 | _resultobj = Py_None; | |
541 | } | |
af309447 RD |
542 | return _resultobj; |
543 | } | |
544 | ||
f6bcfd97 BP |
545 | #define wxListItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) |
546 | static PyObject *_wrap_wxListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 547 | PyObject * _resultobj; |
f6bcfd97 BP |
548 | wxFont * _result; |
549 | wxListItemAttr * _arg0; | |
1d99702e | 550 | PyObject * _argo0 = 0; |
efc5f224 | 551 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 552 | char _ptemp[128]; |
8ab979d7 RD |
553 | |
554 | self = self; | |
f6bcfd97 | 555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 556 | return NULL; |
1d99702e RD |
557 | if (_argo0) { |
558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetFont. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
561 | return NULL; |
562 | } | |
563 | } | |
cf694132 RD |
564 | { |
565 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
566 | const wxFont & _result_ref = wxListItemAttr_GetFont(_arg0); |
567 | _result = (wxFont *) &_result_ref; | |
cf694132 RD |
568 | |
569 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 570 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
571 | } if (_result) { |
572 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
573 | _resultobj = Py_BuildValue("s",_ptemp); | |
574 | } else { | |
575 | Py_INCREF(Py_None); | |
576 | _resultobj = Py_None; | |
577 | } | |
8ab979d7 RD |
578 | return _resultobj; |
579 | } | |
580 | ||
9416aa89 RD |
581 | static void *SwigwxListItemTowxObject(void *ptr) { |
582 | wxListItem *src; | |
583 | wxObject *dest; | |
584 | src = (wxListItem *) ptr; | |
585 | dest = (wxObject *) src; | |
586 | return (void *) dest; | |
587 | } | |
588 | ||
f6bcfd97 BP |
589 | #define new_wxListItem() (new wxListItem()) |
590 | static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 591 | PyObject * _resultobj; |
f6bcfd97 BP |
592 | wxListItem * _result; |
593 | char *_kwnames[] = { NULL }; | |
594 | char _ptemp[128]; | |
af309447 RD |
595 | |
596 | self = self; | |
f6bcfd97 | 597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames)) |
af309447 | 598 | return NULL; |
af309447 | 599 | { |
cf694132 | 600 | wxPy_BEGIN_ALLOW_THREADS; |
f6bcfd97 | 601 | _result = (wxListItem *)new_wxListItem(); |
cf694132 RD |
602 | |
603 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 604 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
605 | } if (_result) { |
606 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
607 | _resultobj = Py_BuildValue("s",_ptemp); | |
608 | } else { | |
609 | Py_INCREF(Py_None); | |
610 | _resultobj = Py_None; | |
611 | } | |
af309447 RD |
612 | return _resultobj; |
613 | } | |
614 | ||
f6bcfd97 BP |
615 | #define delete_wxListItem(_swigobj) (delete _swigobj) |
616 | static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 617 | PyObject * _resultobj; |
8ab979d7 | 618 | wxListItem * _arg0; |
1d99702e | 619 | PyObject * _argo0 = 0; |
efc5f224 | 620 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
621 | |
622 | self = self; | |
f6bcfd97 | 623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0)) |
8ab979d7 | 624 | return NULL; |
1d99702e RD |
625 | if (_argo0) { |
626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p."); |
8ab979d7 RD |
629 | return NULL; |
630 | } | |
631 | } | |
8ab979d7 | 632 | { |
cf694132 | 633 | wxPy_BEGIN_ALLOW_THREADS; |
f6bcfd97 | 634 | delete_wxListItem(_arg0); |
cf694132 RD |
635 | |
636 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 637 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
638 | } Py_INCREF(Py_None); |
639 | _resultobj = Py_None; | |
8ab979d7 RD |
640 | return _resultobj; |
641 | } | |
642 | ||
f6bcfd97 BP |
643 | #define wxListItem_Clear(_swigobj) (_swigobj->Clear()) |
644 | static PyObject *_wrap_wxListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 645 | PyObject * _resultobj; |
af309447 | 646 | wxListItem * _arg0; |
1d99702e | 647 | PyObject * _argo0 = 0; |
f6bcfd97 | 648 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
649 | |
650 | self = self; | |
f6bcfd97 | 651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_Clear",_kwnames,&_argo0)) |
af309447 | 652 | return NULL; |
1d99702e RD |
653 | if (_argo0) { |
654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_Clear. Expected _wxListItem_p."); |
af309447 RD |
657 | return NULL; |
658 | } | |
659 | } | |
cf694132 RD |
660 | { |
661 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 662 | wxListItem_Clear(_arg0); |
cf694132 RD |
663 | |
664 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 665 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
666 | } Py_INCREF(Py_None); |
667 | _resultobj = Py_None; | |
af309447 RD |
668 | return _resultobj; |
669 | } | |
670 | ||
f6bcfd97 BP |
671 | #define wxListItem_ClearAttributes(_swigobj) (_swigobj->ClearAttributes()) |
672 | static PyObject *_wrap_wxListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 673 | PyObject * _resultobj; |
8ab979d7 | 674 | wxListItem * _arg0; |
1d99702e | 675 | PyObject * _argo0 = 0; |
efc5f224 | 676 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
677 | |
678 | self = self; | |
f6bcfd97 | 679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_ClearAttributes",_kwnames,&_argo0)) |
8ab979d7 | 680 | return NULL; |
1d99702e RD |
681 | if (_argo0) { |
682 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
683 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_ClearAttributes. Expected _wxListItem_p."); |
8ab979d7 RD |
685 | return NULL; |
686 | } | |
687 | } | |
cf694132 RD |
688 | { |
689 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 690 | wxListItem_ClearAttributes(_arg0); |
cf694132 RD |
691 | |
692 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 693 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
694 | } Py_INCREF(Py_None); |
695 | _resultobj = Py_None; | |
696 | return _resultobj; | |
697 | } | |
698 | ||
699 | #define wxListItem_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
700 | static PyObject *_wrap_wxListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
701 | PyObject * _resultobj; | |
702 | wxListItem * _arg0; | |
703 | long _arg1; | |
704 | PyObject * _argo0 = 0; | |
705 | char *_kwnames[] = { "self","mask", NULL }; | |
706 | ||
707 | self = self; | |
708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetMask",_kwnames,&_argo0,&_arg1)) | |
709 | return NULL; | |
710 | if (_argo0) { | |
711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetMask. Expected _wxListItem_p."); | |
714 | return NULL; | |
715 | } | |
716 | } | |
717 | { | |
718 | wxPy_BEGIN_ALLOW_THREADS; | |
719 | wxListItem_SetMask(_arg0,_arg1); | |
720 | ||
721 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 722 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
723 | } Py_INCREF(Py_None); |
724 | _resultobj = Py_None; | |
725 | return _resultobj; | |
726 | } | |
727 | ||
728 | #define wxListItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
729 | static PyObject *_wrap_wxListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
730 | PyObject * _resultobj; | |
731 | wxListItem * _arg0; | |
732 | long _arg1; | |
733 | PyObject * _argo0 = 0; | |
734 | char *_kwnames[] = { "self","id", NULL }; | |
735 | ||
736 | self = self; | |
737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetId",_kwnames,&_argo0,&_arg1)) | |
738 | return NULL; | |
739 | if (_argo0) { | |
740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetId. Expected _wxListItem_p."); | |
743 | return NULL; | |
744 | } | |
745 | } | |
746 | { | |
747 | wxPy_BEGIN_ALLOW_THREADS; | |
748 | wxListItem_SetId(_arg0,_arg1); | |
749 | ||
750 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 751 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
752 | } Py_INCREF(Py_None); |
753 | _resultobj = Py_None; | |
754 | return _resultobj; | |
755 | } | |
756 | ||
757 | #define wxListItem_SetColumn(_swigobj,_swigarg0) (_swigobj->SetColumn(_swigarg0)) | |
758 | static PyObject *_wrap_wxListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
759 | PyObject * _resultobj; | |
760 | wxListItem * _arg0; | |
761 | int _arg1; | |
762 | PyObject * _argo0 = 0; | |
763 | char *_kwnames[] = { "self","col", NULL }; | |
764 | ||
765 | self = self; | |
766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetColumn",_kwnames,&_argo0,&_arg1)) | |
767 | return NULL; | |
768 | if (_argo0) { | |
769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetColumn. Expected _wxListItem_p."); | |
772 | return NULL; | |
773 | } | |
774 | } | |
775 | { | |
776 | wxPy_BEGIN_ALLOW_THREADS; | |
777 | wxListItem_SetColumn(_arg0,_arg1); | |
778 | ||
779 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 780 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
781 | } Py_INCREF(Py_None); |
782 | _resultobj = Py_None; | |
783 | return _resultobj; | |
784 | } | |
785 | ||
786 | #define wxListItem_SetState(_swigobj,_swigarg0) (_swigobj->SetState(_swigarg0)) | |
787 | static PyObject *_wrap_wxListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
788 | PyObject * _resultobj; | |
789 | wxListItem * _arg0; | |
790 | long _arg1; | |
791 | PyObject * _argo0 = 0; | |
792 | char *_kwnames[] = { "self","state", NULL }; | |
793 | ||
794 | self = self; | |
795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetState",_kwnames,&_argo0,&_arg1)) | |
796 | return NULL; | |
797 | if (_argo0) { | |
798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetState. Expected _wxListItem_p."); | |
801 | return NULL; | |
802 | } | |
803 | } | |
804 | { | |
805 | wxPy_BEGIN_ALLOW_THREADS; | |
806 | wxListItem_SetState(_arg0,_arg1); | |
807 | ||
808 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 809 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
810 | } Py_INCREF(Py_None); |
811 | _resultobj = Py_None; | |
812 | return _resultobj; | |
813 | } | |
814 | ||
815 | #define wxListItem_SetStateMask(_swigobj,_swigarg0) (_swigobj->SetStateMask(_swigarg0)) | |
816 | static PyObject *_wrap_wxListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
817 | PyObject * _resultobj; | |
818 | wxListItem * _arg0; | |
819 | long _arg1; | |
820 | PyObject * _argo0 = 0; | |
821 | char *_kwnames[] = { "self","stateMask", NULL }; | |
822 | ||
823 | self = self; | |
824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetStateMask",_kwnames,&_argo0,&_arg1)) | |
825 | return NULL; | |
826 | if (_argo0) { | |
827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetStateMask. Expected _wxListItem_p."); | |
830 | return NULL; | |
831 | } | |
832 | } | |
833 | { | |
834 | wxPy_BEGIN_ALLOW_THREADS; | |
835 | wxListItem_SetStateMask(_arg0,_arg1); | |
836 | ||
837 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 838 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
839 | } Py_INCREF(Py_None); |
840 | _resultobj = Py_None; | |
841 | return _resultobj; | |
842 | } | |
843 | ||
844 | #define wxListItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
845 | static PyObject *_wrap_wxListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
846 | PyObject * _resultobj; | |
847 | wxListItem * _arg0; | |
848 | wxString * _arg1; | |
849 | PyObject * _argo0 = 0; | |
850 | PyObject * _obj1 = 0; | |
851 | char *_kwnames[] = { "self","text", NULL }; | |
852 | ||
853 | self = self; | |
854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetText",_kwnames,&_argo0,&_obj1)) | |
855 | return NULL; | |
856 | if (_argo0) { | |
857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetText. Expected _wxListItem_p."); | |
860 | return NULL; | |
861 | } | |
862 | } | |
863 | { | |
185d7c3e RD |
864 | #if PYTHON_API_VERSION >= 1009 |
865 | char* tmpPtr; int tmpSize; | |
866 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 867 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
868 | return NULL; |
869 | } | |
870 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
871 | return NULL; | |
872 | _arg1 = new wxString(tmpPtr, tmpSize); | |
873 | #else | |
f6bcfd97 BP |
874 | if (!PyString_Check(_obj1)) { |
875 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
876 | return NULL; | |
877 | } | |
185d7c3e RD |
878 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
879 | #endif | |
f6bcfd97 BP |
880 | } |
881 | { | |
882 | wxPy_BEGIN_ALLOW_THREADS; | |
883 | wxListItem_SetText(_arg0,*_arg1); | |
884 | ||
885 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 886 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
887 | } Py_INCREF(Py_None); |
888 | _resultobj = Py_None; | |
889 | { | |
890 | if (_obj1) | |
891 | delete _arg1; | |
892 | } | |
893 | return _resultobj; | |
894 | } | |
895 | ||
896 | #define wxListItem_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0)) | |
897 | static PyObject *_wrap_wxListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
898 | PyObject * _resultobj; | |
899 | wxListItem * _arg0; | |
900 | int _arg1; | |
901 | PyObject * _argo0 = 0; | |
902 | char *_kwnames[] = { "self","image", NULL }; | |
903 | ||
904 | self = self; | |
905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetImage",_kwnames,&_argo0,&_arg1)) | |
906 | return NULL; | |
907 | if (_argo0) { | |
908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetImage. Expected _wxListItem_p."); | |
911 | return NULL; | |
912 | } | |
913 | } | |
914 | { | |
915 | wxPy_BEGIN_ALLOW_THREADS; | |
916 | wxListItem_SetImage(_arg0,_arg1); | |
917 | ||
918 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 919 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
920 | } Py_INCREF(Py_None); |
921 | _resultobj = Py_None; | |
922 | return _resultobj; | |
923 | } | |
924 | ||
925 | #define wxListItem_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
926 | static PyObject *_wrap_wxListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
927 | PyObject * _resultobj; | |
928 | wxListItem * _arg0; | |
929 | long _arg1; | |
930 | PyObject * _argo0 = 0; | |
931 | char *_kwnames[] = { "self","data", NULL }; | |
932 | ||
933 | self = self; | |
934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetData",_kwnames,&_argo0,&_arg1)) | |
935 | return NULL; | |
936 | if (_argo0) { | |
937 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
938 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
939 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetData. Expected _wxListItem_p."); | |
940 | return NULL; | |
941 | } | |
942 | } | |
943 | { | |
944 | wxPy_BEGIN_ALLOW_THREADS; | |
945 | wxListItem_SetData(_arg0,_arg1); | |
946 | ||
947 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 948 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
949 | } Py_INCREF(Py_None); |
950 | _resultobj = Py_None; | |
951 | return _resultobj; | |
952 | } | |
953 | ||
954 | #define wxListItem_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
955 | static PyObject *_wrap_wxListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
956 | PyObject * _resultobj; | |
957 | wxListItem * _arg0; | |
958 | int _arg1; | |
959 | PyObject * _argo0 = 0; | |
960 | char *_kwnames[] = { "self","width", NULL }; | |
961 | ||
962 | self = self; | |
963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetWidth",_kwnames,&_argo0,&_arg1)) | |
964 | return NULL; | |
965 | if (_argo0) { | |
966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetWidth. Expected _wxListItem_p."); | |
969 | return NULL; | |
970 | } | |
971 | } | |
972 | { | |
973 | wxPy_BEGIN_ALLOW_THREADS; | |
974 | wxListItem_SetWidth(_arg0,_arg1); | |
975 | ||
976 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 977 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
978 | } Py_INCREF(Py_None); |
979 | _resultobj = Py_None; | |
980 | return _resultobj; | |
981 | } | |
982 | ||
983 | #define wxListItem_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0)) | |
984 | static PyObject *_wrap_wxListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
985 | PyObject * _resultobj; | |
986 | wxListItem * _arg0; | |
987 | wxListColumnFormat _arg1; | |
988 | PyObject * _argo0 = 0; | |
989 | char *_kwnames[] = { "self","align", NULL }; | |
990 | ||
991 | self = self; | |
992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetAlign",_kwnames,&_argo0,&_arg1)) | |
993 | return NULL; | |
994 | if (_argo0) { | |
995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetAlign. Expected _wxListItem_p."); | |
998 | return NULL; | |
999 | } | |
1000 | } | |
1001 | { | |
1002 | wxPy_BEGIN_ALLOW_THREADS; | |
1003 | wxListItem_SetAlign(_arg0,_arg1); | |
1004 | ||
1005 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 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_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
1013 | static PyObject *_wrap_wxListItem_SetTextColour(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","colText", NULL }; | |
1021 | ||
1022 | self = self; | |
1023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_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_SetTextColour. Expected _wxListItem_p."); | |
1029 | return NULL; | |
1030 | } | |
1031 | } | |
1032 | { | |
1033 | _arg1 = &temp; | |
1034 | if (! wxColour_helper(_obj1, &_arg1)) | |
1035 | return NULL; | |
1036 | } | |
1037 | { | |
1038 | wxPy_BEGIN_ALLOW_THREADS; | |
1039 | wxListItem_SetTextColour(_arg0,*_arg1); | |
1040 | ||
1041 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 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_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
1049 | static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1050 | PyObject * _resultobj; | |
1051 | wxListItem * _arg0; | |
1052 | wxColour * _arg1; | |
1053 | PyObject * _argo0 = 0; | |
1054 | wxColour temp; | |
1055 | PyObject * _obj1 = 0; | |
1056 | char *_kwnames[] = { "self","colBack", NULL }; | |
1057 | ||
1058 | self = self; | |
1059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
1060 | return NULL; | |
1061 | if (_argo0) { | |
1062 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1063 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetBackgroundColour. Expected _wxListItem_p."); | |
1065 | return NULL; | |
1066 | } | |
1067 | } | |
1068 | { | |
1069 | _arg1 = &temp; | |
1070 | if (! wxColour_helper(_obj1, &_arg1)) | |
1071 | return NULL; | |
1072 | } | |
1073 | { | |
1074 | wxPy_BEGIN_ALLOW_THREADS; | |
1075 | wxListItem_SetBackgroundColour(_arg0,*_arg1); | |
1076 | ||
1077 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1078 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1079 | } Py_INCREF(Py_None); |
1080 | _resultobj = Py_None; | |
1081 | return _resultobj; | |
1082 | } | |
1083 | ||
1084 | #define wxListItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1085 | static PyObject *_wrap_wxListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1086 | PyObject * _resultobj; | |
1087 | wxListItem * _arg0; | |
1088 | wxFont * _arg1; | |
1089 | PyObject * _argo0 = 0; | |
1090 | PyObject * _argo1 = 0; | |
1091 | char *_kwnames[] = { "self","font", NULL }; | |
1092 | ||
1093 | self = self; | |
1094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
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_SetFont. Expected _wxListItem_p."); | |
1100 | return NULL; | |
1101 | } | |
1102 | } | |
1103 | if (_argo1) { | |
1104 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1105 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
1106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetFont. Expected _wxFont_p."); | |
1107 | return NULL; | |
1108 | } | |
1109 | } | |
1110 | { | |
1111 | wxPy_BEGIN_ALLOW_THREADS; | |
1112 | wxListItem_SetFont(_arg0,*_arg1); | |
1113 | ||
1114 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1115 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1116 | } Py_INCREF(Py_None); |
1117 | _resultobj = Py_None; | |
1118 | return _resultobj; | |
1119 | } | |
1120 | ||
1121 | #define wxListItem_GetMask(_swigobj) (_swigobj->GetMask()) | |
1122 | static PyObject *_wrap_wxListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1123 | PyObject * _resultobj; | |
1124 | long _result; | |
1125 | wxListItem * _arg0; | |
1126 | PyObject * _argo0 = 0; | |
1127 | char *_kwnames[] = { "self", NULL }; | |
1128 | ||
1129 | self = self; | |
1130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetMask",_kwnames,&_argo0)) | |
1131 | return NULL; | |
1132 | if (_argo0) { | |
1133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetMask. Expected _wxListItem_p."); | |
1136 | return NULL; | |
1137 | } | |
1138 | } | |
1139 | { | |
1140 | wxPy_BEGIN_ALLOW_THREADS; | |
1141 | _result = (long )wxListItem_GetMask(_arg0); | |
1142 | ||
1143 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1144 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1145 | } _resultobj = Py_BuildValue("l",_result); |
1146 | return _resultobj; | |
1147 | } | |
1148 | ||
1149 | #define wxListItem_GetId(_swigobj) (_swigobj->GetId()) | |
1150 | static PyObject *_wrap_wxListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1151 | PyObject * _resultobj; | |
1152 | long _result; | |
1153 | wxListItem * _arg0; | |
1154 | PyObject * _argo0 = 0; | |
1155 | char *_kwnames[] = { "self", NULL }; | |
1156 | ||
1157 | self = self; | |
1158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetId",_kwnames,&_argo0)) | |
1159 | return NULL; | |
1160 | if (_argo0) { | |
1161 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1162 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetId. Expected _wxListItem_p."); | |
1164 | return NULL; | |
1165 | } | |
1166 | } | |
1167 | { | |
1168 | wxPy_BEGIN_ALLOW_THREADS; | |
1169 | _result = (long )wxListItem_GetId(_arg0); | |
1170 | ||
1171 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1172 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1173 | } _resultobj = Py_BuildValue("l",_result); |
1174 | return _resultobj; | |
1175 | } | |
1176 | ||
1177 | #define wxListItem_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
1178 | static PyObject *_wrap_wxListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1179 | PyObject * _resultobj; | |
1180 | int _result; | |
1181 | wxListItem * _arg0; | |
1182 | PyObject * _argo0 = 0; | |
1183 | char *_kwnames[] = { "self", NULL }; | |
1184 | ||
1185 | self = self; | |
1186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetColumn",_kwnames,&_argo0)) | |
1187 | return NULL; | |
1188 | if (_argo0) { | |
1189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetColumn. Expected _wxListItem_p."); | |
1192 | return NULL; | |
1193 | } | |
1194 | } | |
1195 | { | |
1196 | wxPy_BEGIN_ALLOW_THREADS; | |
1197 | _result = (int )wxListItem_GetColumn(_arg0); | |
1198 | ||
1199 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1200 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1201 | } _resultobj = Py_BuildValue("i",_result); |
1202 | return _resultobj; | |
1203 | } | |
1204 | ||
1205 | #define wxListItem_GetState(_swigobj) (_swigobj->GetState()) | |
1206 | static PyObject *_wrap_wxListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1207 | PyObject * _resultobj; | |
1208 | long _result; | |
1209 | wxListItem * _arg0; | |
1210 | PyObject * _argo0 = 0; | |
1211 | char *_kwnames[] = { "self", NULL }; | |
1212 | ||
1213 | self = self; | |
1214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetState",_kwnames,&_argo0)) | |
1215 | return NULL; | |
1216 | if (_argo0) { | |
1217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetState. Expected _wxListItem_p."); | |
1220 | return NULL; | |
1221 | } | |
1222 | } | |
1223 | { | |
1224 | wxPy_BEGIN_ALLOW_THREADS; | |
1225 | _result = (long )wxListItem_GetState(_arg0); | |
1226 | ||
1227 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1228 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1229 | } _resultobj = Py_BuildValue("l",_result); |
1230 | return _resultobj; | |
1231 | } | |
1232 | ||
1233 | #define wxListItem_GetText(_swigobj) (_swigobj->GetText()) | |
1234 | static PyObject *_wrap_wxListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1235 | PyObject * _resultobj; | |
1236 | wxString * _result; | |
1237 | wxListItem * _arg0; | |
1238 | PyObject * _argo0 = 0; | |
1239 | char *_kwnames[] = { "self", NULL }; | |
1240 | ||
1241 | self = self; | |
1242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetText",_kwnames,&_argo0)) | |
1243 | return NULL; | |
1244 | if (_argo0) { | |
1245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetText. Expected _wxListItem_p."); | |
1248 | return NULL; | |
1249 | } | |
1250 | } | |
1251 | { | |
1252 | wxPy_BEGIN_ALLOW_THREADS; | |
1253 | const wxString & _result_ref = wxListItem_GetText(_arg0); | |
1254 | _result = (wxString *) &_result_ref; | |
1255 | ||
1256 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1257 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1258 | }{ |
1259 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1260 | } | |
1261 | return _resultobj; | |
1262 | } | |
1263 | ||
1264 | #define wxListItem_GetImage(_swigobj) (_swigobj->GetImage()) | |
1265 | static PyObject *_wrap_wxListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1266 | PyObject * _resultobj; | |
1267 | int _result; | |
1268 | wxListItem * _arg0; | |
1269 | PyObject * _argo0 = 0; | |
1270 | char *_kwnames[] = { "self", NULL }; | |
1271 | ||
1272 | self = self; | |
1273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetImage",_kwnames,&_argo0)) | |
1274 | return NULL; | |
1275 | if (_argo0) { | |
1276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetImage. Expected _wxListItem_p."); | |
1279 | return NULL; | |
1280 | } | |
1281 | } | |
1282 | { | |
1283 | wxPy_BEGIN_ALLOW_THREADS; | |
1284 | _result = (int )wxListItem_GetImage(_arg0); | |
1285 | ||
1286 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1287 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1288 | } _resultobj = Py_BuildValue("i",_result); |
1289 | return _resultobj; | |
1290 | } | |
1291 | ||
1292 | #define wxListItem_GetData(_swigobj) (_swigobj->GetData()) | |
1293 | static PyObject *_wrap_wxListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1294 | PyObject * _resultobj; | |
1295 | long _result; | |
1296 | wxListItem * _arg0; | |
1297 | PyObject * _argo0 = 0; | |
1298 | char *_kwnames[] = { "self", NULL }; | |
1299 | ||
1300 | self = self; | |
1301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetData",_kwnames,&_argo0)) | |
1302 | return NULL; | |
1303 | if (_argo0) { | |
1304 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetData. Expected _wxListItem_p."); | |
1307 | return NULL; | |
1308 | } | |
1309 | } | |
1310 | { | |
1311 | wxPy_BEGIN_ALLOW_THREADS; | |
1312 | _result = (long )wxListItem_GetData(_arg0); | |
1313 | ||
1314 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1315 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1316 | } _resultobj = Py_BuildValue("l",_result); |
1317 | return _resultobj; | |
1318 | } | |
1319 | ||
1320 | #define wxListItem_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1321 | static PyObject *_wrap_wxListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1322 | PyObject * _resultobj; | |
1323 | int _result; | |
1324 | wxListItem * _arg0; | |
1325 | PyObject * _argo0 = 0; | |
1326 | char *_kwnames[] = { "self", NULL }; | |
1327 | ||
1328 | self = self; | |
1329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetWidth",_kwnames,&_argo0)) | |
1330 | return NULL; | |
1331 | if (_argo0) { | |
1332 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1333 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetWidth. Expected _wxListItem_p."); | |
1335 | return NULL; | |
1336 | } | |
1337 | } | |
1338 | { | |
1339 | wxPy_BEGIN_ALLOW_THREADS; | |
1340 | _result = (int )wxListItem_GetWidth(_arg0); | |
1341 | ||
1342 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1343 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1344 | } _resultobj = Py_BuildValue("i",_result); |
1345 | return _resultobj; | |
1346 | } | |
1347 | ||
1348 | #define wxListItem_GetAlign(_swigobj) (_swigobj->GetAlign()) | |
1349 | static PyObject *_wrap_wxListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1350 | PyObject * _resultobj; | |
1351 | wxListColumnFormat _result; | |
1352 | wxListItem * _arg0; | |
1353 | PyObject * _argo0 = 0; | |
1354 | char *_kwnames[] = { "self", NULL }; | |
1355 | ||
1356 | self = self; | |
1357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAlign",_kwnames,&_argo0)) | |
1358 | return NULL; | |
1359 | if (_argo0) { | |
1360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAlign. Expected _wxListItem_p."); | |
1363 | return NULL; | |
1364 | } | |
1365 | } | |
1366 | { | |
1367 | wxPy_BEGIN_ALLOW_THREADS; | |
1368 | _result = (wxListColumnFormat )wxListItem_GetAlign(_arg0); | |
1369 | ||
1370 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1371 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1372 | } _resultobj = Py_BuildValue("i",_result); |
1373 | return _resultobj; | |
1374 | } | |
1375 | ||
1376 | #define wxListItem_GetAttributes(_swigobj) (_swigobj->GetAttributes()) | |
1377 | static PyObject *_wrap_wxListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1378 | PyObject * _resultobj; | |
1379 | wxListItemAttr * _result; | |
1380 | wxListItem * _arg0; | |
1381 | PyObject * _argo0 = 0; | |
1382 | char *_kwnames[] = { "self", NULL }; | |
1383 | char _ptemp[128]; | |
1384 | ||
1385 | self = self; | |
1386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAttributes",_kwnames,&_argo0)) | |
1387 | return NULL; | |
1388 | if (_argo0) { | |
1389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAttributes. Expected _wxListItem_p."); | |
1392 | return NULL; | |
1393 | } | |
1394 | } | |
1395 | { | |
1396 | wxPy_BEGIN_ALLOW_THREADS; | |
1397 | _result = (wxListItemAttr *)wxListItem_GetAttributes(_arg0); | |
1398 | ||
1399 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1400 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1401 | } if (_result) { |
1402 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
1403 | _resultobj = Py_BuildValue("s",_ptemp); | |
1404 | } else { | |
1405 | Py_INCREF(Py_None); | |
1406 | _resultobj = Py_None; | |
1407 | } | |
1408 | return _resultobj; | |
1409 | } | |
1410 | ||
1411 | #define wxListItem_HasAttributes(_swigobj) (_swigobj->HasAttributes()) | |
1412 | static PyObject *_wrap_wxListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1413 | PyObject * _resultobj; | |
1414 | bool _result; | |
1415 | wxListItem * _arg0; | |
1416 | PyObject * _argo0 = 0; | |
1417 | char *_kwnames[] = { "self", NULL }; | |
1418 | ||
1419 | self = self; | |
1420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_HasAttributes",_kwnames,&_argo0)) | |
1421 | return NULL; | |
1422 | if (_argo0) { | |
1423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_HasAttributes. Expected _wxListItem_p."); | |
1426 | return NULL; | |
1427 | } | |
1428 | } | |
1429 | { | |
1430 | wxPy_BEGIN_ALLOW_THREADS; | |
1431 | _result = (bool )wxListItem_HasAttributes(_arg0); | |
1432 | ||
1433 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1434 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1435 | } _resultobj = Py_BuildValue("i",_result); |
1436 | return _resultobj; | |
1437 | } | |
1438 | ||
1439 | #define wxListItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
1440 | static PyObject *_wrap_wxListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1441 | PyObject * _resultobj; | |
1442 | wxColour * _result; | |
1443 | wxListItem * _arg0; | |
1444 | PyObject * _argo0 = 0; | |
1445 | char *_kwnames[] = { "self", NULL }; | |
1446 | char _ptemp[128]; | |
1447 | ||
1448 | self = self; | |
1449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetTextColour",_kwnames,&_argo0)) | |
1450 | return NULL; | |
1451 | if (_argo0) { | |
1452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetTextColour. Expected _wxListItem_p."); | |
1455 | return NULL; | |
1456 | } | |
1457 | } | |
1458 | { | |
1459 | wxPy_BEGIN_ALLOW_THREADS; | |
1460 | _result = new wxColour (wxListItem_GetTextColour(_arg0)); | |
1461 | ||
1462 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1463 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1464 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1465 | _resultobj = Py_BuildValue("s",_ptemp); | |
1466 | return _resultobj; | |
1467 | } | |
1468 | ||
1469 | #define wxListItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1470 | static PyObject *_wrap_wxListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1471 | PyObject * _resultobj; | |
1472 | wxColour * _result; | |
1473 | wxListItem * _arg0; | |
1474 | PyObject * _argo0 = 0; | |
1475 | char *_kwnames[] = { "self", NULL }; | |
1476 | char _ptemp[128]; | |
1477 | ||
1478 | self = self; | |
1479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetBackgroundColour",_kwnames,&_argo0)) | |
1480 | return NULL; | |
1481 | if (_argo0) { | |
1482 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1483 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1484 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetBackgroundColour. Expected _wxListItem_p."); | |
1485 | return NULL; | |
1486 | } | |
1487 | } | |
1488 | { | |
1489 | wxPy_BEGIN_ALLOW_THREADS; | |
1490 | _result = new wxColour (wxListItem_GetBackgroundColour(_arg0)); | |
1491 | ||
1492 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1493 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1494 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1495 | _resultobj = Py_BuildValue("s",_ptemp); | |
1496 | return _resultobj; | |
1497 | } | |
1498 | ||
1499 | #define wxListItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
1500 | static PyObject *_wrap_wxListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1501 | PyObject * _resultobj; | |
1502 | wxFont * _result; | |
1503 | wxListItem * _arg0; | |
1504 | PyObject * _argo0 = 0; | |
1505 | char *_kwnames[] = { "self", NULL }; | |
1506 | char _ptemp[128]; | |
1507 | ||
1508 | self = self; | |
1509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetFont",_kwnames,&_argo0)) | |
1510 | return NULL; | |
1511 | if (_argo0) { | |
1512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetFont. Expected _wxListItem_p."); | |
1515 | return NULL; | |
1516 | } | |
1517 | } | |
1518 | { | |
1519 | wxPy_BEGIN_ALLOW_THREADS; | |
1520 | _result = new wxFont (wxListItem_GetFont(_arg0)); | |
1521 | ||
1522 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1523 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1524 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
1525 | _resultobj = Py_BuildValue("s",_ptemp); | |
1526 | return _resultobj; | |
1527 | } | |
1528 | ||
1529 | #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval) | |
1530 | static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1531 | PyObject * _resultobj; | |
1532 | long _result; | |
1533 | wxListItem * _arg0; | |
1534 | long _arg1; | |
1535 | PyObject * _argo0 = 0; | |
1536 | char *_kwnames[] = { "self","m_mask", NULL }; | |
1537 | ||
1538 | self = self; | |
1539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1)) | |
1540 | return NULL; | |
1541 | if (_argo0) { | |
1542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p."); | |
1545 | return NULL; | |
1546 | } | |
1547 | } | |
1548 | { | |
1549 | wxPy_BEGIN_ALLOW_THREADS; | |
1550 | _result = (long )wxListItem_m_mask_set(_arg0,_arg1); | |
1551 | ||
1552 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1553 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1554 | } _resultobj = Py_BuildValue("l",_result); |
1555 | return _resultobj; | |
1556 | } | |
1557 | ||
1558 | #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask) | |
1559 | static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1560 | PyObject * _resultobj; | |
1561 | long _result; | |
1562 | wxListItem * _arg0; | |
1563 | PyObject * _argo0 = 0; | |
1564 | char *_kwnames[] = { "self", NULL }; | |
1565 | ||
1566 | self = self; | |
1567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0)) | |
1568 | return NULL; | |
1569 | if (_argo0) { | |
1570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p."); | |
1573 | return NULL; | |
1574 | } | |
1575 | } | |
1576 | { | |
1577 | wxPy_BEGIN_ALLOW_THREADS; | |
1578 | _result = (long )wxListItem_m_mask_get(_arg0); | |
1579 | ||
1580 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1581 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1582 | } _resultobj = Py_BuildValue("l",_result); |
1583 | return _resultobj; | |
1584 | } | |
1585 | ||
1586 | #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval) | |
1587 | static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1588 | PyObject * _resultobj; | |
1589 | long _result; | |
1590 | wxListItem * _arg0; | |
1591 | long _arg1; | |
1592 | PyObject * _argo0 = 0; | |
1593 | char *_kwnames[] = { "self","m_itemId", NULL }; | |
1594 | ||
1595 | self = self; | |
1596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1)) | |
1597 | return NULL; | |
1598 | if (_argo0) { | |
1599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p."); | |
1602 | return NULL; | |
1603 | } | |
1604 | } | |
1605 | { | |
1606 | wxPy_BEGIN_ALLOW_THREADS; | |
1607 | _result = (long )wxListItem_m_itemId_set(_arg0,_arg1); | |
1608 | ||
1609 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1610 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1611 | } _resultobj = Py_BuildValue("l",_result); |
1612 | return _resultobj; | |
1613 | } | |
1614 | ||
1615 | #define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId) | |
1616 | static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1617 | PyObject * _resultobj; | |
1618 | long _result; | |
1619 | wxListItem * _arg0; | |
1620 | PyObject * _argo0 = 0; | |
1621 | char *_kwnames[] = { "self", NULL }; | |
1622 | ||
1623 | self = self; | |
1624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0)) | |
1625 | return NULL; | |
1626 | if (_argo0) { | |
1627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p."); | |
1630 | return NULL; | |
1631 | } | |
1632 | } | |
1633 | { | |
1634 | wxPy_BEGIN_ALLOW_THREADS; | |
1635 | _result = (long )wxListItem_m_itemId_get(_arg0); | |
1636 | ||
1637 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1638 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1639 | } _resultobj = Py_BuildValue("l",_result); |
1640 | return _resultobj; | |
1641 | } | |
1642 | ||
1643 | #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
1644 | static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1645 | PyObject * _resultobj; | |
1646 | int _result; | |
1647 | wxListItem * _arg0; | |
1648 | int _arg1; | |
1649 | PyObject * _argo0 = 0; | |
1650 | char *_kwnames[] = { "self","m_col", NULL }; | |
1651 | ||
1652 | self = self; | |
1653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1)) | |
1654 | return NULL; | |
1655 | if (_argo0) { | |
1656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p."); | |
1659 | return NULL; | |
1660 | } | |
1661 | } | |
1662 | { | |
1663 | wxPy_BEGIN_ALLOW_THREADS; | |
1664 | _result = (int )wxListItem_m_col_set(_arg0,_arg1); | |
1665 | ||
1666 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1667 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1668 | } _resultobj = Py_BuildValue("i",_result); |
1669 | return _resultobj; | |
1670 | } | |
1671 | ||
1672 | #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
1673 | static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1674 | PyObject * _resultobj; | |
1675 | int _result; | |
1676 | wxListItem * _arg0; | |
1677 | PyObject * _argo0 = 0; | |
1678 | char *_kwnames[] = { "self", NULL }; | |
1679 | ||
1680 | self = self; | |
1681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0)) | |
1682 | return NULL; | |
1683 | if (_argo0) { | |
1684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p."); | |
1687 | return NULL; | |
1688 | } | |
1689 | } | |
1690 | { | |
1691 | wxPy_BEGIN_ALLOW_THREADS; | |
1692 | _result = (int )wxListItem_m_col_get(_arg0); | |
1693 | ||
1694 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1695 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1696 | } _resultobj = Py_BuildValue("i",_result); |
1697 | return _resultobj; | |
1698 | } | |
1699 | ||
1700 | #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval) | |
1701 | static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1702 | PyObject * _resultobj; | |
1703 | long _result; | |
1704 | wxListItem * _arg0; | |
1705 | long _arg1; | |
1706 | PyObject * _argo0 = 0; | |
1707 | char *_kwnames[] = { "self","m_state", NULL }; | |
1708 | ||
1709 | self = self; | |
1710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1)) | |
1711 | return NULL; | |
1712 | if (_argo0) { | |
1713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p."); | |
1716 | return NULL; | |
1717 | } | |
1718 | } | |
1719 | { | |
1720 | wxPy_BEGIN_ALLOW_THREADS; | |
1721 | _result = (long )wxListItem_m_state_set(_arg0,_arg1); | |
1722 | ||
1723 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1724 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1725 | } _resultobj = Py_BuildValue("l",_result); |
1726 | return _resultobj; | |
1727 | } | |
1728 | ||
1729 | #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state) | |
1730 | static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1731 | PyObject * _resultobj; | |
1732 | long _result; | |
1733 | wxListItem * _arg0; | |
1734 | PyObject * _argo0 = 0; | |
1735 | char *_kwnames[] = { "self", NULL }; | |
1736 | ||
1737 | self = self; | |
1738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0)) | |
1739 | return NULL; | |
1740 | if (_argo0) { | |
1741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p."); | |
1744 | return NULL; | |
1745 | } | |
1746 | } | |
1747 | { | |
1748 | wxPy_BEGIN_ALLOW_THREADS; | |
1749 | _result = (long )wxListItem_m_state_get(_arg0); | |
1750 | ||
1751 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1752 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1753 | } _resultobj = Py_BuildValue("l",_result); |
1754 | return _resultobj; | |
1755 | } | |
1756 | ||
1757 | #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval) | |
1758 | static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1759 | PyObject * _resultobj; | |
1760 | long _result; | |
1761 | wxListItem * _arg0; | |
1762 | long _arg1; | |
1763 | PyObject * _argo0 = 0; | |
1764 | char *_kwnames[] = { "self","m_stateMask", NULL }; | |
1765 | ||
1766 | self = self; | |
1767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1)) | |
1768 | return NULL; | |
1769 | if (_argo0) { | |
1770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p."); | |
1773 | return NULL; | |
1774 | } | |
1775 | } | |
1776 | { | |
1777 | wxPy_BEGIN_ALLOW_THREADS; | |
1778 | _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1); | |
1779 | ||
1780 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1781 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1782 | } _resultobj = Py_BuildValue("l",_result); |
1783 | return _resultobj; | |
1784 | } | |
1785 | ||
1786 | #define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask) | |
1787 | static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1788 | PyObject * _resultobj; | |
1789 | long _result; | |
1790 | wxListItem * _arg0; | |
1791 | PyObject * _argo0 = 0; | |
1792 | char *_kwnames[] = { "self", NULL }; | |
1793 | ||
1794 | self = self; | |
1795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0)) | |
1796 | return NULL; | |
1797 | if (_argo0) { | |
1798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p."); | |
1801 | return NULL; | |
1802 | } | |
1803 | } | |
1804 | { | |
1805 | wxPy_BEGIN_ALLOW_THREADS; | |
1806 | _result = (long )wxListItem_m_stateMask_get(_arg0); | |
1807 | ||
1808 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1809 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1810 | } _resultobj = Py_BuildValue("l",_result); |
1811 | return _resultobj; | |
1812 | } | |
1813 | ||
1814 | #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval) | |
1815 | static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1816 | PyObject * _resultobj; | |
1817 | wxString * _result; | |
1818 | wxListItem * _arg0; | |
1819 | wxString * _arg1; | |
1820 | PyObject * _argo0 = 0; | |
1821 | PyObject * _obj1 = 0; | |
1822 | char *_kwnames[] = { "self","m_text", NULL }; | |
1823 | ||
1824 | self = self; | |
1825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1)) | |
1826 | return NULL; | |
1827 | if (_argo0) { | |
1828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p."); | |
1831 | return NULL; | |
1832 | } | |
1833 | } | |
1834 | { | |
185d7c3e RD |
1835 | #if PYTHON_API_VERSION >= 1009 |
1836 | char* tmpPtr; int tmpSize; | |
1837 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1838 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1839 | return NULL; |
1840 | } | |
1841 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1842 | return NULL; | |
1843 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1844 | #else | |
f6bcfd97 BP |
1845 | if (!PyString_Check(_obj1)) { |
1846 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1847 | return NULL; | |
1848 | } | |
185d7c3e RD |
1849 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1850 | #endif | |
f6bcfd97 BP |
1851 | } |
1852 | { | |
1853 | wxPy_BEGIN_ALLOW_THREADS; | |
1854 | _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1); | |
1855 | ||
1856 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1857 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1858 | }{ |
1859 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1860 | } | |
1861 | { | |
1862 | if (_obj1) | |
1863 | delete _arg1; | |
1864 | } | |
1865 | return _resultobj; | |
1866 | } | |
1867 | ||
1868 | #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text) | |
1869 | static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1870 | PyObject * _resultobj; | |
1871 | wxString * _result; | |
1872 | wxListItem * _arg0; | |
1873 | PyObject * _argo0 = 0; | |
1874 | char *_kwnames[] = { "self", NULL }; | |
1875 | ||
1876 | self = self; | |
1877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0)) | |
1878 | return NULL; | |
1879 | if (_argo0) { | |
1880 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1881 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p."); | |
1883 | return NULL; | |
1884 | } | |
1885 | } | |
1886 | { | |
1887 | wxPy_BEGIN_ALLOW_THREADS; | |
1888 | _result = (wxString *)wxListItem_m_text_get(_arg0); | |
1889 | ||
1890 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1891 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1892 | }{ |
1893 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1894 | } | |
1895 | return _resultobj; | |
1896 | } | |
1897 | ||
1898 | #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval) | |
1899 | static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1900 | PyObject * _resultobj; | |
1901 | int _result; | |
1902 | wxListItem * _arg0; | |
1903 | int _arg1; | |
1904 | PyObject * _argo0 = 0; | |
1905 | char *_kwnames[] = { "self","m_image", NULL }; | |
1906 | ||
1907 | self = self; | |
1908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1)) | |
1909 | return NULL; | |
1910 | if (_argo0) { | |
1911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p."); | |
1914 | return NULL; | |
1915 | } | |
1916 | } | |
1917 | { | |
1918 | wxPy_BEGIN_ALLOW_THREADS; | |
1919 | _result = (int )wxListItem_m_image_set(_arg0,_arg1); | |
1920 | ||
1921 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1922 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1923 | } _resultobj = Py_BuildValue("i",_result); |
1924 | return _resultobj; | |
1925 | } | |
1926 | ||
1927 | #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image) | |
1928 | static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1929 | PyObject * _resultobj; | |
1930 | int _result; | |
1931 | wxListItem * _arg0; | |
1932 | PyObject * _argo0 = 0; | |
1933 | char *_kwnames[] = { "self", NULL }; | |
1934 | ||
1935 | self = self; | |
1936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0)) | |
1937 | return NULL; | |
1938 | if (_argo0) { | |
1939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p."); | |
1942 | return NULL; | |
1943 | } | |
1944 | } | |
1945 | { | |
1946 | wxPy_BEGIN_ALLOW_THREADS; | |
1947 | _result = (int )wxListItem_m_image_get(_arg0); | |
1948 | ||
1949 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1950 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1951 | } _resultobj = Py_BuildValue("i",_result); |
1952 | return _resultobj; | |
1953 | } | |
1954 | ||
1955 | #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval) | |
1956 | static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1957 | PyObject * _resultobj; | |
1958 | long _result; | |
1959 | wxListItem * _arg0; | |
1960 | long _arg1; | |
1961 | PyObject * _argo0 = 0; | |
1962 | char *_kwnames[] = { "self","m_data", NULL }; | |
1963 | ||
1964 | self = self; | |
1965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1)) | |
1966 | return NULL; | |
1967 | if (_argo0) { | |
1968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p."); | |
1971 | return NULL; | |
1972 | } | |
1973 | } | |
1974 | { | |
1975 | wxPy_BEGIN_ALLOW_THREADS; | |
1976 | _result = (long )wxListItem_m_data_set(_arg0,_arg1); | |
1977 | ||
1978 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1979 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1980 | } _resultobj = Py_BuildValue("l",_result); |
1981 | return _resultobj; | |
1982 | } | |
1983 | ||
1984 | #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data) | |
1985 | static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1986 | PyObject * _resultobj; | |
1987 | long _result; | |
1988 | wxListItem * _arg0; | |
1989 | PyObject * _argo0 = 0; | |
1990 | char *_kwnames[] = { "self", NULL }; | |
1991 | ||
1992 | self = self; | |
1993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0)) | |
1994 | return NULL; | |
1995 | if (_argo0) { | |
1996 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1997 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p."); | |
1999 | return NULL; | |
2000 | } | |
2001 | } | |
2002 | { | |
2003 | wxPy_BEGIN_ALLOW_THREADS; | |
2004 | _result = (long )wxListItem_m_data_get(_arg0); | |
2005 | ||
2006 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2007 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2008 | } _resultobj = Py_BuildValue("l",_result); |
2009 | return _resultobj; | |
2010 | } | |
2011 | ||
2012 | #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval) | |
2013 | static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2014 | PyObject * _resultobj; | |
2015 | int _result; | |
2016 | wxListItem * _arg0; | |
2017 | int _arg1; | |
2018 | PyObject * _argo0 = 0; | |
2019 | char *_kwnames[] = { "self","m_format", NULL }; | |
2020 | ||
2021 | self = self; | |
2022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1)) | |
2023 | return NULL; | |
2024 | if (_argo0) { | |
2025 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2026 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
2027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p."); | |
2028 | return NULL; | |
2029 | } | |
2030 | } | |
2031 | { | |
2032 | wxPy_BEGIN_ALLOW_THREADS; | |
2033 | _result = (int )wxListItem_m_format_set(_arg0,_arg1); | |
2034 | ||
2035 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2036 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2037 | } _resultobj = Py_BuildValue("i",_result); |
2038 | return _resultobj; | |
2039 | } | |
2040 | ||
2041 | #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format) | |
2042 | static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2043 | PyObject * _resultobj; | |
2044 | int _result; | |
2045 | wxListItem * _arg0; | |
2046 | PyObject * _argo0 = 0; | |
2047 | char *_kwnames[] = { "self", NULL }; | |
2048 | ||
2049 | self = self; | |
2050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0)) | |
2051 | return NULL; | |
2052 | if (_argo0) { | |
2053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
2055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p."); | |
2056 | return NULL; | |
2057 | } | |
2058 | } | |
2059 | { | |
2060 | wxPy_BEGIN_ALLOW_THREADS; | |
2061 | _result = (int )wxListItem_m_format_get(_arg0); | |
2062 | ||
2063 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2064 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2065 | } _resultobj = Py_BuildValue("i",_result); |
2066 | return _resultobj; | |
8ab979d7 RD |
2067 | } |
2068 | ||
f6bcfd97 BP |
2069 | #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval) |
2070 | static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2071 | PyObject * _resultobj; |
f6bcfd97 | 2072 | int _result; |
af309447 | 2073 | wxListItem * _arg0; |
f6bcfd97 | 2074 | int _arg1; |
1d99702e | 2075 | PyObject * _argo0 = 0; |
f6bcfd97 | 2076 | char *_kwnames[] = { "self","m_width", NULL }; |
af309447 RD |
2077 | |
2078 | self = self; | |
f6bcfd97 | 2079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2080 | return NULL; |
1d99702e RD |
2081 | if (_argo0) { |
2082 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2083 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p."); |
af309447 RD |
2085 | return NULL; |
2086 | } | |
2087 | } | |
cf694132 RD |
2088 | { |
2089 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2090 | _result = (int )wxListItem_m_width_set(_arg0,_arg1); |
cf694132 RD |
2091 | |
2092 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2093 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2094 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2095 | return _resultobj; |
2096 | } | |
2097 | ||
f6bcfd97 BP |
2098 | #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width) |
2099 | static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2100 | PyObject * _resultobj; |
f6bcfd97 | 2101 | int _result; |
8ab979d7 | 2102 | wxListItem * _arg0; |
1d99702e | 2103 | PyObject * _argo0 = 0; |
efc5f224 | 2104 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2105 | |
2106 | self = self; | |
f6bcfd97 | 2107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0)) |
8ab979d7 | 2108 | return NULL; |
1d99702e RD |
2109 | if (_argo0) { |
2110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 BP |
2112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p."); |
2113 | return NULL; | |
2114 | } | |
2115 | } | |
2116 | { | |
2117 | wxPy_BEGIN_ALLOW_THREADS; | |
2118 | _result = (int )wxListItem_m_width_get(_arg0); | |
2119 | ||
2120 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2121 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2122 | } _resultobj = Py_BuildValue("i",_result); |
2123 | return _resultobj; | |
2124 | } | |
2125 | ||
c368d904 RD |
2126 | static void *SwigwxListEventTowxNotifyEvent(void *ptr) { |
2127 | wxListEvent *src; | |
2128 | wxNotifyEvent *dest; | |
2129 | src = (wxListEvent *) ptr; | |
2130 | dest = (wxNotifyEvent *) src; | |
2131 | return (void *) dest; | |
2132 | } | |
2133 | ||
f6bcfd97 BP |
2134 | static void *SwigwxListEventTowxCommandEvent(void *ptr) { |
2135 | wxListEvent *src; | |
2136 | wxCommandEvent *dest; | |
2137 | src = (wxListEvent *) ptr; | |
2138 | dest = (wxCommandEvent *) src; | |
2139 | return (void *) dest; | |
2140 | } | |
2141 | ||
2142 | static void *SwigwxListEventTowxEvent(void *ptr) { | |
2143 | wxListEvent *src; | |
2144 | wxEvent *dest; | |
2145 | src = (wxListEvent *) ptr; | |
2146 | dest = (wxEvent *) src; | |
2147 | return (void *) dest; | |
2148 | } | |
2149 | ||
9416aa89 RD |
2150 | static void *SwigwxListEventTowxObject(void *ptr) { |
2151 | wxListEvent *src; | |
2152 | wxObject *dest; | |
2153 | src = (wxListEvent *) ptr; | |
2154 | dest = (wxObject *) src; | |
2155 | return (void *) dest; | |
2156 | } | |
2157 | ||
6d19860f RD |
2158 | #define new_wxListEvent(_swigarg0,_swigarg1) (new wxListEvent(_swigarg0,_swigarg1)) |
2159 | static PyObject *_wrap_new_wxListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2160 | PyObject * _resultobj; | |
2161 | wxListEvent * _result; | |
2162 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
2163 | int _arg1 = (int ) 0; | |
2164 | char *_kwnames[] = { "commandType","id", NULL }; | |
2165 | char _ptemp[128]; | |
2166 | ||
2167 | self = self; | |
2168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxListEvent",_kwnames,&_arg0,&_arg1)) | |
2169 | return NULL; | |
2170 | { | |
2171 | wxPy_BEGIN_ALLOW_THREADS; | |
2172 | _result = (wxListEvent *)new_wxListEvent(_arg0,_arg1); | |
2173 | ||
2174 | wxPy_END_ALLOW_THREADS; | |
2175 | if (PyErr_Occurred()) return NULL; | |
2176 | } if (_result) { | |
2177 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListEvent_p"); | |
2178 | _resultobj = Py_BuildValue("s",_ptemp); | |
2179 | } else { | |
2180 | Py_INCREF(Py_None); | |
2181 | _resultobj = Py_None; | |
2182 | } | |
2183 | return _resultobj; | |
2184 | } | |
2185 | ||
f6bcfd97 BP |
2186 | #define wxListEvent_m_code_set(_swigobj,_swigval) (_swigobj->m_code = _swigval,_swigval) |
2187 | static PyObject *_wrap_wxListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2188 | PyObject * _resultobj; | |
2189 | int _result; | |
2190 | wxListEvent * _arg0; | |
2191 | int _arg1; | |
2192 | PyObject * _argo0 = 0; | |
2193 | char *_kwnames[] = { "self","m_code", NULL }; | |
2194 | ||
2195 | self = self; | |
2196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_code_set",_kwnames,&_argo0,&_arg1)) | |
2197 | return NULL; | |
2198 | if (_argo0) { | |
2199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_set. Expected _wxListEvent_p."); | |
2202 | return NULL; | |
2203 | } | |
2204 | } | |
2205 | { | |
2206 | wxPy_BEGIN_ALLOW_THREADS; | |
2207 | _result = (int )wxListEvent_m_code_set(_arg0,_arg1); | |
2208 | ||
2209 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2210 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2211 | } _resultobj = Py_BuildValue("i",_result); |
2212 | return _resultobj; | |
2213 | } | |
2214 | ||
2215 | #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code) | |
2216 | static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2217 | PyObject * _resultobj; | |
2218 | int _result; | |
2219 | wxListEvent * _arg0; | |
2220 | PyObject * _argo0 = 0; | |
2221 | char *_kwnames[] = { "self", NULL }; | |
2222 | ||
2223 | self = self; | |
2224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0)) | |
2225 | return NULL; | |
2226 | if (_argo0) { | |
2227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_get. Expected _wxListEvent_p."); | |
2230 | return NULL; | |
2231 | } | |
2232 | } | |
2233 | { | |
2234 | wxPy_BEGIN_ALLOW_THREADS; | |
2235 | _result = (int )wxListEvent_m_code_get(_arg0); | |
2236 | ||
2237 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2238 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2239 | } _resultobj = Py_BuildValue("i",_result); |
2240 | return _resultobj; | |
2241 | } | |
2242 | ||
2243 | #define wxListEvent_m_itemIndex_set(_swigobj,_swigval) (_swigobj->m_itemIndex = _swigval,_swigval) | |
2244 | static PyObject *_wrap_wxListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2245 | PyObject * _resultobj; | |
2246 | long _result; | |
2247 | wxListEvent * _arg0; | |
2248 | long _arg1; | |
2249 | PyObject * _argo0 = 0; | |
2250 | char *_kwnames[] = { "self","m_itemIndex", NULL }; | |
2251 | ||
2252 | self = self; | |
2253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_itemIndex_set",_kwnames,&_argo0,&_arg1)) | |
2254 | return NULL; | |
2255 | if (_argo0) { | |
2256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_set. Expected _wxListEvent_p."); | |
2259 | return NULL; | |
2260 | } | |
2261 | } | |
2262 | { | |
2263 | wxPy_BEGIN_ALLOW_THREADS; | |
2264 | _result = (long )wxListEvent_m_itemIndex_set(_arg0,_arg1); | |
2265 | ||
2266 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2267 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2268 | } _resultobj = Py_BuildValue("l",_result); |
2269 | return _resultobj; | |
2270 | } | |
2271 | ||
2272 | #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex) | |
2273 | static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2274 | PyObject * _resultobj; | |
2275 | long _result; | |
2276 | wxListEvent * _arg0; | |
2277 | PyObject * _argo0 = 0; | |
2278 | char *_kwnames[] = { "self", NULL }; | |
2279 | ||
2280 | self = self; | |
2281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0)) | |
2282 | return NULL; | |
2283 | if (_argo0) { | |
2284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p."); | |
2287 | return NULL; | |
2288 | } | |
2289 | } | |
2290 | { | |
2291 | wxPy_BEGIN_ALLOW_THREADS; | |
2292 | _result = (long )wxListEvent_m_itemIndex_get(_arg0); | |
2293 | ||
2294 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2295 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2296 | } _resultobj = Py_BuildValue("l",_result); |
2297 | return _resultobj; | |
2298 | } | |
2299 | ||
2300 | #define wxListEvent_m_oldItemIndex_set(_swigobj,_swigval) (_swigobj->m_oldItemIndex = _swigval,_swigval) | |
2301 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2302 | PyObject * _resultobj; | |
2303 | long _result; | |
2304 | wxListEvent * _arg0; | |
2305 | long _arg1; | |
2306 | PyObject * _argo0 = 0; | |
2307 | char *_kwnames[] = { "self","m_oldItemIndex", NULL }; | |
2308 | ||
2309 | self = self; | |
2310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_oldItemIndex_set",_kwnames,&_argo0,&_arg1)) | |
2311 | return NULL; | |
2312 | if (_argo0) { | |
2313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_set. Expected _wxListEvent_p."); | |
2316 | return NULL; | |
2317 | } | |
2318 | } | |
2319 | { | |
2320 | wxPy_BEGIN_ALLOW_THREADS; | |
2321 | _result = (long )wxListEvent_m_oldItemIndex_set(_arg0,_arg1); | |
2322 | ||
2323 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2324 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2325 | } _resultobj = Py_BuildValue("l",_result); |
2326 | return _resultobj; | |
2327 | } | |
2328 | ||
2329 | #define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex) | |
2330 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2331 | PyObject * _resultobj; | |
2332 | long _result; | |
2333 | wxListEvent * _arg0; | |
2334 | PyObject * _argo0 = 0; | |
2335 | char *_kwnames[] = { "self", NULL }; | |
2336 | ||
2337 | self = self; | |
2338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0)) | |
2339 | return NULL; | |
2340 | if (_argo0) { | |
2341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p."); | |
2344 | return NULL; | |
2345 | } | |
2346 | } | |
2347 | { | |
2348 | wxPy_BEGIN_ALLOW_THREADS; | |
2349 | _result = (long )wxListEvent_m_oldItemIndex_get(_arg0); | |
2350 | ||
2351 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2352 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2353 | } _resultobj = Py_BuildValue("l",_result); |
2354 | return _resultobj; | |
2355 | } | |
2356 | ||
2357 | #define wxListEvent_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
2358 | static PyObject *_wrap_wxListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2359 | PyObject * _resultobj; | |
2360 | int _result; | |
2361 | wxListEvent * _arg0; | |
2362 | int _arg1; | |
2363 | PyObject * _argo0 = 0; | |
2364 | char *_kwnames[] = { "self","m_col", NULL }; | |
2365 | ||
2366 | self = self; | |
2367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_col_set",_kwnames,&_argo0,&_arg1)) | |
2368 | return NULL; | |
2369 | if (_argo0) { | |
2370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_set. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2373 | return NULL; |
2374 | } | |
2375 | } | |
cf694132 RD |
2376 | { |
2377 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2378 | _result = (int )wxListEvent_m_col_set(_arg0,_arg1); |
cf694132 RD |
2379 | |
2380 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2381 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2382 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2383 | return _resultobj; |
2384 | } | |
2385 | ||
f6bcfd97 BP |
2386 | #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col) |
2387 | static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2388 | PyObject * _resultobj; |
2389 | int _result; | |
f6bcfd97 | 2390 | wxListEvent * _arg0; |
1d99702e | 2391 | PyObject * _argo0 = 0; |
f6bcfd97 | 2392 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2393 | |
2394 | self = self; | |
f6bcfd97 | 2395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0)) |
af309447 | 2396 | return NULL; |
1d99702e RD |
2397 | if (_argo0) { |
2398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p."); | |
af309447 RD |
2401 | return NULL; |
2402 | } | |
2403 | } | |
cf694132 RD |
2404 | { |
2405 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2406 | _result = (int )wxListEvent_m_col_get(_arg0); |
cf694132 RD |
2407 | |
2408 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2409 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2410 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2411 | return _resultobj; |
2412 | } | |
2413 | ||
f6bcfd97 BP |
2414 | #define wxListEvent_m_cancelled_set(_swigobj,_swigval) (_swigobj->m_cancelled = _swigval,_swigval) |
2415 | static PyObject *_wrap_wxListEvent_m_cancelled_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2416 | PyObject * _resultobj; |
f6bcfd97 BP |
2417 | bool _result; |
2418 | wxListEvent * _arg0; | |
2419 | bool _arg1; | |
1d99702e | 2420 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2421 | int tempbool1; |
2422 | char *_kwnames[] = { "self","m_cancelled", NULL }; | |
8ab979d7 RD |
2423 | |
2424 | self = self; | |
f6bcfd97 | 2425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_cancelled_set",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 2426 | return NULL; |
1d99702e RD |
2427 | if (_argo0) { |
2428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_set. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2431 | return NULL; |
2432 | } | |
2433 | } | |
f6bcfd97 | 2434 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
2435 | { |
2436 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2437 | _result = (bool )wxListEvent_m_cancelled_set(_arg0,_arg1); |
cf694132 RD |
2438 | |
2439 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2440 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2441 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2442 | return _resultobj; |
2443 | } | |
2444 | ||
f6bcfd97 BP |
2445 | #define wxListEvent_m_cancelled_get(_swigobj) ((bool ) _swigobj->m_cancelled) |
2446 | static PyObject *_wrap_wxListEvent_m_cancelled_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2447 | PyObject * _resultobj; |
f6bcfd97 BP |
2448 | bool _result; |
2449 | wxListEvent * _arg0; | |
1d99702e | 2450 | PyObject * _argo0 = 0; |
f6bcfd97 | 2451 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2452 | |
2453 | self = self; | |
f6bcfd97 | 2454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_cancelled_get",_kwnames,&_argo0)) |
af309447 | 2455 | return NULL; |
1d99702e RD |
2456 | if (_argo0) { |
2457 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2458 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_get. Expected _wxListEvent_p."); | |
af309447 RD |
2460 | return NULL; |
2461 | } | |
2462 | } | |
cf694132 RD |
2463 | { |
2464 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2465 | _result = (bool )wxListEvent_m_cancelled_get(_arg0); |
cf694132 RD |
2466 | |
2467 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2468 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2469 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2470 | return _resultobj; |
2471 | } | |
2472 | ||
f6bcfd97 BP |
2473 | #define wxListEvent_m_pointDrag_set(_swigobj,_swigval) (_swigobj->m_pointDrag = *(_swigval),_swigval) |
2474 | static PyObject *_wrap_wxListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2475 | PyObject * _resultobj; |
f6bcfd97 BP |
2476 | wxPoint * _result; |
2477 | wxListEvent * _arg0; | |
2478 | wxPoint * _arg1; | |
1d99702e | 2479 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2480 | wxPoint temp; |
2481 | PyObject * _obj1 = 0; | |
2482 | char *_kwnames[] = { "self","m_pointDrag", NULL }; | |
2483 | char _ptemp[128]; | |
8ab979d7 RD |
2484 | |
2485 | self = self; | |
f6bcfd97 | 2486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_pointDrag_set",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2487 | return NULL; |
1d99702e RD |
2488 | if (_argo0) { |
2489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_set. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2492 | return NULL; |
2493 | } | |
2494 | } | |
f6bcfd97 BP |
2495 | { |
2496 | _arg1 = &temp; | |
2497 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2498 | return NULL; | |
2499 | } | |
cf694132 RD |
2500 | { |
2501 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2502 | _result = (wxPoint *)wxListEvent_m_pointDrag_set(_arg0,_arg1); |
cf694132 RD |
2503 | |
2504 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2505 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2506 | } if (_result) { |
2507 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
2508 | _resultobj = Py_BuildValue("s",_ptemp); | |
2509 | } else { | |
2510 | Py_INCREF(Py_None); | |
2511 | _resultobj = Py_None; | |
2512 | } | |
8ab979d7 RD |
2513 | return _resultobj; |
2514 | } | |
2515 | ||
f6bcfd97 BP |
2516 | #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag) |
2517 | static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2518 | PyObject * _resultobj; |
f6bcfd97 BP |
2519 | wxPoint * _result; |
2520 | wxListEvent * _arg0; | |
2521 | PyObject * _argo0 = 0; | |
2522 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
2523 | char _ptemp[128]; |
2524 | ||
2525 | self = self; | |
f6bcfd97 BP |
2526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0)) |
2527 | return NULL; | |
2528 | if (_argo0) { | |
2529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p."); | |
8ab979d7 | 2532 | return NULL; |
f6bcfd97 BP |
2533 | } |
2534 | } | |
cf694132 RD |
2535 | { |
2536 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2537 | _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0); |
cf694132 RD |
2538 | |
2539 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2540 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2541 | } if (_result) { |
f6bcfd97 | 2542 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); |
1d99702e RD |
2543 | _resultobj = Py_BuildValue("s",_ptemp); |
2544 | } else { | |
2545 | Py_INCREF(Py_None); | |
2546 | _resultobj = Py_None; | |
2547 | } | |
8ab979d7 RD |
2548 | return _resultobj; |
2549 | } | |
2550 | ||
f6bcfd97 BP |
2551 | #define wxListEvent_m_item_set(_swigobj,_swigval) (_swigobj->m_item = *(_swigval),_swigval) |
2552 | static PyObject *_wrap_wxListEvent_m_item_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2553 | PyObject * _resultobj; |
f6bcfd97 BP |
2554 | wxListItem * _result; |
2555 | wxListEvent * _arg0; | |
2556 | wxListItem * _arg1; | |
1d99702e | 2557 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2558 | PyObject * _argo1 = 0; |
2559 | char *_kwnames[] = { "self","m_item", NULL }; | |
8ab979d7 RD |
2560 | |
2561 | self = self; | |
f6bcfd97 | 2562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_item_set",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 2563 | return NULL; |
1d99702e RD |
2564 | if (_argo0) { |
2565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_set. Expected _wxListEvent_p."); | |
2568 | return NULL; | |
2569 | } | |
2570 | } | |
2571 | if (_argo1) { | |
2572 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2573 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
2574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListEvent_m_item_set. Expected _wxListItem_p."); | |
8ab979d7 RD |
2575 | return NULL; |
2576 | } | |
2577 | } | |
cf694132 RD |
2578 | { |
2579 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2580 | _result = (wxListItem *)wxListEvent_m_item_set(_arg0,_arg1); |
cf694132 RD |
2581 | |
2582 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2583 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2584 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2585 | return _resultobj; |
2586 | } | |
2587 | ||
f6bcfd97 BP |
2588 | #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item) |
2589 | static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2590 | PyObject * _resultobj; |
f6bcfd97 | 2591 | wxListItem * _result; |
af309447 | 2592 | wxListEvent * _arg0; |
1d99702e | 2593 | PyObject * _argo0 = 0; |
f6bcfd97 | 2594 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2595 | |
2596 | self = self; | |
f6bcfd97 | 2597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0)) |
af309447 | 2598 | return NULL; |
1d99702e RD |
2599 | if (_argo0) { |
2600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p."); |
af309447 RD |
2603 | return NULL; |
2604 | } | |
2605 | } | |
cf694132 RD |
2606 | { |
2607 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2608 | _result = (wxListItem *)wxListEvent_m_item_get(_arg0); |
cf694132 RD |
2609 | |
2610 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2611 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2612 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
2613 | return _resultobj; |
2614 | } | |
2615 | ||
f6bcfd97 BP |
2616 | #define wxListEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
2617 | static PyObject *_wrap_wxListEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2618 | PyObject * _resultobj; |
2619 | int _result; | |
2620 | wxListEvent * _arg0; | |
1d99702e | 2621 | PyObject * _argo0 = 0; |
efc5f224 | 2622 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2623 | |
2624 | self = self; | |
f6bcfd97 | 2625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 2626 | return NULL; |
1d99702e RD |
2627 | if (_argo0) { |
2628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCode. Expected _wxListEvent_p."); |
8ab979d7 RD |
2631 | return NULL; |
2632 | } | |
2633 | } | |
cf694132 RD |
2634 | { |
2635 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2636 | _result = (int )wxListEvent_GetCode(_arg0); |
cf694132 RD |
2637 | |
2638 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2639 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2640 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2641 | return _resultobj; |
2642 | } | |
2643 | ||
f6bcfd97 BP |
2644 | #define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex()) |
2645 | static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2646 | PyObject * _resultobj; |
2647 | long _result; | |
2648 | wxListEvent * _arg0; | |
1d99702e | 2649 | PyObject * _argo0 = 0; |
f6bcfd97 | 2650 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2651 | |
2652 | self = self; | |
f6bcfd97 | 2653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0)) |
af309447 | 2654 | return NULL; |
1d99702e RD |
2655 | if (_argo0) { |
2656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p."); |
af309447 RD |
2659 | return NULL; |
2660 | } | |
2661 | } | |
cf694132 RD |
2662 | { |
2663 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2664 | _result = (long )wxListEvent_GetIndex(_arg0); |
cf694132 RD |
2665 | |
2666 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2667 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2668 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2669 | return _resultobj; |
2670 | } | |
2671 | ||
f6bcfd97 BP |
2672 | #define wxListEvent_GetOldIndex(_swigobj) (_swigobj->GetOldIndex()) |
2673 | static PyObject *_wrap_wxListEvent_GetOldIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2674 | PyObject * _resultobj; |
2675 | long _result; | |
2676 | wxListEvent * _arg0; | |
1d99702e | 2677 | PyObject * _argo0 = 0; |
efc5f224 | 2678 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2679 | |
2680 | self = self; | |
f6bcfd97 | 2681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetOldIndex",_kwnames,&_argo0)) |
8ab979d7 | 2682 | return NULL; |
1d99702e RD |
2683 | if (_argo0) { |
2684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetOldIndex. Expected _wxListEvent_p."); |
8ab979d7 RD |
2687 | return NULL; |
2688 | } | |
2689 | } | |
cf694132 RD |
2690 | { |
2691 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2692 | _result = (long )wxListEvent_GetOldIndex(_arg0); |
cf694132 RD |
2693 | |
2694 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2695 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2696 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2697 | return _resultobj; |
2698 | } | |
2699 | ||
f6bcfd97 BP |
2700 | #define wxListEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
2701 | static PyObject *_wrap_wxListEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2702 | PyObject * _resultobj; |
2703 | long _result; | |
2704 | wxListEvent * _arg0; | |
1d99702e | 2705 | PyObject * _argo0 = 0; |
f6bcfd97 | 2706 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2707 | |
2708 | self = self; | |
f6bcfd97 | 2709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetOldItem",_kwnames,&_argo0)) |
af309447 | 2710 | return NULL; |
1d99702e RD |
2711 | if (_argo0) { |
2712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetOldItem. Expected _wxListEvent_p."); |
af309447 RD |
2715 | return NULL; |
2716 | } | |
2717 | } | |
cf694132 RD |
2718 | { |
2719 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2720 | _result = (long )wxListEvent_GetOldItem(_arg0); |
cf694132 RD |
2721 | |
2722 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2723 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2724 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2725 | return _resultobj; |
2726 | } | |
2727 | ||
f6bcfd97 BP |
2728 | #define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn()) |
2729 | static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2730 | PyObject * _resultobj; |
f6bcfd97 | 2731 | int _result; |
8ab979d7 | 2732 | wxListEvent * _arg0; |
1d99702e | 2733 | PyObject * _argo0 = 0; |
efc5f224 | 2734 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2735 | |
2736 | self = self; | |
f6bcfd97 | 2737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0)) |
8ab979d7 | 2738 | return NULL; |
1d99702e RD |
2739 | if (_argo0) { |
2740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p."); |
8ab979d7 RD |
2743 | return NULL; |
2744 | } | |
2745 | } | |
cf694132 RD |
2746 | { |
2747 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2748 | _result = (int )wxListEvent_GetColumn(_arg0); |
cf694132 RD |
2749 | |
2750 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2751 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2752 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2753 | return _resultobj; |
2754 | } | |
2755 | ||
f6bcfd97 BP |
2756 | #define wxListEvent_Cancelled(_swigobj) (_swigobj->Cancelled()) |
2757 | static PyObject *_wrap_wxListEvent_Cancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2758 | PyObject * _resultobj; |
f6bcfd97 | 2759 | bool _result; |
af309447 | 2760 | wxListEvent * _arg0; |
1d99702e | 2761 | PyObject * _argo0 = 0; |
f6bcfd97 | 2762 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2763 | |
2764 | self = self; | |
f6bcfd97 | 2765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_Cancelled",_kwnames,&_argo0)) |
af309447 | 2766 | return NULL; |
1d99702e RD |
2767 | if (_argo0) { |
2768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_Cancelled. Expected _wxListEvent_p."); |
af309447 RD |
2771 | return NULL; |
2772 | } | |
2773 | } | |
cf694132 RD |
2774 | { |
2775 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2776 | _result = (bool )wxListEvent_Cancelled(_arg0); |
cf694132 RD |
2777 | |
2778 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2779 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2780 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2781 | return _resultobj; |
2782 | } | |
2783 | ||
f6bcfd97 BP |
2784 | #define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
2785 | static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2786 | PyObject * _resultobj; |
f6bcfd97 | 2787 | wxPoint * _result; |
8ab979d7 | 2788 | wxListEvent * _arg0; |
1d99702e | 2789 | PyObject * _argo0 = 0; |
efc5f224 | 2790 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2791 | char _ptemp[128]; |
8ab979d7 RD |
2792 | |
2793 | self = self; | |
f6bcfd97 | 2794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 2795 | return NULL; |
1d99702e RD |
2796 | if (_argo0) { |
2797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetPoint. Expected _wxListEvent_p."); |
8ab979d7 RD |
2800 | return NULL; |
2801 | } | |
2802 | } | |
cf694132 RD |
2803 | { |
2804 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2805 | _result = new wxPoint (wxListEvent_GetPoint(_arg0)); |
cf694132 RD |
2806 | |
2807 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2808 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2809 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2810 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
2811 | return _resultobj; |
2812 | } | |
2813 | ||
f6bcfd97 BP |
2814 | #define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
2815 | static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2816 | PyObject * _resultobj; |
f6bcfd97 | 2817 | wxString * _result; |
af309447 | 2818 | wxListEvent * _arg0; |
1d99702e | 2819 | PyObject * _argo0 = 0; |
f6bcfd97 | 2820 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2821 | |
2822 | self = self; | |
f6bcfd97 | 2823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetLabel",_kwnames,&_argo0)) |
af309447 | 2824 | return NULL; |
1d99702e RD |
2825 | if (_argo0) { |
2826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetLabel. Expected _wxListEvent_p."); |
af309447 RD |
2829 | return NULL; |
2830 | } | |
2831 | } | |
cf694132 RD |
2832 | { |
2833 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2834 | const wxString & _result_ref = wxListEvent_GetLabel(_arg0); |
2835 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
2836 | |
2837 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2838 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2839 | }{ |
2840 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2841 | } | |
af309447 RD |
2842 | return _resultobj; |
2843 | } | |
2844 | ||
f6bcfd97 BP |
2845 | #define wxListEvent_GetText(_swigobj) (_swigobj->GetText()) |
2846 | static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2847 | PyObject * _resultobj; |
f6bcfd97 | 2848 | wxString * _result; |
8ab979d7 | 2849 | wxListEvent * _arg0; |
1d99702e | 2850 | PyObject * _argo0 = 0; |
efc5f224 | 2851 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2852 | |
2853 | self = self; | |
f6bcfd97 | 2854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0)) |
8ab979d7 | 2855 | return NULL; |
1d99702e RD |
2856 | if (_argo0) { |
2857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p."); |
8ab979d7 RD |
2860 | return NULL; |
2861 | } | |
2862 | } | |
cf694132 RD |
2863 | { |
2864 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2865 | const wxString & _result_ref = wxListEvent_GetText(_arg0); |
2866 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
2867 | |
2868 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2869 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2870 | }{ |
2871 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2872 | } | |
8ab979d7 RD |
2873 | return _resultobj; |
2874 | } | |
2875 | ||
f6bcfd97 BP |
2876 | #define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage()) |
2877 | static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2878 | PyObject * _resultobj; |
f6bcfd97 | 2879 | int _result; |
af309447 | 2880 | wxListEvent * _arg0; |
1d99702e | 2881 | PyObject * _argo0 = 0; |
f6bcfd97 | 2882 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2883 | |
2884 | self = self; | |
f6bcfd97 | 2885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0)) |
af309447 | 2886 | return NULL; |
1d99702e RD |
2887 | if (_argo0) { |
2888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p."); |
af309447 RD |
2891 | return NULL; |
2892 | } | |
2893 | } | |
cf694132 RD |
2894 | { |
2895 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2896 | _result = (int )wxListEvent_GetImage(_arg0); |
cf694132 RD |
2897 | |
2898 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2899 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2900 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2901 | return _resultobj; |
2902 | } | |
2903 | ||
f6bcfd97 BP |
2904 | #define wxListEvent_GetData(_swigobj) (_swigobj->GetData()) |
2905 | static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2906 | PyObject * _resultobj; |
f6bcfd97 | 2907 | long _result; |
8ab979d7 | 2908 | wxListEvent * _arg0; |
1d99702e | 2909 | PyObject * _argo0 = 0; |
efc5f224 | 2910 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2911 | |
2912 | self = self; | |
f6bcfd97 | 2913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0)) |
8ab979d7 | 2914 | return NULL; |
1d99702e RD |
2915 | if (_argo0) { |
2916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p."); |
8ab979d7 RD |
2919 | return NULL; |
2920 | } | |
2921 | } | |
cf694132 RD |
2922 | { |
2923 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2924 | _result = (long )wxListEvent_GetData(_arg0); |
cf694132 RD |
2925 | |
2926 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2927 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2928 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2929 | return _resultobj; |
2930 | } | |
2931 | ||
f6bcfd97 BP |
2932 | #define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask()) |
2933 | static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2934 | PyObject * _resultobj; |
f6bcfd97 | 2935 | long _result; |
af309447 | 2936 | wxListEvent * _arg0; |
1d99702e | 2937 | PyObject * _argo0 = 0; |
f6bcfd97 | 2938 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2939 | |
2940 | self = self; | |
f6bcfd97 | 2941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetMask",_kwnames,&_argo0)) |
af309447 | 2942 | return NULL; |
1d99702e RD |
2943 | if (_argo0) { |
2944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetMask. Expected _wxListEvent_p."); |
af309447 RD |
2947 | return NULL; |
2948 | } | |
2949 | } | |
cf694132 RD |
2950 | { |
2951 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2952 | _result = (long )wxListEvent_GetMask(_arg0); |
cf694132 RD |
2953 | |
2954 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2955 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2956 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2957 | return _resultobj; |
2958 | } | |
2959 | ||
f6bcfd97 BP |
2960 | #define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
2961 | static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2962 | PyObject * _resultobj; |
2963 | wxListItem * _result; | |
2964 | wxListEvent * _arg0; | |
1d99702e | 2965 | PyObject * _argo0 = 0; |
efc5f224 | 2966 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2967 | |
2968 | self = self; | |
f6bcfd97 | 2969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 2970 | return NULL; |
1d99702e RD |
2971 | if (_argo0) { |
2972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p."); |
8ab979d7 RD |
2975 | return NULL; |
2976 | } | |
2977 | } | |
cf694132 RD |
2978 | { |
2979 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2980 | const wxListItem & _result_ref = wxListEvent_GetItem(_arg0); |
2981 | _result = (wxListItem *) &_result_ref; | |
cf694132 RD |
2982 | |
2983 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2984 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2985 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2986 | return _resultobj; |
2987 | } | |
2988 | ||
6d19860f RD |
2989 | #define wxListEvent_GetCacheFrom(_swigobj) (_swigobj->GetCacheFrom()) |
2990 | static PyObject *_wrap_wxListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2991 | PyObject * _resultobj; | |
2992 | long _result; | |
2993 | wxListEvent * _arg0; | |
2994 | PyObject * _argo0 = 0; | |
2995 | char *_kwnames[] = { "self", NULL }; | |
2996 | ||
2997 | self = self; | |
2998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheFrom",_kwnames,&_argo0)) | |
2999 | return NULL; | |
3000 | if (_argo0) { | |
3001 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3002 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
3003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheFrom. Expected _wxListEvent_p."); | |
3004 | return NULL; | |
3005 | } | |
3006 | } | |
3007 | { | |
3008 | wxPy_BEGIN_ALLOW_THREADS; | |
3009 | _result = (long )wxListEvent_GetCacheFrom(_arg0); | |
3010 | ||
3011 | wxPy_END_ALLOW_THREADS; | |
3012 | if (PyErr_Occurred()) return NULL; | |
3013 | } _resultobj = Py_BuildValue("l",_result); | |
3014 | return _resultobj; | |
3015 | } | |
3016 | ||
3017 | #define wxListEvent_GetCacheTo(_swigobj) (_swigobj->GetCacheTo()) | |
3018 | static PyObject *_wrap_wxListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3019 | PyObject * _resultobj; | |
3020 | long _result; | |
3021 | wxListEvent * _arg0; | |
3022 | PyObject * _argo0 = 0; | |
3023 | char *_kwnames[] = { "self", NULL }; | |
3024 | ||
3025 | self = self; | |
3026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheTo",_kwnames,&_argo0)) | |
3027 | return NULL; | |
3028 | if (_argo0) { | |
3029 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3030 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
3031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheTo. Expected _wxListEvent_p."); | |
3032 | return NULL; | |
3033 | } | |
3034 | } | |
3035 | { | |
3036 | wxPy_BEGIN_ALLOW_THREADS; | |
3037 | _result = (long )wxListEvent_GetCacheTo(_arg0); | |
3038 | ||
3039 | wxPy_END_ALLOW_THREADS; | |
3040 | if (PyErr_Occurred()) return NULL; | |
3041 | } _resultobj = Py_BuildValue("l",_result); | |
3042 | return _resultobj; | |
3043 | } | |
3044 | ||
c7e7022c RD |
3045 | static void *SwigwxPyListCtrlTowxControl(void *ptr) { |
3046 | wxPyListCtrl *src; | |
8ab979d7 | 3047 | wxControl *dest; |
c7e7022c | 3048 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
3049 | dest = (wxControl *) src; |
3050 | return (void *) dest; | |
3051 | } | |
3052 | ||
c7e7022c RD |
3053 | static void *SwigwxPyListCtrlTowxWindow(void *ptr) { |
3054 | wxPyListCtrl *src; | |
8ab979d7 | 3055 | wxWindow *dest; |
c7e7022c | 3056 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
3057 | dest = (wxWindow *) src; |
3058 | return (void *) dest; | |
3059 | } | |
3060 | ||
c7e7022c RD |
3061 | static void *SwigwxPyListCtrlTowxEvtHandler(void *ptr) { |
3062 | wxPyListCtrl *src; | |
8ab979d7 | 3063 | wxEvtHandler *dest; |
c7e7022c | 3064 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
3065 | dest = (wxEvtHandler *) src; |
3066 | return (void *) dest; | |
3067 | } | |
3068 | ||
c7e7022c RD |
3069 | static void *SwigwxPyListCtrlTowxObject(void *ptr) { |
3070 | wxPyListCtrl *src; | |
9416aa89 | 3071 | wxObject *dest; |
c7e7022c | 3072 | src = (wxPyListCtrl *) ptr; |
9416aa89 RD |
3073 | dest = (wxObject *) src; |
3074 | return (void *) dest; | |
3075 | } | |
3076 | ||
c7e7022c | 3077 | #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 3078 | static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3079 | PyObject * _resultobj; |
c7e7022c | 3080 | wxPyListCtrl * _result; |
8ab979d7 | 3081 | wxWindow * _arg0; |
c7e7022c | 3082 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
3083 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
3084 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
0adbc166 | 3085 | long _arg4 = (long ) (wxLC_ICON); |
e508a2b6 | 3086 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
3087 | char * _arg6 = (char *) "listCtrl"; |
3088 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3089 | wxPoint temp; |
3090 | PyObject * _obj2 = 0; | |
3091 | wxSize temp0; | |
3092 | PyObject * _obj3 = 0; | |
1d99702e | 3093 | PyObject * _argo5 = 0; |
efc5f224 | 3094 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
3095 | char _ptemp[128]; |
3096 | ||
3097 | self = self; | |
c7e7022c | 3098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 3099 | return NULL; |
1d99702e RD |
3100 | if (_argo0) { |
3101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p."); |
3104 | return NULL; | |
3105 | } | |
3106 | } | |
2f90df85 RD |
3107 | if (_obj2) |
3108 | { | |
3109 | _arg2 = &temp; | |
3110 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 3111 | return NULL; |
2f90df85 RD |
3112 | } |
3113 | if (_obj3) | |
3114 | { | |
3115 | _arg3 = &temp0; | |
3116 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 3117 | return NULL; |
2f90df85 | 3118 | } |
1d99702e RD |
3119 | if (_argo5) { |
3120 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
3121 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
3122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p."); |
3123 | return NULL; | |
3124 | } | |
3125 | } | |
cf694132 RD |
3126 | { |
3127 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3128 | _result = (wxPyListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
cf694132 RD |
3129 | |
3130 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3131 | if (PyErr_Occurred()) return NULL; |
1d99702e | 3132 | } if (_result) { |
c7e7022c | 3133 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); |
1d99702e RD |
3134 | _resultobj = Py_BuildValue("s",_ptemp); |
3135 | } else { | |
3136 | Py_INCREF(Py_None); | |
3137 | _resultobj = Py_None; | |
3138 | } | |
8ab979d7 RD |
3139 | return _resultobj; |
3140 | } | |
3141 | ||
09f3d4e6 RD |
3142 | #define new_wxPreListCtrl() (new wxPyListCtrl()) |
3143 | static PyObject *_wrap_new_wxPreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3144 | PyObject * _resultobj; | |
3145 | wxPyListCtrl * _result; | |
3146 | char *_kwnames[] = { NULL }; | |
3147 | char _ptemp[128]; | |
3148 | ||
3149 | self = self; | |
3150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListCtrl",_kwnames)) | |
3151 | return NULL; | |
3152 | { | |
3153 | wxPy_BEGIN_ALLOW_THREADS; | |
3154 | _result = (wxPyListCtrl *)new_wxPreListCtrl(); | |
3155 | ||
3156 | wxPy_END_ALLOW_THREADS; | |
3157 | if (PyErr_Occurred()) return NULL; | |
3158 | } if (_result) { | |
3159 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); | |
3160 | _resultobj = Py_BuildValue("s",_ptemp); | |
3161 | } else { | |
3162 | Py_INCREF(Py_None); | |
3163 | _resultobj = Py_None; | |
3164 | } | |
3165 | return _resultobj; | |
3166 | } | |
3167 | ||
3168 | #define wxListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3169 | static PyObject *_wrap_wxListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3170 | PyObject * _resultobj; | |
3171 | bool _result; | |
3172 | wxPyListCtrl * _arg0; | |
3173 | wxWindow * _arg1; | |
3174 | wxWindowID _arg2 = (wxWindowID ) -1; | |
3175 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
3176 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
3177 | long _arg5 = (long ) (wxLC_ICON); | |
3178 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
3179 | char * _arg7 = (char *) "listCtrl"; | |
3180 | PyObject * _argo0 = 0; | |
3181 | PyObject * _argo1 = 0; | |
3182 | wxPoint temp; | |
3183 | PyObject * _obj3 = 0; | |
3184 | wxSize temp0; | |
3185 | PyObject * _obj4 = 0; | |
3186 | PyObject * _argo6 = 0; | |
3187 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
3188 | ||
3189 | self = self; | |
3190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
3191 | return NULL; | |
3192 | if (_argo0) { | |
3193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Create. Expected _wxPyListCtrl_p."); | |
3196 | return NULL; | |
3197 | } | |
3198 | } | |
3199 | if (_argo1) { | |
3200 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3201 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_Create. Expected _wxWindow_p."); | |
3203 | return NULL; | |
3204 | } | |
3205 | } | |
3206 | if (_obj3) | |
3207 | { | |
3208 | _arg3 = &temp; | |
3209 | if (! wxPoint_helper(_obj3, &_arg3)) | |
3210 | return NULL; | |
3211 | } | |
3212 | if (_obj4) | |
3213 | { | |
3214 | _arg4 = &temp0; | |
3215 | if (! wxSize_helper(_obj4, &_arg4)) | |
3216 | return NULL; | |
3217 | } | |
3218 | if (_argo6) { | |
3219 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
3220 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
3221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListCtrl_Create. Expected _wxValidator_p."); | |
3222 | return NULL; | |
3223 | } | |
3224 | } | |
3225 | { | |
3226 | wxPy_BEGIN_ALLOW_THREADS; | |
3227 | _result = (bool )wxListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
3228 | ||
3229 | wxPy_END_ALLOW_THREADS; | |
3230 | if (PyErr_Occurred()) return NULL; | |
3231 | } _resultobj = Py_BuildValue("i",_result); | |
3232 | return _resultobj; | |
3233 | } | |
3234 | ||
c7e7022c RD |
3235 | #define wxListCtrl__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) |
3236 | static PyObject *_wrap_wxListCtrl__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3237 | PyObject * _resultobj; |
c7e7022c RD |
3238 | wxPyListCtrl * _arg0; |
3239 | PyObject * _arg1; | |
3240 | PyObject * _arg2; | |
1d99702e | 3241 | PyObject * _argo0 = 0; |
c7e7022c RD |
3242 | PyObject * _obj1 = 0; |
3243 | PyObject * _obj2 = 0; | |
3244 | char *_kwnames[] = { "self","self","_class", NULL }; | |
8ab979d7 RD |
3245 | |
3246 | self = self; | |
c7e7022c | 3247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxListCtrl__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3248 | return NULL; |
1d99702e RD |
3249 | if (_argo0) { |
3250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl__setSelf. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3253 | return NULL; |
3254 | } | |
3255 | } | |
c7e7022c RD |
3256 | { |
3257 | _arg1 = _obj1; | |
3258 | } | |
3259 | { | |
3260 | _arg2 = _obj2; | |
3261 | } | |
cf694132 RD |
3262 | { |
3263 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3264 | wxListCtrl__setSelf(_arg0,_arg1,_arg2); |
cf694132 RD |
3265 | |
3266 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3267 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
3268 | } Py_INCREF(Py_None); |
3269 | _resultobj = Py_None; | |
8ab979d7 RD |
3270 | return _resultobj; |
3271 | } | |
3272 | ||
c7e7022c RD |
3273 | #define wxListCtrl_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) |
3274 | static PyObject *_wrap_wxListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1b62f00d | 3275 | PyObject * _resultobj; |
c7e7022c RD |
3276 | bool _result; |
3277 | wxPyListCtrl * _arg0; | |
3278 | wxColour * _arg1; | |
1b62f00d | 3279 | PyObject * _argo0 = 0; |
c7e7022c RD |
3280 | wxColour temp; |
3281 | PyObject * _obj1 = 0; | |
3282 | char *_kwnames[] = { "self","col", NULL }; | |
1b62f00d RD |
3283 | |
3284 | self = self; | |
c7e7022c | 3285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
1b62f00d RD |
3286 | return NULL; |
3287 | if (_argo0) { | |
3288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetForegroundColour. Expected _wxPyListCtrl_p."); | |
1b62f00d RD |
3291 | return NULL; |
3292 | } | |
3293 | } | |
c7e7022c RD |
3294 | { |
3295 | _arg1 = &temp; | |
3296 | if (! wxColour_helper(_obj1, &_arg1)) | |
1b62f00d | 3297 | return NULL; |
c7e7022c | 3298 | } |
1b62f00d RD |
3299 | { |
3300 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3301 | _result = (bool )wxListCtrl_SetForegroundColour(_arg0,*_arg1); |
1b62f00d RD |
3302 | |
3303 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3304 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3305 | } _resultobj = Py_BuildValue("i",_result); |
1b62f00d RD |
3306 | return _resultobj; |
3307 | } | |
3308 | ||
c7e7022c RD |
3309 | #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
3310 | static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3311 | PyObject * _resultobj; |
3312 | bool _result; | |
c7e7022c RD |
3313 | wxPyListCtrl * _arg0; |
3314 | wxColour * _arg1; | |
1d99702e | 3315 | PyObject * _argo0 = 0; |
c7e7022c RD |
3316 | wxColour temp; |
3317 | PyObject * _obj1 = 0; | |
3318 | char *_kwnames[] = { "self","col", NULL }; | |
8ab979d7 RD |
3319 | |
3320 | self = self; | |
c7e7022c | 3321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3322 | return NULL; |
1d99702e RD |
3323 | if (_argo0) { |
3324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3327 | return NULL; |
3328 | } | |
3329 | } | |
c7e7022c RD |
3330 | { |
3331 | _arg1 = &temp; | |
3332 | if (! wxColour_helper(_obj1, &_arg1)) | |
3333 | return NULL; | |
3334 | } | |
cf694132 RD |
3335 | { |
3336 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3337 | _result = (bool )wxListCtrl_SetBackgroundColour(_arg0,*_arg1); |
cf694132 RD |
3338 | |
3339 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3340 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3341 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3342 | return _resultobj; |
3343 | } | |
3344 | ||
c7e7022c RD |
3345 | #define wxListCtrl_GetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetColumn(_swigarg0,_swigarg1)) |
3346 | static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3347 | PyObject * _resultobj; |
3348 | bool _result; | |
c7e7022c RD |
3349 | wxPyListCtrl * _arg0; |
3350 | int _arg1; | |
3351 | wxListItem * _arg2; | |
1d99702e | 3352 | PyObject * _argo0 = 0; |
c7e7022c RD |
3353 | PyObject * _argo2 = 0; |
3354 | char *_kwnames[] = { "self","col","item", NULL }; | |
8ab979d7 RD |
3355 | |
3356 | self = self; | |
c7e7022c | 3357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3358 | return NULL; |
1d99702e RD |
3359 | if (_argo0) { |
3360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxPyListCtrl_p."); | |
3363 | return NULL; | |
3364 | } | |
3365 | } | |
3366 | if (_argo2) { | |
3367 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3368 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
3369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_GetColumn. Expected _wxListItem_p."); | |
8ab979d7 RD |
3370 | return NULL; |
3371 | } | |
3372 | } | |
cf694132 RD |
3373 | { |
3374 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3375 | _result = (bool )wxListCtrl_GetColumn(_arg0,_arg1,*_arg2); |
cf694132 RD |
3376 | |
3377 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3378 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3379 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3380 | return _resultobj; |
3381 | } | |
3382 | ||
c7e7022c RD |
3383 | #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1)) |
3384 | static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3385 | PyObject * _resultobj; |
3386 | bool _result; | |
c7e7022c | 3387 | wxPyListCtrl * _arg0; |
8ab979d7 | 3388 | int _arg1; |
c7e7022c | 3389 | wxListItem * _arg2; |
1d99702e | 3390 | PyObject * _argo0 = 0; |
c7e7022c RD |
3391 | PyObject * _argo2 = 0; |
3392 | char *_kwnames[] = { "self","col","item", NULL }; | |
8ab979d7 RD |
3393 | |
3394 | self = self; | |
c7e7022c | 3395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3396 | return NULL; |
1d99702e RD |
3397 | if (_argo0) { |
3398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxPyListCtrl_p."); | |
3401 | return NULL; | |
3402 | } | |
3403 | } | |
3404 | if (_argo2) { | |
3405 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3406 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
3407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p."); | |
8ab979d7 RD |
3408 | return NULL; |
3409 | } | |
3410 | } | |
cf694132 RD |
3411 | { |
3412 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3413 | _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2); |
cf694132 RD |
3414 | |
3415 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3416 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3417 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3418 | return _resultobj; |
3419 | } | |
3420 | ||
c7e7022c RD |
3421 | #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0)) |
3422 | static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3423 | PyObject * _resultobj; |
c7e7022c RD |
3424 | int _result; |
3425 | wxPyListCtrl * _arg0; | |
3426 | int _arg1; | |
1d99702e | 3427 | PyObject * _argo0 = 0; |
c7e7022c | 3428 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3429 | |
3430 | self = self; | |
c7e7022c | 3431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3432 | return NULL; |
1d99702e RD |
3433 | if (_argo0) { |
3434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3437 | return NULL; |
3438 | } | |
3439 | } | |
cf694132 RD |
3440 | { |
3441 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3442 | _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1); |
cf694132 RD |
3443 | |
3444 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3445 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3446 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3447 | return _resultobj; |
3448 | } | |
3449 | ||
c7e7022c RD |
3450 | #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1)) |
3451 | static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3452 | PyObject * _resultobj; |
c7e7022c RD |
3453 | bool _result; |
3454 | wxPyListCtrl * _arg0; | |
3455 | int _arg1; | |
3456 | int _arg2; | |
1d99702e | 3457 | PyObject * _argo0 = 0; |
c7e7022c | 3458 | char *_kwnames[] = { "self","col","width", NULL }; |
8ab979d7 RD |
3459 | |
3460 | self = self; | |
c7e7022c | 3461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3462 | return NULL; |
1d99702e RD |
3463 | if (_argo0) { |
3464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3467 | return NULL; |
3468 | } | |
3469 | } | |
cf694132 RD |
3470 | { |
3471 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3472 | _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2); |
cf694132 RD |
3473 | |
3474 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3475 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3476 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3477 | return _resultobj; |
3478 | } | |
3479 | ||
c7e7022c RD |
3480 | #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage()) |
3481 | static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3482 | PyObject * _resultobj; |
c7e7022c RD |
3483 | int _result; |
3484 | wxPyListCtrl * _arg0; | |
1d99702e | 3485 | PyObject * _argo0 = 0; |
c7e7022c | 3486 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3487 | |
3488 | self = self; | |
c7e7022c | 3489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0)) |
8ab979d7 | 3490 | return NULL; |
1d99702e RD |
3491 | if (_argo0) { |
3492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3495 | return NULL; |
3496 | } | |
3497 | } | |
cf694132 RD |
3498 | { |
3499 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3500 | _result = (int )wxListCtrl_GetCountPerPage(_arg0); |
cf694132 RD |
3501 | |
3502 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3503 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3504 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3505 | return _resultobj; |
3506 | } | |
3507 | ||
c7e7022c RD |
3508 | #define wxListCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) |
3509 | static PyObject *_wrap_wxListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3510 | PyObject * _resultobj; |
c7e7022c RD |
3511 | wxTextCtrl * _result; |
3512 | wxPyListCtrl * _arg0; | |
1d99702e | 3513 | PyObject * _argo0 = 0; |
c7e7022c | 3514 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3515 | |
3516 | self = self; | |
c7e7022c | 3517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetEditControl",_kwnames,&_argo0)) |
8ab979d7 | 3518 | return NULL; |
1d99702e RD |
3519 | if (_argo0) { |
3520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetEditControl. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3523 | return NULL; |
3524 | } | |
3525 | } | |
cf694132 RD |
3526 | { |
3527 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3528 | _result = (wxTextCtrl *)wxListCtrl_GetEditControl(_arg0); |
cf694132 RD |
3529 | |
3530 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3531 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3532 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
3533 | return _resultobj; |
3534 | } | |
3535 | ||
c7e7022c RD |
3536 | static wxListItem * wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col) { |
3537 | wxListItem* info = new wxListItem; | |
3538 | info->m_itemId = itemId; | |
3539 | info->m_col = col; | |
3540 | info->m_mask = 0xFFFF; | |
3541 | self->GetItem(*info); | |
3542 | return info; | |
3543 | } | |
3544 | static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 3545 | PyObject * _resultobj; |
c7e7022c RD |
3546 | wxListItem * _result; |
3547 | wxPyListCtrl * _arg0; | |
3548 | long _arg1; | |
3549 | int _arg2 = (int ) 0; | |
1d99702e | 3550 | PyObject * _argo0 = 0; |
c7e7022c | 3551 | char *_kwnames[] = { "self","itemId","col", NULL }; |
be4d9c1f RD |
3552 | |
3553 | self = self; | |
c7e7022c | 3554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
be4d9c1f | 3555 | return NULL; |
1d99702e RD |
3556 | if (_argo0) { |
3557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxPyListCtrl_p."); | |
be4d9c1f RD |
3560 | return NULL; |
3561 | } | |
3562 | } | |
cf694132 RD |
3563 | { |
3564 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3565 | _result = (wxListItem *)wxPyListCtrl_GetItem(_arg0,_arg1,_arg2); |
cf694132 RD |
3566 | |
3567 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3568 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 3569 | }{ _resultobj = wxPyMake_wxObject(_result); } |
be4d9c1f RD |
3570 | return _resultobj; |
3571 | } | |
3572 | ||
c7e7022c RD |
3573 | #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) |
3574 | static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3575 | PyObject * _resultobj; |
3576 | bool _result; | |
c7e7022c RD |
3577 | wxPyListCtrl * _arg0; |
3578 | wxListItem * _arg1; | |
1d99702e | 3579 | PyObject * _argo0 = 0; |
c7e7022c RD |
3580 | PyObject * _argo1 = 0; |
3581 | char *_kwnames[] = { "self","info", NULL }; | |
8ab979d7 RD |
3582 | |
3583 | self = self; | |
c7e7022c | 3584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3585 | return NULL; |
1d99702e RD |
3586 | if (_argo0) { |
3587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxPyListCtrl_p."); | |
3590 | return NULL; | |
3591 | } | |
3592 | } | |
3593 | if (_argo1) { | |
3594 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3595 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
3596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p."); | |
8ab979d7 RD |
3597 | return NULL; |
3598 | } | |
3599 | } | |
cf694132 RD |
3600 | { |
3601 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3602 | _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1); |
cf694132 RD |
3603 | |
3604 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3605 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3606 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3607 | return _resultobj; |
3608 | } | |
3609 | ||
c7e7022c RD |
3610 | #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3611 | static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3612 | PyObject * _resultobj; |
3613 | long _result; | |
c7e7022c | 3614 | wxPyListCtrl * _arg0; |
8ab979d7 | 3615 | long _arg1; |
c7e7022c RD |
3616 | int _arg2; |
3617 | wxString * _arg3; | |
3618 | int _arg4 = (int ) -1; | |
1d99702e | 3619 | PyObject * _argo0 = 0; |
c7e7022c RD |
3620 | PyObject * _obj3 = 0; |
3621 | char *_kwnames[] = { "self","index","col","label","imageId", NULL }; | |
8ab979d7 RD |
3622 | |
3623 | self = self; | |
c7e7022c | 3624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
8ab979d7 | 3625 | return NULL; |
1d99702e RD |
3626 | if (_argo0) { |
3627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3630 | return NULL; |
3631 | } | |
3632 | } | |
3633 | { | |
185d7c3e RD |
3634 | #if PYTHON_API_VERSION >= 1009 |
3635 | char* tmpPtr; int tmpSize; | |
c7e7022c | 3636 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { |
794c5cb1 | 3637 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
3638 | return NULL; |
3639 | } | |
c7e7022c | 3640 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) |
185d7c3e | 3641 | return NULL; |
c7e7022c | 3642 | _arg3 = new wxString(tmpPtr, tmpSize); |
185d7c3e | 3643 | #else |
c7e7022c | 3644 | if (!PyString_Check(_obj3)) { |
8ab979d7 RD |
3645 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
3646 | return NULL; | |
3647 | } | |
c7e7022c | 3648 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
185d7c3e | 3649 | #endif |
8ab979d7 | 3650 | } |
cf694132 RD |
3651 | { |
3652 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3653 | _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4); |
cf694132 RD |
3654 | |
3655 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3656 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3657 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 3658 | { |
c7e7022c RD |
3659 | if (_obj3) |
3660 | delete _arg3; | |
8ab979d7 RD |
3661 | } |
3662 | return _resultobj; | |
3663 | } | |
3664 | ||
c7e7022c RD |
3665 | #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1)) |
3666 | static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3667 | PyObject * _resultobj; |
c7e7022c RD |
3668 | int _result; |
3669 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
3670 | long _arg1; |
3671 | long _arg2; | |
1d99702e | 3672 | PyObject * _argo0 = 0; |
c7e7022c | 3673 | char *_kwnames[] = { "self","item","stateMask", NULL }; |
8ab979d7 RD |
3674 | |
3675 | self = self; | |
c7e7022c | 3676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3677 | return NULL; |
1d99702e RD |
3678 | if (_argo0) { |
3679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3682 | return NULL; |
3683 | } | |
3684 | } | |
cf694132 RD |
3685 | { |
3686 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3687 | _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2); |
cf694132 RD |
3688 | |
3689 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3690 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3691 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3692 | return _resultobj; |
3693 | } | |
3694 | ||
c7e7022c RD |
3695 | #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2)) |
3696 | static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3697 | PyObject * _resultobj; |
c7e7022c RD |
3698 | bool _result; |
3699 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3700 | long _arg1; |
c7e7022c RD |
3701 | long _arg2; |
3702 | long _arg3; | |
1d99702e | 3703 | PyObject * _argo0 = 0; |
c7e7022c | 3704 | char *_kwnames[] = { "self","item","state","stateMask", NULL }; |
8ab979d7 RD |
3705 | |
3706 | self = self; | |
c7e7022c | 3707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3708 | return NULL; |
1d99702e RD |
3709 | if (_argo0) { |
3710 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3711 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3712 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3713 | return NULL; |
3714 | } | |
3715 | } | |
cf694132 RD |
3716 | { |
3717 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3718 | _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
3719 | |
3720 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3721 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3722 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3723 | return _resultobj; |
3724 | } | |
3725 | ||
c7e7022c RD |
3726 | #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
3727 | static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3728 | PyObject * _resultobj; |
3729 | bool _result; | |
c7e7022c RD |
3730 | wxPyListCtrl * _arg0; |
3731 | long _arg1; | |
3732 | int _arg2; | |
3733 | int _arg3; | |
1d99702e | 3734 | PyObject * _argo0 = 0; |
c7e7022c | 3735 | char *_kwnames[] = { "self","item","image","selImage", NULL }; |
8ab979d7 RD |
3736 | |
3737 | self = self; | |
c7e7022c | 3738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3739 | return NULL; |
1d99702e RD |
3740 | if (_argo0) { |
3741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3744 | return NULL; |
3745 | } | |
3746 | } | |
cf694132 RD |
3747 | { |
3748 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3749 | _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
3750 | |
3751 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3752 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3753 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3754 | return _resultobj; |
3755 | } | |
3756 | ||
c7e7022c RD |
3757 | #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
3758 | static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3759 | PyObject * _resultobj; |
c7e7022c RD |
3760 | wxString * _result; |
3761 | wxPyListCtrl * _arg0; | |
3762 | long _arg1; | |
1d99702e | 3763 | PyObject * _argo0 = 0; |
c7e7022c | 3764 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3765 | |
3766 | self = self; | |
c7e7022c | 3767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3768 | return NULL; |
1d99702e RD |
3769 | if (_argo0) { |
3770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3773 | return NULL; |
3774 | } | |
3775 | } | |
cf694132 RD |
3776 | { |
3777 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3778 | _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1)); |
cf694132 RD |
3779 | |
3780 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3781 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
3782 | }{ |
3783 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3784 | } | |
3785 | { | |
3786 | delete _result; | |
3787 | } | |
8ab979d7 RD |
3788 | return _resultobj; |
3789 | } | |
3790 | ||
c7e7022c RD |
3791 | #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
3792 | static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3793 | PyObject * _resultobj; |
c7e7022c RD |
3794 | wxPyListCtrl * _arg0; |
3795 | long _arg1; | |
3796 | wxString * _arg2; | |
1d99702e | 3797 | PyObject * _argo0 = 0; |
c7e7022c RD |
3798 | PyObject * _obj2 = 0; |
3799 | char *_kwnames[] = { "self","item","str", NULL }; | |
8ab979d7 RD |
3800 | |
3801 | self = self; | |
c7e7022c | 3802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3803 | return NULL; |
1d99702e RD |
3804 | if (_argo0) { |
3805 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3806 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3808 | return NULL; |
3809 | } | |
3810 | } | |
cf694132 | 3811 | { |
c7e7022c RD |
3812 | #if PYTHON_API_VERSION >= 1009 |
3813 | char* tmpPtr; int tmpSize; | |
3814 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3815 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 3816 | return NULL; |
c7e7022c RD |
3817 | } |
3818 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3819 | return NULL; | |
3820 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3821 | #else | |
3822 | if (!PyString_Check(_obj2)) { | |
3823 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 3824 | return NULL; |
8ab979d7 | 3825 | } |
c7e7022c RD |
3826 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3827 | #endif | |
3828 | } | |
cf694132 RD |
3829 | { |
3830 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3831 | wxListCtrl_SetItemText(_arg0,_arg1,*_arg2); |
cf694132 RD |
3832 | |
3833 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3834 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
3835 | } Py_INCREF(Py_None); |
3836 | _resultobj = Py_None; | |
3837 | { | |
3838 | if (_obj2) | |
3839 | delete _arg2; | |
3840 | } | |
8ab979d7 RD |
3841 | return _resultobj; |
3842 | } | |
3843 | ||
3844 | #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0)) | |
efc5f224 | 3845 | static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3846 | PyObject * _resultobj; |
3847 | long _result; | |
c7e7022c | 3848 | wxPyListCtrl * _arg0; |
8ab979d7 | 3849 | long _arg1; |
1d99702e | 3850 | PyObject * _argo0 = 0; |
efc5f224 | 3851 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3852 | |
3853 | self = self; | |
efc5f224 | 3854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3855 | return NULL; |
1d99702e RD |
3856 | if (_argo0) { |
3857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3860 | return NULL; |
3861 | } | |
3862 | } | |
cf694132 RD |
3863 | { |
3864 | wxPy_BEGIN_ALLOW_THREADS; | |
3865 | _result = (long )wxListCtrl_GetItemData(_arg0,_arg1); | |
3866 | ||
3867 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3868 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3869 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
3870 | return _resultobj; |
3871 | } | |
3872 | ||
c7e7022c RD |
3873 | #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1)) |
3874 | static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3875 | PyObject * _resultobj; |
c7e7022c RD |
3876 | bool _result; |
3877 | wxPyListCtrl * _arg0; | |
0699c864 | 3878 | long _arg1; |
c7e7022c | 3879 | long _arg2; |
1d99702e | 3880 | PyObject * _argo0 = 0; |
c7e7022c | 3881 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
3882 | |
3883 | self = self; | |
c7e7022c | 3884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3885 | return NULL; |
1d99702e RD |
3886 | if (_argo0) { |
3887 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3888 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3890 | return NULL; |
3891 | } | |
3892 | } | |
cf694132 RD |
3893 | { |
3894 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3895 | _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2); |
cf694132 RD |
3896 | |
3897 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3898 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3899 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3900 | return _resultobj; |
3901 | } | |
3902 | ||
c7e7022c | 3903 | static wxPoint * wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item) { |
8ab979d7 RD |
3904 | wxPoint* pos = new wxPoint; |
3905 | self->GetItemPosition(item, *pos); | |
3906 | return pos; | |
3907 | } | |
efc5f224 | 3908 | static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3909 | PyObject * _resultobj; |
3910 | wxPoint * _result; | |
c7e7022c | 3911 | wxPyListCtrl * _arg0; |
8ab979d7 | 3912 | long _arg1; |
1d99702e | 3913 | PyObject * _argo0 = 0; |
efc5f224 | 3914 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3915 | char _ptemp[128]; |
3916 | ||
3917 | self = self; | |
efc5f224 | 3918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3919 | return NULL; |
1d99702e RD |
3920 | if (_argo0) { |
3921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3924 | return NULL; |
3925 | } | |
3926 | } | |
cf694132 RD |
3927 | { |
3928 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3929 | _result = (wxPoint *)wxPyListCtrl_GetItemPosition(_arg0,_arg1); |
cf694132 RD |
3930 | |
3931 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3932 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3933 | } if (_result) { |
3934 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
3935 | _resultobj = Py_BuildValue("s",_ptemp); | |
3936 | } else { | |
3937 | Py_INCREF(Py_None); | |
3938 | _resultobj = Py_None; | |
3939 | } | |
8ab979d7 RD |
3940 | return _resultobj; |
3941 | } | |
3942 | ||
c7e7022c | 3943 | static wxRect * wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code) { |
8ab979d7 RD |
3944 | wxRect* rect= new wxRect; |
3945 | self->GetItemRect(item, *rect, code); | |
3946 | return rect; | |
3947 | } | |
efc5f224 | 3948 | static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3949 | PyObject * _resultobj; |
3950 | wxRect * _result; | |
c7e7022c | 3951 | wxPyListCtrl * _arg0; |
8ab979d7 | 3952 | long _arg1; |
1d99702e RD |
3953 | int _arg2 = (int ) (wxLIST_RECT_BOUNDS); |
3954 | PyObject * _argo0 = 0; | |
efc5f224 | 3955 | char *_kwnames[] = { "self","item","code", NULL }; |
8ab979d7 RD |
3956 | char _ptemp[128]; |
3957 | ||
3958 | self = self; | |
efc5f224 | 3959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3960 | return NULL; |
1d99702e RD |
3961 | if (_argo0) { |
3962 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3963 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3964 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3965 | return NULL; |
3966 | } | |
3967 | } | |
cf694132 RD |
3968 | { |
3969 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3970 | _result = (wxRect *)wxPyListCtrl_GetItemRect(_arg0,_arg1,_arg2); |
cf694132 RD |
3971 | |
3972 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3973 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3974 | } if (_result) { |
3975 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
3976 | _resultobj = Py_BuildValue("s",_ptemp); | |
3977 | } else { | |
3978 | Py_INCREF(Py_None); | |
3979 | _resultobj = Py_None; | |
3980 | } | |
8ab979d7 RD |
3981 | return _resultobj; |
3982 | } | |
3983 | ||
c7e7022c RD |
3984 | #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1)) |
3985 | static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3986 | PyObject * _resultobj; |
c7e7022c RD |
3987 | bool _result; |
3988 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3989 | long _arg1; |
c7e7022c | 3990 | wxPoint * _arg2; |
1d99702e | 3991 | PyObject * _argo0 = 0; |
c7e7022c RD |
3992 | wxPoint temp; |
3993 | PyObject * _obj2 = 0; | |
3994 | char *_kwnames[] = { "self","item","pos", NULL }; | |
8ab979d7 RD |
3995 | |
3996 | self = self; | |
c7e7022c | 3997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3998 | return NULL; |
1d99702e RD |
3999 | if (_argo0) { |
4000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4003 | return NULL; |
4004 | } | |
4005 | } | |
c7e7022c RD |
4006 | { |
4007 | _arg2 = &temp; | |
4008 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4009 | return NULL; | |
4010 | } | |
cf694132 RD |
4011 | { |
4012 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4013 | _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2); |
cf694132 RD |
4014 | |
4015 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4016 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4017 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4018 | return _resultobj; |
4019 | } | |
4020 | ||
4021 | #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
efc5f224 | 4022 | static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4023 | PyObject * _resultobj; |
4024 | int _result; | |
c7e7022c | 4025 | wxPyListCtrl * _arg0; |
1d99702e | 4026 | PyObject * _argo0 = 0; |
efc5f224 | 4027 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4028 | |
4029 | self = self; | |
efc5f224 | 4030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0)) |
8ab979d7 | 4031 | return NULL; |
1d99702e RD |
4032 | if (_argo0) { |
4033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4036 | return NULL; |
4037 | } | |
4038 | } | |
cf694132 RD |
4039 | { |
4040 | wxPy_BEGIN_ALLOW_THREADS; | |
4041 | _result = (int )wxListCtrl_GetItemCount(_arg0); | |
4042 | ||
4043 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4044 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4045 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4046 | return _resultobj; |
4047 | } | |
4048 | ||
c7e7022c RD |
4049 | #define wxListCtrl_GetColumnCount(_swigobj) (_swigobj->GetColumnCount()) |
4050 | static PyObject *_wrap_wxListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4051 | PyObject * _resultobj; |
4052 | int _result; | |
c7e7022c | 4053 | wxPyListCtrl * _arg0; |
1d99702e | 4054 | PyObject * _argo0 = 0; |
c7e7022c | 4055 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4056 | |
4057 | self = self; | |
c7e7022c | 4058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetColumnCount",_kwnames,&_argo0)) |
8ab979d7 | 4059 | return NULL; |
1d99702e RD |
4060 | if (_argo0) { |
4061 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4062 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4064 | return NULL; |
4065 | } | |
4066 | } | |
cf694132 RD |
4067 | { |
4068 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4069 | _result = (int )wxListCtrl_GetColumnCount(_arg0); |
cf694132 RD |
4070 | |
4071 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4072 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4073 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4074 | return _resultobj; |
4075 | } | |
4076 | ||
c7e7022c RD |
4077 | #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0)) |
4078 | static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4079 | PyObject * _resultobj; |
c7e7022c RD |
4080 | int _result; |
4081 | wxPyListCtrl * _arg0; | |
4082 | bool _arg1; | |
1d99702e | 4083 | PyObject * _argo0 = 0; |
c7e7022c RD |
4084 | int tempbool1; |
4085 | char *_kwnames[] = { "self","isSmall", NULL }; | |
8ab979d7 RD |
4086 | |
4087 | self = self; | |
c7e7022c | 4088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4089 | return NULL; |
1d99702e RD |
4090 | if (_argo0) { |
4091 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4092 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4093 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4094 | return NULL; |
4095 | } | |
4096 | } | |
c7e7022c | 4097 | _arg1 = (bool ) tempbool1; |
8ab979d7 | 4098 | { |
cf694132 | 4099 | wxPy_BEGIN_ALLOW_THREADS; |
c7e7022c | 4100 | _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1); |
cf694132 RD |
4101 | |
4102 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4103 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4104 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4105 | return _resultobj; |
4106 | } | |
4107 | ||
c7e7022c RD |
4108 | #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount()) |
4109 | static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4110 | PyObject * _resultobj; |
c7e7022c RD |
4111 | int _result; |
4112 | wxPyListCtrl * _arg0; | |
1d99702e | 4113 | PyObject * _argo0 = 0; |
c7e7022c | 4114 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4115 | |
4116 | self = self; | |
c7e7022c | 4117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0)) |
8ab979d7 | 4118 | return NULL; |
1d99702e RD |
4119 | if (_argo0) { |
4120 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4121 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4123 | return NULL; |
4124 | } | |
4125 | } | |
cf694132 RD |
4126 | { |
4127 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4128 | _result = (int )wxListCtrl_GetSelectedItemCount(_arg0); |
cf694132 RD |
4129 | |
4130 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4131 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4132 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4133 | return _resultobj; |
4134 | } | |
4135 | ||
c7e7022c RD |
4136 | #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
4137 | static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4138 | PyObject * _resultobj; |
c7e7022c RD |
4139 | wxColour * _result; |
4140 | wxPyListCtrl * _arg0; | |
1d99702e | 4141 | PyObject * _argo0 = 0; |
efc5f224 | 4142 | char *_kwnames[] = { "self", NULL }; |
c7e7022c | 4143 | char _ptemp[128]; |
8ab979d7 RD |
4144 | |
4145 | self = self; | |
c7e7022c | 4146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 4147 | return NULL; |
1d99702e RD |
4148 | if (_argo0) { |
4149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4152 | return NULL; |
4153 | } | |
4154 | } | |
cf694132 RD |
4155 | { |
4156 | wxPy_BEGIN_ALLOW_THREADS; | |
4157 | _result = new wxColour (wxListCtrl_GetTextColour(_arg0)); | |
4158 | ||
4159 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4160 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4161 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
4162 | _resultobj = Py_BuildValue("s",_ptemp); |
4163 | return _resultobj; | |
4164 | } | |
4165 | ||
be4d9c1f | 4166 | #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
efc5f224 | 4167 | static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
be4d9c1f | 4168 | PyObject * _resultobj; |
c7e7022c | 4169 | wxPyListCtrl * _arg0; |
be4d9c1f | 4170 | wxColour * _arg1; |
1d99702e | 4171 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4172 | wxColour temp; |
4173 | PyObject * _obj1 = 0; | |
efc5f224 | 4174 | char *_kwnames[] = { "self","col", NULL }; |
be4d9c1f RD |
4175 | |
4176 | self = self; | |
f6bcfd97 | 4177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1)) |
be4d9c1f | 4178 | return NULL; |
1d99702e RD |
4179 | if (_argo0) { |
4180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxPyListCtrl_p."); | |
be4d9c1f RD |
4183 | return NULL; |
4184 | } | |
4185 | } | |
f6bcfd97 BP |
4186 | { |
4187 | _arg1 = &temp; | |
4188 | if (! wxColour_helper(_obj1, &_arg1)) | |
be4d9c1f | 4189 | return NULL; |
f6bcfd97 | 4190 | } |
cf694132 RD |
4191 | { |
4192 | wxPy_BEGIN_ALLOW_THREADS; | |
4193 | wxListCtrl_SetTextColour(_arg0,*_arg1); | |
4194 | ||
4195 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4196 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4197 | } Py_INCREF(Py_None); |
be4d9c1f RD |
4198 | _resultobj = Py_None; |
4199 | return _resultobj; | |
4200 | } | |
4201 | ||
8ab979d7 | 4202 | #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem()) |
efc5f224 | 4203 | static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4204 | PyObject * _resultobj; |
4205 | long _result; | |
c7e7022c | 4206 | wxPyListCtrl * _arg0; |
1d99702e | 4207 | PyObject * _argo0 = 0; |
efc5f224 | 4208 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4209 | |
4210 | self = self; | |
efc5f224 | 4211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0)) |
8ab979d7 | 4212 | return NULL; |
1d99702e RD |
4213 | if (_argo0) { |
4214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4217 | return NULL; |
4218 | } | |
4219 | } | |
cf694132 RD |
4220 | { |
4221 | wxPy_BEGIN_ALLOW_THREADS; | |
4222 | _result = (long )wxListCtrl_GetTopItem(_arg0); | |
4223 | ||
4224 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4225 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4226 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4227 | return _resultobj; |
4228 | } | |
4229 | ||
c7e7022c RD |
4230 | #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1)) |
4231 | static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4232 | PyObject * _resultobj; |
c7e7022c RD |
4233 | wxPyListCtrl * _arg0; |
4234 | long _arg1; | |
4235 | bool _arg2 = (bool ) TRUE; | |
1d99702e | 4236 | PyObject * _argo0 = 0; |
c7e7022c RD |
4237 | int tempbool2 = (int) TRUE; |
4238 | char *_kwnames[] = { "self","style","add", NULL }; | |
8ab979d7 RD |
4239 | |
4240 | self = self; | |
c7e7022c | 4241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 4242 | return NULL; |
1d99702e RD |
4243 | if (_argo0) { |
4244 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4245 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4247 | return NULL; |
4248 | } | |
4249 | } | |
c7e7022c | 4250 | _arg2 = (bool ) tempbool2; |
cf694132 RD |
4251 | { |
4252 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4253 | wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2); |
cf694132 RD |
4254 | |
4255 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4256 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4257 | } Py_INCREF(Py_None); |
4258 | _resultobj = Py_None; | |
8ab979d7 RD |
4259 | return _resultobj; |
4260 | } | |
4261 | ||
c7e7022c RD |
4262 | #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
4263 | static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4264 | PyObject * _resultobj; |
c7e7022c | 4265 | wxPyListCtrl * _arg0; |
8ab979d7 | 4266 | long _arg1; |
1d99702e | 4267 | PyObject * _argo0 = 0; |
c7e7022c | 4268 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
4269 | |
4270 | self = self; | |
c7e7022c | 4271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4272 | return NULL; |
1d99702e RD |
4273 | if (_argo0) { |
4274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4277 | return NULL; |
4278 | } | |
4279 | } | |
cf694132 RD |
4280 | { |
4281 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4282 | wxListCtrl_SetWindowStyleFlag(_arg0,_arg1); |
cf694132 RD |
4283 | |
4284 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4285 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4286 | } Py_INCREF(Py_None); |
4287 | _resultobj = Py_None; | |
8ab979d7 RD |
4288 | return _resultobj; |
4289 | } | |
4290 | ||
c7e7022c RD |
4291 | #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2)) |
4292 | static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4293 | PyObject * _resultobj; |
4294 | long _result; | |
c7e7022c | 4295 | wxPyListCtrl * _arg0; |
8ab979d7 | 4296 | long _arg1; |
c7e7022c RD |
4297 | int _arg2 = (int ) (wxLIST_NEXT_ALL); |
4298 | int _arg3 = (int ) (wxLIST_STATE_DONTCARE); | |
1d99702e | 4299 | PyObject * _argo0 = 0; |
c7e7022c | 4300 | char *_kwnames[] = { "self","item","geometry","state", NULL }; |
8ab979d7 RD |
4301 | |
4302 | self = self; | |
c7e7022c | 4303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 4304 | return NULL; |
1d99702e RD |
4305 | if (_argo0) { |
4306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4309 | return NULL; |
4310 | } | |
4311 | } | |
4312 | { | |
c7e7022c RD |
4313 | wxPy_BEGIN_ALLOW_THREADS; |
4314 | _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3); | |
4315 | ||
4316 | wxPy_END_ALLOW_THREADS; | |
4317 | if (PyErr_Occurred()) return NULL; | |
4318 | } _resultobj = Py_BuildValue("l",_result); | |
4319 | return _resultobj; | |
4320 | } | |
4321 | ||
4322 | #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0)) | |
4323 | static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4324 | PyObject * _resultobj; | |
4325 | wxImageList * _result; | |
4326 | wxPyListCtrl * _arg0; | |
4327 | int _arg1; | |
4328 | PyObject * _argo0 = 0; | |
4329 | char *_kwnames[] = { "self","which", NULL }; | |
4330 | ||
4331 | self = self; | |
4332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1)) | |
185d7c3e | 4333 | return NULL; |
c7e7022c RD |
4334 | if (_argo0) { |
4335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 | 4338 | return NULL; |
c7e7022c | 4339 | } |
8ab979d7 | 4340 | } |
cf694132 RD |
4341 | { |
4342 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4343 | _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1); |
cf694132 RD |
4344 | |
4345 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4346 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4347 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
4348 | return _resultobj; |
4349 | } | |
4350 | ||
c7e7022c RD |
4351 | #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1)) |
4352 | static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4353 | PyObject * _resultobj; |
c7e7022c RD |
4354 | wxPyListCtrl * _arg0; |
4355 | wxImageList * _arg1; | |
4356 | int _arg2; | |
1d99702e RD |
4357 | PyObject * _argo0 = 0; |
4358 | PyObject * _argo1 = 0; | |
c7e7022c | 4359 | char *_kwnames[] = { "self","imageList","which", NULL }; |
8ab979d7 RD |
4360 | |
4361 | self = self; | |
c7e7022c | 4362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4363 | return NULL; |
1d99702e RD |
4364 | if (_argo0) { |
4365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4368 | return NULL; |
4369 | } | |
4370 | } | |
1d99702e RD |
4371 | if (_argo1) { |
4372 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
c7e7022c RD |
4373 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { |
4374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p."); | |
8ab979d7 RD |
4375 | return NULL; |
4376 | } | |
4377 | } | |
cf694132 RD |
4378 | { |
4379 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4380 | wxListCtrl_SetImageList(_arg0,_arg1,_arg2); |
cf694132 RD |
4381 | |
4382 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4383 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4384 | } Py_INCREF(Py_None); |
4385 | _resultobj = Py_None; | |
8ab979d7 RD |
4386 | return _resultobj; |
4387 | } | |
4388 | ||
c7e7022c RD |
4389 | #define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1)) |
4390 | static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4391 | PyObject * _resultobj; |
c7e7022c RD |
4392 | wxPyListCtrl * _arg0; |
4393 | wxImageList * _arg1; | |
4394 | int _arg2; | |
1d99702e | 4395 | PyObject * _argo0 = 0; |
c7e7022c RD |
4396 | PyObject * _argo1 = 0; |
4397 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
8ab979d7 RD |
4398 | |
4399 | self = self; | |
c7e7022c | 4400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4401 | return NULL; |
1d99702e RD |
4402 | if (_argo0) { |
4403 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4404 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4406 | return NULL; |
4407 | } | |
4408 | } | |
c7e7022c RD |
4409 | if (_argo1) { |
4410 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4411 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p."); | |
8ab979d7 | 4413 | return NULL; |
c7e7022c | 4414 | } |
8ab979d7 | 4415 | } |
cf694132 RD |
4416 | { |
4417 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4418 | wxListCtrl_AssignImageList(_arg0,_arg1,_arg2); |
cf694132 RD |
4419 | |
4420 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4421 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4422 | } Py_INCREF(Py_None); |
4423 | _resultobj = Py_None; | |
8ab979d7 RD |
4424 | return _resultobj; |
4425 | } | |
4426 | ||
c7e7022c RD |
4427 | #define wxListCtrl_IsVirtual(_swigobj) (_swigobj->IsVirtual()) |
4428 | static PyObject *_wrap_wxListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4429 | PyObject * _resultobj; |
c7e7022c RD |
4430 | bool _result; |
4431 | wxPyListCtrl * _arg0; | |
1d99702e | 4432 | PyObject * _argo0 = 0; |
c7e7022c | 4433 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4434 | |
4435 | self = self; | |
c7e7022c | 4436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_IsVirtual",_kwnames,&_argo0)) |
8ab979d7 | 4437 | return NULL; |
1d99702e RD |
4438 | if (_argo0) { |
4439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_IsVirtual. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4442 | return NULL; |
4443 | } | |
4444 | } | |
cf694132 RD |
4445 | { |
4446 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4447 | _result = (bool )wxListCtrl_IsVirtual(_arg0); |
cf694132 RD |
4448 | |
4449 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4450 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4451 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4452 | return _resultobj; |
4453 | } | |
4454 | ||
c7e7022c RD |
4455 | #define wxListCtrl_RefreshItem(_swigobj,_swigarg0) (_swigobj->RefreshItem(_swigarg0)) |
4456 | static PyObject *_wrap_wxListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4457 | PyObject * _resultobj; |
c7e7022c | 4458 | wxPyListCtrl * _arg0; |
8ab979d7 | 4459 | long _arg1; |
1d99702e | 4460 | PyObject * _argo0 = 0; |
c7e7022c | 4461 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4462 | |
4463 | self = self; | |
c7e7022c | 4464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_RefreshItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4465 | return NULL; |
1d99702e RD |
4466 | if (_argo0) { |
4467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4470 | return NULL; |
4471 | } | |
4472 | } | |
cf694132 RD |
4473 | { |
4474 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4475 | wxListCtrl_RefreshItem(_arg0,_arg1); |
cf694132 RD |
4476 | |
4477 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4478 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4479 | } Py_INCREF(Py_None); |
4480 | _resultobj = Py_None; | |
8ab979d7 RD |
4481 | return _resultobj; |
4482 | } | |
4483 | ||
c7e7022c RD |
4484 | #define wxListCtrl_RefreshItems(_swigobj,_swigarg0,_swigarg1) (_swigobj->RefreshItems(_swigarg0,_swigarg1)) |
4485 | static PyObject *_wrap_wxListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4486 | PyObject * _resultobj; |
c7e7022c RD |
4487 | wxPyListCtrl * _arg0; |
4488 | long _arg1; | |
4489 | long _arg2; | |
1d99702e | 4490 | PyObject * _argo0 = 0; |
c7e7022c | 4491 | char *_kwnames[] = { "self","itemFrom","itemTo", NULL }; |
8ab979d7 RD |
4492 | |
4493 | self = self; | |
c7e7022c | 4494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_RefreshItems",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4495 | return NULL; |
1d99702e RD |
4496 | if (_argo0) { |
4497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItems. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4500 | return NULL; |
4501 | } | |
4502 | } | |
cf694132 RD |
4503 | { |
4504 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4505 | wxListCtrl_RefreshItems(_arg0,_arg1,_arg2); |
cf694132 RD |
4506 | |
4507 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4508 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4509 | } Py_INCREF(Py_None); |
4510 | _resultobj = Py_None; | |
8ab979d7 RD |
4511 | return _resultobj; |
4512 | } | |
4513 | ||
c7e7022c RD |
4514 | #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0)) |
4515 | static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4516 | PyObject * _resultobj; |
c7e7022c RD |
4517 | bool _result; |
4518 | wxPyListCtrl * _arg0; | |
4519 | int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT); | |
1d99702e | 4520 | PyObject * _argo0 = 0; |
c7e7022c | 4521 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
4522 | |
4523 | self = self; | |
c7e7022c | 4524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4525 | return NULL; |
1d99702e RD |
4526 | if (_argo0) { |
4527 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4528 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4529 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4530 | return NULL; |
4531 | } | |
4532 | } | |
cf694132 RD |
4533 | { |
4534 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4535 | _result = (bool )wxListCtrl_Arrange(_arg0,_arg1); |
cf694132 RD |
4536 | |
4537 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4538 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4539 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4540 | return _resultobj; |
4541 | } | |
4542 | ||
c7e7022c RD |
4543 | #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0)) |
4544 | static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4545 | PyObject * _resultobj; |
4546 | bool _result; | |
c7e7022c RD |
4547 | wxPyListCtrl * _arg0; |
4548 | long _arg1; | |
1d99702e | 4549 | PyObject * _argo0 = 0; |
c7e7022c | 4550 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4551 | |
4552 | self = self; | |
c7e7022c | 4553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4554 | return NULL; |
1d99702e RD |
4555 | if (_argo0) { |
4556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4559 | return NULL; |
4560 | } | |
4561 | } | |
c7e7022c RD |
4562 | { |
4563 | wxPy_BEGIN_ALLOW_THREADS; | |
4564 | _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1); | |
4565 | ||
4566 | wxPy_END_ALLOW_THREADS; | |
4567 | if (PyErr_Occurred()) return NULL; | |
4568 | } _resultobj = Py_BuildValue("i",_result); | |
4569 | return _resultobj; | |
4570 | } | |
4571 | ||
4572 | #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
4573 | static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4574 | PyObject * _resultobj; | |
4575 | bool _result; | |
4576 | wxPyListCtrl * _arg0; | |
4577 | PyObject * _argo0 = 0; | |
4578 | char *_kwnames[] = { "self", NULL }; | |
4579 | ||
4580 | self = self; | |
4581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0)) | |
4582 | return NULL; | |
4583 | if (_argo0) { | |
4584 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4585 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4587 | return NULL; |
4588 | } | |
4589 | } | |
cf694132 RD |
4590 | { |
4591 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4592 | _result = (bool )wxListCtrl_DeleteAllItems(_arg0); |
cf694132 RD |
4593 | |
4594 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4595 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4596 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4597 | return _resultobj; |
4598 | } | |
4599 | ||
c7e7022c RD |
4600 | #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0)) |
4601 | static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4602 | PyObject * _resultobj; |
4603 | bool _result; | |
c7e7022c | 4604 | wxPyListCtrl * _arg0; |
8ab979d7 | 4605 | int _arg1; |
1d99702e | 4606 | PyObject * _argo0 = 0; |
c7e7022c | 4607 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
4608 | |
4609 | self = self; | |
c7e7022c | 4610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4611 | return NULL; |
1d99702e RD |
4612 | if (_argo0) { |
4613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4616 | return NULL; |
4617 | } | |
4618 | } | |
cf694132 RD |
4619 | { |
4620 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4621 | _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1); |
cf694132 RD |
4622 | |
4623 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4624 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4625 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4626 | return _resultobj; |
4627 | } | |
4628 | ||
c7e7022c RD |
4629 | #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns()) |
4630 | static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4631 | PyObject * _resultobj; |
c7e7022c RD |
4632 | bool _result; |
4633 | wxPyListCtrl * _arg0; | |
1d99702e | 4634 | PyObject * _argo0 = 0; |
c7e7022c | 4635 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4636 | |
4637 | self = self; | |
c7e7022c | 4638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0)) |
8ab979d7 | 4639 | return NULL; |
1d99702e RD |
4640 | if (_argo0) { |
4641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4644 | return NULL; |
4645 | } | |
4646 | } | |
c7e7022c RD |
4647 | { |
4648 | wxPy_BEGIN_ALLOW_THREADS; | |
4649 | _result = (bool )wxListCtrl_DeleteAllColumns(_arg0); | |
4650 | ||
4651 | wxPy_END_ALLOW_THREADS; | |
4652 | if (PyErr_Occurred()) return NULL; | |
4653 | } _resultobj = Py_BuildValue("i",_result); | |
4654 | return _resultobj; | |
4655 | } | |
4656 | ||
4657 | #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll()) | |
4658 | static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4659 | PyObject * _resultobj; | |
4660 | wxPyListCtrl * _arg0; | |
4661 | PyObject * _argo0 = 0; | |
4662 | char *_kwnames[] = { "self", NULL }; | |
4663 | ||
4664 | self = self; | |
4665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0)) | |
4666 | return NULL; | |
4667 | if (_argo0) { | |
4668 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4669 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4671 | return NULL; |
4672 | } | |
4673 | } | |
cf694132 RD |
4674 | { |
4675 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4676 | wxListCtrl_ClearAll(_arg0); |
cf694132 RD |
4677 | |
4678 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4679 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4680 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4681 | _resultobj = Py_None; |
4682 | return _resultobj; | |
4683 | } | |
4684 | ||
c7e7022c RD |
4685 | #define wxListCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) |
4686 | static PyObject *_wrap_wxListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4687 | PyObject * _resultobj; | |
4688 | wxTextCtrl * _result; | |
4689 | wxPyListCtrl * _arg0; | |
4690 | long _arg1; | |
4691 | PyObject * _argo0 = 0; | |
4692 | char *_kwnames[] = { "self","item", NULL }; | |
4693 | ||
4694 | self = self; | |
4695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EditLabel",_kwnames,&_argo0,&_arg1)) | |
4696 | return NULL; | |
4697 | if (_argo0) { | |
4698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EditLabel. Expected _wxPyListCtrl_p."); | |
4701 | return NULL; | |
4702 | } | |
4703 | } | |
4704 | { | |
4705 | wxPy_BEGIN_ALLOW_THREADS; | |
4706 | _result = (wxTextCtrl *)wxListCtrl_EditLabel(_arg0,_arg1); | |
4707 | ||
4708 | wxPy_END_ALLOW_THREADS; | |
4709 | if (PyErr_Occurred()) return NULL; | |
4710 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
4711 | return _resultobj; | |
4712 | } | |
4713 | ||
4714 | #define wxListCtrl_EndEditLabel(_swigobj,_swigarg0) (_swigobj->EndEditLabel(_swigarg0)) | |
4715 | static PyObject *_wrap_wxListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4716 | PyObject * _resultobj; |
4717 | bool _result; | |
c7e7022c RD |
4718 | wxPyListCtrl * _arg0; |
4719 | bool _arg1; | |
1d99702e | 4720 | PyObject * _argo0 = 0; |
c7e7022c RD |
4721 | int tempbool1; |
4722 | char *_kwnames[] = { "self","cancel", NULL }; | |
8ab979d7 RD |
4723 | |
4724 | self = self; | |
c7e7022c | 4725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_EndEditLabel",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4726 | return NULL; |
1d99702e RD |
4727 | if (_argo0) { |
4728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EndEditLabel. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4731 | return NULL; |
4732 | } | |
4733 | } | |
c7e7022c RD |
4734 | _arg1 = (bool ) tempbool1; |
4735 | { | |
4736 | wxPy_BEGIN_ALLOW_THREADS; | |
4737 | _result = (bool )wxListCtrl_EndEditLabel(_arg0,_arg1); | |
4738 | ||
4739 | wxPy_END_ALLOW_THREADS; | |
4740 | if (PyErr_Occurred()) return NULL; | |
4741 | } _resultobj = Py_BuildValue("i",_result); | |
4742 | return _resultobj; | |
4743 | } | |
4744 | ||
4745 | #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
4746 | static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4747 | PyObject * _resultobj; | |
4748 | bool _result; | |
4749 | wxPyListCtrl * _arg0; | |
4750 | long _arg1; | |
4751 | PyObject * _argo0 = 0; | |
4752 | char *_kwnames[] = { "self","item", NULL }; | |
4753 | ||
4754 | self = self; | |
4755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1)) | |
4756 | return NULL; | |
4757 | if (_argo0) { | |
4758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4761 | return NULL; |
4762 | } | |
4763 | } | |
cf694132 RD |
4764 | { |
4765 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4766 | _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1); |
cf694132 RD |
4767 | |
4768 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4769 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4770 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4771 | return _resultobj; |
4772 | } | |
4773 | ||
c7e7022c RD |
4774 | #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4775 | static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4776 | PyObject * _resultobj; |
4777 | long _result; | |
c7e7022c | 4778 | wxPyListCtrl * _arg0; |
8ab979d7 | 4779 | long _arg1; |
c7e7022c RD |
4780 | wxString * _arg2; |
4781 | bool _arg3 = (bool ) FALSE; | |
1d99702e | 4782 | PyObject * _argo0 = 0; |
c7e7022c RD |
4783 | PyObject * _obj2 = 0; |
4784 | int tempbool3 = (int) FALSE; | |
4785 | char *_kwnames[] = { "self","start","str","partial", NULL }; | |
8ab979d7 RD |
4786 | |
4787 | self = self; | |
c7e7022c | 4788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
8ab979d7 | 4789 | return NULL; |
1d99702e RD |
4790 | if (_argo0) { |
4791 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4792 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4793 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4794 | return NULL; |
4795 | } | |
4796 | } | |
4797 | { | |
185d7c3e RD |
4798 | #if PYTHON_API_VERSION >= 1009 |
4799 | char* tmpPtr; int tmpSize; | |
c7e7022c | 4800 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { |
794c5cb1 | 4801 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4802 | return NULL; |
4803 | } | |
c7e7022c | 4804 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) |
185d7c3e | 4805 | return NULL; |
c7e7022c | 4806 | _arg2 = new wxString(tmpPtr, tmpSize); |
185d7c3e | 4807 | #else |
c7e7022c | 4808 | if (!PyString_Check(_obj2)) { |
8ab979d7 RD |
4809 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
4810 | return NULL; | |
4811 | } | |
c7e7022c | 4812 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
185d7c3e | 4813 | #endif |
8ab979d7 | 4814 | } |
c7e7022c | 4815 | _arg3 = (bool ) tempbool3; |
cf694132 RD |
4816 | { |
4817 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4818 | _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 RD |
4819 | |
4820 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4821 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4822 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 4823 | { |
c7e7022c RD |
4824 | if (_obj2) |
4825 | delete _arg2; | |
8ab979d7 RD |
4826 | } |
4827 | return _resultobj; | |
4828 | } | |
4829 | ||
c7e7022c RD |
4830 | #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1)) |
4831 | static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4832 | PyObject * _resultobj; |
c7e7022c RD |
4833 | long _result; |
4834 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4835 | long _arg1; |
4836 | long _arg2; | |
1d99702e | 4837 | PyObject * _argo0 = 0; |
c7e7022c | 4838 | char *_kwnames[] = { "self","start","data", NULL }; |
8ab979d7 RD |
4839 | |
4840 | self = self; | |
c7e7022c | 4841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4842 | return NULL; |
1d99702e RD |
4843 | if (_argo0) { |
4844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4847 | return NULL; |
4848 | } | |
4849 | } | |
cf694132 RD |
4850 | { |
4851 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4852 | _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2); |
cf694132 RD |
4853 | |
4854 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4855 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4856 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4857 | return _resultobj; |
4858 | } | |
4859 | ||
c7e7022c RD |
4860 | #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4861 | static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4862 | PyObject * _resultobj; |
c7e7022c RD |
4863 | long _result; |
4864 | wxPyListCtrl * _arg0; | |
4865 | long _arg1; | |
4866 | wxPoint * _arg2; | |
4867 | int _arg3; | |
4868 | PyObject * _argo0 = 0; | |
4869 | wxPoint temp; | |
4870 | PyObject * _obj2 = 0; | |
4871 | char *_kwnames[] = { "self","start","pt","direction", NULL }; | |
4872 | ||
4873 | self = self; | |
4874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) | |
4875 | return NULL; | |
4876 | if (_argo0) { | |
4877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxPyListCtrl_p."); | |
4880 | return NULL; | |
4881 | } | |
4882 | } | |
4883 | { | |
4884 | _arg2 = &temp; | |
4885 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4886 | return NULL; | |
4887 | } | |
4888 | { | |
4889 | wxPy_BEGIN_ALLOW_THREADS; | |
4890 | _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3); | |
4891 | ||
4892 | wxPy_END_ALLOW_THREADS; | |
4893 | if (PyErr_Occurred()) return NULL; | |
4894 | } _resultobj = Py_BuildValue("l",_result); | |
4895 | return _resultobj; | |
4896 | } | |
4897 | ||
4898 | #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) | |
4899 | static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4900 | PyObject * _resultobj; | |
4901 | long _result; | |
4902 | wxPyListCtrl * _arg0; | |
4903 | wxPoint * _arg1; | |
4904 | int * _arg2; | |
4905 | int temp; | |
4906 | PyObject * _argo0 = 0; | |
4907 | wxPoint temp0; | |
4908 | PyObject * _obj1 = 0; | |
4909 | char *_kwnames[] = { "self","point", NULL }; | |
4910 | ||
4911 | self = self; | |
4912 | { | |
4913 | _arg2 = &temp; | |
4914 | } | |
4915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1)) | |
4916 | return NULL; | |
4917 | if (_argo0) { | |
4918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxPyListCtrl_p."); | |
4921 | return NULL; | |
4922 | } | |
4923 | } | |
4924 | { | |
4925 | _arg1 = &temp0; | |
4926 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4927 | return NULL; | |
4928 | } | |
4929 | { | |
4930 | wxPy_BEGIN_ALLOW_THREADS; | |
4931 | _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2); | |
4932 | ||
4933 | wxPy_END_ALLOW_THREADS; | |
4934 | if (PyErr_Occurred()) return NULL; | |
4935 | } _resultobj = Py_BuildValue("l",_result); | |
4936 | { | |
4937 | PyObject *o; | |
4938 | o = PyInt_FromLong((long) (*_arg2)); | |
4939 | _resultobj = t_output_helper(_resultobj, o); | |
4940 | } | |
4941 | return _resultobj; | |
4942 | } | |
4943 | ||
4944 | #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0)) | |
4945 | static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4946 | PyObject * _resultobj; | |
4947 | long _result; | |
4948 | wxPyListCtrl * _arg0; | |
4949 | wxListItem * _arg1; | |
4950 | PyObject * _argo0 = 0; | |
4951 | PyObject * _argo1 = 0; | |
4952 | char *_kwnames[] = { "self","info", NULL }; | |
4953 | ||
4954 | self = self; | |
4955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1)) | |
4956 | return NULL; | |
4957 | if (_argo0) { | |
4958 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4959 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4960 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxPyListCtrl_p."); | |
4961 | return NULL; | |
4962 | } | |
4963 | } | |
4964 | if (_argo1) { | |
4965 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4966 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
4967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p."); | |
4968 | return NULL; | |
4969 | } | |
4970 | } | |
4971 | { | |
4972 | wxPy_BEGIN_ALLOW_THREADS; | |
4973 | _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1); | |
4974 | ||
4975 | wxPy_END_ALLOW_THREADS; | |
4976 | if (PyErr_Occurred()) return NULL; | |
4977 | } _resultobj = Py_BuildValue("l",_result); | |
4978 | return _resultobj; | |
4979 | } | |
4980 | ||
4981 | #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
4982 | static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4983 | PyObject * _resultobj; | |
4984 | long _result; | |
4985 | wxPyListCtrl * _arg0; | |
4986 | long _arg1; | |
4987 | wxString * _arg2; | |
4988 | PyObject * _argo0 = 0; | |
4989 | PyObject * _obj2 = 0; | |
4990 | char *_kwnames[] = { "self","index","label", NULL }; | |
4991 | ||
4992 | self = self; | |
4993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4994 | return NULL; | |
4995 | if (_argo0) { | |
4996 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4997 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxPyListCtrl_p."); | |
4999 | return NULL; | |
5000 | } | |
5001 | } | |
5002 | { | |
5003 | #if PYTHON_API_VERSION >= 1009 | |
5004 | char* tmpPtr; int tmpSize; | |
5005 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
5006 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5007 | return NULL; | |
5008 | } | |
5009 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
5010 | return NULL; | |
5011 | _arg2 = new wxString(tmpPtr, tmpSize); | |
5012 | #else | |
5013 | if (!PyString_Check(_obj2)) { | |
5014 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5015 | return NULL; | |
5016 | } | |
5017 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
5018 | #endif | |
5019 | } | |
5020 | { | |
5021 | wxPy_BEGIN_ALLOW_THREADS; | |
5022 | _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2); | |
5023 | ||
5024 | wxPy_END_ALLOW_THREADS; | |
5025 | if (PyErr_Occurred()) return NULL; | |
5026 | } _resultobj = Py_BuildValue("l",_result); | |
5027 | { | |
5028 | if (_obj2) | |
5029 | delete _arg2; | |
5030 | } | |
5031 | return _resultobj; | |
5032 | } | |
5033 | ||
5034 | #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
5035 | static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5036 | PyObject * _resultobj; | |
5037 | long _result; | |
5038 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
5039 | long _arg1; |
5040 | int _arg2; | |
1d99702e | 5041 | PyObject * _argo0 = 0; |
c7e7022c | 5042 | char *_kwnames[] = { "self","index","imageIndex", NULL }; |
8ab979d7 RD |
5043 | |
5044 | self = self; | |
c7e7022c | 5045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 5046 | return NULL; |
1d99702e RD |
5047 | if (_argo0) { |
5048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
5049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
5051 | return NULL; |
5052 | } | |
5053 | } | |
cf694132 RD |
5054 | { |
5055 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 5056 | _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2); |
cf694132 RD |
5057 | |
5058 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5059 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 5060 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
5061 | return _resultobj; |
5062 | } | |
5063 | ||
c7e7022c RD |
5064 | #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2)) |
5065 | static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5066 | PyObject * _resultobj; |
c7e7022c RD |
5067 | long _result; |
5068 | wxPyListCtrl * _arg0; | |
8ab979d7 | 5069 | long _arg1; |
c7e7022c RD |
5070 | wxString * _arg2; |
5071 | int _arg3; | |
1d99702e | 5072 | PyObject * _argo0 = 0; |
2f90df85 | 5073 | PyObject * _obj2 = 0; |
c7e7022c | 5074 | char *_kwnames[] = { "self","index","label","imageIndex", NULL }; |
8ab979d7 RD |
5075 | |
5076 | self = self; | |
c7e7022c | 5077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 5078 | return NULL; |
1d99702e RD |
5079 | if (_argo0) { |
5080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
5081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
5083 | return NULL; |
5084 | } | |
5085 | } | |
2f90df85 | 5086 | { |
c7e7022c RD |
5087 | #if PYTHON_API_VERSION >= 1009 |
5088 | char* tmpPtr; int tmpSize; | |
5089 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
5090 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5091 | return NULL; | |
5092 | } | |
5093 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
5094 | return NULL; | |
5095 | _arg2 = new wxString(tmpPtr, tmpSize); | |
5096 | #else | |
5097 | if (!PyString_Check(_obj2)) { | |
5098 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 5099 | return NULL; |
c7e7022c RD |
5100 | } |
5101 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
5102 | #endif | |
2f90df85 | 5103 | } |
cf694132 RD |
5104 | { |
5105 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 5106 | _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 RD |
5107 | |
5108 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5109 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
5110 | } _resultobj = Py_BuildValue("l",_result); |
5111 | { | |
5112 | if (_obj2) | |
5113 | delete _arg2; | |
5114 | } | |
8ab979d7 RD |
5115 | return _resultobj; |
5116 | } | |
5117 | ||
c7e7022c RD |
5118 | #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) |
5119 | static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5120 | PyObject * _resultobj; |
c7e7022c RD |
5121 | long _result; |
5122 | wxPyListCtrl * _arg0; | |
8ab979d7 | 5123 | long _arg1; |
c7e7022c | 5124 | wxListItem * _arg2; |
1d99702e | 5125 | PyObject * _argo0 = 0; |
c7e7022c RD |
5126 | PyObject * _argo2 = 0; |
5127 | char *_kwnames[] = { "self","col","info", NULL }; | |
8ab979d7 RD |
5128 | |
5129 | self = self; | |
c7e7022c | 5130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 5131 | return NULL; |
1d99702e RD |
5132 | if (_argo0) { |
5133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
5134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxPyListCtrl_p."); | |
5136 | return NULL; | |
5137 | } | |
5138 | } | |
5139 | if (_argo2) { | |
5140 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5141 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
5142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p."); | |
8ab979d7 RD |
5143 | return NULL; |
5144 | } | |
5145 | } | |
cf694132 RD |
5146 | { |
5147 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 5148 | _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2); |
cf694132 RD |
5149 | |
5150 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5151 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 5152 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
5153 | return _resultobj; |
5154 | } | |
5155 | ||
c7e7022c RD |
5156 | #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
5157 | static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5158 | PyObject * _resultobj; |
c7e7022c RD |
5159 | long _result; |
5160 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
5161 | long _arg1; |
5162 | wxString * _arg2; | |
c7e7022c RD |
5163 | int _arg3 = (int ) (wxLIST_FORMAT_LEFT); |
5164 | int _arg4 = (int ) -1; | |
1d99702e | 5165 | PyObject * _argo0 = 0; |
8ab979d7 | 5166 | PyObject * _obj2 = 0; |
c7e7022c | 5167 | char *_kwnames[] = { "self","col","heading","format","width", NULL }; |
8ab979d7 RD |
5168 | |
5169 | self = self; | |
c7e7022c | 5170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 5171 | return NULL; |
1d99702e RD |
5172 | if (_argo0) { |
5173 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
5174 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
5176 | return NULL; |
5177 | } | |
5178 | } | |
5179 | { | |
185d7c3e RD |
5180 | #if PYTHON_API_VERSION >= 1009 |
5181 | char* tmpPtr; int tmpSize; | |
5182 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 5183 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5184 | return NULL; |
5185 | } | |
5186 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
5187 | return NULL; | |
5188 | _arg2 = new wxString(tmpPtr, tmpSize); | |
5189 | #else | |
8ab979d7 RD |
5190 | if (!PyString_Check(_obj2)) { |
5191 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5192 | return NULL; | |
5193 | } | |
185d7c3e RD |
5194 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
5195 | #endif | |
8ab979d7 | 5196 | } |
cf694132 RD |
5197 | { |
5198 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 5199 | _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4); |
cf694132 RD |
5200 | |
5201 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5202 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 5203 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
5204 | { |
5205 | if (_obj2) | |
5206 | delete _arg2; | |
5207 | } | |
5208 | return _resultobj; | |
5209 | } | |
5210 | ||
c7e7022c RD |
5211 | #define wxListCtrl_SetItemCount(_swigobj,_swigarg0) (_swigobj->SetItemCount(_swigarg0)) |
5212 | static PyObject *_wrap_wxListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5213 | PyObject * _resultobj; |
c7e7022c | 5214 | wxPyListCtrl * _arg0; |
8ab979d7 | 5215 | long _arg1; |
1d99702e | 5216 | PyObject * _argo0 = 0; |
c7e7022c | 5217 | char *_kwnames[] = { "self","count", NULL }; |
8ab979d7 RD |
5218 | |
5219 | self = self; | |
c7e7022c | 5220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetItemCount",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5221 | return NULL; |
1d99702e RD |
5222 | if (_argo0) { |
5223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
5224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
5226 | return NULL; |
5227 | } | |
5228 | } | |
cf694132 RD |
5229 | { |
5230 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 5231 | wxListCtrl_SetItemCount(_arg0,_arg1); |
cf694132 RD |
5232 | |
5233 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5234 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5235 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5236 | _resultobj = Py_None; |
5237 | return _resultobj; | |
5238 | } | |
5239 | ||
c7e7022c RD |
5240 | #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1)) |
5241 | static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5242 | PyObject * _resultobj; |
c7e7022c RD |
5243 | bool _result; |
5244 | wxPyListCtrl * _arg0; | |
5245 | int _arg1; | |
5246 | int _arg2; | |
1d99702e | 5247 | PyObject * _argo0 = 0; |
c7e7022c | 5248 | char *_kwnames[] = { "self","dx","dy", NULL }; |
8ab979d7 RD |
5249 | |
5250 | self = self; | |
c7e7022c | 5251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 5252 | return NULL; |
1d99702e RD |
5253 | if (_argo0) { |
5254 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
5255 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
5257 | return NULL; |
5258 | } | |
5259 | } | |
cf694132 RD |
5260 | { |
5261 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 5262 | _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2); |
cf694132 RD |
5263 | |
5264 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5265 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 5266 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5267 | return _resultobj; |
5268 | } | |
5269 | ||
c7e7022c | 5270 | static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject * func) { |
dcd38683 RD |
5271 | if (!PyCallable_Check(func)) |
5272 | return FALSE; | |
f6bcfd97 | 5273 | return self->SortItems(wxPyListCtrl_SortItems, (long)func); |
dcd38683 RD |
5274 | } |
5275 | static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5276 | PyObject * _resultobj; | |
5277 | bool _result; | |
c7e7022c | 5278 | wxPyListCtrl * _arg0; |
dcd38683 RD |
5279 | PyObject * _arg1; |
5280 | PyObject * _argo0 = 0; | |
5281 | PyObject * _obj1 = 0; | |
5282 | char *_kwnames[] = { "self","func", NULL }; | |
5283 | ||
5284 | self = self; | |
5285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1)) | |
5286 | return NULL; | |
5287 | if (_argo0) { | |
5288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
5289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxPyListCtrl_p."); | |
dcd38683 RD |
5291 | return NULL; |
5292 | } | |
5293 | } | |
5294 | { | |
5295 | _arg1 = _obj1; | |
5296 | } | |
5297 | { | |
5298 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 5299 | _result = (bool )wxPyListCtrl_SortItems(_arg0,_arg1); |
dcd38683 RD |
5300 | |
5301 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5302 | if (PyErr_Occurred()) return NULL; |
dcd38683 RD |
5303 | } _resultobj = Py_BuildValue("i",_result); |
5304 | return _resultobj; | |
5305 | } | |
5306 | ||
6d19860f RD |
5307 | static void *SwigwxListViewTowxPyListCtrl(void *ptr) { |
5308 | wxListView *src; | |
5309 | wxPyListCtrl *dest; | |
5310 | src = (wxListView *) ptr; | |
5311 | dest = (wxPyListCtrl *) src; | |
5312 | return (void *) dest; | |
5313 | } | |
5314 | ||
5315 | static void *SwigwxListViewTowxControl(void *ptr) { | |
5316 | wxListView *src; | |
5317 | wxControl *dest; | |
5318 | src = (wxListView *) ptr; | |
5319 | dest = (wxControl *) src; | |
5320 | return (void *) dest; | |
5321 | } | |
5322 | ||
5323 | static void *SwigwxListViewTowxWindow(void *ptr) { | |
5324 | wxListView *src; | |
5325 | wxWindow *dest; | |
5326 | src = (wxListView *) ptr; | |
5327 | dest = (wxWindow *) src; | |
5328 | return (void *) dest; | |
5329 | } | |
5330 | ||
5331 | static void *SwigwxListViewTowxEvtHandler(void *ptr) { | |
5332 | wxListView *src; | |
5333 | wxEvtHandler *dest; | |
5334 | src = (wxListView *) ptr; | |
5335 | dest = (wxEvtHandler *) src; | |
5336 | return (void *) dest; | |
5337 | } | |
5338 | ||
5339 | static void *SwigwxListViewTowxObject(void *ptr) { | |
5340 | wxListView *src; | |
5341 | wxObject *dest; | |
5342 | src = (wxListView *) ptr; | |
5343 | dest = (wxObject *) src; | |
5344 | return (void *) dest; | |
5345 | } | |
5346 | ||
5347 | #define new_wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5348 | static PyObject *_wrap_new_wxListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5349 | PyObject * _resultobj; | |
5350 | wxListView * _result; | |
5351 | wxWindow * _arg0; | |
5352 | wxWindowID _arg1 = (wxWindowID ) -1; | |
5353 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
5354 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5355 | long _arg4 = (long ) (wxLC_REPORT); | |
5356 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
5357 | wxString * _arg6 = (wxString *) &"listctrl"; | |
5358 | PyObject * _argo0 = 0; | |
5359 | wxPoint temp; | |
5360 | PyObject * _obj2 = 0; | |
5361 | wxSize temp0; | |
5362 | PyObject * _obj3 = 0; | |
5363 | PyObject * _argo5 = 0; | |
5364 | PyObject * _obj6 = 0; | |
5365 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
5366 | char _ptemp[128]; | |
5367 | ||
5368 | self = self; | |
5369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListView",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) | |
5370 | return NULL; | |
5371 | if (_argo0) { | |
5372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListView. Expected _wxWindow_p."); | |
5375 | return NULL; | |
5376 | } | |
5377 | } | |
5378 | if (_obj2) | |
5379 | { | |
5380 | _arg2 = &temp; | |
5381 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5382 | return NULL; | |
5383 | } | |
5384 | if (_obj3) | |
5385 | { | |
5386 | _arg3 = &temp0; | |
5387 | if (! wxSize_helper(_obj3, &_arg3)) | |
5388 | return NULL; | |
5389 | } | |
5390 | if (_argo5) { | |
5391 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5392 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
5393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListView. Expected _wxValidator_p."); | |
5394 | return NULL; | |
5395 | } | |
5396 | } | |
5397 | if (_obj6) | |
5398 | { | |
5399 | #if PYTHON_API_VERSION >= 1009 | |
5400 | char* tmpPtr; int tmpSize; | |
5401 | if (!PyString_Check(_obj6) && !PyUnicode_Check(_obj6)) { | |
5402 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5403 | return NULL; | |
5404 | } | |
5405 | if (PyString_AsStringAndSize(_obj6, &tmpPtr, &tmpSize) == -1) | |
5406 | return NULL; | |
5407 | _arg6 = new wxString(tmpPtr, tmpSize); | |
5408 | #else | |
5409 | if (!PyString_Check(_obj6)) { | |
5410 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5411 | return NULL; | |
5412 | } | |
5413 | _arg6 = new wxString(PyString_AS_STRING(_obj6), PyString_GET_SIZE(_obj6)); | |
5414 | #endif | |
5415 | } | |
5416 | { | |
5417 | wxPy_BEGIN_ALLOW_THREADS; | |
5418 | _result = (wxListView *)new_wxListView(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); | |
5419 | ||
5420 | wxPy_END_ALLOW_THREADS; | |
5421 | if (PyErr_Occurred()) return NULL; | |
5422 | } if (_result) { | |
5423 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5424 | _resultobj = Py_BuildValue("s",_ptemp); | |
5425 | } else { | |
5426 | Py_INCREF(Py_None); | |
5427 | _resultobj = Py_None; | |
5428 | } | |
5429 | { | |
5430 | if (_obj6) | |
5431 | delete _arg6; | |
5432 | } | |
5433 | return _resultobj; | |
5434 | } | |
5435 | ||
5436 | #define new_wxPreListView() (new wxListView()) | |
5437 | static PyObject *_wrap_new_wxPreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5438 | PyObject * _resultobj; | |
5439 | wxListView * _result; | |
5440 | char *_kwnames[] = { NULL }; | |
5441 | char _ptemp[128]; | |
5442 | ||
5443 | self = self; | |
5444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListView",_kwnames)) | |
5445 | return NULL; | |
5446 | { | |
5447 | wxPy_BEGIN_ALLOW_THREADS; | |
5448 | _result = (wxListView *)new_wxPreListView(); | |
5449 | ||
5450 | wxPy_END_ALLOW_THREADS; | |
5451 | if (PyErr_Occurred()) return NULL; | |
5452 | } if (_result) { | |
5453 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5454 | _resultobj = Py_BuildValue("s",_ptemp); | |
5455 | } else { | |
5456 | Py_INCREF(Py_None); | |
5457 | _resultobj = Py_None; | |
5458 | } | |
5459 | return _resultobj; | |
5460 | } | |
5461 | ||
5462 | #define wxListView_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5463 | static PyObject *_wrap_wxListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5464 | PyObject * _resultobj; | |
5465 | bool _result; | |
5466 | wxListView * _arg0; | |
5467 | wxWindow * _arg1; | |
5468 | wxWindowID _arg2 = (wxWindowID ) -1; | |
5469 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5470 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5471 | long _arg5 = (long ) (wxLC_REPORT); | |
5472 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
5473 | wxString * _arg7 = (wxString *) &"listctrl"; | |
5474 | PyObject * _argo0 = 0; | |
5475 | PyObject * _argo1 = 0; | |
5476 | wxPoint temp; | |
5477 | PyObject * _obj3 = 0; | |
5478 | wxSize temp0; | |
5479 | PyObject * _obj4 = 0; | |
5480 | PyObject * _argo6 = 0; | |
5481 | PyObject * _obj7 = 0; | |
5482 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
5483 | ||
5484 | self = self; | |
5485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListView_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
5486 | return NULL; | |
5487 | if (_argo0) { | |
5488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Create. Expected _wxListView_p."); | |
5491 | return NULL; | |
5492 | } | |
5493 | } | |
5494 | if (_argo1) { | |
5495 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5496 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListView_Create. Expected _wxWindow_p."); | |
5498 | return NULL; | |
5499 | } | |
5500 | } | |
5501 | if (_obj3) | |
5502 | { | |
5503 | _arg3 = &temp; | |
5504 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5505 | return NULL; | |
5506 | } | |
5507 | if (_obj4) | |
5508 | { | |
5509 | _arg4 = &temp0; | |
5510 | if (! wxSize_helper(_obj4, &_arg4)) | |
5511 | return NULL; | |
5512 | } | |
5513 | if (_argo6) { | |
5514 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
5515 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
5516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListView_Create. Expected _wxValidator_p."); | |
5517 | return NULL; | |
5518 | } | |
5519 | } | |
5520 | if (_obj7) | |
5521 | { | |
5522 | #if PYTHON_API_VERSION >= 1009 | |
5523 | char* tmpPtr; int tmpSize; | |
5524 | if (!PyString_Check(_obj7) && !PyUnicode_Check(_obj7)) { | |
5525 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5526 | return NULL; | |
5527 | } | |
5528 | if (PyString_AsStringAndSize(_obj7, &tmpPtr, &tmpSize) == -1) | |
5529 | return NULL; | |
5530 | _arg7 = new wxString(tmpPtr, tmpSize); | |
5531 | #else | |
5532 | if (!PyString_Check(_obj7)) { | |
5533 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5534 | return NULL; | |
5535 | } | |
5536 | _arg7 = new wxString(PyString_AS_STRING(_obj7), PyString_GET_SIZE(_obj7)); | |
5537 | #endif | |
5538 | } | |
5539 | { | |
5540 | wxPy_BEGIN_ALLOW_THREADS; | |
5541 | _result = (bool )wxListView_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); | |
5542 | ||
5543 | wxPy_END_ALLOW_THREADS; | |
5544 | if (PyErr_Occurred()) return NULL; | |
5545 | } _resultobj = Py_BuildValue("i",_result); | |
5546 | { | |
5547 | if (_obj7) | |
5548 | delete _arg7; | |
5549 | } | |
5550 | return _resultobj; | |
5551 | } | |
5552 | ||
5553 | #define wxListView_Select(_swigobj,_swigarg0,_swigarg1) (_swigobj->Select(_swigarg0,_swigarg1)) | |
5554 | static PyObject *_wrap_wxListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5555 | PyObject * _resultobj; | |
5556 | wxListView * _arg0; | |
5557 | long _arg1; | |
5558 | bool _arg2 = (bool ) TRUE; | |
5559 | PyObject * _argo0 = 0; | |
5560 | int tempbool2 = (int) TRUE; | |
5561 | char *_kwnames[] = { "self","n","on", NULL }; | |
5562 | ||
5563 | self = self; | |
5564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListView_Select",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
5565 | return NULL; | |
5566 | if (_argo0) { | |
5567 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5568 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Select. Expected _wxListView_p."); | |
5570 | return NULL; | |
5571 | } | |
5572 | } | |
5573 | _arg2 = (bool ) tempbool2; | |
5574 | { | |
5575 | wxPy_BEGIN_ALLOW_THREADS; | |
5576 | wxListView_Select(_arg0,_arg1,_arg2); | |
5577 | ||
5578 | wxPy_END_ALLOW_THREADS; | |
5579 | if (PyErr_Occurred()) return NULL; | |
5580 | } Py_INCREF(Py_None); | |
5581 | _resultobj = Py_None; | |
5582 | return _resultobj; | |
5583 | } | |
5584 | ||
5585 | #define wxListView_Focus(_swigobj,_swigarg0) (_swigobj->Focus(_swigarg0)) | |
5586 | static PyObject *_wrap_wxListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5587 | PyObject * _resultobj; | |
5588 | wxListView * _arg0; | |
5589 | long _arg1; | |
5590 | PyObject * _argo0 = 0; | |
5591 | char *_kwnames[] = { "self","index", NULL }; | |
5592 | ||
5593 | self = self; | |
5594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_Focus",_kwnames,&_argo0,&_arg1)) | |
5595 | return NULL; | |
5596 | if (_argo0) { | |
5597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Focus. Expected _wxListView_p."); | |
5600 | return NULL; | |
5601 | } | |
5602 | } | |
5603 | { | |
5604 | wxPy_BEGIN_ALLOW_THREADS; | |
5605 | wxListView_Focus(_arg0,_arg1); | |
5606 | ||
5607 | wxPy_END_ALLOW_THREADS; | |
5608 | if (PyErr_Occurred()) return NULL; | |
5609 | } Py_INCREF(Py_None); | |
5610 | _resultobj = Py_None; | |
5611 | return _resultobj; | |
5612 | } | |
5613 | ||
5614 | #define wxListView_GetFocusedItem(_swigobj) (_swigobj->GetFocusedItem()) | |
5615 | static PyObject *_wrap_wxListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5616 | PyObject * _resultobj; | |
5617 | long _result; | |
5618 | wxListView * _arg0; | |
5619 | PyObject * _argo0 = 0; | |
5620 | char *_kwnames[] = { "self", NULL }; | |
5621 | ||
5622 | self = self; | |
5623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFocusedItem",_kwnames,&_argo0)) | |
5624 | return NULL; | |
5625 | if (_argo0) { | |
5626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFocusedItem. Expected _wxListView_p."); | |
5629 | return NULL; | |
5630 | } | |
5631 | } | |
5632 | { | |
5633 | wxPy_BEGIN_ALLOW_THREADS; | |
5634 | _result = (long )wxListView_GetFocusedItem(_arg0); | |
5635 | ||
5636 | wxPy_END_ALLOW_THREADS; | |
5637 | if (PyErr_Occurred()) return NULL; | |
5638 | } _resultobj = Py_BuildValue("l",_result); | |
5639 | return _resultobj; | |
5640 | } | |
5641 | ||
5642 | #define wxListView_GetNextSelected(_swigobj,_swigarg0) (_swigobj->GetNextSelected(_swigarg0)) | |
5643 | static PyObject *_wrap_wxListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5644 | PyObject * _resultobj; | |
5645 | long _result; | |
5646 | wxListView * _arg0; | |
5647 | long _arg1; | |
5648 | PyObject * _argo0 = 0; | |
5649 | char *_kwnames[] = { "self","item", NULL }; | |
5650 | ||
5651 | self = self; | |
5652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_GetNextSelected",_kwnames,&_argo0,&_arg1)) | |
5653 | return NULL; | |
5654 | if (_argo0) { | |
5655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetNextSelected. Expected _wxListView_p."); | |
5658 | return NULL; | |
5659 | } | |
5660 | } | |
5661 | { | |
5662 | wxPy_BEGIN_ALLOW_THREADS; | |
5663 | _result = (long )wxListView_GetNextSelected(_arg0,_arg1); | |
5664 | ||
5665 | wxPy_END_ALLOW_THREADS; | |
5666 | if (PyErr_Occurred()) return NULL; | |
5667 | } _resultobj = Py_BuildValue("l",_result); | |
5668 | return _resultobj; | |
5669 | } | |
5670 | ||
5671 | #define wxListView_GetFirstSelected(_swigobj) (_swigobj->GetFirstSelected()) | |
5672 | static PyObject *_wrap_wxListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5673 | PyObject * _resultobj; | |
5674 | long _result; | |
5675 | wxListView * _arg0; | |
5676 | PyObject * _argo0 = 0; | |
5677 | char *_kwnames[] = { "self", NULL }; | |
5678 | ||
5679 | self = self; | |
5680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFirstSelected",_kwnames,&_argo0)) | |
5681 | return NULL; | |
5682 | if (_argo0) { | |
5683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFirstSelected. Expected _wxListView_p."); | |
5686 | return NULL; | |
5687 | } | |
5688 | } | |
5689 | { | |
5690 | wxPy_BEGIN_ALLOW_THREADS; | |
5691 | _result = (long )wxListView_GetFirstSelected(_arg0); | |
5692 | ||
5693 | wxPy_END_ALLOW_THREADS; | |
5694 | if (PyErr_Occurred()) return NULL; | |
5695 | } _resultobj = Py_BuildValue("l",_result); | |
5696 | return _resultobj; | |
5697 | } | |
5698 | ||
5699 | #define wxListView_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) | |
5700 | static PyObject *_wrap_wxListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5701 | PyObject * _resultobj; | |
5702 | bool _result; | |
5703 | wxListView * _arg0; | |
5704 | long _arg1; | |
5705 | PyObject * _argo0 = 0; | |
5706 | char *_kwnames[] = { "self","index", NULL }; | |
5707 | ||
5708 | self = self; | |
5709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_IsSelected",_kwnames,&_argo0,&_arg1)) | |
5710 | return NULL; | |
5711 | if (_argo0) { | |
5712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_IsSelected. Expected _wxListView_p."); | |
5715 | return NULL; | |
5716 | } | |
5717 | } | |
5718 | { | |
5719 | wxPy_BEGIN_ALLOW_THREADS; | |
5720 | _result = (bool )wxListView_IsSelected(_arg0,_arg1); | |
5721 | ||
5722 | wxPy_END_ALLOW_THREADS; | |
5723 | if (PyErr_Occurred()) return NULL; | |
5724 | } _resultobj = Py_BuildValue("i",_result); | |
5725 | return _resultobj; | |
5726 | } | |
5727 | ||
5728 | #define wxListView_SetColumnImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnImage(_swigarg0,_swigarg1)) | |
5729 | static PyObject *_wrap_wxListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5730 | PyObject * _resultobj; | |
5731 | wxListView * _arg0; | |
5732 | int _arg1; | |
5733 | int _arg2; | |
5734 | PyObject * _argo0 = 0; | |
5735 | char *_kwnames[] = { "self","col","image", NULL }; | |
5736 | ||
5737 | self = self; | |
5738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListView_SetColumnImage",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5739 | return NULL; | |
5740 | if (_argo0) { | |
5741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_SetColumnImage. Expected _wxListView_p."); | |
5744 | return NULL; | |
5745 | } | |
5746 | } | |
5747 | { | |
5748 | wxPy_BEGIN_ALLOW_THREADS; | |
5749 | wxListView_SetColumnImage(_arg0,_arg1,_arg2); | |
5750 | ||
5751 | wxPy_END_ALLOW_THREADS; | |
5752 | if (PyErr_Occurred()) return NULL; | |
5753 | } Py_INCREF(Py_None); | |
5754 | _resultobj = Py_None; | |
5755 | return _resultobj; | |
5756 | } | |
5757 | ||
5758 | #define wxListView_ClearColumnImage(_swigobj,_swigarg0) (_swigobj->ClearColumnImage(_swigarg0)) | |
5759 | static PyObject *_wrap_wxListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5760 | PyObject * _resultobj; | |
5761 | wxListView * _arg0; | |
5762 | int _arg1; | |
5763 | PyObject * _argo0 = 0; | |
5764 | char *_kwnames[] = { "self","col", NULL }; | |
5765 | ||
5766 | self = self; | |
5767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListView_ClearColumnImage",_kwnames,&_argo0,&_arg1)) | |
5768 | return NULL; | |
5769 | if (_argo0) { | |
5770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_ClearColumnImage. Expected _wxListView_p."); | |
5773 | return NULL; | |
5774 | } | |
5775 | } | |
5776 | { | |
5777 | wxPy_BEGIN_ALLOW_THREADS; | |
5778 | wxListView_ClearColumnImage(_arg0,_arg1); | |
5779 | ||
5780 | wxPy_END_ALLOW_THREADS; | |
5781 | if (PyErr_Occurred()) return NULL; | |
5782 | } Py_INCREF(Py_None); | |
5783 | _resultobj = Py_None; | |
5784 | return _resultobj; | |
5785 | } | |
5786 | ||
00b6c4e3 RD |
5787 | #define new_wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
5788 | static PyObject *_wrap_new_wxTreeItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5789 | PyObject * _resultobj; | |
5790 | wxTreeItemAttr * _result; | |
5791 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5792 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5793 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5794 | wxColour temp; | |
5795 | PyObject * _obj0 = 0; | |
5796 | wxColour temp0; | |
5797 | PyObject * _obj1 = 0; | |
5798 | PyObject * _argo2 = 0; | |
5799 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
5800 | char _ptemp[128]; | |
5801 | ||
5802 | self = self; | |
5803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTreeItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) | |
5804 | return NULL; | |
5805 | if (_obj0) | |
5806 | { | |
5807 | _arg0 = &temp; | |
5808 | if (! wxColour_helper(_obj0, &_arg0)) | |
5809 | return NULL; | |
5810 | } | |
5811 | if (_obj1) | |
5812 | { | |
5813 | _arg1 = &temp0; | |
5814 | if (! wxColour_helper(_obj1, &_arg1)) | |
5815 | return NULL; | |
5816 | } | |
5817 | if (_argo2) { | |
5818 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5819 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
5820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTreeItemAttr. Expected _wxFont_p."); | |
5821 | return NULL; | |
5822 | } | |
5823 | } | |
5824 | { | |
5825 | wxPy_BEGIN_ALLOW_THREADS; | |
5826 | _result = (wxTreeItemAttr *)new_wxTreeItemAttr(*_arg0,*_arg1,*_arg2); | |
5827 | ||
5828 | wxPy_END_ALLOW_THREADS; | |
5829 | if (PyErr_Occurred()) return NULL; | |
5830 | } if (_result) { | |
5831 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemAttr_p"); | |
5832 | _resultobj = Py_BuildValue("s",_ptemp); | |
5833 | } else { | |
5834 | Py_INCREF(Py_None); | |
5835 | _resultobj = Py_None; | |
5836 | } | |
5837 | return _resultobj; | |
5838 | } | |
5839 | ||
5840 | #define wxTreeItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
5841 | static PyObject *_wrap_wxTreeItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5842 | PyObject * _resultobj; | |
5843 | wxTreeItemAttr * _arg0; | |
5844 | wxColour * _arg1; | |
5845 | PyObject * _argo0 = 0; | |
5846 | wxColour temp; | |
5847 | PyObject * _obj1 = 0; | |
5848 | char *_kwnames[] = { "self","colText", NULL }; | |
5849 | ||
5850 | self = self; | |
5851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
5852 | return NULL; | |
5853 | if (_argo0) { | |
5854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetTextColour. Expected _wxTreeItemAttr_p."); | |
5857 | return NULL; | |
5858 | } | |
5859 | } | |
5860 | { | |
5861 | _arg1 = &temp; | |
5862 | if (! wxColour_helper(_obj1, &_arg1)) | |
5863 | return NULL; | |
5864 | } | |
5865 | { | |
5866 | wxPy_BEGIN_ALLOW_THREADS; | |
5867 | wxTreeItemAttr_SetTextColour(_arg0,*_arg1); | |
5868 | ||
5869 | wxPy_END_ALLOW_THREADS; | |
5870 | if (PyErr_Occurred()) return NULL; | |
5871 | } Py_INCREF(Py_None); | |
5872 | _resultobj = Py_None; | |
5873 | return _resultobj; | |
5874 | } | |
5875 | ||
5876 | #define wxTreeItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
5877 | static PyObject *_wrap_wxTreeItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5878 | PyObject * _resultobj; | |
5879 | wxTreeItemAttr * _arg0; | |
5880 | wxColour * _arg1; | |
5881 | PyObject * _argo0 = 0; | |
5882 | wxColour temp; | |
5883 | PyObject * _obj1 = 0; | |
5884 | char *_kwnames[] = { "self","colBack", NULL }; | |
5885 | ||
5886 | self = self; | |
5887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
5888 | return NULL; | |
5889 | if (_argo0) { | |
5890 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5891 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5893 | return NULL; | |
5894 | } | |
5895 | } | |
5896 | { | |
5897 | _arg1 = &temp; | |
5898 | if (! wxColour_helper(_obj1, &_arg1)) | |
5899 | return NULL; | |
5900 | } | |
5901 | { | |
5902 | wxPy_BEGIN_ALLOW_THREADS; | |
5903 | wxTreeItemAttr_SetBackgroundColour(_arg0,*_arg1); | |
5904 | ||
5905 | wxPy_END_ALLOW_THREADS; | |
5906 | if (PyErr_Occurred()) return NULL; | |
5907 | } Py_INCREF(Py_None); | |
5908 | _resultobj = Py_None; | |
5909 | return _resultobj; | |
5910 | } | |
5911 | ||
5912 | #define wxTreeItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
5913 | static PyObject *_wrap_wxTreeItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5914 | PyObject * _resultobj; | |
5915 | wxTreeItemAttr * _arg0; | |
5916 | wxFont * _arg1; | |
5917 | PyObject * _argo0 = 0; | |
5918 | PyObject * _argo1 = 0; | |
5919 | char *_kwnames[] = { "self","font", NULL }; | |
5920 | ||
5921 | self = self; | |
5922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
5923 | return NULL; | |
5924 | if (_argo0) { | |
5925 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5926 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetFont. Expected _wxTreeItemAttr_p."); | |
5928 | return NULL; | |
5929 | } | |
5930 | } | |
5931 | if (_argo1) { | |
5932 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5933 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
5934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemAttr_SetFont. Expected _wxFont_p."); | |
5935 | return NULL; | |
5936 | } | |
5937 | } | |
5938 | { | |
5939 | wxPy_BEGIN_ALLOW_THREADS; | |
5940 | wxTreeItemAttr_SetFont(_arg0,*_arg1); | |
5941 | ||
5942 | wxPy_END_ALLOW_THREADS; | |
5943 | if (PyErr_Occurred()) return NULL; | |
5944 | } Py_INCREF(Py_None); | |
5945 | _resultobj = Py_None; | |
5946 | return _resultobj; | |
5947 | } | |
5948 | ||
5949 | #define wxTreeItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
5950 | static PyObject *_wrap_wxTreeItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5951 | PyObject * _resultobj; | |
5952 | bool _result; | |
5953 | wxTreeItemAttr * _arg0; | |
5954 | PyObject * _argo0 = 0; | |
5955 | char *_kwnames[] = { "self", NULL }; | |
5956 | ||
5957 | self = self; | |
5958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasTextColour",_kwnames,&_argo0)) | |
5959 | return NULL; | |
5960 | if (_argo0) { | |
5961 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5962 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasTextColour. Expected _wxTreeItemAttr_p."); | |
5964 | return NULL; | |
5965 | } | |
5966 | } | |
5967 | { | |
5968 | wxPy_BEGIN_ALLOW_THREADS; | |
5969 | _result = (bool )wxTreeItemAttr_HasTextColour(_arg0); | |
5970 | ||
5971 | wxPy_END_ALLOW_THREADS; | |
5972 | if (PyErr_Occurred()) return NULL; | |
5973 | } _resultobj = Py_BuildValue("i",_result); | |
5974 | return _resultobj; | |
5975 | } | |
5976 | ||
5977 | #define wxTreeItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
5978 | static PyObject *_wrap_wxTreeItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5979 | PyObject * _resultobj; | |
5980 | bool _result; | |
5981 | wxTreeItemAttr * _arg0; | |
5982 | PyObject * _argo0 = 0; | |
5983 | char *_kwnames[] = { "self", NULL }; | |
5984 | ||
5985 | self = self; | |
5986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
5987 | return NULL; | |
5988 | if (_argo0) { | |
5989 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5990 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5991 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5992 | return NULL; | |
5993 | } | |
5994 | } | |
5995 | { | |
5996 | wxPy_BEGIN_ALLOW_THREADS; | |
5997 | _result = (bool )wxTreeItemAttr_HasBackgroundColour(_arg0); | |
5998 | ||
5999 | wxPy_END_ALLOW_THREADS; | |
6000 | if (PyErr_Occurred()) return NULL; | |
6001 | } _resultobj = Py_BuildValue("i",_result); | |
6002 | return _resultobj; | |
6003 | } | |
6004 | ||
6005 | #define wxTreeItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
6006 | static PyObject *_wrap_wxTreeItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6007 | PyObject * _resultobj; | |
6008 | bool _result; | |
6009 | wxTreeItemAttr * _arg0; | |
6010 | PyObject * _argo0 = 0; | |
6011 | char *_kwnames[] = { "self", NULL }; | |
6012 | ||
6013 | self = self; | |
6014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasFont",_kwnames,&_argo0)) | |
6015 | return NULL; | |
6016 | if (_argo0) { | |
6017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
6019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasFont. Expected _wxTreeItemAttr_p."); | |
6020 | return NULL; | |
6021 | } | |
6022 | } | |
6023 | { | |
6024 | wxPy_BEGIN_ALLOW_THREADS; | |
6025 | _result = (bool )wxTreeItemAttr_HasFont(_arg0); | |
6026 | ||
6027 | wxPy_END_ALLOW_THREADS; | |
6028 | if (PyErr_Occurred()) return NULL; | |
6029 | } _resultobj = Py_BuildValue("i",_result); | |
6030 | return _resultobj; | |
6031 | } | |
6032 | ||
6033 | #define wxTreeItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
6034 | static PyObject *_wrap_wxTreeItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6035 | PyObject * _resultobj; | |
6036 | wxColour * _result; | |
6037 | wxTreeItemAttr * _arg0; | |
6038 | PyObject * _argo0 = 0; | |
6039 | char *_kwnames[] = { "self", NULL }; | |
6040 | char _ptemp[128]; | |
6041 | ||
6042 | self = self; | |
6043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetTextColour",_kwnames,&_argo0)) | |
6044 | return NULL; | |
6045 | if (_argo0) { | |
6046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
6048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetTextColour. Expected _wxTreeItemAttr_p."); | |
6049 | return NULL; | |
6050 | } | |
6051 | } | |
6052 | { | |
6053 | wxPy_BEGIN_ALLOW_THREADS; | |
6054 | const wxColour & _result_ref = wxTreeItemAttr_GetTextColour(_arg0); | |
6055 | _result = (wxColour *) &_result_ref; | |
6056 | ||
6057 | wxPy_END_ALLOW_THREADS; | |
6058 | if (PyErr_Occurred()) return NULL; | |
6059 | } if (_result) { | |
6060 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
6061 | _resultobj = Py_BuildValue("s",_ptemp); | |
6062 | } else { | |
6063 | Py_INCREF(Py_None); | |
6064 | _resultobj = Py_None; | |
6065 | } | |
6066 | return _resultobj; | |
6067 | } | |
6068 | ||
6069 | #define wxTreeItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
6070 | static PyObject *_wrap_wxTreeItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6071 | PyObject * _resultobj; | |
6072 | wxColour * _result; | |
6073 | wxTreeItemAttr * _arg0; | |
6074 | PyObject * _argo0 = 0; | |
6075 | char *_kwnames[] = { "self", NULL }; | |
6076 | char _ptemp[128]; | |
6077 | ||
6078 | self = self; | |
6079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
6080 | return NULL; | |
6081 | if (_argo0) { | |
6082 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6083 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
6084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
6085 | return NULL; | |
6086 | } | |
6087 | } | |
6088 | { | |
6089 | wxPy_BEGIN_ALLOW_THREADS; | |
6090 | const wxColour & _result_ref = wxTreeItemAttr_GetBackgroundColour(_arg0); | |
6091 | _result = (wxColour *) &_result_ref; | |
6092 | ||
6093 | wxPy_END_ALLOW_THREADS; | |
6094 | if (PyErr_Occurred()) return NULL; | |
6095 | } if (_result) { | |
6096 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
6097 | _resultobj = Py_BuildValue("s",_ptemp); | |
6098 | } else { | |
6099 | Py_INCREF(Py_None); | |
6100 | _resultobj = Py_None; | |
6101 | } | |
6102 | return _resultobj; | |
6103 | } | |
6104 | ||
6105 | #define wxTreeItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
6106 | static PyObject *_wrap_wxTreeItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6107 | PyObject * _resultobj; | |
6108 | wxFont * _result; | |
6109 | wxTreeItemAttr * _arg0; | |
6110 | PyObject * _argo0 = 0; | |
6111 | char *_kwnames[] = { "self", NULL }; | |
6112 | char _ptemp[128]; | |
6113 | ||
6114 | self = self; | |
6115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetFont",_kwnames,&_argo0)) | |
6116 | return NULL; | |
6117 | if (_argo0) { | |
6118 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6119 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
6120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetFont. Expected _wxTreeItemAttr_p."); | |
6121 | return NULL; | |
6122 | } | |
6123 | } | |
6124 | { | |
6125 | wxPy_BEGIN_ALLOW_THREADS; | |
6126 | const wxFont & _result_ref = wxTreeItemAttr_GetFont(_arg0); | |
6127 | _result = (wxFont *) &_result_ref; | |
6128 | ||
6129 | wxPy_END_ALLOW_THREADS; | |
6130 | if (PyErr_Occurred()) return NULL; | |
6131 | } if (_result) { | |
6132 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
6133 | _resultobj = Py_BuildValue("s",_ptemp); | |
6134 | } else { | |
6135 | Py_INCREF(Py_None); | |
6136 | _resultobj = Py_None; | |
6137 | } | |
6138 | return _resultobj; | |
6139 | } | |
6140 | ||
d5c9047a | 6141 | #define new_wxTreeItemId() (new wxTreeItemId()) |
efc5f224 | 6142 | static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6143 | PyObject * _resultobj; |
d5c9047a | 6144 | wxTreeItemId * _result; |
efc5f224 | 6145 | char *_kwnames[] = { NULL }; |
d5c9047a | 6146 | char _ptemp[128]; |
8ab979d7 RD |
6147 | |
6148 | self = self; | |
efc5f224 | 6149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames)) |
8ab979d7 | 6150 | return NULL; |
cf694132 RD |
6151 | { |
6152 | wxPy_BEGIN_ALLOW_THREADS; | |
6153 | _result = (wxTreeItemId *)new_wxTreeItemId(); | |
6154 | ||
6155 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6156 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6157 | } if (_result) { |
6158 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
6159 | _resultobj = Py_BuildValue("s",_ptemp); | |
6160 | } else { | |
6161 | Py_INCREF(Py_None); | |
6162 | _resultobj = Py_None; | |
6163 | } | |
8ab979d7 RD |
6164 | return _resultobj; |
6165 | } | |
6166 | ||
d5c9047a | 6167 | #define delete_wxTreeItemId(_swigobj) (delete _swigobj) |
efc5f224 | 6168 | static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6169 | PyObject * _resultobj; |
d5c9047a | 6170 | wxTreeItemId * _arg0; |
1d99702e | 6171 | PyObject * _argo0 = 0; |
efc5f224 | 6172 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6173 | |
6174 | self = self; | |
efc5f224 | 6175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0)) |
8ab979d7 | 6176 | return NULL; |
1d99702e RD |
6177 | if (_argo0) { |
6178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 6180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
6181 | return NULL; |
6182 | } | |
6183 | } | |
cf694132 RD |
6184 | { |
6185 | wxPy_BEGIN_ALLOW_THREADS; | |
6186 | delete_wxTreeItemId(_arg0); | |
6187 | ||
6188 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6189 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6190 | } Py_INCREF(Py_None); |
d5c9047a | 6191 | _resultobj = Py_None; |
8ab979d7 RD |
6192 | return _resultobj; |
6193 | } | |
6194 | ||
d5c9047a | 6195 | #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk()) |
efc5f224 | 6196 | static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6197 | PyObject * _resultobj; |
d5c9047a RD |
6198 | bool _result; |
6199 | wxTreeItemId * _arg0; | |
1d99702e | 6200 | PyObject * _argo0 = 0; |
efc5f224 | 6201 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6202 | |
6203 | self = self; | |
efc5f224 | 6204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0)) |
8ab979d7 | 6205 | return NULL; |
1d99702e RD |
6206 | if (_argo0) { |
6207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 6209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
6210 | return NULL; |
6211 | } | |
6212 | } | |
cf694132 RD |
6213 | { |
6214 | wxPy_BEGIN_ALLOW_THREADS; | |
6215 | _result = (bool )wxTreeItemId_IsOk(_arg0); | |
6216 | ||
6217 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6218 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6219 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6220 | return _resultobj; |
6221 | } | |
6222 | ||
f6bcfd97 | 6223 | static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) { |
c368d904 | 6224 | if (! other) return -1; |
f6bcfd97 BP |
6225 | return *self != *other; |
6226 | } | |
6227 | static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6228 | PyObject * _resultobj; | |
6229 | int _result; | |
6230 | wxTreeItemId * _arg0; | |
6231 | wxTreeItemId * _arg1; | |
6232 | PyObject * _argo0 = 0; | |
6233 | PyObject * _argo1 = 0; | |
6234 | char *_kwnames[] = { "self","other", NULL }; | |
6235 | ||
6236 | self = self; | |
6237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1)) | |
6238 | return NULL; | |
6239 | if (_argo0) { | |
6240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
6242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
6243 | return NULL; | |
6244 | } | |
6245 | } | |
6246 | if (_argo1) { | |
6247 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6248 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
6250 | return NULL; | |
6251 | } | |
6252 | } | |
6253 | { | |
6254 | wxPy_BEGIN_ALLOW_THREADS; | |
6255 | _result = (int )wxTreeItemId___cmp__(_arg0,_arg1); | |
6256 | ||
6257 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6258 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6259 | } _resultobj = Py_BuildValue("i",_result); |
6260 | return _resultobj; | |
6261 | } | |
6262 | ||
9416aa89 RD |
6263 | static void *SwigwxPyTreeItemDataTowxObject(void *ptr) { |
6264 | wxPyTreeItemData *src; | |
6265 | wxObject *dest; | |
6266 | src = (wxPyTreeItemData *) ptr; | |
6267 | dest = (wxObject *) src; | |
6268 | return (void *) dest; | |
6269 | } | |
6270 | ||
cf694132 | 6271 | #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) |
efc5f224 | 6272 | static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6273 | PyObject * _resultobj; |
cf694132 | 6274 | wxPyTreeItemData * _result; |
1d99702e | 6275 | PyObject * _arg0 = (PyObject *) NULL; |
cf694132 | 6276 | PyObject * _obj0 = 0; |
efc5f224 | 6277 | char *_kwnames[] = { "obj", NULL }; |
d5c9047a | 6278 | char _ptemp[128]; |
8ab979d7 RD |
6279 | |
6280 | self = self; | |
efc5f224 | 6281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0)) |
8ab979d7 | 6282 | return NULL; |
cf694132 RD |
6283 | if (_obj0) |
6284 | { | |
6285 | _arg0 = _obj0; | |
6286 | } | |
6287 | { | |
6288 | wxPy_BEGIN_ALLOW_THREADS; | |
6289 | _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0); | |
6290 | ||
6291 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6292 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6293 | } if (_result) { |
6294 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
6295 | _resultobj = Py_BuildValue("s",_ptemp); | |
6296 | } else { | |
6297 | Py_INCREF(Py_None); | |
6298 | _resultobj = Py_None; | |
6299 | } | |
8ab979d7 RD |
6300 | return _resultobj; |
6301 | } | |
6302 | ||
cf694132 | 6303 | #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData()) |
efc5f224 | 6304 | static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
6305 | PyObject * _resultobj; |
6306 | PyObject * _result; | |
6307 | wxPyTreeItemData * _arg0; | |
1d99702e | 6308 | PyObject * _argo0 = 0; |
efc5f224 | 6309 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
6310 | |
6311 | self = self; | |
efc5f224 | 6312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0)) |
cf694132 | 6313 | return NULL; |
1d99702e RD |
6314 | if (_argo0) { |
6315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 RD |
6317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p."); |
6318 | return NULL; | |
6319 | } | |
6320 | } | |
6321 | { | |
6322 | wxPy_BEGIN_ALLOW_THREADS; | |
6323 | _result = (PyObject *)wxTreeItemData_GetData(_arg0); | |
6324 | ||
6325 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6326 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
6327 | }{ |
6328 | _resultobj = _result; | |
6329 | } | |
6330 | return _resultobj; | |
6331 | } | |
6332 | ||
6333 | #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
efc5f224 | 6334 | static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6335 | PyObject * _resultobj; |
cf694132 RD |
6336 | wxPyTreeItemData * _arg0; |
6337 | PyObject * _arg1; | |
1d99702e | 6338 | PyObject * _argo0 = 0; |
cf694132 | 6339 | PyObject * _obj1 = 0; |
efc5f224 | 6340 | char *_kwnames[] = { "self","obj", NULL }; |
8ab979d7 RD |
6341 | |
6342 | self = self; | |
efc5f224 | 6343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6344 | return NULL; |
1d99702e RD |
6345 | if (_argo0) { |
6346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 6348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
6349 | return NULL; |
6350 | } | |
6351 | } | |
cf694132 RD |
6352 | { |
6353 | _arg1 = _obj1; | |
6354 | } | |
6355 | { | |
6356 | wxPy_BEGIN_ALLOW_THREADS; | |
6357 | wxTreeItemData_SetData(_arg0,_arg1); | |
6358 | ||
6359 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6360 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6361 | } Py_INCREF(Py_None); |
d5c9047a | 6362 | _resultobj = Py_None; |
8ab979d7 RD |
6363 | return _resultobj; |
6364 | } | |
6365 | ||
630d84f2 | 6366 | #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 6367 | static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6368 | PyObject * _resultobj; |
d5c9047a | 6369 | wxTreeItemId * _result; |
cf694132 | 6370 | wxPyTreeItemData * _arg0; |
1d99702e | 6371 | PyObject * _argo0 = 0; |
efc5f224 | 6372 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6373 | char _ptemp[128]; |
6374 | ||
6375 | self = self; | |
efc5f224 | 6376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0)) |
8ab979d7 | 6377 | return NULL; |
1d99702e RD |
6378 | if (_argo0) { |
6379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 6381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
6382 | return NULL; |
6383 | } | |
6384 | } | |
cf694132 RD |
6385 | { |
6386 | wxPy_BEGIN_ALLOW_THREADS; | |
6387 | const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0); | |
d5c9047a | 6388 | _result = (wxTreeItemId *) &_result_ref; |
cf694132 RD |
6389 | |
6390 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6391 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6392 | } if (_result) { |
6393 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
6394 | _resultobj = Py_BuildValue("s",_ptemp); | |
6395 | } else { | |
6396 | Py_INCREF(Py_None); | |
6397 | _resultobj = Py_None; | |
6398 | } | |
8ab979d7 RD |
6399 | return _resultobj; |
6400 | } | |
6401 | ||
630d84f2 | 6402 | #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
efc5f224 | 6403 | static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
630d84f2 | 6404 | PyObject * _resultobj; |
cf694132 | 6405 | wxPyTreeItemData * _arg0; |
630d84f2 | 6406 | wxTreeItemId * _arg1; |
1d99702e RD |
6407 | PyObject * _argo0 = 0; |
6408 | PyObject * _argo1 = 0; | |
efc5f224 | 6409 | char *_kwnames[] = { "self","id", NULL }; |
630d84f2 RD |
6410 | |
6411 | self = self; | |
efc5f224 | 6412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1)) |
630d84f2 | 6413 | return NULL; |
1d99702e RD |
6414 | if (_argo0) { |
6415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 6417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p."); |
630d84f2 RD |
6418 | return NULL; |
6419 | } | |
6420 | } | |
1d99702e RD |
6421 | if (_argo1) { |
6422 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6423 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
630d84f2 RD |
6424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p."); |
6425 | return NULL; | |
6426 | } | |
6427 | } | |
cf694132 RD |
6428 | { |
6429 | wxPy_BEGIN_ALLOW_THREADS; | |
6430 | wxTreeItemData_SetId(_arg0,*_arg1); | |
6431 | ||
6432 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6433 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6434 | } Py_INCREF(Py_None); |
630d84f2 RD |
6435 | _resultobj = Py_None; |
6436 | return _resultobj; | |
6437 | } | |
6438 | ||
8bf5d46e RD |
6439 | static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) { |
6440 | wxTreeEvent *src; | |
6441 | wxNotifyEvent *dest; | |
6442 | src = (wxTreeEvent *) ptr; | |
6443 | dest = (wxNotifyEvent *) src; | |
6444 | return (void *) dest; | |
6445 | } | |
6446 | ||
8ab979d7 RD |
6447 | static void *SwigwxTreeEventTowxCommandEvent(void *ptr) { |
6448 | wxTreeEvent *src; | |
6449 | wxCommandEvent *dest; | |
6450 | src = (wxTreeEvent *) ptr; | |
6451 | dest = (wxCommandEvent *) src; | |
6452 | return (void *) dest; | |
6453 | } | |
6454 | ||
6455 | static void *SwigwxTreeEventTowxEvent(void *ptr) { | |
6456 | wxTreeEvent *src; | |
6457 | wxEvent *dest; | |
6458 | src = (wxTreeEvent *) ptr; | |
6459 | dest = (wxEvent *) src; | |
6460 | return (void *) dest; | |
6461 | } | |
6462 | ||
9416aa89 RD |
6463 | static void *SwigwxTreeEventTowxObject(void *ptr) { |
6464 | wxTreeEvent *src; | |
6465 | wxObject *dest; | |
6466 | src = (wxTreeEvent *) ptr; | |
6467 | dest = (wxObject *) src; | |
6468 | return (void *) dest; | |
6469 | } | |
6470 | ||
00b6c4e3 RD |
6471 | #define new_wxTreeEvent(_swigarg0,_swigarg1) (new wxTreeEvent(_swigarg0,_swigarg1)) |
6472 | static PyObject *_wrap_new_wxTreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6473 | PyObject * _resultobj; | |
6474 | wxTreeEvent * _result; | |
6475 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
6476 | int _arg1 = (int ) 0; | |
6477 | char *_kwnames[] = { "commandType","id", NULL }; | |
6478 | char _ptemp[128]; | |
6479 | ||
6480 | self = self; | |
6481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxTreeEvent",_kwnames,&_arg0,&_arg1)) | |
6482 | return NULL; | |
6483 | { | |
6484 | wxPy_BEGIN_ALLOW_THREADS; | |
6485 | _result = (wxTreeEvent *)new_wxTreeEvent(_arg0,_arg1); | |
6486 | ||
6487 | wxPy_END_ALLOW_THREADS; | |
6488 | if (PyErr_Occurred()) return NULL; | |
6489 | } if (_result) { | |
6490 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeEvent_p"); | |
6491 | _resultobj = Py_BuildValue("s",_ptemp); | |
6492 | } else { | |
6493 | Py_INCREF(Py_None); | |
6494 | _resultobj = Py_None; | |
6495 | } | |
6496 | return _resultobj; | |
6497 | } | |
6498 | ||
d5c9047a | 6499 | #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
efc5f224 | 6500 | static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6501 | PyObject * _resultobj; |
d5c9047a | 6502 | wxTreeItemId * _result; |
8ab979d7 | 6503 | wxTreeEvent * _arg0; |
1d99702e | 6504 | PyObject * _argo0 = 0; |
efc5f224 | 6505 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6506 | char _ptemp[128]; |
8ab979d7 RD |
6507 | |
6508 | self = self; | |
efc5f224 | 6509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 6510 | return NULL; |
1d99702e RD |
6511 | if (_argo0) { |
6512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6515 | return NULL; |
6516 | } | |
6517 | } | |
cf694132 RD |
6518 | { |
6519 | wxPy_BEGIN_ALLOW_THREADS; | |
6520 | _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0)); | |
6521 | ||
6522 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6523 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6524 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 6525 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6526 | return _resultobj; |
6527 | } | |
6528 | ||
d5c9047a | 6529 | #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
efc5f224 | 6530 | static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6531 | PyObject * _resultobj; |
d5c9047a | 6532 | wxTreeItemId * _result; |
8ab979d7 | 6533 | wxTreeEvent * _arg0; |
1d99702e | 6534 | PyObject * _argo0 = 0; |
efc5f224 | 6535 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6536 | char _ptemp[128]; |
6537 | ||
6538 | self = self; | |
efc5f224 | 6539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0)) |
8ab979d7 | 6540 | return NULL; |
1d99702e RD |
6541 | if (_argo0) { |
6542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6545 | return NULL; |
6546 | } | |
6547 | } | |
cf694132 RD |
6548 | { |
6549 | wxPy_BEGIN_ALLOW_THREADS; | |
6550 | _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0)); | |
6551 | ||
6552 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6553 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6554 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8ab979d7 RD |
6555 | _resultobj = Py_BuildValue("s",_ptemp); |
6556 | return _resultobj; | |
6557 | } | |
6558 | ||
d5c9047a | 6559 | #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
efc5f224 | 6560 | static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6561 | PyObject * _resultobj; |
d5c9047a | 6562 | wxPoint * _result; |
8ab979d7 | 6563 | wxTreeEvent * _arg0; |
1d99702e | 6564 | PyObject * _argo0 = 0; |
efc5f224 | 6565 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6566 | char _ptemp[128]; |
8ab979d7 RD |
6567 | |
6568 | self = self; | |
efc5f224 | 6569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 6570 | return NULL; |
1d99702e RD |
6571 | if (_argo0) { |
6572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6575 | return NULL; |
6576 | } | |
6577 | } | |
cf694132 RD |
6578 | { |
6579 | wxPy_BEGIN_ALLOW_THREADS; | |
6580 | _result = new wxPoint (wxTreeEvent_GetPoint(_arg0)); | |
6581 | ||
6582 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6583 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6584 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
d5c9047a | 6585 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6586 | return _resultobj; |
6587 | } | |
6588 | ||
d5c9047a | 6589 | #define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
efc5f224 | 6590 | static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6591 | PyObject * _resultobj; |
d5c9047a | 6592 | int _result; |
8ab979d7 | 6593 | wxTreeEvent * _arg0; |
1d99702e | 6594 | PyObject * _argo0 = 0; |
efc5f224 | 6595 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6596 | |
6597 | self = self; | |
efc5f224 | 6598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 6599 | return NULL; |
1d99702e RD |
6600 | if (_argo0) { |
6601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6604 | return NULL; |
6605 | } | |
6606 | } | |
cf694132 RD |
6607 | { |
6608 | wxPy_BEGIN_ALLOW_THREADS; | |
6609 | _result = (int )wxTreeEvent_GetCode(_arg0); | |
6610 | ||
6611 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6612 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6613 | } _resultobj = Py_BuildValue("i",_result); |
d5c9047a RD |
6614 | return _resultobj; |
6615 | } | |
6616 | ||
8bf5d46e | 6617 | #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 6618 | static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 6619 | PyObject * _resultobj; |
8bf5d46e | 6620 | wxString * _result; |
d5c9047a | 6621 | wxTreeEvent * _arg0; |
1d99702e | 6622 | PyObject * _argo0 = 0; |
efc5f224 | 6623 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
6624 | |
6625 | self = self; | |
efc5f224 | 6626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0)) |
d5c9047a | 6627 | return NULL; |
1d99702e RD |
6628 | if (_argo0) { |
6629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
8bf5d46e | 6631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p."); |
d5c9047a RD |
6632 | return NULL; |
6633 | } | |
6634 | } | |
cf694132 RD |
6635 | { |
6636 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e RD |
6637 | const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0); |
6638 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
6639 | |
6640 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6641 | if (PyErr_Occurred()) return NULL; |
8bf5d46e | 6642 | }{ |
eec92d76 | 6643 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8bf5d46e | 6644 | } |
8ab979d7 RD |
6645 | return _resultobj; |
6646 | } | |
6647 | ||
f6bcfd97 BP |
6648 | static void *SwigwxPyTreeCtrlTowxControl(void *ptr) { |
6649 | wxPyTreeCtrl *src; | |
8ab979d7 | 6650 | wxControl *dest; |
f6bcfd97 | 6651 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6652 | dest = (wxControl *) src; |
6653 | return (void *) dest; | |
6654 | } | |
6655 | ||
f6bcfd97 BP |
6656 | static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) { |
6657 | wxPyTreeCtrl *src; | |
8ab979d7 | 6658 | wxWindow *dest; |
f6bcfd97 | 6659 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6660 | dest = (wxWindow *) src; |
6661 | return (void *) dest; | |
6662 | } | |
6663 | ||
f6bcfd97 BP |
6664 | static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) { |
6665 | wxPyTreeCtrl *src; | |
8ab979d7 | 6666 | wxEvtHandler *dest; |
f6bcfd97 | 6667 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6668 | dest = (wxEvtHandler *) src; |
6669 | return (void *) dest; | |
6670 | } | |
6671 | ||
9416aa89 RD |
6672 | static void *SwigwxPyTreeCtrlTowxObject(void *ptr) { |
6673 | wxPyTreeCtrl *src; | |
6674 | wxObject *dest; | |
6675 | src = (wxPyTreeCtrl *) ptr; | |
6676 | dest = (wxObject *) src; | |
6677 | return (void *) dest; | |
6678 | } | |
6679 | ||
f6bcfd97 | 6680 | #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6681 | static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6682 | PyObject * _resultobj; |
f6bcfd97 | 6683 | wxPyTreeCtrl * _result; |
8ab979d7 | 6684 | wxWindow * _arg0; |
1d99702e | 6685 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
6686 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6687 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
00b6c4e3 | 6688 | long _arg4 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); |
e508a2b6 | 6689 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
6690 | char * _arg6 = (char *) "wxTreeCtrl"; |
6691 | PyObject * _argo0 = 0; | |
2f90df85 RD |
6692 | wxPoint temp; |
6693 | PyObject * _obj2 = 0; | |
6694 | wxSize temp0; | |
6695 | PyObject * _obj3 = 0; | |
1d99702e | 6696 | PyObject * _argo5 = 0; |
efc5f224 | 6697 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
6698 | char _ptemp[128]; |
6699 | ||
6700 | self = self; | |
2f90df85 | 6701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 6702 | return NULL; |
1d99702e RD |
6703 | if (_argo0) { |
6704 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6705 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p."); |
6707 | return NULL; | |
6708 | } | |
6709 | } | |
2f90df85 RD |
6710 | if (_obj2) |
6711 | { | |
6712 | _arg2 = &temp; | |
6713 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6714 | return NULL; |
2f90df85 RD |
6715 | } |
6716 | if (_obj3) | |
6717 | { | |
6718 | _arg3 = &temp0; | |
6719 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6720 | return NULL; |
2f90df85 | 6721 | } |
1d99702e RD |
6722 | if (_argo5) { |
6723 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6724 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
6725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p."); |
6726 | return NULL; | |
6727 | } | |
6728 | } | |
cf694132 RD |
6729 | { |
6730 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6731 | _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
cf694132 RD |
6732 | |
6733 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6734 | if (PyErr_Occurred()) return NULL; |
1d99702e | 6735 | } if (_result) { |
f6bcfd97 | 6736 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); |
1d99702e RD |
6737 | _resultobj = Py_BuildValue("s",_ptemp); |
6738 | } else { | |
6739 | Py_INCREF(Py_None); | |
6740 | _resultobj = Py_None; | |
6741 | } | |
8ab979d7 RD |
6742 | return _resultobj; |
6743 | } | |
6744 | ||
09f3d4e6 RD |
6745 | #define new_wxPreTreeCtrl() (new wxPyTreeCtrl()) |
6746 | static PyObject *_wrap_new_wxPreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6747 | PyObject * _resultobj; | |
6748 | wxPyTreeCtrl * _result; | |
6749 | char *_kwnames[] = { NULL }; | |
6750 | char _ptemp[128]; | |
6751 | ||
6752 | self = self; | |
6753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTreeCtrl",_kwnames)) | |
6754 | return NULL; | |
6755 | { | |
6756 | wxPy_BEGIN_ALLOW_THREADS; | |
6757 | _result = (wxPyTreeCtrl *)new_wxPreTreeCtrl(); | |
6758 | ||
6759 | wxPy_END_ALLOW_THREADS; | |
6760 | if (PyErr_Occurred()) return NULL; | |
6761 | } if (_result) { | |
6762 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); | |
6763 | _resultobj = Py_BuildValue("s",_ptemp); | |
6764 | } else { | |
6765 | Py_INCREF(Py_None); | |
6766 | _resultobj = Py_None; | |
6767 | } | |
6768 | return _resultobj; | |
6769 | } | |
6770 | ||
6771 | #define wxTreeCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
6772 | static PyObject *_wrap_wxTreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6773 | PyObject * _resultobj; | |
6774 | bool _result; | |
6775 | wxPyTreeCtrl * _arg0; | |
6776 | wxWindow * _arg1; | |
6777 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6778 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6779 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6780 | long _arg5 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); | |
6781 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
6782 | char * _arg7 = (char *) "wxTreeCtrl"; | |
6783 | PyObject * _argo0 = 0; | |
6784 | PyObject * _argo1 = 0; | |
6785 | wxPoint temp; | |
6786 | PyObject * _obj3 = 0; | |
6787 | wxSize temp0; | |
6788 | PyObject * _obj4 = 0; | |
6789 | PyObject * _argo6 = 0; | |
6790 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
6791 | ||
6792 | self = self; | |
6793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxTreeCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
6794 | return NULL; | |
6795 | if (_argo0) { | |
6796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Create. Expected _wxPyTreeCtrl_p."); | |
6799 | return NULL; | |
6800 | } | |
6801 | } | |
6802 | if (_argo1) { | |
6803 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6804 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Create. Expected _wxWindow_p."); | |
6806 | return NULL; | |
6807 | } | |
6808 | } | |
6809 | if (_obj3) | |
6810 | { | |
6811 | _arg3 = &temp; | |
6812 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6813 | return NULL; | |
6814 | } | |
6815 | if (_obj4) | |
6816 | { | |
6817 | _arg4 = &temp0; | |
6818 | if (! wxSize_helper(_obj4, &_arg4)) | |
6819 | return NULL; | |
6820 | } | |
6821 | if (_argo6) { | |
6822 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6823 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
6824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_Create. Expected _wxValidator_p."); | |
6825 | return NULL; | |
6826 | } | |
6827 | } | |
6828 | { | |
6829 | wxPy_BEGIN_ALLOW_THREADS; | |
6830 | _result = (bool )wxTreeCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
6831 | ||
6832 | wxPy_END_ALLOW_THREADS; | |
6833 | if (PyErr_Occurred()) return NULL; | |
6834 | } _resultobj = Py_BuildValue("i",_result); | |
6835 | return _resultobj; | |
6836 | } | |
6837 | ||
f6bcfd97 BP |
6838 | #define wxTreeCtrl__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) |
6839 | static PyObject *_wrap_wxTreeCtrl__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6840 | PyObject * _resultobj; | |
6841 | wxPyTreeCtrl * _arg0; | |
6842 | PyObject * _arg1; | |
6843 | PyObject * _arg2; | |
6844 | PyObject * _argo0 = 0; | |
6845 | PyObject * _obj1 = 0; | |
6846 | PyObject * _obj2 = 0; | |
6847 | char *_kwnames[] = { "self","self","_class", NULL }; | |
6848 | ||
6849 | self = self; | |
6850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) | |
6851 | return NULL; | |
6852 | if (_argo0) { | |
6853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setSelf. Expected _wxPyTreeCtrl_p."); | |
6856 | return NULL; | |
6857 | } | |
6858 | } | |
6859 | { | |
6860 | _arg1 = _obj1; | |
6861 | } | |
6862 | { | |
6863 | _arg2 = _obj2; | |
6864 | } | |
6865 | { | |
6866 | wxPy_BEGIN_ALLOW_THREADS; | |
6867 | wxTreeCtrl__setSelf(_arg0,_arg1,_arg2); | |
6868 | ||
6869 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6870 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6871 | } Py_INCREF(Py_None); |
6872 | _resultobj = Py_None; | |
6873 | return _resultobj; | |
6874 | } | |
6875 | ||
d5c9047a | 6876 | #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount()) |
efc5f224 | 6877 | static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6878 | PyObject * _resultobj; |
c127177f | 6879 | size_t _result; |
f6bcfd97 | 6880 | wxPyTreeCtrl * _arg0; |
1d99702e | 6881 | PyObject * _argo0 = 0; |
efc5f224 | 6882 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6883 | |
6884 | self = self; | |
efc5f224 | 6885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0)) |
8ab979d7 | 6886 | return NULL; |
1d99702e RD |
6887 | if (_argo0) { |
6888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6891 | return NULL; |
6892 | } | |
6893 | } | |
cf694132 RD |
6894 | { |
6895 | wxPy_BEGIN_ALLOW_THREADS; | |
c127177f | 6896 | _result = (size_t )wxTreeCtrl_GetCount(_arg0); |
cf694132 RD |
6897 | |
6898 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6899 | if (PyErr_Occurred()) return NULL; |
c127177f | 6900 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6901 | return _resultobj; |
6902 | } | |
6903 | ||
d5c9047a | 6904 | #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) |
efc5f224 | 6905 | static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6906 | PyObject * _resultobj; |
d5c9047a | 6907 | unsigned int _result; |
f6bcfd97 | 6908 | wxPyTreeCtrl * _arg0; |
1d99702e | 6909 | PyObject * _argo0 = 0; |
efc5f224 | 6910 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6911 | |
6912 | self = self; | |
efc5f224 | 6913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0)) |
8ab979d7 | 6914 | return NULL; |
1d99702e RD |
6915 | if (_argo0) { |
6916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6919 | return NULL; |
6920 | } | |
6921 | } | |
cf694132 RD |
6922 | { |
6923 | wxPy_BEGIN_ALLOW_THREADS; | |
6924 | _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0); | |
6925 | ||
6926 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6927 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6928 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6929 | return _resultobj; |
6930 | } | |
6931 | ||
d5c9047a | 6932 | #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) |
efc5f224 | 6933 | static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6934 | PyObject * _resultobj; |
f6bcfd97 | 6935 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6936 | unsigned int _arg1; |
1d99702e | 6937 | PyObject * _argo0 = 0; |
efc5f224 | 6938 | char *_kwnames[] = { "self","indent", NULL }; |
8ab979d7 RD |
6939 | |
6940 | self = self; | |
efc5f224 | 6941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6942 | return NULL; |
1d99702e RD |
6943 | if (_argo0) { |
6944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6947 | return NULL; |
6948 | } | |
6949 | } | |
cf694132 RD |
6950 | { |
6951 | wxPy_BEGIN_ALLOW_THREADS; | |
6952 | wxTreeCtrl_SetIndent(_arg0,_arg1); | |
6953 | ||
6954 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6955 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6956 | } Py_INCREF(Py_None); |
d5c9047a | 6957 | _resultobj = Py_None; |
8ab979d7 RD |
6958 | return _resultobj; |
6959 | } | |
6960 | ||
d5c9047a | 6961 | #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList()) |
efc5f224 | 6962 | static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6963 | PyObject * _resultobj; |
d5c9047a | 6964 | wxImageList * _result; |
f6bcfd97 | 6965 | wxPyTreeCtrl * _arg0; |
1d99702e | 6966 | PyObject * _argo0 = 0; |
efc5f224 | 6967 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6968 | |
6969 | self = self; | |
efc5f224 | 6970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0)) |
8ab979d7 | 6971 | return NULL; |
1d99702e RD |
6972 | if (_argo0) { |
6973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6976 | return NULL; |
6977 | } | |
6978 | } | |
cf694132 RD |
6979 | { |
6980 | wxPy_BEGIN_ALLOW_THREADS; | |
6981 | _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0); | |
6982 | ||
6983 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6984 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 6985 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
6986 | return _resultobj; |
6987 | } | |
6988 | ||
d5c9047a | 6989 | #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList()) |
efc5f224 | 6990 | static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6991 | PyObject * _resultobj; |
d5c9047a | 6992 | wxImageList * _result; |
f6bcfd97 | 6993 | wxPyTreeCtrl * _arg0; |
1d99702e | 6994 | PyObject * _argo0 = 0; |
efc5f224 | 6995 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6996 | |
6997 | self = self; | |
efc5f224 | 6998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0)) |
8ab979d7 | 6999 | return NULL; |
1d99702e RD |
7000 | if (_argo0) { |
7001 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7002 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7004 | return NULL; |
7005 | } | |
7006 | } | |
cf694132 RD |
7007 | { |
7008 | wxPy_BEGIN_ALLOW_THREADS; | |
7009 | _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0); | |
7010 | ||
7011 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7012 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7013 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
7014 | return _resultobj; |
7015 | } | |
7016 | ||
d5c9047a | 7017 | #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) |
efc5f224 | 7018 | static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7019 | PyObject * _resultobj; |
f6bcfd97 | 7020 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7021 | wxImageList * _arg1; |
1d99702e RD |
7022 | PyObject * _argo0 = 0; |
7023 | PyObject * _argo1 = 0; | |
efc5f224 | 7024 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
7025 | |
7026 | self = self; | |
efc5f224 | 7027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7028 | return NULL; |
1d99702e RD |
7029 | if (_argo0) { |
7030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7033 | return NULL; |
7034 | } | |
7035 | } | |
1d99702e RD |
7036 | if (_argo1) { |
7037 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7038 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
7039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p."); |
7040 | return NULL; | |
7041 | } | |
7042 | } | |
cf694132 RD |
7043 | { |
7044 | wxPy_BEGIN_ALLOW_THREADS; | |
7045 | wxTreeCtrl_SetImageList(_arg0,_arg1); | |
7046 | ||
7047 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7048 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7049 | } Py_INCREF(Py_None); |
d5c9047a | 7050 | _resultobj = Py_None; |
8ab979d7 RD |
7051 | return _resultobj; |
7052 | } | |
7053 | ||
d5c9047a | 7054 | #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0)) |
efc5f224 | 7055 | static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7056 | PyObject * _resultobj; |
f6bcfd97 | 7057 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7058 | wxImageList * _arg1; |
1d99702e RD |
7059 | PyObject * _argo0 = 0; |
7060 | PyObject * _argo1 = 0; | |
efc5f224 | 7061 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
7062 | |
7063 | self = self; | |
efc5f224 | 7064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7065 | return NULL; |
1d99702e RD |
7066 | if (_argo0) { |
7067 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7068 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7070 | return NULL; |
7071 | } | |
7072 | } | |
1d99702e RD |
7073 | if (_argo1) { |
7074 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7075 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
7076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p."); |
7077 | return NULL; | |
7078 | } | |
7079 | } | |
cf694132 RD |
7080 | { |
7081 | wxPy_BEGIN_ALLOW_THREADS; | |
7082 | wxTreeCtrl_SetStateImageList(_arg0,_arg1); | |
7083 | ||
7084 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7085 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7086 | } Py_INCREF(Py_None); |
d5c9047a | 7087 | _resultobj = Py_None; |
8ab979d7 RD |
7088 | return _resultobj; |
7089 | } | |
7090 | ||
00b6c4e3 RD |
7091 | #define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0)) |
7092 | static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7093 | PyObject * _resultobj; | |
7094 | wxPyTreeCtrl * _arg0; | |
7095 | wxImageList * _arg1; | |
7096 | PyObject * _argo0 = 0; | |
7097 | PyObject * _argo1 = 0; | |
7098 | char *_kwnames[] = { "self","imageList", NULL }; | |
7099 | ||
7100 | self = self; | |
7101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1)) | |
7102 | return NULL; | |
7103 | if (_argo0) { | |
7104 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7105 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p."); | |
7107 | return NULL; | |
7108 | } | |
7109 | } | |
7110 | if (_argo1) { | |
7111 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7112 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
7113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p."); | |
7114 | return NULL; | |
7115 | } | |
7116 | } | |
7117 | { | |
7118 | wxPy_BEGIN_ALLOW_THREADS; | |
7119 | wxTreeCtrl_AssignImageList(_arg0,_arg1); | |
7120 | ||
7121 | wxPy_END_ALLOW_THREADS; | |
7122 | if (PyErr_Occurred()) return NULL; | |
7123 | } Py_INCREF(Py_None); | |
7124 | _resultobj = Py_None; | |
7125 | return _resultobj; | |
7126 | } | |
7127 | ||
7128 | #define wxTreeCtrl_AssignStateImageList(_swigobj,_swigarg0) (_swigobj->AssignStateImageList(_swigarg0)) | |
7129 | static PyObject *_wrap_wxTreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7130 | PyObject * _resultobj; | |
7131 | wxPyTreeCtrl * _arg0; | |
7132 | wxImageList * _arg1; | |
7133 | PyObject * _argo0 = 0; | |
7134 | PyObject * _argo1 = 0; | |
7135 | char *_kwnames[] = { "self","imageList", NULL }; | |
7136 | ||
7137 | self = self; | |
7138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignStateImageList",_kwnames,&_argo0,&_argo1)) | |
7139 | return NULL; | |
7140 | if (_argo0) { | |
7141 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7142 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignStateImageList. Expected _wxPyTreeCtrl_p."); | |
7144 | return NULL; | |
7145 | } | |
7146 | } | |
7147 | if (_argo1) { | |
7148 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7149 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
7150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignStateImageList. Expected _wxImageList_p."); | |
7151 | return NULL; | |
7152 | } | |
7153 | } | |
7154 | { | |
7155 | wxPy_BEGIN_ALLOW_THREADS; | |
7156 | wxTreeCtrl_AssignStateImageList(_arg0,_arg1); | |
7157 | ||
7158 | wxPy_END_ALLOW_THREADS; | |
7159 | if (PyErr_Occurred()) return NULL; | |
7160 | } Py_INCREF(Py_None); | |
7161 | _resultobj = Py_None; | |
7162 | return _resultobj; | |
7163 | } | |
7164 | ||
b1462dfa RD |
7165 | #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing()) |
7166 | static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7167 | PyObject * _resultobj; | |
7168 | unsigned int _result; | |
f6bcfd97 | 7169 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
7170 | PyObject * _argo0 = 0; |
7171 | char *_kwnames[] = { "self", NULL }; | |
7172 | ||
7173 | self = self; | |
7174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0)) | |
7175 | return NULL; | |
7176 | if (_argo0) { | |
7177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
7180 | return NULL; |
7181 | } | |
7182 | } | |
7183 | { | |
7184 | wxPy_BEGIN_ALLOW_THREADS; | |
7185 | _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0); | |
7186 | ||
7187 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7188 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7189 | } _resultobj = Py_BuildValue("i",_result); |
7190 | return _resultobj; | |
7191 | } | |
7192 | ||
7193 | #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0)) | |
7194 | static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7195 | PyObject * _resultobj; | |
f6bcfd97 | 7196 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
7197 | unsigned int _arg1; |
7198 | PyObject * _argo0 = 0; | |
7199 | char *_kwnames[] = { "self","spacing", NULL }; | |
7200 | ||
7201 | self = self; | |
7202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1)) | |
7203 | return NULL; | |
7204 | if (_argo0) { | |
7205 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7206 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
7208 | return NULL; |
7209 | } | |
7210 | } | |
7211 | { | |
7212 | wxPy_BEGIN_ALLOW_THREADS; | |
7213 | wxTreeCtrl_SetSpacing(_arg0,_arg1); | |
7214 | ||
7215 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7216 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7217 | } Py_INCREF(Py_None); |
7218 | _resultobj = Py_None; | |
7219 | return _resultobj; | |
7220 | } | |
7221 | ||
d5c9047a | 7222 | #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
efc5f224 | 7223 | static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7224 | PyObject * _resultobj; |
d5c9047a | 7225 | wxString * _result; |
f6bcfd97 | 7226 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7227 | wxTreeItemId * _arg1; |
1d99702e RD |
7228 | PyObject * _argo0 = 0; |
7229 | PyObject * _argo1 = 0; | |
efc5f224 | 7230 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7231 | |
7232 | self = self; | |
efc5f224 | 7233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7234 | return NULL; |
1d99702e RD |
7235 | if (_argo0) { |
7236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7239 | return NULL; |
7240 | } | |
7241 | } | |
1d99702e RD |
7242 | if (_argo1) { |
7243 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7244 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p."); |
7246 | return NULL; | |
7247 | } | |
7248 | } | |
d5c9047a | 7249 | { |
cf694132 RD |
7250 | wxPy_BEGIN_ALLOW_THREADS; |
7251 | _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1)); | |
7252 | ||
7253 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7254 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7255 | }{ |
eec92d76 | 7256 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
d5c9047a RD |
7257 | } |
7258 | { | |
7259 | delete _result; | |
7260 | } | |
8ab979d7 RD |
7261 | return _resultobj; |
7262 | } | |
7263 | ||
694759cf | 7264 | #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1)) |
efc5f224 | 7265 | static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7266 | PyObject * _resultobj; |
d5c9047a | 7267 | int _result; |
f6bcfd97 | 7268 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7269 | wxTreeItemId * _arg1; |
694759cf | 7270 | wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
7271 | PyObject * _argo0 = 0; |
7272 | PyObject * _argo1 = 0; | |
694759cf | 7273 | char *_kwnames[] = { "self","item","which", NULL }; |
8ab979d7 RD |
7274 | |
7275 | self = self; | |
694759cf | 7276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 7277 | return NULL; |
1d99702e RD |
7278 | if (_argo0) { |
7279 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7280 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7282 | return NULL; |
7283 | } | |
7284 | } | |
1d99702e RD |
7285 | if (_argo1) { |
7286 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7287 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p."); |
7289 | return NULL; | |
7290 | } | |
7291 | } | |
cf694132 RD |
7292 | { |
7293 | wxPy_BEGIN_ALLOW_THREADS; | |
694759cf | 7294 | _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2); |
cf694132 RD |
7295 | |
7296 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7297 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7298 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7299 | return _resultobj; |
7300 | } | |
7301 | ||
d5c9047a | 7302 | #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0)) |
efc5f224 | 7303 | static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7304 | PyObject * _resultobj; |
d5c9047a | 7305 | int _result; |
f6bcfd97 | 7306 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7307 | wxTreeItemId * _arg1; |
1d99702e RD |
7308 | PyObject * _argo0 = 0; |
7309 | PyObject * _argo1 = 0; | |
efc5f224 | 7310 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7311 | |
7312 | self = self; | |
efc5f224 | 7313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7314 | return NULL; |
1d99702e RD |
7315 | if (_argo0) { |
7316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7319 | return NULL; |
7320 | } | |
7321 | } | |
1d99702e RD |
7322 | if (_argo1) { |
7323 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7324 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p."); |
7326 | return NULL; | |
7327 | } | |
7328 | } | |
cf694132 RD |
7329 | { |
7330 | wxPy_BEGIN_ALLOW_THREADS; | |
7331 | _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1); | |
8ab979d7 | 7332 | |
cf694132 | 7333 | wxPy_END_ALLOW_THREADS; |
493f1553 | 7334 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7335 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7336 | return _resultobj; |
7337 | } | |
7338 | ||
d5c9047a | 7339 | #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
efc5f224 | 7340 | static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7341 | PyObject * _resultobj; |
f6bcfd97 | 7342 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7343 | wxTreeItemId * _arg1; |
7344 | wxString * _arg2; | |
1d99702e RD |
7345 | PyObject * _argo0 = 0; |
7346 | PyObject * _argo1 = 0; | |
d5c9047a | 7347 | PyObject * _obj2 = 0; |
efc5f224 | 7348 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
7349 | |
7350 | self = self; | |
efc5f224 | 7351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7352 | return NULL; |
1d99702e RD |
7353 | if (_argo0) { |
7354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7357 | return NULL; |
7358 | } | |
7359 | } | |
1d99702e RD |
7360 | if (_argo1) { |
7361 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7362 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p."); |
7364 | return NULL; | |
7365 | } | |
7366 | } | |
7367 | { | |
185d7c3e RD |
7368 | #if PYTHON_API_VERSION >= 1009 |
7369 | char* tmpPtr; int tmpSize; | |
7370 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7371 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7372 | return NULL; |
7373 | } | |
7374 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7375 | return NULL; | |
7376 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7377 | #else | |
d5c9047a RD |
7378 | if (!PyString_Check(_obj2)) { |
7379 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7380 | return NULL; | |
7381 | } | |
185d7c3e RD |
7382 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7383 | #endif | |
d5c9047a | 7384 | } |
cf694132 RD |
7385 | { |
7386 | wxPy_BEGIN_ALLOW_THREADS; | |
7387 | wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2); | |
7388 | ||
7389 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7390 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7391 | } Py_INCREF(Py_None); |
d5c9047a RD |
7392 | _resultobj = Py_None; |
7393 | { | |
7394 | if (_obj2) | |
7395 | delete _arg2; | |
7396 | } | |
8ab979d7 RD |
7397 | return _resultobj; |
7398 | } | |
7399 | ||
694759cf | 7400 | #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 7401 | static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7402 | PyObject * _resultobj; |
f6bcfd97 | 7403 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7404 | wxTreeItemId * _arg1; |
7405 | int _arg2; | |
694759cf | 7406 | wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
7407 | PyObject * _argo0 = 0; |
7408 | PyObject * _argo1 = 0; | |
694759cf | 7409 | char *_kwnames[] = { "self","item","image","which", NULL }; |
8ab979d7 RD |
7410 | |
7411 | self = self; | |
694759cf | 7412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 7413 | return NULL; |
1d99702e RD |
7414 | if (_argo0) { |
7415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7418 | return NULL; |
7419 | } | |
7420 | } | |
1d99702e RD |
7421 | if (_argo1) { |
7422 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7423 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p."); |
7425 | return NULL; | |
7426 | } | |
7427 | } | |
cf694132 RD |
7428 | { |
7429 | wxPy_BEGIN_ALLOW_THREADS; | |
694759cf | 7430 | wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3); |
cf694132 RD |
7431 | |
7432 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7433 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7434 | } Py_INCREF(Py_None); |
d5c9047a | 7435 | _resultobj = Py_None; |
8ab979d7 RD |
7436 | return _resultobj; |
7437 | } | |
7438 | ||
d5c9047a | 7439 | #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1)) |
efc5f224 | 7440 | static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7441 | PyObject * _resultobj; |
f6bcfd97 | 7442 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7443 | wxTreeItemId * _arg1; |
7444 | int _arg2; | |
1d99702e RD |
7445 | PyObject * _argo0 = 0; |
7446 | PyObject * _argo1 = 0; | |
efc5f224 | 7447 | char *_kwnames[] = { "self","item","image", NULL }; |
8ab979d7 RD |
7448 | |
7449 | self = self; | |
efc5f224 | 7450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
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_SetItemSelectedImage. 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_SetItemSelectedImage. Expected _wxTreeItemId_p."); |
7463 | return NULL; | |
7464 | } | |
7465 | } | |
cf694132 RD |
7466 | { |
7467 | wxPy_BEGIN_ALLOW_THREADS; | |
7468 | wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2); | |
7469 | ||
7470 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7471 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7472 | } Py_INCREF(Py_None); |
7473 | _resultobj = Py_None; | |
7474 | return _resultobj; | |
7475 | } | |
7476 | ||
7477 | #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1)) | |
efc5f224 | 7478 | static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7479 | PyObject * _resultobj; |
f6bcfd97 | 7480 | wxPyTreeCtrl * _arg0; |
cf694132 | 7481 | wxTreeItemId * _arg1; |
1d99702e RD |
7482 | bool _arg2 = (bool ) TRUE; |
7483 | PyObject * _argo0 = 0; | |
7484 | PyObject * _argo1 = 0; | |
7485 | int tempbool2 = (int) TRUE; | |
efc5f224 | 7486 | char *_kwnames[] = { "self","item","hasChildren", NULL }; |
cf694132 RD |
7487 | |
7488 | self = self; | |
efc5f224 | 7489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2)) |
cf694132 | 7490 | return NULL; |
1d99702e RD |
7491 | if (_argo0) { |
7492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7495 | return NULL; |
7496 | } | |
7497 | } | |
1d99702e RD |
7498 | if (_argo1) { |
7499 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7500 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p."); |
7502 | return NULL; | |
7503 | } | |
7504 | } | |
7505 | _arg2 = (bool ) tempbool2; | |
7506 | { | |
7507 | wxPy_BEGIN_ALLOW_THREADS; | |
7508 | wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2); | |
7509 | ||
7510 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7511 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7512 | } Py_INCREF(Py_None); |
d5c9047a | 7513 | _resultobj = Py_None; |
8ab979d7 RD |
7514 | return _resultobj; |
7515 | } | |
7516 | ||
f6bcfd97 | 7517 | static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7518 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7519 | if (data == NULL) { | |
7520 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7521 | data->SetId(item); // set the id |
cf694132 RD |
7522 | self->SetItemData(item, data); |
7523 | } | |
7524 | return data; | |
7525 | } | |
efc5f224 | 7526 | static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
7527 | PyObject * _resultobj; |
7528 | wxPyTreeItemData * _result; | |
f6bcfd97 | 7529 | wxPyTreeCtrl * _arg0; |
cf694132 | 7530 | wxTreeItemId * _arg1; |
1d99702e RD |
7531 | PyObject * _argo0 = 0; |
7532 | PyObject * _argo1 = 0; | |
efc5f224 | 7533 | char *_kwnames[] = { "self","item", NULL }; |
cf694132 RD |
7534 | char _ptemp[128]; |
7535 | ||
7536 | self = self; | |
efc5f224 | 7537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1)) |
cf694132 | 7538 | return NULL; |
1d99702e RD |
7539 | if (_argo0) { |
7540 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7541 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7543 | return NULL; |
7544 | } | |
7545 | } | |
1d99702e RD |
7546 | if (_argo1) { |
7547 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7548 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p."); |
7550 | return NULL; | |
7551 | } | |
7552 | } | |
7553 | { | |
7554 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 7555 | _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1); |
cf694132 RD |
7556 | |
7557 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7558 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7559 | } if (_result) { |
7560 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
7561 | _resultobj = Py_BuildValue("s",_ptemp); | |
7562 | } else { | |
7563 | Py_INCREF(Py_None); | |
7564 | _resultobj = Py_None; | |
7565 | } | |
cf694132 RD |
7566 | return _resultobj; |
7567 | } | |
7568 | ||
f6bcfd97 BP |
7569 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) { |
7570 | data->SetId(item); // set the id | |
7571 | self->SetItemData(item, data); | |
c368d904 | 7572 | } |
efc5f224 | 7573 | static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7574 | PyObject * _resultobj; |
f6bcfd97 | 7575 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7576 | wxTreeItemId * _arg1; |
cf694132 | 7577 | wxPyTreeItemData * _arg2; |
1d99702e RD |
7578 | PyObject * _argo0 = 0; |
7579 | PyObject * _argo1 = 0; | |
7580 | PyObject * _argo2 = 0; | |
efc5f224 | 7581 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
7582 | |
7583 | self = self; | |
efc5f224 | 7584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2)) |
8ab979d7 | 7585 | return NULL; |
1d99702e RD |
7586 | if (_argo0) { |
7587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7590 | return NULL; |
7591 | } | |
7592 | } | |
1d99702e RD |
7593 | if (_argo1) { |
7594 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7595 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p."); |
7597 | return NULL; | |
7598 | } | |
7599 | } | |
1d99702e RD |
7600 | if (_argo2) { |
7601 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7602 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) { | |
cf694132 | 7603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
7604 | return NULL; |
7605 | } | |
7606 | } | |
cf694132 RD |
7607 | { |
7608 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 7609 | wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2); |
cf694132 RD |
7610 | |
7611 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7612 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7613 | } Py_INCREF(Py_None); |
d5c9047a | 7614 | _resultobj = Py_None; |
8ab979d7 RD |
7615 | return _resultobj; |
7616 | } | |
7617 | ||
f6bcfd97 | 7618 | static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7619 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7620 | if (data == NULL) { | |
7621 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7622 | data->SetId(item); // set the id |
cf694132 RD |
7623 | self->SetItemData(item, data); |
7624 | } | |
7625 | return data->GetData(); | |
c368d904 | 7626 | } |
efc5f224 | 7627 | static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 7628 | PyObject * _resultobj; |
cf694132 | 7629 | PyObject * _result; |
f6bcfd97 | 7630 | wxPyTreeCtrl * _arg0; |
08127323 | 7631 | wxTreeItemId * _arg1; |
1d99702e RD |
7632 | PyObject * _argo0 = 0; |
7633 | PyObject * _argo1 = 0; | |
efc5f224 | 7634 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
7635 | |
7636 | self = self; | |
efc5f224 | 7637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1)) |
08127323 | 7638 | return NULL; |
1d99702e RD |
7639 | if (_argo0) { |
7640 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7641 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
7643 | return NULL; |
7644 | } | |
7645 | } | |
1d99702e RD |
7646 | if (_argo1) { |
7647 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7648 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 | 7649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p."); |
08127323 RD |
7650 | return NULL; |
7651 | } | |
7652 | } | |
cf694132 RD |
7653 | { |
7654 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 7655 | _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1); |
cf694132 RD |
7656 | |
7657 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7658 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7659 | }{ |
7660 | _resultobj = _result; | |
7661 | } | |
7662 | return _resultobj; | |
7663 | } | |
7664 | ||
f6bcfd97 | 7665 | static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) { |
cf694132 RD |
7666 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7667 | if (data == NULL) { | |
7668 | data = new wxPyTreeItemData(obj); | |
f6bcfd97 | 7669 | data->SetId(item); // set the id |
cf694132 RD |
7670 | self->SetItemData(item, data); |
7671 | } else | |
7672 | data->SetData(obj); | |
c368d904 | 7673 | } |
efc5f224 | 7674 | static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7675 | PyObject * _resultobj; |
f6bcfd97 | 7676 | wxPyTreeCtrl * _arg0; |
cf694132 RD |
7677 | wxTreeItemId * _arg1; |
7678 | PyObject * _arg2; | |
1d99702e RD |
7679 | PyObject * _argo0 = 0; |
7680 | PyObject * _argo1 = 0; | |
cf694132 | 7681 | PyObject * _obj2 = 0; |
efc5f224 | 7682 | char *_kwnames[] = { "self","item","obj", NULL }; |
cf694132 RD |
7683 | |
7684 | self = self; | |
efc5f224 | 7685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2)) |
cf694132 | 7686 | return NULL; |
1d99702e RD |
7687 | if (_argo0) { |
7688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7691 | return NULL; |
7692 | } | |
7693 | } | |
1d99702e RD |
7694 | if (_argo1) { |
7695 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7696 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p."); |
7698 | return NULL; | |
7699 | } | |
7700 | } | |
7701 | { | |
7702 | _arg2 = _obj2; | |
7703 | } | |
7704 | { | |
7705 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 7706 | wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2); |
cf694132 RD |
7707 | |
7708 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7709 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7710 | } Py_INCREF(Py_None); |
08127323 RD |
7711 | _resultobj = Py_None; |
7712 | return _resultobj; | |
7713 | } | |
7714 | ||
d5c9047a | 7715 | #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) |
efc5f224 | 7716 | static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7717 | PyObject * _resultobj; |
d5c9047a | 7718 | bool _result; |
f6bcfd97 | 7719 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7720 | wxTreeItemId * _arg1; |
1d99702e RD |
7721 | PyObject * _argo0 = 0; |
7722 | PyObject * _argo1 = 0; | |
efc5f224 | 7723 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7724 | |
7725 | self = self; | |
efc5f224 | 7726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7727 | return NULL; |
1d99702e RD |
7728 | if (_argo0) { |
7729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7732 | return NULL; |
7733 | } | |
7734 | } | |
1d99702e RD |
7735 | if (_argo1) { |
7736 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7737 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p."); |
7739 | return NULL; | |
7740 | } | |
7741 | } | |
cf694132 RD |
7742 | { |
7743 | wxPy_BEGIN_ALLOW_THREADS; | |
7744 | _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1); | |
7745 | ||
7746 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7747 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7748 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7749 | return _resultobj; |
7750 | } | |
7751 | ||
d5c9047a | 7752 | #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0)) |
efc5f224 | 7753 | static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7754 | PyObject * _resultobj; |
d5c9047a | 7755 | bool _result; |
f6bcfd97 | 7756 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7757 | wxTreeItemId * _arg1; |
1d99702e RD |
7758 | PyObject * _argo0 = 0; |
7759 | PyObject * _argo1 = 0; | |
efc5f224 | 7760 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7761 | |
7762 | self = self; | |
efc5f224 | 7763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7764 | return NULL; |
1d99702e RD |
7765 | if (_argo0) { |
7766 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7767 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7769 | return NULL; |
7770 | } | |
7771 | } | |
1d99702e RD |
7772 | if (_argo1) { |
7773 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7774 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p."); |
7776 | return NULL; | |
7777 | } | |
7778 | } | |
cf694132 RD |
7779 | { |
7780 | wxPy_BEGIN_ALLOW_THREADS; | |
7781 | _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1); | |
7782 | ||
7783 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7784 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7785 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7786 | return _resultobj; |
7787 | } | |
7788 | ||
d5c9047a | 7789 | #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0)) |
efc5f224 | 7790 | static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7791 | PyObject * _resultobj; |
d5c9047a | 7792 | bool _result; |
f6bcfd97 | 7793 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7794 | wxTreeItemId * _arg1; |
1d99702e RD |
7795 | PyObject * _argo0 = 0; |
7796 | PyObject * _argo1 = 0; | |
efc5f224 | 7797 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7798 | |
7799 | self = self; | |
efc5f224 | 7800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7801 | return NULL; |
1d99702e RD |
7802 | if (_argo0) { |
7803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7806 | return NULL; |
7807 | } | |
7808 | } | |
1d99702e RD |
7809 | if (_argo1) { |
7810 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7811 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p."); |
7813 | return NULL; | |
7814 | } | |
7815 | } | |
cf694132 RD |
7816 | { |
7817 | wxPy_BEGIN_ALLOW_THREADS; | |
7818 | _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1); | |
7819 | ||
7820 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7821 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7822 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7823 | return _resultobj; |
7824 | } | |
7825 | ||
d5c9047a | 7826 | #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
efc5f224 | 7827 | static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7828 | PyObject * _resultobj; |
d5c9047a | 7829 | bool _result; |
f6bcfd97 | 7830 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7831 | wxTreeItemId * _arg1; |
1d99702e RD |
7832 | PyObject * _argo0 = 0; |
7833 | PyObject * _argo1 = 0; | |
efc5f224 | 7834 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7835 | |
7836 | self = self; | |
efc5f224 | 7837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7838 | return NULL; |
1d99702e RD |
7839 | if (_argo0) { |
7840 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7841 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7843 | return NULL; |
7844 | } | |
7845 | } | |
1d99702e RD |
7846 | if (_argo1) { |
7847 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7848 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p."); |
7850 | return NULL; | |
7851 | } | |
7852 | } | |
cf694132 RD |
7853 | { |
7854 | wxPy_BEGIN_ALLOW_THREADS; | |
7855 | _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1); | |
7856 | ||
7857 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7858 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7859 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7860 | return _resultobj; |
7861 | } | |
7862 | ||
7863 | #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem()) | |
efc5f224 | 7864 | static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7865 | PyObject * _resultobj; |
d5c9047a | 7866 | wxTreeItemId * _result; |
f6bcfd97 | 7867 | wxPyTreeCtrl * _arg0; |
1d99702e | 7868 | PyObject * _argo0 = 0; |
efc5f224 | 7869 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7870 | char _ptemp[128]; |
8ab979d7 RD |
7871 | |
7872 | self = self; | |
efc5f224 | 7873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0)) |
8ab979d7 | 7874 | return NULL; |
1d99702e RD |
7875 | if (_argo0) { |
7876 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7877 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7879 | return NULL; |
7880 | } | |
7881 | } | |
cf694132 RD |
7882 | { |
7883 | wxPy_BEGIN_ALLOW_THREADS; | |
7884 | _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0)); | |
7885 | ||
7886 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7887 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7888 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7889 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7890 | return _resultobj; |
7891 | } | |
7892 | ||
7893 | #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 7894 | static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7895 | PyObject * _resultobj; |
d5c9047a | 7896 | wxTreeItemId * _result; |
f6bcfd97 | 7897 | wxPyTreeCtrl * _arg0; |
1d99702e | 7898 | PyObject * _argo0 = 0; |
efc5f224 | 7899 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7900 | char _ptemp[128]; |
8ab979d7 RD |
7901 | |
7902 | self = self; | |
efc5f224 | 7903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 7904 | return NULL; |
1d99702e RD |
7905 | if (_argo0) { |
7906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7909 | return NULL; |
7910 | } | |
7911 | } | |
cf694132 RD |
7912 | { |
7913 | wxPy_BEGIN_ALLOW_THREADS; | |
7914 | _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0)); | |
7915 | ||
7916 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7917 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7918 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7919 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7920 | return _resultobj; |
7921 | } | |
7922 | ||
eb715945 RD |
7923 | #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0)) |
7924 | static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7925 | PyObject * _resultobj; |
d5c9047a | 7926 | wxTreeItemId * _result; |
f6bcfd97 | 7927 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7928 | wxTreeItemId * _arg1; |
1d99702e RD |
7929 | PyObject * _argo0 = 0; |
7930 | PyObject * _argo1 = 0; | |
efc5f224 | 7931 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7932 | char _ptemp[128]; |
8ab979d7 RD |
7933 | |
7934 | self = self; | |
eb715945 | 7935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7936 | return NULL; |
1d99702e RD |
7937 | if (_argo0) { |
7938 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7939 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7940 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7941 | return NULL; |
7942 | } | |
7943 | } | |
1d99702e RD |
7944 | if (_argo1) { |
7945 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7946 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
eb715945 | 7947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7948 | return NULL; |
7949 | } | |
7950 | } | |
cf694132 RD |
7951 | { |
7952 | wxPy_BEGIN_ALLOW_THREADS; | |
eb715945 | 7953 | _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1)); |
cf694132 RD |
7954 | |
7955 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7956 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7957 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7958 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7959 | return _resultobj; |
7960 | } | |
7961 | ||
f6bcfd97 | 7962 | static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) { |
19a97bd6 | 7963 | wxPyTState* state = wxPyBeginBlockThreads(); |
d426c97e RD |
7964 | PyObject* rval = PyList_New(0); |
7965 | wxArrayTreeItemIds array; | |
7966 | size_t num, x; | |
7967 | num = self->GetSelections(array); | |
7968 | for (x=0; x < num; x++) { | |
c368d904 RD |
7969 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); |
7970 | PyObject* item = wxPyConstructObject((void*)tii, "wxTreeItemId", TRUE); | |
d426c97e RD |
7971 | PyList_Append(rval, item); |
7972 | } | |
19a97bd6 | 7973 | wxPyEndBlockThreads(state); |
d426c97e RD |
7974 | return rval; |
7975 | } | |
7976 | static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7977 | PyObject * _resultobj; | |
7978 | PyObject * _result; | |
f6bcfd97 | 7979 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
7980 | PyObject * _argo0 = 0; |
7981 | char *_kwnames[] = { "self", NULL }; | |
7982 | ||
7983 | self = self; | |
7984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0)) | |
7985 | return NULL; | |
7986 | if (_argo0) { | |
7987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
7990 | return NULL; |
7991 | } | |
7992 | } | |
7993 | { | |
7994 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 7995 | _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0); |
d426c97e RD |
7996 | |
7997 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7998 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
7999 | }{ |
8000 | _resultobj = _result; | |
8001 | } | |
8002 | return _resultobj; | |
8003 | } | |
8004 | ||
bb0054cd | 8005 | #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1)) |
efc5f224 | 8006 | static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
8007 | PyObject * _resultobj; |
8008 | size_t _result; | |
f6bcfd97 | 8009 | wxPyTreeCtrl * _arg0; |
bb0054cd | 8010 | wxTreeItemId * _arg1; |
1d99702e RD |
8011 | bool _arg2 = (bool ) TRUE; |
8012 | PyObject * _argo0 = 0; | |
8013 | PyObject * _argo1 = 0; | |
8014 | int tempbool2 = (int) TRUE; | |
efc5f224 | 8015 | char *_kwnames[] = { "self","item","recursively", NULL }; |
bb0054cd RD |
8016 | |
8017 | self = self; | |
efc5f224 | 8018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2)) |
bb0054cd | 8019 | return NULL; |
1d99702e RD |
8020 | if (_argo0) { |
8021 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8022 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8023 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p."); | |
bb0054cd RD |
8024 | return NULL; |
8025 | } | |
8026 | } | |
1d99702e RD |
8027 | if (_argo1) { |
8028 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8029 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
bb0054cd RD |
8030 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p."); |
8031 | return NULL; | |
8032 | } | |
8033 | } | |
8034 | _arg2 = (bool ) tempbool2; | |
8035 | { | |
8036 | wxPy_BEGIN_ALLOW_THREADS; | |
8037 | _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2); | |
8038 | ||
8039 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8040 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
8041 | } _resultobj = Py_BuildValue("i",_result); |
8042 | return _resultobj; | |
8043 | } | |
8044 | ||
d5c9047a | 8045 | #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1)) |
efc5f224 | 8046 | static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8047 | PyObject * _resultobj; |
d5c9047a | 8048 | wxTreeItemId * _result; |
f6bcfd97 | 8049 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8050 | wxTreeItemId * _arg1; |
8051 | long * _arg2; | |
1d99702e RD |
8052 | PyObject * _argo0 = 0; |
8053 | PyObject * _argo1 = 0; | |
d5c9047a RD |
8054 | long temp; |
8055 | PyObject * _obj2 = 0; | |
efc5f224 | 8056 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 8057 | char _ptemp[128]; |
8ab979d7 RD |
8058 | |
8059 | self = self; | |
efc5f224 | 8060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 8061 | return NULL; |
1d99702e RD |
8062 | if (_argo0) { |
8063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8066 | return NULL; |
8067 | } | |
8068 | } | |
1d99702e RD |
8069 | if (_argo1) { |
8070 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8071 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 8072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8073 | return NULL; |
8074 | } | |
8075 | } | |
d5c9047a RD |
8076 | { |
8077 | temp = (long) PyInt_AsLong(_obj2); | |
8078 | _arg2 = &temp; | |
8079 | } | |
cf694132 RD |
8080 | { |
8081 | wxPy_BEGIN_ALLOW_THREADS; | |
8082 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); | |
8083 | ||
8084 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8085 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8086 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8087 | _resultobj = Py_BuildValue("s",_ptemp); |
8088 | { | |
8089 | PyObject *o; | |
8090 | o = PyInt_FromLong((long) (*_arg2)); | |
8091 | _resultobj = t_output_helper(_resultobj, o); | |
8092 | } | |
8ab979d7 RD |
8093 | return _resultobj; |
8094 | } | |
8095 | ||
d5c9047a | 8096 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) |
efc5f224 | 8097 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8098 | PyObject * _resultobj; |
d5c9047a | 8099 | wxTreeItemId * _result; |
f6bcfd97 | 8100 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8101 | wxTreeItemId * _arg1; |
8102 | long * _arg2; | |
1d99702e RD |
8103 | PyObject * _argo0 = 0; |
8104 | PyObject * _argo1 = 0; | |
d5c9047a | 8105 | long temp; |
8ab979d7 | 8106 | PyObject * _obj2 = 0; |
efc5f224 | 8107 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 8108 | char _ptemp[128]; |
8ab979d7 RD |
8109 | |
8110 | self = self; | |
efc5f224 | 8111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 8112 | return NULL; |
1d99702e RD |
8113 | if (_argo0) { |
8114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8117 | return NULL; |
8118 | } | |
8119 | } | |
1d99702e RD |
8120 | if (_argo1) { |
8121 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8122 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 8123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); |
8ab979d7 | 8124 | return NULL; |
d5c9047a | 8125 | } |
8ab979d7 | 8126 | } |
d5c9047a RD |
8127 | { |
8128 | temp = (long) PyInt_AsLong(_obj2); | |
8129 | _arg2 = &temp; | |
8ab979d7 | 8130 | } |
cf694132 RD |
8131 | { |
8132 | wxPy_BEGIN_ALLOW_THREADS; | |
8133 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); | |
8134 | ||
8135 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8136 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8137 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8138 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 | 8139 | { |
d5c9047a RD |
8140 | PyObject *o; |
8141 | o = PyInt_FromLong((long) (*_arg2)); | |
8142 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
8143 | } |
8144 | return _resultobj; | |
8145 | } | |
8146 | ||
d5c9047a | 8147 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) |
efc5f224 | 8148 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8149 | PyObject * _resultobj; |
d5c9047a | 8150 | wxTreeItemId * _result; |
f6bcfd97 | 8151 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8152 | wxTreeItemId * _arg1; |
1d99702e RD |
8153 | PyObject * _argo0 = 0; |
8154 | PyObject * _argo1 = 0; | |
efc5f224 | 8155 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8156 | char _ptemp[128]; |
8ab979d7 RD |
8157 | |
8158 | self = self; | |
efc5f224 | 8159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8160 | return NULL; |
1d99702e RD |
8161 | if (_argo0) { |
8162 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8163 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8164 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8165 | return NULL; |
8166 | } | |
8167 | } | |
1d99702e RD |
8168 | if (_argo1) { |
8169 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8170 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); |
8172 | return NULL; | |
8173 | } | |
8174 | } | |
cf694132 RD |
8175 | { |
8176 | wxPy_BEGIN_ALLOW_THREADS; | |
8177 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); | |
8178 | ||
8179 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8180 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8181 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8182 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8183 | return _resultobj; |
8184 | } | |
8185 | ||
d5c9047a | 8186 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) |
efc5f224 | 8187 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8188 | PyObject * _resultobj; |
d5c9047a | 8189 | wxTreeItemId * _result; |
f6bcfd97 | 8190 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8191 | wxTreeItemId * _arg1; |
1d99702e RD |
8192 | PyObject * _argo0 = 0; |
8193 | PyObject * _argo1 = 0; | |
efc5f224 | 8194 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8195 | char _ptemp[128]; |
8ab979d7 RD |
8196 | |
8197 | self = self; | |
efc5f224 | 8198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8199 | return NULL; |
1d99702e RD |
8200 | if (_argo0) { |
8201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8204 | return NULL; |
8205 | } | |
8206 | } | |
1d99702e RD |
8207 | if (_argo1) { |
8208 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8209 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); |
8211 | return NULL; | |
8212 | } | |
8213 | } | |
cf694132 RD |
8214 | { |
8215 | wxPy_BEGIN_ALLOW_THREADS; | |
8216 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); | |
8217 | ||
8218 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8219 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8220 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8221 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8222 | return _resultobj; |
8223 | } | |
8224 | ||
d5c9047a | 8225 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) |
efc5f224 | 8226 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8227 | PyObject * _resultobj; |
d5c9047a | 8228 | wxTreeItemId * _result; |
f6bcfd97 | 8229 | wxPyTreeCtrl * _arg0; |
1d99702e | 8230 | PyObject * _argo0 = 0; |
efc5f224 | 8231 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 8232 | char _ptemp[128]; |
8ab979d7 RD |
8233 | |
8234 | self = self; | |
efc5f224 | 8235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) |
8ab979d7 | 8236 | return NULL; |
1d99702e RD |
8237 | if (_argo0) { |
8238 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8239 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8241 | return NULL; |
8242 | } | |
8243 | } | |
cf694132 RD |
8244 | { |
8245 | wxPy_BEGIN_ALLOW_THREADS; | |
8246 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); | |
8247 | ||
8248 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8249 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8250 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8251 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8252 | return _resultobj; |
8253 | } | |
8254 | ||
d5c9047a | 8255 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) |
efc5f224 | 8256 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8257 | PyObject * _resultobj; |
d5c9047a | 8258 | wxTreeItemId * _result; |
f6bcfd97 | 8259 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8260 | wxTreeItemId * _arg1; |
1d99702e RD |
8261 | PyObject * _argo0 = 0; |
8262 | PyObject * _argo1 = 0; | |
efc5f224 | 8263 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8264 | char _ptemp[128]; |
8ab979d7 RD |
8265 | |
8266 | self = self; | |
efc5f224 | 8267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8268 | return NULL; |
1d99702e RD |
8269 | if (_argo0) { |
8270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8273 | return NULL; |
8274 | } | |
8275 | } | |
1d99702e RD |
8276 | if (_argo1) { |
8277 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8278 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); |
8280 | return NULL; | |
8281 | } | |
8282 | } | |
cf694132 RD |
8283 | { |
8284 | wxPy_BEGIN_ALLOW_THREADS; | |
8285 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); | |
8286 | ||
8287 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8288 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8289 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8290 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8291 | return _resultobj; |
8292 | } | |
8293 | ||
d5c9047a | 8294 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) |
efc5f224 | 8295 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8296 | PyObject * _resultobj; |
d5c9047a | 8297 | wxTreeItemId * _result; |
f6bcfd97 | 8298 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8299 | wxTreeItemId * _arg1; |
1d99702e RD |
8300 | PyObject * _argo0 = 0; |
8301 | PyObject * _argo1 = 0; | |
efc5f224 | 8302 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8303 | char _ptemp[128]; |
8ab979d7 RD |
8304 | |
8305 | self = self; | |
efc5f224 | 8306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8307 | return NULL; |
1d99702e RD |
8308 | if (_argo0) { |
8309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8312 | return NULL; |
8313 | } | |
8314 | } | |
1d99702e RD |
8315 | if (_argo1) { |
8316 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8317 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 8318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8319 | return NULL; |
8320 | } | |
8321 | } | |
cf694132 RD |
8322 | { |
8323 | wxPy_BEGIN_ALLOW_THREADS; | |
8324 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); | |
8325 | ||
8326 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8327 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8328 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8329 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8330 | return _resultobj; |
8331 | } | |
8332 | ||
d426c97e RD |
8333 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) |
8334 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8335 | PyObject * _resultobj; | |
8336 | wxTreeItemId * _result; | |
f6bcfd97 | 8337 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8338 | wxTreeItemId * _arg1; |
8339 | PyObject * _argo0 = 0; | |
8340 | PyObject * _argo1 = 0; | |
8341 | char *_kwnames[] = { "self","item", NULL }; | |
8342 | char _ptemp[128]; | |
8343 | ||
8344 | self = self; | |
8345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
8346 | return NULL; | |
8347 | if (_argo0) { | |
8348 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8349 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8351 | return NULL; |
8352 | } | |
8353 | } | |
8354 | if (_argo1) { | |
8355 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8356 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); | |
8358 | return NULL; | |
8359 | } | |
8360 | } | |
8361 | { | |
8362 | wxPy_BEGIN_ALLOW_THREADS; | |
8363 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); | |
8364 | ||
8365 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8366 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8367 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8368 | _resultobj = Py_BuildValue("s",_ptemp); | |
8369 | return _resultobj; | |
8370 | } | |
8371 | ||
d5c9047a | 8372 | #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 8373 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8374 | PyObject * _resultobj; |
d5c9047a | 8375 | wxTreeItemId * _result; |
f6bcfd97 | 8376 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8377 | wxString * _arg1; |
1d99702e RD |
8378 | int _arg2 = (int ) -1; |
8379 | int _arg3 = (int ) -1; | |
8380 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
8381 | PyObject * _argo0 = 0; | |
d5c9047a | 8382 | PyObject * _obj1 = 0; |
1d99702e | 8383 | PyObject * _argo4 = 0; |
efc5f224 | 8384 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; |
d5c9047a | 8385 | char _ptemp[128]; |
8ab979d7 RD |
8386 | |
8387 | self = self; | |
efc5f224 | 8388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) |
8ab979d7 | 8389 | return NULL; |
1d99702e RD |
8390 | if (_argo0) { |
8391 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8392 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8394 | return NULL; |
8395 | } | |
8396 | } | |
d5c9047a | 8397 | { |
185d7c3e RD |
8398 | #if PYTHON_API_VERSION >= 1009 |
8399 | char* tmpPtr; int tmpSize; | |
8400 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 8401 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8402 | return NULL; |
8403 | } | |
8404 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8405 | return NULL; | |
8406 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8407 | #else | |
d5c9047a RD |
8408 | if (!PyString_Check(_obj1)) { |
8409 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8410 | return NULL; | |
8411 | } | |
185d7c3e RD |
8412 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8413 | #endif | |
d5c9047a | 8414 | } |
1d99702e RD |
8415 | if (_argo4) { |
8416 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
8417 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
cf694132 | 8418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
8419 | return NULL; |
8420 | } | |
8421 | } | |
cf694132 RD |
8422 | { |
8423 | wxPy_BEGIN_ALLOW_THREADS; | |
8424 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); | |
8425 | ||
8426 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8427 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8428 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8429 | _resultobj = Py_BuildValue("s",_ptemp); |
8430 | { | |
8431 | if (_obj1) | |
8432 | delete _arg1; | |
8433 | } | |
8ab979d7 RD |
8434 | return _resultobj; |
8435 | } | |
8436 | ||
d5c9047a | 8437 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8438 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8439 | PyObject * _resultobj; |
d5c9047a | 8440 | wxTreeItemId * _result; |
f6bcfd97 | 8441 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8442 | wxTreeItemId * _arg1; |
8443 | wxString * _arg2; | |
1d99702e RD |
8444 | int _arg3 = (int ) -1; |
8445 | int _arg4 = (int ) -1; | |
8446 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8447 | PyObject * _argo0 = 0; | |
8448 | PyObject * _argo1 = 0; | |
d5c9047a | 8449 | PyObject * _obj2 = 0; |
1d99702e | 8450 | PyObject * _argo5 = 0; |
efc5f224 | 8451 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8452 | char _ptemp[128]; |
8ab979d7 RD |
8453 | |
8454 | self = self; | |
efc5f224 | 8455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8456 | return NULL; |
1d99702e RD |
8457 | if (_argo0) { |
8458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8461 | return NULL; |
8462 | } | |
8463 | } | |
1d99702e RD |
8464 | if (_argo1) { |
8465 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8466 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); |
8468 | return NULL; | |
8469 | } | |
8470 | } | |
8471 | { | |
185d7c3e RD |
8472 | #if PYTHON_API_VERSION >= 1009 |
8473 | char* tmpPtr; int tmpSize; | |
8474 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8475 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8476 | return NULL; |
8477 | } | |
8478 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8479 | return NULL; | |
8480 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8481 | #else | |
d5c9047a RD |
8482 | if (!PyString_Check(_obj2)) { |
8483 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8484 | return NULL; | |
8485 | } | |
185d7c3e RD |
8486 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8487 | #endif | |
d5c9047a | 8488 | } |
1d99702e RD |
8489 | if (_argo5) { |
8490 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8491 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8493 | return NULL; |
8494 | } | |
8495 | } | |
cf694132 RD |
8496 | { |
8497 | wxPy_BEGIN_ALLOW_THREADS; | |
8498 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
8499 | ||
8500 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8501 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8502 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8503 | _resultobj = Py_BuildValue("s",_ptemp); |
8504 | { | |
8505 | if (_obj2) | |
8506 | delete _arg2; | |
8507 | } | |
8ab979d7 RD |
8508 | return _resultobj; |
8509 | } | |
8510 | ||
d5c9047a | 8511 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 8512 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8513 | PyObject * _resultobj; |
d5c9047a | 8514 | wxTreeItemId * _result; |
f6bcfd97 | 8515 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8516 | wxTreeItemId * _arg1; |
8517 | wxTreeItemId * _arg2; | |
8518 | wxString * _arg3; | |
1d99702e RD |
8519 | int _arg4 = (int ) -1; |
8520 | int _arg5 = (int ) -1; | |
8521 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
8522 | PyObject * _argo0 = 0; | |
8523 | PyObject * _argo1 = 0; | |
8524 | PyObject * _argo2 = 0; | |
d5c9047a | 8525 | PyObject * _obj3 = 0; |
1d99702e | 8526 | PyObject * _argo6 = 0; |
efc5f224 | 8527 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; |
d5c9047a | 8528 | char _ptemp[128]; |
8ab979d7 RD |
8529 | |
8530 | self = self; | |
efc5f224 | 8531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) |
8ab979d7 | 8532 | return NULL; |
1d99702e RD |
8533 | if (_argo0) { |
8534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8537 | return NULL; |
8538 | } | |
8539 | } | |
1d99702e RD |
8540 | if (_argo1) { |
8541 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8542 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8543 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8544 | return NULL; | |
8545 | } | |
8546 | } | |
1d99702e RD |
8547 | if (_argo2) { |
8548 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8549 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8551 | return NULL; | |
8552 | } | |
8553 | } | |
8554 | { | |
185d7c3e RD |
8555 | #if PYTHON_API_VERSION >= 1009 |
8556 | char* tmpPtr; int tmpSize; | |
8557 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 8558 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8559 | return NULL; |
8560 | } | |
8561 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8562 | return NULL; | |
8563 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8564 | #else | |
d5c9047a RD |
8565 | if (!PyString_Check(_obj3)) { |
8566 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8567 | return NULL; | |
8568 | } | |
185d7c3e RD |
8569 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8570 | #endif | |
d5c9047a | 8571 | } |
1d99702e RD |
8572 | if (_argo6) { |
8573 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8574 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
cf694132 | 8575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8576 | return NULL; |
8577 | } | |
8578 | } | |
cf694132 RD |
8579 | { |
8580 | wxPy_BEGIN_ALLOW_THREADS; | |
8581 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
8582 | ||
8583 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8584 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8585 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8586 | _resultobj = Py_BuildValue("s",_ptemp); |
8587 | { | |
8588 | if (_obj3) | |
8589 | delete _arg3; | |
8590 | } | |
8ab979d7 RD |
8591 | return _resultobj; |
8592 | } | |
8593 | ||
f6bcfd97 BP |
8594 | #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
8595 | static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8596 | PyObject * _resultobj; | |
8597 | wxTreeItemId * _result; | |
8598 | wxPyTreeCtrl * _arg0; | |
8599 | wxTreeItemId * _arg1; | |
8600 | size_t _arg2; | |
8601 | wxString * _arg3; | |
8602 | int _arg4 = (int ) -1; | |
8603 | int _arg5 = (int ) -1; | |
8604 | wxTreeItemData * _arg6 = (wxTreeItemData *) NULL; | |
8605 | PyObject * _argo0 = 0; | |
8606 | PyObject * _argo1 = 0; | |
8607 | PyObject * _obj3 = 0; | |
8608 | PyObject * _argo6 = 0; | |
8609 | char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL }; | |
8610 | char _ptemp[128]; | |
8611 | ||
8612 | self = self; | |
8613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
8614 | return NULL; | |
8615 | if (_argo0) { | |
8616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p."); | |
8619 | return NULL; | |
8620 | } | |
8621 | } | |
8622 | if (_argo1) { | |
8623 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8624 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p."); | |
8626 | return NULL; | |
8627 | } | |
8628 | } | |
8629 | { | |
185d7c3e RD |
8630 | #if PYTHON_API_VERSION >= 1009 |
8631 | char* tmpPtr; int tmpSize; | |
8632 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 8633 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8634 | return NULL; |
8635 | } | |
8636 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8637 | return NULL; | |
8638 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8639 | #else | |
f6bcfd97 BP |
8640 | if (!PyString_Check(_obj3)) { |
8641 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8642 | return NULL; | |
8643 | } | |
185d7c3e RD |
8644 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8645 | #endif | |
f6bcfd97 BP |
8646 | } |
8647 | if (_argo6) { | |
8648 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8649 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxTreeItemData_p")) { | |
8650 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemData_p."); | |
8651 | return NULL; | |
8652 | } | |
8653 | } | |
8654 | { | |
8655 | wxPy_BEGIN_ALLOW_THREADS; | |
8656 | _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
8657 | ||
8658 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8659 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
8660 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8661 | _resultobj = Py_BuildValue("s",_ptemp); | |
8662 | { | |
8663 | if (_obj3) | |
8664 | delete _arg3; | |
8665 | } | |
8666 | return _resultobj; | |
8667 | } | |
8668 | ||
d5c9047a | 8669 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8670 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8671 | PyObject * _resultobj; |
d5c9047a | 8672 | wxTreeItemId * _result; |
f6bcfd97 | 8673 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8674 | wxTreeItemId * _arg1; |
8ab979d7 | 8675 | wxString * _arg2; |
1d99702e RD |
8676 | int _arg3 = (int ) -1; |
8677 | int _arg4 = (int ) -1; | |
8678 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8679 | PyObject * _argo0 = 0; | |
8680 | PyObject * _argo1 = 0; | |
8ab979d7 | 8681 | PyObject * _obj2 = 0; |
1d99702e | 8682 | PyObject * _argo5 = 0; |
efc5f224 | 8683 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8684 | char _ptemp[128]; |
8ab979d7 RD |
8685 | |
8686 | self = self; | |
efc5f224 | 8687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8688 | return NULL; |
1d99702e RD |
8689 | if (_argo0) { |
8690 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8693 | return NULL; |
8694 | } | |
8695 | } | |
1d99702e RD |
8696 | if (_argo1) { |
8697 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8698 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 8699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8700 | return NULL; |
8701 | } | |
8702 | } | |
8703 | { | |
185d7c3e RD |
8704 | #if PYTHON_API_VERSION >= 1009 |
8705 | char* tmpPtr; int tmpSize; | |
8706 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 8707 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
8708 | return NULL; |
8709 | } | |
8710 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8711 | return NULL; | |
8712 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8713 | #else | |
8ab979d7 RD |
8714 | if (!PyString_Check(_obj2)) { |
8715 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8716 | return NULL; | |
8717 | } | |
185d7c3e RD |
8718 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8719 | #endif | |
8ab979d7 | 8720 | } |
1d99702e RD |
8721 | if (_argo5) { |
8722 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8723 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8725 | return NULL; |
8726 | } | |
8727 | } | |
cf694132 RD |
8728 | { |
8729 | wxPy_BEGIN_ALLOW_THREADS; | |
8730 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
8731 | ||
8732 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8733 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8734 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8735 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8736 | { |
8737 | if (_obj2) | |
8738 | delete _arg2; | |
8739 | } | |
8740 | return _resultobj; | |
8741 | } | |
8742 | ||
d5c9047a | 8743 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
efc5f224 | 8744 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8745 | PyObject * _resultobj; |
f6bcfd97 | 8746 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8747 | wxTreeItemId * _arg1; |
1d99702e RD |
8748 | PyObject * _argo0 = 0; |
8749 | PyObject * _argo1 = 0; | |
efc5f224 | 8750 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
8751 | |
8752 | self = self; | |
efc5f224 | 8753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8754 | return NULL; |
1d99702e RD |
8755 | if (_argo0) { |
8756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8759 | return NULL; |
8760 | } | |
8761 | } | |
1d99702e RD |
8762 | if (_argo1) { |
8763 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8764 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); |
8766 | return NULL; | |
8767 | } | |
8768 | } | |
cf694132 RD |
8769 | { |
8770 | wxPy_BEGIN_ALLOW_THREADS; | |
8771 | wxTreeCtrl_Delete(_arg0,*_arg1); | |
8772 | ||
8773 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8774 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8775 | } Py_INCREF(Py_None); |
d5c9047a RD |
8776 | _resultobj = Py_None; |
8777 | return _resultobj; | |
8778 | } | |
8779 | ||
08127323 | 8780 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) |
efc5f224 | 8781 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 8782 | PyObject * _resultobj; |
f6bcfd97 | 8783 | wxPyTreeCtrl * _arg0; |
08127323 | 8784 | wxTreeItemId * _arg1; |
1d99702e RD |
8785 | PyObject * _argo0 = 0; |
8786 | PyObject * _argo1 = 0; | |
efc5f224 | 8787 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
8788 | |
8789 | self = self; | |
efc5f224 | 8790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) |
08127323 | 8791 | return NULL; |
1d99702e RD |
8792 | if (_argo0) { |
8793 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8794 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
8796 | return NULL; |
8797 | } | |
8798 | } | |
1d99702e RD |
8799 | if (_argo1) { |
8800 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8801 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
08127323 RD |
8802 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); |
8803 | return NULL; | |
8804 | } | |
8805 | } | |
cf694132 RD |
8806 | { |
8807 | wxPy_BEGIN_ALLOW_THREADS; | |
8808 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); | |
8809 | ||
8810 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8811 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8812 | } Py_INCREF(Py_None); |
08127323 RD |
8813 | _resultobj = Py_None; |
8814 | return _resultobj; | |
8815 | } | |
8816 | ||
d5c9047a | 8817 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) |
efc5f224 | 8818 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8819 | PyObject * _resultobj; |
f6bcfd97 | 8820 | wxPyTreeCtrl * _arg0; |
1d99702e | 8821 | PyObject * _argo0 = 0; |
efc5f224 | 8822 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8823 | |
8824 | self = self; | |
efc5f224 | 8825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) |
d5c9047a | 8826 | return NULL; |
1d99702e RD |
8827 | if (_argo0) { |
8828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8831 | return NULL; |
8832 | } | |
8833 | } | |
cf694132 RD |
8834 | { |
8835 | wxPy_BEGIN_ALLOW_THREADS; | |
8836 | wxTreeCtrl_DeleteAllItems(_arg0); | |
8837 | ||
8838 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8839 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8840 | } Py_INCREF(Py_None); |
d5c9047a RD |
8841 | _resultobj = Py_None; |
8842 | return _resultobj; | |
8843 | } | |
8844 | ||
8845 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
efc5f224 | 8846 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8847 | PyObject * _resultobj; |
f6bcfd97 | 8848 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8849 | wxTreeItemId * _arg1; |
1d99702e RD |
8850 | PyObject * _argo0 = 0; |
8851 | PyObject * _argo1 = 0; | |
efc5f224 | 8852 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8853 | |
8854 | self = self; | |
efc5f224 | 8855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8856 | return NULL; |
1d99702e RD |
8857 | if (_argo0) { |
8858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8861 | return NULL; |
8862 | } | |
8863 | } | |
1d99702e RD |
8864 | if (_argo1) { |
8865 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8866 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); |
8868 | return NULL; | |
8869 | } | |
8870 | } | |
cf694132 RD |
8871 | { |
8872 | wxPy_BEGIN_ALLOW_THREADS; | |
8873 | wxTreeCtrl_Expand(_arg0,*_arg1); | |
8874 | ||
8875 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8876 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8877 | } Py_INCREF(Py_None); |
d5c9047a RD |
8878 | _resultobj = Py_None; |
8879 | return _resultobj; | |
8880 | } | |
8881 | ||
8882 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
efc5f224 | 8883 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8884 | PyObject * _resultobj; |
f6bcfd97 | 8885 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8886 | wxTreeItemId * _arg1; |
1d99702e RD |
8887 | PyObject * _argo0 = 0; |
8888 | PyObject * _argo1 = 0; | |
efc5f224 | 8889 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8890 | |
8891 | self = self; | |
efc5f224 | 8892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8893 | return NULL; |
1d99702e RD |
8894 | if (_argo0) { |
8895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8898 | return NULL; |
8899 | } | |
8900 | } | |
1d99702e RD |
8901 | if (_argo1) { |
8902 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8903 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p."); |
8905 | return NULL; | |
8906 | } | |
8907 | } | |
cf694132 RD |
8908 | { |
8909 | wxPy_BEGIN_ALLOW_THREADS; | |
8910 | wxTreeCtrl_Collapse(_arg0,*_arg1); | |
8911 | ||
8912 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8913 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8914 | } Py_INCREF(Py_None); |
d5c9047a RD |
8915 | _resultobj = Py_None; |
8916 | return _resultobj; | |
8917 | } | |
8918 | ||
8919 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
efc5f224 | 8920 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8921 | PyObject * _resultobj; |
f6bcfd97 | 8922 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8923 | wxTreeItemId * _arg1; |
1d99702e RD |
8924 | PyObject * _argo0 = 0; |
8925 | PyObject * _argo1 = 0; | |
efc5f224 | 8926 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8927 | |
8928 | self = self; | |
efc5f224 | 8929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8930 | return NULL; |
1d99702e RD |
8931 | if (_argo0) { |
8932 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8933 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8935 | return NULL; |
8936 | } | |
8937 | } | |
1d99702e RD |
8938 | if (_argo1) { |
8939 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8940 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); |
8942 | return NULL; | |
8943 | } | |
8944 | } | |
cf694132 RD |
8945 | { |
8946 | wxPy_BEGIN_ALLOW_THREADS; | |
8947 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); | |
8948 | ||
8949 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8950 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8951 | } Py_INCREF(Py_None); |
d5c9047a RD |
8952 | _resultobj = Py_None; |
8953 | return _resultobj; | |
8954 | } | |
8955 | ||
8956 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
efc5f224 | 8957 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8958 | PyObject * _resultobj; |
f6bcfd97 | 8959 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8960 | wxTreeItemId * _arg1; |
1d99702e RD |
8961 | PyObject * _argo0 = 0; |
8962 | PyObject * _argo1 = 0; | |
efc5f224 | 8963 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8964 | |
8965 | self = self; | |
efc5f224 | 8966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8967 | return NULL; |
1d99702e RD |
8968 | if (_argo0) { |
8969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8972 | return NULL; |
8973 | } | |
8974 | } | |
1d99702e RD |
8975 | if (_argo1) { |
8976 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8977 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); |
8979 | return NULL; | |
8980 | } | |
8981 | } | |
cf694132 RD |
8982 | { |
8983 | wxPy_BEGIN_ALLOW_THREADS; | |
8984 | wxTreeCtrl_Toggle(_arg0,*_arg1); | |
8985 | ||
8986 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8987 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8988 | } Py_INCREF(Py_None); |
d5c9047a RD |
8989 | _resultobj = Py_None; |
8990 | return _resultobj; | |
8991 | } | |
8992 | ||
8993 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
efc5f224 | 8994 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8995 | PyObject * _resultobj; |
f6bcfd97 | 8996 | wxPyTreeCtrl * _arg0; |
1d99702e | 8997 | PyObject * _argo0 = 0; |
efc5f224 | 8998 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8999 | |
9000 | self = self; | |
efc5f224 | 9001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) |
d5c9047a | 9002 | return NULL; |
1d99702e RD |
9003 | if (_argo0) { |
9004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
9007 | return NULL; |
9008 | } | |
9009 | } | |
cf694132 RD |
9010 | { |
9011 | wxPy_BEGIN_ALLOW_THREADS; | |
9012 | wxTreeCtrl_Unselect(_arg0); | |
9013 | ||
9014 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9015 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9016 | } Py_INCREF(Py_None); |
d5c9047a RD |
9017 | _resultobj = Py_None; |
9018 | return _resultobj; | |
9019 | } | |
9020 | ||
8bf5d46e | 9021 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) |
efc5f224 | 9022 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e | 9023 | PyObject * _resultobj; |
f6bcfd97 | 9024 | wxPyTreeCtrl * _arg0; |
1d99702e | 9025 | PyObject * _argo0 = 0; |
efc5f224 | 9026 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
9027 | |
9028 | self = self; | |
efc5f224 | 9029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) |
8bf5d46e | 9030 | return NULL; |
1d99702e RD |
9031 | if (_argo0) { |
9032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p."); | |
8bf5d46e RD |
9035 | return NULL; |
9036 | } | |
9037 | } | |
9038 | { | |
9039 | wxPy_BEGIN_ALLOW_THREADS; | |
9040 | wxTreeCtrl_UnselectAll(_arg0); | |
9041 | ||
9042 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9043 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
9044 | } Py_INCREF(Py_None); |
9045 | _resultobj = Py_None; | |
9046 | return _resultobj; | |
9047 | } | |
9048 | ||
d5c9047a | 9049 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) |
efc5f224 | 9050 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 9051 | PyObject * _resultobj; |
f6bcfd97 | 9052 | wxPyTreeCtrl * _arg0; |
d5c9047a | 9053 | wxTreeItemId * _arg1; |
1d99702e RD |
9054 | PyObject * _argo0 = 0; |
9055 | PyObject * _argo1 = 0; | |
efc5f224 | 9056 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
9057 | |
9058 | self = self; | |
efc5f224 | 9059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 9060 | return NULL; |
1d99702e RD |
9061 | if (_argo0) { |
9062 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9063 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
9065 | return NULL; |
9066 | } | |
9067 | } | |
1d99702e RD |
9068 | if (_argo1) { |
9069 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9070 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
9071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); |
9072 | return NULL; | |
9073 | } | |
9074 | } | |
cf694132 RD |
9075 | { |
9076 | wxPy_BEGIN_ALLOW_THREADS; | |
9077 | wxTreeCtrl_SelectItem(_arg0,*_arg1); | |
9078 | ||
9079 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9080 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9081 | } Py_INCREF(Py_None); |
d5c9047a RD |
9082 | _resultobj = Py_None; |
9083 | return _resultobj; | |
9084 | } | |
9085 | ||
9086 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
efc5f224 | 9087 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 9088 | PyObject * _resultobj; |
f6bcfd97 | 9089 | wxPyTreeCtrl * _arg0; |
d5c9047a | 9090 | wxTreeItemId * _arg1; |
1d99702e RD |
9091 | PyObject * _argo0 = 0; |
9092 | PyObject * _argo1 = 0; | |
efc5f224 | 9093 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
9094 | |
9095 | self = self; | |
efc5f224 | 9096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 9097 | return NULL; |
1d99702e RD |
9098 | if (_argo0) { |
9099 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9100 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
9102 | return NULL; |
9103 | } | |
9104 | } | |
1d99702e RD |
9105 | if (_argo1) { |
9106 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9107 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
9108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); |
9109 | return NULL; | |
9110 | } | |
9111 | } | |
cf694132 RD |
9112 | { |
9113 | wxPy_BEGIN_ALLOW_THREADS; | |
9114 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); | |
9115 | ||
9116 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9117 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9118 | } Py_INCREF(Py_None); |
d5c9047a RD |
9119 | _resultobj = Py_None; |
9120 | return _resultobj; | |
9121 | } | |
9122 | ||
9123 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
efc5f224 | 9124 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 9125 | PyObject * _resultobj; |
f6bcfd97 | 9126 | wxPyTreeCtrl * _arg0; |
d5c9047a | 9127 | wxTreeItemId * _arg1; |
1d99702e RD |
9128 | PyObject * _argo0 = 0; |
9129 | PyObject * _argo1 = 0; | |
efc5f224 | 9130 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
9131 | |
9132 | self = self; | |
efc5f224 | 9133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 9134 | return NULL; |
1d99702e RD |
9135 | if (_argo0) { |
9136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
9139 | return NULL; |
9140 | } | |
9141 | } | |
1d99702e RD |
9142 | if (_argo1) { |
9143 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9144 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
9145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); |
9146 | return NULL; | |
9147 | } | |
9148 | } | |
cf694132 RD |
9149 | { |
9150 | wxPy_BEGIN_ALLOW_THREADS; | |
9151 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); | |
9152 | ||
9153 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9154 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9155 | } Py_INCREF(Py_None); |
d5c9047a RD |
9156 | _resultobj = Py_None; |
9157 | return _resultobj; | |
9158 | } | |
9159 | ||
9160 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
efc5f224 | 9161 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
9162 | PyObject * _resultobj; |
9163 | wxTextCtrl * _result; | |
f6bcfd97 | 9164 | wxPyTreeCtrl * _arg0; |
d5c9047a | 9165 | wxTreeItemId * _arg1; |
1d99702e RD |
9166 | PyObject * _argo0 = 0; |
9167 | PyObject * _argo1 = 0; | |
efc5f224 | 9168 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
9169 | |
9170 | self = self; | |
efc5f224 | 9171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 9172 | return NULL; |
1d99702e RD |
9173 | if (_argo0) { |
9174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
9177 | return NULL; |
9178 | } | |
9179 | } | |
1d99702e RD |
9180 | if (_argo1) { |
9181 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9182 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
9183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); |
9184 | return NULL; | |
9185 | } | |
9186 | } | |
cf694132 RD |
9187 | { |
9188 | wxPy_BEGIN_ALLOW_THREADS; | |
9189 | _result = (wxTextCtrl *)wxTreeCtrl_EditLabel(_arg0,*_arg1); | |
9190 | ||
9191 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9192 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9193 | }{ _resultobj = wxPyMake_wxObject(_result); } |
d5c9047a RD |
9194 | return _resultobj; |
9195 | } | |
9196 | ||
9197 | #define wxTreeCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) | |
efc5f224 | 9198 | static PyObject *_wrap_wxTreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
9199 | PyObject * _resultobj; |
9200 | wxTextCtrl * _result; | |
f6bcfd97 | 9201 | wxPyTreeCtrl * _arg0; |
1d99702e | 9202 | PyObject * _argo0 = 0; |
efc5f224 | 9203 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
9204 | |
9205 | self = self; | |
efc5f224 | 9206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetEditControl",_kwnames,&_argo0)) |
d5c9047a | 9207 | return NULL; |
1d99702e RD |
9208 | if (_argo0) { |
9209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetEditControl. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
9212 | return NULL; |
9213 | } | |
9214 | } | |
cf694132 RD |
9215 | { |
9216 | wxPy_BEGIN_ALLOW_THREADS; | |
9217 | _result = (wxTextCtrl *)wxTreeCtrl_GetEditControl(_arg0); | |
9218 | ||
9219 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9220 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9221 | }{ _resultobj = wxPyMake_wxObject(_result); } |
d5c9047a RD |
9222 | return _resultobj; |
9223 | } | |
9224 | ||
9225 | #define wxTreeCtrl_EndEditLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->EndEditLabel(_swigarg0,_swigarg1)) | |
efc5f224 | 9226 | static PyObject *_wrap_wxTreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 9227 | PyObject * _resultobj; |
f6bcfd97 | 9228 | wxPyTreeCtrl * _arg0; |
d5c9047a | 9229 | wxTreeItemId * _arg1; |
b1462dfa | 9230 | int _arg2 = (int ) FALSE; |
1d99702e RD |
9231 | PyObject * _argo0 = 0; |
9232 | PyObject * _argo1 = 0; | |
efc5f224 | 9233 | char *_kwnames[] = { "self","item","discardChanges", NULL }; |
d5c9047a RD |
9234 | |
9235 | self = self; | |
b1462dfa | 9236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_EndEditLabel",_kwnames,&_argo0,&_argo1,&_arg2)) |
d5c9047a | 9237 | return NULL; |
1d99702e RD |
9238 | if (_argo0) { |
9239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EndEditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
9242 | return NULL; |
9243 | } | |
9244 | } | |
1d99702e RD |
9245 | if (_argo1) { |
9246 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9247 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
9248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EndEditLabel. Expected _wxTreeItemId_p."); |
9249 | return NULL; | |
9250 | } | |
9251 | } | |
cf694132 RD |
9252 | { |
9253 | wxPy_BEGIN_ALLOW_THREADS; | |
9254 | wxTreeCtrl_EndEditLabel(_arg0,*_arg1,_arg2); | |
9255 | ||
9256 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9257 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9258 | } Py_INCREF(Py_None); |
d5c9047a | 9259 | _resultobj = Py_None; |
8ab979d7 RD |
9260 | return _resultobj; |
9261 | } | |
9262 | ||
d426c97e RD |
9263 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) |
9264 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9265 | PyObject * _resultobj; | |
f6bcfd97 | 9266 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
9267 | wxTreeItemId * _arg1; |
9268 | PyObject * _argo0 = 0; | |
9269 | PyObject * _argo1 = 0; | |
9270 | char *_kwnames[] = { "self","item", NULL }; | |
9271 | ||
9272 | self = self; | |
9273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
9274 | return NULL; | |
9275 | if (_argo0) { | |
9276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
9279 | return NULL; |
9280 | } | |
9281 | } | |
9282 | if (_argo1) { | |
9283 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9284 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); | |
9286 | return NULL; | |
9287 | } | |
9288 | } | |
9289 | { | |
9290 | wxPy_BEGIN_ALLOW_THREADS; | |
9291 | wxTreeCtrl_SortChildren(_arg0,*_arg1); | |
9292 | ||
9293 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9294 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
9295 | } Py_INCREF(Py_None); |
9296 | _resultobj = Py_None; | |
9297 | return _resultobj; | |
9298 | } | |
9299 | ||
b8b8dda7 | 9300 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) |
efc5f224 | 9301 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 | 9302 | PyObject * _resultobj; |
f6bcfd97 | 9303 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9304 | wxTreeItemId * _arg1; |
b1462dfa | 9305 | int _arg2 = (int ) TRUE; |
1d99702e RD |
9306 | PyObject * _argo0 = 0; |
9307 | PyObject * _argo1 = 0; | |
efc5f224 | 9308 | char *_kwnames[] = { "self","item","bold", NULL }; |
b8b8dda7 RD |
9309 | |
9310 | self = self; | |
b1462dfa | 9311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) |
b8b8dda7 | 9312 | return NULL; |
1d99702e RD |
9313 | if (_argo0) { |
9314 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9315 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9317 | return NULL; |
9318 | } | |
9319 | } | |
1d99702e RD |
9320 | if (_argo1) { |
9321 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9322 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
9323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); |
9324 | return NULL; | |
9325 | } | |
9326 | } | |
cf694132 RD |
9327 | { |
9328 | wxPy_BEGIN_ALLOW_THREADS; | |
9329 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); | |
9330 | ||
9331 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9332 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9333 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
9334 | _resultobj = Py_None; |
9335 | return _resultobj; | |
9336 | } | |
9337 | ||
9338 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
efc5f224 | 9339 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
9340 | PyObject * _resultobj; |
9341 | bool _result; | |
f6bcfd97 | 9342 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9343 | wxTreeItemId * _arg1; |
1d99702e RD |
9344 | PyObject * _argo0 = 0; |
9345 | PyObject * _argo1 = 0; | |
efc5f224 | 9346 | char *_kwnames[] = { "self","item", NULL }; |
b8b8dda7 RD |
9347 | |
9348 | self = self; | |
efc5f224 | 9349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 9350 | return NULL; |
1d99702e RD |
9351 | if (_argo0) { |
9352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9355 | return NULL; |
9356 | } | |
9357 | } | |
1d99702e RD |
9358 | if (_argo1) { |
9359 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9360 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
9361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); |
9362 | return NULL; | |
9363 | } | |
9364 | } | |
cf694132 RD |
9365 | { |
9366 | wxPy_BEGIN_ALLOW_THREADS; | |
9367 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); | |
9368 | ||
9369 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9370 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9371 | } _resultobj = Py_BuildValue("i",_result); |
b8b8dda7 RD |
9372 | return _resultobj; |
9373 | } | |
9374 | ||
164b735b | 9375 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
efc5f224 | 9376 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
9377 | PyObject * _resultobj; |
9378 | wxTreeItemId * _result; | |
f6bcfd97 | 9379 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9380 | wxPoint * _arg1; |
164b735b RD |
9381 | int * _arg2; |
9382 | int temp; | |
1d99702e | 9383 | PyObject * _argo0 = 0; |
164b735b | 9384 | wxPoint temp0; |
2f90df85 | 9385 | PyObject * _obj1 = 0; |
efc5f224 | 9386 | char *_kwnames[] = { "self","point", NULL }; |
b8b8dda7 RD |
9387 | char _ptemp[128]; |
9388 | ||
9389 | self = self; | |
164b735b RD |
9390 | { |
9391 | _arg2 = &temp; | |
9392 | } | |
2f90df85 | 9393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 9394 | return NULL; |
1d99702e RD |
9395 | if (_argo0) { |
9396 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9397 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9399 | return NULL; |
9400 | } | |
9401 | } | |
2f90df85 | 9402 | { |
164b735b | 9403 | _arg1 = &temp0; |
2f90df85 | 9404 | if (! wxPoint_helper(_obj1, &_arg1)) |
b8b8dda7 | 9405 | return NULL; |
2f90df85 | 9406 | } |
cf694132 RD |
9407 | { |
9408 | wxPy_BEGIN_ALLOW_THREADS; | |
164b735b | 9409 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); |
cf694132 RD |
9410 | |
9411 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9412 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9413 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
b8b8dda7 | 9414 | _resultobj = Py_BuildValue("s",_ptemp); |
164b735b RD |
9415 | { |
9416 | PyObject *o; | |
9417 | o = PyInt_FromLong((long) (*_arg2)); | |
9418 | _resultobj = t_output_helper(_resultobj, o); | |
9419 | } | |
b8b8dda7 RD |
9420 | return _resultobj; |
9421 | } | |
9422 | ||
b7e72427 RD |
9423 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
9424 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9425 | PyObject * _resultobj; | |
f6bcfd97 | 9426 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9427 | wxTreeItemId * _arg1; |
9428 | wxColour * _arg2; | |
9429 | PyObject * _argo0 = 0; | |
9430 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9431 | wxColour temp; |
9432 | PyObject * _obj2 = 0; | |
b7e72427 RD |
9433 | char *_kwnames[] = { "self","item","col", NULL }; |
9434 | ||
9435 | self = self; | |
f6bcfd97 | 9436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9437 | return NULL; |
9438 | if (_argo0) { | |
9439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9442 | return NULL; |
9443 | } | |
9444 | } | |
9445 | if (_argo1) { | |
9446 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9447 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); | |
9449 | return NULL; | |
9450 | } | |
9451 | } | |
f6bcfd97 BP |
9452 | { |
9453 | _arg2 = &temp; | |
9454 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9455 | return NULL; |
f6bcfd97 | 9456 | } |
b7e72427 RD |
9457 | { |
9458 | wxPy_BEGIN_ALLOW_THREADS; | |
9459 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); | |
9460 | ||
9461 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9462 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9463 | } Py_INCREF(Py_None); |
9464 | _resultobj = Py_None; | |
9465 | return _resultobj; | |
9466 | } | |
9467 | ||
9468 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
9469 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9470 | PyObject * _resultobj; | |
f6bcfd97 | 9471 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9472 | wxTreeItemId * _arg1; |
9473 | wxColour * _arg2; | |
9474 | PyObject * _argo0 = 0; | |
9475 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9476 | wxColour temp; |
9477 | PyObject * _obj2 = 0; | |
b7e72427 RD |
9478 | char *_kwnames[] = { "self","item","col", NULL }; |
9479 | ||
9480 | self = self; | |
f6bcfd97 | 9481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9482 | return NULL; |
9483 | if (_argo0) { | |
9484 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9485 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9486 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9487 | return NULL; |
9488 | } | |
9489 | } | |
9490 | if (_argo1) { | |
9491 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9492 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
9494 | return NULL; | |
9495 | } | |
9496 | } | |
f6bcfd97 BP |
9497 | { |
9498 | _arg2 = &temp; | |
9499 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9500 | return NULL; |
f6bcfd97 | 9501 | } |
b7e72427 RD |
9502 | { |
9503 | wxPy_BEGIN_ALLOW_THREADS; | |
9504 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); | |
9505 | ||
9506 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9507 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9508 | } Py_INCREF(Py_None); |
9509 | _resultobj = Py_None; | |
9510 | return _resultobj; | |
9511 | } | |
9512 | ||
9513 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
9514 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9515 | PyObject * _resultobj; | |
f6bcfd97 | 9516 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9517 | wxTreeItemId * _arg1; |
9518 | wxFont * _arg2; | |
9519 | PyObject * _argo0 = 0; | |
9520 | PyObject * _argo1 = 0; | |
9521 | PyObject * _argo2 = 0; | |
9522 | char *_kwnames[] = { "self","item","font", NULL }; | |
9523 | ||
9524 | self = self; | |
9525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
9526 | return NULL; | |
9527 | if (_argo0) { | |
9528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9531 | return NULL; |
9532 | } | |
9533 | } | |
9534 | if (_argo1) { | |
9535 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9536 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); | |
9538 | return NULL; | |
9539 | } | |
9540 | } | |
9541 | if (_argo2) { | |
9542 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9543 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
9544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); | |
9545 | return NULL; | |
9546 | } | |
9547 | } | |
9548 | { | |
9549 | wxPy_BEGIN_ALLOW_THREADS; | |
9550 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); | |
9551 | ||
9552 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9553 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9554 | } Py_INCREF(Py_None); |
9555 | _resultobj = Py_None; | |
9556 | return _resultobj; | |
9557 | } | |
9558 | ||
b1462dfa RD |
9559 | #define wxTreeCtrl_SetItemDropHighlight(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemDropHighlight(_swigarg0,_swigarg1)) |
9560 | static PyObject *_wrap_wxTreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9561 | PyObject * _resultobj; | |
f6bcfd97 | 9562 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
9563 | wxTreeItemId * _arg1; |
9564 | int _arg2 = (int ) TRUE; | |
9565 | PyObject * _argo0 = 0; | |
9566 | PyObject * _argo1 = 0; | |
9567 | char *_kwnames[] = { "self","item","highlight", NULL }; | |
9568 | ||
9569 | self = self; | |
9570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemDropHighlight",_kwnames,&_argo0,&_argo1,&_arg2)) | |
9571 | return NULL; | |
9572 | if (_argo0) { | |
9573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemDropHighlight. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
9576 | return NULL; |
9577 | } | |
9578 | } | |
9579 | if (_argo1) { | |
9580 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9581 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemDropHighlight. Expected _wxTreeItemId_p."); | |
9583 | return NULL; | |
9584 | } | |
9585 | } | |
9586 | { | |
9587 | wxPy_BEGIN_ALLOW_THREADS; | |
9588 | wxTreeCtrl_SetItemDropHighlight(_arg0,*_arg1,_arg2); | |
9589 | ||
9590 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9591 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9592 | } Py_INCREF(Py_None); |
9593 | _resultobj = Py_None; | |
9594 | return _resultobj; | |
9595 | } | |
9596 | ||
f6bcfd97 | 9597 | static PyObject * wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,const wxTreeItemId & item,int textOnly) { |
d426c97e | 9598 | wxRect rect; |
164b735b | 9599 | if (self->GetBoundingRect(item, rect, textOnly)) { |
19a97bd6 | 9600 | wxPyTState* state = wxPyBeginBlockThreads(); |
164b735b RD |
9601 | wxRect* r = new wxRect(rect); |
9602 | PyObject* val = wxPyConstructObject((void*)r, "wxRect"); | |
19a97bd6 | 9603 | wxPyEndBlockThreads(state); |
164b735b RD |
9604 | return val; |
9605 | } | |
d426c97e RD |
9606 | else { |
9607 | Py_INCREF(Py_None); | |
9608 | return Py_None; | |
9609 | } | |
9610 | } | |
9611 | static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9612 | PyObject * _resultobj; | |
9613 | PyObject * _result; | |
f6bcfd97 | 9614 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
9615 | wxTreeItemId * _arg1; |
9616 | int _arg2 = (int ) FALSE; | |
9617 | PyObject * _argo0 = 0; | |
9618 | PyObject * _argo1 = 0; | |
9619 | char *_kwnames[] = { "self","item","textOnly", NULL }; | |
9620 | ||
9621 | self = self; | |
9622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&_arg2)) | |
9623 | return NULL; | |
9624 | if (_argo0) { | |
9625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetBoundingRect. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
9628 | return NULL; |
9629 | } | |
9630 | } | |
9631 | if (_argo1) { | |
9632 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9633 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeItemId_p."); | |
9635 | return NULL; | |
9636 | } | |
9637 | } | |
9638 | { | |
9639 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 9640 | _result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(_arg0,*_arg1,_arg2); |
d426c97e RD |
9641 | |
9642 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 9643 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
9644 | }{ |
9645 | _resultobj = _result; | |
9646 | } | |
9647 | return _resultobj; | |
9648 | } | |
9649 | ||
8ab979d7 | 9650 | static PyMethodDef controls2cMethods[] = { |
d426c97e | 9651 | { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9652 | { "wxTreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_wxTreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 RD |
9653 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, |
9654 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9655 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9656 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
9657 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
9658 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 9659 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9660 | { "wxTreeCtrl_EndEditLabel", (PyCFunction) _wrap_wxTreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, |
9661 | { "wxTreeCtrl_GetEditControl", (PyCFunction) _wrap_wxTreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
9662 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
9663 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
9664 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
9665 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
9666 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
9667 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
9668 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
9669 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
9670 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
9671 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
9672 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
9673 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
9674 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
9675 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 9676 | { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9677 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, |
9678 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
9679 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 9680 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9681 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, |
9682 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
9683 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
9684 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
9685 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
9686 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
9687 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
9688 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 9689 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 9690 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9691 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
9692 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
9693 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
9694 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
9695 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
9696 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
9697 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, | |
9698 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
9699 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
9700 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
9701 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
9702 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
9703 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
9704 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
9705 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
9706 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
9707 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
9708 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, |
9709 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
00b6c4e3 RD |
9710 | { "wxTreeCtrl_AssignStateImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, |
9711 | { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9712 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, |
9713 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
9714 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
9715 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
9716 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
9717 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
9718 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 9719 | { "wxTreeCtrl__setSelf", (PyCFunction) _wrap_wxTreeCtrl__setSelf, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
9720 | { "wxTreeCtrl_Create", (PyCFunction) _wrap_wxTreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
9721 | { "new_wxPreTreeCtrl", (PyCFunction) _wrap_new_wxPreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9722 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, |
9723 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9724 | { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
9725 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
9726 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
9727 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
00b6c4e3 | 9728 | { "new_wxTreeEvent", (PyCFunction) _wrap_new_wxTreeEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9729 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, |
9730 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
9731 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
9732 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
9733 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 9734 | { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9735 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, |
9736 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
9737 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
00b6c4e3 RD |
9738 | { "wxTreeItemAttr_GetFont", (PyCFunction) _wrap_wxTreeItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, |
9739 | { "wxTreeItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9740 | { "wxTreeItemAttr_GetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9741 | { "wxTreeItemAttr_HasFont", (PyCFunction) _wrap_wxTreeItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
9742 | { "wxTreeItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9743 | { "wxTreeItemAttr_HasTextColour", (PyCFunction) _wrap_wxTreeItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9744 | { "wxTreeItemAttr_SetFont", (PyCFunction) _wrap_wxTreeItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
9745 | { "wxTreeItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9746 | { "wxTreeItemAttr_SetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9747 | { "new_wxTreeItemAttr", (PyCFunction) _wrap_new_wxTreeItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
6d19860f RD |
9748 | { "wxListView_ClearColumnImage", (PyCFunction) _wrap_wxListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, |
9749 | { "wxListView_SetColumnImage", (PyCFunction) _wrap_wxListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
9750 | { "wxListView_IsSelected", (PyCFunction) _wrap_wxListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
9751 | { "wxListView_GetFirstSelected", (PyCFunction) _wrap_wxListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
9752 | { "wxListView_GetNextSelected", (PyCFunction) _wrap_wxListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
9753 | { "wxListView_GetFocusedItem", (PyCFunction) _wrap_wxListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
9754 | { "wxListView_Focus", (PyCFunction) _wrap_wxListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
9755 | { "wxListView_Select", (PyCFunction) _wrap_wxListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
9756 | { "wxListView_Create", (PyCFunction) _wrap_wxListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
9757 | { "new_wxPreListView", (PyCFunction) _wrap_new_wxPreListView, METH_VARARGS | METH_KEYWORDS }, | |
9758 | { "new_wxListView", (PyCFunction) _wrap_new_wxListView, METH_VARARGS | METH_KEYWORDS }, | |
dcd38683 | 9759 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9760 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, |
c7e7022c RD |
9761 | { "wxListCtrl_SetItemCount", (PyCFunction) _wrap_wxListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, |
9762 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
9763 | { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9764 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, |
9765 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
9766 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
9767 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9768 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9769 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, |
9770 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
9771 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
9772 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9773 | { "wxListCtrl_EndEditLabel", (PyCFunction) _wrap_wxListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, |
9774 | { "wxListCtrl_EditLabel", (PyCFunction) _wrap_wxListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
9775 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
9776 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
9777 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
9778 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
9779 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
9780 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
c7e7022c RD |
9781 | { "wxListCtrl_RefreshItems", (PyCFunction) _wrap_wxListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, |
9782 | { "wxListCtrl_RefreshItem", (PyCFunction) _wrap_wxListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
9783 | { "wxListCtrl_IsVirtual", (PyCFunction) _wrap_wxListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
9784 | { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
9785 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
9786 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
9787 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
9788 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
9789 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
9790 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
9791 | { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9792 | { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9793 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
9794 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
9795 | { "wxListCtrl_GetColumnCount", (PyCFunction) _wrap_wxListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
9796 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
9797 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
9798 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
9799 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
9800 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
9801 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
9802 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
9803 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
9804 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
9805 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
9806 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
9807 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
9808 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
9809 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
9810 | { "wxListCtrl_GetEditControl", (PyCFunction) _wrap_wxListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
9811 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
9812 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
9813 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
9814 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
9815 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
9816 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9817 | { "wxListCtrl_SetForegroundColour", (PyCFunction) _wrap_wxListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9818 | { "wxListCtrl__setSelf", (PyCFunction) _wrap_wxListCtrl__setSelf, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
9819 | { "wxListCtrl_Create", (PyCFunction) _wrap_wxListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
9820 | { "new_wxPreListCtrl", (PyCFunction) _wrap_new_wxPreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9821 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, |
6d19860f RD |
9822 | { "wxListEvent_GetCacheTo", (PyCFunction) _wrap_wxListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, |
9823 | { "wxListEvent_GetCacheFrom", (PyCFunction) _wrap_wxListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
9824 | { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, |
9825 | { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
9826 | { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
9827 | { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
9828 | { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
9829 | { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9830 | { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
9831 | { "wxListEvent_Cancelled", (PyCFunction) _wrap_wxListEvent_Cancelled, METH_VARARGS | METH_KEYWORDS }, | |
9832 | { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
9833 | { "wxListEvent_GetOldItem", (PyCFunction) _wrap_wxListEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
9834 | { "wxListEvent_GetOldIndex", (PyCFunction) _wrap_wxListEvent_GetOldIndex, METH_VARARGS | METH_KEYWORDS }, | |
9835 | { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
9836 | { "wxListEvent_GetCode", (PyCFunction) _wrap_wxListEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9837 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, |
9838 | { "wxListEvent_m_item_set", (PyCFunction) _wrap_wxListEvent_m_item_set, METH_VARARGS | METH_KEYWORDS }, | |
9839 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
9840 | { "wxListEvent_m_pointDrag_set", (PyCFunction) _wrap_wxListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
9841 | { "wxListEvent_m_cancelled_get", (PyCFunction) _wrap_wxListEvent_m_cancelled_get, METH_VARARGS | METH_KEYWORDS }, | |
9842 | { "wxListEvent_m_cancelled_set", (PyCFunction) _wrap_wxListEvent_m_cancelled_set, METH_VARARGS | METH_KEYWORDS }, | |
9843 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
9844 | { "wxListEvent_m_col_set", (PyCFunction) _wrap_wxListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
9845 | { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
9846 | { "wxListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
9847 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
9848 | { "wxListEvent_m_itemIndex_set", (PyCFunction) _wrap_wxListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
9849 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
9850 | { "wxListEvent_m_code_set", (PyCFunction) _wrap_wxListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
6d19860f | 9851 | { "new_wxListEvent", (PyCFunction) _wrap_new_wxListEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9852 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, |
9853 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
9854 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
9855 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
9856 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
9857 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
9858 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
9859 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
9860 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
9861 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
9862 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
9863 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
9864 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
9865 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
9866 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
9867 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
9868 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
9869 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
9870 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
9871 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
9872 | { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, |
9873 | { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9874 | { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9875 | { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
9876 | { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
9877 | { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
9878 | { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
9879 | { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
9880 | { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
9881 | { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
9882 | { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
9883 | { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
9884 | { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
9885 | { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
9886 | { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
9887 | { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9888 | { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9889 | { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
9890 | { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
9891 | { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
9892 | { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
9893 | { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
9894 | { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
9895 | { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
9896 | { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
9897 | { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
9898 | { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
9899 | { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
9900 | { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
9901 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
9902 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
9903 | { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
9904 | { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9905 | { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9906 | { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
9907 | { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9908 | { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9909 | { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
9910 | { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9911 | { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9912 | { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
9913 | { NULL, NULL } |
9914 | }; | |
1d99702e RD |
9915 | #ifdef __cplusplus |
9916 | } | |
9917 | #endif | |
9918 | /* | |
9919 | * This table is used by the pointer type-checker | |
9920 | */ | |
9921 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 9922 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, |
1d99702e | 9923 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, |
1d99702e | 9924 | { "_signed_long","_long",0}, |
b1462dfa | 9925 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
9926 | { "_wxPrintQuality","_int",0}, |
9927 | { "_wxPrintQuality","_signed_int",0}, | |
9928 | { "_wxPrintQuality","_unsigned_int",0}, | |
9929 | { "_wxPrintQuality","_wxWindowID",0}, | |
9930 | { "_wxPrintQuality","_uint",0}, | |
9931 | { "_wxPrintQuality","_EBool",0}, | |
9932 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 9933 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 9934 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, |
c368d904 | 9935 | { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
1d99702e | 9936 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
9937 | { "_long","_unsigned_long",0}, |
9938 | { "_long","_signed_long",0}, | |
b1462dfa | 9939 | { "_size_t","_wxCoord",0}, |
1d99702e | 9940 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 9941 | { "_size_t","_time_t",0}, |
1d99702e RD |
9942 | { "_size_t","_unsigned_int",0}, |
9943 | { "_size_t","_int",0}, | |
9944 | { "_size_t","_wxWindowID",0}, | |
9945 | { "_size_t","_uint",0}, | |
b1462dfa | 9946 | { "_uint","_wxCoord",0}, |
1d99702e | 9947 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 9948 | { "_uint","_time_t",0}, |
1d99702e RD |
9949 | { "_uint","_size_t",0}, |
9950 | { "_uint","_unsigned_int",0}, | |
9951 | { "_uint","_int",0}, | |
9952 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 9953 | { "_wxChar","_char",0}, |
1d99702e | 9954 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, |
1d99702e | 9955 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, |
f6bcfd97 | 9956 | { "_char","_wxChar",0}, |
cdf14688 | 9957 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 9958 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
9959 | { "_EBool","_wxPrintQuality",0}, |
9960 | { "_EBool","_signed_int",0}, | |
9961 | { "_EBool","_int",0}, | |
9962 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 9963 | { "_unsigned_long","_long",0}, |
cdf14688 | 9964 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 9965 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
9966 | { "_signed_int","_wxPrintQuality",0}, |
9967 | { "_signed_int","_EBool",0}, | |
9968 | { "_signed_int","_wxWindowID",0}, | |
9969 | { "_signed_int","_int",0}, | |
1d99702e RD |
9970 | { "_WXTYPE","_short",0}, |
9971 | { "_WXTYPE","_signed_short",0}, | |
9972 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
9973 | { "_unsigned_short","_WXTYPE",0}, |
9974 | { "_unsigned_short","_short",0}, | |
9416aa89 | 9975 | { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, |
9416aa89 | 9976 | { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject}, |
9416aa89 | 9977 | { "_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, |
6d19860f | 9978 | { "_wxObject","_wxListView",SwigwxListViewTowxObject}, |
c7e7022c | 9979 | { "_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, |
9416aa89 | 9980 | { "_wxObject","_wxListEvent",SwigwxListEventTowxObject}, |
9416aa89 | 9981 | { "_wxObject","_wxListItem",SwigwxListItemTowxObject}, |
1d99702e RD |
9982 | { "_signed_short","_WXTYPE",0}, |
9983 | { "_signed_short","_short",0}, | |
1d99702e | 9984 | { "_unsigned_char","_byte",0}, |
f6bcfd97 | 9985 | { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
6d19860f | 9986 | { "_wxControl","_wxListView",SwigwxListViewTowxControl}, |
c7e7022c | 9987 | { "_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, |
b1462dfa | 9988 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 9989 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 9990 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
9991 | { "_unsigned_int","_size_t",0}, |
9992 | { "_unsigned_int","_uint",0}, | |
9993 | { "_unsigned_int","_wxWindowID",0}, | |
9994 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
9995 | { "_short","_WXTYPE",0}, |
9996 | { "_short","_unsigned_short",0}, | |
9997 | { "_short","_signed_short",0}, | |
b1462dfa | 9998 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 9999 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 10000 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
10001 | { "_wxWindowID","_size_t",0}, |
10002 | { "_wxWindowID","_EBool",0}, | |
10003 | { "_wxWindowID","_uint",0}, | |
10004 | { "_wxWindowID","_int",0}, | |
10005 | { "_wxWindowID","_signed_int",0}, | |
10006 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 10007 | { "_int","_wxCoord",0}, |
1d99702e | 10008 | { "_int","_wxPrintQuality",0}, |
c368d904 | 10009 | { "_int","_time_t",0}, |
1d99702e RD |
10010 | { "_int","_size_t",0}, |
10011 | { "_int","_EBool",0}, | |
10012 | { "_int","_uint",0}, | |
10013 | { "_int","_wxWindowID",0}, | |
10014 | { "_int","_unsigned_int",0}, | |
10015 | { "_int","_signed_int",0}, | |
c368d904 RD |
10016 | { "_time_t","_wxCoord",0}, |
10017 | { "_time_t","_wxPrintQuality",0}, | |
10018 | { "_time_t","_unsigned_int",0}, | |
10019 | { "_time_t","_int",0}, | |
10020 | { "_time_t","_wxWindowID",0}, | |
10021 | { "_time_t","_uint",0}, | |
10022 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
10023 | { "_wxCoord","_int",0}, |
10024 | { "_wxCoord","_signed_int",0}, | |
10025 | { "_wxCoord","_unsigned_int",0}, | |
10026 | { "_wxCoord","_wxWindowID",0}, | |
10027 | { "_wxCoord","_uint",0}, | |
10028 | { "_wxCoord","_EBool",0}, | |
10029 | { "_wxCoord","_size_t",0}, | |
c368d904 | 10030 | { "_wxCoord","_time_t",0}, |
b1462dfa | 10031 | { "_wxCoord","_wxPrintQuality",0}, |
6d19860f | 10032 | { "_wxPyListCtrl","_wxListView",SwigwxListViewTowxPyListCtrl}, |
f6bcfd97 | 10033 | { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
6d19860f | 10034 | { "_wxEvtHandler","_wxListView",SwigwxListViewTowxEvtHandler}, |
c7e7022c | 10035 | { "_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, |
f6bcfd97 | 10036 | { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
6d19860f | 10037 | { "_wxWindow","_wxListView",SwigwxListViewTowxWindow}, |
c7e7022c | 10038 | { "_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, |
1d99702e RD |
10039 | {0,0,0}}; |
10040 | ||
8ab979d7 RD |
10041 | static PyObject *SWIG_globals; |
10042 | #ifdef __cplusplus | |
10043 | extern "C" | |
10044 | #endif | |
1d99702e | 10045 | SWIGEXPORT(void) initcontrols2c() { |
8ab979d7 RD |
10046 | PyObject *m, *d; |
10047 | SWIG_globals = SWIG_newvarlink(); | |
10048 | m = Py_InitModule("controls2c", controls2cMethods); | |
10049 | d = PyModule_GetDict(m); | |
c7e7022c RD |
10050 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
10051 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
10052 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
10053 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
10054 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
10055 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
10056 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO)); | |
10057 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO)); | |
10058 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
10059 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
10060 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN)); | |
10061 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
10062 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK)); | |
10063 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
10064 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
10065 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
10066 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_CACHE_HINT)); | |
6d19860f RD |
10067 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); |
10068 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
10069 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
10070 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
c7e7022c RD |
10071 | PyDict_SetItemString(d,"wxLC_VRULES", PyInt_FromLong((long) wxLC_VRULES)); |
10072 | PyDict_SetItemString(d,"wxLC_HRULES", PyInt_FromLong((long) wxLC_HRULES)); | |
10073 | PyDict_SetItemString(d,"wxLC_ICON", PyInt_FromLong((long) wxLC_ICON)); | |
10074 | PyDict_SetItemString(d,"wxLC_SMALL_ICON", PyInt_FromLong((long) wxLC_SMALL_ICON)); | |
10075 | PyDict_SetItemString(d,"wxLC_LIST", PyInt_FromLong((long) wxLC_LIST)); | |
10076 | PyDict_SetItemString(d,"wxLC_REPORT", PyInt_FromLong((long) wxLC_REPORT)); | |
10077 | PyDict_SetItemString(d,"wxLC_ALIGN_TOP", PyInt_FromLong((long) wxLC_ALIGN_TOP)); | |
10078 | PyDict_SetItemString(d,"wxLC_ALIGN_LEFT", PyInt_FromLong((long) wxLC_ALIGN_LEFT)); | |
10079 | PyDict_SetItemString(d,"wxLC_AUTOARRANGE", PyInt_FromLong((long) wxLC_AUTOARRANGE)); | |
10080 | PyDict_SetItemString(d,"wxLC_VIRTUAL", PyInt_FromLong((long) wxLC_VIRTUAL)); | |
10081 | PyDict_SetItemString(d,"wxLC_EDIT_LABELS", PyInt_FromLong((long) wxLC_EDIT_LABELS)); | |
10082 | PyDict_SetItemString(d,"wxLC_NO_HEADER", PyInt_FromLong((long) wxLC_NO_HEADER)); | |
10083 | PyDict_SetItemString(d,"wxLC_NO_SORT_HEADER", PyInt_FromLong((long) wxLC_NO_SORT_HEADER)); | |
10084 | PyDict_SetItemString(d,"wxLC_SINGLE_SEL", PyInt_FromLong((long) wxLC_SINGLE_SEL)); | |
10085 | PyDict_SetItemString(d,"wxLC_SORT_ASCENDING", PyInt_FromLong((long) wxLC_SORT_ASCENDING)); | |
10086 | PyDict_SetItemString(d,"wxLC_SORT_DESCENDING", PyInt_FromLong((long) wxLC_SORT_DESCENDING)); | |
10087 | PyDict_SetItemString(d,"wxLC_MASK_TYPE", PyInt_FromLong((long) wxLC_MASK_TYPE)); | |
10088 | PyDict_SetItemString(d,"wxLC_MASK_ALIGN", PyInt_FromLong((long) wxLC_MASK_ALIGN)); | |
10089 | PyDict_SetItemString(d,"wxLC_MASK_SORT", PyInt_FromLong((long) wxLC_MASK_SORT)); | |
6d19860f | 10090 | PyDict_SetItemString(d,"wxLC_USER_TEXT", PyInt_FromLong((long) wxLC_USER_TEXT)); |
c7e7022c | 10091 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); |
af309447 RD |
10092 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); |
10093 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
10094 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
c7e7022c | 10095 | PyDict_SetItemString(d,"wxLIST_SET_ITEM", PyInt_FromLong((long) wxLIST_SET_ITEM)); |
af309447 RD |
10096 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); |
10097 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
10098 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); | |
10099 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
10100 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
10101 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
10102 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
10103 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
10104 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
10105 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
10106 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
10107 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
10108 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
10109 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
10110 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
10111 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
10112 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
10113 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
10114 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
10115 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
10116 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
10117 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
10118 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
10119 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
10120 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
10121 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
af309447 RD |
10122 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); |
10123 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
10124 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
10125 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
10126 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
10127 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
10128 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
10129 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
10130 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
f6bcfd97 BP |
10131 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); |
10132 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
10133 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
10134 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
00b6c4e3 RD |
10135 | PyDict_SetItemString(d,"wxTR_NO_BUTTONS", PyInt_FromLong((long) wxTR_NO_BUTTONS)); |
10136 | PyDict_SetItemString(d,"wxTR_HAS_BUTTONS", PyInt_FromLong((long) wxTR_HAS_BUTTONS)); | |
10137 | PyDict_SetItemString(d,"wxTR_TWIST_BUTTONS", PyInt_FromLong((long) wxTR_TWIST_BUTTONS)); | |
10138 | PyDict_SetItemString(d,"wxTR_NO_LINES", PyInt_FromLong((long) wxTR_NO_LINES)); | |
10139 | PyDict_SetItemString(d,"wxTR_MAC_BUTTONS", PyInt_FromLong((long) wxTR_MAC_BUTTONS)); | |
10140 | PyDict_SetItemString(d,"wxTR_SINGLE", PyInt_FromLong((long) wxTR_SINGLE)); | |
10141 | PyDict_SetItemString(d,"wxTR_MULTIPLE", PyInt_FromLong((long) wxTR_MULTIPLE)); | |
10142 | PyDict_SetItemString(d,"wxTR_EXTENDED", PyInt_FromLong((long) wxTR_EXTENDED)); | |
10143 | PyDict_SetItemString(d,"wxTR_EDIT_LABELS", PyInt_FromLong((long) wxTR_EDIT_LABELS)); | |
10144 | PyDict_SetItemString(d,"wxTR_LINES_AT_ROOT", PyInt_FromLong((long) wxTR_LINES_AT_ROOT)); | |
10145 | PyDict_SetItemString(d,"wxTR_HIDE_ROOT", PyInt_FromLong((long) wxTR_HIDE_ROOT)); | |
10146 | PyDict_SetItemString(d,"wxTR_ROW_LINES", PyInt_FromLong((long) wxTR_ROW_LINES)); | |
10147 | PyDict_SetItemString(d,"wxTR_HAS_VARIABLE_ROW_HEIGHT", PyInt_FromLong((long) wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
10148 | PyDict_SetItemString(d,"wxTR_DEFAULT_STYLE", PyInt_FromLong((long) wxTR_DEFAULT_STYLE)); | |
694759cf RD |
10149 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); |
10150 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
10151 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
10152 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
10153 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
164b735b RD |
10154 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); |
10155 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
10156 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
10157 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
10158 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
10159 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
10160 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
10161 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
10162 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
10163 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
10164 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
10165 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
10166 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
10167 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
1b62f00d RD |
10168 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
10169 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
10170 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
10171 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
10172 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
10173 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO)); | |
10174 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO)); | |
10175 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
10176 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
10177 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
10178 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
10179 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
10180 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
10181 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN)); | |
10182 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
10183 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
10184 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
d1679124 | 10185 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG)); |
9416aa89 | 10186 | |
a3fbed81 | 10187 | // Map renamed classes back to their common name for OOR |
9416aa89 RD |
10188 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); |
10189 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
a3fbed81 | 10190 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); |
1d99702e RD |
10191 | { |
10192 | int i; | |
10193 | for (i = 0; _swig_mapping[i].n1; i++) | |
10194 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10195 | } | |
8ab979d7 | 10196 | } |