]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/gtk/controls2.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 6 | * Version 1.1 (Build 883) |
8ab979d7 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
3bcd5e1c | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
3bcd5e1c | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
3bcd5e1c | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
3bcd5e1c RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
3bcd5e1c | 44 | |
8ab979d7 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initcontrols2c |
55 | ||
56 | #define SWIG_name "controls2c" | |
57 | ||
58 | #include "helpers.h" | |
2f90df85 RD |
59 | #ifdef __WXMSW__ |
60 | #include <windows.h> | |
61 | #endif | |
8ab979d7 RD |
62 | #include <wx/listctrl.h> |
63 | #include <wx/treectrl.h> | |
9df61a29 | 64 | #include <wx/imaglist.h> |
db34b2d4 | 65 | #include <wx/dirctrl.h> |
8ab979d7 | 66 | |
8ab979d7 RD |
67 | |
68 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
69 | PyObject* o2; | |
70 | PyObject* o3; | |
71 | ||
3bcd5e1c | 72 | if (!target) { |
8ab979d7 | 73 | target = o; |
3bcd5e1c | 74 | } else if (target == Py_None) { |
8ab979d7 RD |
75 | Py_DECREF(Py_None); |
76 | target = o; | |
3bcd5e1c | 77 | } else { |
8ab979d7 RD |
78 | if (!PyTuple_Check(target)) { |
79 | o2 = target; | |
80 | target = PyTuple_New(1); | |
81 | PyTuple_SetItem(target, 0, o2); | |
82 | } | |
3bcd5e1c RD |
83 | o3 = PyTuple_New(1); |
84 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
85 | |
86 | o2 = target; | |
3bcd5e1c RD |
87 | target = PySequence_Concat(o2, o3); |
88 | Py_DECREF(o2); | |
8ab979d7 RD |
89 | Py_DECREF(o3); |
90 | } | |
91 | return target; | |
92 | } | |
9a74fcaf RD |
93 | |
94 | // Put some wx default wxChar* values into wxStrings. | |
95 | const wxChar* wxListCtrlNameStr = _T("wxListCtrl"); | |
96 | DECLARE_DEF_STRING(ListCtrlNameStr); | |
97 | ||
98 | const wxChar* wx_TreeCtrlNameStr = _T("wxTreeCtrl"); | |
99 | DECLARE_DEF_STRING(_TreeCtrlNameStr); | |
100 | DECLARE_DEF_STRING(DirDialogDefaultFolderStr); | |
101 | ||
102 | static const wxString wxPyEmptyString(wxT("")); | |
aa2a5b86 | 103 | // C++ Version of a Python aware class |
cd096152 RD |
104 | class wxPyListCtrl : public wxListCtrl { |
105 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
106 | public: | |
aa2a5b86 | 107 | wxPyListCtrl() : wxListCtrl() {} |
cd096152 RD |
108 | wxPyListCtrl(wxWindow* parent, wxWindowID id, |
109 | const wxPoint& pos, | |
110 | const wxSize& size, | |
111 | long style, | |
112 | const wxValidator& validator, | |
9a74fcaf | 113 | const wxString& name) : |
cd096152 RD |
114 | wxListCtrl(parent, id, pos, size, style, validator, name) {} |
115 | ||
aa2a5b86 RD |
116 | bool Create(wxWindow* parent, wxWindowID id, |
117 | const wxPoint& pos, | |
118 | const wxSize& size, | |
119 | long style, | |
120 | const wxValidator& validator, | |
9a74fcaf | 121 | const wxString& name) { |
aa2a5b86 RD |
122 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); |
123 | } | |
124 | ||
cd096152 RD |
125 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); |
126 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
127 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
128 | ||
129 | PYPRIVATE; | |
130 | }; | |
131 | ||
132 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
133 | ||
134 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
135 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
136 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
059a841c | 137 | // Python aware sorting function for wxPyListCtrl |
f6bcfd97 | 138 | int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { |
dcd38683 RD |
139 | int retval = 0; |
140 | PyObject* func = (PyObject*)funcPtr; | |
474c48f9 | 141 | wxPyBeginBlockThreads(); |
dcd38683 RD |
142 | |
143 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
144 | PyObject* result = PyEval_CallObject(func, args); | |
145 | Py_DECREF(args); | |
146 | if (result) { | |
147 | retval = PyInt_AsLong(result); | |
148 | Py_DECREF(result); | |
149 | } | |
150 | ||
474c48f9 | 151 | wxPyEndBlockThreads(); |
dcd38683 RD |
152 | return retval; |
153 | } | |
154 | ||
155 | ||
cf694132 RD |
156 | class wxPyTreeItemData : public wxTreeItemData { |
157 | public: | |
158 | wxPyTreeItemData(PyObject* obj = NULL) { | |
c368d904 | 159 | if (obj == NULL) |
cf694132 | 160 | obj = Py_None; |
c368d904 RD |
161 | Py_INCREF(obj); |
162 | m_obj = obj; | |
cf694132 RD |
163 | } |
164 | ||
165 | ~wxPyTreeItemData() { | |
474c48f9 | 166 | wxPyBeginBlockThreads(); |
c368d904 | 167 | Py_DECREF(m_obj); |
474c48f9 | 168 | wxPyEndBlockThreads(); |
cf694132 RD |
169 | } |
170 | ||
171 | PyObject* GetData() { | |
172 | Py_INCREF(m_obj); | |
173 | return m_obj; | |
174 | } | |
175 | ||
176 | void SetData(PyObject* obj) { | |
474c48f9 | 177 | wxPyBeginBlockThreads(); |
cf694132 | 178 | Py_DECREF(m_obj); |
474c48f9 | 179 | wxPyEndBlockThreads(); |
cf694132 RD |
180 | m_obj = obj; |
181 | Py_INCREF(obj); | |
182 | } | |
183 | ||
184 | PyObject* m_obj; | |
185 | }; | |
aa2a5b86 | 186 | // C++ version of Python aware wxTreeCtrl |
f6bcfd97 | 187 | class wxPyTreeCtrl : public wxTreeCtrl { |
9df61a29 | 188 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); |
f6bcfd97 | 189 | public: |
aa2a5b86 | 190 | wxPyTreeCtrl() : wxTreeCtrl() {} |
f6bcfd97 BP |
191 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, |
192 | const wxPoint& pos, | |
193 | const wxSize& size, | |
194 | long style, | |
195 | const wxValidator& validator, | |
9a74fcaf | 196 | const wxString& name) : |
f6bcfd97 BP |
197 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} |
198 | ||
aa2a5b86 RD |
199 | bool Create(wxWindow *parent, wxWindowID id, |
200 | const wxPoint& pos, | |
201 | const wxSize& size, | |
202 | long style, | |
203 | const wxValidator& validator, | |
9a74fcaf | 204 | const wxString& name) { |
aa2a5b86 RD |
205 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); |
206 | } | |
207 | ||
208 | ||
f6bcfd97 BP |
209 | int OnCompareItems(const wxTreeItemId& item1, |
210 | const wxTreeItemId& item2) { | |
211 | int rval = 0; | |
059a841c | 212 | bool found; |
474c48f9 | 213 | wxPyBeginBlockThreads(); |
059a841c | 214 | if ((found = m_myInst.findCallback("OnCompareItems"))) |
f6bcfd97 BP |
215 | rval = m_myInst.callCallback(Py_BuildValue( |
216 | "(OO)", | |
217 | wxPyConstructObject((void*)&item1, "wxTreeItemId"), | |
218 | wxPyConstructObject((void*)&item2, "wxTreeItemId"))); | |
474c48f9 | 219 | wxPyEndBlockThreads(); |
059a841c | 220 | if (! found) |
f6bcfd97 | 221 | rval = wxTreeCtrl::OnCompareItems(item1, item2); |
f6bcfd97 BP |
222 | return rval; |
223 | } | |
224 | PYPRIVATE; | |
225 | }; | |
226 | ||
9df61a29 RD |
227 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); |
228 | ||
1d99702e RD |
229 | #ifdef __cplusplus |
230 | extern "C" { | |
231 | #endif | |
cd096152 | 232 | #define new_wxListItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxListItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
f6bcfd97 BP |
233 | static PyObject *_wrap_new_wxListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
234 | PyObject * _resultobj; | |
235 | wxListItemAttr * _result; | |
cd096152 RD |
236 | wxColour * _arg0 = (wxColour *) &wxNullColour; |
237 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
238 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
239 | wxColour temp; | |
240 | PyObject * _obj0 = 0; | |
241 | wxColour temp0; | |
242 | PyObject * _obj1 = 0; | |
243 | PyObject * _argo2 = 0; | |
244 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
f6bcfd97 BP |
245 | char _ptemp[128]; |
246 | ||
247 | self = self; | |
cd096152 RD |
248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxListItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) |
249 | return NULL; | |
250 | if (_obj0) | |
251 | { | |
252 | _arg0 = &temp; | |
253 | if (! wxColour_helper(_obj0, &_arg0)) | |
254 | return NULL; | |
255 | } | |
256 | if (_obj1) | |
257 | { | |
258 | _arg1 = &temp0; | |
259 | if (! wxColour_helper(_obj1, &_arg1)) | |
260 | return NULL; | |
261 | } | |
262 | if (_argo2) { | |
263 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
264 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxListItemAttr. Expected _wxFont_p."); | |
f6bcfd97 | 266 | return NULL; |
cd096152 RD |
267 | } |
268 | } | |
f6bcfd97 | 269 | { |
474c48f9 | 270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 271 | _result = (wxListItemAttr *)new_wxListItemAttr(*_arg0,*_arg1,*_arg2); |
f6bcfd97 | 272 | |
474c48f9 | 273 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 274 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
275 | } if (_result) { |
276 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
277 | _resultobj = Py_BuildValue("s",_ptemp); | |
278 | } else { | |
279 | Py_INCREF(Py_None); | |
280 | _resultobj = Py_None; | |
281 | } | |
282 | return _resultobj; | |
283 | } | |
284 | ||
285 | #define wxListItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
286 | static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
287 | PyObject * _resultobj; | |
288 | wxListItemAttr * _arg0; | |
289 | wxColour * _arg1; | |
290 | PyObject * _argo0 = 0; | |
291 | wxColour temp; | |
292 | PyObject * _obj1 = 0; | |
293 | char *_kwnames[] = { "self","colText", NULL }; | |
294 | ||
295 | self = self; | |
296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
297 | return NULL; | |
298 | if (_argo0) { | |
299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetTextColour. Expected _wxListItemAttr_p."); | |
302 | return NULL; | |
303 | } | |
304 | } | |
305 | { | |
306 | _arg1 = &temp; | |
307 | if (! wxColour_helper(_obj1, &_arg1)) | |
308 | return NULL; | |
309 | } | |
310 | { | |
474c48f9 | 311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 312 | wxListItemAttr_SetTextColour(_arg0,*_arg1); |
f6bcfd97 | 313 | |
474c48f9 | 314 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 315 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
316 | } Py_INCREF(Py_None); |
317 | _resultobj = Py_None; | |
318 | return _resultobj; | |
319 | } | |
320 | ||
321 | #define wxListItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
322 | static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
323 | PyObject * _resultobj; | |
324 | wxListItemAttr * _arg0; | |
325 | wxColour * _arg1; | |
326 | PyObject * _argo0 = 0; | |
327 | wxColour temp; | |
328 | PyObject * _obj1 = 0; | |
329 | char *_kwnames[] = { "self","colBack", NULL }; | |
330 | ||
331 | self = self; | |
332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
333 | return NULL; | |
334 | if (_argo0) { | |
335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetBackgroundColour. Expected _wxListItemAttr_p."); | |
338 | return NULL; | |
339 | } | |
340 | } | |
341 | { | |
342 | _arg1 = &temp; | |
343 | if (! wxColour_helper(_obj1, &_arg1)) | |
344 | return NULL; | |
345 | } | |
346 | { | |
474c48f9 | 347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 348 | wxListItemAttr_SetBackgroundColour(_arg0,*_arg1); |
f6bcfd97 | 349 | |
474c48f9 | 350 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 351 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
352 | } Py_INCREF(Py_None); |
353 | _resultobj = Py_None; | |
354 | return _resultobj; | |
355 | } | |
356 | ||
357 | #define wxListItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
358 | static PyObject *_wrap_wxListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
359 | PyObject * _resultobj; | |
360 | wxListItemAttr * _arg0; | |
361 | wxFont * _arg1; | |
362 | PyObject * _argo0 = 0; | |
363 | PyObject * _argo1 = 0; | |
364 | char *_kwnames[] = { "self","font", NULL }; | |
365 | ||
366 | self = self; | |
367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
368 | return NULL; | |
369 | if (_argo0) { | |
370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetFont. Expected _wxListItemAttr_p."); | |
373 | return NULL; | |
374 | } | |
375 | } | |
376 | if (_argo1) { | |
377 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
378 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetFont. Expected _wxFont_p."); | |
380 | return NULL; | |
381 | } | |
382 | } | |
383 | { | |
474c48f9 | 384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 385 | wxListItemAttr_SetFont(_arg0,*_arg1); |
f6bcfd97 | 386 | |
474c48f9 | 387 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 388 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
389 | } Py_INCREF(Py_None); |
390 | _resultobj = Py_None; | |
391 | return _resultobj; | |
392 | } | |
393 | ||
394 | #define wxListItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
395 | static PyObject *_wrap_wxListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
396 | PyObject * _resultobj; | |
397 | bool _result; | |
398 | wxListItemAttr * _arg0; | |
399 | PyObject * _argo0 = 0; | |
400 | char *_kwnames[] = { "self", NULL }; | |
401 | ||
402 | self = self; | |
403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasTextColour",_kwnames,&_argo0)) | |
404 | return NULL; | |
405 | if (_argo0) { | |
406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasTextColour. Expected _wxListItemAttr_p."); | |
409 | return NULL; | |
410 | } | |
411 | } | |
412 | { | |
474c48f9 | 413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 414 | _result = (bool )wxListItemAttr_HasTextColour(_arg0); |
f6bcfd97 | 415 | |
474c48f9 | 416 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 417 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
418 | } _resultobj = Py_BuildValue("i",_result); |
419 | return _resultobj; | |
420 | } | |
421 | ||
422 | #define wxListItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
423 | static PyObject *_wrap_wxListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
424 | PyObject * _resultobj; | |
425 | bool _result; | |
426 | wxListItemAttr * _arg0; | |
427 | PyObject * _argo0 = 0; | |
428 | char *_kwnames[] = { "self", NULL }; | |
429 | ||
430 | self = self; | |
431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
432 | return NULL; | |
433 | if (_argo0) { | |
434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasBackgroundColour. Expected _wxListItemAttr_p."); | |
437 | return NULL; | |
438 | } | |
439 | } | |
440 | { | |
474c48f9 | 441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 442 | _result = (bool )wxListItemAttr_HasBackgroundColour(_arg0); |
f6bcfd97 | 443 | |
474c48f9 | 444 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 445 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
446 | } _resultobj = Py_BuildValue("i",_result); |
447 | return _resultobj; | |
448 | } | |
449 | ||
450 | #define wxListItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
451 | static PyObject *_wrap_wxListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
452 | PyObject * _resultobj; | |
453 | bool _result; | |
454 | wxListItemAttr * _arg0; | |
455 | PyObject * _argo0 = 0; | |
456 | char *_kwnames[] = { "self", NULL }; | |
457 | ||
458 | self = self; | |
459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasFont",_kwnames,&_argo0)) | |
460 | return NULL; | |
461 | if (_argo0) { | |
462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasFont. Expected _wxListItemAttr_p."); | |
465 | return NULL; | |
466 | } | |
467 | } | |
468 | { | |
474c48f9 | 469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 470 | _result = (bool )wxListItemAttr_HasFont(_arg0); |
f6bcfd97 | 471 | |
474c48f9 | 472 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 473 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
474 | } _resultobj = Py_BuildValue("i",_result); |
475 | return _resultobj; | |
476 | } | |
477 | ||
478 | #define wxListItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
479 | static PyObject *_wrap_wxListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
480 | PyObject * _resultobj; | |
481 | wxColour * _result; | |
482 | wxListItemAttr * _arg0; | |
483 | PyObject * _argo0 = 0; | |
484 | char *_kwnames[] = { "self", NULL }; | |
485 | char _ptemp[128]; | |
486 | ||
487 | self = self; | |
488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetTextColour",_kwnames,&_argo0)) | |
489 | return NULL; | |
490 | if (_argo0) { | |
491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetTextColour. Expected _wxListItemAttr_p."); | |
494 | return NULL; | |
495 | } | |
496 | } | |
497 | { | |
474c48f9 | 498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 499 | _result = new wxColour (wxListItemAttr_GetTextColour(_arg0)); |
f6bcfd97 | 500 | |
474c48f9 | 501 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 502 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
503 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
504 | _resultobj = Py_BuildValue("s",_ptemp); | |
f6bcfd97 BP |
505 | return _resultobj; |
506 | } | |
507 | ||
508 | #define wxListItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
509 | static PyObject *_wrap_wxListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
510 | PyObject * _resultobj; | |
511 | wxColour * _result; | |
512 | wxListItemAttr * _arg0; | |
513 | PyObject * _argo0 = 0; | |
514 | char *_kwnames[] = { "self", NULL }; | |
515 | char _ptemp[128]; | |
516 | ||
517 | self = self; | |
518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
519 | return NULL; | |
520 | if (_argo0) { | |
521 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
522 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetBackgroundColour. Expected _wxListItemAttr_p."); | |
524 | return NULL; | |
525 | } | |
526 | } | |
527 | { | |
474c48f9 | 528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 529 | _result = new wxColour (wxListItemAttr_GetBackgroundColour(_arg0)); |
f6bcfd97 | 530 | |
474c48f9 | 531 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 532 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
533 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
534 | _resultobj = Py_BuildValue("s",_ptemp); | |
f6bcfd97 BP |
535 | return _resultobj; |
536 | } | |
537 | ||
538 | #define wxListItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
539 | static PyObject *_wrap_wxListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
540 | PyObject * _resultobj; | |
541 | wxFont * _result; | |
542 | wxListItemAttr * _arg0; | |
543 | PyObject * _argo0 = 0; | |
544 | char *_kwnames[] = { "self", NULL }; | |
545 | char _ptemp[128]; | |
546 | ||
547 | self = self; | |
548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetFont",_kwnames,&_argo0)) | |
549 | return NULL; | |
550 | if (_argo0) { | |
551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetFont. Expected _wxListItemAttr_p."); | |
554 | return NULL; | |
555 | } | |
556 | } | |
557 | { | |
474c48f9 | 558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 559 | _result = new wxFont (wxListItemAttr_GetFont(_arg0)); |
f6bcfd97 | 560 | |
474c48f9 | 561 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 562 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
563 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
564 | _resultobj = Py_BuildValue("s",_ptemp); | |
f6bcfd97 BP |
565 | return _resultobj; |
566 | } | |
567 | ||
9df61a29 RD |
568 | static void *SwigwxListItemTowxObject(void *ptr) { |
569 | wxListItem *src; | |
570 | wxObject *dest; | |
571 | src = (wxListItem *) ptr; | |
572 | dest = (wxObject *) src; | |
573 | return (void *) dest; | |
574 | } | |
575 | ||
f6bcfd97 BP |
576 | #define new_wxListItem() (new wxListItem()) |
577 | static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
578 | PyObject * _resultobj; | |
579 | wxListItem * _result; | |
580 | char *_kwnames[] = { NULL }; | |
581 | char _ptemp[128]; | |
582 | ||
583 | self = self; | |
584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames)) | |
585 | return NULL; | |
586 | { | |
474c48f9 | 587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 588 | _result = (wxListItem *)new_wxListItem(); |
f6bcfd97 | 589 | |
474c48f9 | 590 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 591 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
592 | } if (_result) { |
593 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
594 | _resultobj = Py_BuildValue("s",_ptemp); | |
595 | } else { | |
596 | Py_INCREF(Py_None); | |
597 | _resultobj = Py_None; | |
598 | } | |
599 | return _resultobj; | |
600 | } | |
601 | ||
602 | #define delete_wxListItem(_swigobj) (delete _swigobj) | |
603 | static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
604 | PyObject * _resultobj; | |
605 | wxListItem * _arg0; | |
606 | PyObject * _argo0 = 0; | |
607 | char *_kwnames[] = { "self", NULL }; | |
608 | ||
609 | self = self; | |
610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0)) | |
611 | return NULL; | |
612 | if (_argo0) { | |
613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p."); | |
616 | return NULL; | |
617 | } | |
618 | } | |
619 | { | |
474c48f9 | 620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 621 | delete_wxListItem(_arg0); |
f6bcfd97 | 622 | |
474c48f9 | 623 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 624 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
625 | } Py_INCREF(Py_None); |
626 | _resultobj = Py_None; | |
627 | return _resultobj; | |
628 | } | |
629 | ||
630 | #define wxListItem_Clear(_swigobj) (_swigobj->Clear()) | |
631 | static PyObject *_wrap_wxListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
632 | PyObject * _resultobj; | |
633 | wxListItem * _arg0; | |
634 | PyObject * _argo0 = 0; | |
635 | char *_kwnames[] = { "self", NULL }; | |
636 | ||
637 | self = self; | |
638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_Clear",_kwnames,&_argo0)) | |
639 | return NULL; | |
640 | if (_argo0) { | |
641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_Clear. Expected _wxListItem_p."); | |
644 | return NULL; | |
645 | } | |
646 | } | |
647 | { | |
474c48f9 | 648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 649 | wxListItem_Clear(_arg0); |
f6bcfd97 | 650 | |
474c48f9 | 651 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 652 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
653 | } Py_INCREF(Py_None); |
654 | _resultobj = Py_None; | |
655 | return _resultobj; | |
656 | } | |
657 | ||
658 | #define wxListItem_ClearAttributes(_swigobj) (_swigobj->ClearAttributes()) | |
659 | static PyObject *_wrap_wxListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
660 | PyObject * _resultobj; | |
661 | wxListItem * _arg0; | |
662 | PyObject * _argo0 = 0; | |
663 | char *_kwnames[] = { "self", NULL }; | |
664 | ||
665 | self = self; | |
666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_ClearAttributes",_kwnames,&_argo0)) | |
667 | return NULL; | |
668 | if (_argo0) { | |
669 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
670 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_ClearAttributes. Expected _wxListItem_p."); | |
672 | return NULL; | |
673 | } | |
674 | } | |
675 | { | |
474c48f9 | 676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 677 | wxListItem_ClearAttributes(_arg0); |
f6bcfd97 | 678 | |
474c48f9 | 679 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 680 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
681 | } Py_INCREF(Py_None); |
682 | _resultobj = Py_None; | |
683 | return _resultobj; | |
684 | } | |
685 | ||
686 | #define wxListItem_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
687 | static PyObject *_wrap_wxListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
688 | PyObject * _resultobj; | |
689 | wxListItem * _arg0; | |
690 | long _arg1; | |
691 | PyObject * _argo0 = 0; | |
692 | char *_kwnames[] = { "self","mask", NULL }; | |
693 | ||
694 | self = self; | |
695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetMask",_kwnames,&_argo0,&_arg1)) | |
696 | return NULL; | |
697 | if (_argo0) { | |
698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetMask. Expected _wxListItem_p."); | |
701 | return NULL; | |
702 | } | |
703 | } | |
704 | { | |
474c48f9 | 705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 706 | wxListItem_SetMask(_arg0,_arg1); |
f6bcfd97 | 707 | |
474c48f9 | 708 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 709 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
710 | } Py_INCREF(Py_None); |
711 | _resultobj = Py_None; | |
712 | return _resultobj; | |
713 | } | |
714 | ||
715 | #define wxListItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
716 | static PyObject *_wrap_wxListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
717 | PyObject * _resultobj; | |
718 | wxListItem * _arg0; | |
719 | long _arg1; | |
720 | PyObject * _argo0 = 0; | |
721 | char *_kwnames[] = { "self","id", NULL }; | |
722 | ||
723 | self = self; | |
724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetId",_kwnames,&_argo0,&_arg1)) | |
725 | return NULL; | |
726 | if (_argo0) { | |
727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetId. Expected _wxListItem_p."); | |
730 | return NULL; | |
731 | } | |
732 | } | |
733 | { | |
474c48f9 | 734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 735 | wxListItem_SetId(_arg0,_arg1); |
f6bcfd97 | 736 | |
474c48f9 | 737 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 738 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
739 | } Py_INCREF(Py_None); |
740 | _resultobj = Py_None; | |
741 | return _resultobj; | |
742 | } | |
743 | ||
744 | #define wxListItem_SetColumn(_swigobj,_swigarg0) (_swigobj->SetColumn(_swigarg0)) | |
745 | static PyObject *_wrap_wxListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
746 | PyObject * _resultobj; | |
747 | wxListItem * _arg0; | |
748 | int _arg1; | |
749 | PyObject * _argo0 = 0; | |
750 | char *_kwnames[] = { "self","col", NULL }; | |
751 | ||
752 | self = self; | |
753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetColumn",_kwnames,&_argo0,&_arg1)) | |
754 | return NULL; | |
755 | if (_argo0) { | |
756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetColumn. Expected _wxListItem_p."); | |
759 | return NULL; | |
760 | } | |
761 | } | |
762 | { | |
474c48f9 | 763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 764 | wxListItem_SetColumn(_arg0,_arg1); |
f6bcfd97 | 765 | |
474c48f9 | 766 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 767 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
768 | } Py_INCREF(Py_None); |
769 | _resultobj = Py_None; | |
770 | return _resultobj; | |
771 | } | |
772 | ||
773 | #define wxListItem_SetState(_swigobj,_swigarg0) (_swigobj->SetState(_swigarg0)) | |
774 | static PyObject *_wrap_wxListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
775 | PyObject * _resultobj; | |
776 | wxListItem * _arg0; | |
777 | long _arg1; | |
778 | PyObject * _argo0 = 0; | |
779 | char *_kwnames[] = { "self","state", NULL }; | |
780 | ||
781 | self = self; | |
782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetState",_kwnames,&_argo0,&_arg1)) | |
783 | return NULL; | |
784 | if (_argo0) { | |
785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetState. Expected _wxListItem_p."); | |
788 | return NULL; | |
789 | } | |
790 | } | |
791 | { | |
474c48f9 | 792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 793 | wxListItem_SetState(_arg0,_arg1); |
f6bcfd97 | 794 | |
474c48f9 | 795 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 796 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
797 | } Py_INCREF(Py_None); |
798 | _resultobj = Py_None; | |
799 | return _resultobj; | |
800 | } | |
801 | ||
802 | #define wxListItem_SetStateMask(_swigobj,_swigarg0) (_swigobj->SetStateMask(_swigarg0)) | |
803 | static PyObject *_wrap_wxListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
804 | PyObject * _resultobj; | |
805 | wxListItem * _arg0; | |
806 | long _arg1; | |
807 | PyObject * _argo0 = 0; | |
808 | char *_kwnames[] = { "self","stateMask", NULL }; | |
809 | ||
810 | self = self; | |
811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetStateMask",_kwnames,&_argo0,&_arg1)) | |
812 | return NULL; | |
813 | if (_argo0) { | |
814 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
815 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
816 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetStateMask. Expected _wxListItem_p."); | |
817 | return NULL; | |
818 | } | |
819 | } | |
820 | { | |
474c48f9 | 821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 822 | wxListItem_SetStateMask(_arg0,_arg1); |
f6bcfd97 | 823 | |
474c48f9 | 824 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 825 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
826 | } Py_INCREF(Py_None); |
827 | _resultobj = Py_None; | |
828 | return _resultobj; | |
829 | } | |
830 | ||
831 | #define wxListItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
832 | static PyObject *_wrap_wxListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
833 | PyObject * _resultobj; | |
834 | wxListItem * _arg0; | |
835 | wxString * _arg1; | |
836 | PyObject * _argo0 = 0; | |
837 | PyObject * _obj1 = 0; | |
838 | char *_kwnames[] = { "self","text", NULL }; | |
839 | ||
840 | self = self; | |
841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetText",_kwnames,&_argo0,&_obj1)) | |
842 | return NULL; | |
843 | if (_argo0) { | |
844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetText. Expected _wxListItem_p."); | |
847 | return NULL; | |
848 | } | |
849 | } | |
850 | { | |
c8bc7bb8 RD |
851 | _arg1 = wxString_in_helper(_obj1); |
852 | if (_arg1 == NULL) | |
f6bcfd97 | 853 | return NULL; |
f6bcfd97 BP |
854 | } |
855 | { | |
474c48f9 | 856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 857 | wxListItem_SetText(_arg0,*_arg1); |
f6bcfd97 | 858 | |
474c48f9 | 859 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 860 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
861 | } Py_INCREF(Py_None); |
862 | _resultobj = Py_None; | |
863 | { | |
864 | if (_obj1) | |
865 | delete _arg1; | |
866 | } | |
867 | return _resultobj; | |
868 | } | |
869 | ||
870 | #define wxListItem_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0)) | |
871 | static PyObject *_wrap_wxListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
872 | PyObject * _resultobj; | |
873 | wxListItem * _arg0; | |
874 | int _arg1; | |
875 | PyObject * _argo0 = 0; | |
876 | char *_kwnames[] = { "self","image", NULL }; | |
877 | ||
878 | self = self; | |
879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetImage",_kwnames,&_argo0,&_arg1)) | |
880 | return NULL; | |
881 | if (_argo0) { | |
882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetImage. Expected _wxListItem_p."); | |
885 | return NULL; | |
886 | } | |
887 | } | |
888 | { | |
474c48f9 | 889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 890 | wxListItem_SetImage(_arg0,_arg1); |
f6bcfd97 | 891 | |
474c48f9 | 892 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 893 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
894 | } Py_INCREF(Py_None); |
895 | _resultobj = Py_None; | |
896 | return _resultobj; | |
897 | } | |
898 | ||
899 | #define wxListItem_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
900 | static PyObject *_wrap_wxListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
901 | PyObject * _resultobj; | |
902 | wxListItem * _arg0; | |
903 | long _arg1; | |
904 | PyObject * _argo0 = 0; | |
905 | char *_kwnames[] = { "self","data", NULL }; | |
906 | ||
907 | self = self; | |
908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetData",_kwnames,&_argo0,&_arg1)) | |
909 | return NULL; | |
910 | if (_argo0) { | |
911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetData. Expected _wxListItem_p."); | |
914 | return NULL; | |
915 | } | |
916 | } | |
917 | { | |
474c48f9 | 918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 919 | wxListItem_SetData(_arg0,_arg1); |
f6bcfd97 | 920 | |
474c48f9 | 921 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 922 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
923 | } Py_INCREF(Py_None); |
924 | _resultobj = Py_None; | |
925 | return _resultobj; | |
926 | } | |
927 | ||
928 | #define wxListItem_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
929 | static PyObject *_wrap_wxListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
930 | PyObject * _resultobj; | |
931 | wxListItem * _arg0; | |
932 | int _arg1; | |
933 | PyObject * _argo0 = 0; | |
934 | char *_kwnames[] = { "self","width", NULL }; | |
935 | ||
936 | self = self; | |
937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetWidth",_kwnames,&_argo0,&_arg1)) | |
938 | return NULL; | |
939 | if (_argo0) { | |
940 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
941 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetWidth. Expected _wxListItem_p."); | |
943 | return NULL; | |
944 | } | |
945 | } | |
946 | { | |
474c48f9 | 947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 948 | wxListItem_SetWidth(_arg0,_arg1); |
f6bcfd97 | 949 | |
474c48f9 | 950 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 951 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
952 | } Py_INCREF(Py_None); |
953 | _resultobj = Py_None; | |
954 | return _resultobj; | |
955 | } | |
956 | ||
957 | #define wxListItem_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0)) | |
958 | static PyObject *_wrap_wxListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
959 | PyObject * _resultobj; | |
960 | wxListItem * _arg0; | |
961 | wxListColumnFormat _arg1; | |
962 | PyObject * _argo0 = 0; | |
963 | char *_kwnames[] = { "self","align", NULL }; | |
964 | ||
965 | self = self; | |
966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetAlign",_kwnames,&_argo0,&_arg1)) | |
967 | return NULL; | |
968 | if (_argo0) { | |
969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetAlign. Expected _wxListItem_p."); | |
972 | return NULL; | |
973 | } | |
974 | } | |
975 | { | |
474c48f9 | 976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 977 | wxListItem_SetAlign(_arg0,_arg1); |
f6bcfd97 | 978 | |
474c48f9 | 979 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 980 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
981 | } Py_INCREF(Py_None); |
982 | _resultobj = Py_None; | |
983 | return _resultobj; | |
984 | } | |
985 | ||
986 | #define wxListItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
987 | static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
988 | PyObject * _resultobj; | |
989 | wxListItem * _arg0; | |
990 | wxColour * _arg1; | |
991 | PyObject * _argo0 = 0; | |
992 | wxColour temp; | |
993 | PyObject * _obj1 = 0; | |
994 | char *_kwnames[] = { "self","colText", NULL }; | |
995 | ||
996 | self = self; | |
997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
998 | return NULL; | |
999 | if (_argo0) { | |
1000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetTextColour. Expected _wxListItem_p."); | |
1003 | return NULL; | |
1004 | } | |
1005 | } | |
1006 | { | |
1007 | _arg1 = &temp; | |
1008 | if (! wxColour_helper(_obj1, &_arg1)) | |
1009 | return NULL; | |
1010 | } | |
1011 | { | |
474c48f9 | 1012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1013 | wxListItem_SetTextColour(_arg0,*_arg1); |
f6bcfd97 | 1014 | |
474c48f9 | 1015 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1016 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1017 | } Py_INCREF(Py_None); |
1018 | _resultobj = Py_None; | |
1019 | return _resultobj; | |
1020 | } | |
1021 | ||
1022 | #define wxListItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
1023 | static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1024 | PyObject * _resultobj; | |
1025 | wxListItem * _arg0; | |
1026 | wxColour * _arg1; | |
1027 | PyObject * _argo0 = 0; | |
1028 | wxColour temp; | |
1029 | PyObject * _obj1 = 0; | |
1030 | char *_kwnames[] = { "self","colBack", NULL }; | |
1031 | ||
1032 | self = self; | |
1033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
1034 | return NULL; | |
1035 | if (_argo0) { | |
1036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetBackgroundColour. Expected _wxListItem_p."); | |
1039 | return NULL; | |
1040 | } | |
1041 | } | |
1042 | { | |
1043 | _arg1 = &temp; | |
1044 | if (! wxColour_helper(_obj1, &_arg1)) | |
1045 | return NULL; | |
1046 | } | |
1047 | { | |
474c48f9 | 1048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1049 | wxListItem_SetBackgroundColour(_arg0,*_arg1); |
f6bcfd97 | 1050 | |
474c48f9 | 1051 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1052 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1053 | } Py_INCREF(Py_None); |
1054 | _resultobj = Py_None; | |
1055 | return _resultobj; | |
1056 | } | |
1057 | ||
1058 | #define wxListItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1059 | static PyObject *_wrap_wxListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1060 | PyObject * _resultobj; | |
1061 | wxListItem * _arg0; | |
1062 | wxFont * _arg1; | |
1063 | PyObject * _argo0 = 0; | |
1064 | PyObject * _argo1 = 0; | |
1065 | char *_kwnames[] = { "self","font", NULL }; | |
1066 | ||
1067 | self = self; | |
1068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
1069 | return NULL; | |
1070 | if (_argo0) { | |
1071 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1072 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetFont. Expected _wxListItem_p."); | |
1074 | return NULL; | |
1075 | } | |
1076 | } | |
1077 | if (_argo1) { | |
1078 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1079 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
1080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetFont. Expected _wxFont_p."); | |
1081 | return NULL; | |
1082 | } | |
1083 | } | |
1084 | { | |
474c48f9 | 1085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1086 | wxListItem_SetFont(_arg0,*_arg1); |
f6bcfd97 | 1087 | |
474c48f9 | 1088 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1089 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1090 | } Py_INCREF(Py_None); |
1091 | _resultobj = Py_None; | |
1092 | return _resultobj; | |
1093 | } | |
1094 | ||
1095 | #define wxListItem_GetMask(_swigobj) (_swigobj->GetMask()) | |
1096 | static PyObject *_wrap_wxListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1097 | PyObject * _resultobj; | |
1098 | long _result; | |
1099 | wxListItem * _arg0; | |
1100 | PyObject * _argo0 = 0; | |
1101 | char *_kwnames[] = { "self", NULL }; | |
1102 | ||
1103 | self = self; | |
1104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetMask",_kwnames,&_argo0)) | |
1105 | return NULL; | |
1106 | if (_argo0) { | |
1107 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1108 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetMask. Expected _wxListItem_p."); | |
1110 | return NULL; | |
1111 | } | |
1112 | } | |
1113 | { | |
474c48f9 | 1114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1115 | _result = (long )wxListItem_GetMask(_arg0); |
f6bcfd97 | 1116 | |
474c48f9 | 1117 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1118 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1119 | } _resultobj = Py_BuildValue("l",_result); |
1120 | return _resultobj; | |
1121 | } | |
1122 | ||
1123 | #define wxListItem_GetId(_swigobj) (_swigobj->GetId()) | |
1124 | static PyObject *_wrap_wxListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1125 | PyObject * _resultobj; | |
1126 | long _result; | |
1127 | wxListItem * _arg0; | |
1128 | PyObject * _argo0 = 0; | |
1129 | char *_kwnames[] = { "self", NULL }; | |
1130 | ||
1131 | self = self; | |
1132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetId",_kwnames,&_argo0)) | |
1133 | return NULL; | |
1134 | if (_argo0) { | |
1135 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1136 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetId. Expected _wxListItem_p."); | |
1138 | return NULL; | |
1139 | } | |
1140 | } | |
1141 | { | |
474c48f9 | 1142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1143 | _result = (long )wxListItem_GetId(_arg0); |
f6bcfd97 | 1144 | |
474c48f9 | 1145 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1146 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1147 | } _resultobj = Py_BuildValue("l",_result); |
1148 | return _resultobj; | |
1149 | } | |
1150 | ||
1151 | #define wxListItem_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
1152 | static PyObject *_wrap_wxListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1153 | PyObject * _resultobj; | |
1154 | int _result; | |
1155 | wxListItem * _arg0; | |
1156 | PyObject * _argo0 = 0; | |
1157 | char *_kwnames[] = { "self", NULL }; | |
1158 | ||
1159 | self = self; | |
1160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetColumn",_kwnames,&_argo0)) | |
1161 | return NULL; | |
1162 | if (_argo0) { | |
1163 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1164 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetColumn. Expected _wxListItem_p."); | |
1166 | return NULL; | |
1167 | } | |
1168 | } | |
1169 | { | |
474c48f9 | 1170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1171 | _result = (int )wxListItem_GetColumn(_arg0); |
f6bcfd97 | 1172 | |
474c48f9 | 1173 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1174 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1175 | } _resultobj = Py_BuildValue("i",_result); |
1176 | return _resultobj; | |
1177 | } | |
1178 | ||
1179 | #define wxListItem_GetState(_swigobj) (_swigobj->GetState()) | |
1180 | static PyObject *_wrap_wxListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1181 | PyObject * _resultobj; | |
1182 | long _result; | |
1183 | wxListItem * _arg0; | |
1184 | PyObject * _argo0 = 0; | |
1185 | char *_kwnames[] = { "self", NULL }; | |
1186 | ||
1187 | self = self; | |
1188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetState",_kwnames,&_argo0)) | |
1189 | return NULL; | |
1190 | if (_argo0) { | |
1191 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1192 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetState. Expected _wxListItem_p."); | |
1194 | return NULL; | |
1195 | } | |
1196 | } | |
1197 | { | |
474c48f9 | 1198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1199 | _result = (long )wxListItem_GetState(_arg0); |
f6bcfd97 | 1200 | |
474c48f9 | 1201 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1202 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1203 | } _resultobj = Py_BuildValue("l",_result); |
1204 | return _resultobj; | |
1205 | } | |
1206 | ||
1207 | #define wxListItem_GetText(_swigobj) (_swigobj->GetText()) | |
1208 | static PyObject *_wrap_wxListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1209 | PyObject * _resultobj; | |
1210 | wxString * _result; | |
1211 | wxListItem * _arg0; | |
1212 | PyObject * _argo0 = 0; | |
1213 | char *_kwnames[] = { "self", NULL }; | |
1214 | ||
1215 | self = self; | |
1216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetText",_kwnames,&_argo0)) | |
1217 | return NULL; | |
1218 | if (_argo0) { | |
1219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetText. Expected _wxListItem_p."); | |
1222 | return NULL; | |
1223 | } | |
1224 | } | |
1225 | { | |
474c48f9 | 1226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1227 | const wxString & _result_ref = wxListItem_GetText(_arg0); |
f6bcfd97 BP |
1228 | _result = (wxString *) &_result_ref; |
1229 | ||
474c48f9 | 1230 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1231 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1232 | }{ |
c8bc7bb8 RD |
1233 | #if wxUSE_UNICODE |
1234 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1235 | #else | |
f6bcfd97 | 1236 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1237 | #endif |
f6bcfd97 BP |
1238 | } |
1239 | return _resultobj; | |
1240 | } | |
1241 | ||
1242 | #define wxListItem_GetImage(_swigobj) (_swigobj->GetImage()) | |
1243 | static PyObject *_wrap_wxListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1244 | PyObject * _resultobj; | |
1245 | int _result; | |
1246 | wxListItem * _arg0; | |
1247 | PyObject * _argo0 = 0; | |
1248 | char *_kwnames[] = { "self", NULL }; | |
1249 | ||
1250 | self = self; | |
1251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetImage",_kwnames,&_argo0)) | |
1252 | return NULL; | |
1253 | if (_argo0) { | |
1254 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1255 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetImage. Expected _wxListItem_p."); | |
1257 | return NULL; | |
1258 | } | |
1259 | } | |
1260 | { | |
474c48f9 | 1261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1262 | _result = (int )wxListItem_GetImage(_arg0); |
f6bcfd97 | 1263 | |
474c48f9 | 1264 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1265 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1266 | } _resultobj = Py_BuildValue("i",_result); |
1267 | return _resultobj; | |
1268 | } | |
1269 | ||
1270 | #define wxListItem_GetData(_swigobj) (_swigobj->GetData()) | |
1271 | static PyObject *_wrap_wxListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1272 | PyObject * _resultobj; | |
1273 | long _result; | |
1274 | wxListItem * _arg0; | |
1275 | PyObject * _argo0 = 0; | |
1276 | char *_kwnames[] = { "self", NULL }; | |
1277 | ||
1278 | self = self; | |
1279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetData",_kwnames,&_argo0)) | |
1280 | return NULL; | |
1281 | if (_argo0) { | |
1282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetData. Expected _wxListItem_p."); | |
1285 | return NULL; | |
1286 | } | |
1287 | } | |
1288 | { | |
474c48f9 | 1289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1290 | _result = (long )wxListItem_GetData(_arg0); |
f6bcfd97 | 1291 | |
474c48f9 | 1292 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1293 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1294 | } _resultobj = Py_BuildValue("l",_result); |
1295 | return _resultobj; | |
1296 | } | |
1297 | ||
1298 | #define wxListItem_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1299 | static PyObject *_wrap_wxListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1300 | PyObject * _resultobj; | |
1301 | int _result; | |
1302 | wxListItem * _arg0; | |
1303 | PyObject * _argo0 = 0; | |
1304 | char *_kwnames[] = { "self", NULL }; | |
1305 | ||
1306 | self = self; | |
1307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetWidth",_kwnames,&_argo0)) | |
1308 | return NULL; | |
1309 | if (_argo0) { | |
1310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetWidth. Expected _wxListItem_p."); | |
1313 | return NULL; | |
1314 | } | |
1315 | } | |
1316 | { | |
474c48f9 | 1317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1318 | _result = (int )wxListItem_GetWidth(_arg0); |
f6bcfd97 | 1319 | |
474c48f9 | 1320 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1321 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1322 | } _resultobj = Py_BuildValue("i",_result); |
1323 | return _resultobj; | |
1324 | } | |
1325 | ||
1326 | #define wxListItem_GetAlign(_swigobj) (_swigobj->GetAlign()) | |
1327 | static PyObject *_wrap_wxListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1328 | PyObject * _resultobj; | |
1329 | wxListColumnFormat _result; | |
1330 | wxListItem * _arg0; | |
1331 | PyObject * _argo0 = 0; | |
1332 | char *_kwnames[] = { "self", NULL }; | |
1333 | ||
1334 | self = self; | |
1335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAlign",_kwnames,&_argo0)) | |
1336 | return NULL; | |
1337 | if (_argo0) { | |
1338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAlign. Expected _wxListItem_p."); | |
1341 | return NULL; | |
1342 | } | |
1343 | } | |
1344 | { | |
474c48f9 | 1345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1346 | _result = (wxListColumnFormat )wxListItem_GetAlign(_arg0); |
f6bcfd97 | 1347 | |
474c48f9 | 1348 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1349 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1350 | } _resultobj = Py_BuildValue("i",_result); |
1351 | return _resultobj; | |
1352 | } | |
1353 | ||
1354 | #define wxListItem_GetAttributes(_swigobj) (_swigobj->GetAttributes()) | |
1355 | static PyObject *_wrap_wxListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1356 | PyObject * _resultobj; | |
1357 | wxListItemAttr * _result; | |
1358 | wxListItem * _arg0; | |
1359 | PyObject * _argo0 = 0; | |
1360 | char *_kwnames[] = { "self", NULL }; | |
1361 | char _ptemp[128]; | |
1362 | ||
1363 | self = self; | |
1364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAttributes",_kwnames,&_argo0)) | |
1365 | return NULL; | |
1366 | if (_argo0) { | |
1367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAttributes. Expected _wxListItem_p."); | |
1370 | return NULL; | |
1371 | } | |
1372 | } | |
1373 | { | |
474c48f9 | 1374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1375 | _result = (wxListItemAttr *)wxListItem_GetAttributes(_arg0); |
f6bcfd97 | 1376 | |
474c48f9 | 1377 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1378 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1379 | } if (_result) { |
1380 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
1381 | _resultobj = Py_BuildValue("s",_ptemp); | |
1382 | } else { | |
1383 | Py_INCREF(Py_None); | |
1384 | _resultobj = Py_None; | |
1385 | } | |
1386 | return _resultobj; | |
1387 | } | |
1388 | ||
1389 | #define wxListItem_HasAttributes(_swigobj) (_swigobj->HasAttributes()) | |
1390 | static PyObject *_wrap_wxListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1391 | PyObject * _resultobj; | |
1392 | bool _result; | |
1393 | wxListItem * _arg0; | |
1394 | PyObject * _argo0 = 0; | |
1395 | char *_kwnames[] = { "self", NULL }; | |
1396 | ||
1397 | self = self; | |
1398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_HasAttributes",_kwnames,&_argo0)) | |
1399 | return NULL; | |
1400 | if (_argo0) { | |
1401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_HasAttributes. Expected _wxListItem_p."); | |
1404 | return NULL; | |
1405 | } | |
1406 | } | |
1407 | { | |
474c48f9 | 1408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1409 | _result = (bool )wxListItem_HasAttributes(_arg0); |
f6bcfd97 | 1410 | |
474c48f9 | 1411 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1412 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1413 | } _resultobj = Py_BuildValue("i",_result); |
1414 | return _resultobj; | |
1415 | } | |
1416 | ||
1417 | #define wxListItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
1418 | static PyObject *_wrap_wxListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1419 | PyObject * _resultobj; | |
1420 | wxColour * _result; | |
1421 | wxListItem * _arg0; | |
1422 | PyObject * _argo0 = 0; | |
1423 | char *_kwnames[] = { "self", NULL }; | |
1424 | char _ptemp[128]; | |
1425 | ||
1426 | self = self; | |
1427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetTextColour",_kwnames,&_argo0)) | |
1428 | return NULL; | |
1429 | if (_argo0) { | |
1430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetTextColour. Expected _wxListItem_p."); | |
1433 | return NULL; | |
1434 | } | |
1435 | } | |
1436 | { | |
474c48f9 | 1437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1438 | _result = new wxColour (wxListItem_GetTextColour(_arg0)); |
f6bcfd97 | 1439 | |
474c48f9 | 1440 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1441 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1442 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1443 | _resultobj = Py_BuildValue("s",_ptemp); | |
1444 | return _resultobj; | |
1445 | } | |
1446 | ||
1447 | #define wxListItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1448 | static PyObject *_wrap_wxListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1449 | PyObject * _resultobj; | |
1450 | wxColour * _result; | |
1451 | wxListItem * _arg0; | |
1452 | PyObject * _argo0 = 0; | |
1453 | char *_kwnames[] = { "self", NULL }; | |
1454 | char _ptemp[128]; | |
1455 | ||
1456 | self = self; | |
1457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetBackgroundColour",_kwnames,&_argo0)) | |
1458 | return NULL; | |
1459 | if (_argo0) { | |
1460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetBackgroundColour. Expected _wxListItem_p."); | |
1463 | return NULL; | |
1464 | } | |
1465 | } | |
1466 | { | |
474c48f9 | 1467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1468 | _result = new wxColour (wxListItem_GetBackgroundColour(_arg0)); |
f6bcfd97 | 1469 | |
474c48f9 | 1470 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1471 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1472 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1473 | _resultobj = Py_BuildValue("s",_ptemp); | |
1474 | return _resultobj; | |
1475 | } | |
1476 | ||
1477 | #define wxListItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
1478 | static PyObject *_wrap_wxListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1479 | PyObject * _resultobj; | |
1480 | wxFont * _result; | |
1481 | wxListItem * _arg0; | |
1482 | PyObject * _argo0 = 0; | |
1483 | char *_kwnames[] = { "self", NULL }; | |
1484 | char _ptemp[128]; | |
1485 | ||
1486 | self = self; | |
1487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetFont",_kwnames,&_argo0)) | |
1488 | return NULL; | |
1489 | if (_argo0) { | |
1490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetFont. Expected _wxListItem_p."); | |
1493 | return NULL; | |
1494 | } | |
1495 | } | |
1496 | { | |
474c48f9 | 1497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1498 | _result = new wxFont (wxListItem_GetFont(_arg0)); |
f6bcfd97 | 1499 | |
474c48f9 | 1500 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1501 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1502 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
1503 | _resultobj = Py_BuildValue("s",_ptemp); | |
1504 | return _resultobj; | |
1505 | } | |
1506 | ||
1507 | #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval) | |
1508 | static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1509 | PyObject * _resultobj; | |
1510 | long _result; | |
1511 | wxListItem * _arg0; | |
1512 | long _arg1; | |
1513 | PyObject * _argo0 = 0; | |
1514 | char *_kwnames[] = { "self","m_mask", NULL }; | |
1515 | ||
1516 | self = self; | |
1517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1)) | |
1518 | return NULL; | |
1519 | if (_argo0) { | |
1520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p."); | |
1523 | return NULL; | |
1524 | } | |
1525 | } | |
1526 | { | |
474c48f9 | 1527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1528 | _result = (long )wxListItem_m_mask_set(_arg0,_arg1); |
f6bcfd97 | 1529 | |
474c48f9 | 1530 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1531 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1532 | } _resultobj = Py_BuildValue("l",_result); |
1533 | return _resultobj; | |
1534 | } | |
1535 | ||
1536 | #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask) | |
1537 | static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1538 | PyObject * _resultobj; | |
1539 | long _result; | |
1540 | wxListItem * _arg0; | |
1541 | PyObject * _argo0 = 0; | |
1542 | char *_kwnames[] = { "self", NULL }; | |
1543 | ||
1544 | self = self; | |
1545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0)) | |
1546 | return NULL; | |
1547 | if (_argo0) { | |
1548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p."); | |
1551 | return NULL; | |
1552 | } | |
1553 | } | |
1554 | { | |
474c48f9 | 1555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1556 | _result = (long )wxListItem_m_mask_get(_arg0); |
f6bcfd97 | 1557 | |
474c48f9 | 1558 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1559 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1560 | } _resultobj = Py_BuildValue("l",_result); |
1561 | return _resultobj; | |
1562 | } | |
1563 | ||
1564 | #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval) | |
1565 | static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
1566 | PyObject * _resultobj; |
1567 | long _result; | |
1568 | wxListItem * _arg0; | |
1569 | long _arg1; | |
1d99702e | 1570 | PyObject * _argo0 = 0; |
f6bcfd97 | 1571 | char *_kwnames[] = { "self","m_itemId", NULL }; |
af309447 RD |
1572 | |
1573 | self = self; | |
f6bcfd97 | 1574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1575 | return NULL; |
1d99702e RD |
1576 | if (_argo0) { |
1577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p."); |
af309447 RD |
1580 | return NULL; |
1581 | } | |
1582 | } | |
cf694132 | 1583 | { |
474c48f9 | 1584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1585 | _result = (long )wxListItem_m_itemId_set(_arg0,_arg1); |
f6bcfd97 | 1586 | |
474c48f9 | 1587 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1588 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1589 | } _resultobj = Py_BuildValue("l",_result); |
1590 | return _resultobj; | |
1591 | } | |
1592 | ||
1593 | #define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId) | |
1594 | static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1595 | PyObject * _resultobj; | |
1596 | long _result; | |
1597 | wxListItem * _arg0; | |
1598 | PyObject * _argo0 = 0; | |
1599 | char *_kwnames[] = { "self", NULL }; | |
1600 | ||
1601 | self = self; | |
1602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0)) | |
1603 | return NULL; | |
1604 | if (_argo0) { | |
1605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p."); | |
1608 | return NULL; | |
1609 | } | |
1610 | } | |
1611 | { | |
474c48f9 | 1612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1613 | _result = (long )wxListItem_m_itemId_get(_arg0); |
f6bcfd97 | 1614 | |
474c48f9 | 1615 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1616 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1617 | } _resultobj = Py_BuildValue("l",_result); |
1618 | return _resultobj; | |
1619 | } | |
1620 | ||
1621 | #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
1622 | static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1623 | PyObject * _resultobj; | |
1624 | int _result; | |
1625 | wxListItem * _arg0; | |
1626 | int _arg1; | |
1627 | PyObject * _argo0 = 0; | |
1628 | char *_kwnames[] = { "self","m_col", NULL }; | |
1629 | ||
1630 | self = self; | |
1631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1)) | |
1632 | return NULL; | |
1633 | if (_argo0) { | |
1634 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1635 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p."); | |
1637 | return NULL; | |
1638 | } | |
1639 | } | |
1640 | { | |
474c48f9 | 1641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1642 | _result = (int )wxListItem_m_col_set(_arg0,_arg1); |
f6bcfd97 | 1643 | |
474c48f9 | 1644 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1645 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1646 | } _resultobj = Py_BuildValue("i",_result); |
1647 | return _resultobj; | |
1648 | } | |
1649 | ||
1650 | #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
1651 | static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1652 | PyObject * _resultobj; | |
1653 | int _result; | |
1654 | wxListItem * _arg0; | |
1655 | PyObject * _argo0 = 0; | |
1656 | char *_kwnames[] = { "self", NULL }; | |
1657 | ||
1658 | self = self; | |
1659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0)) | |
1660 | return NULL; | |
1661 | if (_argo0) { | |
1662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p."); | |
1665 | return NULL; | |
1666 | } | |
1667 | } | |
1668 | { | |
474c48f9 | 1669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1670 | _result = (int )wxListItem_m_col_get(_arg0); |
f6bcfd97 | 1671 | |
474c48f9 | 1672 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1673 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1674 | } _resultobj = Py_BuildValue("i",_result); |
1675 | return _resultobj; | |
1676 | } | |
1677 | ||
1678 | #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval) | |
1679 | static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1680 | PyObject * _resultobj; | |
1681 | long _result; | |
1682 | wxListItem * _arg0; | |
1683 | long _arg1; | |
1684 | PyObject * _argo0 = 0; | |
1685 | char *_kwnames[] = { "self","m_state", NULL }; | |
1686 | ||
1687 | self = self; | |
1688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1)) | |
1689 | return NULL; | |
1690 | if (_argo0) { | |
1691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p."); | |
1694 | return NULL; | |
1695 | } | |
1696 | } | |
1697 | { | |
474c48f9 | 1698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1699 | _result = (long )wxListItem_m_state_set(_arg0,_arg1); |
f6bcfd97 | 1700 | |
474c48f9 | 1701 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1702 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1703 | } _resultobj = Py_BuildValue("l",_result); |
1704 | return _resultobj; | |
1705 | } | |
1706 | ||
1707 | #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state) | |
1708 | static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1709 | PyObject * _resultobj; | |
1710 | long _result; | |
1711 | wxListItem * _arg0; | |
1712 | PyObject * _argo0 = 0; | |
1713 | char *_kwnames[] = { "self", NULL }; | |
1714 | ||
1715 | self = self; | |
1716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0)) | |
1717 | return NULL; | |
1718 | if (_argo0) { | |
1719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p."); | |
1722 | return NULL; | |
1723 | } | |
1724 | } | |
1725 | { | |
474c48f9 | 1726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1727 | _result = (long )wxListItem_m_state_get(_arg0); |
f6bcfd97 | 1728 | |
474c48f9 | 1729 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1730 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1731 | } _resultobj = Py_BuildValue("l",_result); |
1732 | return _resultobj; | |
1733 | } | |
1734 | ||
1735 | #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval) | |
1736 | static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1737 | PyObject * _resultobj; | |
1738 | long _result; | |
1739 | wxListItem * _arg0; | |
1740 | long _arg1; | |
1741 | PyObject * _argo0 = 0; | |
1742 | char *_kwnames[] = { "self","m_stateMask", NULL }; | |
1743 | ||
1744 | self = self; | |
1745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1)) | |
1746 | return NULL; | |
1747 | if (_argo0) { | |
1748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p."); | |
1751 | return NULL; | |
1752 | } | |
1753 | } | |
1754 | { | |
474c48f9 | 1755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1756 | _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1); |
f6bcfd97 | 1757 | |
474c48f9 | 1758 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1759 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1760 | } _resultobj = Py_BuildValue("l",_result); |
1761 | return _resultobj; | |
1762 | } | |
1763 | ||
1764 | #define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask) | |
1765 | static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1766 | PyObject * _resultobj; | |
1767 | long _result; | |
1768 | wxListItem * _arg0; | |
1769 | PyObject * _argo0 = 0; | |
1770 | char *_kwnames[] = { "self", NULL }; | |
1771 | ||
1772 | self = self; | |
1773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0)) | |
1774 | return NULL; | |
1775 | if (_argo0) { | |
1776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p."); | |
1779 | return NULL; | |
1780 | } | |
1781 | } | |
1782 | { | |
474c48f9 | 1783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1784 | _result = (long )wxListItem_m_stateMask_get(_arg0); |
cf694132 | 1785 | |
474c48f9 | 1786 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1787 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1788 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
1789 | return _resultobj; |
1790 | } | |
1791 | ||
f6bcfd97 BP |
1792 | #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval) |
1793 | static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1794 | PyObject * _resultobj; | |
1795 | wxString * _result; | |
1796 | wxListItem * _arg0; | |
1797 | wxString * _arg1; | |
1798 | PyObject * _argo0 = 0; | |
1799 | PyObject * _obj1 = 0; | |
1800 | char *_kwnames[] = { "self","m_text", NULL }; | |
1801 | ||
1802 | self = self; | |
1803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1)) | |
1804 | return NULL; | |
1805 | if (_argo0) { | |
1806 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1807 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p."); | |
1809 | return NULL; | |
1810 | } | |
1811 | } | |
1812 | { | |
c8bc7bb8 RD |
1813 | _arg1 = wxString_in_helper(_obj1); |
1814 | if (_arg1 == NULL) | |
f6bcfd97 | 1815 | return NULL; |
f6bcfd97 BP |
1816 | } |
1817 | { | |
474c48f9 | 1818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1819 | _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1); |
f6bcfd97 | 1820 | |
474c48f9 | 1821 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1822 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1823 | }{ |
c8bc7bb8 RD |
1824 | #if wxUSE_UNICODE |
1825 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1826 | #else | |
f6bcfd97 | 1827 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1828 | #endif |
f6bcfd97 BP |
1829 | } |
1830 | { | |
1831 | if (_obj1) | |
1832 | delete _arg1; | |
1833 | } | |
1834 | return _resultobj; | |
1835 | } | |
1836 | ||
1837 | #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text) | |
1838 | static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1839 | PyObject * _resultobj; |
f6bcfd97 | 1840 | wxString * _result; |
8ab979d7 | 1841 | wxListItem * _arg0; |
1d99702e | 1842 | PyObject * _argo0 = 0; |
efc5f224 | 1843 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1844 | |
1845 | self = self; | |
f6bcfd97 | 1846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0)) |
8ab979d7 | 1847 | return NULL; |
1d99702e RD |
1848 | if (_argo0) { |
1849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1852 | return NULL; |
1853 | } | |
1854 | } | |
cf694132 | 1855 | { |
474c48f9 | 1856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1857 | _result = (wxString *)wxListItem_m_text_get(_arg0); |
cf694132 | 1858 | |
474c48f9 | 1859 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1860 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1861 | }{ |
c8bc7bb8 RD |
1862 | #if wxUSE_UNICODE |
1863 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1864 | #else | |
f6bcfd97 | 1865 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1866 | #endif |
f6bcfd97 | 1867 | } |
8ab979d7 RD |
1868 | return _resultobj; |
1869 | } | |
1870 | ||
f6bcfd97 BP |
1871 | #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval) |
1872 | static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1873 | PyObject * _resultobj; |
f6bcfd97 | 1874 | int _result; |
af309447 | 1875 | wxListItem * _arg0; |
f6bcfd97 | 1876 | int _arg1; |
1d99702e | 1877 | PyObject * _argo0 = 0; |
f6bcfd97 | 1878 | char *_kwnames[] = { "self","m_image", NULL }; |
af309447 RD |
1879 | |
1880 | self = self; | |
f6bcfd97 | 1881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1882 | return NULL; |
1d99702e RD |
1883 | if (_argo0) { |
1884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p."); |
af309447 RD |
1887 | return NULL; |
1888 | } | |
1889 | } | |
cf694132 | 1890 | { |
474c48f9 | 1891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1892 | _result = (int )wxListItem_m_image_set(_arg0,_arg1); |
cf694132 | 1893 | |
474c48f9 | 1894 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1895 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1896 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
1897 | return _resultobj; |
1898 | } | |
1899 | ||
f6bcfd97 BP |
1900 | #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image) |
1901 | static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1902 | PyObject * _resultobj; |
f6bcfd97 | 1903 | int _result; |
8ab979d7 | 1904 | wxListItem * _arg0; |
1d99702e | 1905 | PyObject * _argo0 = 0; |
efc5f224 | 1906 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1907 | |
1908 | self = self; | |
f6bcfd97 | 1909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0)) |
8ab979d7 | 1910 | return NULL; |
1d99702e RD |
1911 | if (_argo0) { |
1912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1915 | return NULL; |
1916 | } | |
1917 | } | |
cf694132 | 1918 | { |
474c48f9 | 1919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1920 | _result = (int )wxListItem_m_image_get(_arg0); |
cf694132 | 1921 | |
474c48f9 | 1922 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1923 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1924 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1925 | return _resultobj; |
1926 | } | |
1927 | ||
f6bcfd97 BP |
1928 | #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval) |
1929 | static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1930 | PyObject * _resultobj; |
f6bcfd97 | 1931 | long _result; |
af309447 | 1932 | wxListItem * _arg0; |
f6bcfd97 | 1933 | long _arg1; |
1d99702e | 1934 | PyObject * _argo0 = 0; |
f6bcfd97 | 1935 | char *_kwnames[] = { "self","m_data", NULL }; |
af309447 RD |
1936 | |
1937 | self = self; | |
f6bcfd97 | 1938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1939 | return NULL; |
1d99702e RD |
1940 | if (_argo0) { |
1941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p."); |
af309447 RD |
1944 | return NULL; |
1945 | } | |
1946 | } | |
cf694132 | 1947 | { |
474c48f9 | 1948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1949 | _result = (long )wxListItem_m_data_set(_arg0,_arg1); |
cf694132 | 1950 | |
474c48f9 | 1951 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1952 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1953 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
1954 | return _resultobj; |
1955 | } | |
1956 | ||
f6bcfd97 BP |
1957 | #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data) |
1958 | static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1959 | PyObject * _resultobj; |
f6bcfd97 | 1960 | long _result; |
8ab979d7 | 1961 | wxListItem * _arg0; |
1d99702e | 1962 | PyObject * _argo0 = 0; |
efc5f224 | 1963 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1964 | |
1965 | self = self; | |
f6bcfd97 | 1966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0)) |
8ab979d7 | 1967 | return NULL; |
1d99702e RD |
1968 | if (_argo0) { |
1969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1972 | return NULL; |
1973 | } | |
1974 | } | |
cf694132 | 1975 | { |
474c48f9 | 1976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1977 | _result = (long )wxListItem_m_data_get(_arg0); |
cf694132 | 1978 | |
474c48f9 | 1979 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1980 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1981 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
1982 | return _resultobj; |
1983 | } | |
1984 | ||
f6bcfd97 BP |
1985 | #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval) |
1986 | static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1987 | PyObject * _resultobj; |
f6bcfd97 | 1988 | int _result; |
af309447 | 1989 | wxListItem * _arg0; |
f6bcfd97 | 1990 | int _arg1; |
1d99702e | 1991 | PyObject * _argo0 = 0; |
f6bcfd97 | 1992 | char *_kwnames[] = { "self","m_format", NULL }; |
af309447 RD |
1993 | |
1994 | self = self; | |
f6bcfd97 | 1995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1996 | return NULL; |
1d99702e RD |
1997 | if (_argo0) { |
1998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p."); |
af309447 RD |
2001 | return NULL; |
2002 | } | |
2003 | } | |
cf694132 | 2004 | { |
474c48f9 | 2005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2006 | _result = (int )wxListItem_m_format_set(_arg0,_arg1); |
cf694132 | 2007 | |
474c48f9 | 2008 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2009 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2010 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2011 | return _resultobj; |
2012 | } | |
2013 | ||
f6bcfd97 BP |
2014 | #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format) |
2015 | static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2016 | PyObject * _resultobj; |
f6bcfd97 | 2017 | int _result; |
8ab979d7 | 2018 | wxListItem * _arg0; |
1d99702e | 2019 | PyObject * _argo0 = 0; |
efc5f224 | 2020 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2021 | |
2022 | self = self; | |
f6bcfd97 | 2023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0)) |
8ab979d7 | 2024 | return NULL; |
1d99702e RD |
2025 | if (_argo0) { |
2026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p."); |
8ab979d7 RD |
2029 | return NULL; |
2030 | } | |
2031 | } | |
cf694132 | 2032 | { |
474c48f9 | 2033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2034 | _result = (int )wxListItem_m_format_get(_arg0); |
cf694132 | 2035 | |
474c48f9 | 2036 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2037 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2038 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2039 | return _resultobj; |
2040 | } | |
2041 | ||
f6bcfd97 BP |
2042 | #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval) |
2043 | static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2044 | PyObject * _resultobj; |
f6bcfd97 | 2045 | int _result; |
af309447 | 2046 | wxListItem * _arg0; |
f6bcfd97 | 2047 | int _arg1; |
1d99702e | 2048 | PyObject * _argo0 = 0; |
f6bcfd97 | 2049 | char *_kwnames[] = { "self","m_width", NULL }; |
af309447 RD |
2050 | |
2051 | self = self; | |
f6bcfd97 | 2052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2053 | return NULL; |
1d99702e RD |
2054 | if (_argo0) { |
2055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p."); |
af309447 RD |
2058 | return NULL; |
2059 | } | |
2060 | } | |
cf694132 | 2061 | { |
474c48f9 | 2062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2063 | _result = (int )wxListItem_m_width_set(_arg0,_arg1); |
cf694132 | 2064 | |
474c48f9 | 2065 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2066 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2067 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2068 | return _resultobj; |
2069 | } | |
2070 | ||
f6bcfd97 BP |
2071 | #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width) |
2072 | static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2073 | PyObject * _resultobj; |
f6bcfd97 | 2074 | int _result; |
8ab979d7 | 2075 | wxListItem * _arg0; |
1d99702e | 2076 | PyObject * _argo0 = 0; |
efc5f224 | 2077 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2078 | |
2079 | self = self; | |
f6bcfd97 | 2080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0)) |
8ab979d7 | 2081 | return NULL; |
1d99702e RD |
2082 | if (_argo0) { |
2083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p."); |
8ab979d7 RD |
2086 | return NULL; |
2087 | } | |
2088 | } | |
cf694132 | 2089 | { |
474c48f9 | 2090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2091 | _result = (int )wxListItem_m_width_get(_arg0); |
cf694132 | 2092 | |
474c48f9 | 2093 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2094 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2095 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2096 | return _resultobj; |
2097 | } | |
2098 | ||
c368d904 RD |
2099 | static void *SwigwxListEventTowxNotifyEvent(void *ptr) { |
2100 | wxListEvent *src; | |
2101 | wxNotifyEvent *dest; | |
2102 | src = (wxListEvent *) ptr; | |
2103 | dest = (wxNotifyEvent *) src; | |
2104 | return (void *) dest; | |
2105 | } | |
2106 | ||
f6bcfd97 BP |
2107 | static void *SwigwxListEventTowxCommandEvent(void *ptr) { |
2108 | wxListEvent *src; | |
2109 | wxCommandEvent *dest; | |
2110 | src = (wxListEvent *) ptr; | |
2111 | dest = (wxCommandEvent *) src; | |
2112 | return (void *) dest; | |
2113 | } | |
2114 | ||
2115 | static void *SwigwxListEventTowxEvent(void *ptr) { | |
2116 | wxListEvent *src; | |
2117 | wxEvent *dest; | |
2118 | src = (wxListEvent *) ptr; | |
2119 | dest = (wxEvent *) src; | |
2120 | return (void *) dest; | |
2121 | } | |
2122 | ||
9df61a29 RD |
2123 | static void *SwigwxListEventTowxObject(void *ptr) { |
2124 | wxListEvent *src; | |
2125 | wxObject *dest; | |
2126 | src = (wxListEvent *) ptr; | |
2127 | dest = (wxObject *) src; | |
2128 | return (void *) dest; | |
2129 | } | |
2130 | ||
059a841c RD |
2131 | #define new_wxListEvent(_swigarg0,_swigarg1) (new wxListEvent(_swigarg0,_swigarg1)) |
2132 | static PyObject *_wrap_new_wxListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2133 | PyObject * _resultobj; | |
2134 | wxListEvent * _result; | |
2135 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
2136 | int _arg1 = (int ) 0; | |
2137 | char *_kwnames[] = { "commandType","id", NULL }; | |
2138 | char _ptemp[128]; | |
2139 | ||
2140 | self = self; | |
2141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxListEvent",_kwnames,&_arg0,&_arg1)) | |
2142 | return NULL; | |
2143 | { | |
474c48f9 | 2144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2145 | _result = (wxListEvent *)new_wxListEvent(_arg0,_arg1); |
059a841c | 2146 | |
474c48f9 | 2147 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
2148 | if (PyErr_Occurred()) return NULL; |
2149 | } if (_result) { | |
2150 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListEvent_p"); | |
2151 | _resultobj = Py_BuildValue("s",_ptemp); | |
2152 | } else { | |
2153 | Py_INCREF(Py_None); | |
2154 | _resultobj = Py_None; | |
2155 | } | |
2156 | return _resultobj; | |
2157 | } | |
2158 | ||
f6bcfd97 BP |
2159 | #define wxListEvent_m_code_set(_swigobj,_swigval) (_swigobj->m_code = _swigval,_swigval) |
2160 | static PyObject *_wrap_wxListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2161 | PyObject * _resultobj; |
f6bcfd97 BP |
2162 | int _result; |
2163 | wxListEvent * _arg0; | |
2164 | int _arg1; | |
1d99702e | 2165 | PyObject * _argo0 = 0; |
f6bcfd97 | 2166 | char *_kwnames[] = { "self","m_code", NULL }; |
af309447 RD |
2167 | |
2168 | self = self; | |
f6bcfd97 | 2169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_code_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2170 | return NULL; |
1d99702e RD |
2171 | if (_argo0) { |
2172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_set. Expected _wxListEvent_p."); | |
af309447 RD |
2175 | return NULL; |
2176 | } | |
2177 | } | |
af309447 | 2178 | { |
474c48f9 | 2179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2180 | _result = (int )wxListEvent_m_code_set(_arg0,_arg1); |
cf694132 | 2181 | |
474c48f9 | 2182 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2183 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2184 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2185 | return _resultobj; |
2186 | } | |
2187 | ||
f6bcfd97 BP |
2188 | #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code) |
2189 | static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2190 | PyObject * _resultobj; |
f6bcfd97 BP |
2191 | int _result; |
2192 | wxListEvent * _arg0; | |
1d99702e | 2193 | PyObject * _argo0 = 0; |
efc5f224 | 2194 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2195 | |
2196 | self = self; | |
f6bcfd97 | 2197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0)) |
8ab979d7 | 2198 | return NULL; |
1d99702e RD |
2199 | if (_argo0) { |
2200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2203 | return NULL; |
2204 | } | |
2205 | } | |
8ab979d7 | 2206 | { |
474c48f9 | 2207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2208 | _result = (int )wxListEvent_m_code_get(_arg0); |
cf694132 | 2209 | |
474c48f9 | 2210 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2211 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2212 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2213 | return _resultobj; |
2214 | } | |
2215 | ||
6e8a778a RD |
2216 | #define wxListEvent_m_oldItemIndex_set(_swigobj,_swigval) (_swigobj->m_oldItemIndex = _swigval,_swigval) |
2217 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2218 | PyObject * _resultobj; |
f6bcfd97 BP |
2219 | long _result; |
2220 | wxListEvent * _arg0; | |
2221 | long _arg1; | |
1d99702e | 2222 | PyObject * _argo0 = 0; |
6e8a778a | 2223 | char *_kwnames[] = { "self","m_oldItemIndex", NULL }; |
af309447 RD |
2224 | |
2225 | self = self; | |
6e8a778a | 2226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_oldItemIndex_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2227 | return NULL; |
1d99702e RD |
2228 | if (_argo0) { |
2229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_set. Expected _wxListEvent_p."); |
af309447 RD |
2232 | return NULL; |
2233 | } | |
2234 | } | |
cf694132 | 2235 | { |
474c48f9 | 2236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2237 | _result = (long )wxListEvent_m_oldItemIndex_set(_arg0,_arg1); |
cf694132 | 2238 | |
474c48f9 | 2239 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2240 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2241 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2242 | return _resultobj; |
2243 | } | |
2244 | ||
6e8a778a RD |
2245 | #define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex) |
2246 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2247 | PyObject * _resultobj; |
f6bcfd97 BP |
2248 | long _result; |
2249 | wxListEvent * _arg0; | |
1d99702e | 2250 | PyObject * _argo0 = 0; |
efc5f224 | 2251 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2252 | |
2253 | self = self; | |
6e8a778a | 2254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0)) |
8ab979d7 | 2255 | return NULL; |
1d99702e RD |
2256 | if (_argo0) { |
2257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p."); |
8ab979d7 RD |
2260 | return NULL; |
2261 | } | |
2262 | } | |
cf694132 | 2263 | { |
474c48f9 | 2264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2265 | _result = (long )wxListEvent_m_oldItemIndex_get(_arg0); |
cf694132 | 2266 | |
474c48f9 | 2267 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2268 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2269 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2270 | return _resultobj; |
2271 | } | |
2272 | ||
6e8a778a RD |
2273 | #define wxListEvent_m_itemIndex_set(_swigobj,_swigval) (_swigobj->m_itemIndex = _swigval,_swigval) |
2274 | static PyObject *_wrap_wxListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2275 | PyObject * _resultobj; |
6e8a778a | 2276 | long _result; |
f6bcfd97 | 2277 | wxListEvent * _arg0; |
6e8a778a | 2278 | long _arg1; |
1d99702e | 2279 | PyObject * _argo0 = 0; |
6e8a778a | 2280 | char *_kwnames[] = { "self","m_itemIndex", NULL }; |
af309447 RD |
2281 | |
2282 | self = self; | |
6e8a778a | 2283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_itemIndex_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2284 | return NULL; |
1d99702e RD |
2285 | if (_argo0) { |
2286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_set. Expected _wxListEvent_p."); |
af309447 RD |
2289 | return NULL; |
2290 | } | |
2291 | } | |
cf694132 | 2292 | { |
474c48f9 | 2293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2294 | _result = (long )wxListEvent_m_itemIndex_set(_arg0,_arg1); |
cf694132 | 2295 | |
474c48f9 | 2296 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2297 | if (PyErr_Occurred()) return NULL; |
6e8a778a | 2298 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2299 | return _resultobj; |
2300 | } | |
2301 | ||
6e8a778a RD |
2302 | #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex) |
2303 | static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2304 | PyObject * _resultobj; |
6e8a778a | 2305 | long _result; |
f6bcfd97 | 2306 | wxListEvent * _arg0; |
1d99702e | 2307 | PyObject * _argo0 = 0; |
efc5f224 | 2308 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2309 | |
2310 | self = self; | |
6e8a778a | 2311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0)) |
8ab979d7 | 2312 | return NULL; |
1d99702e RD |
2313 | if (_argo0) { |
2314 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2315 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p."); |
8ab979d7 RD |
2317 | return NULL; |
2318 | } | |
2319 | } | |
cf694132 | 2320 | { |
474c48f9 | 2321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2322 | _result = (long )wxListEvent_m_itemIndex_get(_arg0); |
cf694132 | 2323 | |
474c48f9 | 2324 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2325 | if (PyErr_Occurred()) return NULL; |
6e8a778a | 2326 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2327 | return _resultobj; |
2328 | } | |
2329 | ||
6e8a778a RD |
2330 | #define wxListEvent_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) |
2331 | static PyObject *_wrap_wxListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2332 | PyObject * _resultobj; |
6e8a778a | 2333 | int _result; |
f6bcfd97 | 2334 | wxListEvent * _arg0; |
6e8a778a | 2335 | int _arg1; |
1d99702e | 2336 | PyObject * _argo0 = 0; |
6e8a778a | 2337 | char *_kwnames[] = { "self","m_col", NULL }; |
af309447 RD |
2338 | |
2339 | self = self; | |
6e8a778a | 2340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_col_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2341 | return NULL; |
1d99702e RD |
2342 | if (_argo0) { |
2343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_set. Expected _wxListEvent_p."); |
af309447 RD |
2346 | return NULL; |
2347 | } | |
2348 | } | |
cf694132 | 2349 | { |
474c48f9 | 2350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2351 | _result = (int )wxListEvent_m_col_set(_arg0,_arg1); |
cf694132 | 2352 | |
474c48f9 | 2353 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2354 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2355 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2356 | return _resultobj; |
2357 | } | |
2358 | ||
6e8a778a RD |
2359 | #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col) |
2360 | static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2361 | PyObject * _resultobj; |
6e8a778a | 2362 | int _result; |
f6bcfd97 | 2363 | wxListEvent * _arg0; |
1d99702e | 2364 | PyObject * _argo0 = 0; |
efc5f224 | 2365 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2366 | |
2367 | self = self; | |
6e8a778a | 2368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0)) |
8ab979d7 | 2369 | return NULL; |
1d99702e RD |
2370 | if (_argo0) { |
2371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p."); |
8ab979d7 RD |
2374 | return NULL; |
2375 | } | |
2376 | } | |
cf694132 | 2377 | { |
474c48f9 | 2378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2379 | _result = (int )wxListEvent_m_col_get(_arg0); |
cf694132 | 2380 | |
474c48f9 | 2381 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2382 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2383 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2384 | return _resultobj; |
2385 | } | |
2386 | ||
f6bcfd97 BP |
2387 | #define wxListEvent_m_pointDrag_set(_swigobj,_swigval) (_swigobj->m_pointDrag = *(_swigval),_swigval) |
2388 | static PyObject *_wrap_wxListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2389 | PyObject * _resultobj; |
f6bcfd97 BP |
2390 | wxPoint * _result; |
2391 | wxListEvent * _arg0; | |
2392 | wxPoint * _arg1; | |
2393 | PyObject * _argo0 = 0; | |
2394 | wxPoint temp; | |
2395 | PyObject * _obj1 = 0; | |
2396 | char *_kwnames[] = { "self","m_pointDrag", NULL }; | |
8ab979d7 RD |
2397 | char _ptemp[128]; |
2398 | ||
2399 | self = self; | |
f6bcfd97 BP |
2400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_pointDrag_set",_kwnames,&_argo0,&_obj1)) |
2401 | return NULL; | |
2402 | if (_argo0) { | |
2403 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2404 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_set. Expected _wxListEvent_p."); | |
2406 | return NULL; | |
2407 | } | |
2408 | } | |
2409 | { | |
2410 | _arg1 = &temp; | |
2411 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 2412 | return NULL; |
f6bcfd97 | 2413 | } |
cf694132 | 2414 | { |
474c48f9 | 2415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2416 | _result = (wxPoint *)wxListEvent_m_pointDrag_set(_arg0,_arg1); |
cf694132 | 2417 | |
474c48f9 | 2418 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2419 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2420 | } if (_result) { |
f6bcfd97 | 2421 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); |
1d99702e RD |
2422 | _resultobj = Py_BuildValue("s",_ptemp); |
2423 | } else { | |
2424 | Py_INCREF(Py_None); | |
2425 | _resultobj = Py_None; | |
2426 | } | |
8ab979d7 RD |
2427 | return _resultobj; |
2428 | } | |
2429 | ||
f6bcfd97 BP |
2430 | #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag) |
2431 | static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2432 | PyObject * _resultobj; |
f6bcfd97 BP |
2433 | wxPoint * _result; |
2434 | wxListEvent * _arg0; | |
1d99702e | 2435 | PyObject * _argo0 = 0; |
efc5f224 | 2436 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2437 | char _ptemp[128]; |
8ab979d7 RD |
2438 | |
2439 | self = self; | |
f6bcfd97 | 2440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0)) |
8ab979d7 | 2441 | return NULL; |
1d99702e RD |
2442 | if (_argo0) { |
2443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2446 | return NULL; |
2447 | } | |
2448 | } | |
cf694132 | 2449 | { |
474c48f9 | 2450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2451 | _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0); |
cf694132 | 2452 | |
474c48f9 | 2453 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2454 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2455 | } if (_result) { |
2456 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
2457 | _resultobj = Py_BuildValue("s",_ptemp); | |
2458 | } else { | |
2459 | Py_INCREF(Py_None); | |
2460 | _resultobj = Py_None; | |
2461 | } | |
8ab979d7 RD |
2462 | return _resultobj; |
2463 | } | |
2464 | ||
f6bcfd97 BP |
2465 | #define wxListEvent_m_item_set(_swigobj,_swigval) (_swigobj->m_item = *(_swigval),_swigval) |
2466 | static PyObject *_wrap_wxListEvent_m_item_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2467 | PyObject * _resultobj; | |
2468 | wxListItem * _result; | |
2469 | wxListEvent * _arg0; | |
2470 | wxListItem * _arg1; | |
2471 | PyObject * _argo0 = 0; | |
2472 | PyObject * _argo1 = 0; | |
2473 | char *_kwnames[] = { "self","m_item", NULL }; | |
8ab979d7 | 2474 | |
f6bcfd97 BP |
2475 | self = self; |
2476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_item_set",_kwnames,&_argo0,&_argo1)) | |
2477 | return NULL; | |
2478 | if (_argo0) { | |
2479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_set. Expected _wxListEvent_p."); | |
2482 | return NULL; | |
2483 | } | |
2484 | } | |
2485 | if (_argo1) { | |
2486 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2487 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
2488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListEvent_m_item_set. Expected _wxListItem_p."); | |
2489 | return NULL; | |
2490 | } | |
2491 | } | |
2492 | { | |
474c48f9 | 2493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2494 | _result = (wxListItem *)wxListEvent_m_item_set(_arg0,_arg1); |
f6bcfd97 | 2495 | |
474c48f9 | 2496 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2497 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2498 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 | 2499 | return _resultobj; |
8ab979d7 RD |
2500 | } |
2501 | ||
f6bcfd97 BP |
2502 | #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item) |
2503 | static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2504 | PyObject * _resultobj; |
f6bcfd97 | 2505 | wxListItem * _result; |
af309447 | 2506 | wxListEvent * _arg0; |
1d99702e | 2507 | PyObject * _argo0 = 0; |
f6bcfd97 | 2508 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2509 | |
2510 | self = self; | |
f6bcfd97 | 2511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0)) |
af309447 | 2512 | return NULL; |
1d99702e RD |
2513 | if (_argo0) { |
2514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p."); |
af309447 RD |
2517 | return NULL; |
2518 | } | |
2519 | } | |
cf694132 | 2520 | { |
474c48f9 | 2521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2522 | _result = (wxListItem *)wxListEvent_m_item_get(_arg0); |
cf694132 | 2523 | |
474c48f9 | 2524 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2525 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2526 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
2527 | return _resultobj; |
2528 | } | |
2529 | ||
f6bcfd97 BP |
2530 | #define wxListEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
2531 | static PyObject *_wrap_wxListEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2532 | PyObject * _resultobj; |
2533 | int _result; | |
2534 | wxListEvent * _arg0; | |
1d99702e | 2535 | PyObject * _argo0 = 0; |
efc5f224 | 2536 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2537 | |
2538 | self = self; | |
f6bcfd97 | 2539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 2540 | return NULL; |
1d99702e RD |
2541 | if (_argo0) { |
2542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCode. Expected _wxListEvent_p."); |
8ab979d7 RD |
2545 | return NULL; |
2546 | } | |
2547 | } | |
cf694132 | 2548 | { |
474c48f9 | 2549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2550 | _result = (int )wxListEvent_GetCode(_arg0); |
cf694132 | 2551 | |
474c48f9 | 2552 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2553 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2554 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2555 | return _resultobj; |
2556 | } | |
2557 | ||
f6bcfd97 BP |
2558 | #define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex()) |
2559 | static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2560 | PyObject * _resultobj; |
2561 | long _result; | |
2562 | wxListEvent * _arg0; | |
1d99702e | 2563 | PyObject * _argo0 = 0; |
f6bcfd97 | 2564 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2565 | |
2566 | self = self; | |
f6bcfd97 | 2567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0)) |
af309447 | 2568 | return NULL; |
1d99702e RD |
2569 | if (_argo0) { |
2570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p."); |
af309447 RD |
2573 | return NULL; |
2574 | } | |
2575 | } | |
cf694132 | 2576 | { |
474c48f9 | 2577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2578 | _result = (long )wxListEvent_GetIndex(_arg0); |
cf694132 | 2579 | |
474c48f9 | 2580 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2581 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2582 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2583 | return _resultobj; |
2584 | } | |
2585 | ||
f6bcfd97 BP |
2586 | #define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn()) |
2587 | static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2588 | PyObject * _resultobj; |
f6bcfd97 | 2589 | int _result; |
8ab979d7 | 2590 | wxListEvent * _arg0; |
1d99702e | 2591 | PyObject * _argo0 = 0; |
efc5f224 | 2592 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2593 | |
2594 | self = self; | |
f6bcfd97 | 2595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0)) |
8ab979d7 | 2596 | return NULL; |
1d99702e RD |
2597 | if (_argo0) { |
2598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p."); |
8ab979d7 RD |
2601 | return NULL; |
2602 | } | |
2603 | } | |
cf694132 | 2604 | { |
474c48f9 | 2605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2606 | _result = (int )wxListEvent_GetColumn(_arg0); |
cf694132 | 2607 | |
474c48f9 | 2608 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2609 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2610 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2611 | return _resultobj; |
2612 | } | |
2613 | ||
f6bcfd97 BP |
2614 | #define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
2615 | static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2616 | PyObject * _resultobj; |
f6bcfd97 | 2617 | wxPoint * _result; |
8ab979d7 | 2618 | wxListEvent * _arg0; |
1d99702e | 2619 | PyObject * _argo0 = 0; |
efc5f224 | 2620 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2621 | char _ptemp[128]; |
8ab979d7 RD |
2622 | |
2623 | self = self; | |
f6bcfd97 | 2624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 2625 | return NULL; |
1d99702e RD |
2626 | if (_argo0) { |
2627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetPoint. Expected _wxListEvent_p."); |
8ab979d7 RD |
2630 | return NULL; |
2631 | } | |
2632 | } | |
cf694132 | 2633 | { |
474c48f9 | 2634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2635 | _result = new wxPoint (wxListEvent_GetPoint(_arg0)); |
cf694132 | 2636 | |
474c48f9 | 2637 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2638 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2639 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2640 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
2641 | return _resultobj; |
2642 | } | |
2643 | ||
f6bcfd97 BP |
2644 | #define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
2645 | static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2646 | PyObject * _resultobj; |
f6bcfd97 | 2647 | wxString * _result; |
af309447 | 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_GetLabel",_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_GetLabel. Expected _wxListEvent_p."); |
af309447 RD |
2659 | return NULL; |
2660 | } | |
2661 | } | |
cf694132 | 2662 | { |
474c48f9 | 2663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2664 | const wxString & _result_ref = wxListEvent_GetLabel(_arg0); |
f6bcfd97 | 2665 | _result = (wxString *) &_result_ref; |
cf694132 | 2666 | |
474c48f9 | 2667 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2668 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2669 | }{ |
c8bc7bb8 RD |
2670 | #if wxUSE_UNICODE |
2671 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2672 | #else | |
f6bcfd97 | 2673 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2674 | #endif |
f6bcfd97 | 2675 | } |
af309447 RD |
2676 | return _resultobj; |
2677 | } | |
2678 | ||
f6bcfd97 BP |
2679 | #define wxListEvent_GetText(_swigobj) (_swigobj->GetText()) |
2680 | static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2681 | PyObject * _resultobj; |
f6bcfd97 | 2682 | wxString * _result; |
8ab979d7 | 2683 | wxListEvent * _arg0; |
1d99702e | 2684 | PyObject * _argo0 = 0; |
efc5f224 | 2685 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2686 | |
2687 | self = self; | |
f6bcfd97 | 2688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0)) |
8ab979d7 | 2689 | return NULL; |
1d99702e RD |
2690 | if (_argo0) { |
2691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p."); |
8ab979d7 RD |
2694 | return NULL; |
2695 | } | |
2696 | } | |
cf694132 | 2697 | { |
474c48f9 | 2698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2699 | const wxString & _result_ref = wxListEvent_GetText(_arg0); |
f6bcfd97 | 2700 | _result = (wxString *) &_result_ref; |
cf694132 | 2701 | |
474c48f9 | 2702 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2703 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2704 | }{ |
c8bc7bb8 RD |
2705 | #if wxUSE_UNICODE |
2706 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2707 | #else | |
f6bcfd97 | 2708 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2709 | #endif |
f6bcfd97 | 2710 | } |
8ab979d7 RD |
2711 | return _resultobj; |
2712 | } | |
2713 | ||
f6bcfd97 BP |
2714 | #define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage()) |
2715 | static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2716 | PyObject * _resultobj; |
f6bcfd97 | 2717 | int _result; |
af309447 | 2718 | wxListEvent * _arg0; |
1d99702e | 2719 | PyObject * _argo0 = 0; |
f6bcfd97 | 2720 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2721 | |
2722 | self = self; | |
f6bcfd97 | 2723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0)) |
af309447 | 2724 | return NULL; |
1d99702e RD |
2725 | if (_argo0) { |
2726 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2727 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p."); |
af309447 RD |
2729 | return NULL; |
2730 | } | |
2731 | } | |
cf694132 | 2732 | { |
474c48f9 | 2733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2734 | _result = (int )wxListEvent_GetImage(_arg0); |
cf694132 | 2735 | |
474c48f9 | 2736 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2737 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2738 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2739 | return _resultobj; |
2740 | } | |
2741 | ||
f6bcfd97 BP |
2742 | #define wxListEvent_GetData(_swigobj) (_swigobj->GetData()) |
2743 | static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2744 | PyObject * _resultobj; |
f6bcfd97 | 2745 | long _result; |
8ab979d7 | 2746 | wxListEvent * _arg0; |
1d99702e | 2747 | PyObject * _argo0 = 0; |
efc5f224 | 2748 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2749 | |
2750 | self = self; | |
f6bcfd97 | 2751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0)) |
8ab979d7 | 2752 | return NULL; |
1d99702e RD |
2753 | if (_argo0) { |
2754 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2755 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p."); |
8ab979d7 RD |
2757 | return NULL; |
2758 | } | |
2759 | } | |
cf694132 | 2760 | { |
474c48f9 | 2761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2762 | _result = (long )wxListEvent_GetData(_arg0); |
cf694132 | 2763 | |
474c48f9 | 2764 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2765 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2766 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2767 | return _resultobj; |
2768 | } | |
2769 | ||
f6bcfd97 BP |
2770 | #define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask()) |
2771 | static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2772 | PyObject * _resultobj; |
f6bcfd97 | 2773 | long _result; |
af309447 | 2774 | wxListEvent * _arg0; |
1d99702e | 2775 | PyObject * _argo0 = 0; |
f6bcfd97 | 2776 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2777 | |
2778 | self = self; | |
f6bcfd97 | 2779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetMask",_kwnames,&_argo0)) |
af309447 | 2780 | return NULL; |
1d99702e RD |
2781 | if (_argo0) { |
2782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetMask. Expected _wxListEvent_p."); |
af309447 RD |
2785 | return NULL; |
2786 | } | |
2787 | } | |
cf694132 | 2788 | { |
474c48f9 | 2789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2790 | _result = (long )wxListEvent_GetMask(_arg0); |
cf694132 | 2791 | |
474c48f9 | 2792 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2793 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2794 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2795 | return _resultobj; |
2796 | } | |
2797 | ||
f6bcfd97 BP |
2798 | #define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
2799 | static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2800 | PyObject * _resultobj; |
2801 | wxListItem * _result; | |
2802 | wxListEvent * _arg0; | |
1d99702e | 2803 | PyObject * _argo0 = 0; |
efc5f224 | 2804 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2805 | |
2806 | self = self; | |
f6bcfd97 | 2807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 2808 | return NULL; |
1d99702e RD |
2809 | if (_argo0) { |
2810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p."); |
8ab979d7 RD |
2813 | return NULL; |
2814 | } | |
2815 | } | |
cf694132 | 2816 | { |
474c48f9 | 2817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2818 | const wxListItem & _result_ref = wxListEvent_GetItem(_arg0); |
f6bcfd97 | 2819 | _result = (wxListItem *) &_result_ref; |
cf694132 | 2820 | |
474c48f9 | 2821 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2822 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2823 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2824 | return _resultobj; |
2825 | } | |
2826 | ||
059a841c RD |
2827 | #define wxListEvent_GetCacheFrom(_swigobj) (_swigobj->GetCacheFrom()) |
2828 | static PyObject *_wrap_wxListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2829 | PyObject * _resultobj; | |
2830 | long _result; | |
2831 | wxListEvent * _arg0; | |
2832 | PyObject * _argo0 = 0; | |
2833 | char *_kwnames[] = { "self", NULL }; | |
2834 | ||
2835 | self = self; | |
2836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheFrom",_kwnames,&_argo0)) | |
2837 | return NULL; | |
2838 | if (_argo0) { | |
2839 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2840 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2841 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheFrom. Expected _wxListEvent_p."); | |
2842 | return NULL; | |
2843 | } | |
2844 | } | |
2845 | { | |
474c48f9 | 2846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2847 | _result = (long )wxListEvent_GetCacheFrom(_arg0); |
059a841c | 2848 | |
474c48f9 | 2849 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
2850 | if (PyErr_Occurred()) return NULL; |
2851 | } _resultobj = Py_BuildValue("l",_result); | |
2852 | return _resultobj; | |
2853 | } | |
2854 | ||
2855 | #define wxListEvent_GetCacheTo(_swigobj) (_swigobj->GetCacheTo()) | |
2856 | static PyObject *_wrap_wxListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2857 | PyObject * _resultobj; | |
2858 | long _result; | |
2859 | wxListEvent * _arg0; | |
2860 | PyObject * _argo0 = 0; | |
2861 | char *_kwnames[] = { "self", NULL }; | |
2862 | ||
2863 | self = self; | |
2864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheTo",_kwnames,&_argo0)) | |
2865 | return NULL; | |
2866 | if (_argo0) { | |
2867 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2868 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheTo. Expected _wxListEvent_p."); | |
2870 | return NULL; | |
2871 | } | |
2872 | } | |
2873 | { | |
474c48f9 | 2874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2875 | _result = (long )wxListEvent_GetCacheTo(_arg0); |
059a841c | 2876 | |
474c48f9 | 2877 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
2878 | if (PyErr_Occurred()) return NULL; |
2879 | } _resultobj = Py_BuildValue("l",_result); | |
2880 | return _resultobj; | |
2881 | } | |
2882 | ||
cd096152 RD |
2883 | static void *SwigwxPyListCtrlTowxControl(void *ptr) { |
2884 | wxPyListCtrl *src; | |
8ab979d7 | 2885 | wxControl *dest; |
cd096152 | 2886 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2887 | dest = (wxControl *) src; |
2888 | return (void *) dest; | |
2889 | } | |
2890 | ||
cd096152 RD |
2891 | static void *SwigwxPyListCtrlTowxWindow(void *ptr) { |
2892 | wxPyListCtrl *src; | |
8ab979d7 | 2893 | wxWindow *dest; |
cd096152 | 2894 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2895 | dest = (wxWindow *) src; |
2896 | return (void *) dest; | |
2897 | } | |
2898 | ||
cd096152 RD |
2899 | static void *SwigwxPyListCtrlTowxEvtHandler(void *ptr) { |
2900 | wxPyListCtrl *src; | |
8ab979d7 | 2901 | wxEvtHandler *dest; |
cd096152 | 2902 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2903 | dest = (wxEvtHandler *) src; |
2904 | return (void *) dest; | |
2905 | } | |
2906 | ||
cd096152 RD |
2907 | static void *SwigwxPyListCtrlTowxObject(void *ptr) { |
2908 | wxPyListCtrl *src; | |
9df61a29 | 2909 | wxObject *dest; |
cd096152 | 2910 | src = (wxPyListCtrl *) ptr; |
9df61a29 RD |
2911 | dest = (wxObject *) src; |
2912 | return (void *) dest; | |
2913 | } | |
2914 | ||
cd096152 | 2915 | #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 2916 | static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 2917 | PyObject * _resultobj; |
cd096152 | 2918 | wxPyListCtrl * _result; |
8ab979d7 | 2919 | wxWindow * _arg0; |
cd096152 | 2920 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
2921 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
2922 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2c8a649d | 2923 | long _arg4 = (long ) (wxLC_ICON); |
b68dc582 | 2924 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 2925 | wxString * _arg6 = (wxString *) &wxPyListCtrlNameStr; |
1d99702e | 2926 | PyObject * _argo0 = 0; |
2f90df85 RD |
2927 | wxPoint temp; |
2928 | PyObject * _obj2 = 0; | |
2929 | wxSize temp0; | |
2930 | PyObject * _obj3 = 0; | |
1d99702e | 2931 | PyObject * _argo5 = 0; |
9a74fcaf | 2932 | PyObject * _obj6 = 0; |
efc5f224 | 2933 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
2934 | char _ptemp[128]; |
2935 | ||
2936 | self = self; | |
9a74fcaf | 2937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) |
8ab979d7 | 2938 | return NULL; |
1d99702e RD |
2939 | if (_argo0) { |
2940 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2941 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p."); |
2943 | return NULL; | |
2944 | } | |
2945 | } | |
2f90df85 RD |
2946 | if (_obj2) |
2947 | { | |
2948 | _arg2 = &temp; | |
2949 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 2950 | return NULL; |
2f90df85 RD |
2951 | } |
2952 | if (_obj3) | |
2953 | { | |
2954 | _arg3 = &temp0; | |
2955 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 2956 | return NULL; |
2f90df85 | 2957 | } |
1d99702e RD |
2958 | if (_argo5) { |
2959 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
2960 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
2961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p."); |
2962 | return NULL; | |
2963 | } | |
2964 | } | |
9a74fcaf RD |
2965 | if (_obj6) |
2966 | { | |
2967 | _arg6 = wxString_in_helper(_obj6); | |
2968 | if (_arg6 == NULL) | |
2969 | return NULL; | |
2970 | } | |
cf694132 | 2971 | { |
474c48f9 | 2972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 2973 | _result = (wxPyListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
cf694132 | 2974 | |
474c48f9 | 2975 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2976 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2977 | } if (_result) { |
cd096152 | 2978 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); |
1d99702e RD |
2979 | _resultobj = Py_BuildValue("s",_ptemp); |
2980 | } else { | |
2981 | Py_INCREF(Py_None); | |
2982 | _resultobj = Py_None; | |
2983 | } | |
9a74fcaf RD |
2984 | { |
2985 | if (_obj6) | |
2986 | delete _arg6; | |
2987 | } | |
8ab979d7 RD |
2988 | return _resultobj; |
2989 | } | |
2990 | ||
aa2a5b86 RD |
2991 | #define new_wxPreListCtrl() (new wxPyListCtrl()) |
2992 | static PyObject *_wrap_new_wxPreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2993 | PyObject * _resultobj; | |
2994 | wxPyListCtrl * _result; | |
2995 | char *_kwnames[] = { NULL }; | |
2996 | char _ptemp[128]; | |
2997 | ||
2998 | self = self; | |
2999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListCtrl",_kwnames)) | |
3000 | return NULL; | |
3001 | { | |
474c48f9 | 3002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3003 | _result = (wxPyListCtrl *)new_wxPreListCtrl(); |
aa2a5b86 | 3004 | |
474c48f9 | 3005 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
3006 | if (PyErr_Occurred()) return NULL; |
3007 | } if (_result) { | |
3008 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); | |
3009 | _resultobj = Py_BuildValue("s",_ptemp); | |
3010 | } else { | |
3011 | Py_INCREF(Py_None); | |
3012 | _resultobj = Py_None; | |
3013 | } | |
3014 | return _resultobj; | |
3015 | } | |
3016 | ||
3017 | #define wxListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3018 | static PyObject *_wrap_wxListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3019 | PyObject * _resultobj; | |
3020 | bool _result; | |
3021 | wxPyListCtrl * _arg0; | |
3022 | wxWindow * _arg1; | |
3023 | wxWindowID _arg2 = (wxWindowID ) -1; | |
3024 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
3025 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
3026 | long _arg5 = (long ) (wxLC_ICON); | |
3027 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 3028 | wxString * _arg7 = (wxString *) &wxPyListCtrlNameStr; |
aa2a5b86 RD |
3029 | PyObject * _argo0 = 0; |
3030 | PyObject * _argo1 = 0; | |
3031 | wxPoint temp; | |
3032 | PyObject * _obj3 = 0; | |
3033 | wxSize temp0; | |
3034 | PyObject * _obj4 = 0; | |
3035 | PyObject * _argo6 = 0; | |
9a74fcaf | 3036 | PyObject * _obj7 = 0; |
aa2a5b86 RD |
3037 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; |
3038 | ||
3039 | self = self; | |
9a74fcaf | 3040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
aa2a5b86 RD |
3041 | return NULL; |
3042 | if (_argo0) { | |
3043 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3044 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Create. Expected _wxPyListCtrl_p."); | |
3046 | return NULL; | |
3047 | } | |
3048 | } | |
3049 | if (_argo1) { | |
3050 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3051 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_Create. Expected _wxWindow_p."); | |
3053 | return NULL; | |
3054 | } | |
3055 | } | |
3056 | if (_obj3) | |
3057 | { | |
3058 | _arg3 = &temp; | |
3059 | if (! wxPoint_helper(_obj3, &_arg3)) | |
3060 | return NULL; | |
3061 | } | |
3062 | if (_obj4) | |
3063 | { | |
3064 | _arg4 = &temp0; | |
3065 | if (! wxSize_helper(_obj4, &_arg4)) | |
3066 | return NULL; | |
3067 | } | |
3068 | if (_argo6) { | |
3069 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
3070 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
3071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListCtrl_Create. Expected _wxValidator_p."); | |
3072 | return NULL; | |
3073 | } | |
3074 | } | |
9a74fcaf RD |
3075 | if (_obj7) |
3076 | { | |
3077 | _arg7 = wxString_in_helper(_obj7); | |
3078 | if (_arg7 == NULL) | |
3079 | return NULL; | |
3080 | } | |
aa2a5b86 | 3081 | { |
474c48f9 | 3082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 3083 | _result = (bool )wxListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
aa2a5b86 | 3084 | |
474c48f9 | 3085 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
3086 | if (PyErr_Occurred()) return NULL; |
3087 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
3088 | { |
3089 | if (_obj7) | |
3090 | delete _arg7; | |
3091 | } | |
aa2a5b86 RD |
3092 | return _resultobj; |
3093 | } | |
3094 | ||
0220cbc1 RD |
3095 | #define wxListCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
3096 | static PyObject *_wrap_wxListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3097 | PyObject * _resultobj; |
cd096152 RD |
3098 | wxPyListCtrl * _arg0; |
3099 | PyObject * _arg1; | |
3100 | PyObject * _arg2; | |
1d99702e | 3101 | PyObject * _argo0 = 0; |
cd096152 RD |
3102 | PyObject * _obj1 = 0; |
3103 | PyObject * _obj2 = 0; | |
3104 | char *_kwnames[] = { "self","self","_class", NULL }; | |
8ab979d7 RD |
3105 | |
3106 | self = self; | |
0220cbc1 | 3107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxListCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3108 | return NULL; |
1d99702e RD |
3109 | if (_argo0) { |
3110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 | 3111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
0220cbc1 | 3112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl__setCallbackInfo. Expected _wxPyListCtrl_p."); |
8ab979d7 RD |
3113 | return NULL; |
3114 | } | |
3115 | } | |
cd096152 RD |
3116 | { |
3117 | _arg1 = _obj1; | |
3118 | } | |
3119 | { | |
3120 | _arg2 = _obj2; | |
3121 | } | |
cf694132 | 3122 | { |
474c48f9 | 3123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3124 | wxListCtrl__setCallbackInfo(_arg0,_arg1,_arg2); |
cf694132 | 3125 | |
474c48f9 | 3126 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3127 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3128 | } Py_INCREF(Py_None); |
3129 | _resultobj = Py_None; | |
8ab979d7 RD |
3130 | return _resultobj; |
3131 | } | |
3132 | ||
cd096152 RD |
3133 | #define wxListCtrl_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) |
3134 | static PyObject *_wrap_wxListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c4165ad | 3135 | PyObject * _resultobj; |
cd096152 RD |
3136 | bool _result; |
3137 | wxPyListCtrl * _arg0; | |
3138 | wxColour * _arg1; | |
9c4165ad | 3139 | PyObject * _argo0 = 0; |
cd096152 RD |
3140 | wxColour temp; |
3141 | PyObject * _obj1 = 0; | |
3142 | char *_kwnames[] = { "self","col", NULL }; | |
9c4165ad RD |
3143 | |
3144 | self = self; | |
cd096152 | 3145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
9c4165ad RD |
3146 | return NULL; |
3147 | if (_argo0) { | |
3148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetForegroundColour. Expected _wxPyListCtrl_p."); | |
9c4165ad RD |
3151 | return NULL; |
3152 | } | |
3153 | } | |
cd096152 RD |
3154 | { |
3155 | _arg1 = &temp; | |
3156 | if (! wxColour_helper(_obj1, &_arg1)) | |
3157 | return NULL; | |
3158 | } | |
3159 | { | |
474c48f9 | 3160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3161 | _result = (bool )wxListCtrl_SetForegroundColour(_arg0,*_arg1); |
cd096152 | 3162 | |
474c48f9 | 3163 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
3164 | if (PyErr_Occurred()) return NULL; |
3165 | } _resultobj = Py_BuildValue("i",_result); | |
3166 | return _resultobj; | |
3167 | } | |
3168 | ||
3169 | #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
3170 | static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3171 | PyObject * _resultobj; | |
3172 | bool _result; | |
3173 | wxPyListCtrl * _arg0; | |
3174 | wxColour * _arg1; | |
3175 | PyObject * _argo0 = 0; | |
3176 | wxColour temp; | |
3177 | PyObject * _obj1 = 0; | |
3178 | char *_kwnames[] = { "self","col", NULL }; | |
3179 | ||
3180 | self = self; | |
3181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
3182 | return NULL; | |
3183 | if (_argo0) { | |
3184 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3185 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxPyListCtrl_p."); | |
9c4165ad RD |
3187 | return NULL; |
3188 | } | |
3189 | } | |
cd096152 RD |
3190 | { |
3191 | _arg1 = &temp; | |
3192 | if (! wxColour_helper(_obj1, &_arg1)) | |
3193 | return NULL; | |
3194 | } | |
9c4165ad | 3195 | { |
474c48f9 | 3196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3197 | _result = (bool )wxListCtrl_SetBackgroundColour(_arg0,*_arg1); |
9c4165ad | 3198 | |
474c48f9 | 3199 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3200 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3201 | } _resultobj = Py_BuildValue("i",_result); |
9c4165ad RD |
3202 | return _resultobj; |
3203 | } | |
3204 | ||
94082a71 RD |
3205 | static wxListItem * wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col) { |
3206 | wxListItem item; | |
3207 | if (self->GetColumn(col, item)) | |
3208 | return new wxListItem(item); | |
3209 | else | |
3210 | return NULL; | |
3211 | } | |
cd096152 | 3212 | static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3213 | PyObject * _resultobj; |
94082a71 | 3214 | wxListItem * _result; |
cd096152 RD |
3215 | wxPyListCtrl * _arg0; |
3216 | int _arg1; | |
1d99702e | 3217 | PyObject * _argo0 = 0; |
94082a71 | 3218 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3219 | |
3220 | self = self; | |
94082a71 | 3221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3222 | return NULL; |
1d99702e RD |
3223 | if (_argo0) { |
3224 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3225 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxPyListCtrl_p."); | |
3227 | return NULL; | |
3228 | } | |
3229 | } | |
cf694132 | 3230 | { |
474c48f9 | 3231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3232 | _result = (wxListItem *)wxPyListCtrl_GetColumn(_arg0,_arg1); |
cf694132 | 3233 | |
474c48f9 | 3234 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3235 | if (PyErr_Occurred()) return NULL; |
94082a71 | 3236 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
3237 | return _resultobj; |
3238 | } | |
3239 | ||
cd096152 RD |
3240 | #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1)) |
3241 | static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3242 | PyObject * _resultobj; |
3243 | bool _result; | |
cd096152 RD |
3244 | wxPyListCtrl * _arg0; |
3245 | int _arg1; | |
3246 | wxListItem * _arg2; | |
1d99702e | 3247 | PyObject * _argo0 = 0; |
cd096152 RD |
3248 | PyObject * _argo2 = 0; |
3249 | char *_kwnames[] = { "self","col","item", NULL }; | |
8ab979d7 RD |
3250 | |
3251 | self = self; | |
cd096152 | 3252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3253 | return NULL; |
1d99702e RD |
3254 | if (_argo0) { |
3255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxPyListCtrl_p."); | |
3258 | return NULL; | |
3259 | } | |
3260 | } | |
3261 | if (_argo2) { | |
3262 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3263 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
3264 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p."); | |
8ab979d7 RD |
3265 | return NULL; |
3266 | } | |
3267 | } | |
cf694132 | 3268 | { |
474c48f9 | 3269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3270 | _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2); |
cf694132 | 3271 | |
474c48f9 | 3272 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3273 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3274 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3275 | return _resultobj; |
3276 | } | |
3277 | ||
cd096152 RD |
3278 | #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0)) |
3279 | static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3280 | PyObject * _resultobj; |
cd096152 RD |
3281 | int _result; |
3282 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3283 | int _arg1; |
1d99702e | 3284 | PyObject * _argo0 = 0; |
efc5f224 | 3285 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3286 | |
3287 | self = self; | |
cd096152 | 3288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3289 | return NULL; |
1d99702e RD |
3290 | if (_argo0) { |
3291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3294 | return NULL; |
3295 | } | |
3296 | } | |
cf694132 | 3297 | { |
474c48f9 | 3298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3299 | _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1); |
cf694132 | 3300 | |
474c48f9 | 3301 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3302 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3303 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3304 | return _resultobj; |
3305 | } | |
3306 | ||
cd096152 RD |
3307 | #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1)) |
3308 | static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3309 | PyObject * _resultobj; |
3310 | bool _result; | |
cd096152 RD |
3311 | wxPyListCtrl * _arg0; |
3312 | int _arg1; | |
3313 | int _arg2; | |
1d99702e | 3314 | PyObject * _argo0 = 0; |
cd096152 | 3315 | char *_kwnames[] = { "self","col","width", NULL }; |
8ab979d7 RD |
3316 | |
3317 | self = self; | |
cd096152 | 3318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3319 | return NULL; |
1d99702e RD |
3320 | if (_argo0) { |
3321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3324 | return NULL; |
3325 | } | |
3326 | } | |
cf694132 | 3327 | { |
474c48f9 | 3328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3329 | _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2); |
cf694132 | 3330 | |
474c48f9 | 3331 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3332 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3333 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3334 | return _resultobj; |
3335 | } | |
3336 | ||
cd096152 RD |
3337 | #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage()) |
3338 | static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3339 | PyObject * _resultobj; |
cd096152 RD |
3340 | int _result; |
3341 | wxPyListCtrl * _arg0; | |
1d99702e | 3342 | PyObject * _argo0 = 0; |
efc5f224 | 3343 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3344 | |
3345 | self = self; | |
cd096152 | 3346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0)) |
8ab979d7 | 3347 | return NULL; |
1d99702e RD |
3348 | if (_argo0) { |
3349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3352 | return NULL; |
3353 | } | |
3354 | } | |
cf694132 | 3355 | { |
474c48f9 | 3356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3357 | _result = (int )wxListCtrl_GetCountPerPage(_arg0); |
cf694132 | 3358 | |
474c48f9 | 3359 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3360 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3361 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3362 | return _resultobj; |
3363 | } | |
3364 | ||
cd096152 RD |
3365 | static wxListItem * wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col) { |
3366 | wxListItem* info = new wxListItem; | |
3367 | info->m_itemId = itemId; | |
3368 | info->m_col = col; | |
3369 | info->m_mask = 0xFFFF; | |
3370 | self->GetItem(*info); | |
3371 | return info; | |
3372 | } | |
3373 | static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3374 | PyObject * _resultobj; |
cd096152 RD |
3375 | wxListItem * _result; |
3376 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3377 | long _arg1; |
cd096152 | 3378 | int _arg2 = (int ) 0; |
1d99702e | 3379 | PyObject * _argo0 = 0; |
cd096152 | 3380 | char *_kwnames[] = { "self","itemId","col", NULL }; |
8ab979d7 RD |
3381 | |
3382 | self = self; | |
cd096152 | 3383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3384 | return NULL; |
1d99702e RD |
3385 | if (_argo0) { |
3386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3389 | return NULL; |
3390 | } | |
3391 | } | |
cf694132 | 3392 | { |
474c48f9 | 3393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3394 | _result = (wxListItem *)wxPyListCtrl_GetItem(_arg0,_arg1,_arg2); |
cf694132 | 3395 | |
474c48f9 | 3396 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3397 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3398 | }{ _resultobj = wxPyMake_wxObject(_result); } |
be4d9c1f RD |
3399 | return _resultobj; |
3400 | } | |
3401 | ||
cd096152 RD |
3402 | #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) |
3403 | static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3404 | PyObject * _resultobj; |
3405 | bool _result; | |
cd096152 RD |
3406 | wxPyListCtrl * _arg0; |
3407 | wxListItem * _arg1; | |
1d99702e | 3408 | PyObject * _argo0 = 0; |
cd096152 RD |
3409 | PyObject * _argo1 = 0; |
3410 | char *_kwnames[] = { "self","info", NULL }; | |
8ab979d7 RD |
3411 | |
3412 | self = self; | |
cd096152 | 3413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3414 | return NULL; |
1d99702e RD |
3415 | if (_argo0) { |
3416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxPyListCtrl_p."); | |
3419 | return NULL; | |
3420 | } | |
3421 | } | |
3422 | if (_argo1) { | |
3423 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3424 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
3425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p."); | |
8ab979d7 RD |
3426 | return NULL; |
3427 | } | |
3428 | } | |
cf694132 | 3429 | { |
474c48f9 | 3430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3431 | _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1); |
cf694132 | 3432 | |
474c48f9 | 3433 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3434 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3435 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3436 | return _resultobj; |
3437 | } | |
3438 | ||
cd096152 RD |
3439 | #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3440 | static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3441 | PyObject * _resultobj; |
3442 | long _result; | |
cd096152 | 3443 | wxPyListCtrl * _arg0; |
8ab979d7 | 3444 | long _arg1; |
cd096152 RD |
3445 | int _arg2; |
3446 | wxString * _arg3; | |
3447 | int _arg4 = (int ) -1; | |
1d99702e | 3448 | PyObject * _argo0 = 0; |
cd096152 RD |
3449 | PyObject * _obj3 = 0; |
3450 | char *_kwnames[] = { "self","index","col","label","imageId", NULL }; | |
8ab979d7 RD |
3451 | |
3452 | self = self; | |
cd096152 | 3453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
8ab979d7 | 3454 | return NULL; |
1d99702e RD |
3455 | if (_argo0) { |
3456 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3457 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3459 | return NULL; |
3460 | } | |
3461 | } | |
3462 | { | |
c8bc7bb8 RD |
3463 | _arg3 = wxString_in_helper(_obj3); |
3464 | if (_arg3 == NULL) | |
2cd2fac8 | 3465 | return NULL; |
8ab979d7 | 3466 | } |
cf694132 | 3467 | { |
474c48f9 | 3468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3469 | _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4); |
cf694132 | 3470 | |
474c48f9 | 3471 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3472 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3473 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 3474 | { |
cd096152 RD |
3475 | if (_obj3) |
3476 | delete _arg3; | |
8ab979d7 RD |
3477 | } |
3478 | return _resultobj; | |
3479 | } | |
3480 | ||
cd096152 RD |
3481 | #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1)) |
3482 | static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3483 | PyObject * _resultobj; |
cd096152 RD |
3484 | int _result; |
3485 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
3486 | long _arg1; |
3487 | long _arg2; | |
1d99702e | 3488 | PyObject * _argo0 = 0; |
cd096152 | 3489 | char *_kwnames[] = { "self","item","stateMask", NULL }; |
8ab979d7 RD |
3490 | |
3491 | self = self; | |
cd096152 | 3492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3493 | return NULL; |
1d99702e RD |
3494 | if (_argo0) { |
3495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3498 | return NULL; |
3499 | } | |
3500 | } | |
cf694132 | 3501 | { |
474c48f9 | 3502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3503 | _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2); |
cf694132 | 3504 | |
474c48f9 | 3505 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3506 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3507 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3508 | return _resultobj; |
3509 | } | |
3510 | ||
cd096152 RD |
3511 | #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2)) |
3512 | static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3513 | PyObject * _resultobj; |
cd096152 RD |
3514 | bool _result; |
3515 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3516 | long _arg1; |
cd096152 RD |
3517 | long _arg2; |
3518 | long _arg3; | |
1d99702e | 3519 | PyObject * _argo0 = 0; |
cd096152 | 3520 | char *_kwnames[] = { "self","item","state","stateMask", NULL }; |
8ab979d7 RD |
3521 | |
3522 | self = self; | |
cd096152 | 3523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3524 | return NULL; |
1d99702e RD |
3525 | if (_argo0) { |
3526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3529 | return NULL; |
3530 | } | |
3531 | } | |
cf694132 | 3532 | { |
474c48f9 | 3533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3534 | _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3535 | |
474c48f9 | 3536 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3537 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3538 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3539 | return _resultobj; |
3540 | } | |
3541 | ||
cd096152 RD |
3542 | #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
3543 | static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3544 | PyObject * _resultobj; |
3545 | bool _result; | |
cd096152 RD |
3546 | wxPyListCtrl * _arg0; |
3547 | long _arg1; | |
3548 | int _arg2; | |
3549 | int _arg3; | |
1d99702e | 3550 | PyObject * _argo0 = 0; |
cd096152 | 3551 | char *_kwnames[] = { "self","item","image","selImage", NULL }; |
8ab979d7 RD |
3552 | |
3553 | self = self; | |
cd096152 | 3554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3555 | return NULL; |
1d99702e RD |
3556 | if (_argo0) { |
3557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3560 | return NULL; |
3561 | } | |
3562 | } | |
cf694132 | 3563 | { |
474c48f9 | 3564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3565 | _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3566 | |
474c48f9 | 3567 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3568 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3569 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3570 | return _resultobj; |
3571 | } | |
3572 | ||
cd096152 RD |
3573 | #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
3574 | static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3575 | PyObject * _resultobj; |
cd096152 RD |
3576 | wxString * _result; |
3577 | wxPyListCtrl * _arg0; | |
3578 | long _arg1; | |
1d99702e | 3579 | PyObject * _argo0 = 0; |
cd096152 | 3580 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3581 | |
3582 | self = self; | |
cd096152 | 3583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3584 | return NULL; |
1d99702e RD |
3585 | if (_argo0) { |
3586 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3587 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3589 | return NULL; |
3590 | } | |
3591 | } | |
cf694132 | 3592 | { |
474c48f9 | 3593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3594 | _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1)); |
cf694132 | 3595 | |
474c48f9 | 3596 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3597 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3598 | }{ |
c8bc7bb8 RD |
3599 | #if wxUSE_UNICODE |
3600 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3601 | #else | |
cd096152 | 3602 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3603 | #endif |
cd096152 RD |
3604 | } |
3605 | { | |
3606 | delete _result; | |
3607 | } | |
8ab979d7 RD |
3608 | return _resultobj; |
3609 | } | |
3610 | ||
cd096152 RD |
3611 | #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
3612 | static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3613 | PyObject * _resultobj; |
cd096152 RD |
3614 | wxPyListCtrl * _arg0; |
3615 | long _arg1; | |
3616 | wxString * _arg2; | |
1d99702e | 3617 | PyObject * _argo0 = 0; |
cd096152 RD |
3618 | PyObject * _obj2 = 0; |
3619 | char *_kwnames[] = { "self","item","str", NULL }; | |
8ab979d7 RD |
3620 | |
3621 | self = self; | |
cd096152 | 3622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3623 | return NULL; |
1d99702e RD |
3624 | if (_argo0) { |
3625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3628 | return NULL; |
3629 | } | |
3630 | } | |
cf694132 | 3631 | { |
c8bc7bb8 RD |
3632 | _arg2 = wxString_in_helper(_obj2); |
3633 | if (_arg2 == NULL) | |
8ab979d7 | 3634 | return NULL; |
cd096152 | 3635 | } |
cf694132 | 3636 | { |
474c48f9 | 3637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3638 | wxListCtrl_SetItemText(_arg0,_arg1,*_arg2); |
cf694132 | 3639 | |
474c48f9 | 3640 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3641 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3642 | } Py_INCREF(Py_None); |
3643 | _resultobj = Py_None; | |
3644 | { | |
3645 | if (_obj2) | |
3646 | delete _arg2; | |
3647 | } | |
8ab979d7 RD |
3648 | return _resultobj; |
3649 | } | |
3650 | ||
3651 | #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0)) | |
efc5f224 | 3652 | static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3653 | PyObject * _resultobj; |
3654 | long _result; | |
cd096152 | 3655 | wxPyListCtrl * _arg0; |
8ab979d7 | 3656 | long _arg1; |
1d99702e | 3657 | PyObject * _argo0 = 0; |
efc5f224 | 3658 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3659 | |
3660 | self = self; | |
efc5f224 | 3661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3662 | return NULL; |
1d99702e RD |
3663 | if (_argo0) { |
3664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3667 | return NULL; |
3668 | } | |
3669 | } | |
cf694132 | 3670 | { |
474c48f9 | 3671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3672 | _result = (long )wxListCtrl_GetItemData(_arg0,_arg1); |
cf694132 | 3673 | |
474c48f9 | 3674 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3675 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3676 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
3677 | return _resultobj; |
3678 | } | |
3679 | ||
cd096152 RD |
3680 | #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1)) |
3681 | static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3682 | PyObject * _resultobj; |
cd096152 RD |
3683 | bool _result; |
3684 | wxPyListCtrl * _arg0; | |
0699c864 | 3685 | long _arg1; |
cd096152 | 3686 | long _arg2; |
1d99702e | 3687 | PyObject * _argo0 = 0; |
cd096152 | 3688 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
3689 | |
3690 | self = self; | |
cd096152 | 3691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3692 | return NULL; |
1d99702e RD |
3693 | if (_argo0) { |
3694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3697 | return NULL; |
3698 | } | |
3699 | } | |
cf694132 | 3700 | { |
474c48f9 | 3701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3702 | _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2); |
cf694132 | 3703 | |
474c48f9 | 3704 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3705 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3706 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3707 | return _resultobj; |
3708 | } | |
3709 | ||
cd096152 | 3710 | static wxPoint * wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item) { |
8ab979d7 RD |
3711 | wxPoint* pos = new wxPoint; |
3712 | self->GetItemPosition(item, *pos); | |
3713 | return pos; | |
3714 | } | |
efc5f224 | 3715 | static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3716 | PyObject * _resultobj; |
3717 | wxPoint * _result; | |
cd096152 | 3718 | wxPyListCtrl * _arg0; |
8ab979d7 | 3719 | long _arg1; |
1d99702e | 3720 | PyObject * _argo0 = 0; |
efc5f224 | 3721 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3722 | char _ptemp[128]; |
3723 | ||
3724 | self = self; | |
efc5f224 | 3725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3726 | return NULL; |
1d99702e RD |
3727 | if (_argo0) { |
3728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3731 | return NULL; |
3732 | } | |
3733 | } | |
cf694132 | 3734 | { |
474c48f9 | 3735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3736 | _result = (wxPoint *)wxPyListCtrl_GetItemPosition(_arg0,_arg1); |
cf694132 | 3737 | |
474c48f9 | 3738 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3739 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3740 | } if (_result) { |
3741 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
3742 | _resultobj = Py_BuildValue("s",_ptemp); | |
3743 | } else { | |
3744 | Py_INCREF(Py_None); | |
3745 | _resultobj = Py_None; | |
3746 | } | |
8ab979d7 RD |
3747 | return _resultobj; |
3748 | } | |
3749 | ||
cd096152 | 3750 | static wxRect * wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code) { |
8ab979d7 RD |
3751 | wxRect* rect= new wxRect; |
3752 | self->GetItemRect(item, *rect, code); | |
3753 | return rect; | |
3754 | } | |
efc5f224 | 3755 | static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3756 | PyObject * _resultobj; |
3757 | wxRect * _result; | |
cd096152 | 3758 | wxPyListCtrl * _arg0; |
8ab979d7 | 3759 | long _arg1; |
1d99702e RD |
3760 | int _arg2 = (int ) (wxLIST_RECT_BOUNDS); |
3761 | PyObject * _argo0 = 0; | |
efc5f224 | 3762 | char *_kwnames[] = { "self","item","code", NULL }; |
8ab979d7 RD |
3763 | char _ptemp[128]; |
3764 | ||
3765 | self = self; | |
efc5f224 | 3766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3767 | return NULL; |
1d99702e RD |
3768 | if (_argo0) { |
3769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3772 | return NULL; |
3773 | } | |
3774 | } | |
cf694132 | 3775 | { |
474c48f9 | 3776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3777 | _result = (wxRect *)wxPyListCtrl_GetItemRect(_arg0,_arg1,_arg2); |
cf694132 | 3778 | |
474c48f9 | 3779 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3780 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3781 | } if (_result) { |
3782 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
3783 | _resultobj = Py_BuildValue("s",_ptemp); | |
3784 | } else { | |
3785 | Py_INCREF(Py_None); | |
3786 | _resultobj = Py_None; | |
3787 | } | |
8ab979d7 RD |
3788 | return _resultobj; |
3789 | } | |
3790 | ||
cd096152 RD |
3791 | #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1)) |
3792 | static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3793 | PyObject * _resultobj; |
cd096152 RD |
3794 | bool _result; |
3795 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3796 | long _arg1; |
cd096152 | 3797 | wxPoint * _arg2; |
1d99702e | 3798 | PyObject * _argo0 = 0; |
cd096152 RD |
3799 | wxPoint temp; |
3800 | PyObject * _obj2 = 0; | |
3801 | char *_kwnames[] = { "self","item","pos", NULL }; | |
8ab979d7 RD |
3802 | |
3803 | self = self; | |
cd096152 | 3804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3805 | return NULL; |
1d99702e RD |
3806 | if (_argo0) { |
3807 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3808 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3810 | return NULL; |
3811 | } | |
3812 | } | |
cd096152 RD |
3813 | { |
3814 | _arg2 = &temp; | |
3815 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3816 | return NULL; | |
3817 | } | |
cf694132 | 3818 | { |
474c48f9 | 3819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3820 | _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2); |
cf694132 | 3821 | |
474c48f9 | 3822 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3823 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3824 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3825 | return _resultobj; |
3826 | } | |
3827 | ||
3828 | #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
efc5f224 | 3829 | static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3830 | PyObject * _resultobj; |
3831 | int _result; | |
cd096152 | 3832 | wxPyListCtrl * _arg0; |
1d99702e | 3833 | PyObject * _argo0 = 0; |
efc5f224 | 3834 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3835 | |
3836 | self = self; | |
efc5f224 | 3837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3838 | return NULL; |
1d99702e RD |
3839 | if (_argo0) { |
3840 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3841 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3843 | return NULL; |
3844 | } | |
3845 | } | |
cf694132 | 3846 | { |
474c48f9 | 3847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3848 | _result = (int )wxListCtrl_GetItemCount(_arg0); |
cf694132 | 3849 | |
474c48f9 | 3850 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3851 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3852 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3853 | return _resultobj; |
3854 | } | |
3855 | ||
cd096152 RD |
3856 | #define wxListCtrl_GetColumnCount(_swigobj) (_swigobj->GetColumnCount()) |
3857 | static PyObject *_wrap_wxListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3858 | PyObject * _resultobj; | |
3859 | int _result; | |
3860 | wxPyListCtrl * _arg0; | |
3861 | PyObject * _argo0 = 0; | |
3862 | char *_kwnames[] = { "self", NULL }; | |
3863 | ||
3864 | self = self; | |
3865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetColumnCount",_kwnames,&_argo0)) | |
3866 | return NULL; | |
3867 | if (_argo0) { | |
3868 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3869 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnCount. Expected _wxPyListCtrl_p."); | |
3871 | return NULL; | |
3872 | } | |
3873 | } | |
3874 | { | |
474c48f9 | 3875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3876 | _result = (int )wxListCtrl_GetColumnCount(_arg0); |
cd096152 | 3877 | |
474c48f9 | 3878 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
3879 | if (PyErr_Occurred()) return NULL; |
3880 | } _resultobj = Py_BuildValue("i",_result); | |
3881 | return _resultobj; | |
3882 | } | |
3883 | ||
8ab979d7 | 3884 | #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0)) |
efc5f224 | 3885 | static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3886 | PyObject * _resultobj; |
3887 | int _result; | |
cd096152 | 3888 | wxPyListCtrl * _arg0; |
8ab979d7 | 3889 | bool _arg1; |
1d99702e | 3890 | PyObject * _argo0 = 0; |
8ab979d7 | 3891 | int tempbool1; |
efc5f224 | 3892 | char *_kwnames[] = { "self","isSmall", NULL }; |
8ab979d7 RD |
3893 | |
3894 | self = self; | |
efc5f224 | 3895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3896 | return NULL; |
1d99702e RD |
3897 | if (_argo0) { |
3898 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3899 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3901 | return NULL; |
3902 | } | |
3903 | } | |
3904 | _arg1 = (bool ) tempbool1; | |
cf694132 | 3905 | { |
474c48f9 | 3906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3907 | _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1); |
cf694132 | 3908 | |
474c48f9 | 3909 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3910 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3911 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3912 | return _resultobj; |
3913 | } | |
3914 | ||
cd096152 RD |
3915 | #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount()) |
3916 | static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3917 | PyObject * _resultobj; |
cd096152 RD |
3918 | int _result; |
3919 | wxPyListCtrl * _arg0; | |
1d99702e | 3920 | PyObject * _argo0 = 0; |
cd096152 | 3921 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3922 | |
3923 | self = self; | |
cd096152 | 3924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3925 | return NULL; |
1d99702e RD |
3926 | if (_argo0) { |
3927 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3928 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3929 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3930 | return NULL; |
3931 | } | |
3932 | } | |
8ab979d7 | 3933 | { |
474c48f9 | 3934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3935 | _result = (int )wxListCtrl_GetSelectedItemCount(_arg0); |
cf694132 | 3936 | |
474c48f9 | 3937 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3938 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3939 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3940 | return _resultobj; |
3941 | } | |
3942 | ||
cd096152 RD |
3943 | #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
3944 | static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3945 | PyObject * _resultobj; |
cd096152 RD |
3946 | wxColour * _result; |
3947 | wxPyListCtrl * _arg0; | |
1d99702e | 3948 | PyObject * _argo0 = 0; |
cd096152 RD |
3949 | char *_kwnames[] = { "self", NULL }; |
3950 | char _ptemp[128]; | |
8ab979d7 RD |
3951 | |
3952 | self = self; | |
cd096152 | 3953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 3954 | return NULL; |
1d99702e RD |
3955 | if (_argo0) { |
3956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3959 | return NULL; |
3960 | } | |
3961 | } | |
cf694132 | 3962 | { |
474c48f9 | 3963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3964 | _result = new wxColour (wxListCtrl_GetTextColour(_arg0)); |
cf694132 | 3965 | |
474c48f9 | 3966 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3967 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3968 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
3969 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
3970 | return _resultobj; |
3971 | } | |
3972 | ||
cd096152 RD |
3973 | #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
3974 | static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3975 | PyObject * _resultobj; |
cd096152 RD |
3976 | wxPyListCtrl * _arg0; |
3977 | wxColour * _arg1; | |
1d99702e | 3978 | PyObject * _argo0 = 0; |
cd096152 RD |
3979 | wxColour temp; |
3980 | PyObject * _obj1 = 0; | |
3981 | char *_kwnames[] = { "self","col", NULL }; | |
8ab979d7 RD |
3982 | |
3983 | self = self; | |
cd096152 | 3984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3985 | return NULL; |
1d99702e RD |
3986 | if (_argo0) { |
3987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3990 | return NULL; |
3991 | } | |
3992 | } | |
cd096152 RD |
3993 | { |
3994 | _arg1 = &temp; | |
3995 | if (! wxColour_helper(_obj1, &_arg1)) | |
3996 | return NULL; | |
3997 | } | |
cf694132 | 3998 | { |
474c48f9 | 3999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4000 | wxListCtrl_SetTextColour(_arg0,*_arg1); |
cf694132 | 4001 | |
474c48f9 | 4002 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4003 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4004 | } Py_INCREF(Py_None); |
4005 | _resultobj = Py_None; | |
8ab979d7 RD |
4006 | return _resultobj; |
4007 | } | |
4008 | ||
8ab979d7 | 4009 | #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem()) |
efc5f224 | 4010 | static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4011 | PyObject * _resultobj; |
4012 | long _result; | |
cd096152 | 4013 | wxPyListCtrl * _arg0; |
1d99702e | 4014 | PyObject * _argo0 = 0; |
efc5f224 | 4015 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4016 | |
4017 | self = self; | |
efc5f224 | 4018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0)) |
8ab979d7 | 4019 | return NULL; |
1d99702e RD |
4020 | if (_argo0) { |
4021 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4022 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4023 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4024 | return NULL; |
4025 | } | |
4026 | } | |
cf694132 | 4027 | { |
474c48f9 | 4028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4029 | _result = (long )wxListCtrl_GetTopItem(_arg0); |
cf694132 | 4030 | |
474c48f9 | 4031 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4032 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4033 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4034 | return _resultobj; |
4035 | } | |
4036 | ||
cd096152 RD |
4037 | #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1)) |
4038 | static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4039 | PyObject * _resultobj; | |
4040 | wxPyListCtrl * _arg0; | |
4041 | long _arg1; | |
4042 | bool _arg2 = (bool ) TRUE; | |
1d99702e | 4043 | PyObject * _argo0 = 0; |
cd096152 RD |
4044 | int tempbool2 = (int) TRUE; |
4045 | char *_kwnames[] = { "self","style","add", NULL }; | |
8ab979d7 RD |
4046 | |
4047 | self = self; | |
cd096152 RD |
4048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2)) |
4049 | return NULL; | |
4050 | if (_argo0) { | |
4051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxPyListCtrl_p."); | |
4054 | return NULL; | |
4055 | } | |
4056 | } | |
4057 | _arg2 = (bool ) tempbool2; | |
8ab979d7 | 4058 | { |
474c48f9 | 4059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4060 | wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2); |
cd096152 | 4061 | |
474c48f9 | 4062 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4063 | if (PyErr_Occurred()) return NULL; |
4064 | } Py_INCREF(Py_None); | |
4065 | _resultobj = Py_None; | |
4066 | return _resultobj; | |
8ab979d7 | 4067 | } |
cd096152 RD |
4068 | |
4069 | #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) | |
4070 | static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4071 | PyObject * _resultobj; | |
4072 | wxPyListCtrl * _arg0; | |
4073 | long _arg1; | |
4074 | PyObject * _argo0 = 0; | |
4075 | char *_kwnames[] = { "self","style", NULL }; | |
4076 | ||
4077 | self = self; | |
4078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
8ab979d7 | 4079 | return NULL; |
1d99702e RD |
4080 | if (_argo0) { |
4081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4084 | return NULL; |
4085 | } | |
4086 | } | |
2f90df85 | 4087 | { |
474c48f9 | 4088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4089 | wxListCtrl_SetWindowStyleFlag(_arg0,_arg1); |
cd096152 | 4090 | |
474c48f9 | 4091 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4092 | if (PyErr_Occurred()) return NULL; |
4093 | } Py_INCREF(Py_None); | |
4094 | _resultobj = Py_None; | |
4095 | return _resultobj; | |
2f90df85 | 4096 | } |
cd096152 RD |
4097 | |
4098 | #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2)) | |
4099 | static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4100 | PyObject * _resultobj; | |
4101 | long _result; | |
4102 | wxPyListCtrl * _arg0; | |
4103 | long _arg1; | |
4104 | int _arg2 = (int ) (wxLIST_NEXT_ALL); | |
4105 | int _arg3 = (int ) (wxLIST_STATE_DONTCARE); | |
4106 | PyObject * _argo0 = 0; | |
4107 | char *_kwnames[] = { "self","item","geometry","state", NULL }; | |
4108 | ||
4109 | self = self; | |
4110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
4111 | return NULL; | |
4112 | if (_argo0) { | |
4113 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4114 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxPyListCtrl_p."); | |
4116 | return NULL; | |
4117 | } | |
4118 | } | |
cf694132 | 4119 | { |
474c48f9 | 4120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4121 | _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 4122 | |
474c48f9 | 4123 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4124 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4125 | } _resultobj = Py_BuildValue("l",_result); |
cd096152 | 4126 | return _resultobj; |
8ab979d7 | 4127 | } |
cd096152 RD |
4128 | |
4129 | #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0)) | |
4130 | static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4131 | PyObject * _resultobj; | |
4132 | wxImageList * _result; | |
4133 | wxPyListCtrl * _arg0; | |
4134 | int _arg1; | |
4135 | PyObject * _argo0 = 0; | |
4136 | char *_kwnames[] = { "self","which", NULL }; | |
4137 | ||
4138 | self = self; | |
4139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1)) | |
4140 | return NULL; | |
4141 | if (_argo0) { | |
4142 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4143 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxPyListCtrl_p."); | |
4145 | return NULL; | |
4146 | } | |
4147 | } | |
4148 | { | |
474c48f9 | 4149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4150 | _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1); |
cd096152 | 4151 | |
474c48f9 | 4152 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4153 | if (PyErr_Occurred()) return NULL; |
4154 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
8ab979d7 RD |
4155 | return _resultobj; |
4156 | } | |
4157 | ||
cd096152 RD |
4158 | #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1)) |
4159 | static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4160 | PyObject * _resultobj; |
cd096152 RD |
4161 | wxPyListCtrl * _arg0; |
4162 | wxImageList * _arg1; | |
4163 | int _arg2; | |
1d99702e | 4164 | PyObject * _argo0 = 0; |
cd096152 RD |
4165 | PyObject * _argo1 = 0; |
4166 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
8ab979d7 RD |
4167 | |
4168 | self = self; | |
cd096152 | 4169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4170 | return NULL; |
1d99702e RD |
4171 | if (_argo0) { |
4172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4175 | return NULL; |
4176 | } | |
4177 | } | |
cd096152 RD |
4178 | if (_argo1) { |
4179 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4180 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p."); | |
8ab979d7 RD |
4182 | return NULL; |
4183 | } | |
4184 | } | |
cf694132 | 4185 | { |
474c48f9 | 4186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4187 | wxListCtrl_SetImageList(_arg0,_arg1,_arg2); |
cf694132 | 4188 | |
474c48f9 | 4189 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4190 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4191 | } Py_INCREF(Py_None); |
4192 | _resultobj = Py_None; | |
8ab979d7 RD |
4193 | return _resultobj; |
4194 | } | |
4195 | ||
cd096152 RD |
4196 | #define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1)) |
4197 | static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4198 | PyObject * _resultobj; |
cd096152 RD |
4199 | wxPyListCtrl * _arg0; |
4200 | wxImageList * _arg1; | |
4201 | int _arg2; | |
1d99702e | 4202 | PyObject * _argo0 = 0; |
cd096152 RD |
4203 | PyObject * _argo1 = 0; |
4204 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
8ab979d7 RD |
4205 | |
4206 | self = self; | |
cd096152 | 4207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4208 | return NULL; |
1d99702e RD |
4209 | if (_argo0) { |
4210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4213 | return NULL; |
4214 | } | |
4215 | } | |
cd096152 RD |
4216 | if (_argo1) { |
4217 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4218 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p."); | |
2cd2fac8 | 4220 | return NULL; |
cd096152 | 4221 | } |
2cd2fac8 | 4222 | } |
cd096152 | 4223 | { |
474c48f9 | 4224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4225 | wxListCtrl_AssignImageList(_arg0,_arg1,_arg2); |
cd096152 | 4226 | |
474c48f9 | 4227 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4228 | if (PyErr_Occurred()) return NULL; |
4229 | } Py_INCREF(Py_None); | |
4230 | _resultobj = Py_None; | |
4231 | return _resultobj; | |
4232 | } | |
4233 | ||
4234 | #define wxListCtrl_IsVirtual(_swigobj) (_swigobj->IsVirtual()) | |
4235 | static PyObject *_wrap_wxListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4236 | PyObject * _resultobj; | |
4237 | bool _result; | |
4238 | wxPyListCtrl * _arg0; | |
4239 | PyObject * _argo0 = 0; | |
4240 | char *_kwnames[] = { "self", NULL }; | |
4241 | ||
4242 | self = self; | |
4243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_IsVirtual",_kwnames,&_argo0)) | |
2cd2fac8 | 4244 | return NULL; |
cd096152 RD |
4245 | if (_argo0) { |
4246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_IsVirtual. Expected _wxPyListCtrl_p."); | |
8ab979d7 | 4249 | return NULL; |
cd096152 | 4250 | } |
8ab979d7 | 4251 | } |
cf694132 | 4252 | { |
474c48f9 | 4253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4254 | _result = (bool )wxListCtrl_IsVirtual(_arg0); |
cf694132 | 4255 | |
474c48f9 | 4256 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4257 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4258 | } _resultobj = Py_BuildValue("i",_result); |
4259 | return _resultobj; | |
8ab979d7 | 4260 | } |
cd096152 RD |
4261 | |
4262 | #define wxListCtrl_RefreshItem(_swigobj,_swigarg0) (_swigobj->RefreshItem(_swigarg0)) | |
4263 | static PyObject *_wrap_wxListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4264 | PyObject * _resultobj; | |
4265 | wxPyListCtrl * _arg0; | |
4266 | long _arg1; | |
4267 | PyObject * _argo0 = 0; | |
4268 | char *_kwnames[] = { "self","item", NULL }; | |
4269 | ||
4270 | self = self; | |
4271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_RefreshItem",_kwnames,&_argo0,&_arg1)) | |
4272 | return NULL; | |
4273 | if (_argo0) { | |
4274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItem. Expected _wxPyListCtrl_p."); | |
4277 | return NULL; | |
4278 | } | |
4279 | } | |
4280 | { | |
474c48f9 | 4281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4282 | wxListCtrl_RefreshItem(_arg0,_arg1); |
cd096152 | 4283 | |
474c48f9 | 4284 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4285 | if (PyErr_Occurred()) return NULL; |
4286 | } Py_INCREF(Py_None); | |
4287 | _resultobj = Py_None; | |
8ab979d7 RD |
4288 | return _resultobj; |
4289 | } | |
4290 | ||
cd096152 RD |
4291 | #define wxListCtrl_RefreshItems(_swigobj,_swigarg0,_swigarg1) (_swigobj->RefreshItems(_swigarg0,_swigarg1)) |
4292 | static PyObject *_wrap_wxListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4293 | PyObject * _resultobj; |
cd096152 RD |
4294 | wxPyListCtrl * _arg0; |
4295 | long _arg1; | |
4296 | long _arg2; | |
1d99702e | 4297 | PyObject * _argo0 = 0; |
cd096152 | 4298 | char *_kwnames[] = { "self","itemFrom","itemTo", NULL }; |
8ab979d7 RD |
4299 | |
4300 | self = self; | |
cd096152 | 4301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_RefreshItems",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4302 | return NULL; |
1d99702e RD |
4303 | if (_argo0) { |
4304 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItems. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4307 | return NULL; |
4308 | } | |
4309 | } | |
cd096152 | 4310 | { |
474c48f9 | 4311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4312 | wxListCtrl_RefreshItems(_arg0,_arg1,_arg2); |
cd096152 | 4313 | |
474c48f9 | 4314 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4315 | if (PyErr_Occurred()) return NULL; |
4316 | } Py_INCREF(Py_None); | |
4317 | _resultobj = Py_None; | |
4318 | return _resultobj; | |
4319 | } | |
4320 | ||
4321 | #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0)) | |
4322 | static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4323 | PyObject * _resultobj; | |
4324 | bool _result; | |
4325 | wxPyListCtrl * _arg0; | |
4326 | int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT); | |
4327 | PyObject * _argo0 = 0; | |
4328 | char *_kwnames[] = { "self","flag", NULL }; | |
4329 | ||
4330 | self = self; | |
4331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1)) | |
4332 | return NULL; | |
4333 | if (_argo0) { | |
4334 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4335 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4337 | return NULL; |
4338 | } | |
4339 | } | |
cf694132 | 4340 | { |
474c48f9 | 4341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4342 | _result = (bool )wxListCtrl_Arrange(_arg0,_arg1); |
cf694132 | 4343 | |
474c48f9 | 4344 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4345 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4346 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4347 | return _resultobj; |
4348 | } | |
4349 | ||
cd096152 RD |
4350 | #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0)) |
4351 | static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4352 | PyObject * _resultobj; |
cd096152 RD |
4353 | bool _result; |
4354 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4355 | long _arg1; |
1d99702e | 4356 | PyObject * _argo0 = 0; |
cd096152 | 4357 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4358 | |
4359 | self = self; | |
cd096152 | 4360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4361 | return NULL; |
1d99702e RD |
4362 | if (_argo0) { |
4363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4366 | return NULL; |
4367 | } | |
4368 | } | |
4369 | { | |
474c48f9 | 4370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4371 | _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1); |
cd096152 | 4372 | |
474c48f9 | 4373 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4374 | if (PyErr_Occurred()) return NULL; |
4375 | } _resultobj = Py_BuildValue("i",_result); | |
4376 | return _resultobj; | |
4377 | } | |
4378 | ||
4379 | #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
4380 | static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4381 | PyObject * _resultobj; | |
4382 | bool _result; | |
4383 | wxPyListCtrl * _arg0; | |
4384 | PyObject * _argo0 = 0; | |
4385 | char *_kwnames[] = { "self", NULL }; | |
4386 | ||
4387 | self = self; | |
4388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0)) | |
4389 | return NULL; | |
4390 | if (_argo0) { | |
4391 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4392 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxPyListCtrl_p."); | |
2cd2fac8 | 4394 | return NULL; |
cd096152 | 4395 | } |
2cd2fac8 | 4396 | } |
cd096152 | 4397 | { |
474c48f9 | 4398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4399 | _result = (bool )wxListCtrl_DeleteAllItems(_arg0); |
cd096152 | 4400 | |
474c48f9 | 4401 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4402 | if (PyErr_Occurred()) return NULL; |
4403 | } _resultobj = Py_BuildValue("i",_result); | |
4404 | return _resultobj; | |
4405 | } | |
4406 | ||
4407 | #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0)) | |
4408 | static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4409 | PyObject * _resultobj; | |
4410 | bool _result; | |
4411 | wxPyListCtrl * _arg0; | |
4412 | int _arg1; | |
4413 | PyObject * _argo0 = 0; | |
4414 | char *_kwnames[] = { "self","col", NULL }; | |
4415 | ||
4416 | self = self; | |
4417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1)) | |
2cd2fac8 | 4418 | return NULL; |
cd096152 RD |
4419 | if (_argo0) { |
4420 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4421 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxPyListCtrl_p."); | |
4423 | return NULL; | |
4424 | } | |
4425 | } | |
4426 | { | |
474c48f9 | 4427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4428 | _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1); |
cd096152 | 4429 | |
474c48f9 | 4430 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4431 | if (PyErr_Occurred()) return NULL; |
4432 | } _resultobj = Py_BuildValue("i",_result); | |
4433 | return _resultobj; | |
4434 | } | |
4435 | ||
4436 | #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns()) | |
4437 | static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4438 | PyObject * _resultobj; | |
4439 | bool _result; | |
4440 | wxPyListCtrl * _arg0; | |
4441 | PyObject * _argo0 = 0; | |
4442 | char *_kwnames[] = { "self", NULL }; | |
4443 | ||
4444 | self = self; | |
4445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0)) | |
4446 | return NULL; | |
4447 | if (_argo0) { | |
4448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxPyListCtrl_p."); | |
4451 | return NULL; | |
4452 | } | |
4453 | } | |
4454 | { | |
474c48f9 | 4455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4456 | _result = (bool )wxListCtrl_DeleteAllColumns(_arg0); |
cd096152 | 4457 | |
474c48f9 | 4458 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4459 | if (PyErr_Occurred()) return NULL; |
4460 | } _resultobj = Py_BuildValue("i",_result); | |
4461 | return _resultobj; | |
4462 | } | |
4463 | ||
4464 | #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll()) | |
4465 | static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4466 | PyObject * _resultobj; | |
4467 | wxPyListCtrl * _arg0; | |
4468 | PyObject * _argo0 = 0; | |
4469 | char *_kwnames[] = { "self", NULL }; | |
4470 | ||
4471 | self = self; | |
4472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0)) | |
8ab979d7 | 4473 | return NULL; |
cd096152 RD |
4474 | if (_argo0) { |
4475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxPyListCtrl_p."); | |
4478 | return NULL; | |
4479 | } | |
8ab979d7 | 4480 | } |
cf694132 | 4481 | { |
474c48f9 | 4482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4483 | wxListCtrl_ClearAll(_arg0); |
cf694132 | 4484 | |
474c48f9 | 4485 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4486 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4487 | } Py_INCREF(Py_None); |
4488 | _resultobj = Py_None; | |
8ab979d7 RD |
4489 | return _resultobj; |
4490 | } | |
4491 | ||
cd096152 RD |
4492 | #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) |
4493 | static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4494 | PyObject * _resultobj; |
cd096152 RD |
4495 | bool _result; |
4496 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4497 | long _arg1; |
1d99702e | 4498 | PyObject * _argo0 = 0; |
cd096152 | 4499 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4500 | |
4501 | self = self; | |
cd096152 | 4502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4503 | return NULL; |
1d99702e RD |
4504 | if (_argo0) { |
4505 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4506 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4508 | return NULL; |
4509 | } | |
4510 | } | |
cf694132 | 4511 | { |
474c48f9 | 4512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4513 | _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1); |
cf694132 | 4514 | |
474c48f9 | 4515 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4516 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4517 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4518 | return _resultobj; |
4519 | } | |
4520 | ||
cd096152 RD |
4521 | #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4522 | static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4523 | PyObject * _resultobj; |
4524 | long _result; | |
cd096152 | 4525 | wxPyListCtrl * _arg0; |
8ab979d7 RD |
4526 | long _arg1; |
4527 | wxString * _arg2; | |
cd096152 | 4528 | bool _arg3 = (bool ) FALSE; |
1d99702e | 4529 | PyObject * _argo0 = 0; |
8ab979d7 | 4530 | PyObject * _obj2 = 0; |
cd096152 RD |
4531 | int tempbool3 = (int) FALSE; |
4532 | char *_kwnames[] = { "self","start","str","partial", NULL }; | |
8ab979d7 RD |
4533 | |
4534 | self = self; | |
cd096152 | 4535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
8ab979d7 | 4536 | return NULL; |
1d99702e RD |
4537 | if (_argo0) { |
4538 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4539 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4541 | return NULL; |
4542 | } | |
4543 | } | |
4544 | { | |
c8bc7bb8 RD |
4545 | _arg2 = wxString_in_helper(_obj2); |
4546 | if (_arg2 == NULL) | |
8ab979d7 | 4547 | return NULL; |
8ab979d7 | 4548 | } |
cd096152 | 4549 | _arg3 = (bool ) tempbool3; |
cf694132 | 4550 | { |
474c48f9 | 4551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4552 | _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4553 | |
474c48f9 | 4554 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4555 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4556 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4557 | { |
4558 | if (_obj2) | |
4559 | delete _arg2; | |
4560 | } | |
4561 | return _resultobj; | |
4562 | } | |
4563 | ||
cd096152 RD |
4564 | #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1)) |
4565 | static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4566 | PyObject * _resultobj; |
cd096152 RD |
4567 | long _result; |
4568 | wxPyListCtrl * _arg0; | |
4569 | long _arg1; | |
4570 | long _arg2; | |
1d99702e | 4571 | PyObject * _argo0 = 0; |
cd096152 | 4572 | char *_kwnames[] = { "self","start","data", NULL }; |
8ab979d7 RD |
4573 | |
4574 | self = self; | |
cd096152 | 4575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4576 | return NULL; |
1d99702e RD |
4577 | if (_argo0) { |
4578 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4579 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4581 | return NULL; |
4582 | } | |
4583 | } | |
cf694132 | 4584 | { |
474c48f9 | 4585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4586 | _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2); |
cf694132 | 4587 | |
474c48f9 | 4588 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4589 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4590 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4591 | return _resultobj; |
4592 | } | |
4593 | ||
cd096152 RD |
4594 | #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4595 | static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4596 | PyObject * _resultobj; |
cd096152 RD |
4597 | long _result; |
4598 | wxPyListCtrl * _arg0; | |
4599 | long _arg1; | |
4600 | wxPoint * _arg2; | |
4601 | int _arg3; | |
1d99702e | 4602 | PyObject * _argo0 = 0; |
cd096152 RD |
4603 | wxPoint temp; |
4604 | PyObject * _obj2 = 0; | |
4605 | char *_kwnames[] = { "self","start","pt","direction", NULL }; | |
8ab979d7 RD |
4606 | |
4607 | self = self; | |
cd096152 | 4608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4609 | return NULL; |
1d99702e RD |
4610 | if (_argo0) { |
4611 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4612 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4614 | return NULL; |
4615 | } | |
4616 | } | |
f6bcfd97 | 4617 | { |
cd096152 RD |
4618 | _arg2 = &temp; |
4619 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 4620 | return NULL; |
f6bcfd97 | 4621 | } |
cf694132 | 4622 | { |
474c48f9 | 4623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4624 | _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4625 | |
474c48f9 | 4626 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4627 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4628 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4629 | return _resultobj; |
4630 | } | |
4631 | ||
cd096152 RD |
4632 | #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
4633 | static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4634 | PyObject * _resultobj; |
cd096152 RD |
4635 | long _result; |
4636 | wxPyListCtrl * _arg0; | |
4637 | wxPoint * _arg1; | |
4638 | int * _arg2; | |
4639 | int temp; | |
1d99702e | 4640 | PyObject * _argo0 = 0; |
cd096152 RD |
4641 | wxPoint temp0; |
4642 | PyObject * _obj1 = 0; | |
4643 | char *_kwnames[] = { "self","point", NULL }; | |
8ab979d7 RD |
4644 | |
4645 | self = self; | |
cf694132 | 4646 | { |
cd096152 | 4647 | _arg2 = &temp; |
8ab979d7 | 4648 | } |
cd096152 | 4649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4650 | return NULL; |
1d99702e RD |
4651 | if (_argo0) { |
4652 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4653 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4655 | return NULL; |
4656 | } | |
4657 | } | |
cf694132 | 4658 | { |
cd096152 RD |
4659 | _arg1 = &temp0; |
4660 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4661 | return NULL; |
cd096152 | 4662 | } |
cf694132 | 4663 | { |
474c48f9 | 4664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4665 | _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2); |
cf694132 | 4666 | |
474c48f9 | 4667 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4668 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4669 | } _resultobj = Py_BuildValue("l",_result); |
4670 | { | |
4671 | PyObject *o; | |
4672 | o = PyInt_FromLong((long) (*_arg2)); | |
4673 | _resultobj = t_output_helper(_resultobj, o); | |
4674 | } | |
8ab979d7 RD |
4675 | return _resultobj; |
4676 | } | |
4677 | ||
cd096152 RD |
4678 | #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0)) |
4679 | static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4680 | PyObject * _resultobj; |
cd096152 RD |
4681 | long _result; |
4682 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4683 | wxListItem * _arg1; |
1d99702e RD |
4684 | PyObject * _argo0 = 0; |
4685 | PyObject * _argo1 = 0; | |
efc5f224 | 4686 | char *_kwnames[] = { "self","info", NULL }; |
8ab979d7 RD |
4687 | |
4688 | self = self; | |
cd096152 | 4689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4690 | return NULL; |
1d99702e RD |
4691 | if (_argo0) { |
4692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4695 | return NULL; |
4696 | } | |
4697 | } | |
1d99702e RD |
4698 | if (_argo1) { |
4699 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4700 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
cd096152 | 4701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p."); |
8ab979d7 RD |
4702 | return NULL; |
4703 | } | |
4704 | } | |
cf694132 | 4705 | { |
474c48f9 | 4706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4707 | _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1); |
cf694132 | 4708 | |
474c48f9 | 4709 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4710 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4711 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4712 | return _resultobj; |
4713 | } | |
4714 | ||
cd096152 RD |
4715 | #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) |
4716 | static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4717 | PyObject * _resultobj; |
4718 | long _result; | |
cd096152 | 4719 | wxPyListCtrl * _arg0; |
8ab979d7 | 4720 | long _arg1; |
cd096152 | 4721 | wxString * _arg2; |
1d99702e | 4722 | PyObject * _argo0 = 0; |
cd096152 RD |
4723 | PyObject * _obj2 = 0; |
4724 | char *_kwnames[] = { "self","index","label", NULL }; | |
8ab979d7 RD |
4725 | |
4726 | self = self; | |
cd096152 | 4727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4728 | return NULL; |
1d99702e RD |
4729 | if (_argo0) { |
4730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4733 | return NULL; |
4734 | } | |
4735 | } | |
4736 | { | |
c8bc7bb8 RD |
4737 | _arg2 = wxString_in_helper(_obj2); |
4738 | if (_arg2 == NULL) | |
8ab979d7 | 4739 | return NULL; |
8ab979d7 | 4740 | } |
cf694132 | 4741 | { |
474c48f9 | 4742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4743 | _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2); |
cf694132 | 4744 | |
474c48f9 | 4745 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4746 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4747 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 4748 | { |
cd096152 RD |
4749 | if (_obj2) |
4750 | delete _arg2; | |
4751 | } | |
8ab979d7 RD |
4752 | return _resultobj; |
4753 | } | |
4754 | ||
cd096152 RD |
4755 | #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) |
4756 | static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4757 | PyObject * _resultobj; |
cd096152 RD |
4758 | long _result; |
4759 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4760 | long _arg1; |
4761 | int _arg2; | |
1d99702e | 4762 | PyObject * _argo0 = 0; |
cd096152 | 4763 | char *_kwnames[] = { "self","index","imageIndex", NULL }; |
8ab979d7 RD |
4764 | |
4765 | self = self; | |
cd096152 | 4766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4767 | return NULL; |
1d99702e RD |
4768 | if (_argo0) { |
4769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4772 | return NULL; |
4773 | } | |
4774 | } | |
cf694132 | 4775 | { |
474c48f9 | 4776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4777 | _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2); |
cf694132 | 4778 | |
474c48f9 | 4779 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4780 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4781 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4782 | return _resultobj; |
4783 | } | |
4784 | ||
cd096152 RD |
4785 | #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2)) |
4786 | static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4787 | PyObject * _resultobj; |
cd096152 RD |
4788 | long _result; |
4789 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4790 | long _arg1; |
cd096152 RD |
4791 | wxString * _arg2; |
4792 | int _arg3; | |
1d99702e | 4793 | PyObject * _argo0 = 0; |
2f90df85 | 4794 | PyObject * _obj2 = 0; |
cd096152 | 4795 | char *_kwnames[] = { "self","index","label","imageIndex", NULL }; |
8ab979d7 RD |
4796 | |
4797 | self = self; | |
cd096152 | 4798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4799 | return NULL; |
1d99702e RD |
4800 | if (_argo0) { |
4801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4804 | return NULL; |
4805 | } | |
4806 | } | |
2f90df85 | 4807 | { |
c8bc7bb8 RD |
4808 | _arg2 = wxString_in_helper(_obj2); |
4809 | if (_arg2 == NULL) | |
8ab979d7 | 4810 | return NULL; |
2f90df85 | 4811 | } |
cf694132 | 4812 | { |
474c48f9 | 4813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4814 | _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4815 | |
474c48f9 | 4816 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4817 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4818 | } _resultobj = Py_BuildValue("l",_result); |
4819 | { | |
4820 | if (_obj2) | |
4821 | delete _arg2; | |
4822 | } | |
8ab979d7 RD |
4823 | return _resultobj; |
4824 | } | |
4825 | ||
cd096152 RD |
4826 | #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) |
4827 | static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4828 | PyObject * _resultobj; |
cd096152 RD |
4829 | long _result; |
4830 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4831 | long _arg1; |
cd096152 | 4832 | wxListItem * _arg2; |
1d99702e | 4833 | PyObject * _argo0 = 0; |
cd096152 RD |
4834 | PyObject * _argo2 = 0; |
4835 | char *_kwnames[] = { "self","col","info", NULL }; | |
8ab979d7 RD |
4836 | |
4837 | self = self; | |
cd096152 | 4838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 4839 | return NULL; |
1d99702e RD |
4840 | if (_argo0) { |
4841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxPyListCtrl_p."); | |
4844 | return NULL; | |
4845 | } | |
4846 | } | |
4847 | if (_argo2) { | |
4848 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4849 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
4850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p."); | |
8ab979d7 RD |
4851 | return NULL; |
4852 | } | |
4853 | } | |
cf694132 | 4854 | { |
474c48f9 | 4855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4856 | _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2); |
cf694132 | 4857 | |
474c48f9 | 4858 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4859 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4860 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4861 | return _resultobj; |
4862 | } | |
4863 | ||
cd096152 RD |
4864 | #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4865 | static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4866 | PyObject * _resultobj; |
cd096152 RD |
4867 | long _result; |
4868 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4869 | long _arg1; |
4870 | wxString * _arg2; | |
cd096152 RD |
4871 | int _arg3 = (int ) (wxLIST_FORMAT_LEFT); |
4872 | int _arg4 = (int ) -1; | |
1d99702e | 4873 | PyObject * _argo0 = 0; |
8ab979d7 | 4874 | PyObject * _obj2 = 0; |
cd096152 | 4875 | char *_kwnames[] = { "self","col","heading","format","width", NULL }; |
8ab979d7 RD |
4876 | |
4877 | self = self; | |
cd096152 | 4878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 4879 | return NULL; |
1d99702e RD |
4880 | if (_argo0) { |
4881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4884 | return NULL; |
4885 | } | |
4886 | } | |
4887 | { | |
c8bc7bb8 RD |
4888 | _arg2 = wxString_in_helper(_obj2); |
4889 | if (_arg2 == NULL) | |
8ab979d7 | 4890 | return NULL; |
8ab979d7 | 4891 | } |
cf694132 | 4892 | { |
474c48f9 | 4893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4894 | _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4); |
cf694132 | 4895 | |
474c48f9 | 4896 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4897 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4898 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4899 | { |
4900 | if (_obj2) | |
4901 | delete _arg2; | |
4902 | } | |
4903 | return _resultobj; | |
4904 | } | |
4905 | ||
cd096152 RD |
4906 | #define wxListCtrl_SetItemCount(_swigobj,_swigarg0) (_swigobj->SetItemCount(_swigarg0)) |
4907 | static PyObject *_wrap_wxListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4908 | PyObject * _resultobj; |
cd096152 | 4909 | wxPyListCtrl * _arg0; |
8ab979d7 | 4910 | long _arg1; |
1d99702e | 4911 | PyObject * _argo0 = 0; |
cd096152 | 4912 | char *_kwnames[] = { "self","count", NULL }; |
8ab979d7 RD |
4913 | |
4914 | self = self; | |
cd096152 | 4915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetItemCount",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4916 | return NULL; |
1d99702e RD |
4917 | if (_argo0) { |
4918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4921 | return NULL; |
4922 | } | |
4923 | } | |
cf694132 | 4924 | { |
474c48f9 | 4925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4926 | wxListCtrl_SetItemCount(_arg0,_arg1); |
cf694132 | 4927 | |
474c48f9 | 4928 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4929 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4930 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4931 | _resultobj = Py_None; |
4932 | return _resultobj; | |
4933 | } | |
4934 | ||
cd096152 RD |
4935 | #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1)) |
4936 | static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4937 | PyObject * _resultobj; |
cd096152 RD |
4938 | bool _result; |
4939 | wxPyListCtrl * _arg0; | |
4940 | int _arg1; | |
4941 | int _arg2; | |
1d99702e | 4942 | PyObject * _argo0 = 0; |
cd096152 | 4943 | char *_kwnames[] = { "self","dx","dy", NULL }; |
8ab979d7 RD |
4944 | |
4945 | self = self; | |
cd096152 | 4946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4947 | return NULL; |
1d99702e RD |
4948 | if (_argo0) { |
4949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4952 | return NULL; |
4953 | } | |
4954 | } | |
cf694132 | 4955 | { |
474c48f9 | 4956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4957 | _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2); |
cf694132 | 4958 | |
474c48f9 | 4959 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4960 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4961 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4962 | return _resultobj; |
4963 | } | |
4964 | ||
cd096152 | 4965 | static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject * func) { |
dcd38683 RD |
4966 | if (!PyCallable_Check(func)) |
4967 | return FALSE; | |
f6bcfd97 | 4968 | return self->SortItems(wxPyListCtrl_SortItems, (long)func); |
dcd38683 RD |
4969 | } |
4970 | static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4971 | PyObject * _resultobj; | |
4972 | bool _result; | |
cd096152 | 4973 | wxPyListCtrl * _arg0; |
dcd38683 RD |
4974 | PyObject * _arg1; |
4975 | PyObject * _argo0 = 0; | |
4976 | PyObject * _obj1 = 0; | |
4977 | char *_kwnames[] = { "self","func", NULL }; | |
4978 | ||
4979 | self = self; | |
4980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1)) | |
4981 | return NULL; | |
4982 | if (_argo0) { | |
4983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxPyListCtrl_p."); | |
dcd38683 RD |
4986 | return NULL; |
4987 | } | |
4988 | } | |
4989 | { | |
4990 | _arg1 = _obj1; | |
4991 | } | |
4992 | { | |
474c48f9 | 4993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4994 | _result = (bool )wxPyListCtrl_SortItems(_arg0,_arg1); |
dcd38683 | 4995 | |
474c48f9 | 4996 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4997 | if (PyErr_Occurred()) return NULL; |
dcd38683 RD |
4998 | } _resultobj = Py_BuildValue("i",_result); |
4999 | return _resultobj; | |
5000 | } | |
5001 | ||
059a841c RD |
5002 | static void *SwigwxListViewTowxPyListCtrl(void *ptr) { |
5003 | wxListView *src; | |
5004 | wxPyListCtrl *dest; | |
5005 | src = (wxListView *) ptr; | |
5006 | dest = (wxPyListCtrl *) src; | |
5007 | return (void *) dest; | |
5008 | } | |
5009 | ||
5010 | static void *SwigwxListViewTowxControl(void *ptr) { | |
5011 | wxListView *src; | |
5012 | wxControl *dest; | |
5013 | src = (wxListView *) ptr; | |
5014 | dest = (wxControl *) src; | |
5015 | return (void *) dest; | |
5016 | } | |
5017 | ||
5018 | static void *SwigwxListViewTowxWindow(void *ptr) { | |
5019 | wxListView *src; | |
5020 | wxWindow *dest; | |
5021 | src = (wxListView *) ptr; | |
5022 | dest = (wxWindow *) src; | |
5023 | return (void *) dest; | |
5024 | } | |
5025 | ||
5026 | static void *SwigwxListViewTowxEvtHandler(void *ptr) { | |
5027 | wxListView *src; | |
5028 | wxEvtHandler *dest; | |
5029 | src = (wxListView *) ptr; | |
5030 | dest = (wxEvtHandler *) src; | |
5031 | return (void *) dest; | |
5032 | } | |
5033 | ||
5034 | static void *SwigwxListViewTowxObject(void *ptr) { | |
5035 | wxListView *src; | |
5036 | wxObject *dest; | |
5037 | src = (wxListView *) ptr; | |
5038 | dest = (wxObject *) src; | |
5039 | return (void *) dest; | |
5040 | } | |
5041 | ||
5042 | #define new_wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5043 | static PyObject *_wrap_new_wxListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5044 | PyObject * _resultobj; | |
5045 | wxListView * _result; | |
5046 | wxWindow * _arg0; | |
5047 | wxWindowID _arg1 = (wxWindowID ) -1; | |
5048 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
5049 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5050 | long _arg4 = (long ) (wxLC_REPORT); | |
5051 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 5052 | wxString * _arg6 = (wxString *) &wxPyListCtrlNameStr; |
059a841c RD |
5053 | PyObject * _argo0 = 0; |
5054 | wxPoint temp; | |
5055 | PyObject * _obj2 = 0; | |
5056 | wxSize temp0; | |
5057 | PyObject * _obj3 = 0; | |
5058 | PyObject * _argo5 = 0; | |
5059 | PyObject * _obj6 = 0; | |
5060 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
5061 | char _ptemp[128]; | |
5062 | ||
5063 | self = self; | |
5064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListView",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) | |
5065 | return NULL; | |
5066 | if (_argo0) { | |
5067 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5068 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListView. Expected _wxWindow_p."); | |
5070 | return NULL; | |
5071 | } | |
5072 | } | |
5073 | if (_obj2) | |
5074 | { | |
5075 | _arg2 = &temp; | |
5076 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5077 | return NULL; | |
5078 | } | |
5079 | if (_obj3) | |
5080 | { | |
5081 | _arg3 = &temp0; | |
5082 | if (! wxSize_helper(_obj3, &_arg3)) | |
5083 | return NULL; | |
5084 | } | |
5085 | if (_argo5) { | |
5086 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5087 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
5088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListView. Expected _wxValidator_p."); | |
5089 | return NULL; | |
5090 | } | |
5091 | } | |
5092 | if (_obj6) | |
5093 | { | |
c8bc7bb8 RD |
5094 | _arg6 = wxString_in_helper(_obj6); |
5095 | if (_arg6 == NULL) | |
059a841c | 5096 | return NULL; |
059a841c RD |
5097 | } |
5098 | { | |
474c48f9 | 5099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5100 | _result = (wxListView *)new_wxListView(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
059a841c | 5101 | |
474c48f9 | 5102 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5103 | if (PyErr_Occurred()) return NULL; |
5104 | } if (_result) { | |
5105 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5106 | _resultobj = Py_BuildValue("s",_ptemp); | |
5107 | } else { | |
5108 | Py_INCREF(Py_None); | |
5109 | _resultobj = Py_None; | |
5110 | } | |
5111 | { | |
5112 | if (_obj6) | |
5113 | delete _arg6; | |
5114 | } | |
5115 | return _resultobj; | |
5116 | } | |
5117 | ||
5118 | #define new_wxPreListView() (new wxListView()) | |
5119 | static PyObject *_wrap_new_wxPreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5120 | PyObject * _resultobj; | |
5121 | wxListView * _result; | |
5122 | char *_kwnames[] = { NULL }; | |
5123 | char _ptemp[128]; | |
5124 | ||
5125 | self = self; | |
5126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListView",_kwnames)) | |
5127 | return NULL; | |
5128 | { | |
474c48f9 | 5129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5130 | _result = (wxListView *)new_wxPreListView(); |
059a841c | 5131 | |
474c48f9 | 5132 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5133 | if (PyErr_Occurred()) return NULL; |
5134 | } if (_result) { | |
5135 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5136 | _resultobj = Py_BuildValue("s",_ptemp); | |
5137 | } else { | |
5138 | Py_INCREF(Py_None); | |
5139 | _resultobj = Py_None; | |
5140 | } | |
5141 | return _resultobj; | |
5142 | } | |
5143 | ||
5144 | #define wxListView_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5145 | static PyObject *_wrap_wxListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5146 | PyObject * _resultobj; | |
5147 | bool _result; | |
5148 | wxListView * _arg0; | |
5149 | wxWindow * _arg1; | |
5150 | wxWindowID _arg2 = (wxWindowID ) -1; | |
5151 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5152 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5153 | long _arg5 = (long ) (wxLC_REPORT); | |
5154 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 5155 | wxString * _arg7 = (wxString *) &wxPyListCtrlNameStr; |
059a841c RD |
5156 | PyObject * _argo0 = 0; |
5157 | PyObject * _argo1 = 0; | |
5158 | wxPoint temp; | |
5159 | PyObject * _obj3 = 0; | |
5160 | wxSize temp0; | |
5161 | PyObject * _obj4 = 0; | |
5162 | PyObject * _argo6 = 0; | |
5163 | PyObject * _obj7 = 0; | |
5164 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
5165 | ||
5166 | self = self; | |
5167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListView_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
5168 | return NULL; | |
5169 | if (_argo0) { | |
5170 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5171 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Create. Expected _wxListView_p."); | |
5173 | return NULL; | |
5174 | } | |
5175 | } | |
5176 | if (_argo1) { | |
5177 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5178 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListView_Create. Expected _wxWindow_p."); | |
5180 | return NULL; | |
5181 | } | |
5182 | } | |
5183 | if (_obj3) | |
5184 | { | |
5185 | _arg3 = &temp; | |
5186 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5187 | return NULL; | |
5188 | } | |
5189 | if (_obj4) | |
5190 | { | |
5191 | _arg4 = &temp0; | |
5192 | if (! wxSize_helper(_obj4, &_arg4)) | |
5193 | return NULL; | |
5194 | } | |
5195 | if (_argo6) { | |
5196 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
5197 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
5198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListView_Create. Expected _wxValidator_p."); | |
5199 | return NULL; | |
5200 | } | |
5201 | } | |
5202 | if (_obj7) | |
5203 | { | |
c8bc7bb8 RD |
5204 | _arg7 = wxString_in_helper(_obj7); |
5205 | if (_arg7 == NULL) | |
059a841c | 5206 | return NULL; |
059a841c RD |
5207 | } |
5208 | { | |
474c48f9 | 5209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5210 | _result = (bool )wxListView_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
059a841c | 5211 | |
474c48f9 | 5212 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5213 | if (PyErr_Occurred()) return NULL; |
5214 | } _resultobj = Py_BuildValue("i",_result); | |
5215 | { | |
5216 | if (_obj7) | |
5217 | delete _arg7; | |
5218 | } | |
5219 | return _resultobj; | |
5220 | } | |
5221 | ||
5222 | #define wxListView_Select(_swigobj,_swigarg0,_swigarg1) (_swigobj->Select(_swigarg0,_swigarg1)) | |
5223 | static PyObject *_wrap_wxListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5224 | PyObject * _resultobj; | |
5225 | wxListView * _arg0; | |
5226 | long _arg1; | |
5227 | bool _arg2 = (bool ) TRUE; | |
5228 | PyObject * _argo0 = 0; | |
5229 | int tempbool2 = (int) TRUE; | |
5230 | char *_kwnames[] = { "self","n","on", NULL }; | |
5231 | ||
5232 | self = self; | |
5233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListView_Select",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
5234 | return NULL; | |
5235 | if (_argo0) { | |
5236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Select. Expected _wxListView_p."); | |
5239 | return NULL; | |
5240 | } | |
5241 | } | |
5242 | _arg2 = (bool ) tempbool2; | |
5243 | { | |
474c48f9 | 5244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5245 | wxListView_Select(_arg0,_arg1,_arg2); |
059a841c | 5246 | |
474c48f9 | 5247 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5248 | if (PyErr_Occurred()) return NULL; |
5249 | } Py_INCREF(Py_None); | |
5250 | _resultobj = Py_None; | |
5251 | return _resultobj; | |
5252 | } | |
5253 | ||
5254 | #define wxListView_Focus(_swigobj,_swigarg0) (_swigobj->Focus(_swigarg0)) | |
5255 | static PyObject *_wrap_wxListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5256 | PyObject * _resultobj; | |
5257 | wxListView * _arg0; | |
5258 | long _arg1; | |
5259 | PyObject * _argo0 = 0; | |
5260 | char *_kwnames[] = { "self","index", NULL }; | |
5261 | ||
5262 | self = self; | |
5263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_Focus",_kwnames,&_argo0,&_arg1)) | |
5264 | return NULL; | |
5265 | if (_argo0) { | |
5266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Focus. Expected _wxListView_p."); | |
5269 | return NULL; | |
5270 | } | |
5271 | } | |
5272 | { | |
474c48f9 | 5273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5274 | wxListView_Focus(_arg0,_arg1); |
059a841c | 5275 | |
474c48f9 | 5276 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5277 | if (PyErr_Occurred()) return NULL; |
5278 | } Py_INCREF(Py_None); | |
5279 | _resultobj = Py_None; | |
5280 | return _resultobj; | |
5281 | } | |
5282 | ||
5283 | #define wxListView_GetFocusedItem(_swigobj) (_swigobj->GetFocusedItem()) | |
5284 | static PyObject *_wrap_wxListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5285 | PyObject * _resultobj; | |
5286 | long _result; | |
5287 | wxListView * _arg0; | |
5288 | PyObject * _argo0 = 0; | |
5289 | char *_kwnames[] = { "self", NULL }; | |
5290 | ||
5291 | self = self; | |
5292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFocusedItem",_kwnames,&_argo0)) | |
5293 | return NULL; | |
5294 | if (_argo0) { | |
5295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFocusedItem. Expected _wxListView_p."); | |
5298 | return NULL; | |
5299 | } | |
5300 | } | |
5301 | { | |
474c48f9 | 5302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5303 | _result = (long )wxListView_GetFocusedItem(_arg0); |
059a841c | 5304 | |
474c48f9 | 5305 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5306 | if (PyErr_Occurred()) return NULL; |
5307 | } _resultobj = Py_BuildValue("l",_result); | |
5308 | return _resultobj; | |
5309 | } | |
5310 | ||
5311 | #define wxListView_GetNextSelected(_swigobj,_swigarg0) (_swigobj->GetNextSelected(_swigarg0)) | |
5312 | static PyObject *_wrap_wxListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5313 | PyObject * _resultobj; | |
5314 | long _result; | |
5315 | wxListView * _arg0; | |
5316 | long _arg1; | |
5317 | PyObject * _argo0 = 0; | |
5318 | char *_kwnames[] = { "self","item", NULL }; | |
5319 | ||
5320 | self = self; | |
5321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_GetNextSelected",_kwnames,&_argo0,&_arg1)) | |
5322 | return NULL; | |
5323 | if (_argo0) { | |
5324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetNextSelected. Expected _wxListView_p."); | |
5327 | return NULL; | |
5328 | } | |
5329 | } | |
5330 | { | |
474c48f9 | 5331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5332 | _result = (long )wxListView_GetNextSelected(_arg0,_arg1); |
059a841c | 5333 | |
474c48f9 | 5334 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5335 | if (PyErr_Occurred()) return NULL; |
5336 | } _resultobj = Py_BuildValue("l",_result); | |
5337 | return _resultobj; | |
5338 | } | |
5339 | ||
5340 | #define wxListView_GetFirstSelected(_swigobj) (_swigobj->GetFirstSelected()) | |
5341 | static PyObject *_wrap_wxListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5342 | PyObject * _resultobj; | |
5343 | long _result; | |
5344 | wxListView * _arg0; | |
5345 | PyObject * _argo0 = 0; | |
5346 | char *_kwnames[] = { "self", NULL }; | |
5347 | ||
5348 | self = self; | |
5349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFirstSelected",_kwnames,&_argo0)) | |
5350 | return NULL; | |
5351 | if (_argo0) { | |
5352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFirstSelected. Expected _wxListView_p."); | |
5355 | return NULL; | |
5356 | } | |
5357 | } | |
5358 | { | |
474c48f9 | 5359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5360 | _result = (long )wxListView_GetFirstSelected(_arg0); |
059a841c | 5361 | |
474c48f9 | 5362 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5363 | if (PyErr_Occurred()) return NULL; |
5364 | } _resultobj = Py_BuildValue("l",_result); | |
5365 | return _resultobj; | |
5366 | } | |
5367 | ||
5368 | #define wxListView_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) | |
5369 | static PyObject *_wrap_wxListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5370 | PyObject * _resultobj; | |
5371 | bool _result; | |
5372 | wxListView * _arg0; | |
5373 | long _arg1; | |
5374 | PyObject * _argo0 = 0; | |
5375 | char *_kwnames[] = { "self","index", NULL }; | |
5376 | ||
5377 | self = self; | |
5378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_IsSelected",_kwnames,&_argo0,&_arg1)) | |
5379 | return NULL; | |
5380 | if (_argo0) { | |
5381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_IsSelected. Expected _wxListView_p."); | |
5384 | return NULL; | |
5385 | } | |
5386 | } | |
5387 | { | |
474c48f9 | 5388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5389 | _result = (bool )wxListView_IsSelected(_arg0,_arg1); |
059a841c | 5390 | |
474c48f9 | 5391 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5392 | if (PyErr_Occurred()) return NULL; |
5393 | } _resultobj = Py_BuildValue("i",_result); | |
5394 | return _resultobj; | |
5395 | } | |
5396 | ||
5397 | #define wxListView_SetColumnImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnImage(_swigarg0,_swigarg1)) | |
5398 | static PyObject *_wrap_wxListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5399 | PyObject * _resultobj; | |
5400 | wxListView * _arg0; | |
5401 | int _arg1; | |
5402 | int _arg2; | |
5403 | PyObject * _argo0 = 0; | |
5404 | char *_kwnames[] = { "self","col","image", NULL }; | |
5405 | ||
5406 | self = self; | |
5407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListView_SetColumnImage",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5408 | return NULL; | |
5409 | if (_argo0) { | |
5410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_SetColumnImage. Expected _wxListView_p."); | |
5413 | return NULL; | |
5414 | } | |
5415 | } | |
5416 | { | |
474c48f9 | 5417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5418 | wxListView_SetColumnImage(_arg0,_arg1,_arg2); |
059a841c | 5419 | |
474c48f9 | 5420 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5421 | if (PyErr_Occurred()) return NULL; |
5422 | } Py_INCREF(Py_None); | |
5423 | _resultobj = Py_None; | |
5424 | return _resultobj; | |
5425 | } | |
5426 | ||
5427 | #define wxListView_ClearColumnImage(_swigobj,_swigarg0) (_swigobj->ClearColumnImage(_swigarg0)) | |
5428 | static PyObject *_wrap_wxListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5429 | PyObject * _resultobj; | |
5430 | wxListView * _arg0; | |
5431 | int _arg1; | |
5432 | PyObject * _argo0 = 0; | |
5433 | char *_kwnames[] = { "self","col", NULL }; | |
5434 | ||
5435 | self = self; | |
5436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListView_ClearColumnImage",_kwnames,&_argo0,&_arg1)) | |
5437 | return NULL; | |
5438 | if (_argo0) { | |
5439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_ClearColumnImage. Expected _wxListView_p."); | |
5442 | return NULL; | |
5443 | } | |
5444 | } | |
5445 | { | |
474c48f9 | 5446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5447 | wxListView_ClearColumnImage(_arg0,_arg1); |
059a841c | 5448 | |
474c48f9 | 5449 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5450 | if (PyErr_Occurred()) return NULL; |
5451 | } Py_INCREF(Py_None); | |
5452 | _resultobj = Py_None; | |
5453 | return _resultobj; | |
5454 | } | |
5455 | ||
aa2a5b86 RD |
5456 | #define new_wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
5457 | static PyObject *_wrap_new_wxTreeItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5458 | PyObject * _resultobj; |
aa2a5b86 RD |
5459 | wxTreeItemAttr * _result; |
5460 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5461 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5462 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5463 | wxColour temp; | |
5464 | PyObject * _obj0 = 0; | |
5465 | wxColour temp0; | |
5466 | PyObject * _obj1 = 0; | |
5467 | PyObject * _argo2 = 0; | |
5468 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
d5c9047a | 5469 | char _ptemp[128]; |
8ab979d7 RD |
5470 | |
5471 | self = self; | |
aa2a5b86 RD |
5472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTreeItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) |
5473 | return NULL; | |
5474 | if (_obj0) | |
5475 | { | |
5476 | _arg0 = &temp; | |
5477 | if (! wxColour_helper(_obj0, &_arg0)) | |
5478 | return NULL; | |
5479 | } | |
5480 | if (_obj1) | |
5481 | { | |
5482 | _arg1 = &temp0; | |
5483 | if (! wxColour_helper(_obj1, &_arg1)) | |
5484 | return NULL; | |
5485 | } | |
5486 | if (_argo2) { | |
5487 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5488 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
5489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTreeItemAttr. Expected _wxFont_p."); | |
8ab979d7 | 5490 | return NULL; |
aa2a5b86 RD |
5491 | } |
5492 | } | |
cf694132 | 5493 | { |
474c48f9 | 5494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5495 | _result = (wxTreeItemAttr *)new_wxTreeItemAttr(*_arg0,*_arg1,*_arg2); |
cf694132 | 5496 | |
474c48f9 | 5497 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5498 | if (PyErr_Occurred()) return NULL; |
1d99702e | 5499 | } if (_result) { |
aa2a5b86 | 5500 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemAttr_p"); |
1d99702e RD |
5501 | _resultobj = Py_BuildValue("s",_ptemp); |
5502 | } else { | |
5503 | Py_INCREF(Py_None); | |
5504 | _resultobj = Py_None; | |
5505 | } | |
8ab979d7 RD |
5506 | return _resultobj; |
5507 | } | |
5508 | ||
aa2a5b86 RD |
5509 | #define wxTreeItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
5510 | static PyObject *_wrap_wxTreeItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5511 | PyObject * _resultobj; |
aa2a5b86 RD |
5512 | wxTreeItemAttr * _arg0; |
5513 | wxColour * _arg1; | |
1d99702e | 5514 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
5515 | wxColour temp; |
5516 | PyObject * _obj1 = 0; | |
5517 | char *_kwnames[] = { "self","colText", NULL }; | |
8ab979d7 RD |
5518 | |
5519 | self = self; | |
aa2a5b86 | 5520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5521 | return NULL; |
1d99702e RD |
5522 | if (_argo0) { |
5523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetTextColour. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5526 | return NULL; |
5527 | } | |
5528 | } | |
aa2a5b86 RD |
5529 | { |
5530 | _arg1 = &temp; | |
5531 | if (! wxColour_helper(_obj1, &_arg1)) | |
5532 | return NULL; | |
5533 | } | |
cf694132 | 5534 | { |
474c48f9 | 5535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5536 | wxTreeItemAttr_SetTextColour(_arg0,*_arg1); |
cf694132 | 5537 | |
474c48f9 | 5538 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5539 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5540 | } Py_INCREF(Py_None); |
d5c9047a | 5541 | _resultobj = Py_None; |
8ab979d7 RD |
5542 | return _resultobj; |
5543 | } | |
5544 | ||
aa2a5b86 RD |
5545 | #define wxTreeItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
5546 | static PyObject *_wrap_wxTreeItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5547 | PyObject * _resultobj; |
aa2a5b86 RD |
5548 | wxTreeItemAttr * _arg0; |
5549 | wxColour * _arg1; | |
1d99702e | 5550 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
5551 | wxColour temp; |
5552 | PyObject * _obj1 = 0; | |
5553 | char *_kwnames[] = { "self","colBack", NULL }; | |
8ab979d7 RD |
5554 | |
5555 | self = self; | |
aa2a5b86 | 5556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5557 | return NULL; |
1d99702e RD |
5558 | if (_argo0) { |
5559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5562 | return NULL; |
5563 | } | |
5564 | } | |
aa2a5b86 RD |
5565 | { |
5566 | _arg1 = &temp; | |
5567 | if (! wxColour_helper(_obj1, &_arg1)) | |
5568 | return NULL; | |
5569 | } | |
cf694132 | 5570 | { |
474c48f9 | 5571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5572 | wxTreeItemAttr_SetBackgroundColour(_arg0,*_arg1); |
cf694132 | 5573 | |
474c48f9 | 5574 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5575 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 RD |
5576 | } Py_INCREF(Py_None); |
5577 | _resultobj = Py_None; | |
8ab979d7 RD |
5578 | return _resultobj; |
5579 | } | |
5580 | ||
aa2a5b86 RD |
5581 | #define wxTreeItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
5582 | static PyObject *_wrap_wxTreeItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 5583 | PyObject * _resultobj; |
aa2a5b86 RD |
5584 | wxTreeItemAttr * _arg0; |
5585 | wxFont * _arg1; | |
f6bcfd97 BP |
5586 | PyObject * _argo0 = 0; |
5587 | PyObject * _argo1 = 0; | |
aa2a5b86 | 5588 | char *_kwnames[] = { "self","font", NULL }; |
f6bcfd97 BP |
5589 | |
5590 | self = self; | |
aa2a5b86 | 5591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) |
f6bcfd97 BP |
5592 | return NULL; |
5593 | if (_argo0) { | |
5594 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5595 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetFont. Expected _wxTreeItemAttr_p."); | |
f6bcfd97 BP |
5597 | return NULL; |
5598 | } | |
5599 | } | |
5600 | if (_argo1) { | |
5601 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
aa2a5b86 RD |
5602 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { |
5603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemAttr_SetFont. Expected _wxFont_p."); | |
f6bcfd97 BP |
5604 | return NULL; |
5605 | } | |
5606 | } | |
5607 | { | |
474c48f9 | 5608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5609 | wxTreeItemAttr_SetFont(_arg0,*_arg1); |
f6bcfd97 | 5610 | |
474c48f9 | 5611 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5612 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 RD |
5613 | } Py_INCREF(Py_None); |
5614 | _resultobj = Py_None; | |
f6bcfd97 BP |
5615 | return _resultobj; |
5616 | } | |
5617 | ||
aa2a5b86 RD |
5618 | #define wxTreeItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) |
5619 | static PyObject *_wrap_wxTreeItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5620 | PyObject * _resultobj; |
aa2a5b86 RD |
5621 | bool _result; |
5622 | wxTreeItemAttr * _arg0; | |
5623 | PyObject * _argo0 = 0; | |
5624 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
5625 | |
5626 | self = self; | |
aa2a5b86 | 5627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasTextColour",_kwnames,&_argo0)) |
8ab979d7 | 5628 | return NULL; |
aa2a5b86 RD |
5629 | if (_argo0) { |
5630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasTextColour. Expected _wxTreeItemAttr_p."); | |
5633 | return NULL; | |
5634 | } | |
5635 | } | |
cf694132 | 5636 | { |
474c48f9 | 5637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5638 | _result = (bool )wxTreeItemAttr_HasTextColour(_arg0); |
cf694132 | 5639 | |
474c48f9 | 5640 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5641 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5642 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5643 | return _resultobj; |
5644 | } | |
5645 | ||
aa2a5b86 RD |
5646 | #define wxTreeItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) |
5647 | static PyObject *_wrap_wxTreeItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 5648 | PyObject * _resultobj; |
aa2a5b86 RD |
5649 | bool _result; |
5650 | wxTreeItemAttr * _arg0; | |
1d99702e | 5651 | PyObject * _argo0 = 0; |
efc5f224 | 5652 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
5653 | |
5654 | self = self; | |
aa2a5b86 | 5655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasBackgroundColour",_kwnames,&_argo0)) |
cf694132 | 5656 | return NULL; |
1d99702e RD |
5657 | if (_argo0) { |
5658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasBackgroundColour. Expected _wxTreeItemAttr_p."); | |
cf694132 RD |
5661 | return NULL; |
5662 | } | |
5663 | } | |
5664 | { | |
474c48f9 | 5665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5666 | _result = (bool )wxTreeItemAttr_HasBackgroundColour(_arg0); |
cf694132 | 5667 | |
474c48f9 | 5668 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5669 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5670 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
5671 | return _resultobj; |
5672 | } | |
5673 | ||
aa2a5b86 RD |
5674 | #define wxTreeItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) |
5675 | static PyObject *_wrap_wxTreeItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5676 | PyObject * _resultobj; |
aa2a5b86 RD |
5677 | bool _result; |
5678 | wxTreeItemAttr * _arg0; | |
1d99702e | 5679 | PyObject * _argo0 = 0; |
aa2a5b86 | 5680 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5681 | |
5682 | self = self; | |
aa2a5b86 | 5683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasFont",_kwnames,&_argo0)) |
8ab979d7 | 5684 | return NULL; |
1d99702e RD |
5685 | if (_argo0) { |
5686 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5687 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasFont. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5689 | return NULL; |
5690 | } | |
5691 | } | |
cf694132 | 5692 | { |
474c48f9 | 5693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5694 | _result = (bool )wxTreeItemAttr_HasFont(_arg0); |
cf694132 | 5695 | |
474c48f9 | 5696 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5697 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5698 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5699 | return _resultobj; |
5700 | } | |
5701 | ||
aa2a5b86 RD |
5702 | #define wxTreeItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
5703 | static PyObject *_wrap_wxTreeItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5704 | PyObject * _resultobj; |
aa2a5b86 RD |
5705 | wxColour * _result; |
5706 | wxTreeItemAttr * _arg0; | |
1d99702e | 5707 | PyObject * _argo0 = 0; |
efc5f224 | 5708 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5709 | char _ptemp[128]; |
5710 | ||
5711 | self = self; | |
aa2a5b86 | 5712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 5713 | return NULL; |
1d99702e RD |
5714 | if (_argo0) { |
5715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetTextColour. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5718 | return NULL; |
5719 | } | |
5720 | } | |
cf694132 | 5721 | { |
474c48f9 | 5722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5723 | _result = new wxColour (wxTreeItemAttr_GetTextColour(_arg0)); |
cf694132 | 5724 | |
474c48f9 | 5725 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5726 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
5727 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5728 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
5729 | return _resultobj; |
5730 | } | |
5731 | ||
aa2a5b86 RD |
5732 | #define wxTreeItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) |
5733 | static PyObject *_wrap_wxTreeItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
630d84f2 | 5734 | PyObject * _resultobj; |
aa2a5b86 RD |
5735 | wxColour * _result; |
5736 | wxTreeItemAttr * _arg0; | |
1d99702e | 5737 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
5738 | char *_kwnames[] = { "self", NULL }; |
5739 | char _ptemp[128]; | |
5740 | ||
5741 | self = self; | |
5742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
5743 | return NULL; | |
5744 | if (_argo0) { | |
5745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5748 | return NULL; | |
5749 | } | |
5750 | } | |
5751 | { | |
474c48f9 | 5752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5753 | _result = new wxColour (wxTreeItemAttr_GetBackgroundColour(_arg0)); |
aa2a5b86 | 5754 | |
474c48f9 | 5755 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 | 5756 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
5757 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5758 | _resultobj = Py_BuildValue("s",_ptemp); | |
aa2a5b86 RD |
5759 | return _resultobj; |
5760 | } | |
5761 | ||
5762 | #define wxTreeItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
5763 | static PyObject *_wrap_wxTreeItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5764 | PyObject * _resultobj; | |
5765 | wxFont * _result; | |
5766 | wxTreeItemAttr * _arg0; | |
5767 | PyObject * _argo0 = 0; | |
5768 | char *_kwnames[] = { "self", NULL }; | |
5769 | char _ptemp[128]; | |
5770 | ||
5771 | self = self; | |
5772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetFont",_kwnames,&_argo0)) | |
5773 | return NULL; | |
5774 | if (_argo0) { | |
5775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetFont. Expected _wxTreeItemAttr_p."); | |
5778 | return NULL; | |
5779 | } | |
5780 | } | |
5781 | { | |
474c48f9 | 5782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5783 | _result = new wxFont (wxTreeItemAttr_GetFont(_arg0)); |
aa2a5b86 | 5784 | |
474c48f9 | 5785 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 | 5786 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
5787 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
5788 | _resultobj = Py_BuildValue("s",_ptemp); | |
aa2a5b86 RD |
5789 | return _resultobj; |
5790 | } | |
5791 | ||
5792 | #define new_wxTreeItemId() (new wxTreeItemId()) | |
5793 | static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5794 | PyObject * _resultobj; | |
5795 | wxTreeItemId * _result; | |
5796 | char *_kwnames[] = { NULL }; | |
5797 | char _ptemp[128]; | |
5798 | ||
5799 | self = self; | |
5800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames)) | |
5801 | return NULL; | |
5802 | { | |
474c48f9 | 5803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5804 | _result = (wxTreeItemId *)new_wxTreeItemId(); |
aa2a5b86 | 5805 | |
474c48f9 | 5806 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5807 | if (PyErr_Occurred()) return NULL; |
5808 | } if (_result) { | |
5809 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
5810 | _resultobj = Py_BuildValue("s",_ptemp); | |
5811 | } else { | |
5812 | Py_INCREF(Py_None); | |
5813 | _resultobj = Py_None; | |
5814 | } | |
5815 | return _resultobj; | |
5816 | } | |
5817 | ||
5818 | #define delete_wxTreeItemId(_swigobj) (delete _swigobj) | |
5819 | static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5820 | PyObject * _resultobj; | |
5821 | wxTreeItemId * _arg0; | |
5822 | PyObject * _argo0 = 0; | |
5823 | char *_kwnames[] = { "self", NULL }; | |
5824 | ||
5825 | self = self; | |
5826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0)) | |
5827 | return NULL; | |
5828 | if (_argo0) { | |
5829 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5830 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5831 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p."); | |
5832 | return NULL; | |
5833 | } | |
5834 | } | |
5835 | { | |
474c48f9 | 5836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5837 | delete_wxTreeItemId(_arg0); |
aa2a5b86 | 5838 | |
474c48f9 | 5839 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5840 | if (PyErr_Occurred()) return NULL; |
5841 | } Py_INCREF(Py_None); | |
5842 | _resultobj = Py_None; | |
5843 | return _resultobj; | |
5844 | } | |
5845 | ||
5846 | #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk()) | |
5847 | static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5848 | PyObject * _resultobj; | |
5849 | bool _result; | |
5850 | wxTreeItemId * _arg0; | |
5851 | PyObject * _argo0 = 0; | |
5852 | char *_kwnames[] = { "self", NULL }; | |
5853 | ||
5854 | self = self; | |
5855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0)) | |
5856 | return NULL; | |
5857 | if (_argo0) { | |
5858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p."); | |
5861 | return NULL; | |
5862 | } | |
5863 | } | |
5864 | { | |
474c48f9 | 5865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5866 | _result = (bool )wxTreeItemId_IsOk(_arg0); |
aa2a5b86 | 5867 | |
474c48f9 | 5868 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5869 | if (PyErr_Occurred()) return NULL; |
5870 | } _resultobj = Py_BuildValue("i",_result); | |
5871 | return _resultobj; | |
5872 | } | |
5873 | ||
5874 | static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) { | |
5875 | if (! other) return -1; | |
5876 | return *self != *other; | |
5877 | } | |
5878 | static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5879 | PyObject * _resultobj; | |
5880 | int _result; | |
5881 | wxTreeItemId * _arg0; | |
5882 | wxTreeItemId * _arg1; | |
5883 | PyObject * _argo0 = 0; | |
5884 | PyObject * _argo1 = 0; | |
5885 | char *_kwnames[] = { "self","other", NULL }; | |
5886 | ||
5887 | self = self; | |
5888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1)) | |
5889 | return NULL; | |
5890 | if (_argo0) { | |
5891 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5892 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5894 | return NULL; | |
5895 | } | |
5896 | } | |
5897 | if (_argo1) { | |
5898 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5899 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
5900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5901 | return NULL; | |
5902 | } | |
5903 | } | |
5904 | { | |
474c48f9 | 5905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5906 | _result = (int )wxTreeItemId___cmp__(_arg0,_arg1); |
aa2a5b86 | 5907 | |
474c48f9 | 5908 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5909 | if (PyErr_Occurred()) return NULL; |
5910 | } _resultobj = Py_BuildValue("i",_result); | |
5911 | return _resultobj; | |
5912 | } | |
5913 | ||
5914 | static void *SwigwxPyTreeItemDataTowxObject(void *ptr) { | |
5915 | wxPyTreeItemData *src; | |
5916 | wxObject *dest; | |
5917 | src = (wxPyTreeItemData *) ptr; | |
5918 | dest = (wxObject *) src; | |
5919 | return (void *) dest; | |
5920 | } | |
5921 | ||
5922 | #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) | |
5923 | static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5924 | PyObject * _resultobj; | |
5925 | wxPyTreeItemData * _result; | |
5926 | PyObject * _arg0 = (PyObject *) NULL; | |
5927 | PyObject * _obj0 = 0; | |
5928 | char *_kwnames[] = { "obj", NULL }; | |
5929 | char _ptemp[128]; | |
5930 | ||
5931 | self = self; | |
5932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0)) | |
5933 | return NULL; | |
5934 | if (_obj0) | |
5935 | { | |
5936 | _arg0 = _obj0; | |
5937 | } | |
5938 | { | |
474c48f9 | 5939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5940 | _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0); |
aa2a5b86 | 5941 | |
474c48f9 | 5942 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5943 | if (PyErr_Occurred()) return NULL; |
5944 | } if (_result) { | |
5945 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
5946 | _resultobj = Py_BuildValue("s",_ptemp); | |
5947 | } else { | |
5948 | Py_INCREF(Py_None); | |
5949 | _resultobj = Py_None; | |
5950 | } | |
5951 | return _resultobj; | |
5952 | } | |
5953 | ||
5954 | #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData()) | |
5955 | static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5956 | PyObject * _resultobj; | |
5957 | PyObject * _result; | |
5958 | wxPyTreeItemData * _arg0; | |
5959 | PyObject * _argo0 = 0; | |
5960 | char *_kwnames[] = { "self", NULL }; | |
5961 | ||
5962 | self = self; | |
5963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0)) | |
5964 | return NULL; | |
5965 | if (_argo0) { | |
5966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
5968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p."); | |
5969 | return NULL; | |
5970 | } | |
5971 | } | |
5972 | { | |
474c48f9 | 5973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5974 | _result = (PyObject *)wxTreeItemData_GetData(_arg0); |
aa2a5b86 | 5975 | |
474c48f9 | 5976 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5977 | if (PyErr_Occurred()) return NULL; |
5978 | }{ | |
5979 | _resultobj = _result; | |
5980 | } | |
5981 | return _resultobj; | |
5982 | } | |
5983 | ||
5984 | #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
5985 | static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5986 | PyObject * _resultobj; | |
5987 | wxPyTreeItemData * _arg0; | |
5988 | PyObject * _arg1; | |
5989 | PyObject * _argo0 = 0; | |
5990 | PyObject * _obj1 = 0; | |
5991 | char *_kwnames[] = { "self","obj", NULL }; | |
5992 | ||
5993 | self = self; | |
5994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1)) | |
5995 | return NULL; | |
5996 | if (_argo0) { | |
5997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
5999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p."); | |
6000 | return NULL; | |
6001 | } | |
6002 | } | |
6003 | { | |
6004 | _arg1 = _obj1; | |
6005 | } | |
6006 | { | |
474c48f9 | 6007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6008 | wxTreeItemData_SetData(_arg0,_arg1); |
aa2a5b86 | 6009 | |
474c48f9 | 6010 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6011 | if (PyErr_Occurred()) return NULL; |
6012 | } Py_INCREF(Py_None); | |
6013 | _resultobj = Py_None; | |
6014 | return _resultobj; | |
6015 | } | |
6016 | ||
6017 | #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId()) | |
6018 | static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6019 | PyObject * _resultobj; | |
6020 | wxTreeItemId * _result; | |
6021 | wxPyTreeItemData * _arg0; | |
6022 | PyObject * _argo0 = 0; | |
6023 | char *_kwnames[] = { "self", NULL }; | |
6024 | char _ptemp[128]; | |
6025 | ||
6026 | self = self; | |
6027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0)) | |
6028 | return NULL; | |
6029 | if (_argo0) { | |
6030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p."); | |
6033 | return NULL; | |
6034 | } | |
6035 | } | |
6036 | { | |
474c48f9 | 6037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6038 | const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0); |
aa2a5b86 RD |
6039 | _result = (wxTreeItemId *) &_result_ref; |
6040 | ||
474c48f9 | 6041 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6042 | if (PyErr_Occurred()) return NULL; |
6043 | } if (_result) { | |
6044 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
6045 | _resultobj = Py_BuildValue("s",_ptemp); | |
6046 | } else { | |
6047 | Py_INCREF(Py_None); | |
6048 | _resultobj = Py_None; | |
6049 | } | |
6050 | return _resultobj; | |
6051 | } | |
6052 | ||
6053 | #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
6054 | static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6055 | PyObject * _resultobj; | |
6056 | wxPyTreeItemData * _arg0; | |
6057 | wxTreeItemId * _arg1; | |
6058 | PyObject * _argo0 = 0; | |
6059 | PyObject * _argo1 = 0; | |
6060 | char *_kwnames[] = { "self","id", NULL }; | |
630d84f2 RD |
6061 | |
6062 | self = self; | |
efc5f224 | 6063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1)) |
630d84f2 | 6064 | return NULL; |
1d99702e RD |
6065 | if (_argo0) { |
6066 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6067 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 6068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p."); |
630d84f2 RD |
6069 | return NULL; |
6070 | } | |
6071 | } | |
1d99702e RD |
6072 | if (_argo1) { |
6073 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6074 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
630d84f2 RD |
6075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p."); |
6076 | return NULL; | |
6077 | } | |
6078 | } | |
cf694132 | 6079 | { |
474c48f9 | 6080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6081 | wxTreeItemData_SetId(_arg0,*_arg1); |
cf694132 | 6082 | |
474c48f9 | 6083 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6084 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6085 | } Py_INCREF(Py_None); |
630d84f2 RD |
6086 | _resultobj = Py_None; |
6087 | return _resultobj; | |
6088 | } | |
6089 | ||
8bf5d46e RD |
6090 | static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) { |
6091 | wxTreeEvent *src; | |
6092 | wxNotifyEvent *dest; | |
6093 | src = (wxTreeEvent *) ptr; | |
6094 | dest = (wxNotifyEvent *) src; | |
6095 | return (void *) dest; | |
6096 | } | |
6097 | ||
8ab979d7 RD |
6098 | static void *SwigwxTreeEventTowxCommandEvent(void *ptr) { |
6099 | wxTreeEvent *src; | |
6100 | wxCommandEvent *dest; | |
6101 | src = (wxTreeEvent *) ptr; | |
6102 | dest = (wxCommandEvent *) src; | |
6103 | return (void *) dest; | |
6104 | } | |
6105 | ||
6106 | static void *SwigwxTreeEventTowxEvent(void *ptr) { | |
6107 | wxTreeEvent *src; | |
6108 | wxEvent *dest; | |
6109 | src = (wxTreeEvent *) ptr; | |
6110 | dest = (wxEvent *) src; | |
6111 | return (void *) dest; | |
6112 | } | |
6113 | ||
9df61a29 RD |
6114 | static void *SwigwxTreeEventTowxObject(void *ptr) { |
6115 | wxTreeEvent *src; | |
6116 | wxObject *dest; | |
6117 | src = (wxTreeEvent *) ptr; | |
6118 | dest = (wxObject *) src; | |
6119 | return (void *) dest; | |
6120 | } | |
6121 | ||
aa2a5b86 RD |
6122 | #define new_wxTreeEvent(_swigarg0,_swigarg1) (new wxTreeEvent(_swigarg0,_swigarg1)) |
6123 | static PyObject *_wrap_new_wxTreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6124 | PyObject * _resultobj; | |
6125 | wxTreeEvent * _result; | |
6126 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
6127 | int _arg1 = (int ) 0; | |
6128 | char *_kwnames[] = { "commandType","id", NULL }; | |
6129 | char _ptemp[128]; | |
6130 | ||
6131 | self = self; | |
6132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxTreeEvent",_kwnames,&_arg0,&_arg1)) | |
6133 | return NULL; | |
6134 | { | |
474c48f9 | 6135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6136 | _result = (wxTreeEvent *)new_wxTreeEvent(_arg0,_arg1); |
aa2a5b86 | 6137 | |
474c48f9 | 6138 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6139 | if (PyErr_Occurred()) return NULL; |
6140 | } if (_result) { | |
6141 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeEvent_p"); | |
6142 | _resultobj = Py_BuildValue("s",_ptemp); | |
6143 | } else { | |
6144 | Py_INCREF(Py_None); | |
6145 | _resultobj = Py_None; | |
6146 | } | |
6147 | return _resultobj; | |
6148 | } | |
6149 | ||
d5c9047a | 6150 | #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
efc5f224 | 6151 | static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6152 | PyObject * _resultobj; |
d5c9047a | 6153 | wxTreeItemId * _result; |
8ab979d7 | 6154 | wxTreeEvent * _arg0; |
1d99702e | 6155 | PyObject * _argo0 = 0; |
efc5f224 | 6156 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6157 | char _ptemp[128]; |
8ab979d7 RD |
6158 | |
6159 | self = self; | |
efc5f224 | 6160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 6161 | return NULL; |
1d99702e RD |
6162 | if (_argo0) { |
6163 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6164 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6166 | return NULL; |
6167 | } | |
6168 | } | |
cf694132 | 6169 | { |
474c48f9 | 6170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6171 | _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0)); |
cf694132 | 6172 | |
474c48f9 | 6173 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6174 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6175 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 6176 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6177 | return _resultobj; |
6178 | } | |
6179 | ||
d5c9047a | 6180 | #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
efc5f224 | 6181 | static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6182 | PyObject * _resultobj; |
d5c9047a | 6183 | wxTreeItemId * _result; |
8ab979d7 | 6184 | wxTreeEvent * _arg0; |
1d99702e | 6185 | PyObject * _argo0 = 0; |
efc5f224 | 6186 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6187 | char _ptemp[128]; |
6188 | ||
6189 | self = self; | |
efc5f224 | 6190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0)) |
8ab979d7 | 6191 | return NULL; |
1d99702e RD |
6192 | if (_argo0) { |
6193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6196 | return NULL; |
6197 | } | |
6198 | } | |
cf694132 | 6199 | { |
474c48f9 | 6200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6201 | _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0)); |
cf694132 | 6202 | |
474c48f9 | 6203 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6204 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6205 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8ab979d7 RD |
6206 | _resultobj = Py_BuildValue("s",_ptemp); |
6207 | return _resultobj; | |
6208 | } | |
6209 | ||
d5c9047a | 6210 | #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
efc5f224 | 6211 | static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6212 | PyObject * _resultobj; |
d5c9047a | 6213 | wxPoint * _result; |
8ab979d7 | 6214 | wxTreeEvent * _arg0; |
1d99702e | 6215 | PyObject * _argo0 = 0; |
efc5f224 | 6216 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6217 | char _ptemp[128]; |
8ab979d7 RD |
6218 | |
6219 | self = self; | |
efc5f224 | 6220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 6221 | return NULL; |
1d99702e RD |
6222 | if (_argo0) { |
6223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6226 | return NULL; |
6227 | } | |
6228 | } | |
cf694132 | 6229 | { |
474c48f9 | 6230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6231 | _result = new wxPoint (wxTreeEvent_GetPoint(_arg0)); |
cf694132 | 6232 | |
474c48f9 | 6233 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6234 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6235 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
d5c9047a | 6236 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6237 | return _resultobj; |
6238 | } | |
6239 | ||
65191ae8 RD |
6240 | #define wxTreeEvent_GetKeyEvent(_swigobj) (_swigobj->GetKeyEvent()) |
6241 | static PyObject *_wrap_wxTreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6242 | PyObject * _resultobj; | |
6243 | wxKeyEvent * _result; | |
6244 | wxTreeEvent * _arg0; | |
6245 | PyObject * _argo0 = 0; | |
6246 | char *_kwnames[] = { "self", NULL }; | |
6247 | char _ptemp[128]; | |
6248 | ||
6249 | self = self; | |
6250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetKeyEvent",_kwnames,&_argo0)) | |
6251 | return NULL; | |
6252 | if (_argo0) { | |
6253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetKeyEvent. Expected _wxTreeEvent_p."); | |
6256 | return NULL; | |
6257 | } | |
6258 | } | |
6259 | { | |
474c48f9 | 6260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6261 | const wxKeyEvent & _result_ref = wxTreeEvent_GetKeyEvent(_arg0); |
65191ae8 RD |
6262 | _result = (wxKeyEvent *) &_result_ref; |
6263 | ||
474c48f9 | 6264 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
6265 | if (PyErr_Occurred()) return NULL; |
6266 | } if (_result) { | |
6267 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxKeyEvent_p"); | |
6268 | _resultobj = Py_BuildValue("s",_ptemp); | |
6269 | } else { | |
6270 | Py_INCREF(Py_None); | |
6271 | _resultobj = Py_None; | |
6272 | } | |
6273 | return _resultobj; | |
6274 | } | |
6275 | ||
d5c9047a | 6276 | #define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
efc5f224 | 6277 | static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6278 | PyObject * _resultobj; |
d5c9047a | 6279 | int _result; |
8ab979d7 | 6280 | wxTreeEvent * _arg0; |
1d99702e | 6281 | PyObject * _argo0 = 0; |
efc5f224 | 6282 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6283 | |
6284 | self = self; | |
efc5f224 | 6285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 6286 | return NULL; |
1d99702e RD |
6287 | if (_argo0) { |
6288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6291 | return NULL; |
6292 | } | |
6293 | } | |
cf694132 | 6294 | { |
474c48f9 | 6295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6296 | _result = (int )wxTreeEvent_GetCode(_arg0); |
cf694132 | 6297 | |
474c48f9 | 6298 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6299 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6300 | } _resultobj = Py_BuildValue("i",_result); |
d5c9047a RD |
6301 | return _resultobj; |
6302 | } | |
6303 | ||
8bf5d46e | 6304 | #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 6305 | static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 6306 | PyObject * _resultobj; |
8bf5d46e | 6307 | wxString * _result; |
d5c9047a | 6308 | wxTreeEvent * _arg0; |
1d99702e | 6309 | PyObject * _argo0 = 0; |
efc5f224 | 6310 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
6311 | |
6312 | self = self; | |
efc5f224 | 6313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0)) |
d5c9047a | 6314 | return NULL; |
1d99702e RD |
6315 | if (_argo0) { |
6316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
8bf5d46e | 6318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p."); |
d5c9047a RD |
6319 | return NULL; |
6320 | } | |
6321 | } | |
cf694132 | 6322 | { |
474c48f9 | 6323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6324 | const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0); |
8bf5d46e | 6325 | _result = (wxString *) &_result_ref; |
cf694132 | 6326 | |
474c48f9 | 6327 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6328 | if (PyErr_Occurred()) return NULL; |
8bf5d46e | 6329 | }{ |
c8bc7bb8 RD |
6330 | #if wxUSE_UNICODE |
6331 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6332 | #else | |
eec92d76 | 6333 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6334 | #endif |
8bf5d46e | 6335 | } |
8ab979d7 RD |
6336 | return _resultobj; |
6337 | } | |
6338 | ||
f6bcfd97 BP |
6339 | static void *SwigwxPyTreeCtrlTowxControl(void *ptr) { |
6340 | wxPyTreeCtrl *src; | |
8ab979d7 | 6341 | wxControl *dest; |
f6bcfd97 | 6342 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6343 | dest = (wxControl *) src; |
6344 | return (void *) dest; | |
6345 | } | |
6346 | ||
f6bcfd97 BP |
6347 | static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) { |
6348 | wxPyTreeCtrl *src; | |
8ab979d7 | 6349 | wxWindow *dest; |
f6bcfd97 | 6350 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6351 | dest = (wxWindow *) src; |
6352 | return (void *) dest; | |
6353 | } | |
6354 | ||
f6bcfd97 BP |
6355 | static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) { |
6356 | wxPyTreeCtrl *src; | |
8ab979d7 | 6357 | wxEvtHandler *dest; |
f6bcfd97 | 6358 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6359 | dest = (wxEvtHandler *) src; |
6360 | return (void *) dest; | |
6361 | } | |
6362 | ||
9df61a29 RD |
6363 | static void *SwigwxPyTreeCtrlTowxObject(void *ptr) { |
6364 | wxPyTreeCtrl *src; | |
6365 | wxObject *dest; | |
6366 | src = (wxPyTreeCtrl *) ptr; | |
6367 | dest = (wxObject *) src; | |
6368 | return (void *) dest; | |
6369 | } | |
6370 | ||
f6bcfd97 | 6371 | #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6372 | static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6373 | PyObject * _resultobj; |
f6bcfd97 | 6374 | wxPyTreeCtrl * _result; |
8ab979d7 | 6375 | wxWindow * _arg0; |
1d99702e | 6376 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
6377 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6378 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
aa2a5b86 | 6379 | long _arg4 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); |
b68dc582 | 6380 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 6381 | wxString * _arg6 = (wxString *) &wxPy_TreeCtrlNameStr; |
1d99702e | 6382 | PyObject * _argo0 = 0; |
2f90df85 RD |
6383 | wxPoint temp; |
6384 | PyObject * _obj2 = 0; | |
6385 | wxSize temp0; | |
6386 | PyObject * _obj3 = 0; | |
1d99702e | 6387 | PyObject * _argo5 = 0; |
9a74fcaf | 6388 | PyObject * _obj6 = 0; |
efc5f224 | 6389 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
6390 | char _ptemp[128]; |
6391 | ||
6392 | self = self; | |
9a74fcaf | 6393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) |
8ab979d7 | 6394 | return NULL; |
1d99702e RD |
6395 | if (_argo0) { |
6396 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6397 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p."); |
6399 | return NULL; | |
6400 | } | |
6401 | } | |
2f90df85 RD |
6402 | if (_obj2) |
6403 | { | |
6404 | _arg2 = &temp; | |
6405 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6406 | return NULL; |
2f90df85 RD |
6407 | } |
6408 | if (_obj3) | |
6409 | { | |
6410 | _arg3 = &temp0; | |
6411 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6412 | return NULL; |
2f90df85 | 6413 | } |
1d99702e RD |
6414 | if (_argo5) { |
6415 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6416 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
6417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p."); |
6418 | return NULL; | |
6419 | } | |
6420 | } | |
9a74fcaf RD |
6421 | if (_obj6) |
6422 | { | |
6423 | _arg6 = wxString_in_helper(_obj6); | |
6424 | if (_arg6 == NULL) | |
6425 | return NULL; | |
6426 | } | |
cf694132 | 6427 | { |
474c48f9 | 6428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 6429 | _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
cf694132 | 6430 | |
474c48f9 | 6431 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6432 | if (PyErr_Occurred()) return NULL; |
1d99702e | 6433 | } if (_result) { |
f6bcfd97 | 6434 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); |
1d99702e RD |
6435 | _resultobj = Py_BuildValue("s",_ptemp); |
6436 | } else { | |
6437 | Py_INCREF(Py_None); | |
6438 | _resultobj = Py_None; | |
6439 | } | |
9a74fcaf RD |
6440 | { |
6441 | if (_obj6) | |
6442 | delete _arg6; | |
6443 | } | |
8ab979d7 RD |
6444 | return _resultobj; |
6445 | } | |
6446 | ||
aa2a5b86 RD |
6447 | #define new_wxPreTreeCtrl() (new wxPyTreeCtrl()) |
6448 | static PyObject *_wrap_new_wxPreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 6449 | PyObject * _resultobj; |
aa2a5b86 RD |
6450 | wxPyTreeCtrl * _result; |
6451 | char *_kwnames[] = { NULL }; | |
6452 | char _ptemp[128]; | |
6453 | ||
6454 | self = self; | |
6455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTreeCtrl",_kwnames)) | |
6456 | return NULL; | |
6457 | { | |
474c48f9 | 6458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6459 | _result = (wxPyTreeCtrl *)new_wxPreTreeCtrl(); |
aa2a5b86 | 6460 | |
474c48f9 | 6461 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6462 | if (PyErr_Occurred()) return NULL; |
6463 | } if (_result) { | |
6464 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); | |
6465 | _resultobj = Py_BuildValue("s",_ptemp); | |
6466 | } else { | |
6467 | Py_INCREF(Py_None); | |
6468 | _resultobj = Py_None; | |
6469 | } | |
6470 | return _resultobj; | |
6471 | } | |
6472 | ||
6473 | #define wxTreeCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
6474 | static PyObject *_wrap_wxTreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6475 | PyObject * _resultobj; | |
6476 | bool _result; | |
f6bcfd97 | 6477 | wxPyTreeCtrl * _arg0; |
aa2a5b86 RD |
6478 | wxWindow * _arg1; |
6479 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6480 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6481 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6482 | long _arg5 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); | |
6483 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 6484 | wxString * _arg7 = (wxString *) &wxPy_TreeCtrlNameStr; |
f6bcfd97 | 6485 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
6486 | PyObject * _argo1 = 0; |
6487 | wxPoint temp; | |
6488 | PyObject * _obj3 = 0; | |
6489 | wxSize temp0; | |
6490 | PyObject * _obj4 = 0; | |
6491 | PyObject * _argo6 = 0; | |
9a74fcaf | 6492 | PyObject * _obj7 = 0; |
aa2a5b86 | 6493 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; |
f6bcfd97 BP |
6494 | |
6495 | self = self; | |
9a74fcaf | 6496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxTreeCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
f6bcfd97 BP |
6497 | return NULL; |
6498 | if (_argo0) { | |
6499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
aa2a5b86 RD |
6501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Create. Expected _wxPyTreeCtrl_p."); |
6502 | return NULL; | |
6503 | } | |
6504 | } | |
6505 | if (_argo1) { | |
6506 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6507 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Create. Expected _wxWindow_p."); | |
f6bcfd97 BP |
6509 | return NULL; |
6510 | } | |
6511 | } | |
aa2a5b86 | 6512 | if (_obj3) |
f6bcfd97 | 6513 | { |
aa2a5b86 RD |
6514 | _arg3 = &temp; |
6515 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6516 | return NULL; | |
f6bcfd97 | 6517 | } |
aa2a5b86 | 6518 | if (_obj4) |
f6bcfd97 | 6519 | { |
aa2a5b86 RD |
6520 | _arg4 = &temp0; |
6521 | if (! wxSize_helper(_obj4, &_arg4)) | |
6522 | return NULL; | |
f6bcfd97 | 6523 | } |
aa2a5b86 RD |
6524 | if (_argo6) { |
6525 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6526 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
6527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_Create. Expected _wxValidator_p."); | |
6528 | return NULL; | |
6529 | } | |
6530 | } | |
9a74fcaf RD |
6531 | if (_obj7) |
6532 | { | |
6533 | _arg7 = wxString_in_helper(_obj7); | |
6534 | if (_arg7 == NULL) | |
6535 | return NULL; | |
6536 | } | |
f6bcfd97 | 6537 | { |
474c48f9 | 6538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 6539 | _result = (bool )wxTreeCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
f6bcfd97 | 6540 | |
474c48f9 | 6541 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6542 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 6543 | } _resultobj = Py_BuildValue("i",_result); |
9a74fcaf RD |
6544 | { |
6545 | if (_obj7) | |
6546 | delete _arg7; | |
6547 | } | |
f6bcfd97 BP |
6548 | return _resultobj; |
6549 | } | |
6550 | ||
0220cbc1 RD |
6551 | #define wxTreeCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
6552 | static PyObject *_wrap_wxTreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c4165ad RD |
6553 | PyObject * _resultobj; |
6554 | wxPyTreeCtrl * _arg0; | |
aa2a5b86 RD |
6555 | PyObject * _arg1; |
6556 | PyObject * _arg2; | |
9c4165ad | 6557 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
6558 | PyObject * _obj1 = 0; |
6559 | PyObject * _obj2 = 0; | |
6560 | char *_kwnames[] = { "self","self","_class", NULL }; | |
9c4165ad RD |
6561 | |
6562 | self = self; | |
0220cbc1 | 6563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
9c4165ad RD |
6564 | return NULL; |
6565 | if (_argo0) { | |
6566 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6567 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
0220cbc1 | 6568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setCallbackInfo. Expected _wxPyTreeCtrl_p."); |
9c4165ad RD |
6569 | return NULL; |
6570 | } | |
6571 | } | |
aa2a5b86 RD |
6572 | { |
6573 | _arg1 = _obj1; | |
6574 | } | |
6575 | { | |
6576 | _arg2 = _obj2; | |
6577 | } | |
9c4165ad | 6578 | { |
474c48f9 | 6579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6580 | wxTreeCtrl__setCallbackInfo(_arg0,_arg1,_arg2); |
9c4165ad | 6581 | |
474c48f9 | 6582 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6583 | if (PyErr_Occurred()) return NULL; |
9c4165ad RD |
6584 | } Py_INCREF(Py_None); |
6585 | _resultobj = Py_None; | |
6586 | return _resultobj; | |
6587 | } | |
6588 | ||
d5c9047a | 6589 | #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount()) |
efc5f224 | 6590 | static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6591 | PyObject * _resultobj; |
c127177f | 6592 | size_t _result; |
f6bcfd97 | 6593 | wxPyTreeCtrl * _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:wxTreeCtrl_GetCount",_kwnames,&_argo0)) |
8ab979d7 | 6599 | return NULL; |
1d99702e RD |
6600 | if (_argo0) { |
6601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6604 | return NULL; |
6605 | } | |
6606 | } | |
cf694132 | 6607 | { |
474c48f9 | 6608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6609 | _result = (size_t )wxTreeCtrl_GetCount(_arg0); |
cf694132 | 6610 | |
474c48f9 | 6611 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6612 | if (PyErr_Occurred()) return NULL; |
c127177f | 6613 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6614 | return _resultobj; |
6615 | } | |
6616 | ||
d5c9047a | 6617 | #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) |
efc5f224 | 6618 | static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6619 | PyObject * _resultobj; |
d5c9047a | 6620 | unsigned int _result; |
f6bcfd97 | 6621 | wxPyTreeCtrl * _arg0; |
1d99702e | 6622 | PyObject * _argo0 = 0; |
efc5f224 | 6623 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6624 | |
6625 | self = self; | |
efc5f224 | 6626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0)) |
8ab979d7 | 6627 | return NULL; |
1d99702e RD |
6628 | if (_argo0) { |
6629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6632 | return NULL; |
6633 | } | |
6634 | } | |
cf694132 | 6635 | { |
474c48f9 | 6636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6637 | _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0); |
cf694132 | 6638 | |
474c48f9 | 6639 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6640 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6641 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6642 | return _resultobj; |
6643 | } | |
6644 | ||
d5c9047a | 6645 | #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) |
efc5f224 | 6646 | static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6647 | PyObject * _resultobj; |
f6bcfd97 | 6648 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6649 | unsigned int _arg1; |
1d99702e | 6650 | PyObject * _argo0 = 0; |
efc5f224 | 6651 | char *_kwnames[] = { "self","indent", NULL }; |
8ab979d7 RD |
6652 | |
6653 | self = self; | |
efc5f224 | 6654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6655 | return NULL; |
1d99702e RD |
6656 | if (_argo0) { |
6657 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6658 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6660 | return NULL; |
6661 | } | |
6662 | } | |
cf694132 | 6663 | { |
474c48f9 | 6664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6665 | wxTreeCtrl_SetIndent(_arg0,_arg1); |
cf694132 | 6666 | |
474c48f9 | 6667 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6668 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6669 | } Py_INCREF(Py_None); |
d5c9047a | 6670 | _resultobj = Py_None; |
8ab979d7 RD |
6671 | return _resultobj; |
6672 | } | |
6673 | ||
d5c9047a | 6674 | #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList()) |
efc5f224 | 6675 | static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6676 | PyObject * _resultobj; |
d5c9047a | 6677 | wxImageList * _result; |
f6bcfd97 | 6678 | wxPyTreeCtrl * _arg0; |
1d99702e | 6679 | PyObject * _argo0 = 0; |
efc5f224 | 6680 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6681 | |
6682 | self = self; | |
efc5f224 | 6683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0)) |
8ab979d7 | 6684 | return NULL; |
1d99702e RD |
6685 | if (_argo0) { |
6686 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6687 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6689 | return NULL; |
6690 | } | |
6691 | } | |
cf694132 | 6692 | { |
474c48f9 | 6693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6694 | _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0); |
cf694132 | 6695 | |
474c48f9 | 6696 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6697 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 6698 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
6699 | return _resultobj; |
6700 | } | |
6701 | ||
d5c9047a | 6702 | #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList()) |
efc5f224 | 6703 | static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6704 | PyObject * _resultobj; |
d5c9047a | 6705 | wxImageList * _result; |
f6bcfd97 | 6706 | wxPyTreeCtrl * _arg0; |
1d99702e | 6707 | PyObject * _argo0 = 0; |
efc5f224 | 6708 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6709 | |
6710 | self = self; | |
efc5f224 | 6711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0)) |
8ab979d7 | 6712 | return NULL; |
1d99702e RD |
6713 | if (_argo0) { |
6714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6717 | return NULL; |
6718 | } | |
6719 | } | |
cf694132 | 6720 | { |
474c48f9 | 6721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6722 | _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0); |
cf694132 | 6723 | |
474c48f9 | 6724 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6725 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 6726 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
6727 | return _resultobj; |
6728 | } | |
6729 | ||
d5c9047a | 6730 | #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) |
efc5f224 | 6731 | static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6732 | PyObject * _resultobj; |
f6bcfd97 | 6733 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6734 | wxImageList * _arg1; |
1d99702e RD |
6735 | PyObject * _argo0 = 0; |
6736 | PyObject * _argo1 = 0; | |
efc5f224 | 6737 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
6738 | |
6739 | self = self; | |
efc5f224 | 6740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6741 | return NULL; |
1d99702e RD |
6742 | if (_argo0) { |
6743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6746 | return NULL; |
6747 | } | |
6748 | } | |
1d99702e RD |
6749 | if (_argo1) { |
6750 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6751 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
6752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p."); |
6753 | return NULL; | |
6754 | } | |
6755 | } | |
cf694132 | 6756 | { |
474c48f9 | 6757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6758 | wxTreeCtrl_SetImageList(_arg0,_arg1); |
cf694132 | 6759 | |
474c48f9 | 6760 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6761 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6762 | } Py_INCREF(Py_None); |
d5c9047a | 6763 | _resultobj = Py_None; |
8ab979d7 RD |
6764 | return _resultobj; |
6765 | } | |
6766 | ||
d5c9047a | 6767 | #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0)) |
efc5f224 | 6768 | static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6769 | PyObject * _resultobj; |
f6bcfd97 | 6770 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6771 | wxImageList * _arg1; |
1d99702e RD |
6772 | PyObject * _argo0 = 0; |
6773 | PyObject * _argo1 = 0; | |
efc5f224 | 6774 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
6775 | |
6776 | self = self; | |
efc5f224 | 6777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6778 | return NULL; |
1d99702e RD |
6779 | if (_argo0) { |
6780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6783 | return NULL; |
6784 | } | |
6785 | } | |
1d99702e RD |
6786 | if (_argo1) { |
6787 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6788 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
6789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p."); |
6790 | return NULL; | |
6791 | } | |
6792 | } | |
cf694132 | 6793 | { |
474c48f9 | 6794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6795 | wxTreeCtrl_SetStateImageList(_arg0,_arg1); |
cf694132 | 6796 | |
474c48f9 | 6797 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6798 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6799 | } Py_INCREF(Py_None); |
d5c9047a | 6800 | _resultobj = Py_None; |
8ab979d7 RD |
6801 | return _resultobj; |
6802 | } | |
6803 | ||
aa2a5b86 RD |
6804 | #define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0)) |
6805 | static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6806 | PyObject * _resultobj; | |
6807 | wxPyTreeCtrl * _arg0; | |
6808 | wxImageList * _arg1; | |
6809 | PyObject * _argo0 = 0; | |
6810 | PyObject * _argo1 = 0; | |
6811 | char *_kwnames[] = { "self","imageList", NULL }; | |
6812 | ||
6813 | self = self; | |
6814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1)) | |
6815 | return NULL; | |
6816 | if (_argo0) { | |
6817 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6818 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p."); | |
6820 | return NULL; | |
6821 | } | |
6822 | } | |
6823 | if (_argo1) { | |
6824 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6825 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p."); | |
6827 | return NULL; | |
6828 | } | |
6829 | } | |
6830 | { | |
474c48f9 | 6831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6832 | wxTreeCtrl_AssignImageList(_arg0,_arg1); |
aa2a5b86 | 6833 | |
474c48f9 | 6834 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6835 | if (PyErr_Occurred()) return NULL; |
6836 | } Py_INCREF(Py_None); | |
6837 | _resultobj = Py_None; | |
6838 | return _resultobj; | |
6839 | } | |
6840 | ||
6841 | #define wxTreeCtrl_AssignStateImageList(_swigobj,_swigarg0) (_swigobj->AssignStateImageList(_swigarg0)) | |
6842 | static PyObject *_wrap_wxTreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6843 | PyObject * _resultobj; | |
6844 | wxPyTreeCtrl * _arg0; | |
6845 | wxImageList * _arg1; | |
6846 | PyObject * _argo0 = 0; | |
6847 | PyObject * _argo1 = 0; | |
6848 | char *_kwnames[] = { "self","imageList", NULL }; | |
6849 | ||
6850 | self = self; | |
6851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignStateImageList",_kwnames,&_argo0,&_argo1)) | |
6852 | return NULL; | |
6853 | if (_argo0) { | |
6854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignStateImageList. Expected _wxPyTreeCtrl_p."); | |
6857 | return NULL; | |
6858 | } | |
6859 | } | |
6860 | if (_argo1) { | |
6861 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6862 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6863 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignStateImageList. Expected _wxImageList_p."); | |
6864 | return NULL; | |
6865 | } | |
6866 | } | |
6867 | { | |
474c48f9 | 6868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6869 | wxTreeCtrl_AssignStateImageList(_arg0,_arg1); |
aa2a5b86 | 6870 | |
474c48f9 | 6871 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6872 | if (PyErr_Occurred()) return NULL; |
6873 | } Py_INCREF(Py_None); | |
6874 | _resultobj = Py_None; | |
6875 | return _resultobj; | |
6876 | } | |
6877 | ||
b1462dfa RD |
6878 | #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing()) |
6879 | static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6880 | PyObject * _resultobj; | |
6881 | unsigned int _result; | |
f6bcfd97 | 6882 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
6883 | PyObject * _argo0 = 0; |
6884 | char *_kwnames[] = { "self", NULL }; | |
6885 | ||
6886 | self = self; | |
6887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0)) | |
6888 | return NULL; | |
6889 | if (_argo0) { | |
6890 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6891 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
6893 | return NULL; |
6894 | } | |
6895 | } | |
6896 | { | |
474c48f9 | 6897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6898 | _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0); |
b1462dfa | 6899 | |
474c48f9 | 6900 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6901 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
6902 | } _resultobj = Py_BuildValue("i",_result); |
6903 | return _resultobj; | |
6904 | } | |
6905 | ||
6906 | #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0)) | |
6907 | static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6908 | PyObject * _resultobj; | |
f6bcfd97 | 6909 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
6910 | unsigned int _arg1; |
6911 | PyObject * _argo0 = 0; | |
6912 | char *_kwnames[] = { "self","spacing", NULL }; | |
6913 | ||
6914 | self = self; | |
6915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1)) | |
6916 | return NULL; | |
6917 | if (_argo0) { | |
6918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
6921 | return NULL; |
6922 | } | |
6923 | } | |
6924 | { | |
474c48f9 | 6925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6926 | wxTreeCtrl_SetSpacing(_arg0,_arg1); |
b1462dfa | 6927 | |
474c48f9 | 6928 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6929 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
6930 | } Py_INCREF(Py_None); |
6931 | _resultobj = Py_None; | |
6932 | return _resultobj; | |
6933 | } | |
6934 | ||
d5c9047a | 6935 | #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
efc5f224 | 6936 | static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6937 | PyObject * _resultobj; |
d5c9047a | 6938 | wxString * _result; |
f6bcfd97 | 6939 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6940 | wxTreeItemId * _arg1; |
1d99702e RD |
6941 | PyObject * _argo0 = 0; |
6942 | PyObject * _argo1 = 0; | |
efc5f224 | 6943 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6944 | |
6945 | self = self; | |
efc5f224 | 6946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6947 | return NULL; |
1d99702e RD |
6948 | if (_argo0) { |
6949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6952 | return NULL; |
6953 | } | |
6954 | } | |
1d99702e RD |
6955 | if (_argo1) { |
6956 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6957 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p."); |
6959 | return NULL; | |
6960 | } | |
6961 | } | |
d5c9047a | 6962 | { |
474c48f9 | 6963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6964 | _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1)); |
cf694132 | 6965 | |
474c48f9 | 6966 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6967 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6968 | }{ |
c8bc7bb8 RD |
6969 | #if wxUSE_UNICODE |
6970 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6971 | #else | |
eec92d76 | 6972 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6973 | #endif |
d5c9047a RD |
6974 | } |
6975 | { | |
6976 | delete _result; | |
6977 | } | |
8ab979d7 RD |
6978 | return _resultobj; |
6979 | } | |
6980 | ||
694759cf | 6981 | #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1)) |
efc5f224 | 6982 | static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6983 | PyObject * _resultobj; |
d5c9047a | 6984 | int _result; |
f6bcfd97 | 6985 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6986 | wxTreeItemId * _arg1; |
694759cf | 6987 | wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
6988 | PyObject * _argo0 = 0; |
6989 | PyObject * _argo1 = 0; | |
694759cf | 6990 | char *_kwnames[] = { "self","item","which", NULL }; |
8ab979d7 RD |
6991 | |
6992 | self = self; | |
694759cf | 6993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 6994 | return NULL; |
1d99702e RD |
6995 | if (_argo0) { |
6996 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6997 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6999 | return NULL; |
7000 | } | |
7001 | } | |
1d99702e RD |
7002 | if (_argo1) { |
7003 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7004 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p."); |
7006 | return NULL; | |
7007 | } | |
7008 | } | |
cf694132 | 7009 | { |
474c48f9 | 7010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7011 | _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2); |
cf694132 | 7012 | |
474c48f9 | 7013 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7014 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7015 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7016 | return _resultobj; |
7017 | } | |
7018 | ||
d5c9047a | 7019 | #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0)) |
efc5f224 | 7020 | static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7021 | PyObject * _resultobj; |
d5c9047a | 7022 | int _result; |
f6bcfd97 | 7023 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7024 | wxTreeItemId * _arg1; |
1d99702e RD |
7025 | PyObject * _argo0 = 0; |
7026 | PyObject * _argo1 = 0; | |
efc5f224 | 7027 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7028 | |
7029 | self = self; | |
efc5f224 | 7030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7031 | return NULL; |
1d99702e RD |
7032 | if (_argo0) { |
7033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7036 | return NULL; |
7037 | } | |
7038 | } | |
1d99702e RD |
7039 | if (_argo1) { |
7040 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7041 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p."); |
7043 | return NULL; | |
7044 | } | |
7045 | } | |
cf694132 | 7046 | { |
474c48f9 | 7047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7048 | _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1); |
8ab979d7 | 7049 | |
474c48f9 | 7050 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7051 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7052 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7053 | return _resultobj; |
7054 | } | |
7055 | ||
d5c9047a | 7056 | #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
efc5f224 | 7057 | static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7058 | PyObject * _resultobj; |
f6bcfd97 | 7059 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7060 | wxTreeItemId * _arg1; |
7061 | wxString * _arg2; | |
1d99702e RD |
7062 | PyObject * _argo0 = 0; |
7063 | PyObject * _argo1 = 0; | |
d5c9047a | 7064 | PyObject * _obj2 = 0; |
efc5f224 | 7065 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
7066 | |
7067 | self = self; | |
efc5f224 | 7068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7069 | return NULL; |
1d99702e RD |
7070 | if (_argo0) { |
7071 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7072 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7074 | return NULL; |
7075 | } | |
7076 | } | |
1d99702e RD |
7077 | if (_argo1) { |
7078 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7079 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p."); |
7081 | return NULL; | |
7082 | } | |
7083 | } | |
7084 | { | |
c8bc7bb8 RD |
7085 | _arg2 = wxString_in_helper(_obj2); |
7086 | if (_arg2 == NULL) | |
2cd2fac8 | 7087 | return NULL; |
d5c9047a | 7088 | } |
cf694132 | 7089 | { |
474c48f9 | 7090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7091 | wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2); |
cf694132 | 7092 | |
474c48f9 | 7093 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7094 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7095 | } Py_INCREF(Py_None); |
d5c9047a RD |
7096 | _resultobj = Py_None; |
7097 | { | |
7098 | if (_obj2) | |
7099 | delete _arg2; | |
7100 | } | |
8ab979d7 RD |
7101 | return _resultobj; |
7102 | } | |
7103 | ||
694759cf | 7104 | #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 7105 | static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7106 | PyObject * _resultobj; |
f6bcfd97 | 7107 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7108 | wxTreeItemId * _arg1; |
7109 | int _arg2; | |
694759cf | 7110 | wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
7111 | PyObject * _argo0 = 0; |
7112 | PyObject * _argo1 = 0; | |
694759cf | 7113 | char *_kwnames[] = { "self","item","image","which", NULL }; |
8ab979d7 RD |
7114 | |
7115 | self = self; | |
694759cf | 7116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 7117 | return NULL; |
1d99702e RD |
7118 | if (_argo0) { |
7119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7122 | return NULL; |
7123 | } | |
7124 | } | |
1d99702e RD |
7125 | if (_argo1) { |
7126 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7127 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p."); |
7129 | return NULL; | |
7130 | } | |
7131 | } | |
cf694132 | 7132 | { |
474c48f9 | 7133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7134 | wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 7135 | |
474c48f9 | 7136 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7137 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7138 | } Py_INCREF(Py_None); |
d5c9047a | 7139 | _resultobj = Py_None; |
8ab979d7 RD |
7140 | return _resultobj; |
7141 | } | |
7142 | ||
d5c9047a | 7143 | #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1)) |
efc5f224 | 7144 | static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7145 | PyObject * _resultobj; |
f6bcfd97 | 7146 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7147 | wxTreeItemId * _arg1; |
7148 | int _arg2; | |
1d99702e RD |
7149 | PyObject * _argo0 = 0; |
7150 | PyObject * _argo1 = 0; | |
efc5f224 | 7151 | char *_kwnames[] = { "self","item","image", NULL }; |
8ab979d7 RD |
7152 | |
7153 | self = self; | |
efc5f224 | 7154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 7155 | return NULL; |
1d99702e RD |
7156 | if (_argo0) { |
7157 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7160 | return NULL; |
7161 | } | |
7162 | } | |
1d99702e RD |
7163 | if (_argo1) { |
7164 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7165 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p."); |
7167 | return NULL; | |
7168 | } | |
7169 | } | |
cf694132 | 7170 | { |
474c48f9 | 7171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7172 | wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2); |
cf694132 | 7173 | |
474c48f9 | 7174 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7175 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7176 | } Py_INCREF(Py_None); |
7177 | _resultobj = Py_None; | |
7178 | return _resultobj; | |
7179 | } | |
7180 | ||
7181 | #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1)) | |
efc5f224 | 7182 | static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7183 | PyObject * _resultobj; |
f6bcfd97 | 7184 | wxPyTreeCtrl * _arg0; |
cf694132 | 7185 | wxTreeItemId * _arg1; |
1d99702e RD |
7186 | bool _arg2 = (bool ) TRUE; |
7187 | PyObject * _argo0 = 0; | |
7188 | PyObject * _argo1 = 0; | |
7189 | int tempbool2 = (int) TRUE; | |
efc5f224 | 7190 | char *_kwnames[] = { "self","item","hasChildren", NULL }; |
cf694132 RD |
7191 | |
7192 | self = self; | |
efc5f224 | 7193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2)) |
cf694132 | 7194 | return NULL; |
1d99702e RD |
7195 | if (_argo0) { |
7196 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7197 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7199 | return NULL; |
7200 | } | |
7201 | } | |
1d99702e RD |
7202 | if (_argo1) { |
7203 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7204 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p."); |
7206 | return NULL; | |
7207 | } | |
7208 | } | |
7209 | _arg2 = (bool ) tempbool2; | |
7210 | { | |
474c48f9 | 7211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7212 | wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2); |
cf694132 | 7213 | |
474c48f9 | 7214 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7215 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7216 | } Py_INCREF(Py_None); |
d5c9047a | 7217 | _resultobj = Py_None; |
8ab979d7 RD |
7218 | return _resultobj; |
7219 | } | |
7220 | ||
f6bcfd97 | 7221 | static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7222 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7223 | if (data == NULL) { | |
7224 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7225 | data->SetId(item); // set the id |
cf694132 RD |
7226 | self->SetItemData(item, data); |
7227 | } | |
7228 | return data; | |
7229 | } | |
efc5f224 | 7230 | static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
7231 | PyObject * _resultobj; |
7232 | wxPyTreeItemData * _result; | |
f6bcfd97 | 7233 | wxPyTreeCtrl * _arg0; |
cf694132 | 7234 | wxTreeItemId * _arg1; |
1d99702e RD |
7235 | PyObject * _argo0 = 0; |
7236 | PyObject * _argo1 = 0; | |
efc5f224 | 7237 | char *_kwnames[] = { "self","item", NULL }; |
cf694132 RD |
7238 | char _ptemp[128]; |
7239 | ||
7240 | self = self; | |
efc5f224 | 7241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1)) |
cf694132 | 7242 | return NULL; |
1d99702e RD |
7243 | if (_argo0) { |
7244 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7245 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7247 | return NULL; |
7248 | } | |
7249 | } | |
1d99702e RD |
7250 | if (_argo1) { |
7251 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7252 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p."); |
7254 | return NULL; | |
7255 | } | |
7256 | } | |
7257 | { | |
474c48f9 | 7258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7259 | _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1); |
cf694132 | 7260 | |
474c48f9 | 7261 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7262 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7263 | } if (_result) { |
7264 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
7265 | _resultobj = Py_BuildValue("s",_ptemp); | |
7266 | } else { | |
7267 | Py_INCREF(Py_None); | |
7268 | _resultobj = Py_None; | |
7269 | } | |
cf694132 RD |
7270 | return _resultobj; |
7271 | } | |
7272 | ||
f6bcfd97 BP |
7273 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) { |
7274 | data->SetId(item); // set the id | |
7275 | self->SetItemData(item, data); | |
c368d904 | 7276 | } |
efc5f224 | 7277 | static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7278 | PyObject * _resultobj; |
f6bcfd97 | 7279 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7280 | wxTreeItemId * _arg1; |
cf694132 | 7281 | wxPyTreeItemData * _arg2; |
1d99702e RD |
7282 | PyObject * _argo0 = 0; |
7283 | PyObject * _argo1 = 0; | |
7284 | PyObject * _argo2 = 0; | |
efc5f224 | 7285 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
7286 | |
7287 | self = self; | |
efc5f224 | 7288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2)) |
8ab979d7 | 7289 | return NULL; |
1d99702e RD |
7290 | if (_argo0) { |
7291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7294 | return NULL; |
7295 | } | |
7296 | } | |
1d99702e RD |
7297 | if (_argo1) { |
7298 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7299 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p."); |
7301 | return NULL; | |
7302 | } | |
7303 | } | |
1d99702e RD |
7304 | if (_argo2) { |
7305 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7306 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) { | |
cf694132 | 7307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
7308 | return NULL; |
7309 | } | |
7310 | } | |
cf694132 | 7311 | { |
474c48f9 | 7312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7313 | wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2); |
cf694132 | 7314 | |
474c48f9 | 7315 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7316 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7317 | } Py_INCREF(Py_None); |
d5c9047a | 7318 | _resultobj = Py_None; |
8ab979d7 RD |
7319 | return _resultobj; |
7320 | } | |
7321 | ||
f6bcfd97 | 7322 | static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7323 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7324 | if (data == NULL) { | |
7325 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7326 | data->SetId(item); // set the id |
cf694132 RD |
7327 | self->SetItemData(item, data); |
7328 | } | |
7329 | return data->GetData(); | |
c368d904 | 7330 | } |
efc5f224 | 7331 | static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 7332 | PyObject * _resultobj; |
cf694132 | 7333 | PyObject * _result; |
f6bcfd97 | 7334 | wxPyTreeCtrl * _arg0; |
08127323 | 7335 | wxTreeItemId * _arg1; |
1d99702e RD |
7336 | PyObject * _argo0 = 0; |
7337 | PyObject * _argo1 = 0; | |
efc5f224 | 7338 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
7339 | |
7340 | self = self; | |
efc5f224 | 7341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1)) |
08127323 | 7342 | return NULL; |
1d99702e RD |
7343 | if (_argo0) { |
7344 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7345 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
7347 | return NULL; |
7348 | } | |
7349 | } | |
1d99702e RD |
7350 | if (_argo1) { |
7351 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7352 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 | 7353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p."); |
08127323 RD |
7354 | return NULL; |
7355 | } | |
7356 | } | |
cf694132 | 7357 | { |
474c48f9 | 7358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7359 | _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1); |
cf694132 | 7360 | |
474c48f9 | 7361 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7362 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7363 | }{ |
7364 | _resultobj = _result; | |
7365 | } | |
7366 | return _resultobj; | |
7367 | } | |
7368 | ||
f6bcfd97 | 7369 | static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) { |
cf694132 RD |
7370 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7371 | if (data == NULL) { | |
7372 | data = new wxPyTreeItemData(obj); | |
f6bcfd97 | 7373 | data->SetId(item); // set the id |
cf694132 RD |
7374 | self->SetItemData(item, data); |
7375 | } else | |
7376 | data->SetData(obj); | |
c368d904 | 7377 | } |
efc5f224 | 7378 | static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7379 | PyObject * _resultobj; |
f6bcfd97 | 7380 | wxPyTreeCtrl * _arg0; |
cf694132 RD |
7381 | wxTreeItemId * _arg1; |
7382 | PyObject * _arg2; | |
1d99702e RD |
7383 | PyObject * _argo0 = 0; |
7384 | PyObject * _argo1 = 0; | |
cf694132 | 7385 | PyObject * _obj2 = 0; |
efc5f224 | 7386 | char *_kwnames[] = { "self","item","obj", NULL }; |
cf694132 RD |
7387 | |
7388 | self = self; | |
efc5f224 | 7389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2)) |
cf694132 | 7390 | return NULL; |
1d99702e RD |
7391 | if (_argo0) { |
7392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7395 | return NULL; |
7396 | } | |
7397 | } | |
1d99702e RD |
7398 | if (_argo1) { |
7399 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7400 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p."); |
7402 | return NULL; | |
7403 | } | |
7404 | } | |
7405 | { | |
7406 | _arg2 = _obj2; | |
7407 | } | |
7408 | { | |
474c48f9 | 7409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7410 | wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2); |
cf694132 | 7411 | |
474c48f9 | 7412 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7413 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7414 | } Py_INCREF(Py_None); |
08127323 RD |
7415 | _resultobj = Py_None; |
7416 | return _resultobj; | |
7417 | } | |
7418 | ||
d5c9047a | 7419 | #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) |
efc5f224 | 7420 | static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7421 | PyObject * _resultobj; |
d5c9047a | 7422 | bool _result; |
f6bcfd97 | 7423 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7424 | wxTreeItemId * _arg1; |
1d99702e RD |
7425 | PyObject * _argo0 = 0; |
7426 | PyObject * _argo1 = 0; | |
efc5f224 | 7427 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7428 | |
7429 | self = self; | |
efc5f224 | 7430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7431 | return NULL; |
1d99702e RD |
7432 | if (_argo0) { |
7433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7436 | return NULL; |
7437 | } | |
7438 | } | |
1d99702e RD |
7439 | if (_argo1) { |
7440 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7441 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7442 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p."); |
7443 | return NULL; | |
7444 | } | |
7445 | } | |
cf694132 | 7446 | { |
474c48f9 | 7447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7448 | _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1); |
cf694132 | 7449 | |
474c48f9 | 7450 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7451 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7452 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7453 | return _resultobj; |
7454 | } | |
7455 | ||
d5c9047a | 7456 | #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0)) |
efc5f224 | 7457 | static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7458 | PyObject * _resultobj; |
d5c9047a | 7459 | bool _result; |
f6bcfd97 | 7460 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7461 | wxTreeItemId * _arg1; |
1d99702e RD |
7462 | PyObject * _argo0 = 0; |
7463 | PyObject * _argo1 = 0; | |
efc5f224 | 7464 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7465 | |
7466 | self = self; | |
efc5f224 | 7467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7468 | return NULL; |
1d99702e RD |
7469 | if (_argo0) { |
7470 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7471 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7473 | return NULL; |
7474 | } | |
7475 | } | |
1d99702e RD |
7476 | if (_argo1) { |
7477 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7478 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p."); |
7480 | return NULL; | |
7481 | } | |
7482 | } | |
cf694132 | 7483 | { |
474c48f9 | 7484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7485 | _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1); |
cf694132 | 7486 | |
474c48f9 | 7487 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7488 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7489 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7490 | return _resultobj; |
7491 | } | |
7492 | ||
d5c9047a | 7493 | #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0)) |
efc5f224 | 7494 | static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7495 | PyObject * _resultobj; |
d5c9047a | 7496 | bool _result; |
f6bcfd97 | 7497 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7498 | wxTreeItemId * _arg1; |
1d99702e RD |
7499 | PyObject * _argo0 = 0; |
7500 | PyObject * _argo1 = 0; | |
efc5f224 | 7501 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7502 | |
7503 | self = self; | |
efc5f224 | 7504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7505 | return NULL; |
1d99702e RD |
7506 | if (_argo0) { |
7507 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7508 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7510 | return NULL; |
7511 | } | |
7512 | } | |
1d99702e RD |
7513 | if (_argo1) { |
7514 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7515 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p."); |
7517 | return NULL; | |
7518 | } | |
7519 | } | |
cf694132 | 7520 | { |
474c48f9 | 7521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7522 | _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1); |
cf694132 | 7523 | |
474c48f9 | 7524 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7525 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7526 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7527 | return _resultobj; |
7528 | } | |
7529 | ||
d5c9047a | 7530 | #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
efc5f224 | 7531 | static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7532 | PyObject * _resultobj; |
d5c9047a | 7533 | bool _result; |
f6bcfd97 | 7534 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7535 | wxTreeItemId * _arg1; |
1d99702e RD |
7536 | PyObject * _argo0 = 0; |
7537 | PyObject * _argo1 = 0; | |
efc5f224 | 7538 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7539 | |
7540 | self = self; | |
efc5f224 | 7541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7542 | return NULL; |
1d99702e RD |
7543 | if (_argo0) { |
7544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7547 | return NULL; |
7548 | } | |
7549 | } | |
1d99702e RD |
7550 | if (_argo1) { |
7551 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7552 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p."); |
7554 | return NULL; | |
7555 | } | |
7556 | } | |
cf694132 | 7557 | { |
474c48f9 | 7558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7559 | _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1); |
cf694132 | 7560 | |
474c48f9 | 7561 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7562 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7563 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7564 | return _resultobj; |
7565 | } | |
7566 | ||
7567 | #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem()) | |
efc5f224 | 7568 | static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7569 | PyObject * _resultobj; |
d5c9047a | 7570 | wxTreeItemId * _result; |
f6bcfd97 | 7571 | wxPyTreeCtrl * _arg0; |
1d99702e | 7572 | PyObject * _argo0 = 0; |
efc5f224 | 7573 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7574 | char _ptemp[128]; |
8ab979d7 RD |
7575 | |
7576 | self = self; | |
efc5f224 | 7577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0)) |
8ab979d7 | 7578 | return NULL; |
1d99702e RD |
7579 | if (_argo0) { |
7580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7583 | return NULL; |
7584 | } | |
7585 | } | |
cf694132 | 7586 | { |
474c48f9 | 7587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7588 | _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0)); |
cf694132 | 7589 | |
474c48f9 | 7590 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7591 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7592 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7593 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7594 | return _resultobj; |
7595 | } | |
7596 | ||
7597 | #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 7598 | static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7599 | PyObject * _resultobj; |
d5c9047a | 7600 | wxTreeItemId * _result; |
f6bcfd97 | 7601 | wxPyTreeCtrl * _arg0; |
1d99702e | 7602 | PyObject * _argo0 = 0; |
efc5f224 | 7603 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7604 | char _ptemp[128]; |
8ab979d7 RD |
7605 | |
7606 | self = self; | |
efc5f224 | 7607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 7608 | return NULL; |
1d99702e RD |
7609 | if (_argo0) { |
7610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7613 | return NULL; |
7614 | } | |
7615 | } | |
cf694132 | 7616 | { |
474c48f9 | 7617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7618 | _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0)); |
cf694132 | 7619 | |
474c48f9 | 7620 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7621 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7622 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7623 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7624 | return _resultobj; |
7625 | } | |
7626 | ||
eb715945 RD |
7627 | #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0)) |
7628 | static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7629 | PyObject * _resultobj; |
d5c9047a | 7630 | wxTreeItemId * _result; |
f6bcfd97 | 7631 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7632 | wxTreeItemId * _arg1; |
1d99702e RD |
7633 | PyObject * _argo0 = 0; |
7634 | PyObject * _argo1 = 0; | |
efc5f224 | 7635 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7636 | char _ptemp[128]; |
8ab979d7 RD |
7637 | |
7638 | self = self; | |
eb715945 | 7639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7640 | return NULL; |
1d99702e RD |
7641 | if (_argo0) { |
7642 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7643 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7645 | return NULL; |
7646 | } | |
7647 | } | |
1d99702e RD |
7648 | if (_argo1) { |
7649 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7650 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
eb715945 | 7651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7652 | return NULL; |
7653 | } | |
7654 | } | |
cf694132 | 7655 | { |
474c48f9 | 7656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7657 | _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1)); |
cf694132 | 7658 | |
474c48f9 | 7659 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7660 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7661 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7662 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7663 | return _resultobj; |
7664 | } | |
7665 | ||
f6bcfd97 | 7666 | static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) { |
474c48f9 | 7667 | wxPyBeginBlockThreads(); |
d426c97e RD |
7668 | PyObject* rval = PyList_New(0); |
7669 | wxArrayTreeItemIds array; | |
7670 | size_t num, x; | |
7671 | num = self->GetSelections(array); | |
7672 | for (x=0; x < num; x++) { | |
c368d904 RD |
7673 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); |
7674 | PyObject* item = wxPyConstructObject((void*)tii, "wxTreeItemId", TRUE); | |
d426c97e RD |
7675 | PyList_Append(rval, item); |
7676 | } | |
474c48f9 | 7677 | wxPyEndBlockThreads(); |
d426c97e RD |
7678 | return rval; |
7679 | } | |
7680 | static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7681 | PyObject * _resultobj; | |
7682 | PyObject * _result; | |
f6bcfd97 | 7683 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
7684 | PyObject * _argo0 = 0; |
7685 | char *_kwnames[] = { "self", NULL }; | |
7686 | ||
7687 | self = self; | |
7688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0)) | |
7689 | return NULL; | |
7690 | if (_argo0) { | |
7691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
7694 | return NULL; |
7695 | } | |
7696 | } | |
7697 | { | |
474c48f9 | 7698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7699 | _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0); |
d426c97e | 7700 | |
474c48f9 | 7701 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7702 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
7703 | }{ |
7704 | _resultobj = _result; | |
7705 | } | |
7706 | return _resultobj; | |
7707 | } | |
7708 | ||
bb0054cd | 7709 | #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1)) |
efc5f224 | 7710 | static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
7711 | PyObject * _resultobj; |
7712 | size_t _result; | |
f6bcfd97 | 7713 | wxPyTreeCtrl * _arg0; |
bb0054cd | 7714 | wxTreeItemId * _arg1; |
1d99702e RD |
7715 | bool _arg2 = (bool ) TRUE; |
7716 | PyObject * _argo0 = 0; | |
7717 | PyObject * _argo1 = 0; | |
7718 | int tempbool2 = (int) TRUE; | |
efc5f224 | 7719 | char *_kwnames[] = { "self","item","recursively", NULL }; |
bb0054cd RD |
7720 | |
7721 | self = self; | |
efc5f224 | 7722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2)) |
bb0054cd | 7723 | return NULL; |
1d99702e RD |
7724 | if (_argo0) { |
7725 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7726 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p."); | |
bb0054cd RD |
7728 | return NULL; |
7729 | } | |
7730 | } | |
1d99702e RD |
7731 | if (_argo1) { |
7732 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7733 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
bb0054cd RD |
7734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p."); |
7735 | return NULL; | |
7736 | } | |
7737 | } | |
7738 | _arg2 = (bool ) tempbool2; | |
7739 | { | |
474c48f9 | 7740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7741 | _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2); |
bb0054cd | 7742 | |
474c48f9 | 7743 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7744 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
7745 | } _resultobj = Py_BuildValue("i",_result); |
7746 | return _resultobj; | |
7747 | } | |
7748 | ||
d5c9047a | 7749 | #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1)) |
efc5f224 | 7750 | static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7751 | PyObject * _resultobj; |
d5c9047a | 7752 | wxTreeItemId * _result; |
f6bcfd97 | 7753 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7754 | wxTreeItemId * _arg1; |
7755 | long * _arg2; | |
1d99702e RD |
7756 | PyObject * _argo0 = 0; |
7757 | PyObject * _argo1 = 0; | |
d5c9047a RD |
7758 | long temp; |
7759 | PyObject * _obj2 = 0; | |
efc5f224 | 7760 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 7761 | char _ptemp[128]; |
8ab979d7 RD |
7762 | |
7763 | self = self; | |
efc5f224 | 7764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7765 | return NULL; |
1d99702e RD |
7766 | if (_argo0) { |
7767 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7768 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7770 | return NULL; |
7771 | } | |
7772 | } | |
1d99702e RD |
7773 | if (_argo1) { |
7774 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7775 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7777 | return NULL; |
7778 | } | |
7779 | } | |
d5c9047a RD |
7780 | { |
7781 | temp = (long) PyInt_AsLong(_obj2); | |
7782 | _arg2 = &temp; | |
7783 | } | |
cf694132 | 7784 | { |
474c48f9 | 7785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7786 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); |
cf694132 | 7787 | |
474c48f9 | 7788 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7789 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7790 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
7791 | _resultobj = Py_BuildValue("s",_ptemp); |
7792 | { | |
7793 | PyObject *o; | |
7794 | o = PyInt_FromLong((long) (*_arg2)); | |
7795 | _resultobj = t_output_helper(_resultobj, o); | |
7796 | } | |
8ab979d7 RD |
7797 | return _resultobj; |
7798 | } | |
7799 | ||
d5c9047a | 7800 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) |
efc5f224 | 7801 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7802 | PyObject * _resultobj; |
d5c9047a | 7803 | wxTreeItemId * _result; |
f6bcfd97 | 7804 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7805 | wxTreeItemId * _arg1; |
7806 | long * _arg2; | |
1d99702e RD |
7807 | PyObject * _argo0 = 0; |
7808 | PyObject * _argo1 = 0; | |
d5c9047a | 7809 | long temp; |
8ab979d7 | 7810 | PyObject * _obj2 = 0; |
efc5f224 | 7811 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 7812 | char _ptemp[128]; |
8ab979d7 RD |
7813 | |
7814 | self = self; | |
efc5f224 | 7815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7816 | return NULL; |
1d99702e RD |
7817 | if (_argo0) { |
7818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7821 | return NULL; |
7822 | } | |
7823 | } | |
1d99702e RD |
7824 | if (_argo1) { |
7825 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7826 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); |
8ab979d7 | 7828 | return NULL; |
d5c9047a | 7829 | } |
8ab979d7 | 7830 | } |
d5c9047a RD |
7831 | { |
7832 | temp = (long) PyInt_AsLong(_obj2); | |
7833 | _arg2 = &temp; | |
8ab979d7 | 7834 | } |
cf694132 | 7835 | { |
474c48f9 | 7836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7837 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); |
cf694132 | 7838 | |
474c48f9 | 7839 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7840 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7841 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7842 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 | 7843 | { |
d5c9047a RD |
7844 | PyObject *o; |
7845 | o = PyInt_FromLong((long) (*_arg2)); | |
7846 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
7847 | } |
7848 | return _resultobj; | |
7849 | } | |
7850 | ||
d5c9047a | 7851 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) |
efc5f224 | 7852 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7853 | PyObject * _resultobj; |
d5c9047a | 7854 | wxTreeItemId * _result; |
f6bcfd97 | 7855 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7856 | wxTreeItemId * _arg1; |
1d99702e RD |
7857 | PyObject * _argo0 = 0; |
7858 | PyObject * _argo1 = 0; | |
efc5f224 | 7859 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7860 | char _ptemp[128]; |
8ab979d7 RD |
7861 | |
7862 | self = self; | |
efc5f224 | 7863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7864 | return NULL; |
1d99702e RD |
7865 | if (_argo0) { |
7866 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7867 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7869 | return NULL; |
7870 | } | |
7871 | } | |
1d99702e RD |
7872 | if (_argo1) { |
7873 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7874 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); |
7876 | return NULL; | |
7877 | } | |
7878 | } | |
cf694132 | 7879 | { |
474c48f9 | 7880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7881 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); |
cf694132 | 7882 | |
474c48f9 | 7883 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7884 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7885 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7886 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7887 | return _resultobj; |
7888 | } | |
7889 | ||
d5c9047a | 7890 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) |
efc5f224 | 7891 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7892 | PyObject * _resultobj; |
d5c9047a | 7893 | wxTreeItemId * _result; |
f6bcfd97 | 7894 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7895 | wxTreeItemId * _arg1; |
1d99702e RD |
7896 | PyObject * _argo0 = 0; |
7897 | PyObject * _argo1 = 0; | |
efc5f224 | 7898 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7899 | char _ptemp[128]; |
8ab979d7 RD |
7900 | |
7901 | self = self; | |
efc5f224 | 7902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7903 | return NULL; |
1d99702e RD |
7904 | if (_argo0) { |
7905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7908 | return NULL; |
7909 | } | |
7910 | } | |
1d99702e RD |
7911 | if (_argo1) { |
7912 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7913 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); |
7915 | return NULL; | |
7916 | } | |
7917 | } | |
cf694132 | 7918 | { |
474c48f9 | 7919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7920 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); |
cf694132 | 7921 | |
474c48f9 | 7922 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7923 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7924 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7925 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7926 | return _resultobj; |
7927 | } | |
7928 | ||
d5c9047a | 7929 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) |
efc5f224 | 7930 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7931 | PyObject * _resultobj; |
d5c9047a | 7932 | wxTreeItemId * _result; |
f6bcfd97 | 7933 | wxPyTreeCtrl * _arg0; |
1d99702e | 7934 | PyObject * _argo0 = 0; |
efc5f224 | 7935 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7936 | char _ptemp[128]; |
8ab979d7 RD |
7937 | |
7938 | self = self; | |
efc5f224 | 7939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) |
8ab979d7 | 7940 | return NULL; |
1d99702e RD |
7941 | if (_argo0) { |
7942 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7943 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7945 | return NULL; |
7946 | } | |
7947 | } | |
cf694132 | 7948 | { |
474c48f9 | 7949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7950 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); |
cf694132 | 7951 | |
474c48f9 | 7952 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7953 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7954 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7955 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7956 | return _resultobj; |
7957 | } | |
7958 | ||
d5c9047a | 7959 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) |
efc5f224 | 7960 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7961 | PyObject * _resultobj; |
d5c9047a | 7962 | wxTreeItemId * _result; |
f6bcfd97 | 7963 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7964 | wxTreeItemId * _arg1; |
1d99702e RD |
7965 | PyObject * _argo0 = 0; |
7966 | PyObject * _argo1 = 0; | |
efc5f224 | 7967 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7968 | char _ptemp[128]; |
8ab979d7 RD |
7969 | |
7970 | self = self; | |
efc5f224 | 7971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7972 | return NULL; |
1d99702e RD |
7973 | if (_argo0) { |
7974 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7975 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7976 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7977 | return NULL; |
7978 | } | |
7979 | } | |
1d99702e RD |
7980 | if (_argo1) { |
7981 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7982 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); |
7984 | return NULL; | |
7985 | } | |
7986 | } | |
cf694132 | 7987 | { |
474c48f9 | 7988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7989 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); |
cf694132 | 7990 | |
474c48f9 | 7991 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7992 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7993 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7994 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7995 | return _resultobj; |
7996 | } | |
7997 | ||
d5c9047a | 7998 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) |
efc5f224 | 7999 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8000 | PyObject * _resultobj; |
d5c9047a | 8001 | wxTreeItemId * _result; |
f6bcfd97 | 8002 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8003 | wxTreeItemId * _arg1; |
1d99702e RD |
8004 | PyObject * _argo0 = 0; |
8005 | PyObject * _argo1 = 0; | |
efc5f224 | 8006 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8007 | char _ptemp[128]; |
8ab979d7 RD |
8008 | |
8009 | self = self; | |
efc5f224 | 8010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8011 | return NULL; |
1d99702e RD |
8012 | if (_argo0) { |
8013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8016 | return NULL; |
8017 | } | |
8018 | } | |
1d99702e RD |
8019 | if (_argo1) { |
8020 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8021 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 8022 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8023 | return NULL; |
8024 | } | |
8025 | } | |
cf694132 | 8026 | { |
474c48f9 | 8027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8028 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); |
cf694132 | 8029 | |
474c48f9 | 8030 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8031 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8032 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8033 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8034 | return _resultobj; |
8035 | } | |
8036 | ||
d426c97e RD |
8037 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) |
8038 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8039 | PyObject * _resultobj; | |
8040 | wxTreeItemId * _result; | |
f6bcfd97 | 8041 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8042 | wxTreeItemId * _arg1; |
8043 | PyObject * _argo0 = 0; | |
8044 | PyObject * _argo1 = 0; | |
8045 | char *_kwnames[] = { "self","item", NULL }; | |
8046 | char _ptemp[128]; | |
8047 | ||
8048 | self = self; | |
8049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
8050 | return NULL; | |
8051 | if (_argo0) { | |
8052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8055 | return NULL; |
8056 | } | |
8057 | } | |
8058 | if (_argo1) { | |
8059 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8060 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); | |
8062 | return NULL; | |
8063 | } | |
8064 | } | |
8065 | { | |
474c48f9 | 8066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8067 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); |
d426c97e | 8068 | |
474c48f9 | 8069 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8070 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8071 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8072 | _resultobj = Py_BuildValue("s",_ptemp); | |
8073 | return _resultobj; | |
8074 | } | |
8075 | ||
d5c9047a | 8076 | #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 8077 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8078 | PyObject * _resultobj; |
d5c9047a | 8079 | wxTreeItemId * _result; |
f6bcfd97 | 8080 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8081 | wxString * _arg1; |
1d99702e RD |
8082 | int _arg2 = (int ) -1; |
8083 | int _arg3 = (int ) -1; | |
8084 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
8085 | PyObject * _argo0 = 0; | |
d5c9047a | 8086 | PyObject * _obj1 = 0; |
1d99702e | 8087 | PyObject * _argo4 = 0; |
efc5f224 | 8088 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; |
d5c9047a | 8089 | char _ptemp[128]; |
8ab979d7 RD |
8090 | |
8091 | self = self; | |
efc5f224 | 8092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) |
8ab979d7 | 8093 | return NULL; |
1d99702e RD |
8094 | if (_argo0) { |
8095 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8096 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8097 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8098 | return NULL; |
8099 | } | |
8100 | } | |
d5c9047a | 8101 | { |
c8bc7bb8 RD |
8102 | _arg1 = wxString_in_helper(_obj1); |
8103 | if (_arg1 == NULL) | |
2cd2fac8 | 8104 | return NULL; |
d5c9047a | 8105 | } |
1d99702e RD |
8106 | if (_argo4) { |
8107 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
8108 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
cf694132 | 8109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
8110 | return NULL; |
8111 | } | |
8112 | } | |
cf694132 | 8113 | { |
474c48f9 | 8114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8115 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); |
cf694132 | 8116 | |
474c48f9 | 8117 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8118 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8119 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8120 | _resultobj = Py_BuildValue("s",_ptemp); |
8121 | { | |
8122 | if (_obj1) | |
8123 | delete _arg1; | |
8124 | } | |
8ab979d7 RD |
8125 | return _resultobj; |
8126 | } | |
8127 | ||
d5c9047a | 8128 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8129 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8130 | PyObject * _resultobj; |
d5c9047a | 8131 | wxTreeItemId * _result; |
f6bcfd97 | 8132 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8133 | wxTreeItemId * _arg1; |
8134 | wxString * _arg2; | |
1d99702e RD |
8135 | int _arg3 = (int ) -1; |
8136 | int _arg4 = (int ) -1; | |
8137 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8138 | PyObject * _argo0 = 0; | |
8139 | PyObject * _argo1 = 0; | |
d5c9047a | 8140 | PyObject * _obj2 = 0; |
1d99702e | 8141 | PyObject * _argo5 = 0; |
efc5f224 | 8142 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8143 | char _ptemp[128]; |
8ab979d7 RD |
8144 | |
8145 | self = self; | |
efc5f224 | 8146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8147 | return NULL; |
1d99702e RD |
8148 | if (_argo0) { |
8149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8152 | return NULL; |
8153 | } | |
8154 | } | |
1d99702e RD |
8155 | if (_argo1) { |
8156 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8157 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); |
8159 | return NULL; | |
8160 | } | |
8161 | } | |
8162 | { | |
c8bc7bb8 RD |
8163 | _arg2 = wxString_in_helper(_obj2); |
8164 | if (_arg2 == NULL) | |
2cd2fac8 | 8165 | return NULL; |
d5c9047a | 8166 | } |
1d99702e RD |
8167 | if (_argo5) { |
8168 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8169 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8171 | return NULL; |
8172 | } | |
8173 | } | |
cf694132 | 8174 | { |
474c48f9 | 8175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8176 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); |
cf694132 | 8177 | |
474c48f9 | 8178 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8179 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8180 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8181 | _resultobj = Py_BuildValue("s",_ptemp); |
8182 | { | |
8183 | if (_obj2) | |
8184 | delete _arg2; | |
8185 | } | |
8ab979d7 RD |
8186 | return _resultobj; |
8187 | } | |
8188 | ||
d5c9047a | 8189 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 8190 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8191 | PyObject * _resultobj; |
d5c9047a | 8192 | wxTreeItemId * _result; |
f6bcfd97 | 8193 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8194 | wxTreeItemId * _arg1; |
8195 | wxTreeItemId * _arg2; | |
8196 | wxString * _arg3; | |
1d99702e RD |
8197 | int _arg4 = (int ) -1; |
8198 | int _arg5 = (int ) -1; | |
8199 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
8200 | PyObject * _argo0 = 0; | |
8201 | PyObject * _argo1 = 0; | |
8202 | PyObject * _argo2 = 0; | |
d5c9047a | 8203 | PyObject * _obj3 = 0; |
1d99702e | 8204 | PyObject * _argo6 = 0; |
efc5f224 | 8205 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; |
d5c9047a | 8206 | char _ptemp[128]; |
8ab979d7 RD |
8207 | |
8208 | self = self; | |
efc5f224 | 8209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) |
8ab979d7 | 8210 | return NULL; |
1d99702e RD |
8211 | if (_argo0) { |
8212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8215 | return NULL; |
8216 | } | |
8217 | } | |
1d99702e RD |
8218 | if (_argo1) { |
8219 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8220 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8222 | return NULL; | |
8223 | } | |
8224 | } | |
1d99702e RD |
8225 | if (_argo2) { |
8226 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8227 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8229 | return NULL; | |
8230 | } | |
8231 | } | |
8232 | { | |
c8bc7bb8 RD |
8233 | _arg3 = wxString_in_helper(_obj3); |
8234 | if (_arg3 == NULL) | |
2cd2fac8 | 8235 | return NULL; |
d5c9047a | 8236 | } |
1d99702e RD |
8237 | if (_argo6) { |
8238 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8239 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
cf694132 | 8240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8241 | return NULL; |
8242 | } | |
8243 | } | |
cf694132 | 8244 | { |
474c48f9 | 8245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8246 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); |
cf694132 | 8247 | |
474c48f9 | 8248 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8249 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8250 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8251 | _resultobj = Py_BuildValue("s",_ptemp); |
8252 | { | |
8253 | if (_obj3) | |
8254 | delete _arg3; | |
8255 | } | |
8ab979d7 RD |
8256 | return _resultobj; |
8257 | } | |
8258 | ||
f6bcfd97 BP |
8259 | #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
8260 | static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8261 | PyObject * _resultobj; | |
8262 | wxTreeItemId * _result; | |
8263 | wxPyTreeCtrl * _arg0; | |
8264 | wxTreeItemId * _arg1; | |
8265 | size_t _arg2; | |
8266 | wxString * _arg3; | |
8267 | int _arg4 = (int ) -1; | |
8268 | int _arg5 = (int ) -1; | |
55d18651 | 8269 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; |
f6bcfd97 BP |
8270 | PyObject * _argo0 = 0; |
8271 | PyObject * _argo1 = 0; | |
8272 | PyObject * _obj3 = 0; | |
8273 | PyObject * _argo6 = 0; | |
8274 | char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL }; | |
8275 | char _ptemp[128]; | |
8276 | ||
8277 | self = self; | |
8278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
8279 | return NULL; | |
8280 | if (_argo0) { | |
8281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p."); | |
8284 | return NULL; | |
8285 | } | |
8286 | } | |
8287 | if (_argo1) { | |
8288 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8289 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p."); | |
8291 | return NULL; | |
8292 | } | |
8293 | } | |
8294 | { | |
c8bc7bb8 RD |
8295 | _arg3 = wxString_in_helper(_obj3); |
8296 | if (_arg3 == NULL) | |
2cd2fac8 | 8297 | return NULL; |
f6bcfd97 BP |
8298 | } |
8299 | if (_argo6) { | |
8300 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
55d18651 RD |
8301 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { |
8302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeItemData_p."); | |
f6bcfd97 BP |
8303 | return NULL; |
8304 | } | |
8305 | } | |
8306 | { | |
474c48f9 | 8307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8308 | _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6)); |
f6bcfd97 | 8309 | |
474c48f9 | 8310 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8311 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
8312 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8313 | _resultobj = Py_BuildValue("s",_ptemp); | |
8314 | { | |
8315 | if (_obj3) | |
8316 | delete _arg3; | |
8317 | } | |
8318 | return _resultobj; | |
8319 | } | |
8320 | ||
d5c9047a | 8321 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8322 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8323 | PyObject * _resultobj; |
d5c9047a | 8324 | wxTreeItemId * _result; |
f6bcfd97 | 8325 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8326 | wxTreeItemId * _arg1; |
8ab979d7 | 8327 | wxString * _arg2; |
1d99702e RD |
8328 | int _arg3 = (int ) -1; |
8329 | int _arg4 = (int ) -1; | |
8330 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8331 | PyObject * _argo0 = 0; | |
8332 | PyObject * _argo1 = 0; | |
8ab979d7 | 8333 | PyObject * _obj2 = 0; |
1d99702e | 8334 | PyObject * _argo5 = 0; |
efc5f224 | 8335 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8336 | char _ptemp[128]; |
8ab979d7 RD |
8337 | |
8338 | self = self; | |
efc5f224 | 8339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8340 | return NULL; |
1d99702e RD |
8341 | if (_argo0) { |
8342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8345 | return NULL; |
8346 | } | |
8347 | } | |
1d99702e RD |
8348 | if (_argo1) { |
8349 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8350 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 8351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8352 | return NULL; |
8353 | } | |
8354 | } | |
8355 | { | |
c8bc7bb8 RD |
8356 | _arg2 = wxString_in_helper(_obj2); |
8357 | if (_arg2 == NULL) | |
2cd2fac8 | 8358 | return NULL; |
8ab979d7 | 8359 | } |
1d99702e RD |
8360 | if (_argo5) { |
8361 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8362 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8364 | return NULL; |
8365 | } | |
8366 | } | |
cf694132 | 8367 | { |
474c48f9 | 8368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8369 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); |
cf694132 | 8370 | |
474c48f9 | 8371 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8372 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8373 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8374 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8375 | { |
8376 | if (_obj2) | |
8377 | delete _arg2; | |
8378 | } | |
8379 | return _resultobj; | |
8380 | } | |
8381 | ||
d5c9047a | 8382 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
efc5f224 | 8383 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8384 | PyObject * _resultobj; |
f6bcfd97 | 8385 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8386 | wxTreeItemId * _arg1; |
1d99702e RD |
8387 | PyObject * _argo0 = 0; |
8388 | PyObject * _argo1 = 0; | |
efc5f224 | 8389 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
8390 | |
8391 | self = self; | |
efc5f224 | 8392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8393 | return NULL; |
1d99702e RD |
8394 | if (_argo0) { |
8395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8398 | return NULL; |
8399 | } | |
8400 | } | |
1d99702e RD |
8401 | if (_argo1) { |
8402 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8403 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); |
8405 | return NULL; | |
8406 | } | |
8407 | } | |
cf694132 | 8408 | { |
474c48f9 | 8409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8410 | wxTreeCtrl_Delete(_arg0,*_arg1); |
cf694132 | 8411 | |
474c48f9 | 8412 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8413 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8414 | } Py_INCREF(Py_None); |
d5c9047a RD |
8415 | _resultobj = Py_None; |
8416 | return _resultobj; | |
8417 | } | |
8418 | ||
08127323 | 8419 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) |
efc5f224 | 8420 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 8421 | PyObject * _resultobj; |
f6bcfd97 | 8422 | wxPyTreeCtrl * _arg0; |
08127323 | 8423 | wxTreeItemId * _arg1; |
1d99702e RD |
8424 | PyObject * _argo0 = 0; |
8425 | PyObject * _argo1 = 0; | |
efc5f224 | 8426 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
8427 | |
8428 | self = self; | |
efc5f224 | 8429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) |
08127323 | 8430 | return NULL; |
1d99702e RD |
8431 | if (_argo0) { |
8432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
8435 | return NULL; |
8436 | } | |
8437 | } | |
1d99702e RD |
8438 | if (_argo1) { |
8439 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8440 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
08127323 RD |
8441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); |
8442 | return NULL; | |
8443 | } | |
8444 | } | |
cf694132 | 8445 | { |
474c48f9 | 8446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8447 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); |
cf694132 | 8448 | |
474c48f9 | 8449 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8450 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8451 | } Py_INCREF(Py_None); |
08127323 RD |
8452 | _resultobj = Py_None; |
8453 | return _resultobj; | |
8454 | } | |
8455 | ||
d5c9047a | 8456 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) |
efc5f224 | 8457 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8458 | PyObject * _resultobj; |
f6bcfd97 | 8459 | wxPyTreeCtrl * _arg0; |
1d99702e | 8460 | PyObject * _argo0 = 0; |
efc5f224 | 8461 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8462 | |
8463 | self = self; | |
efc5f224 | 8464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) |
d5c9047a | 8465 | return NULL; |
1d99702e RD |
8466 | if (_argo0) { |
8467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8470 | return NULL; |
8471 | } | |
8472 | } | |
cf694132 | 8473 | { |
474c48f9 | 8474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8475 | wxTreeCtrl_DeleteAllItems(_arg0); |
cf694132 | 8476 | |
474c48f9 | 8477 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8478 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8479 | } Py_INCREF(Py_None); |
d5c9047a RD |
8480 | _resultobj = Py_None; |
8481 | return _resultobj; | |
8482 | } | |
8483 | ||
8484 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
efc5f224 | 8485 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8486 | PyObject * _resultobj; |
f6bcfd97 | 8487 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8488 | wxTreeItemId * _arg1; |
1d99702e RD |
8489 | PyObject * _argo0 = 0; |
8490 | PyObject * _argo1 = 0; | |
efc5f224 | 8491 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8492 | |
8493 | self = self; | |
efc5f224 | 8494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8495 | return NULL; |
1d99702e RD |
8496 | if (_argo0) { |
8497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8500 | return NULL; |
8501 | } | |
8502 | } | |
1d99702e RD |
8503 | if (_argo1) { |
8504 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8505 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); |
8507 | return NULL; | |
8508 | } | |
8509 | } | |
cf694132 | 8510 | { |
474c48f9 | 8511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8512 | wxTreeCtrl_Expand(_arg0,*_arg1); |
cf694132 | 8513 | |
474c48f9 | 8514 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8515 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8516 | } Py_INCREF(Py_None); |
d5c9047a RD |
8517 | _resultobj = Py_None; |
8518 | return _resultobj; | |
8519 | } | |
8520 | ||
8521 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
efc5f224 | 8522 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8523 | PyObject * _resultobj; |
f6bcfd97 | 8524 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8525 | wxTreeItemId * _arg1; |
1d99702e RD |
8526 | PyObject * _argo0 = 0; |
8527 | PyObject * _argo1 = 0; | |
efc5f224 | 8528 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8529 | |
8530 | self = self; | |
efc5f224 | 8531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 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_Collapse. Expected _wxPyTreeCtrl_p."); | |
d5c9047a 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_Collapse. Expected _wxTreeItemId_p."); |
8544 | return NULL; | |
8545 | } | |
8546 | } | |
cf694132 | 8547 | { |
474c48f9 | 8548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8549 | wxTreeCtrl_Collapse(_arg0,*_arg1); |
cf694132 | 8550 | |
474c48f9 | 8551 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8552 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8553 | } Py_INCREF(Py_None); |
d5c9047a RD |
8554 | _resultobj = Py_None; |
8555 | return _resultobj; | |
8556 | } | |
8557 | ||
8558 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
efc5f224 | 8559 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8560 | PyObject * _resultobj; |
f6bcfd97 | 8561 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8562 | wxTreeItemId * _arg1; |
1d99702e RD |
8563 | PyObject * _argo0 = 0; |
8564 | PyObject * _argo1 = 0; | |
efc5f224 | 8565 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8566 | |
8567 | self = self; | |
efc5f224 | 8568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8569 | return NULL; |
1d99702e RD |
8570 | if (_argo0) { |
8571 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8572 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8574 | return NULL; |
8575 | } | |
8576 | } | |
1d99702e RD |
8577 | if (_argo1) { |
8578 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8579 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); |
8581 | return NULL; | |
8582 | } | |
8583 | } | |
cf694132 | 8584 | { |
474c48f9 | 8585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8586 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); |
cf694132 | 8587 | |
474c48f9 | 8588 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8589 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8590 | } Py_INCREF(Py_None); |
d5c9047a RD |
8591 | _resultobj = Py_None; |
8592 | return _resultobj; | |
8593 | } | |
8594 | ||
8595 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
efc5f224 | 8596 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8597 | PyObject * _resultobj; |
f6bcfd97 | 8598 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8599 | wxTreeItemId * _arg1; |
1d99702e RD |
8600 | PyObject * _argo0 = 0; |
8601 | PyObject * _argo1 = 0; | |
efc5f224 | 8602 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8603 | |
8604 | self = self; | |
efc5f224 | 8605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8606 | return NULL; |
1d99702e RD |
8607 | if (_argo0) { |
8608 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8609 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8611 | return NULL; |
8612 | } | |
8613 | } | |
1d99702e RD |
8614 | if (_argo1) { |
8615 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8616 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8617 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); |
8618 | return NULL; | |
8619 | } | |
8620 | } | |
cf694132 | 8621 | { |
474c48f9 | 8622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8623 | wxTreeCtrl_Toggle(_arg0,*_arg1); |
cf694132 | 8624 | |
474c48f9 | 8625 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8626 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8627 | } Py_INCREF(Py_None); |
d5c9047a RD |
8628 | _resultobj = Py_None; |
8629 | return _resultobj; | |
8630 | } | |
8631 | ||
8632 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
efc5f224 | 8633 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8634 | PyObject * _resultobj; |
f6bcfd97 | 8635 | wxPyTreeCtrl * _arg0; |
1d99702e | 8636 | PyObject * _argo0 = 0; |
efc5f224 | 8637 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8638 | |
8639 | self = self; | |
efc5f224 | 8640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) |
d5c9047a | 8641 | return NULL; |
1d99702e RD |
8642 | if (_argo0) { |
8643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8646 | return NULL; |
8647 | } | |
8648 | } | |
cf694132 | 8649 | { |
474c48f9 | 8650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8651 | wxTreeCtrl_Unselect(_arg0); |
cf694132 | 8652 | |
474c48f9 | 8653 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8654 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8655 | } Py_INCREF(Py_None); |
d5c9047a RD |
8656 | _resultobj = Py_None; |
8657 | return _resultobj; | |
8658 | } | |
8659 | ||
8bf5d46e | 8660 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) |
efc5f224 | 8661 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e | 8662 | PyObject * _resultobj; |
f6bcfd97 | 8663 | wxPyTreeCtrl * _arg0; |
1d99702e | 8664 | PyObject * _argo0 = 0; |
efc5f224 | 8665 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
8666 | |
8667 | self = self; | |
efc5f224 | 8668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) |
8bf5d46e | 8669 | return NULL; |
1d99702e RD |
8670 | if (_argo0) { |
8671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p."); | |
8bf5d46e RD |
8674 | return NULL; |
8675 | } | |
8676 | } | |
8677 | { | |
474c48f9 | 8678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8679 | wxTreeCtrl_UnselectAll(_arg0); |
8bf5d46e | 8680 | |
474c48f9 | 8681 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8682 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
8683 | } Py_INCREF(Py_None); |
8684 | _resultobj = Py_None; | |
8685 | return _resultobj; | |
8686 | } | |
8687 | ||
d5c9047a | 8688 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) |
efc5f224 | 8689 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8690 | PyObject * _resultobj; |
f6bcfd97 | 8691 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8692 | wxTreeItemId * _arg1; |
1d99702e RD |
8693 | PyObject * _argo0 = 0; |
8694 | PyObject * _argo1 = 0; | |
efc5f224 | 8695 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8696 | |
8697 | self = self; | |
efc5f224 | 8698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8699 | return NULL; |
1d99702e RD |
8700 | if (_argo0) { |
8701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8704 | return NULL; |
8705 | } | |
8706 | } | |
1d99702e RD |
8707 | if (_argo1) { |
8708 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8709 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); |
8711 | return NULL; | |
8712 | } | |
8713 | } | |
cf694132 | 8714 | { |
474c48f9 | 8715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8716 | wxTreeCtrl_SelectItem(_arg0,*_arg1); |
cf694132 | 8717 | |
474c48f9 | 8718 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8719 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8720 | } Py_INCREF(Py_None); |
d5c9047a RD |
8721 | _resultobj = Py_None; |
8722 | return _resultobj; | |
8723 | } | |
8724 | ||
8725 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
efc5f224 | 8726 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8727 | PyObject * _resultobj; |
f6bcfd97 | 8728 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8729 | wxTreeItemId * _arg1; |
1d99702e RD |
8730 | PyObject * _argo0 = 0; |
8731 | PyObject * _argo1 = 0; | |
efc5f224 | 8732 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8733 | |
8734 | self = self; | |
efc5f224 | 8735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8736 | return NULL; |
1d99702e RD |
8737 | if (_argo0) { |
8738 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8739 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8740 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8741 | return NULL; |
8742 | } | |
8743 | } | |
1d99702e RD |
8744 | if (_argo1) { |
8745 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8746 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); |
8748 | return NULL; | |
8749 | } | |
8750 | } | |
cf694132 | 8751 | { |
474c48f9 | 8752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8753 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); |
cf694132 | 8754 | |
474c48f9 | 8755 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8756 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8757 | } Py_INCREF(Py_None); |
d5c9047a RD |
8758 | _resultobj = Py_None; |
8759 | return _resultobj; | |
8760 | } | |
8761 | ||
8762 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
efc5f224 | 8763 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8764 | PyObject * _resultobj; |
f6bcfd97 | 8765 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8766 | wxTreeItemId * _arg1; |
1d99702e RD |
8767 | PyObject * _argo0 = 0; |
8768 | PyObject * _argo1 = 0; | |
efc5f224 | 8769 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8770 | |
8771 | self = self; | |
efc5f224 | 8772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8773 | return NULL; |
1d99702e RD |
8774 | if (_argo0) { |
8775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8778 | return NULL; |
8779 | } | |
8780 | } | |
1d99702e RD |
8781 | if (_argo1) { |
8782 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8783 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); |
8785 | return NULL; | |
8786 | } | |
8787 | } | |
cf694132 | 8788 | { |
474c48f9 | 8789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8790 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); |
cf694132 | 8791 | |
474c48f9 | 8792 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8793 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8794 | } Py_INCREF(Py_None); |
d5c9047a RD |
8795 | _resultobj = Py_None; |
8796 | return _resultobj; | |
8797 | } | |
8798 | ||
8799 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
efc5f224 | 8800 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8801 | PyObject * _resultobj; |
f6bcfd97 | 8802 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8803 | wxTreeItemId * _arg1; |
1d99702e RD |
8804 | PyObject * _argo0 = 0; |
8805 | PyObject * _argo1 = 0; | |
efc5f224 | 8806 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8807 | |
8808 | self = self; | |
efc5f224 | 8809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8810 | return NULL; |
1d99702e RD |
8811 | if (_argo0) { |
8812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8815 | return NULL; |
8816 | } | |
8817 | } | |
1d99702e RD |
8818 | if (_argo1) { |
8819 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8820 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); |
8822 | return NULL; | |
8823 | } | |
8824 | } | |
cf694132 | 8825 | { |
474c48f9 | 8826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8827 | wxTreeCtrl_EditLabel(_arg0,*_arg1); |
cf694132 | 8828 | |
474c48f9 | 8829 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8830 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8831 | } Py_INCREF(Py_None); |
d5c9047a | 8832 | _resultobj = Py_None; |
8ab979d7 RD |
8833 | return _resultobj; |
8834 | } | |
8835 | ||
d426c97e RD |
8836 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) |
8837 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8838 | PyObject * _resultobj; | |
f6bcfd97 | 8839 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8840 | wxTreeItemId * _arg1; |
8841 | PyObject * _argo0 = 0; | |
8842 | PyObject * _argo1 = 0; | |
8843 | char *_kwnames[] = { "self","item", NULL }; | |
8844 | ||
8845 | self = self; | |
8846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
8847 | return NULL; | |
8848 | if (_argo0) { | |
8849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8852 | return NULL; |
8853 | } | |
8854 | } | |
8855 | if (_argo1) { | |
8856 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8857 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); | |
8859 | return NULL; | |
8860 | } | |
8861 | } | |
8862 | { | |
474c48f9 | 8863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8864 | wxTreeCtrl_SortChildren(_arg0,*_arg1); |
d426c97e | 8865 | |
474c48f9 | 8866 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8867 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8868 | } Py_INCREF(Py_None); |
8869 | _resultobj = Py_None; | |
8870 | return _resultobj; | |
8871 | } | |
8872 | ||
b8b8dda7 | 8873 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) |
efc5f224 | 8874 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 | 8875 | PyObject * _resultobj; |
f6bcfd97 | 8876 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 8877 | wxTreeItemId * _arg1; |
b1462dfa | 8878 | int _arg2 = (int ) TRUE; |
1d99702e RD |
8879 | PyObject * _argo0 = 0; |
8880 | PyObject * _argo1 = 0; | |
efc5f224 | 8881 | char *_kwnames[] = { "self","item","bold", NULL }; |
b8b8dda7 RD |
8882 | |
8883 | self = self; | |
b1462dfa | 8884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) |
b8b8dda7 | 8885 | return NULL; |
1d99702e RD |
8886 | if (_argo0) { |
8887 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8888 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
8890 | return NULL; |
8891 | } | |
8892 | } | |
1d99702e RD |
8893 | if (_argo1) { |
8894 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8895 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
8896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); |
8897 | return NULL; | |
8898 | } | |
8899 | } | |
cf694132 | 8900 | { |
474c48f9 | 8901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8902 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); |
cf694132 | 8903 | |
474c48f9 | 8904 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8905 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8906 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
8907 | _resultobj = Py_None; |
8908 | return _resultobj; | |
8909 | } | |
8910 | ||
8911 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
efc5f224 | 8912 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
8913 | PyObject * _resultobj; |
8914 | bool _result; | |
f6bcfd97 | 8915 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 8916 | wxTreeItemId * _arg1; |
1d99702e RD |
8917 | PyObject * _argo0 = 0; |
8918 | PyObject * _argo1 = 0; | |
efc5f224 | 8919 | char *_kwnames[] = { "self","item", NULL }; |
b8b8dda7 RD |
8920 | |
8921 | self = self; | |
efc5f224 | 8922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 8923 | return NULL; |
1d99702e RD |
8924 | if (_argo0) { |
8925 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8926 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
8928 | return NULL; |
8929 | } | |
8930 | } | |
1d99702e RD |
8931 | if (_argo1) { |
8932 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8933 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
8934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); |
8935 | return NULL; | |
8936 | } | |
8937 | } | |
cf694132 | 8938 | { |
474c48f9 | 8939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8940 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); |
cf694132 | 8941 | |
474c48f9 | 8942 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8943 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8944 | } _resultobj = Py_BuildValue("i",_result); |
b8b8dda7 RD |
8945 | return _resultobj; |
8946 | } | |
8947 | ||
164b735b | 8948 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
efc5f224 | 8949 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
8950 | PyObject * _resultobj; |
8951 | wxTreeItemId * _result; | |
f6bcfd97 | 8952 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 8953 | wxPoint * _arg1; |
164b735b RD |
8954 | int * _arg2; |
8955 | int temp; | |
1d99702e | 8956 | PyObject * _argo0 = 0; |
164b735b | 8957 | wxPoint temp0; |
2f90df85 | 8958 | PyObject * _obj1 = 0; |
efc5f224 | 8959 | char *_kwnames[] = { "self","point", NULL }; |
b8b8dda7 RD |
8960 | char _ptemp[128]; |
8961 | ||
8962 | self = self; | |
164b735b RD |
8963 | { |
8964 | _arg2 = &temp; | |
8965 | } | |
2f90df85 | 8966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 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_HitTest. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
8972 | return NULL; |
8973 | } | |
8974 | } | |
2f90df85 | 8975 | { |
164b735b | 8976 | _arg1 = &temp0; |
2f90df85 | 8977 | if (! wxPoint_helper(_obj1, &_arg1)) |
b8b8dda7 | 8978 | return NULL; |
2f90df85 | 8979 | } |
cf694132 | 8980 | { |
474c48f9 | 8981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8982 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); |
cf694132 | 8983 | |
474c48f9 | 8984 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8985 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8986 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
b8b8dda7 | 8987 | _resultobj = Py_BuildValue("s",_ptemp); |
164b735b RD |
8988 | { |
8989 | PyObject *o; | |
8990 | o = PyInt_FromLong((long) (*_arg2)); | |
8991 | _resultobj = t_output_helper(_resultobj, o); | |
8992 | } | |
b8b8dda7 RD |
8993 | return _resultobj; |
8994 | } | |
8995 | ||
b7e72427 RD |
8996 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
8997 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8998 | PyObject * _resultobj; | |
f6bcfd97 | 8999 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9000 | wxTreeItemId * _arg1; |
9001 | wxColour * _arg2; | |
9002 | PyObject * _argo0 = 0; | |
9003 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9004 | wxColour temp; |
9005 | PyObject * _obj2 = 0; | |
b7e72427 RD |
9006 | char *_kwnames[] = { "self","item","col", NULL }; |
9007 | ||
9008 | self = self; | |
f6bcfd97 | 9009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9010 | return NULL; |
9011 | if (_argo0) { | |
9012 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9013 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9015 | return NULL; |
9016 | } | |
9017 | } | |
9018 | if (_argo1) { | |
9019 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9020 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); | |
9022 | return NULL; | |
9023 | } | |
9024 | } | |
f6bcfd97 BP |
9025 | { |
9026 | _arg2 = &temp; | |
9027 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9028 | return NULL; |
f6bcfd97 | 9029 | } |
b7e72427 | 9030 | { |
474c48f9 | 9031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9032 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); |
b7e72427 | 9033 | |
474c48f9 | 9034 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9035 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9036 | } Py_INCREF(Py_None); |
9037 | _resultobj = Py_None; | |
9038 | return _resultobj; | |
9039 | } | |
9040 | ||
9041 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
9042 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9043 | PyObject * _resultobj; | |
f6bcfd97 | 9044 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9045 | wxTreeItemId * _arg1; |
9046 | wxColour * _arg2; | |
9047 | PyObject * _argo0 = 0; | |
9048 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9049 | wxColour temp; |
9050 | PyObject * _obj2 = 0; | |
b7e72427 RD |
9051 | char *_kwnames[] = { "self","item","col", NULL }; |
9052 | ||
9053 | self = self; | |
f6bcfd97 | 9054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9055 | return NULL; |
9056 | if (_argo0) { | |
9057 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9058 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9060 | return NULL; |
9061 | } | |
9062 | } | |
9063 | if (_argo1) { | |
9064 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9065 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
9067 | return NULL; | |
9068 | } | |
9069 | } | |
f6bcfd97 BP |
9070 | { |
9071 | _arg2 = &temp; | |
9072 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9073 | return NULL; |
f6bcfd97 | 9074 | } |
b7e72427 | 9075 | { |
474c48f9 | 9076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9077 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); |
b7e72427 | 9078 | |
474c48f9 | 9079 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9080 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9081 | } Py_INCREF(Py_None); |
9082 | _resultobj = Py_None; | |
9083 | return _resultobj; | |
9084 | } | |
9085 | ||
9086 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
9087 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9088 | PyObject * _resultobj; | |
f6bcfd97 | 9089 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9090 | wxTreeItemId * _arg1; |
9091 | wxFont * _arg2; | |
9092 | PyObject * _argo0 = 0; | |
9093 | PyObject * _argo1 = 0; | |
9094 | PyObject * _argo2 = 0; | |
9095 | char *_kwnames[] = { "self","item","font", NULL }; | |
9096 | ||
9097 | self = self; | |
9098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
9099 | return NULL; | |
9100 | if (_argo0) { | |
9101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9104 | return NULL; |
9105 | } | |
9106 | } | |
9107 | if (_argo1) { | |
9108 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9109 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); | |
9111 | return NULL; | |
9112 | } | |
9113 | } | |
9114 | if (_argo2) { | |
9115 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9116 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
9117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); | |
9118 | return NULL; | |
9119 | } | |
9120 | } | |
9121 | { | |
474c48f9 | 9122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9123 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); |
b7e72427 | 9124 | |
474c48f9 | 9125 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9126 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9127 | } Py_INCREF(Py_None); |
9128 | _resultobj = Py_None; | |
9129 | return _resultobj; | |
9130 | } | |
9131 | ||
74bcba0e RD |
9132 | static PyObject * wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,const wxTreeItemId & item,int textOnly) { |
9133 | wxRect rect; | |
9134 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
474c48f9 | 9135 | wxPyBeginBlockThreads(); |
74bcba0e RD |
9136 | wxRect* r = new wxRect(rect); |
9137 | PyObject* val = wxPyConstructObject((void*)r, "wxRect"); | |
474c48f9 | 9138 | wxPyEndBlockThreads(); |
74bcba0e RD |
9139 | return val; |
9140 | } | |
9141 | else { | |
9142 | Py_INCREF(Py_None); | |
9143 | return Py_None; | |
9144 | } | |
9145 | } | |
9146 | static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9147 | PyObject * _resultobj; | |
9148 | PyObject * _result; | |
9149 | wxPyTreeCtrl * _arg0; | |
9150 | wxTreeItemId * _arg1; | |
9151 | int _arg2 = (int ) FALSE; | |
9152 | PyObject * _argo0 = 0; | |
9153 | PyObject * _argo1 = 0; | |
9154 | char *_kwnames[] = { "self","item","textOnly", NULL }; | |
9155 | ||
9156 | self = self; | |
9157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&_arg2)) | |
9158 | return NULL; | |
9159 | if (_argo0) { | |
9160 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9161 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9162 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetBoundingRect. Expected _wxPyTreeCtrl_p."); | |
9163 | return NULL; | |
9164 | } | |
9165 | } | |
9166 | if (_argo1) { | |
9167 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9168 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeItemId_p."); | |
9170 | return NULL; | |
9171 | } | |
9172 | } | |
9173 | { | |
474c48f9 | 9174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9175 | _result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(_arg0,*_arg1,_arg2); |
74bcba0e | 9176 | |
474c48f9 | 9177 | wxPyEndAllowThreads(__tstate); |
74bcba0e RD |
9178 | if (PyErr_Occurred()) return NULL; |
9179 | }{ | |
9180 | _resultobj = _result; | |
9181 | } | |
9182 | return _resultobj; | |
9183 | } | |
9184 | ||
db34b2d4 RD |
9185 | static void *SwigwxDirItemDataTowxObject(void *ptr) { |
9186 | wxDirItemData *src; | |
9187 | wxObject *dest; | |
9188 | src = (wxDirItemData *) ptr; | |
9189 | dest = (wxObject *) src; | |
9190 | return (void *) dest; | |
9191 | } | |
9192 | ||
9193 | #define new_wxDirItemData(_swigarg0,_swigarg1,_swigarg2) (new wxDirItemData(_swigarg0,_swigarg1,_swigarg2)) | |
9194 | static PyObject *_wrap_new_wxDirItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9195 | PyObject * _resultobj; | |
9196 | wxDirItemData * _result; | |
9197 | wxString * _arg0; | |
9198 | wxString * _arg1; | |
9199 | bool _arg2; | |
9200 | PyObject * _obj0 = 0; | |
9201 | PyObject * _obj1 = 0; | |
9202 | int tempbool2; | |
9203 | char *_kwnames[] = { "path","name","isDir", NULL }; | |
9204 | char _ptemp[128]; | |
9205 | ||
9206 | self = self; | |
9207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:new_wxDirItemData",_kwnames,&_obj0,&_obj1,&tempbool2)) | |
9208 | return NULL; | |
9209 | { | |
c8bc7bb8 RD |
9210 | _arg0 = wxString_in_helper(_obj0); |
9211 | if (_arg0 == NULL) | |
db34b2d4 | 9212 | return NULL; |
db34b2d4 RD |
9213 | } |
9214 | { | |
c8bc7bb8 RD |
9215 | _arg1 = wxString_in_helper(_obj1); |
9216 | if (_arg1 == NULL) | |
db34b2d4 | 9217 | return NULL; |
db34b2d4 RD |
9218 | } |
9219 | _arg2 = (bool ) tempbool2; | |
9220 | { | |
9221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9222 | _result = (wxDirItemData *)new_wxDirItemData(*_arg0,*_arg1,_arg2); |
db34b2d4 RD |
9223 | |
9224 | wxPyEndAllowThreads(__tstate); | |
9225 | if (PyErr_Occurred()) return NULL; | |
9226 | } if (_result) { | |
9227 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirItemData_p"); | |
9228 | _resultobj = Py_BuildValue("s",_ptemp); | |
9229 | } else { | |
9230 | Py_INCREF(Py_None); | |
9231 | _resultobj = Py_None; | |
9232 | } | |
9233 | { | |
9234 | if (_obj0) | |
9235 | delete _arg0; | |
9236 | } | |
9237 | { | |
9238 | if (_obj1) | |
9239 | delete _arg1; | |
9240 | } | |
9241 | return _resultobj; | |
9242 | } | |
9243 | ||
9244 | #define wxDirItemData_SetNewDirName(_swigobj,_swigarg0) (_swigobj->SetNewDirName(_swigarg0)) | |
9245 | static PyObject *_wrap_wxDirItemData_SetNewDirName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9246 | PyObject * _resultobj; | |
9247 | wxDirItemData * _arg0; | |
9248 | wxString * _arg1; | |
9249 | PyObject * _argo0 = 0; | |
9250 | PyObject * _obj1 = 0; | |
9251 | char *_kwnames[] = { "self","path", NULL }; | |
9252 | ||
9253 | self = self; | |
9254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_SetNewDirName",_kwnames,&_argo0,&_obj1)) | |
9255 | return NULL; | |
9256 | if (_argo0) { | |
9257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_SetNewDirName. Expected _wxDirItemData_p."); | |
9260 | return NULL; | |
9261 | } | |
9262 | } | |
9263 | { | |
c8bc7bb8 RD |
9264 | _arg1 = wxString_in_helper(_obj1); |
9265 | if (_arg1 == NULL) | |
db34b2d4 | 9266 | return NULL; |
db34b2d4 RD |
9267 | } |
9268 | { | |
9269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9270 | wxDirItemData_SetNewDirName(_arg0,*_arg1); |
db34b2d4 RD |
9271 | |
9272 | wxPyEndAllowThreads(__tstate); | |
9273 | if (PyErr_Occurred()) return NULL; | |
9274 | } Py_INCREF(Py_None); | |
9275 | _resultobj = Py_None; | |
9276 | { | |
9277 | if (_obj1) | |
9278 | delete _arg1; | |
9279 | } | |
9280 | return _resultobj; | |
9281 | } | |
9282 | ||
9283 | #define wxDirItemData_m_path_set(_swigobj,_swigval) (_swigobj->m_path = *(_swigval),_swigval) | |
9284 | static PyObject *_wrap_wxDirItemData_m_path_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9285 | PyObject * _resultobj; | |
9286 | wxString * _result; | |
9287 | wxDirItemData * _arg0; | |
9288 | wxString * _arg1; | |
9289 | PyObject * _argo0 = 0; | |
9290 | PyObject * _obj1 = 0; | |
9291 | char *_kwnames[] = { "self","m_path", NULL }; | |
9292 | ||
9293 | self = self; | |
9294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_path_set",_kwnames,&_argo0,&_obj1)) | |
9295 | return NULL; | |
9296 | if (_argo0) { | |
9297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_set. Expected _wxDirItemData_p."); | |
9300 | return NULL; | |
9301 | } | |
9302 | } | |
9303 | { | |
c8bc7bb8 RD |
9304 | _arg1 = wxString_in_helper(_obj1); |
9305 | if (_arg1 == NULL) | |
db34b2d4 | 9306 | return NULL; |
db34b2d4 RD |
9307 | } |
9308 | { | |
9309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9310 | _result = (wxString *)wxDirItemData_m_path_set(_arg0,_arg1); |
db34b2d4 RD |
9311 | |
9312 | wxPyEndAllowThreads(__tstate); | |
9313 | if (PyErr_Occurred()) return NULL; | |
9314 | }{ | |
c8bc7bb8 RD |
9315 | #if wxUSE_UNICODE |
9316 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9317 | #else | |
db34b2d4 | 9318 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9319 | #endif |
db34b2d4 RD |
9320 | } |
9321 | { | |
9322 | if (_obj1) | |
9323 | delete _arg1; | |
9324 | } | |
9325 | return _resultobj; | |
9326 | } | |
9327 | ||
9328 | #define wxDirItemData_m_path_get(_swigobj) (&_swigobj->m_path) | |
9329 | static PyObject *_wrap_wxDirItemData_m_path_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9330 | PyObject * _resultobj; | |
9331 | wxString * _result; | |
9332 | wxDirItemData * _arg0; | |
9333 | PyObject * _argo0 = 0; | |
9334 | char *_kwnames[] = { "self", NULL }; | |
9335 | ||
9336 | self = self; | |
9337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_path_get",_kwnames,&_argo0)) | |
9338 | return NULL; | |
9339 | if (_argo0) { | |
9340 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9341 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_get. Expected _wxDirItemData_p."); | |
9343 | return NULL; | |
9344 | } | |
9345 | } | |
9346 | { | |
9347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9348 | _result = (wxString *)wxDirItemData_m_path_get(_arg0); |
db34b2d4 RD |
9349 | |
9350 | wxPyEndAllowThreads(__tstate); | |
9351 | if (PyErr_Occurred()) return NULL; | |
9352 | }{ | |
c8bc7bb8 RD |
9353 | #if wxUSE_UNICODE |
9354 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9355 | #else | |
db34b2d4 | 9356 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9357 | #endif |
db34b2d4 RD |
9358 | } |
9359 | return _resultobj; | |
9360 | } | |
9361 | ||
9362 | #define wxDirItemData_m_name_set(_swigobj,_swigval) (_swigobj->m_name = *(_swigval),_swigval) | |
9363 | static PyObject *_wrap_wxDirItemData_m_name_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9364 | PyObject * _resultobj; | |
9365 | wxString * _result; | |
9366 | wxDirItemData * _arg0; | |
9367 | wxString * _arg1; | |
9368 | PyObject * _argo0 = 0; | |
9369 | PyObject * _obj1 = 0; | |
9370 | char *_kwnames[] = { "self","m_name", NULL }; | |
9371 | ||
9372 | self = self; | |
9373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_name_set",_kwnames,&_argo0,&_obj1)) | |
9374 | return NULL; | |
9375 | if (_argo0) { | |
9376 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9377 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9378 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_set. Expected _wxDirItemData_p."); | |
9379 | return NULL; | |
9380 | } | |
9381 | } | |
9382 | { | |
c8bc7bb8 RD |
9383 | _arg1 = wxString_in_helper(_obj1); |
9384 | if (_arg1 == NULL) | |
db34b2d4 | 9385 | return NULL; |
db34b2d4 RD |
9386 | } |
9387 | { | |
9388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9389 | _result = (wxString *)wxDirItemData_m_name_set(_arg0,_arg1); |
db34b2d4 RD |
9390 | |
9391 | wxPyEndAllowThreads(__tstate); | |
9392 | if (PyErr_Occurred()) return NULL; | |
9393 | }{ | |
c8bc7bb8 RD |
9394 | #if wxUSE_UNICODE |
9395 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9396 | #else | |
db34b2d4 | 9397 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9398 | #endif |
db34b2d4 RD |
9399 | } |
9400 | { | |
9401 | if (_obj1) | |
9402 | delete _arg1; | |
9403 | } | |
9404 | return _resultobj; | |
9405 | } | |
9406 | ||
9407 | #define wxDirItemData_m_name_get(_swigobj) (&_swigobj->m_name) | |
9408 | static PyObject *_wrap_wxDirItemData_m_name_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9409 | PyObject * _resultobj; | |
9410 | wxString * _result; | |
9411 | wxDirItemData * _arg0; | |
9412 | PyObject * _argo0 = 0; | |
9413 | char *_kwnames[] = { "self", NULL }; | |
9414 | ||
9415 | self = self; | |
9416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_name_get",_kwnames,&_argo0)) | |
9417 | return NULL; | |
9418 | if (_argo0) { | |
9419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_get. Expected _wxDirItemData_p."); | |
9422 | return NULL; | |
9423 | } | |
9424 | } | |
9425 | { | |
9426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9427 | _result = (wxString *)wxDirItemData_m_name_get(_arg0); |
db34b2d4 RD |
9428 | |
9429 | wxPyEndAllowThreads(__tstate); | |
9430 | if (PyErr_Occurred()) return NULL; | |
9431 | }{ | |
c8bc7bb8 RD |
9432 | #if wxUSE_UNICODE |
9433 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9434 | #else | |
db34b2d4 | 9435 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9436 | #endif |
db34b2d4 RD |
9437 | } |
9438 | return _resultobj; | |
9439 | } | |
9440 | ||
9441 | #define wxDirItemData_m_isHidden_set(_swigobj,_swigval) (_swigobj->m_isHidden = _swigval,_swigval) | |
9442 | static PyObject *_wrap_wxDirItemData_m_isHidden_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9443 | PyObject * _resultobj; | |
9444 | bool _result; | |
9445 | wxDirItemData * _arg0; | |
9446 | bool _arg1; | |
9447 | PyObject * _argo0 = 0; | |
9448 | int tempbool1; | |
9449 | char *_kwnames[] = { "self","m_isHidden", NULL }; | |
9450 | ||
9451 | self = self; | |
9452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isHidden_set",_kwnames,&_argo0,&tempbool1)) | |
9453 | return NULL; | |
9454 | if (_argo0) { | |
9455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_set. Expected _wxDirItemData_p."); | |
9458 | return NULL; | |
9459 | } | |
9460 | } | |
9461 | _arg1 = (bool ) tempbool1; | |
9462 | { | |
9463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9464 | _result = (bool )wxDirItemData_m_isHidden_set(_arg0,_arg1); |
db34b2d4 RD |
9465 | |
9466 | wxPyEndAllowThreads(__tstate); | |
9467 | if (PyErr_Occurred()) return NULL; | |
9468 | } _resultobj = Py_BuildValue("i",_result); | |
9469 | return _resultobj; | |
9470 | } | |
9471 | ||
9472 | #define wxDirItemData_m_isHidden_get(_swigobj) ((bool ) _swigobj->m_isHidden) | |
9473 | static PyObject *_wrap_wxDirItemData_m_isHidden_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9474 | PyObject * _resultobj; | |
9475 | bool _result; | |
9476 | wxDirItemData * _arg0; | |
9477 | PyObject * _argo0 = 0; | |
9478 | char *_kwnames[] = { "self", NULL }; | |
9479 | ||
9480 | self = self; | |
9481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isHidden_get",_kwnames,&_argo0)) | |
9482 | return NULL; | |
9483 | if (_argo0) { | |
9484 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9485 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9486 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_get. Expected _wxDirItemData_p."); | |
9487 | return NULL; | |
9488 | } | |
9489 | } | |
9490 | { | |
9491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9492 | _result = (bool )wxDirItemData_m_isHidden_get(_arg0); |
db34b2d4 RD |
9493 | |
9494 | wxPyEndAllowThreads(__tstate); | |
9495 | if (PyErr_Occurred()) return NULL; | |
9496 | } _resultobj = Py_BuildValue("i",_result); | |
9497 | return _resultobj; | |
9498 | } | |
9499 | ||
9500 | #define wxDirItemData_m_isExpanded_set(_swigobj,_swigval) (_swigobj->m_isExpanded = _swigval,_swigval) | |
9501 | static PyObject *_wrap_wxDirItemData_m_isExpanded_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9502 | PyObject * _resultobj; | |
9503 | bool _result; | |
9504 | wxDirItemData * _arg0; | |
9505 | bool _arg1; | |
9506 | PyObject * _argo0 = 0; | |
9507 | int tempbool1; | |
9508 | char *_kwnames[] = { "self","m_isExpanded", NULL }; | |
9509 | ||
9510 | self = self; | |
9511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isExpanded_set",_kwnames,&_argo0,&tempbool1)) | |
9512 | return NULL; | |
9513 | if (_argo0) { | |
9514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_set. Expected _wxDirItemData_p."); | |
9517 | return NULL; | |
9518 | } | |
9519 | } | |
9520 | _arg1 = (bool ) tempbool1; | |
9521 | { | |
9522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9523 | _result = (bool )wxDirItemData_m_isExpanded_set(_arg0,_arg1); |
db34b2d4 RD |
9524 | |
9525 | wxPyEndAllowThreads(__tstate); | |
9526 | if (PyErr_Occurred()) return NULL; | |
9527 | } _resultobj = Py_BuildValue("i",_result); | |
9528 | return _resultobj; | |
9529 | } | |
9530 | ||
9531 | #define wxDirItemData_m_isExpanded_get(_swigobj) ((bool ) _swigobj->m_isExpanded) | |
9532 | static PyObject *_wrap_wxDirItemData_m_isExpanded_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9533 | PyObject * _resultobj; | |
9534 | bool _result; | |
9535 | wxDirItemData * _arg0; | |
9536 | PyObject * _argo0 = 0; | |
9537 | char *_kwnames[] = { "self", NULL }; | |
9538 | ||
9539 | self = self; | |
9540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isExpanded_get",_kwnames,&_argo0)) | |
9541 | return NULL; | |
9542 | if (_argo0) { | |
9543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_get. Expected _wxDirItemData_p."); | |
9546 | return NULL; | |
9547 | } | |
9548 | } | |
9549 | { | |
9550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9551 | _result = (bool )wxDirItemData_m_isExpanded_get(_arg0); |
db34b2d4 RD |
9552 | |
9553 | wxPyEndAllowThreads(__tstate); | |
9554 | if (PyErr_Occurred()) return NULL; | |
9555 | } _resultobj = Py_BuildValue("i",_result); | |
9556 | return _resultobj; | |
9557 | } | |
9558 | ||
9559 | #define wxDirItemData_m_isDir_set(_swigobj,_swigval) (_swigobj->m_isDir = _swigval,_swigval) | |
9560 | static PyObject *_wrap_wxDirItemData_m_isDir_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9561 | PyObject * _resultobj; | |
9562 | bool _result; | |
9563 | wxDirItemData * _arg0; | |
9564 | bool _arg1; | |
9565 | PyObject * _argo0 = 0; | |
9566 | int tempbool1; | |
9567 | char *_kwnames[] = { "self","m_isDir", NULL }; | |
9568 | ||
9569 | self = self; | |
9570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isDir_set",_kwnames,&_argo0,&tempbool1)) | |
9571 | return NULL; | |
9572 | if (_argo0) { | |
9573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_set. Expected _wxDirItemData_p."); | |
9576 | return NULL; | |
9577 | } | |
9578 | } | |
9579 | _arg1 = (bool ) tempbool1; | |
9580 | { | |
9581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9582 | _result = (bool )wxDirItemData_m_isDir_set(_arg0,_arg1); |
db34b2d4 RD |
9583 | |
9584 | wxPyEndAllowThreads(__tstate); | |
9585 | if (PyErr_Occurred()) return NULL; | |
9586 | } _resultobj = Py_BuildValue("i",_result); | |
9587 | return _resultobj; | |
9588 | } | |
9589 | ||
9590 | #define wxDirItemData_m_isDir_get(_swigobj) ((bool ) _swigobj->m_isDir) | |
9591 | static PyObject *_wrap_wxDirItemData_m_isDir_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9592 | PyObject * _resultobj; | |
9593 | bool _result; | |
9594 | wxDirItemData * _arg0; | |
9595 | PyObject * _argo0 = 0; | |
9596 | char *_kwnames[] = { "self", NULL }; | |
9597 | ||
9598 | self = self; | |
9599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isDir_get",_kwnames,&_argo0)) | |
9600 | return NULL; | |
9601 | if (_argo0) { | |
9602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_get. Expected _wxDirItemData_p."); | |
9605 | return NULL; | |
9606 | } | |
9607 | } | |
9608 | { | |
9609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9610 | _result = (bool )wxDirItemData_m_isDir_get(_arg0); |
db34b2d4 RD |
9611 | |
9612 | wxPyEndAllowThreads(__tstate); | |
9613 | if (PyErr_Occurred()) return NULL; | |
9614 | } _resultobj = Py_BuildValue("i",_result); | |
9615 | return _resultobj; | |
9616 | } | |
9617 | ||
9618 | static void *SwigwxGenericDirCtrlTowxControl(void *ptr) { | |
9619 | wxGenericDirCtrl *src; | |
9620 | wxControl *dest; | |
9621 | src = (wxGenericDirCtrl *) ptr; | |
9622 | dest = (wxControl *) src; | |
9623 | return (void *) dest; | |
9624 | } | |
9625 | ||
9626 | static void *SwigwxGenericDirCtrlTowxWindow(void *ptr) { | |
9627 | wxGenericDirCtrl *src; | |
9628 | wxWindow *dest; | |
9629 | src = (wxGenericDirCtrl *) ptr; | |
9630 | dest = (wxWindow *) src; | |
9631 | return (void *) dest; | |
9632 | } | |
9633 | ||
9634 | static void *SwigwxGenericDirCtrlTowxEvtHandler(void *ptr) { | |
9635 | wxGenericDirCtrl *src; | |
9636 | wxEvtHandler *dest; | |
9637 | src = (wxGenericDirCtrl *) ptr; | |
9638 | dest = (wxEvtHandler *) src; | |
9639 | return (void *) dest; | |
9640 | } | |
9641 | ||
9642 | static void *SwigwxGenericDirCtrlTowxObject(void *ptr) { | |
9643 | wxGenericDirCtrl *src; | |
9644 | wxObject *dest; | |
9645 | src = (wxGenericDirCtrl *) ptr; | |
9646 | dest = (wxObject *) src; | |
9647 | return (void *) dest; | |
9648 | } | |
9649 | ||
9650 | #define new_wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
9651 | static PyObject *_wrap_new_wxGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9652 | PyObject * _resultobj; | |
9653 | wxGenericDirCtrl * _result; | |
9654 | wxWindow * _arg0; | |
9655 | wxWindowID _arg1 = (wxWindowID ) -1; | |
9a74fcaf | 9656 | wxString * _arg2 = (wxString *) &wxPyDirDialogDefaultFolderStr; |
db34b2d4 RD |
9657 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
9658 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
9659 | long _arg5 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
9a74fcaf | 9660 | wxString * _arg6 = (wxString *) &wxPyEmptyString; |
db34b2d4 | 9661 | int _arg7 = (int ) 0; |
9a74fcaf | 9662 | wxString * _arg8 = (wxString *) &wxPy_TreeCtrlNameStr; |
db34b2d4 | 9663 | PyObject * _argo0 = 0; |
9a74fcaf | 9664 | PyObject * _obj2 = 0; |
db34b2d4 RD |
9665 | wxPoint temp; |
9666 | PyObject * _obj3 = 0; | |
9667 | wxSize temp0; | |
9668 | PyObject * _obj4 = 0; | |
9a74fcaf RD |
9669 | PyObject * _obj6 = 0; |
9670 | PyObject * _obj8 = 0; | |
db34b2d4 RD |
9671 | char *_kwnames[] = { "parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; |
9672 | char _ptemp[128]; | |
9673 | ||
9674 | self = self; | |
9a74fcaf | 9675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOOlOiO:new_wxGenericDirCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6,&_arg7,&_obj8)) |
db34b2d4 RD |
9676 | return NULL; |
9677 | if (_argo0) { | |
9678 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9679 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGenericDirCtrl. Expected _wxWindow_p."); | |
9681 | return NULL; | |
9682 | } | |
9683 | } | |
9a74fcaf RD |
9684 | if (_obj2) |
9685 | { | |
9686 | _arg2 = wxString_in_helper(_obj2); | |
9687 | if (_arg2 == NULL) | |
9688 | return NULL; | |
9689 | } | |
db34b2d4 RD |
9690 | if (_obj3) |
9691 | { | |
9692 | _arg3 = &temp; | |
9693 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9694 | return NULL; | |
9695 | } | |
9696 | if (_obj4) | |
9697 | { | |
9698 | _arg4 = &temp0; | |
9699 | if (! wxSize_helper(_obj4, &_arg4)) | |
9700 | return NULL; | |
9a74fcaf RD |
9701 | } |
9702 | if (_obj6) | |
9703 | { | |
9704 | _arg6 = wxString_in_helper(_obj6); | |
9705 | if (_arg6 == NULL) | |
9706 | return NULL; | |
9707 | } | |
9708 | if (_obj8) | |
9709 | { | |
9710 | _arg8 = wxString_in_helper(_obj8); | |
9711 | if (_arg8 == NULL) | |
9712 | return NULL; | |
db34b2d4 RD |
9713 | } |
9714 | { | |
9715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9a74fcaf | 9716 | _result = (wxGenericDirCtrl *)new_wxGenericDirCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7,*_arg8); |
db34b2d4 RD |
9717 | |
9718 | wxPyEndAllowThreads(__tstate); | |
9719 | if (PyErr_Occurred()) return NULL; | |
9720 | } if (_result) { | |
9721 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
9722 | _resultobj = Py_BuildValue("s",_ptemp); | |
9723 | } else { | |
9724 | Py_INCREF(Py_None); | |
9725 | _resultobj = Py_None; | |
9726 | } | |
9a74fcaf RD |
9727 | { |
9728 | if (_obj2) | |
9729 | delete _arg2; | |
9730 | } | |
9731 | { | |
9732 | if (_obj6) | |
9733 | delete _arg6; | |
9734 | } | |
9735 | { | |
9736 | if (_obj8) | |
9737 | delete _arg8; | |
9738 | } | |
db34b2d4 RD |
9739 | return _resultobj; |
9740 | } | |
9741 | ||
9742 | #define new_wxPreGenericDirCtrl() (new wxGenericDirCtrl()) | |
9743 | static PyObject *_wrap_new_wxPreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9744 | PyObject * _resultobj; | |
9745 | wxGenericDirCtrl * _result; | |
9746 | char *_kwnames[] = { NULL }; | |
9747 | char _ptemp[128]; | |
9748 | ||
9749 | self = self; | |
9750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGenericDirCtrl",_kwnames)) | |
9751 | return NULL; | |
9752 | { | |
9753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9754 | _result = (wxGenericDirCtrl *)new_wxPreGenericDirCtrl(); |
db34b2d4 RD |
9755 | |
9756 | wxPyEndAllowThreads(__tstate); | |
9757 | if (PyErr_Occurred()) return NULL; | |
9758 | } if (_result) { | |
9759 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
9760 | _resultobj = Py_BuildValue("s",_ptemp); | |
9761 | } else { | |
9762 | Py_INCREF(Py_None); | |
9763 | _resultobj = Py_None; | |
9764 | } | |
9765 | return _resultobj; | |
9766 | } | |
9767 | ||
9768 | #define wxGenericDirCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
9769 | static PyObject *_wrap_wxGenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9770 | PyObject * _resultobj; | |
9771 | bool _result; | |
9772 | wxGenericDirCtrl * _arg0; | |
9773 | wxWindow * _arg1; | |
9774 | wxWindowID _arg2 = (wxWindowID ) -1; | |
9a74fcaf | 9775 | wxString * _arg3 = (wxString *) &wxPyDirDialogDefaultFolderStr; |
db34b2d4 RD |
9776 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
9777 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
9778 | long _arg6 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
9a74fcaf | 9779 | wxString * _arg7 = (wxString *) &wxPyEmptyString; |
db34b2d4 | 9780 | int _arg8 = (int ) 0; |
9a74fcaf | 9781 | wxString * _arg9 = (wxString *) &wxPy_TreeCtrlNameStr; |
db34b2d4 RD |
9782 | PyObject * _argo0 = 0; |
9783 | PyObject * _argo1 = 0; | |
9a74fcaf | 9784 | PyObject * _obj3 = 0; |
db34b2d4 RD |
9785 | wxPoint temp; |
9786 | PyObject * _obj4 = 0; | |
9787 | wxSize temp0; | |
9788 | PyObject * _obj5 = 0; | |
9a74fcaf RD |
9789 | PyObject * _obj7 = 0; |
9790 | PyObject * _obj9 = 0; | |
db34b2d4 RD |
9791 | char *_kwnames[] = { "self","parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; |
9792 | ||
9793 | self = self; | |
9a74fcaf | 9794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOOlOiO:wxGenericDirCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_obj7,&_arg8,&_obj9)) |
db34b2d4 RD |
9795 | return NULL; |
9796 | if (_argo0) { | |
9797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
9799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
9800 | return NULL; | |
9801 | } | |
9802 | } | |
9803 | if (_argo1) { | |
9804 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9805 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGenericDirCtrl_Create. Expected _wxWindow_p."); | |
9807 | return NULL; | |
9808 | } | |
9809 | } | |
9a74fcaf RD |
9810 | if (_obj3) |
9811 | { | |
9812 | _arg3 = wxString_in_helper(_obj3); | |
9813 | if (_arg3 == NULL) | |
9814 | return NULL; | |
9815 | } | |
db34b2d4 RD |
9816 | if (_obj4) |
9817 | { | |
9818 | _arg4 = &temp; | |
9819 | if (! wxPoint_helper(_obj4, &_arg4)) | |
9820 | return NULL; | |
9821 | } | |
9822 | if (_obj5) | |
9823 | { | |
9824 | _arg5 = &temp0; | |
9825 | if (! wxSize_helper(_obj5, &_arg5)) | |
9826 | return NULL; | |
9a74fcaf RD |
9827 | } |
9828 | if (_obj7) | |
9829 | { | |
9830 | _arg7 = wxString_in_helper(_obj7); | |
9831 | if (_arg7 == NULL) | |
9832 | return NULL; | |
9833 | } | |
9834 | if (_obj9) | |
9835 | { | |
9836 | _arg9 = wxString_in_helper(_obj9); | |
9837 | if (_arg9 == NULL) | |
9838 | return NULL; | |
db34b2d4 RD |
9839 | } |
9840 | { | |
9841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9a74fcaf | 9842 | _result = (bool )wxGenericDirCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8,*_arg9); |
db34b2d4 RD |
9843 | |
9844 | wxPyEndAllowThreads(__tstate); | |
9845 | if (PyErr_Occurred()) return NULL; | |
9846 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
9847 | { |
9848 | if (_obj3) | |
9849 | delete _arg3; | |
9850 | } | |
9851 | { | |
9852 | if (_obj7) | |
9853 | delete _arg7; | |
9854 | } | |
9855 | { | |
9856 | if (_obj9) | |
9857 | delete _arg9; | |
9858 | } | |
db34b2d4 RD |
9859 | return _resultobj; |
9860 | } | |
9861 | ||
9862 | #define wxGenericDirCtrl_ExpandPath(_swigobj,_swigarg0) (_swigobj->ExpandPath(_swigarg0)) | |
9863 | static PyObject *_wrap_wxGenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9864 | PyObject * _resultobj; | |
9865 | bool _result; | |
9866 | wxGenericDirCtrl * _arg0; | |
9867 | wxString * _arg1; | |
9868 | PyObject * _argo0 = 0; | |
9869 | PyObject * _obj1 = 0; | |
9870 | char *_kwnames[] = { "self","path", NULL }; | |
9871 | ||
9872 | self = self; | |
9873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_ExpandPath",_kwnames,&_argo0,&_obj1)) | |
9874 | return NULL; | |
9875 | if (_argo0) { | |
9876 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9877 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
9878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ExpandPath. Expected _wxGenericDirCtrl_p."); | |
9879 | return NULL; | |
9880 | } | |
9881 | } | |
9882 | { | |
c8bc7bb8 RD |
9883 | _arg1 = wxString_in_helper(_obj1); |
9884 | if (_arg1 == NULL) | |
db34b2d4 | 9885 | return NULL; |
db34b2d4 RD |
9886 | } |
9887 | { | |
9888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9889 | _result = (bool )wxGenericDirCtrl_ExpandPath(_arg0,*_arg1); |
db34b2d4 RD |
9890 | |
9891 | wxPyEndAllowThreads(__tstate); | |
9892 | if (PyErr_Occurred()) return NULL; | |
9893 | } _resultobj = Py_BuildValue("i",_result); | |
9894 | { | |
9895 | if (_obj1) | |
9896 | delete _arg1; | |
9897 | } | |
9898 | return _resultobj; | |
9899 | } | |
9900 | ||
9901 | #define wxGenericDirCtrl_GetDefaultPath(_swigobj) (_swigobj->GetDefaultPath()) | |
9902 | static PyObject *_wrap_wxGenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9903 | PyObject * _resultobj; | |
9904 | wxString * _result; | |
9905 | wxGenericDirCtrl * _arg0; | |
9906 | PyObject * _argo0 = 0; | |
9907 | char *_kwnames[] = { "self", NULL }; | |
9908 | ||
9909 | self = self; | |
9910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetDefaultPath",_kwnames,&_argo0)) | |
9911 | return NULL; | |
9912 | if (_argo0) { | |
9913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
9915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
9916 | return NULL; | |
9917 | } | |
9918 | } | |
9919 | { | |
9920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9921 | _result = new wxString (wxGenericDirCtrl_GetDefaultPath(_arg0)); |
db34b2d4 RD |
9922 | |
9923 | wxPyEndAllowThreads(__tstate); | |
9924 | if (PyErr_Occurred()) return NULL; | |
9925 | }{ | |
c8bc7bb8 RD |
9926 | #if wxUSE_UNICODE |
9927 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9928 | #else | |
db34b2d4 | 9929 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9930 | #endif |
db34b2d4 RD |
9931 | } |
9932 | { | |
9933 | delete _result; | |
9934 | } | |
9935 | return _resultobj; | |
9936 | } | |
9937 | ||
9938 | #define wxGenericDirCtrl_SetDefaultPath(_swigobj,_swigarg0) (_swigobj->SetDefaultPath(_swigarg0)) | |
9939 | static PyObject *_wrap_wxGenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9940 | PyObject * _resultobj; | |
9941 | wxGenericDirCtrl * _arg0; | |
9942 | wxString * _arg1; | |
9943 | PyObject * _argo0 = 0; | |
9944 | PyObject * _obj1 = 0; | |
9945 | char *_kwnames[] = { "self","path", NULL }; | |
9946 | ||
9947 | self = self; | |
9948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetDefaultPath",_kwnames,&_argo0,&_obj1)) | |
9949 | return NULL; | |
9950 | if (_argo0) { | |
9951 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9952 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
9953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
9954 | return NULL; | |
9955 | } | |
9956 | } | |
9957 | { | |
c8bc7bb8 RD |
9958 | _arg1 = wxString_in_helper(_obj1); |
9959 | if (_arg1 == NULL) | |
db34b2d4 | 9960 | return NULL; |
db34b2d4 RD |
9961 | } |
9962 | { | |
9963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9964 | wxGenericDirCtrl_SetDefaultPath(_arg0,*_arg1); |
db34b2d4 RD |
9965 | |
9966 | wxPyEndAllowThreads(__tstate); | |
9967 | if (PyErr_Occurred()) return NULL; | |
9968 | } Py_INCREF(Py_None); | |
9969 | _resultobj = Py_None; | |
9970 | { | |
9971 | if (_obj1) | |
9972 | delete _arg1; | |
9973 | } | |
9974 | return _resultobj; | |
9975 | } | |
9976 | ||
9977 | #define wxGenericDirCtrl_GetPath(_swigobj) (_swigobj->GetPath()) | |
9978 | static PyObject *_wrap_wxGenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9979 | PyObject * _resultobj; | |
9980 | wxString * _result; | |
9981 | wxGenericDirCtrl * _arg0; | |
9982 | PyObject * _argo0 = 0; | |
9983 | char *_kwnames[] = { "self", NULL }; | |
9984 | ||
9985 | self = self; | |
9986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetPath",_kwnames,&_argo0)) | |
9987 | return NULL; | |
9988 | if (_argo0) { | |
9989 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9990 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
9991 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetPath. Expected _wxGenericDirCtrl_p."); | |
9992 | return NULL; | |
9993 | } | |
9994 | } | |
9995 | { | |
9996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9997 | _result = new wxString (wxGenericDirCtrl_GetPath(_arg0)); |
db34b2d4 RD |
9998 | |
9999 | wxPyEndAllowThreads(__tstate); | |
10000 | if (PyErr_Occurred()) return NULL; | |
10001 | }{ | |
c8bc7bb8 RD |
10002 | #if wxUSE_UNICODE |
10003 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10004 | #else | |
db34b2d4 | 10005 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10006 | #endif |
db34b2d4 RD |
10007 | } |
10008 | { | |
10009 | delete _result; | |
10010 | } | |
10011 | return _resultobj; | |
10012 | } | |
10013 | ||
10014 | #define wxGenericDirCtrl_GetFilePath(_swigobj) (_swigobj->GetFilePath()) | |
10015 | static PyObject *_wrap_wxGenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10016 | PyObject * _resultobj; | |
10017 | wxString * _result; | |
10018 | wxGenericDirCtrl * _arg0; | |
10019 | PyObject * _argo0 = 0; | |
10020 | char *_kwnames[] = { "self", NULL }; | |
10021 | ||
10022 | self = self; | |
10023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilePath",_kwnames,&_argo0)) | |
10024 | return NULL; | |
10025 | if (_argo0) { | |
10026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilePath. Expected _wxGenericDirCtrl_p."); | |
10029 | return NULL; | |
10030 | } | |
10031 | } | |
10032 | { | |
10033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10034 | _result = new wxString (wxGenericDirCtrl_GetFilePath(_arg0)); |
db34b2d4 RD |
10035 | |
10036 | wxPyEndAllowThreads(__tstate); | |
10037 | if (PyErr_Occurred()) return NULL; | |
10038 | }{ | |
c8bc7bb8 RD |
10039 | #if wxUSE_UNICODE |
10040 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10041 | #else | |
db34b2d4 | 10042 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10043 | #endif |
db34b2d4 RD |
10044 | } |
10045 | { | |
10046 | delete _result; | |
10047 | } | |
10048 | return _resultobj; | |
10049 | } | |
10050 | ||
10051 | #define wxGenericDirCtrl_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0)) | |
10052 | static PyObject *_wrap_wxGenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10053 | PyObject * _resultobj; | |
10054 | wxGenericDirCtrl * _arg0; | |
10055 | wxString * _arg1; | |
10056 | PyObject * _argo0 = 0; | |
10057 | PyObject * _obj1 = 0; | |
10058 | char *_kwnames[] = { "self","path", NULL }; | |
10059 | ||
10060 | self = self; | |
10061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetPath",_kwnames,&_argo0,&_obj1)) | |
10062 | return NULL; | |
10063 | if (_argo0) { | |
10064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetPath. Expected _wxGenericDirCtrl_p."); | |
10067 | return NULL; | |
10068 | } | |
10069 | } | |
10070 | { | |
c8bc7bb8 RD |
10071 | _arg1 = wxString_in_helper(_obj1); |
10072 | if (_arg1 == NULL) | |
db34b2d4 | 10073 | return NULL; |
db34b2d4 RD |
10074 | } |
10075 | { | |
10076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10077 | wxGenericDirCtrl_SetPath(_arg0,*_arg1); |
db34b2d4 RD |
10078 | |
10079 | wxPyEndAllowThreads(__tstate); | |
10080 | if (PyErr_Occurred()) return NULL; | |
10081 | } Py_INCREF(Py_None); | |
10082 | _resultobj = Py_None; | |
10083 | { | |
10084 | if (_obj1) | |
10085 | delete _arg1; | |
10086 | } | |
10087 | return _resultobj; | |
10088 | } | |
10089 | ||
10090 | #define wxGenericDirCtrl_ShowHidden(_swigobj,_swigarg0) (_swigobj->ShowHidden(_swigarg0)) | |
10091 | static PyObject *_wrap_wxGenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10092 | PyObject * _resultobj; | |
10093 | wxGenericDirCtrl * _arg0; | |
10094 | bool _arg1; | |
10095 | PyObject * _argo0 = 0; | |
10096 | int tempbool1; | |
10097 | char *_kwnames[] = { "self","show", NULL }; | |
10098 | ||
10099 | self = self; | |
10100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_ShowHidden",_kwnames,&_argo0,&tempbool1)) | |
10101 | return NULL; | |
10102 | if (_argo0) { | |
10103 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10104 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ShowHidden. Expected _wxGenericDirCtrl_p."); | |
10106 | return NULL; | |
10107 | } | |
10108 | } | |
10109 | _arg1 = (bool ) tempbool1; | |
10110 | { | |
10111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10112 | wxGenericDirCtrl_ShowHidden(_arg0,_arg1); |
db34b2d4 RD |
10113 | |
10114 | wxPyEndAllowThreads(__tstate); | |
10115 | if (PyErr_Occurred()) return NULL; | |
10116 | } Py_INCREF(Py_None); | |
10117 | _resultobj = Py_None; | |
10118 | return _resultobj; | |
10119 | } | |
10120 | ||
10121 | #define wxGenericDirCtrl_GetShowHidden(_swigobj) (_swigobj->GetShowHidden()) | |
10122 | static PyObject *_wrap_wxGenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10123 | PyObject * _resultobj; | |
10124 | bool _result; | |
10125 | wxGenericDirCtrl * _arg0; | |
10126 | PyObject * _argo0 = 0; | |
10127 | char *_kwnames[] = { "self", NULL }; | |
10128 | ||
10129 | self = self; | |
10130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetShowHidden",_kwnames,&_argo0)) | |
10131 | return NULL; | |
10132 | if (_argo0) { | |
10133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetShowHidden. Expected _wxGenericDirCtrl_p."); | |
10136 | return NULL; | |
10137 | } | |
10138 | } | |
10139 | { | |
10140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10141 | _result = (bool )wxGenericDirCtrl_GetShowHidden(_arg0); |
db34b2d4 RD |
10142 | |
10143 | wxPyEndAllowThreads(__tstate); | |
10144 | if (PyErr_Occurred()) return NULL; | |
10145 | } _resultobj = Py_BuildValue("i",_result); | |
10146 | return _resultobj; | |
10147 | } | |
10148 | ||
10149 | #define wxGenericDirCtrl_GetFilter(_swigobj) (_swigobj->GetFilter()) | |
10150 | static PyObject *_wrap_wxGenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10151 | PyObject * _resultobj; | |
10152 | wxString * _result; | |
10153 | wxGenericDirCtrl * _arg0; | |
10154 | PyObject * _argo0 = 0; | |
10155 | char *_kwnames[] = { "self", NULL }; | |
10156 | ||
10157 | self = self; | |
10158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilter",_kwnames,&_argo0)) | |
10159 | return NULL; | |
10160 | if (_argo0) { | |
10161 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10162 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilter. Expected _wxGenericDirCtrl_p."); | |
10164 | return NULL; | |
10165 | } | |
10166 | } | |
10167 | { | |
10168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10169 | _result = new wxString (wxGenericDirCtrl_GetFilter(_arg0)); |
db34b2d4 RD |
10170 | |
10171 | wxPyEndAllowThreads(__tstate); | |
10172 | if (PyErr_Occurred()) return NULL; | |
10173 | }{ | |
c8bc7bb8 RD |
10174 | #if wxUSE_UNICODE |
10175 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10176 | #else | |
db34b2d4 | 10177 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10178 | #endif |
db34b2d4 RD |
10179 | } |
10180 | { | |
10181 | delete _result; | |
10182 | } | |
10183 | return _resultobj; | |
10184 | } | |
10185 | ||
10186 | #define wxGenericDirCtrl_SetFilter(_swigobj,_swigarg0) (_swigobj->SetFilter(_swigarg0)) | |
10187 | static PyObject *_wrap_wxGenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10188 | PyObject * _resultobj; | |
10189 | wxGenericDirCtrl * _arg0; | |
10190 | wxString * _arg1; | |
10191 | PyObject * _argo0 = 0; | |
10192 | PyObject * _obj1 = 0; | |
10193 | char *_kwnames[] = { "self","filter", NULL }; | |
10194 | ||
10195 | self = self; | |
10196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetFilter",_kwnames,&_argo0,&_obj1)) | |
10197 | return NULL; | |
10198 | if (_argo0) { | |
10199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilter. Expected _wxGenericDirCtrl_p."); | |
10202 | return NULL; | |
10203 | } | |
10204 | } | |
10205 | { | |
c8bc7bb8 RD |
10206 | _arg1 = wxString_in_helper(_obj1); |
10207 | if (_arg1 == NULL) | |
db34b2d4 | 10208 | return NULL; |
db34b2d4 RD |
10209 | } |
10210 | { | |
10211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10212 | wxGenericDirCtrl_SetFilter(_arg0,*_arg1); |
db34b2d4 RD |
10213 | |
10214 | wxPyEndAllowThreads(__tstate); | |
10215 | if (PyErr_Occurred()) return NULL; | |
10216 | } Py_INCREF(Py_None); | |
10217 | _resultobj = Py_None; | |
10218 | { | |
10219 | if (_obj1) | |
10220 | delete _arg1; | |
10221 | } | |
10222 | return _resultobj; | |
10223 | } | |
10224 | ||
10225 | #define wxGenericDirCtrl_GetFilterIndex(_swigobj) (_swigobj->GetFilterIndex()) | |
10226 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10227 | PyObject * _resultobj; | |
10228 | int _result; | |
10229 | wxGenericDirCtrl * _arg0; | |
10230 | PyObject * _argo0 = 0; | |
10231 | char *_kwnames[] = { "self", NULL }; | |
10232 | ||
10233 | self = self; | |
10234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterIndex",_kwnames,&_argo0)) | |
10235 | return NULL; | |
10236 | if (_argo0) { | |
10237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10240 | return NULL; | |
10241 | } | |
10242 | } | |
10243 | { | |
10244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10245 | _result = (int )wxGenericDirCtrl_GetFilterIndex(_arg0); |
db34b2d4 RD |
10246 | |
10247 | wxPyEndAllowThreads(__tstate); | |
10248 | if (PyErr_Occurred()) return NULL; | |
10249 | } _resultobj = Py_BuildValue("i",_result); | |
10250 | return _resultobj; | |
10251 | } | |
10252 | ||
10253 | #define wxGenericDirCtrl_SetFilterIndex(_swigobj,_swigarg0) (_swigobj->SetFilterIndex(_swigarg0)) | |
10254 | static PyObject *_wrap_wxGenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10255 | PyObject * _resultobj; | |
10256 | wxGenericDirCtrl * _arg0; | |
10257 | int _arg1; | |
10258 | PyObject * _argo0 = 0; | |
10259 | char *_kwnames[] = { "self","n", NULL }; | |
10260 | ||
10261 | self = self; | |
10262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_SetFilterIndex",_kwnames,&_argo0,&_arg1)) | |
10263 | return NULL; | |
10264 | if (_argo0) { | |
10265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10268 | return NULL; | |
10269 | } | |
10270 | } | |
10271 | { | |
10272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10273 | wxGenericDirCtrl_SetFilterIndex(_arg0,_arg1); |
db34b2d4 RD |
10274 | |
10275 | wxPyEndAllowThreads(__tstate); | |
10276 | if (PyErr_Occurred()) return NULL; | |
10277 | } Py_INCREF(Py_None); | |
10278 | _resultobj = Py_None; | |
10279 | return _resultobj; | |
10280 | } | |
10281 | ||
10282 | #define wxGenericDirCtrl_GetRootId(_swigobj) (_swigobj->GetRootId()) | |
10283 | static PyObject *_wrap_wxGenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10284 | PyObject * _resultobj; | |
10285 | wxTreeItemId * _result; | |
10286 | wxGenericDirCtrl * _arg0; | |
10287 | PyObject * _argo0 = 0; | |
10288 | char *_kwnames[] = { "self", NULL }; | |
10289 | char _ptemp[128]; | |
10290 | ||
10291 | self = self; | |
10292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetRootId",_kwnames,&_argo0)) | |
10293 | return NULL; | |
10294 | if (_argo0) { | |
10295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetRootId. Expected _wxGenericDirCtrl_p."); | |
10298 | return NULL; | |
10299 | } | |
10300 | } | |
10301 | { | |
10302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10303 | _result = new wxTreeItemId (wxGenericDirCtrl_GetRootId(_arg0)); |
db34b2d4 RD |
10304 | |
10305 | wxPyEndAllowThreads(__tstate); | |
10306 | if (PyErr_Occurred()) return NULL; | |
10307 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
10308 | _resultobj = Py_BuildValue("s",_ptemp); | |
10309 | return _resultobj; | |
10310 | } | |
10311 | ||
10312 | #define wxGenericDirCtrl_GetTreeCtrl(_swigobj) (_swigobj->GetTreeCtrl()) | |
10313 | static PyObject *_wrap_wxGenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10314 | PyObject * _resultobj; | |
10315 | wxTreeCtrl * _result; | |
10316 | wxGenericDirCtrl * _arg0; | |
10317 | PyObject * _argo0 = 0; | |
10318 | char *_kwnames[] = { "self", NULL }; | |
db34b2d4 RD |
10319 | |
10320 | self = self; | |
10321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetTreeCtrl",_kwnames,&_argo0)) | |
10322 | return NULL; | |
10323 | if (_argo0) { | |
10324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetTreeCtrl. Expected _wxGenericDirCtrl_p."); | |
10327 | return NULL; | |
10328 | } | |
10329 | } | |
10330 | { | |
10331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10332 | _result = (wxTreeCtrl *)wxGenericDirCtrl_GetTreeCtrl(_arg0); |
db34b2d4 RD |
10333 | |
10334 | wxPyEndAllowThreads(__tstate); | |
10335 | if (PyErr_Occurred()) return NULL; | |
eb88b742 | 10336 | }{ _resultobj = wxPyMake_wxObject(_result); } |
db34b2d4 RD |
10337 | return _resultobj; |
10338 | } | |
10339 | ||
10340 | #define wxGenericDirCtrl_GetFilterListCtrl(_swigobj) (_swigobj->GetFilterListCtrl()) | |
10341 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10342 | PyObject * _resultobj; | |
10343 | wxDirFilterListCtrl * _result; | |
10344 | wxGenericDirCtrl * _arg0; | |
10345 | PyObject * _argo0 = 0; | |
10346 | char *_kwnames[] = { "self", NULL }; | |
10347 | char _ptemp[128]; | |
10348 | ||
10349 | self = self; | |
10350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterListCtrl",_kwnames,&_argo0)) | |
10351 | return NULL; | |
10352 | if (_argo0) { | |
10353 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10354 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10355 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10356 | return NULL; | |
10357 | } | |
10358 | } | |
10359 | { | |
10360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10361 | _result = (wxDirFilterListCtrl *)wxGenericDirCtrl_GetFilterListCtrl(_arg0); |
db34b2d4 RD |
10362 | |
10363 | wxPyEndAllowThreads(__tstate); | |
10364 | if (PyErr_Occurred()) return NULL; | |
10365 | } if (_result) { | |
10366 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10367 | _resultobj = Py_BuildValue("s",_ptemp); | |
10368 | } else { | |
10369 | Py_INCREF(Py_None); | |
10370 | _resultobj = Py_None; | |
10371 | } | |
10372 | return _resultobj; | |
10373 | } | |
10374 | ||
10375 | static void *SwigwxDirFilterListCtrlTowxChoice(void *ptr) { | |
10376 | wxDirFilterListCtrl *src; | |
10377 | wxChoice *dest; | |
10378 | src = (wxDirFilterListCtrl *) ptr; | |
10379 | dest = (wxChoice *) src; | |
10380 | return (void *) dest; | |
10381 | } | |
10382 | ||
10383 | static void *SwigwxDirFilterListCtrlTowxControlWithItems(void *ptr) { | |
10384 | wxDirFilterListCtrl *src; | |
10385 | wxControlWithItems *dest; | |
10386 | src = (wxDirFilterListCtrl *) ptr; | |
10387 | dest = (wxControlWithItems *) src; | |
10388 | return (void *) dest; | |
10389 | } | |
10390 | ||
10391 | static void *SwigwxDirFilterListCtrlTowxControl(void *ptr) { | |
10392 | wxDirFilterListCtrl *src; | |
10393 | wxControl *dest; | |
10394 | src = (wxDirFilterListCtrl *) ptr; | |
10395 | dest = (wxControl *) src; | |
10396 | return (void *) dest; | |
10397 | } | |
10398 | ||
10399 | static void *SwigwxDirFilterListCtrlTowxWindow(void *ptr) { | |
10400 | wxDirFilterListCtrl *src; | |
10401 | wxWindow *dest; | |
10402 | src = (wxDirFilterListCtrl *) ptr; | |
10403 | dest = (wxWindow *) src; | |
10404 | return (void *) dest; | |
10405 | } | |
10406 | ||
10407 | static void *SwigwxDirFilterListCtrlTowxEvtHandler(void *ptr) { | |
10408 | wxDirFilterListCtrl *src; | |
10409 | wxEvtHandler *dest; | |
10410 | src = (wxDirFilterListCtrl *) ptr; | |
10411 | dest = (wxEvtHandler *) src; | |
10412 | return (void *) dest; | |
10413 | } | |
10414 | ||
10415 | static void *SwigwxDirFilterListCtrlTowxObject(void *ptr) { | |
10416 | wxDirFilterListCtrl *src; | |
10417 | wxObject *dest; | |
10418 | src = (wxDirFilterListCtrl *) ptr; | |
10419 | dest = (wxObject *) src; | |
10420 | return (void *) dest; | |
10421 | } | |
10422 | ||
10423 | #define new_wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10424 | static PyObject *_wrap_new_wxDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10425 | PyObject * _resultobj; | |
10426 | wxDirFilterListCtrl * _result; | |
10427 | wxGenericDirCtrl * _arg0; | |
10428 | wxWindowID _arg1 = (wxWindowID ) -1; | |
10429 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
10430 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
10431 | long _arg4 = (long ) 0; | |
10432 | PyObject * _argo0 = 0; | |
10433 | wxPoint temp; | |
10434 | PyObject * _obj2 = 0; | |
10435 | wxSize temp0; | |
10436 | PyObject * _obj3 = 0; | |
10437 | char *_kwnames[] = { "parent","id","pos","size","style", NULL }; | |
10438 | char _ptemp[128]; | |
10439 | ||
10440 | self = self; | |
10441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxDirFilterListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
10442 | return NULL; | |
10443 | if (_argo0) { | |
10444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDirFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10447 | return NULL; | |
10448 | } | |
10449 | } | |
10450 | if (_obj2) | |
10451 | { | |
10452 | _arg2 = &temp; | |
10453 | if (! wxPoint_helper(_obj2, &_arg2)) | |
10454 | return NULL; | |
10455 | } | |
10456 | if (_obj3) | |
10457 | { | |
10458 | _arg3 = &temp0; | |
10459 | if (! wxSize_helper(_obj3, &_arg3)) | |
10460 | return NULL; | |
10461 | } | |
10462 | { | |
10463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10464 | _result = (wxDirFilterListCtrl *)new_wxDirFilterListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
db34b2d4 RD |
10465 | |
10466 | wxPyEndAllowThreads(__tstate); | |
10467 | if (PyErr_Occurred()) return NULL; | |
10468 | } if (_result) { | |
10469 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10470 | _resultobj = Py_BuildValue("s",_ptemp); | |
10471 | } else { | |
10472 | Py_INCREF(Py_None); | |
10473 | _resultobj = Py_None; | |
10474 | } | |
10475 | return _resultobj; | |
10476 | } | |
10477 | ||
10478 | #define new_wxPreDirFilterListCtrl() (new wxDirFilterListCtrl()) | |
10479 | static PyObject *_wrap_new_wxPreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10480 | PyObject * _resultobj; | |
10481 | wxDirFilterListCtrl * _result; | |
10482 | char *_kwnames[] = { NULL }; | |
10483 | char _ptemp[128]; | |
10484 | ||
10485 | self = self; | |
10486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreDirFilterListCtrl",_kwnames)) | |
10487 | return NULL; | |
10488 | { | |
10489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10490 | _result = (wxDirFilterListCtrl *)new_wxPreDirFilterListCtrl(); |
db34b2d4 RD |
10491 | |
10492 | wxPyEndAllowThreads(__tstate); | |
10493 | if (PyErr_Occurred()) return NULL; | |
10494 | } if (_result) { | |
10495 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10496 | _resultobj = Py_BuildValue("s",_ptemp); | |
10497 | } else { | |
10498 | Py_INCREF(Py_None); | |
10499 | _resultobj = Py_None; | |
10500 | } | |
10501 | return _resultobj; | |
10502 | } | |
10503 | ||
10504 | #define wxDirFilterListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10505 | static PyObject *_wrap_wxDirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10506 | PyObject * _resultobj; | |
10507 | bool _result; | |
10508 | wxDirFilterListCtrl * _arg0; | |
10509 | wxGenericDirCtrl * _arg1; | |
10510 | wxWindowID _arg2 = (wxWindowID ) -1; | |
10511 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
10512 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
10513 | long _arg5 = (long ) 0; | |
10514 | PyObject * _argo0 = 0; | |
10515 | PyObject * _argo1 = 0; | |
10516 | wxPoint temp; | |
10517 | PyObject * _obj3 = 0; | |
10518 | wxSize temp0; | |
10519 | PyObject * _obj4 = 0; | |
10520 | char *_kwnames[] = { "self","parent","id","pos","size","style", NULL }; | |
10521 | ||
10522 | self = self; | |
10523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOl:wxDirFilterListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5)) | |
10524 | return NULL; | |
10525 | if (_argo0) { | |
10526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
10528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_Create. Expected _wxDirFilterListCtrl_p."); | |
10529 | return NULL; | |
10530 | } | |
10531 | } | |
10532 | if (_argo1) { | |
10533 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10534 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxGenericDirCtrl_p")) { | |
10535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDirFilterListCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
10536 | return NULL; | |
10537 | } | |
10538 | } | |
10539 | if (_obj3) | |
10540 | { | |
10541 | _arg3 = &temp; | |
10542 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10543 | return NULL; | |
10544 | } | |
10545 | if (_obj4) | |
10546 | { | |
10547 | _arg4 = &temp0; | |
10548 | if (! wxSize_helper(_obj4, &_arg4)) | |
10549 | return NULL; | |
10550 | } | |
10551 | { | |
10552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10553 | _result = (bool )wxDirFilterListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5); |
db34b2d4 RD |
10554 | |
10555 | wxPyEndAllowThreads(__tstate); | |
10556 | if (PyErr_Occurred()) return NULL; | |
10557 | } _resultobj = Py_BuildValue("i",_result); | |
10558 | return _resultobj; | |
10559 | } | |
10560 | ||
10561 | #define wxDirFilterListCtrl_FillFilterList(_swigobj,_swigarg0,_swigarg1) (_swigobj->FillFilterList(_swigarg0,_swigarg1)) | |
10562 | static PyObject *_wrap_wxDirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10563 | PyObject * _resultobj; | |
10564 | wxDirFilterListCtrl * _arg0; | |
10565 | wxString * _arg1; | |
10566 | int _arg2; | |
10567 | PyObject * _argo0 = 0; | |
10568 | PyObject * _obj1 = 0; | |
10569 | char *_kwnames[] = { "self","filter","defaultFilter", NULL }; | |
10570 | ||
10571 | self = self; | |
10572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxDirFilterListCtrl_FillFilterList",_kwnames,&_argo0,&_obj1,&_arg2)) | |
10573 | return NULL; | |
10574 | if (_argo0) { | |
10575 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10576 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
10577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_FillFilterList. Expected _wxDirFilterListCtrl_p."); | |
10578 | return NULL; | |
10579 | } | |
10580 | } | |
10581 | { | |
c8bc7bb8 RD |
10582 | _arg1 = wxString_in_helper(_obj1); |
10583 | if (_arg1 == NULL) | |
db34b2d4 | 10584 | return NULL; |
db34b2d4 RD |
10585 | } |
10586 | { | |
10587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10588 | wxDirFilterListCtrl_FillFilterList(_arg0,*_arg1,_arg2); |
db34b2d4 RD |
10589 | |
10590 | wxPyEndAllowThreads(__tstate); | |
10591 | if (PyErr_Occurred()) return NULL; | |
10592 | } Py_INCREF(Py_None); | |
10593 | _resultobj = Py_None; | |
10594 | { | |
10595 | if (_obj1) | |
10596 | delete _arg1; | |
10597 | } | |
10598 | return _resultobj; | |
10599 | } | |
10600 | ||
8ab979d7 | 10601 | static PyMethodDef controls2cMethods[] = { |
db34b2d4 RD |
10602 | { "wxDirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_wxDirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, |
10603 | { "wxDirFilterListCtrl_Create", (PyCFunction) _wrap_wxDirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10604 | { "new_wxPreDirFilterListCtrl", (PyCFunction) _wrap_new_wxPreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10605 | { "new_wxDirFilterListCtrl", (PyCFunction) _wrap_new_wxDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10606 | { "wxGenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10607 | { "wxGenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10608 | { "wxGenericDirCtrl_GetRootId", (PyCFunction) _wrap_wxGenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
10609 | { "wxGenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
10610 | { "wxGenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
10611 | { "wxGenericDirCtrl_SetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
10612 | { "wxGenericDirCtrl_GetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
10613 | { "wxGenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
10614 | { "wxGenericDirCtrl_ShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
10615 | { "wxGenericDirCtrl_SetPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
10616 | { "wxGenericDirCtrl_GetFilePath", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
10617 | { "wxGenericDirCtrl_GetPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
10618 | { "wxGenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
10619 | { "wxGenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
10620 | { "wxGenericDirCtrl_ExpandPath", (PyCFunction) _wrap_wxGenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
10621 | { "wxGenericDirCtrl_Create", (PyCFunction) _wrap_wxGenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10622 | { "new_wxPreGenericDirCtrl", (PyCFunction) _wrap_new_wxPreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10623 | { "new_wxGenericDirCtrl", (PyCFunction) _wrap_new_wxGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10624 | { "wxDirItemData_m_isDir_get", (PyCFunction) _wrap_wxDirItemData_m_isDir_get, METH_VARARGS | METH_KEYWORDS }, | |
10625 | { "wxDirItemData_m_isDir_set", (PyCFunction) _wrap_wxDirItemData_m_isDir_set, METH_VARARGS | METH_KEYWORDS }, | |
10626 | { "wxDirItemData_m_isExpanded_get", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_get, METH_VARARGS | METH_KEYWORDS }, | |
10627 | { "wxDirItemData_m_isExpanded_set", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_set, METH_VARARGS | METH_KEYWORDS }, | |
10628 | { "wxDirItemData_m_isHidden_get", (PyCFunction) _wrap_wxDirItemData_m_isHidden_get, METH_VARARGS | METH_KEYWORDS }, | |
10629 | { "wxDirItemData_m_isHidden_set", (PyCFunction) _wrap_wxDirItemData_m_isHidden_set, METH_VARARGS | METH_KEYWORDS }, | |
10630 | { "wxDirItemData_m_name_get", (PyCFunction) _wrap_wxDirItemData_m_name_get, METH_VARARGS | METH_KEYWORDS }, | |
10631 | { "wxDirItemData_m_name_set", (PyCFunction) _wrap_wxDirItemData_m_name_set, METH_VARARGS | METH_KEYWORDS }, | |
10632 | { "wxDirItemData_m_path_get", (PyCFunction) _wrap_wxDirItemData_m_path_get, METH_VARARGS | METH_KEYWORDS }, | |
10633 | { "wxDirItemData_m_path_set", (PyCFunction) _wrap_wxDirItemData_m_path_set, METH_VARARGS | METH_KEYWORDS }, | |
10634 | { "wxDirItemData_SetNewDirName", (PyCFunction) _wrap_wxDirItemData_SetNewDirName, METH_VARARGS | METH_KEYWORDS }, | |
10635 | { "new_wxDirItemData", (PyCFunction) _wrap_new_wxDirItemData, METH_VARARGS | METH_KEYWORDS }, | |
74bcba0e | 10636 | { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 RD |
10637 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, |
10638 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10639 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10640 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
10641 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
10642 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10643 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10644 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, |
10645 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
10646 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
10647 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
10648 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
10649 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
10650 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
10651 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
10652 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
10653 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
10654 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
10655 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
10656 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
10657 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10658 | { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10659 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, |
10660 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
10661 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10662 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10663 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, |
10664 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
10665 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
10666 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
10667 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
10668 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
10669 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
10670 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10671 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 10672 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10673 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
10674 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
10675 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
10676 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
10677 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
10678 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
10679 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, | |
10680 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
10681 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10682 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10683 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
10684 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
10685 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10686 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10687 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
10688 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10689 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
10690 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, |
10691 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
10692 | { "wxTreeCtrl_AssignStateImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, |
10693 | { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10694 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, |
10695 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10696 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
10697 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10698 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
10699 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
10700 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
0220cbc1 | 10701 | { "wxTreeCtrl__setCallbackInfo", (PyCFunction) _wrap_wxTreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
10702 | { "wxTreeCtrl_Create", (PyCFunction) _wrap_wxTreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
10703 | { "new_wxPreTreeCtrl", (PyCFunction) _wrap_new_wxPreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10704 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, |
10705 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10706 | { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
65191ae8 | 10707 | { "wxTreeEvent_GetKeyEvent", (PyCFunction) _wrap_wxTreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10708 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, |
10709 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
10710 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 | 10711 | { "new_wxTreeEvent", (PyCFunction) _wrap_new_wxTreeEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10712 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, |
10713 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
10714 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
10715 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10716 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10717 | { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10718 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, |
10719 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
10720 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
10721 | { "wxTreeItemAttr_GetFont", (PyCFunction) _wrap_wxTreeItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, |
10722 | { "wxTreeItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10723 | { "wxTreeItemAttr_GetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10724 | { "wxTreeItemAttr_HasFont", (PyCFunction) _wrap_wxTreeItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
10725 | { "wxTreeItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10726 | { "wxTreeItemAttr_HasTextColour", (PyCFunction) _wrap_wxTreeItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10727 | { "wxTreeItemAttr_SetFont", (PyCFunction) _wrap_wxTreeItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10728 | { "wxTreeItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10729 | { "wxTreeItemAttr_SetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10730 | { "new_wxTreeItemAttr", (PyCFunction) _wrap_new_wxTreeItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
059a841c RD |
10731 | { "wxListView_ClearColumnImage", (PyCFunction) _wrap_wxListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, |
10732 | { "wxListView_SetColumnImage", (PyCFunction) _wrap_wxListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
10733 | { "wxListView_IsSelected", (PyCFunction) _wrap_wxListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
10734 | { "wxListView_GetFirstSelected", (PyCFunction) _wrap_wxListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
10735 | { "wxListView_GetNextSelected", (PyCFunction) _wrap_wxListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
10736 | { "wxListView_GetFocusedItem", (PyCFunction) _wrap_wxListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
10737 | { "wxListView_Focus", (PyCFunction) _wrap_wxListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
10738 | { "wxListView_Select", (PyCFunction) _wrap_wxListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
10739 | { "wxListView_Create", (PyCFunction) _wrap_wxListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
10740 | { "new_wxPreListView", (PyCFunction) _wrap_new_wxPreListView, METH_VARARGS | METH_KEYWORDS }, | |
10741 | { "new_wxListView", (PyCFunction) _wrap_new_wxListView, METH_VARARGS | METH_KEYWORDS }, | |
dcd38683 | 10742 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10743 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, |
cd096152 RD |
10744 | { "wxListCtrl_SetItemCount", (PyCFunction) _wrap_wxListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, |
10745 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
10746 | { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10747 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, |
10748 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
10749 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
10750 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10751 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10752 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, |
10753 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
10754 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
10755 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10756 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, |
10757 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
10758 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
10759 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
10760 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
10761 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
cd096152 RD |
10762 | { "wxListCtrl_RefreshItems", (PyCFunction) _wrap_wxListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, |
10763 | { "wxListCtrl_RefreshItem", (PyCFunction) _wrap_wxListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
10764 | { "wxListCtrl_IsVirtual", (PyCFunction) _wrap_wxListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
10765 | { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
10766 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10767 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10768 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
10769 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
10770 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
10771 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
10772 | { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10773 | { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10774 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10775 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
10776 | { "wxListCtrl_GetColumnCount", (PyCFunction) _wrap_wxListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
10777 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10778 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
10779 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
10780 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
10781 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10782 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10783 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10784 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10785 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10786 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
10787 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
10788 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
10789 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
10790 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
10791 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
10792 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
10793 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
10794 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10795 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10796 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10797 | { "wxListCtrl_SetForegroundColour", (PyCFunction) _wrap_wxListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
0220cbc1 | 10798 | { "wxListCtrl__setCallbackInfo", (PyCFunction) _wrap_wxListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
10799 | { "wxListCtrl_Create", (PyCFunction) _wrap_wxListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
10800 | { "new_wxPreListCtrl", (PyCFunction) _wrap_new_wxPreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10801 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, |
059a841c RD |
10802 | { "wxListEvent_GetCacheTo", (PyCFunction) _wrap_wxListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, |
10803 | { "wxListEvent_GetCacheFrom", (PyCFunction) _wrap_wxListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10804 | { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, |
10805 | { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
10806 | { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10807 | { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
10808 | { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10809 | { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10810 | { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10811 | { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
10812 | { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, |
10813 | { "wxListEvent_GetCode", (PyCFunction) _wrap_wxListEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10814 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, |
10815 | { "wxListEvent_m_item_set", (PyCFunction) _wrap_wxListEvent_m_item_set, METH_VARARGS | METH_KEYWORDS }, | |
10816 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
10817 | { "wxListEvent_m_pointDrag_set", (PyCFunction) _wrap_wxListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10818 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, |
10819 | { "wxListEvent_m_col_set", (PyCFunction) _wrap_wxListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10820 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
10821 | { "wxListEvent_m_itemIndex_set", (PyCFunction) _wrap_wxListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
6e8a778a RD |
10822 | { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
10823 | { "wxListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10824 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, |
10825 | { "wxListEvent_m_code_set", (PyCFunction) _wrap_wxListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
059a841c | 10826 | { "new_wxListEvent", (PyCFunction) _wrap_new_wxListEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10827 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, |
10828 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
10829 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
10830 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
10831 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
10832 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
10833 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
10834 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
10835 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
10836 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
10837 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
10838 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
10839 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
10840 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
10841 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
10842 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
10843 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
10844 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
10845 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
10846 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10847 | { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, |
10848 | { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10849 | { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10850 | { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
10851 | { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
10852 | { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
10853 | { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10854 | { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10855 | { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
10856 | { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10857 | { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
10858 | { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10859 | { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
10860 | { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
10861 | { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10862 | { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10863 | { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10864 | { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
10865 | { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10866 | { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
10867 | { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
10868 | { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
10869 | { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
10870 | { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
10871 | { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10872 | { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10873 | { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
10874 | { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
10875 | { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
10876 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
10877 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
10878 | { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10879 | { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10880 | { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10881 | { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
10882 | { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10883 | { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10884 | { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10885 | { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10886 | { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10887 | { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
10888 | { NULL, NULL } |
10889 | }; | |
1d99702e RD |
10890 | #ifdef __cplusplus |
10891 | } | |
10892 | #endif | |
10893 | /* | |
10894 | * This table is used by the pointer type-checker | |
10895 | */ | |
10896 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 10897 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, |
1d99702e | 10898 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, |
1d99702e | 10899 | { "_signed_long","_long",0}, |
b1462dfa | 10900 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
10901 | { "_wxPrintQuality","_int",0}, |
10902 | { "_wxPrintQuality","_signed_int",0}, | |
10903 | { "_wxPrintQuality","_unsigned_int",0}, | |
10904 | { "_wxPrintQuality","_wxWindowID",0}, | |
10905 | { "_wxPrintQuality","_uint",0}, | |
10906 | { "_wxPrintQuality","_EBool",0}, | |
10907 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 10908 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 10909 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, |
c368d904 | 10910 | { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
1d99702e | 10911 | { "_byte","_unsigned_char",0}, |
db34b2d4 | 10912 | { "_wxChoice","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxChoice}, |
1d99702e RD |
10913 | { "_long","_unsigned_long",0}, |
10914 | { "_long","_signed_long",0}, | |
b1462dfa | 10915 | { "_size_t","_wxCoord",0}, |
1d99702e | 10916 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 10917 | { "_size_t","_time_t",0}, |
1d99702e RD |
10918 | { "_size_t","_unsigned_int",0}, |
10919 | { "_size_t","_int",0}, | |
10920 | { "_size_t","_wxWindowID",0}, | |
10921 | { "_size_t","_uint",0}, | |
b1462dfa | 10922 | { "_uint","_wxCoord",0}, |
1d99702e | 10923 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 10924 | { "_uint","_time_t",0}, |
1d99702e RD |
10925 | { "_uint","_size_t",0}, |
10926 | { "_uint","_unsigned_int",0}, | |
10927 | { "_uint","_int",0}, | |
10928 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 10929 | { "_wxChar","_char",0}, |
1d99702e | 10930 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, |
1d99702e | 10931 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, |
f6bcfd97 | 10932 | { "_char","_wxChar",0}, |
059a841c | 10933 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 10934 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
10935 | { "_EBool","_wxPrintQuality",0}, |
10936 | { "_EBool","_signed_int",0}, | |
10937 | { "_EBool","_int",0}, | |
10938 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 10939 | { "_unsigned_long","_long",0}, |
059a841c | 10940 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 10941 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
10942 | { "_signed_int","_wxPrintQuality",0}, |
10943 | { "_signed_int","_EBool",0}, | |
10944 | { "_signed_int","_wxWindowID",0}, | |
10945 | { "_signed_int","_int",0}, | |
1d99702e RD |
10946 | { "_WXTYPE","_short",0}, |
10947 | { "_WXTYPE","_signed_short",0}, | |
10948 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
10949 | { "_unsigned_short","_WXTYPE",0}, |
10950 | { "_unsigned_short","_short",0}, | |
db34b2d4 RD |
10951 | { "_wxObject","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxObject}, |
10952 | { "_wxObject","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxObject}, | |
10953 | { "_wxObject","_wxDirItemData",SwigwxDirItemDataTowxObject}, | |
9df61a29 | 10954 | { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, |
9df61a29 | 10955 | { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject}, |
9df61a29 | 10956 | { "_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, |
059a841c | 10957 | { "_wxObject","_wxListView",SwigwxListViewTowxObject}, |
cd096152 | 10958 | { "_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, |
9df61a29 | 10959 | { "_wxObject","_wxListEvent",SwigwxListEventTowxObject}, |
9df61a29 | 10960 | { "_wxObject","_wxListItem",SwigwxListItemTowxObject}, |
1d99702e RD |
10961 | { "_signed_short","_WXTYPE",0}, |
10962 | { "_signed_short","_short",0}, | |
1d99702e | 10963 | { "_unsigned_char","_byte",0}, |
db34b2d4 RD |
10964 | { "_wxControl","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControl}, |
10965 | { "_wxControl","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxControl}, | |
f6bcfd97 | 10966 | { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
059a841c | 10967 | { "_wxControl","_wxListView",SwigwxListViewTowxControl}, |
cd096152 | 10968 | { "_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, |
b1462dfa | 10969 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 10970 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 10971 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
10972 | { "_unsigned_int","_size_t",0}, |
10973 | { "_unsigned_int","_uint",0}, | |
10974 | { "_unsigned_int","_wxWindowID",0}, | |
10975 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
10976 | { "_short","_WXTYPE",0}, |
10977 | { "_short","_unsigned_short",0}, | |
10978 | { "_short","_signed_short",0}, | |
db34b2d4 | 10979 | { "_wxControlWithItems","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControlWithItems}, |
b1462dfa | 10980 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 10981 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 10982 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
10983 | { "_wxWindowID","_size_t",0}, |
10984 | { "_wxWindowID","_EBool",0}, | |
10985 | { "_wxWindowID","_uint",0}, | |
10986 | { "_wxWindowID","_int",0}, | |
10987 | { "_wxWindowID","_signed_int",0}, | |
10988 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 10989 | { "_int","_wxCoord",0}, |
1d99702e | 10990 | { "_int","_wxPrintQuality",0}, |
c368d904 | 10991 | { "_int","_time_t",0}, |
1d99702e RD |
10992 | { "_int","_size_t",0}, |
10993 | { "_int","_EBool",0}, | |
10994 | { "_int","_uint",0}, | |
10995 | { "_int","_wxWindowID",0}, | |
10996 | { "_int","_unsigned_int",0}, | |
10997 | { "_int","_signed_int",0}, | |
c368d904 RD |
10998 | { "_time_t","_wxCoord",0}, |
10999 | { "_time_t","_wxPrintQuality",0}, | |
11000 | { "_time_t","_unsigned_int",0}, | |
11001 | { "_time_t","_int",0}, | |
11002 | { "_time_t","_wxWindowID",0}, | |
11003 | { "_time_t","_uint",0}, | |
11004 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
11005 | { "_wxCoord","_int",0}, |
11006 | { "_wxCoord","_signed_int",0}, | |
11007 | { "_wxCoord","_unsigned_int",0}, | |
11008 | { "_wxCoord","_wxWindowID",0}, | |
11009 | { "_wxCoord","_uint",0}, | |
11010 | { "_wxCoord","_EBool",0}, | |
11011 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11012 | { "_wxCoord","_time_t",0}, |
b1462dfa | 11013 | { "_wxCoord","_wxPrintQuality",0}, |
059a841c | 11014 | { "_wxPyListCtrl","_wxListView",SwigwxListViewTowxPyListCtrl}, |
db34b2d4 RD |
11015 | { "_wxEvtHandler","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxEvtHandler}, |
11016 | { "_wxEvtHandler","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxEvtHandler}, | |
f6bcfd97 | 11017 | { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
059a841c | 11018 | { "_wxEvtHandler","_wxListView",SwigwxListViewTowxEvtHandler}, |
cd096152 | 11019 | { "_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, |
db34b2d4 RD |
11020 | { "_wxWindow","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxWindow}, |
11021 | { "_wxWindow","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxWindow}, | |
f6bcfd97 | 11022 | { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
059a841c | 11023 | { "_wxWindow","_wxListView",SwigwxListViewTowxWindow}, |
cd096152 | 11024 | { "_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, |
1d99702e RD |
11025 | {0,0,0}}; |
11026 | ||
8ab979d7 RD |
11027 | static PyObject *SWIG_globals; |
11028 | #ifdef __cplusplus | |
11029 | extern "C" | |
11030 | #endif | |
1d99702e | 11031 | SWIGEXPORT(void) initcontrols2c() { |
8ab979d7 RD |
11032 | PyObject *m, *d; |
11033 | SWIG_globals = SWIG_newvarlink(); | |
11034 | m = Py_InitModule("controls2c", controls2cMethods); | |
11035 | d = PyModule_GetDict(m); | |
cd096152 RD |
11036 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
11037 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
11038 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
11039 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
11040 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
11041 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
11042 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO)); | |
11043 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO)); | |
11044 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
11045 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
11046 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN)); | |
11047 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
11048 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK)); | |
11049 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
11050 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
11051 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
11052 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_CACHE_HINT)); | |
059a841c RD |
11053 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); |
11054 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
11055 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
11056 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
262e41eb | 11057 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_FOCUSED)); |
cd096152 RD |
11058 | PyDict_SetItemString(d,"wxLC_VRULES", PyInt_FromLong((long) wxLC_VRULES)); |
11059 | PyDict_SetItemString(d,"wxLC_HRULES", PyInt_FromLong((long) wxLC_HRULES)); | |
11060 | PyDict_SetItemString(d,"wxLC_ICON", PyInt_FromLong((long) wxLC_ICON)); | |
11061 | PyDict_SetItemString(d,"wxLC_SMALL_ICON", PyInt_FromLong((long) wxLC_SMALL_ICON)); | |
11062 | PyDict_SetItemString(d,"wxLC_LIST", PyInt_FromLong((long) wxLC_LIST)); | |
11063 | PyDict_SetItemString(d,"wxLC_REPORT", PyInt_FromLong((long) wxLC_REPORT)); | |
11064 | PyDict_SetItemString(d,"wxLC_ALIGN_TOP", PyInt_FromLong((long) wxLC_ALIGN_TOP)); | |
11065 | PyDict_SetItemString(d,"wxLC_ALIGN_LEFT", PyInt_FromLong((long) wxLC_ALIGN_LEFT)); | |
11066 | PyDict_SetItemString(d,"wxLC_AUTOARRANGE", PyInt_FromLong((long) wxLC_AUTOARRANGE)); | |
11067 | PyDict_SetItemString(d,"wxLC_VIRTUAL", PyInt_FromLong((long) wxLC_VIRTUAL)); | |
11068 | PyDict_SetItemString(d,"wxLC_EDIT_LABELS", PyInt_FromLong((long) wxLC_EDIT_LABELS)); | |
11069 | PyDict_SetItemString(d,"wxLC_NO_HEADER", PyInt_FromLong((long) wxLC_NO_HEADER)); | |
11070 | PyDict_SetItemString(d,"wxLC_NO_SORT_HEADER", PyInt_FromLong((long) wxLC_NO_SORT_HEADER)); | |
11071 | PyDict_SetItemString(d,"wxLC_SINGLE_SEL", PyInt_FromLong((long) wxLC_SINGLE_SEL)); | |
11072 | PyDict_SetItemString(d,"wxLC_SORT_ASCENDING", PyInt_FromLong((long) wxLC_SORT_ASCENDING)); | |
11073 | PyDict_SetItemString(d,"wxLC_SORT_DESCENDING", PyInt_FromLong((long) wxLC_SORT_DESCENDING)); | |
11074 | PyDict_SetItemString(d,"wxLC_MASK_TYPE", PyInt_FromLong((long) wxLC_MASK_TYPE)); | |
11075 | PyDict_SetItemString(d,"wxLC_MASK_ALIGN", PyInt_FromLong((long) wxLC_MASK_ALIGN)); | |
11076 | PyDict_SetItemString(d,"wxLC_MASK_SORT", PyInt_FromLong((long) wxLC_MASK_SORT)); | |
059a841c | 11077 | PyDict_SetItemString(d,"wxLC_USER_TEXT", PyInt_FromLong((long) wxLC_USER_TEXT)); |
cd096152 | 11078 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); |
af309447 RD |
11079 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); |
11080 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
11081 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
cd096152 | 11082 | PyDict_SetItemString(d,"wxLIST_SET_ITEM", PyInt_FromLong((long) wxLIST_SET_ITEM)); |
af309447 RD |
11083 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); |
11084 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
11085 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); | |
11086 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
11087 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
11088 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
11089 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
11090 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
11091 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
11092 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
11093 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
11094 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
11095 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
11096 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
11097 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
11098 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
11099 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
11100 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
11101 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
11102 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
11103 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
11104 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
11105 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
11106 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
11107 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
11108 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
af309447 RD |
11109 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); |
11110 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
11111 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
11112 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
11113 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
11114 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
11115 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
11116 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
11117 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
f6bcfd97 BP |
11118 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); |
11119 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
11120 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
11121 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
aa2a5b86 RD |
11122 | PyDict_SetItemString(d,"wxTR_NO_BUTTONS", PyInt_FromLong((long) wxTR_NO_BUTTONS)); |
11123 | PyDict_SetItemString(d,"wxTR_HAS_BUTTONS", PyInt_FromLong((long) wxTR_HAS_BUTTONS)); | |
11124 | PyDict_SetItemString(d,"wxTR_TWIST_BUTTONS", PyInt_FromLong((long) wxTR_TWIST_BUTTONS)); | |
11125 | PyDict_SetItemString(d,"wxTR_NO_LINES", PyInt_FromLong((long) wxTR_NO_LINES)); | |
11126 | PyDict_SetItemString(d,"wxTR_MAC_BUTTONS", PyInt_FromLong((long) wxTR_MAC_BUTTONS)); | |
1893b029 | 11127 | PyDict_SetItemString(d,"wxTR_AQUA_BUTTONS", PyInt_FromLong((long) wxTR_AQUA_BUTTONS)); |
aa2a5b86 RD |
11128 | PyDict_SetItemString(d,"wxTR_SINGLE", PyInt_FromLong((long) wxTR_SINGLE)); |
11129 | PyDict_SetItemString(d,"wxTR_MULTIPLE", PyInt_FromLong((long) wxTR_MULTIPLE)); | |
11130 | PyDict_SetItemString(d,"wxTR_EXTENDED", PyInt_FromLong((long) wxTR_EXTENDED)); | |
1893b029 | 11131 | PyDict_SetItemString(d,"wxTR_FULL_ROW_HIGHLIGHT", PyInt_FromLong((long) wxTR_FULL_ROW_HIGHLIGHT)); |
aa2a5b86 RD |
11132 | PyDict_SetItemString(d,"wxTR_EDIT_LABELS", PyInt_FromLong((long) wxTR_EDIT_LABELS)); |
11133 | PyDict_SetItemString(d,"wxTR_LINES_AT_ROOT", PyInt_FromLong((long) wxTR_LINES_AT_ROOT)); | |
11134 | PyDict_SetItemString(d,"wxTR_HIDE_ROOT", PyInt_FromLong((long) wxTR_HIDE_ROOT)); | |
11135 | PyDict_SetItemString(d,"wxTR_ROW_LINES", PyInt_FromLong((long) wxTR_ROW_LINES)); | |
11136 | PyDict_SetItemString(d,"wxTR_HAS_VARIABLE_ROW_HEIGHT", PyInt_FromLong((long) wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
11137 | PyDict_SetItemString(d,"wxTR_DEFAULT_STYLE", PyInt_FromLong((long) wxTR_DEFAULT_STYLE)); | |
694759cf RD |
11138 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); |
11139 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
11140 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
11141 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
11142 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
164b735b RD |
11143 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); |
11144 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
11145 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
11146 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
11147 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
11148 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
11149 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
11150 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
11151 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
11152 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
11153 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
11154 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
11155 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
11156 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
9c4165ad RD |
11157 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
11158 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
11159 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
11160 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
11161 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
11162 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO)); | |
11163 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO)); | |
11164 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
11165 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
11166 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
11167 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
11168 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
11169 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
11170 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN)); | |
11171 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
11172 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
11173 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
7a446686 | 11174 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG)); |
db34b2d4 RD |
11175 | PyDict_SetItemString(d,"wxDIRCTRL_DIR_ONLY", PyInt_FromLong((long) wxDIRCTRL_DIR_ONLY)); |
11176 | PyDict_SetItemString(d,"wxDIRCTRL_SELECT_FIRST", PyInt_FromLong((long) wxDIRCTRL_SELECT_FIRST)); | |
11177 | PyDict_SetItemString(d,"wxDIRCTRL_SHOW_FILTERS", PyInt_FromLong((long) wxDIRCTRL_SHOW_FILTERS)); | |
11178 | PyDict_SetItemString(d,"wxDIRCTRL_3D_INTERNAL", PyInt_FromLong((long) wxDIRCTRL_3D_INTERNAL)); | |
301dfd67 | 11179 | PyDict_SetItemString(d,"wxDIRCTRL_EDIT_LABELS", PyInt_FromLong((long) wxDIRCTRL_EDIT_LABELS)); |
87439dd8 RD |
11180 | PyDict_SetItemString(d,"wxID_TREECTRL", PyInt_FromLong((long) wxID_TREECTRL)); |
11181 | PyDict_SetItemString(d,"wxID_FILTERLISTCTRL", PyInt_FromLong((long) wxID_FILTERLISTCTRL)); | |
9df61a29 | 11182 | |
059a841c | 11183 | // Map renamed classes back to their common name for OOR |
9df61a29 RD |
11184 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); |
11185 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
059a841c | 11186 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); |
1d99702e RD |
11187 | { |
11188 | int i; | |
11189 | for (i = 0; _swig_mapping[i].n1; i++) | |
11190 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11191 | } | |
8ab979d7 | 11192 | } |