]>
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 | |
b67a9327 RD |
22 | #include "Python.h" |
23 | ||
8ab979d7 RD |
24 | #include <string.h> |
25 | #include <stdlib.h> | |
26 | /* Definitions for Windows/Unix exporting */ | |
27 | #if defined(__WIN32__) | |
28 | # if defined(_MSC_VER) | |
1d99702e | 29 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
30 | # else |
31 | # if defined(__BORLANDC__) | |
3bcd5e1c | 32 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 33 | # else |
3bcd5e1c | 34 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
35 | # endif |
36 | # endif | |
37 | #else | |
3bcd5e1c | 38 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
39 | #endif |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
8ab979d7 RD |
44 | extern void SWIG_MakePtr(char *, void *, char *); |
45 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
46 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 47 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
48 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
49 | extern PyObject *SWIG_newvarlink(void); | |
50 | #ifdef __cplusplus | |
51 | } | |
52 | #endif | |
8ab979d7 RD |
53 | #define SWIG_init initcontrols2c |
54 | ||
55 | #define SWIG_name "controls2c" | |
56 | ||
57 | #include "helpers.h" | |
2f90df85 RD |
58 | #ifdef __WXMSW__ |
59 | #include <windows.h> | |
60 | #endif | |
8ab979d7 RD |
61 | #include <wx/listctrl.h> |
62 | #include <wx/treectrl.h> | |
9df61a29 | 63 | #include <wx/imaglist.h> |
db34b2d4 | 64 | #include <wx/dirctrl.h> |
8ab979d7 | 65 | |
1fded56b RD |
66 | #include "pytree.h" |
67 | ||
8ab979d7 RD |
68 | |
69 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
70 | PyObject* o2; | |
71 | PyObject* o3; | |
72 | ||
3bcd5e1c | 73 | if (!target) { |
8ab979d7 | 74 | target = o; |
3bcd5e1c | 75 | } else if (target == Py_None) { |
8ab979d7 RD |
76 | Py_DECREF(Py_None); |
77 | target = o; | |
3bcd5e1c | 78 | } else { |
8ab979d7 RD |
79 | if (!PyTuple_Check(target)) { |
80 | o2 = target; | |
81 | target = PyTuple_New(1); | |
82 | PyTuple_SetItem(target, 0, o2); | |
83 | } | |
3bcd5e1c RD |
84 | o3 = PyTuple_New(1); |
85 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
86 | |
87 | o2 = target; | |
3bcd5e1c RD |
88 | target = PySequence_Concat(o2, o3); |
89 | Py_DECREF(o2); | |
8ab979d7 RD |
90 | Py_DECREF(o3); |
91 | } | |
92 | return target; | |
93 | } | |
9a74fcaf RD |
94 | |
95 | // Put some wx default wxChar* values into wxStrings. | |
96 | const wxChar* wxListCtrlNameStr = _T("wxListCtrl"); | |
97 | DECLARE_DEF_STRING(ListCtrlNameStr); | |
98 | ||
99 | const wxChar* wx_TreeCtrlNameStr = _T("wxTreeCtrl"); | |
100 | DECLARE_DEF_STRING(_TreeCtrlNameStr); | |
101 | DECLARE_DEF_STRING(DirDialogDefaultFolderStr); | |
102 | ||
103 | static const wxString wxPyEmptyString(wxT("")); | |
8f8b0a8d RD |
104 | |
105 | static const long longzero = 0; | |
aa2a5b86 | 106 | // C++ Version of a Python aware class |
cd096152 RD |
107 | class wxPyListCtrl : public wxListCtrl { |
108 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
109 | public: | |
aa2a5b86 | 110 | wxPyListCtrl() : wxListCtrl() {} |
cd096152 RD |
111 | wxPyListCtrl(wxWindow* parent, wxWindowID id, |
112 | const wxPoint& pos, | |
113 | const wxSize& size, | |
114 | long style, | |
115 | const wxValidator& validator, | |
9a74fcaf | 116 | const wxString& name) : |
cd096152 RD |
117 | wxListCtrl(parent, id, pos, size, style, validator, name) {} |
118 | ||
aa2a5b86 RD |
119 | bool Create(wxWindow* parent, wxWindowID id, |
120 | const wxPoint& pos, | |
121 | const wxSize& size, | |
122 | long style, | |
123 | const wxValidator& validator, | |
9a74fcaf | 124 | const wxString& name) { |
aa2a5b86 RD |
125 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); |
126 | } | |
127 | ||
cd096152 RD |
128 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); |
129 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
130 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
131 | ||
132 | PYPRIVATE; | |
133 | }; | |
134 | ||
135 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
136 | ||
137 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
138 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
139 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
059a841c | 140 | // Python aware sorting function for wxPyListCtrl |
f6bcfd97 | 141 | int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { |
dcd38683 RD |
142 | int retval = 0; |
143 | PyObject* func = (PyObject*)funcPtr; | |
474c48f9 | 144 | wxPyBeginBlockThreads(); |
dcd38683 RD |
145 | |
146 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
147 | PyObject* result = PyEval_CallObject(func, args); | |
148 | Py_DECREF(args); | |
149 | if (result) { | |
150 | retval = PyInt_AsLong(result); | |
151 | Py_DECREF(result); | |
152 | } | |
153 | ||
474c48f9 | 154 | wxPyEndBlockThreads(); |
dcd38683 RD |
155 | return retval; |
156 | } | |
157 | ||
aa2a5b86 | 158 | // C++ version of Python aware wxTreeCtrl |
f6bcfd97 | 159 | class wxPyTreeCtrl : public wxTreeCtrl { |
9df61a29 | 160 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); |
f6bcfd97 | 161 | public: |
aa2a5b86 | 162 | wxPyTreeCtrl() : wxTreeCtrl() {} |
f6bcfd97 BP |
163 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, |
164 | const wxPoint& pos, | |
165 | const wxSize& size, | |
166 | long style, | |
167 | const wxValidator& validator, | |
9a74fcaf | 168 | const wxString& name) : |
f6bcfd97 BP |
169 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} |
170 | ||
aa2a5b86 RD |
171 | bool Create(wxWindow *parent, wxWindowID id, |
172 | const wxPoint& pos, | |
173 | const wxSize& size, | |
174 | long style, | |
175 | const wxValidator& validator, | |
9a74fcaf | 176 | const wxString& name) { |
aa2a5b86 RD |
177 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); |
178 | } | |
179 | ||
180 | ||
f6bcfd97 BP |
181 | int OnCompareItems(const wxTreeItemId& item1, |
182 | const wxTreeItemId& item2) { | |
183 | int rval = 0; | |
059a841c | 184 | bool found; |
474c48f9 | 185 | wxPyBeginBlockThreads(); |
8f8b0a8d | 186 | if ((found = m_myInst.findCallback("OnCompareItems"))) { |
b67a9327 RD |
187 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId")); |
188 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId")); | |
8f8b0a8d RD |
189 | rval = m_myInst.callCallback(Py_BuildValue("(OO)",o1,o2)); |
190 | Py_DECREF(o1); | |
191 | Py_DECREF(o2); | |
192 | } | |
474c48f9 | 193 | wxPyEndBlockThreads(); |
059a841c | 194 | if (! found) |
f6bcfd97 | 195 | rval = wxTreeCtrl::OnCompareItems(item1, item2); |
f6bcfd97 BP |
196 | return rval; |
197 | } | |
198 | PYPRIVATE; | |
199 | }; | |
200 | ||
9df61a29 RD |
201 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); |
202 | ||
1d99702e RD |
203 | #ifdef __cplusplus |
204 | extern "C" { | |
205 | #endif | |
cd096152 | 206 | #define new_wxListItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxListItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
f6bcfd97 BP |
207 | static PyObject *_wrap_new_wxListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
208 | PyObject * _resultobj; | |
209 | wxListItemAttr * _result; | |
cd096152 RD |
210 | wxColour * _arg0 = (wxColour *) &wxNullColour; |
211 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
212 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
213 | wxColour temp; | |
214 | PyObject * _obj0 = 0; | |
215 | wxColour temp0; | |
216 | PyObject * _obj1 = 0; | |
217 | PyObject * _argo2 = 0; | |
218 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
f6bcfd97 BP |
219 | char _ptemp[128]; |
220 | ||
221 | self = self; | |
cd096152 RD |
222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxListItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) |
223 | return NULL; | |
224 | if (_obj0) | |
225 | { | |
226 | _arg0 = &temp; | |
227 | if (! wxColour_helper(_obj0, &_arg0)) | |
228 | return NULL; | |
229 | } | |
230 | if (_obj1) | |
231 | { | |
232 | _arg1 = &temp0; | |
233 | if (! wxColour_helper(_obj1, &_arg1)) | |
234 | return NULL; | |
235 | } | |
236 | if (_argo2) { | |
b67a9327 | 237 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { |
cd096152 | 238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxListItemAttr. Expected _wxFont_p."); |
f6bcfd97 | 239 | return NULL; |
cd096152 RD |
240 | } |
241 | } | |
f6bcfd97 | 242 | { |
474c48f9 | 243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 244 | _result = (wxListItemAttr *)new_wxListItemAttr(*_arg0,*_arg1,*_arg2); |
f6bcfd97 | 245 | |
474c48f9 | 246 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 247 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
248 | } if (_result) { |
249 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
250 | _resultobj = Py_BuildValue("s",_ptemp); | |
251 | } else { | |
252 | Py_INCREF(Py_None); | |
253 | _resultobj = Py_None; | |
254 | } | |
255 | return _resultobj; | |
256 | } | |
257 | ||
258 | #define wxListItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
259 | static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
260 | PyObject * _resultobj; | |
261 | wxListItemAttr * _arg0; | |
262 | wxColour * _arg1; | |
263 | PyObject * _argo0 = 0; | |
264 | wxColour temp; | |
265 | PyObject * _obj1 = 0; | |
266 | char *_kwnames[] = { "self","colText", NULL }; | |
267 | ||
268 | self = self; | |
269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
270 | return NULL; | |
271 | if (_argo0) { | |
272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetTextColour. Expected _wxListItemAttr_p."); | |
275 | return NULL; | |
276 | } | |
277 | } | |
278 | { | |
279 | _arg1 = &temp; | |
280 | if (! wxColour_helper(_obj1, &_arg1)) | |
281 | return NULL; | |
282 | } | |
283 | { | |
474c48f9 | 284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 285 | wxListItemAttr_SetTextColour(_arg0,*_arg1); |
f6bcfd97 | 286 | |
474c48f9 | 287 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 288 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
289 | } Py_INCREF(Py_None); |
290 | _resultobj = Py_None; | |
291 | return _resultobj; | |
292 | } | |
293 | ||
294 | #define wxListItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
295 | static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
296 | PyObject * _resultobj; | |
297 | wxListItemAttr * _arg0; | |
298 | wxColour * _arg1; | |
299 | PyObject * _argo0 = 0; | |
300 | wxColour temp; | |
301 | PyObject * _obj1 = 0; | |
302 | char *_kwnames[] = { "self","colBack", NULL }; | |
303 | ||
304 | self = self; | |
305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
306 | return NULL; | |
307 | if (_argo0) { | |
308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetBackgroundColour. Expected _wxListItemAttr_p."); | |
311 | return NULL; | |
312 | } | |
313 | } | |
314 | { | |
315 | _arg1 = &temp; | |
316 | if (! wxColour_helper(_obj1, &_arg1)) | |
317 | return NULL; | |
318 | } | |
319 | { | |
474c48f9 | 320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 321 | wxListItemAttr_SetBackgroundColour(_arg0,*_arg1); |
f6bcfd97 | 322 | |
474c48f9 | 323 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 324 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
325 | } Py_INCREF(Py_None); |
326 | _resultobj = Py_None; | |
327 | return _resultobj; | |
328 | } | |
329 | ||
330 | #define wxListItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
331 | static PyObject *_wrap_wxListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
332 | PyObject * _resultobj; | |
333 | wxListItemAttr * _arg0; | |
334 | wxFont * _arg1; | |
335 | PyObject * _argo0 = 0; | |
336 | PyObject * _argo1 = 0; | |
337 | char *_kwnames[] = { "self","font", NULL }; | |
338 | ||
339 | self = self; | |
340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
341 | return NULL; | |
342 | if (_argo0) { | |
343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetFont. Expected _wxListItemAttr_p."); | |
346 | return NULL; | |
347 | } | |
348 | } | |
349 | if (_argo1) { | |
b67a9327 | 350 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { |
f6bcfd97 BP |
351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetFont. Expected _wxFont_p."); |
352 | return NULL; | |
353 | } | |
354 | } | |
355 | { | |
474c48f9 | 356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 357 | wxListItemAttr_SetFont(_arg0,*_arg1); |
f6bcfd97 | 358 | |
474c48f9 | 359 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 360 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
361 | } Py_INCREF(Py_None); |
362 | _resultobj = Py_None; | |
363 | return _resultobj; | |
364 | } | |
365 | ||
366 | #define wxListItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
367 | static PyObject *_wrap_wxListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
368 | PyObject * _resultobj; | |
369 | bool _result; | |
370 | wxListItemAttr * _arg0; | |
371 | PyObject * _argo0 = 0; | |
372 | char *_kwnames[] = { "self", NULL }; | |
373 | ||
374 | self = self; | |
375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasTextColour",_kwnames,&_argo0)) | |
376 | return NULL; | |
377 | if (_argo0) { | |
378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasTextColour. Expected _wxListItemAttr_p."); | |
381 | return NULL; | |
382 | } | |
383 | } | |
384 | { | |
474c48f9 | 385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 386 | _result = (bool )wxListItemAttr_HasTextColour(_arg0); |
f6bcfd97 | 387 | |
474c48f9 | 388 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 389 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
390 | } _resultobj = Py_BuildValue("i",_result); |
391 | return _resultobj; | |
392 | } | |
393 | ||
394 | #define wxListItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
395 | static PyObject *_wrap_wxListItemAttr_HasBackgroundColour(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_HasBackgroundColour",_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_HasBackgroundColour. Expected _wxListItemAttr_p."); | |
409 | return NULL; | |
410 | } | |
411 | } | |
412 | { | |
474c48f9 | 413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 414 | _result = (bool )wxListItemAttr_HasBackgroundColour(_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_HasFont(_swigobj) (_swigobj->HasFont()) | |
423 | static PyObject *_wrap_wxListItemAttr_HasFont(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_HasFont",_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_HasFont. Expected _wxListItemAttr_p."); | |
437 | return NULL; | |
438 | } | |
439 | } | |
440 | { | |
474c48f9 | 441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 442 | _result = (bool )wxListItemAttr_HasFont(_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_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
451 | static PyObject *_wrap_wxListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
452 | PyObject * _resultobj; | |
453 | wxColour * _result; | |
454 | wxListItemAttr * _arg0; | |
455 | PyObject * _argo0 = 0; | |
456 | char *_kwnames[] = { "self", NULL }; | |
457 | char _ptemp[128]; | |
458 | ||
459 | self = self; | |
460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetTextColour",_kwnames,&_argo0)) | |
461 | return NULL; | |
462 | if (_argo0) { | |
463 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
464 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetTextColour. Expected _wxListItemAttr_p."); | |
466 | return NULL; | |
467 | } | |
468 | } | |
469 | { | |
474c48f9 | 470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 471 | _result = new wxColour (wxListItemAttr_GetTextColour(_arg0)); |
f6bcfd97 | 472 | |
474c48f9 | 473 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 474 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
475 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
476 | _resultobj = Py_BuildValue("s",_ptemp); | |
f6bcfd97 BP |
477 | return _resultobj; |
478 | } | |
479 | ||
480 | #define wxListItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
481 | static PyObject *_wrap_wxListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
482 | PyObject * _resultobj; | |
483 | wxColour * _result; | |
484 | wxListItemAttr * _arg0; | |
485 | PyObject * _argo0 = 0; | |
486 | char *_kwnames[] = { "self", NULL }; | |
487 | char _ptemp[128]; | |
488 | ||
489 | self = self; | |
490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
491 | return NULL; | |
492 | if (_argo0) { | |
493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetBackgroundColour. Expected _wxListItemAttr_p."); | |
496 | return NULL; | |
497 | } | |
498 | } | |
499 | { | |
474c48f9 | 500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 501 | _result = new wxColour (wxListItemAttr_GetBackgroundColour(_arg0)); |
f6bcfd97 | 502 | |
474c48f9 | 503 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 504 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
505 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
506 | _resultobj = Py_BuildValue("s",_ptemp); | |
f6bcfd97 BP |
507 | return _resultobj; |
508 | } | |
509 | ||
510 | #define wxListItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
511 | static PyObject *_wrap_wxListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
512 | PyObject * _resultobj; | |
513 | wxFont * _result; | |
514 | wxListItemAttr * _arg0; | |
515 | PyObject * _argo0 = 0; | |
516 | char *_kwnames[] = { "self", NULL }; | |
517 | char _ptemp[128]; | |
518 | ||
519 | self = self; | |
520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetFont",_kwnames,&_argo0)) | |
521 | return NULL; | |
522 | if (_argo0) { | |
523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetFont. Expected _wxListItemAttr_p."); | |
526 | return NULL; | |
527 | } | |
528 | } | |
529 | { | |
474c48f9 | 530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 531 | _result = new wxFont (wxListItemAttr_GetFont(_arg0)); |
f6bcfd97 | 532 | |
474c48f9 | 533 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 534 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
535 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
536 | _resultobj = Py_BuildValue("s",_ptemp); | |
f6bcfd97 BP |
537 | return _resultobj; |
538 | } | |
539 | ||
9df61a29 RD |
540 | static void *SwigwxListItemTowxObject(void *ptr) { |
541 | wxListItem *src; | |
542 | wxObject *dest; | |
543 | src = (wxListItem *) ptr; | |
544 | dest = (wxObject *) src; | |
545 | return (void *) dest; | |
546 | } | |
547 | ||
f6bcfd97 BP |
548 | #define new_wxListItem() (new wxListItem()) |
549 | static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
550 | PyObject * _resultobj; | |
551 | wxListItem * _result; | |
552 | char *_kwnames[] = { NULL }; | |
553 | char _ptemp[128]; | |
554 | ||
555 | self = self; | |
556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames)) | |
557 | return NULL; | |
558 | { | |
474c48f9 | 559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 560 | _result = (wxListItem *)new_wxListItem(); |
f6bcfd97 | 561 | |
474c48f9 | 562 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 563 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
564 | } if (_result) { |
565 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
566 | _resultobj = Py_BuildValue("s",_ptemp); | |
567 | } else { | |
568 | Py_INCREF(Py_None); | |
569 | _resultobj = Py_None; | |
570 | } | |
571 | return _resultobj; | |
572 | } | |
573 | ||
574 | #define delete_wxListItem(_swigobj) (delete _swigobj) | |
575 | static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
576 | PyObject * _resultobj; | |
577 | wxListItem * _arg0; | |
578 | PyObject * _argo0 = 0; | |
579 | char *_kwnames[] = { "self", NULL }; | |
580 | ||
581 | self = self; | |
582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0)) | |
583 | return NULL; | |
584 | if (_argo0) { | |
585 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p."); | |
588 | return NULL; | |
589 | } | |
590 | } | |
591 | { | |
474c48f9 | 592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 593 | delete_wxListItem(_arg0); |
f6bcfd97 | 594 | |
474c48f9 | 595 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 596 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
597 | } Py_INCREF(Py_None); |
598 | _resultobj = Py_None; | |
599 | return _resultobj; | |
600 | } | |
601 | ||
602 | #define wxListItem_Clear(_swigobj) (_swigobj->Clear()) | |
603 | static PyObject *_wrap_wxListItem_Clear(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:wxListItem_Clear",_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 wxListItem_Clear. Expected _wxListItem_p."); | |
616 | return NULL; | |
617 | } | |
618 | } | |
619 | { | |
474c48f9 | 620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 621 | wxListItem_Clear(_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_ClearAttributes(_swigobj) (_swigobj->ClearAttributes()) | |
631 | static PyObject *_wrap_wxListItem_ClearAttributes(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_ClearAttributes",_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_ClearAttributes. Expected _wxListItem_p."); | |
644 | return NULL; | |
645 | } | |
646 | } | |
647 | { | |
474c48f9 | 648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 649 | wxListItem_ClearAttributes(_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_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
659 | static PyObject *_wrap_wxListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
660 | PyObject * _resultobj; | |
661 | wxListItem * _arg0; | |
662 | long _arg1; | |
663 | PyObject * _argo0 = 0; | |
664 | char *_kwnames[] = { "self","mask", NULL }; | |
665 | ||
666 | self = self; | |
667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetMask",_kwnames,&_argo0,&_arg1)) | |
668 | return NULL; | |
669 | if (_argo0) { | |
670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetMask. Expected _wxListItem_p."); | |
673 | return NULL; | |
674 | } | |
675 | } | |
676 | { | |
474c48f9 | 677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 678 | wxListItem_SetMask(_arg0,_arg1); |
f6bcfd97 | 679 | |
474c48f9 | 680 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 681 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
682 | } Py_INCREF(Py_None); |
683 | _resultobj = Py_None; | |
684 | return _resultobj; | |
685 | } | |
686 | ||
687 | #define wxListItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
688 | static PyObject *_wrap_wxListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
689 | PyObject * _resultobj; | |
690 | wxListItem * _arg0; | |
691 | long _arg1; | |
692 | PyObject * _argo0 = 0; | |
693 | char *_kwnames[] = { "self","id", NULL }; | |
694 | ||
695 | self = self; | |
696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetId",_kwnames,&_argo0,&_arg1)) | |
697 | return NULL; | |
698 | if (_argo0) { | |
699 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
700 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetId. Expected _wxListItem_p."); | |
702 | return NULL; | |
703 | } | |
704 | } | |
705 | { | |
474c48f9 | 706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 707 | wxListItem_SetId(_arg0,_arg1); |
f6bcfd97 | 708 | |
474c48f9 | 709 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 710 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
711 | } Py_INCREF(Py_None); |
712 | _resultobj = Py_None; | |
713 | return _resultobj; | |
714 | } | |
715 | ||
716 | #define wxListItem_SetColumn(_swigobj,_swigarg0) (_swigobj->SetColumn(_swigarg0)) | |
717 | static PyObject *_wrap_wxListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
718 | PyObject * _resultobj; | |
719 | wxListItem * _arg0; | |
720 | int _arg1; | |
721 | PyObject * _argo0 = 0; | |
722 | char *_kwnames[] = { "self","col", NULL }; | |
723 | ||
724 | self = self; | |
725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetColumn",_kwnames,&_argo0,&_arg1)) | |
726 | return NULL; | |
727 | if (_argo0) { | |
728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetColumn. Expected _wxListItem_p."); | |
731 | return NULL; | |
732 | } | |
733 | } | |
734 | { | |
474c48f9 | 735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 736 | wxListItem_SetColumn(_arg0,_arg1); |
f6bcfd97 | 737 | |
474c48f9 | 738 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 739 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
740 | } Py_INCREF(Py_None); |
741 | _resultobj = Py_None; | |
742 | return _resultobj; | |
743 | } | |
744 | ||
745 | #define wxListItem_SetState(_swigobj,_swigarg0) (_swigobj->SetState(_swigarg0)) | |
746 | static PyObject *_wrap_wxListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
747 | PyObject * _resultobj; | |
748 | wxListItem * _arg0; | |
749 | long _arg1; | |
750 | PyObject * _argo0 = 0; | |
751 | char *_kwnames[] = { "self","state", NULL }; | |
752 | ||
753 | self = self; | |
754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetState",_kwnames,&_argo0,&_arg1)) | |
755 | return NULL; | |
756 | if (_argo0) { | |
757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetState. Expected _wxListItem_p."); | |
760 | return NULL; | |
761 | } | |
762 | } | |
763 | { | |
474c48f9 | 764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 765 | wxListItem_SetState(_arg0,_arg1); |
f6bcfd97 | 766 | |
474c48f9 | 767 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 768 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
769 | } Py_INCREF(Py_None); |
770 | _resultobj = Py_None; | |
771 | return _resultobj; | |
772 | } | |
773 | ||
774 | #define wxListItem_SetStateMask(_swigobj,_swigarg0) (_swigobj->SetStateMask(_swigarg0)) | |
775 | static PyObject *_wrap_wxListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
776 | PyObject * _resultobj; | |
777 | wxListItem * _arg0; | |
778 | long _arg1; | |
779 | PyObject * _argo0 = 0; | |
780 | char *_kwnames[] = { "self","stateMask", NULL }; | |
781 | ||
782 | self = self; | |
783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetStateMask",_kwnames,&_argo0,&_arg1)) | |
784 | return NULL; | |
785 | if (_argo0) { | |
786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetStateMask. Expected _wxListItem_p."); | |
789 | return NULL; | |
790 | } | |
791 | } | |
792 | { | |
474c48f9 | 793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 794 | wxListItem_SetStateMask(_arg0,_arg1); |
f6bcfd97 | 795 | |
474c48f9 | 796 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 797 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
798 | } Py_INCREF(Py_None); |
799 | _resultobj = Py_None; | |
800 | return _resultobj; | |
801 | } | |
802 | ||
803 | #define wxListItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
804 | static PyObject *_wrap_wxListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
805 | PyObject * _resultobj; | |
806 | wxListItem * _arg0; | |
807 | wxString * _arg1; | |
808 | PyObject * _argo0 = 0; | |
809 | PyObject * _obj1 = 0; | |
810 | char *_kwnames[] = { "self","text", NULL }; | |
811 | ||
812 | self = self; | |
813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetText",_kwnames,&_argo0,&_obj1)) | |
814 | return NULL; | |
815 | if (_argo0) { | |
816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetText. Expected _wxListItem_p."); | |
819 | return NULL; | |
820 | } | |
821 | } | |
822 | { | |
c8bc7bb8 RD |
823 | _arg1 = wxString_in_helper(_obj1); |
824 | if (_arg1 == NULL) | |
f6bcfd97 | 825 | return NULL; |
f6bcfd97 BP |
826 | } |
827 | { | |
474c48f9 | 828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 829 | wxListItem_SetText(_arg0,*_arg1); |
f6bcfd97 | 830 | |
474c48f9 | 831 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 832 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
833 | } Py_INCREF(Py_None); |
834 | _resultobj = Py_None; | |
835 | { | |
836 | if (_obj1) | |
837 | delete _arg1; | |
838 | } | |
839 | return _resultobj; | |
840 | } | |
841 | ||
842 | #define wxListItem_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0)) | |
843 | static PyObject *_wrap_wxListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
844 | PyObject * _resultobj; | |
845 | wxListItem * _arg0; | |
846 | int _arg1; | |
847 | PyObject * _argo0 = 0; | |
848 | char *_kwnames[] = { "self","image", NULL }; | |
849 | ||
850 | self = self; | |
851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetImage",_kwnames,&_argo0,&_arg1)) | |
852 | return NULL; | |
853 | if (_argo0) { | |
854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetImage. Expected _wxListItem_p."); | |
857 | return NULL; | |
858 | } | |
859 | } | |
860 | { | |
474c48f9 | 861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 862 | wxListItem_SetImage(_arg0,_arg1); |
f6bcfd97 | 863 | |
474c48f9 | 864 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 865 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
866 | } Py_INCREF(Py_None); |
867 | _resultobj = Py_None; | |
868 | return _resultobj; | |
869 | } | |
870 | ||
871 | #define wxListItem_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
872 | static PyObject *_wrap_wxListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
873 | PyObject * _resultobj; | |
874 | wxListItem * _arg0; | |
875 | long _arg1; | |
876 | PyObject * _argo0 = 0; | |
877 | char *_kwnames[] = { "self","data", NULL }; | |
878 | ||
879 | self = self; | |
880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetData",_kwnames,&_argo0,&_arg1)) | |
881 | return NULL; | |
882 | if (_argo0) { | |
883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetData. Expected _wxListItem_p."); | |
886 | return NULL; | |
887 | } | |
888 | } | |
889 | { | |
474c48f9 | 890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 891 | wxListItem_SetData(_arg0,_arg1); |
f6bcfd97 | 892 | |
474c48f9 | 893 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 894 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
895 | } Py_INCREF(Py_None); |
896 | _resultobj = Py_None; | |
897 | return _resultobj; | |
898 | } | |
899 | ||
900 | #define wxListItem_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
901 | static PyObject *_wrap_wxListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
902 | PyObject * _resultobj; | |
903 | wxListItem * _arg0; | |
904 | int _arg1; | |
905 | PyObject * _argo0 = 0; | |
906 | char *_kwnames[] = { "self","width", NULL }; | |
907 | ||
908 | self = self; | |
909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetWidth",_kwnames,&_argo0,&_arg1)) | |
910 | return NULL; | |
911 | if (_argo0) { | |
912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetWidth. Expected _wxListItem_p."); | |
915 | return NULL; | |
916 | } | |
917 | } | |
918 | { | |
474c48f9 | 919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 920 | wxListItem_SetWidth(_arg0,_arg1); |
f6bcfd97 | 921 | |
474c48f9 | 922 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 923 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
924 | } Py_INCREF(Py_None); |
925 | _resultobj = Py_None; | |
926 | return _resultobj; | |
927 | } | |
928 | ||
929 | #define wxListItem_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0)) | |
930 | static PyObject *_wrap_wxListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
931 | PyObject * _resultobj; | |
932 | wxListItem * _arg0; | |
933 | wxListColumnFormat _arg1; | |
934 | PyObject * _argo0 = 0; | |
935 | char *_kwnames[] = { "self","align", NULL }; | |
936 | ||
937 | self = self; | |
938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetAlign",_kwnames,&_argo0,&_arg1)) | |
939 | return NULL; | |
940 | if (_argo0) { | |
941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetAlign. Expected _wxListItem_p."); | |
944 | return NULL; | |
945 | } | |
946 | } | |
947 | { | |
474c48f9 | 948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 949 | wxListItem_SetAlign(_arg0,_arg1); |
f6bcfd97 | 950 | |
474c48f9 | 951 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 952 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
953 | } Py_INCREF(Py_None); |
954 | _resultobj = Py_None; | |
955 | return _resultobj; | |
956 | } | |
957 | ||
958 | #define wxListItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
959 | static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
960 | PyObject * _resultobj; | |
961 | wxListItem * _arg0; | |
962 | wxColour * _arg1; | |
963 | PyObject * _argo0 = 0; | |
964 | wxColour temp; | |
965 | PyObject * _obj1 = 0; | |
966 | char *_kwnames[] = { "self","colText", NULL }; | |
967 | ||
968 | self = self; | |
969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
970 | return NULL; | |
971 | if (_argo0) { | |
972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetTextColour. Expected _wxListItem_p."); | |
975 | return NULL; | |
976 | } | |
977 | } | |
978 | { | |
979 | _arg1 = &temp; | |
980 | if (! wxColour_helper(_obj1, &_arg1)) | |
981 | return NULL; | |
982 | } | |
983 | { | |
474c48f9 | 984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 985 | wxListItem_SetTextColour(_arg0,*_arg1); |
f6bcfd97 | 986 | |
474c48f9 | 987 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 988 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
989 | } Py_INCREF(Py_None); |
990 | _resultobj = Py_None; | |
991 | return _resultobj; | |
992 | } | |
993 | ||
994 | #define wxListItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
995 | static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
996 | PyObject * _resultobj; | |
997 | wxListItem * _arg0; | |
998 | wxColour * _arg1; | |
999 | PyObject * _argo0 = 0; | |
1000 | wxColour temp; | |
1001 | PyObject * _obj1 = 0; | |
1002 | char *_kwnames[] = { "self","colBack", NULL }; | |
1003 | ||
1004 | self = self; | |
1005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
1006 | return NULL; | |
1007 | if (_argo0) { | |
1008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetBackgroundColour. Expected _wxListItem_p."); | |
1011 | return NULL; | |
1012 | } | |
1013 | } | |
1014 | { | |
1015 | _arg1 = &temp; | |
1016 | if (! wxColour_helper(_obj1, &_arg1)) | |
1017 | return NULL; | |
1018 | } | |
1019 | { | |
474c48f9 | 1020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1021 | wxListItem_SetBackgroundColour(_arg0,*_arg1); |
f6bcfd97 | 1022 | |
474c48f9 | 1023 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1024 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1025 | } Py_INCREF(Py_None); |
1026 | _resultobj = Py_None; | |
1027 | return _resultobj; | |
1028 | } | |
1029 | ||
1030 | #define wxListItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1031 | static PyObject *_wrap_wxListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1032 | PyObject * _resultobj; | |
1033 | wxListItem * _arg0; | |
1034 | wxFont * _arg1; | |
1035 | PyObject * _argo0 = 0; | |
1036 | PyObject * _argo1 = 0; | |
1037 | char *_kwnames[] = { "self","font", NULL }; | |
1038 | ||
1039 | self = self; | |
1040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
1041 | return NULL; | |
1042 | if (_argo0) { | |
1043 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1044 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetFont. Expected _wxListItem_p."); | |
1046 | return NULL; | |
1047 | } | |
1048 | } | |
1049 | if (_argo1) { | |
b67a9327 | 1050 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { |
f6bcfd97 BP |
1051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetFont. Expected _wxFont_p."); |
1052 | return NULL; | |
1053 | } | |
1054 | } | |
1055 | { | |
474c48f9 | 1056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1057 | wxListItem_SetFont(_arg0,*_arg1); |
f6bcfd97 | 1058 | |
474c48f9 | 1059 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1060 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1061 | } Py_INCREF(Py_None); |
1062 | _resultobj = Py_None; | |
1063 | return _resultobj; | |
1064 | } | |
1065 | ||
1066 | #define wxListItem_GetMask(_swigobj) (_swigobj->GetMask()) | |
1067 | static PyObject *_wrap_wxListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1068 | PyObject * _resultobj; | |
1069 | long _result; | |
1070 | wxListItem * _arg0; | |
1071 | PyObject * _argo0 = 0; | |
1072 | char *_kwnames[] = { "self", NULL }; | |
1073 | ||
1074 | self = self; | |
1075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetMask",_kwnames,&_argo0)) | |
1076 | return NULL; | |
1077 | if (_argo0) { | |
1078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetMask. Expected _wxListItem_p."); | |
1081 | return NULL; | |
1082 | } | |
1083 | } | |
1084 | { | |
474c48f9 | 1085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1086 | _result = (long )wxListItem_GetMask(_arg0); |
f6bcfd97 | 1087 | |
474c48f9 | 1088 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1089 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1090 | } _resultobj = Py_BuildValue("l",_result); |
1091 | return _resultobj; | |
1092 | } | |
1093 | ||
1094 | #define wxListItem_GetId(_swigobj) (_swigobj->GetId()) | |
1095 | static PyObject *_wrap_wxListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1096 | PyObject * _resultobj; | |
1097 | long _result; | |
1098 | wxListItem * _arg0; | |
1099 | PyObject * _argo0 = 0; | |
1100 | char *_kwnames[] = { "self", NULL }; | |
1101 | ||
1102 | self = self; | |
1103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetId",_kwnames,&_argo0)) | |
1104 | return NULL; | |
1105 | if (_argo0) { | |
1106 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1107 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetId. Expected _wxListItem_p."); | |
1109 | return NULL; | |
1110 | } | |
1111 | } | |
1112 | { | |
474c48f9 | 1113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1114 | _result = (long )wxListItem_GetId(_arg0); |
f6bcfd97 | 1115 | |
474c48f9 | 1116 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1117 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1118 | } _resultobj = Py_BuildValue("l",_result); |
1119 | return _resultobj; | |
1120 | } | |
1121 | ||
1122 | #define wxListItem_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
1123 | static PyObject *_wrap_wxListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1124 | PyObject * _resultobj; | |
1125 | int _result; | |
1126 | wxListItem * _arg0; | |
1127 | PyObject * _argo0 = 0; | |
1128 | char *_kwnames[] = { "self", NULL }; | |
1129 | ||
1130 | self = self; | |
1131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetColumn",_kwnames,&_argo0)) | |
1132 | return NULL; | |
1133 | if (_argo0) { | |
1134 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1135 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetColumn. Expected _wxListItem_p."); | |
1137 | return NULL; | |
1138 | } | |
1139 | } | |
1140 | { | |
474c48f9 | 1141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1142 | _result = (int )wxListItem_GetColumn(_arg0); |
f6bcfd97 | 1143 | |
474c48f9 | 1144 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1145 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1146 | } _resultobj = Py_BuildValue("i",_result); |
1147 | return _resultobj; | |
1148 | } | |
1149 | ||
1150 | #define wxListItem_GetState(_swigobj) (_swigobj->GetState()) | |
1151 | static PyObject *_wrap_wxListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1152 | PyObject * _resultobj; | |
1153 | long _result; | |
1154 | wxListItem * _arg0; | |
1155 | PyObject * _argo0 = 0; | |
1156 | char *_kwnames[] = { "self", NULL }; | |
1157 | ||
1158 | self = self; | |
1159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetState",_kwnames,&_argo0)) | |
1160 | return NULL; | |
1161 | if (_argo0) { | |
1162 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1163 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1164 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetState. Expected _wxListItem_p."); | |
1165 | return NULL; | |
1166 | } | |
1167 | } | |
1168 | { | |
474c48f9 | 1169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1170 | _result = (long )wxListItem_GetState(_arg0); |
f6bcfd97 | 1171 | |
474c48f9 | 1172 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1173 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1174 | } _resultobj = Py_BuildValue("l",_result); |
1175 | return _resultobj; | |
1176 | } | |
1177 | ||
1178 | #define wxListItem_GetText(_swigobj) (_swigobj->GetText()) | |
1179 | static PyObject *_wrap_wxListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1180 | PyObject * _resultobj; | |
1181 | wxString * _result; | |
1182 | wxListItem * _arg0; | |
1183 | PyObject * _argo0 = 0; | |
1184 | char *_kwnames[] = { "self", NULL }; | |
1185 | ||
1186 | self = self; | |
1187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetText",_kwnames,&_argo0)) | |
1188 | return NULL; | |
1189 | if (_argo0) { | |
1190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1191 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetText. Expected _wxListItem_p."); | |
1193 | return NULL; | |
1194 | } | |
1195 | } | |
1196 | { | |
474c48f9 | 1197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1198 | const wxString & _result_ref = wxListItem_GetText(_arg0); |
f6bcfd97 BP |
1199 | _result = (wxString *) &_result_ref; |
1200 | ||
474c48f9 | 1201 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1202 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1203 | }{ |
c8bc7bb8 | 1204 | #if wxUSE_UNICODE |
b67a9327 | 1205 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1206 | #else |
f6bcfd97 | 1207 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1208 | #endif |
f6bcfd97 BP |
1209 | } |
1210 | return _resultobj; | |
1211 | } | |
1212 | ||
1213 | #define wxListItem_GetImage(_swigobj) (_swigobj->GetImage()) | |
1214 | static PyObject *_wrap_wxListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1215 | PyObject * _resultobj; | |
1216 | int _result; | |
1217 | wxListItem * _arg0; | |
1218 | PyObject * _argo0 = 0; | |
1219 | char *_kwnames[] = { "self", NULL }; | |
1220 | ||
1221 | self = self; | |
1222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetImage",_kwnames,&_argo0)) | |
1223 | return NULL; | |
1224 | if (_argo0) { | |
1225 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1226 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetImage. Expected _wxListItem_p."); | |
1228 | return NULL; | |
1229 | } | |
1230 | } | |
1231 | { | |
474c48f9 | 1232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1233 | _result = (int )wxListItem_GetImage(_arg0); |
f6bcfd97 | 1234 | |
474c48f9 | 1235 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1236 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1237 | } _resultobj = Py_BuildValue("i",_result); |
1238 | return _resultobj; | |
1239 | } | |
1240 | ||
1241 | #define wxListItem_GetData(_swigobj) (_swigobj->GetData()) | |
1242 | static PyObject *_wrap_wxListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1243 | PyObject * _resultobj; | |
1244 | long _result; | |
1245 | wxListItem * _arg0; | |
1246 | PyObject * _argo0 = 0; | |
1247 | char *_kwnames[] = { "self", NULL }; | |
1248 | ||
1249 | self = self; | |
1250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetData",_kwnames,&_argo0)) | |
1251 | return NULL; | |
1252 | if (_argo0) { | |
1253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetData. Expected _wxListItem_p."); | |
1256 | return NULL; | |
1257 | } | |
1258 | } | |
1259 | { | |
474c48f9 | 1260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1261 | _result = (long )wxListItem_GetData(_arg0); |
f6bcfd97 | 1262 | |
474c48f9 | 1263 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1264 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1265 | } _resultobj = Py_BuildValue("l",_result); |
1266 | return _resultobj; | |
1267 | } | |
1268 | ||
1269 | #define wxListItem_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1270 | static PyObject *_wrap_wxListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1271 | PyObject * _resultobj; | |
1272 | int _result; | |
1273 | wxListItem * _arg0; | |
1274 | PyObject * _argo0 = 0; | |
1275 | char *_kwnames[] = { "self", NULL }; | |
1276 | ||
1277 | self = self; | |
1278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetWidth",_kwnames,&_argo0)) | |
1279 | return NULL; | |
1280 | if (_argo0) { | |
1281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetWidth. Expected _wxListItem_p."); | |
1284 | return NULL; | |
1285 | } | |
1286 | } | |
1287 | { | |
474c48f9 | 1288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1289 | _result = (int )wxListItem_GetWidth(_arg0); |
f6bcfd97 | 1290 | |
474c48f9 | 1291 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1292 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1293 | } _resultobj = Py_BuildValue("i",_result); |
1294 | return _resultobj; | |
1295 | } | |
1296 | ||
1297 | #define wxListItem_GetAlign(_swigobj) (_swigobj->GetAlign()) | |
1298 | static PyObject *_wrap_wxListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1299 | PyObject * _resultobj; | |
1300 | wxListColumnFormat _result; | |
1301 | wxListItem * _arg0; | |
1302 | PyObject * _argo0 = 0; | |
1303 | char *_kwnames[] = { "self", NULL }; | |
1304 | ||
1305 | self = self; | |
1306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAlign",_kwnames,&_argo0)) | |
1307 | return NULL; | |
1308 | if (_argo0) { | |
1309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAlign. Expected _wxListItem_p."); | |
1312 | return NULL; | |
1313 | } | |
1314 | } | |
1315 | { | |
474c48f9 | 1316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1317 | _result = (wxListColumnFormat )wxListItem_GetAlign(_arg0); |
f6bcfd97 | 1318 | |
474c48f9 | 1319 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1320 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1321 | } _resultobj = Py_BuildValue("i",_result); |
1322 | return _resultobj; | |
1323 | } | |
1324 | ||
1325 | #define wxListItem_GetAttributes(_swigobj) (_swigobj->GetAttributes()) | |
1326 | static PyObject *_wrap_wxListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1327 | PyObject * _resultobj; | |
1328 | wxListItemAttr * _result; | |
1329 | wxListItem * _arg0; | |
1330 | PyObject * _argo0 = 0; | |
1331 | char *_kwnames[] = { "self", NULL }; | |
1332 | char _ptemp[128]; | |
1333 | ||
1334 | self = self; | |
1335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAttributes",_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_GetAttributes. Expected _wxListItem_p."); | |
1341 | return NULL; | |
1342 | } | |
1343 | } | |
1344 | { | |
474c48f9 | 1345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1346 | _result = (wxListItemAttr *)wxListItem_GetAttributes(_arg0); |
f6bcfd97 | 1347 | |
474c48f9 | 1348 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1349 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1350 | } if (_result) { |
1351 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
1352 | _resultobj = Py_BuildValue("s",_ptemp); | |
1353 | } else { | |
1354 | Py_INCREF(Py_None); | |
1355 | _resultobj = Py_None; | |
1356 | } | |
1357 | return _resultobj; | |
1358 | } | |
1359 | ||
1360 | #define wxListItem_HasAttributes(_swigobj) (_swigobj->HasAttributes()) | |
1361 | static PyObject *_wrap_wxListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1362 | PyObject * _resultobj; | |
1363 | bool _result; | |
1364 | wxListItem * _arg0; | |
1365 | PyObject * _argo0 = 0; | |
1366 | char *_kwnames[] = { "self", NULL }; | |
1367 | ||
1368 | self = self; | |
1369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_HasAttributes",_kwnames,&_argo0)) | |
1370 | return NULL; | |
1371 | if (_argo0) { | |
1372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_HasAttributes. Expected _wxListItem_p."); | |
1375 | return NULL; | |
1376 | } | |
1377 | } | |
1378 | { | |
474c48f9 | 1379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1380 | _result = (bool )wxListItem_HasAttributes(_arg0); |
f6bcfd97 | 1381 | |
474c48f9 | 1382 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1383 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1384 | } _resultobj = Py_BuildValue("i",_result); |
1385 | return _resultobj; | |
1386 | } | |
1387 | ||
1388 | #define wxListItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
1389 | static PyObject *_wrap_wxListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1390 | PyObject * _resultobj; | |
1391 | wxColour * _result; | |
1392 | wxListItem * _arg0; | |
1393 | PyObject * _argo0 = 0; | |
1394 | char *_kwnames[] = { "self", NULL }; | |
1395 | char _ptemp[128]; | |
1396 | ||
1397 | self = self; | |
1398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetTextColour",_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_GetTextColour. Expected _wxListItem_p."); | |
1404 | return NULL; | |
1405 | } | |
1406 | } | |
1407 | { | |
474c48f9 | 1408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1409 | _result = new wxColour (wxListItem_GetTextColour(_arg0)); |
f6bcfd97 | 1410 | |
474c48f9 | 1411 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1412 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1413 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1414 | _resultobj = Py_BuildValue("s",_ptemp); | |
1415 | return _resultobj; | |
1416 | } | |
1417 | ||
1418 | #define wxListItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1419 | static PyObject *_wrap_wxListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1420 | PyObject * _resultobj; | |
1421 | wxColour * _result; | |
1422 | wxListItem * _arg0; | |
1423 | PyObject * _argo0 = 0; | |
1424 | char *_kwnames[] = { "self", NULL }; | |
1425 | char _ptemp[128]; | |
1426 | ||
1427 | self = self; | |
1428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetBackgroundColour",_kwnames,&_argo0)) | |
1429 | return NULL; | |
1430 | if (_argo0) { | |
1431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetBackgroundColour. Expected _wxListItem_p."); | |
1434 | return NULL; | |
1435 | } | |
1436 | } | |
1437 | { | |
474c48f9 | 1438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1439 | _result = new wxColour (wxListItem_GetBackgroundColour(_arg0)); |
f6bcfd97 | 1440 | |
474c48f9 | 1441 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1442 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1443 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1444 | _resultobj = Py_BuildValue("s",_ptemp); | |
1445 | return _resultobj; | |
1446 | } | |
1447 | ||
1448 | #define wxListItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
1449 | static PyObject *_wrap_wxListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1450 | PyObject * _resultobj; | |
1451 | wxFont * _result; | |
1452 | wxListItem * _arg0; | |
1453 | PyObject * _argo0 = 0; | |
1454 | char *_kwnames[] = { "self", NULL }; | |
1455 | char _ptemp[128]; | |
1456 | ||
1457 | self = self; | |
1458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetFont",_kwnames,&_argo0)) | |
1459 | return NULL; | |
1460 | if (_argo0) { | |
1461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetFont. Expected _wxListItem_p."); | |
1464 | return NULL; | |
1465 | } | |
1466 | } | |
1467 | { | |
474c48f9 | 1468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1469 | _result = new wxFont (wxListItem_GetFont(_arg0)); |
f6bcfd97 | 1470 | |
474c48f9 | 1471 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1472 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1473 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
1474 | _resultobj = Py_BuildValue("s",_ptemp); | |
1475 | return _resultobj; | |
1476 | } | |
1477 | ||
1478 | #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval) | |
1479 | static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1480 | PyObject * _resultobj; | |
1481 | long _result; | |
1482 | wxListItem * _arg0; | |
1483 | long _arg1; | |
1484 | PyObject * _argo0 = 0; | |
1485 | char *_kwnames[] = { "self","m_mask", NULL }; | |
1486 | ||
1487 | self = self; | |
1488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1)) | |
1489 | return NULL; | |
1490 | if (_argo0) { | |
1491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p."); | |
1494 | return NULL; | |
1495 | } | |
1496 | } | |
1497 | { | |
474c48f9 | 1498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1499 | _result = (long )wxListItem_m_mask_set(_arg0,_arg1); |
f6bcfd97 | 1500 | |
474c48f9 | 1501 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1502 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1503 | } _resultobj = Py_BuildValue("l",_result); |
1504 | return _resultobj; | |
1505 | } | |
1506 | ||
1507 | #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask) | |
1508 | static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1509 | PyObject * _resultobj; | |
1510 | long _result; | |
1511 | wxListItem * _arg0; | |
1512 | PyObject * _argo0 = 0; | |
1513 | char *_kwnames[] = { "self", NULL }; | |
1514 | ||
1515 | self = self; | |
1516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0)) | |
1517 | return NULL; | |
1518 | if (_argo0) { | |
1519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p."); | |
1522 | return NULL; | |
1523 | } | |
1524 | } | |
1525 | { | |
474c48f9 | 1526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1527 | _result = (long )wxListItem_m_mask_get(_arg0); |
f6bcfd97 | 1528 | |
474c48f9 | 1529 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1530 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1531 | } _resultobj = Py_BuildValue("l",_result); |
1532 | return _resultobj; | |
1533 | } | |
1534 | ||
1535 | #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval) | |
1536 | static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
1537 | PyObject * _resultobj; |
1538 | long _result; | |
1539 | wxListItem * _arg0; | |
1540 | long _arg1; | |
1d99702e | 1541 | PyObject * _argo0 = 0; |
f6bcfd97 | 1542 | char *_kwnames[] = { "self","m_itemId", NULL }; |
af309447 RD |
1543 | |
1544 | self = self; | |
f6bcfd97 | 1545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1546 | return NULL; |
1d99702e RD |
1547 | if (_argo0) { |
1548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p."); |
af309447 RD |
1551 | return NULL; |
1552 | } | |
1553 | } | |
cf694132 | 1554 | { |
474c48f9 | 1555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1556 | _result = (long )wxListItem_m_itemId_set(_arg0,_arg1); |
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_get(_swigobj) ((long ) _swigobj->m_itemId) | |
1565 | static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1566 | PyObject * _resultobj; | |
1567 | long _result; | |
1568 | wxListItem * _arg0; | |
1569 | PyObject * _argo0 = 0; | |
1570 | char *_kwnames[] = { "self", NULL }; | |
1571 | ||
1572 | self = self; | |
1573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0)) | |
1574 | return NULL; | |
1575 | if (_argo0) { | |
1576 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1577 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p."); | |
1579 | return NULL; | |
1580 | } | |
1581 | } | |
1582 | { | |
474c48f9 | 1583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1584 | _result = (long )wxListItem_m_itemId_get(_arg0); |
f6bcfd97 | 1585 | |
474c48f9 | 1586 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1587 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1588 | } _resultobj = Py_BuildValue("l",_result); |
1589 | return _resultobj; | |
1590 | } | |
1591 | ||
1592 | #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
1593 | static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1594 | PyObject * _resultobj; | |
1595 | int _result; | |
1596 | wxListItem * _arg0; | |
1597 | int _arg1; | |
1598 | PyObject * _argo0 = 0; | |
1599 | char *_kwnames[] = { "self","m_col", NULL }; | |
1600 | ||
1601 | self = self; | |
1602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1)) | |
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_col_set. Expected _wxListItem_p."); | |
1608 | return NULL; | |
1609 | } | |
1610 | } | |
1611 | { | |
474c48f9 | 1612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1613 | _result = (int )wxListItem_m_col_set(_arg0,_arg1); |
f6bcfd97 | 1614 | |
474c48f9 | 1615 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1616 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1617 | } _resultobj = Py_BuildValue("i",_result); |
1618 | return _resultobj; | |
1619 | } | |
1620 | ||
1621 | #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
1622 | static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1623 | PyObject * _resultobj; | |
1624 | int _result; | |
1625 | wxListItem * _arg0; | |
1626 | PyObject * _argo0 = 0; | |
1627 | char *_kwnames[] = { "self", NULL }; | |
1628 | ||
1629 | self = self; | |
1630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0)) | |
1631 | return NULL; | |
1632 | if (_argo0) { | |
1633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p."); | |
1636 | return NULL; | |
1637 | } | |
1638 | } | |
1639 | { | |
474c48f9 | 1640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1641 | _result = (int )wxListItem_m_col_get(_arg0); |
f6bcfd97 | 1642 | |
474c48f9 | 1643 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1644 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1645 | } _resultobj = Py_BuildValue("i",_result); |
1646 | return _resultobj; | |
1647 | } | |
1648 | ||
1649 | #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval) | |
1650 | static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1651 | PyObject * _resultobj; | |
1652 | long _result; | |
1653 | wxListItem * _arg0; | |
1654 | long _arg1; | |
1655 | PyObject * _argo0 = 0; | |
1656 | char *_kwnames[] = { "self","m_state", NULL }; | |
1657 | ||
1658 | self = self; | |
1659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1)) | |
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_state_set. Expected _wxListItem_p."); | |
1665 | return NULL; | |
1666 | } | |
1667 | } | |
1668 | { | |
474c48f9 | 1669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1670 | _result = (long )wxListItem_m_state_set(_arg0,_arg1); |
f6bcfd97 | 1671 | |
474c48f9 | 1672 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1673 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1674 | } _resultobj = Py_BuildValue("l",_result); |
1675 | return _resultobj; | |
1676 | } | |
1677 | ||
1678 | #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state) | |
1679 | static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1680 | PyObject * _resultobj; | |
1681 | long _result; | |
1682 | wxListItem * _arg0; | |
1683 | PyObject * _argo0 = 0; | |
1684 | char *_kwnames[] = { "self", NULL }; | |
1685 | ||
1686 | self = self; | |
1687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0)) | |
1688 | return NULL; | |
1689 | if (_argo0) { | |
1690 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p."); | |
1693 | return NULL; | |
1694 | } | |
1695 | } | |
1696 | { | |
474c48f9 | 1697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1698 | _result = (long )wxListItem_m_state_get(_arg0); |
f6bcfd97 | 1699 | |
474c48f9 | 1700 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1701 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1702 | } _resultobj = Py_BuildValue("l",_result); |
1703 | return _resultobj; | |
1704 | } | |
1705 | ||
1706 | #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval) | |
1707 | static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1708 | PyObject * _resultobj; | |
1709 | long _result; | |
1710 | wxListItem * _arg0; | |
1711 | long _arg1; | |
1712 | PyObject * _argo0 = 0; | |
1713 | char *_kwnames[] = { "self","m_stateMask", NULL }; | |
1714 | ||
1715 | self = self; | |
1716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1)) | |
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_stateMask_set. Expected _wxListItem_p."); | |
1722 | return NULL; | |
1723 | } | |
1724 | } | |
1725 | { | |
474c48f9 | 1726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1727 | _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1); |
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_get(_swigobj) ((long ) _swigobj->m_stateMask) | |
1736 | static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1737 | PyObject * _resultobj; | |
1738 | long _result; | |
1739 | wxListItem * _arg0; | |
1740 | PyObject * _argo0 = 0; | |
1741 | char *_kwnames[] = { "self", NULL }; | |
1742 | ||
1743 | self = self; | |
1744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0)) | |
1745 | return NULL; | |
1746 | if (_argo0) { | |
1747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p."); | |
1750 | return NULL; | |
1751 | } | |
1752 | } | |
1753 | { | |
474c48f9 | 1754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1755 | _result = (long )wxListItem_m_stateMask_get(_arg0); |
cf694132 | 1756 | |
474c48f9 | 1757 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1758 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1759 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
1760 | return _resultobj; |
1761 | } | |
1762 | ||
f6bcfd97 BP |
1763 | #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval) |
1764 | static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1765 | PyObject * _resultobj; | |
1766 | wxString * _result; | |
1767 | wxListItem * _arg0; | |
1768 | wxString * _arg1; | |
1769 | PyObject * _argo0 = 0; | |
1770 | PyObject * _obj1 = 0; | |
1771 | char *_kwnames[] = { "self","m_text", NULL }; | |
1772 | ||
1773 | self = self; | |
1774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1)) | |
1775 | return NULL; | |
1776 | if (_argo0) { | |
1777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p."); | |
1780 | return NULL; | |
1781 | } | |
1782 | } | |
1783 | { | |
c8bc7bb8 RD |
1784 | _arg1 = wxString_in_helper(_obj1); |
1785 | if (_arg1 == NULL) | |
f6bcfd97 | 1786 | return NULL; |
f6bcfd97 BP |
1787 | } |
1788 | { | |
474c48f9 | 1789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1790 | _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1); |
f6bcfd97 | 1791 | |
474c48f9 | 1792 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1793 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1794 | }{ |
c8bc7bb8 | 1795 | #if wxUSE_UNICODE |
b67a9327 | 1796 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1797 | #else |
f6bcfd97 | 1798 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1799 | #endif |
f6bcfd97 BP |
1800 | } |
1801 | { | |
1802 | if (_obj1) | |
1803 | delete _arg1; | |
1804 | } | |
1805 | return _resultobj; | |
1806 | } | |
1807 | ||
1808 | #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text) | |
1809 | static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1810 | PyObject * _resultobj; |
f6bcfd97 | 1811 | wxString * _result; |
8ab979d7 | 1812 | wxListItem * _arg0; |
1d99702e | 1813 | PyObject * _argo0 = 0; |
efc5f224 | 1814 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1815 | |
1816 | self = self; | |
f6bcfd97 | 1817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0)) |
8ab979d7 | 1818 | return NULL; |
1d99702e RD |
1819 | if (_argo0) { |
1820 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1821 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1823 | return NULL; |
1824 | } | |
1825 | } | |
cf694132 | 1826 | { |
474c48f9 | 1827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1828 | _result = (wxString *)wxListItem_m_text_get(_arg0); |
cf694132 | 1829 | |
474c48f9 | 1830 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1831 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1832 | }{ |
c8bc7bb8 | 1833 | #if wxUSE_UNICODE |
b67a9327 | 1834 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1835 | #else |
f6bcfd97 | 1836 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1837 | #endif |
f6bcfd97 | 1838 | } |
8ab979d7 RD |
1839 | return _resultobj; |
1840 | } | |
1841 | ||
f6bcfd97 BP |
1842 | #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval) |
1843 | static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1844 | PyObject * _resultobj; |
f6bcfd97 | 1845 | int _result; |
af309447 | 1846 | wxListItem * _arg0; |
f6bcfd97 | 1847 | int _arg1; |
1d99702e | 1848 | PyObject * _argo0 = 0; |
f6bcfd97 | 1849 | char *_kwnames[] = { "self","m_image", NULL }; |
af309447 RD |
1850 | |
1851 | self = self; | |
f6bcfd97 | 1852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1853 | return NULL; |
1d99702e RD |
1854 | if (_argo0) { |
1855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p."); |
af309447 RD |
1858 | return NULL; |
1859 | } | |
1860 | } | |
cf694132 | 1861 | { |
474c48f9 | 1862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1863 | _result = (int )wxListItem_m_image_set(_arg0,_arg1); |
cf694132 | 1864 | |
474c48f9 | 1865 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1866 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1867 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
1868 | return _resultobj; |
1869 | } | |
1870 | ||
f6bcfd97 BP |
1871 | #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image) |
1872 | static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1873 | PyObject * _resultobj; |
f6bcfd97 | 1874 | int _result; |
8ab979d7 | 1875 | wxListItem * _arg0; |
1d99702e | 1876 | PyObject * _argo0 = 0; |
efc5f224 | 1877 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1878 | |
1879 | self = self; | |
f6bcfd97 | 1880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0)) |
8ab979d7 | 1881 | return NULL; |
1d99702e RD |
1882 | if (_argo0) { |
1883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1886 | return NULL; |
1887 | } | |
1888 | } | |
cf694132 | 1889 | { |
474c48f9 | 1890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1891 | _result = (int )wxListItem_m_image_get(_arg0); |
cf694132 | 1892 | |
474c48f9 | 1893 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1894 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1895 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1896 | return _resultobj; |
1897 | } | |
1898 | ||
f6bcfd97 BP |
1899 | #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval) |
1900 | static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1901 | PyObject * _resultobj; |
f6bcfd97 | 1902 | long _result; |
af309447 | 1903 | wxListItem * _arg0; |
f6bcfd97 | 1904 | long _arg1; |
1d99702e | 1905 | PyObject * _argo0 = 0; |
f6bcfd97 | 1906 | char *_kwnames[] = { "self","m_data", NULL }; |
af309447 RD |
1907 | |
1908 | self = self; | |
f6bcfd97 | 1909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 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_data_set. Expected _wxListItem_p."); |
af309447 RD |
1915 | return NULL; |
1916 | } | |
1917 | } | |
cf694132 | 1918 | { |
474c48f9 | 1919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1920 | _result = (long )wxListItem_m_data_set(_arg0,_arg1); |
cf694132 | 1921 | |
474c48f9 | 1922 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1923 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1924 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
1925 | return _resultobj; |
1926 | } | |
1927 | ||
f6bcfd97 BP |
1928 | #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data) |
1929 | static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1930 | PyObject * _resultobj; |
f6bcfd97 | 1931 | long _result; |
8ab979d7 | 1932 | wxListItem * _arg0; |
1d99702e | 1933 | PyObject * _argo0 = 0; |
efc5f224 | 1934 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1935 | |
1936 | self = self; | |
f6bcfd97 | 1937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0)) |
8ab979d7 | 1938 | return NULL; |
1d99702e RD |
1939 | if (_argo0) { |
1940 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1941 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1943 | return NULL; |
1944 | } | |
1945 | } | |
cf694132 | 1946 | { |
474c48f9 | 1947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1948 | _result = (long )wxListItem_m_data_get(_arg0); |
cf694132 | 1949 | |
474c48f9 | 1950 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1951 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1952 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
1953 | return _resultobj; |
1954 | } | |
1955 | ||
f6bcfd97 BP |
1956 | #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval) |
1957 | static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1958 | PyObject * _resultobj; |
f6bcfd97 | 1959 | int _result; |
af309447 | 1960 | wxListItem * _arg0; |
f6bcfd97 | 1961 | int _arg1; |
1d99702e | 1962 | PyObject * _argo0 = 0; |
f6bcfd97 | 1963 | char *_kwnames[] = { "self","m_format", NULL }; |
af309447 RD |
1964 | |
1965 | self = self; | |
f6bcfd97 | 1966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1967 | return NULL; |
1d99702e RD |
1968 | if (_argo0) { |
1969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p."); |
af309447 RD |
1972 | return NULL; |
1973 | } | |
1974 | } | |
cf694132 | 1975 | { |
474c48f9 | 1976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1977 | _result = (int )wxListItem_m_format_set(_arg0,_arg1); |
cf694132 | 1978 | |
474c48f9 | 1979 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1980 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1981 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
1982 | return _resultobj; |
1983 | } | |
1984 | ||
f6bcfd97 BP |
1985 | #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format) |
1986 | static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1987 | PyObject * _resultobj; |
f6bcfd97 | 1988 | int _result; |
8ab979d7 | 1989 | wxListItem * _arg0; |
1d99702e | 1990 | PyObject * _argo0 = 0; |
efc5f224 | 1991 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1992 | |
1993 | self = self; | |
f6bcfd97 | 1994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0)) |
8ab979d7 | 1995 | return NULL; |
1d99702e RD |
1996 | if (_argo0) { |
1997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p."); |
8ab979d7 RD |
2000 | return NULL; |
2001 | } | |
2002 | } | |
cf694132 | 2003 | { |
474c48f9 | 2004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2005 | _result = (int )wxListItem_m_format_get(_arg0); |
cf694132 | 2006 | |
474c48f9 | 2007 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2008 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2009 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2010 | return _resultobj; |
2011 | } | |
2012 | ||
f6bcfd97 BP |
2013 | #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval) |
2014 | static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2015 | PyObject * _resultobj; |
f6bcfd97 | 2016 | int _result; |
af309447 | 2017 | wxListItem * _arg0; |
f6bcfd97 | 2018 | int _arg1; |
1d99702e | 2019 | PyObject * _argo0 = 0; |
f6bcfd97 | 2020 | char *_kwnames[] = { "self","m_width", NULL }; |
af309447 RD |
2021 | |
2022 | self = self; | |
f6bcfd97 | 2023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 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_width_set. Expected _wxListItem_p."); |
af309447 RD |
2029 | return NULL; |
2030 | } | |
2031 | } | |
cf694132 | 2032 | { |
474c48f9 | 2033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2034 | _result = (int )wxListItem_m_width_set(_arg0,_arg1); |
cf694132 | 2035 | |
474c48f9 | 2036 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2037 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2038 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2039 | return _resultobj; |
2040 | } | |
2041 | ||
f6bcfd97 BP |
2042 | #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width) |
2043 | static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2044 | PyObject * _resultobj; |
f6bcfd97 | 2045 | int _result; |
8ab979d7 | 2046 | wxListItem * _arg0; |
1d99702e | 2047 | PyObject * _argo0 = 0; |
efc5f224 | 2048 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2049 | |
2050 | self = self; | |
f6bcfd97 | 2051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0)) |
8ab979d7 | 2052 | return NULL; |
1d99702e RD |
2053 | if (_argo0) { |
2054 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2055 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p."); |
8ab979d7 RD |
2057 | return NULL; |
2058 | } | |
2059 | } | |
cf694132 | 2060 | { |
474c48f9 | 2061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2062 | _result = (int )wxListItem_m_width_get(_arg0); |
cf694132 | 2063 | |
474c48f9 | 2064 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2065 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2066 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2067 | return _resultobj; |
2068 | } | |
2069 | ||
c368d904 RD |
2070 | static void *SwigwxListEventTowxNotifyEvent(void *ptr) { |
2071 | wxListEvent *src; | |
2072 | wxNotifyEvent *dest; | |
2073 | src = (wxListEvent *) ptr; | |
2074 | dest = (wxNotifyEvent *) src; | |
2075 | return (void *) dest; | |
2076 | } | |
2077 | ||
f6bcfd97 BP |
2078 | static void *SwigwxListEventTowxCommandEvent(void *ptr) { |
2079 | wxListEvent *src; | |
2080 | wxCommandEvent *dest; | |
2081 | src = (wxListEvent *) ptr; | |
2082 | dest = (wxCommandEvent *) src; | |
2083 | return (void *) dest; | |
2084 | } | |
2085 | ||
2086 | static void *SwigwxListEventTowxEvent(void *ptr) { | |
2087 | wxListEvent *src; | |
2088 | wxEvent *dest; | |
2089 | src = (wxListEvent *) ptr; | |
2090 | dest = (wxEvent *) src; | |
2091 | return (void *) dest; | |
2092 | } | |
2093 | ||
9df61a29 RD |
2094 | static void *SwigwxListEventTowxObject(void *ptr) { |
2095 | wxListEvent *src; | |
2096 | wxObject *dest; | |
2097 | src = (wxListEvent *) ptr; | |
2098 | dest = (wxObject *) src; | |
2099 | return (void *) dest; | |
2100 | } | |
2101 | ||
059a841c RD |
2102 | #define new_wxListEvent(_swigarg0,_swigarg1) (new wxListEvent(_swigarg0,_swigarg1)) |
2103 | static PyObject *_wrap_new_wxListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2104 | PyObject * _resultobj; | |
2105 | wxListEvent * _result; | |
2106 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
2107 | int _arg1 = (int ) 0; | |
2108 | char *_kwnames[] = { "commandType","id", NULL }; | |
2109 | char _ptemp[128]; | |
2110 | ||
2111 | self = self; | |
2112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxListEvent",_kwnames,&_arg0,&_arg1)) | |
2113 | return NULL; | |
2114 | { | |
474c48f9 | 2115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2116 | _result = (wxListEvent *)new_wxListEvent(_arg0,_arg1); |
059a841c | 2117 | |
474c48f9 | 2118 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
2119 | if (PyErr_Occurred()) return NULL; |
2120 | } if (_result) { | |
2121 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListEvent_p"); | |
2122 | _resultobj = Py_BuildValue("s",_ptemp); | |
2123 | } else { | |
2124 | Py_INCREF(Py_None); | |
2125 | _resultobj = Py_None; | |
2126 | } | |
2127 | return _resultobj; | |
2128 | } | |
2129 | ||
f6bcfd97 BP |
2130 | #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code) |
2131 | static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2132 | PyObject * _resultobj; |
f6bcfd97 BP |
2133 | int _result; |
2134 | wxListEvent * _arg0; | |
1d99702e | 2135 | PyObject * _argo0 = 0; |
efc5f224 | 2136 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2137 | |
2138 | self = self; | |
f6bcfd97 | 2139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0)) |
8ab979d7 | 2140 | return NULL; |
1d99702e RD |
2141 | if (_argo0) { |
2142 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2143 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2145 | return NULL; |
2146 | } | |
2147 | } | |
8ab979d7 | 2148 | { |
474c48f9 | 2149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2150 | _result = (int )wxListEvent_m_code_get(_arg0); |
cf694132 | 2151 | |
474c48f9 | 2152 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2153 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2154 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2155 | return _resultobj; |
2156 | } | |
2157 | ||
6e8a778a RD |
2158 | #define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex) |
2159 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2160 | PyObject * _resultobj; |
f6bcfd97 BP |
2161 | long _result; |
2162 | wxListEvent * _arg0; | |
1d99702e | 2163 | PyObject * _argo0 = 0; |
efc5f224 | 2164 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2165 | |
2166 | self = self; | |
6e8a778a | 2167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0)) |
8ab979d7 | 2168 | return NULL; |
1d99702e RD |
2169 | if (_argo0) { |
2170 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2171 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p."); |
8ab979d7 RD |
2173 | return NULL; |
2174 | } | |
2175 | } | |
cf694132 | 2176 | { |
474c48f9 | 2177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2178 | _result = (long )wxListEvent_m_oldItemIndex_get(_arg0); |
cf694132 | 2179 | |
474c48f9 | 2180 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2181 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2182 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2183 | return _resultobj; |
2184 | } | |
2185 | ||
6e8a778a RD |
2186 | #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex) |
2187 | static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2188 | PyObject * _resultobj; |
6e8a778a | 2189 | long _result; |
f6bcfd97 | 2190 | wxListEvent * _arg0; |
1d99702e | 2191 | PyObject * _argo0 = 0; |
efc5f224 | 2192 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2193 | |
2194 | self = self; | |
6e8a778a | 2195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0)) |
8ab979d7 | 2196 | return NULL; |
1d99702e RD |
2197 | if (_argo0) { |
2198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p."); |
8ab979d7 RD |
2201 | return NULL; |
2202 | } | |
2203 | } | |
cf694132 | 2204 | { |
474c48f9 | 2205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2206 | _result = (long )wxListEvent_m_itemIndex_get(_arg0); |
cf694132 | 2207 | |
474c48f9 | 2208 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2209 | if (PyErr_Occurred()) return NULL; |
6e8a778a | 2210 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2211 | return _resultobj; |
2212 | } | |
2213 | ||
6e8a778a RD |
2214 | #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col) |
2215 | static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2216 | PyObject * _resultobj; |
6e8a778a | 2217 | int _result; |
f6bcfd97 | 2218 | wxListEvent * _arg0; |
1d99702e | 2219 | PyObject * _argo0 = 0; |
efc5f224 | 2220 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2221 | |
2222 | self = self; | |
6e8a778a | 2223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0)) |
8ab979d7 | 2224 | return NULL; |
1d99702e RD |
2225 | if (_argo0) { |
2226 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2227 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p."); |
8ab979d7 RD |
2229 | return NULL; |
2230 | } | |
2231 | } | |
cf694132 | 2232 | { |
474c48f9 | 2233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2234 | _result = (int )wxListEvent_m_col_get(_arg0); |
cf694132 | 2235 | |
474c48f9 | 2236 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2237 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2238 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2239 | return _resultobj; |
2240 | } | |
2241 | ||
f6bcfd97 BP |
2242 | #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag) |
2243 | static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2244 | PyObject * _resultobj; |
f6bcfd97 BP |
2245 | wxPoint * _result; |
2246 | wxListEvent * _arg0; | |
1d99702e | 2247 | PyObject * _argo0 = 0; |
efc5f224 | 2248 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2249 | char _ptemp[128]; |
8ab979d7 RD |
2250 | |
2251 | self = self; | |
f6bcfd97 | 2252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0)) |
8ab979d7 | 2253 | return NULL; |
1d99702e RD |
2254 | if (_argo0) { |
2255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2258 | return NULL; |
2259 | } | |
2260 | } | |
cf694132 | 2261 | { |
474c48f9 | 2262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2263 | _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0); |
cf694132 | 2264 | |
474c48f9 | 2265 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2266 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2267 | } if (_result) { |
2268 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
2269 | _resultobj = Py_BuildValue("s",_ptemp); | |
2270 | } else { | |
2271 | Py_INCREF(Py_None); | |
2272 | _resultobj = Py_None; | |
2273 | } | |
8ab979d7 RD |
2274 | return _resultobj; |
2275 | } | |
2276 | ||
f6bcfd97 BP |
2277 | #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item) |
2278 | static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2279 | PyObject * _resultobj; |
f6bcfd97 | 2280 | wxListItem * _result; |
af309447 | 2281 | wxListEvent * _arg0; |
1d99702e | 2282 | PyObject * _argo0 = 0; |
f6bcfd97 | 2283 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2284 | |
2285 | self = self; | |
f6bcfd97 | 2286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0)) |
af309447 | 2287 | return NULL; |
1d99702e RD |
2288 | if (_argo0) { |
2289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p."); |
af309447 RD |
2292 | return NULL; |
2293 | } | |
2294 | } | |
cf694132 | 2295 | { |
474c48f9 | 2296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2297 | _result = (wxListItem *)wxListEvent_m_item_get(_arg0); |
cf694132 | 2298 | |
474c48f9 | 2299 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2300 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2301 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
2302 | return _resultobj; |
2303 | } | |
2304 | ||
d99400b2 RD |
2305 | #define wxListEvent_GetKeyCode(_swigobj) (_swigobj->GetKeyCode()) |
2306 | static PyObject *_wrap_wxListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2307 | PyObject * _resultobj; |
2308 | int _result; | |
2309 | wxListEvent * _arg0; | |
1d99702e | 2310 | PyObject * _argo0 = 0; |
efc5f224 | 2311 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2312 | |
2313 | self = self; | |
d99400b2 | 2314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetKeyCode",_kwnames,&_argo0)) |
8ab979d7 | 2315 | return NULL; |
1d99702e RD |
2316 | if (_argo0) { |
2317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
d99400b2 | 2319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetKeyCode. Expected _wxListEvent_p."); |
8ab979d7 RD |
2320 | return NULL; |
2321 | } | |
2322 | } | |
cf694132 | 2323 | { |
474c48f9 | 2324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d99400b2 | 2325 | _result = (int )wxListEvent_GetKeyCode(_arg0); |
cf694132 | 2326 | |
474c48f9 | 2327 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2328 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2329 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2330 | return _resultobj; |
2331 | } | |
2332 | ||
f6bcfd97 BP |
2333 | #define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex()) |
2334 | static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2335 | PyObject * _resultobj; |
2336 | long _result; | |
2337 | wxListEvent * _arg0; | |
1d99702e | 2338 | PyObject * _argo0 = 0; |
f6bcfd97 | 2339 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2340 | |
2341 | self = self; | |
f6bcfd97 | 2342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0)) |
af309447 | 2343 | return NULL; |
1d99702e RD |
2344 | if (_argo0) { |
2345 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2346 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p."); |
af309447 RD |
2348 | return NULL; |
2349 | } | |
2350 | } | |
cf694132 | 2351 | { |
474c48f9 | 2352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2353 | _result = (long )wxListEvent_GetIndex(_arg0); |
cf694132 | 2354 | |
474c48f9 | 2355 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2356 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2357 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2358 | return _resultobj; |
2359 | } | |
2360 | ||
f6bcfd97 BP |
2361 | #define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn()) |
2362 | static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2363 | PyObject * _resultobj; |
f6bcfd97 | 2364 | int _result; |
8ab979d7 | 2365 | wxListEvent * _arg0; |
1d99702e | 2366 | PyObject * _argo0 = 0; |
efc5f224 | 2367 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2368 | |
2369 | self = self; | |
f6bcfd97 | 2370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0)) |
8ab979d7 | 2371 | return NULL; |
1d99702e RD |
2372 | if (_argo0) { |
2373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p."); |
8ab979d7 RD |
2376 | return NULL; |
2377 | } | |
2378 | } | |
cf694132 | 2379 | { |
474c48f9 | 2380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2381 | _result = (int )wxListEvent_GetColumn(_arg0); |
cf694132 | 2382 | |
474c48f9 | 2383 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2384 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2385 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2386 | return _resultobj; |
2387 | } | |
2388 | ||
f6bcfd97 BP |
2389 | #define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
2390 | static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2391 | PyObject * _resultobj; |
f6bcfd97 | 2392 | wxPoint * _result; |
8ab979d7 | 2393 | wxListEvent * _arg0; |
1d99702e | 2394 | PyObject * _argo0 = 0; |
efc5f224 | 2395 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2396 | char _ptemp[128]; |
8ab979d7 RD |
2397 | |
2398 | self = self; | |
f6bcfd97 | 2399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 2400 | return NULL; |
1d99702e RD |
2401 | if (_argo0) { |
2402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetPoint. Expected _wxListEvent_p."); |
8ab979d7 RD |
2405 | return NULL; |
2406 | } | |
2407 | } | |
cf694132 | 2408 | { |
474c48f9 | 2409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2410 | _result = new wxPoint (wxListEvent_GetPoint(_arg0)); |
cf694132 | 2411 | |
474c48f9 | 2412 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2413 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2414 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2415 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
2416 | return _resultobj; |
2417 | } | |
2418 | ||
f6bcfd97 BP |
2419 | #define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
2420 | static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2421 | PyObject * _resultobj; |
f6bcfd97 | 2422 | wxString * _result; |
af309447 | 2423 | wxListEvent * _arg0; |
1d99702e | 2424 | PyObject * _argo0 = 0; |
f6bcfd97 | 2425 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2426 | |
2427 | self = self; | |
f6bcfd97 | 2428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetLabel",_kwnames,&_argo0)) |
af309447 | 2429 | return NULL; |
1d99702e RD |
2430 | if (_argo0) { |
2431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetLabel. Expected _wxListEvent_p."); |
af309447 RD |
2434 | return NULL; |
2435 | } | |
2436 | } | |
cf694132 | 2437 | { |
474c48f9 | 2438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2439 | const wxString & _result_ref = wxListEvent_GetLabel(_arg0); |
f6bcfd97 | 2440 | _result = (wxString *) &_result_ref; |
cf694132 | 2441 | |
474c48f9 | 2442 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2443 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2444 | }{ |
c8bc7bb8 | 2445 | #if wxUSE_UNICODE |
b67a9327 | 2446 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2447 | #else |
f6bcfd97 | 2448 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2449 | #endif |
f6bcfd97 | 2450 | } |
af309447 RD |
2451 | return _resultobj; |
2452 | } | |
2453 | ||
f6bcfd97 BP |
2454 | #define wxListEvent_GetText(_swigobj) (_swigobj->GetText()) |
2455 | static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2456 | PyObject * _resultobj; |
f6bcfd97 | 2457 | wxString * _result; |
8ab979d7 | 2458 | wxListEvent * _arg0; |
1d99702e | 2459 | PyObject * _argo0 = 0; |
efc5f224 | 2460 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2461 | |
2462 | self = self; | |
f6bcfd97 | 2463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0)) |
8ab979d7 | 2464 | return NULL; |
1d99702e RD |
2465 | if (_argo0) { |
2466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p."); |
8ab979d7 RD |
2469 | return NULL; |
2470 | } | |
2471 | } | |
cf694132 | 2472 | { |
474c48f9 | 2473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2474 | const wxString & _result_ref = wxListEvent_GetText(_arg0); |
f6bcfd97 | 2475 | _result = (wxString *) &_result_ref; |
cf694132 | 2476 | |
474c48f9 | 2477 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2478 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2479 | }{ |
c8bc7bb8 | 2480 | #if wxUSE_UNICODE |
b67a9327 | 2481 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2482 | #else |
f6bcfd97 | 2483 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2484 | #endif |
f6bcfd97 | 2485 | } |
8ab979d7 RD |
2486 | return _resultobj; |
2487 | } | |
2488 | ||
f6bcfd97 BP |
2489 | #define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage()) |
2490 | static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2491 | PyObject * _resultobj; |
f6bcfd97 | 2492 | int _result; |
af309447 | 2493 | wxListEvent * _arg0; |
1d99702e | 2494 | PyObject * _argo0 = 0; |
f6bcfd97 | 2495 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2496 | |
2497 | self = self; | |
f6bcfd97 | 2498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0)) |
af309447 | 2499 | return NULL; |
1d99702e RD |
2500 | if (_argo0) { |
2501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p."); |
af309447 RD |
2504 | return NULL; |
2505 | } | |
2506 | } | |
cf694132 | 2507 | { |
474c48f9 | 2508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2509 | _result = (int )wxListEvent_GetImage(_arg0); |
cf694132 | 2510 | |
474c48f9 | 2511 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2512 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2513 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2514 | return _resultobj; |
2515 | } | |
2516 | ||
f6bcfd97 BP |
2517 | #define wxListEvent_GetData(_swigobj) (_swigobj->GetData()) |
2518 | static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2519 | PyObject * _resultobj; |
f6bcfd97 | 2520 | long _result; |
8ab979d7 | 2521 | wxListEvent * _arg0; |
1d99702e | 2522 | PyObject * _argo0 = 0; |
efc5f224 | 2523 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2524 | |
2525 | self = self; | |
f6bcfd97 | 2526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0)) |
8ab979d7 | 2527 | return NULL; |
1d99702e RD |
2528 | if (_argo0) { |
2529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p."); |
8ab979d7 RD |
2532 | return NULL; |
2533 | } | |
2534 | } | |
cf694132 | 2535 | { |
474c48f9 | 2536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2537 | _result = (long )wxListEvent_GetData(_arg0); |
cf694132 | 2538 | |
474c48f9 | 2539 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2540 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2541 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2542 | return _resultobj; |
2543 | } | |
2544 | ||
f6bcfd97 BP |
2545 | #define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask()) |
2546 | static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2547 | PyObject * _resultobj; |
f6bcfd97 | 2548 | long _result; |
af309447 | 2549 | wxListEvent * _arg0; |
1d99702e | 2550 | PyObject * _argo0 = 0; |
f6bcfd97 | 2551 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2552 | |
2553 | self = self; | |
f6bcfd97 | 2554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetMask",_kwnames,&_argo0)) |
af309447 | 2555 | return NULL; |
1d99702e RD |
2556 | if (_argo0) { |
2557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetMask. Expected _wxListEvent_p."); |
af309447 RD |
2560 | return NULL; |
2561 | } | |
2562 | } | |
cf694132 | 2563 | { |
474c48f9 | 2564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2565 | _result = (long )wxListEvent_GetMask(_arg0); |
cf694132 | 2566 | |
474c48f9 | 2567 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2568 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2569 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2570 | return _resultobj; |
2571 | } | |
2572 | ||
f6bcfd97 BP |
2573 | #define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
2574 | static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2575 | PyObject * _resultobj; |
2576 | wxListItem * _result; | |
2577 | wxListEvent * _arg0; | |
1d99702e | 2578 | PyObject * _argo0 = 0; |
efc5f224 | 2579 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2580 | |
2581 | self = self; | |
f6bcfd97 | 2582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 2583 | return NULL; |
1d99702e RD |
2584 | if (_argo0) { |
2585 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p."); |
8ab979d7 RD |
2588 | return NULL; |
2589 | } | |
2590 | } | |
cf694132 | 2591 | { |
474c48f9 | 2592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2593 | const wxListItem & _result_ref = wxListEvent_GetItem(_arg0); |
f6bcfd97 | 2594 | _result = (wxListItem *) &_result_ref; |
cf694132 | 2595 | |
474c48f9 | 2596 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2597 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2598 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2599 | return _resultobj; |
2600 | } | |
2601 | ||
059a841c RD |
2602 | #define wxListEvent_GetCacheFrom(_swigobj) (_swigobj->GetCacheFrom()) |
2603 | static PyObject *_wrap_wxListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2604 | PyObject * _resultobj; | |
2605 | long _result; | |
2606 | wxListEvent * _arg0; | |
2607 | PyObject * _argo0 = 0; | |
2608 | char *_kwnames[] = { "self", NULL }; | |
2609 | ||
2610 | self = self; | |
2611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheFrom",_kwnames,&_argo0)) | |
2612 | return NULL; | |
2613 | if (_argo0) { | |
2614 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheFrom. Expected _wxListEvent_p."); | |
2617 | return NULL; | |
2618 | } | |
2619 | } | |
2620 | { | |
474c48f9 | 2621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2622 | _result = (long )wxListEvent_GetCacheFrom(_arg0); |
059a841c | 2623 | |
474c48f9 | 2624 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
2625 | if (PyErr_Occurred()) return NULL; |
2626 | } _resultobj = Py_BuildValue("l",_result); | |
2627 | return _resultobj; | |
2628 | } | |
2629 | ||
2630 | #define wxListEvent_GetCacheTo(_swigobj) (_swigobj->GetCacheTo()) | |
2631 | static PyObject *_wrap_wxListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2632 | PyObject * _resultobj; | |
2633 | long _result; | |
2634 | wxListEvent * _arg0; | |
2635 | PyObject * _argo0 = 0; | |
2636 | char *_kwnames[] = { "self", NULL }; | |
2637 | ||
2638 | self = self; | |
2639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheTo",_kwnames,&_argo0)) | |
2640 | return NULL; | |
2641 | if (_argo0) { | |
2642 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2643 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheTo. Expected _wxListEvent_p."); | |
2645 | return NULL; | |
2646 | } | |
2647 | } | |
2648 | { | |
474c48f9 | 2649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2650 | _result = (long )wxListEvent_GetCacheTo(_arg0); |
059a841c | 2651 | |
474c48f9 | 2652 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
2653 | if (PyErr_Occurred()) return NULL; |
2654 | } _resultobj = Py_BuildValue("l",_result); | |
2655 | return _resultobj; | |
2656 | } | |
2657 | ||
cd096152 RD |
2658 | static void *SwigwxPyListCtrlTowxControl(void *ptr) { |
2659 | wxPyListCtrl *src; | |
8ab979d7 | 2660 | wxControl *dest; |
cd096152 | 2661 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2662 | dest = (wxControl *) src; |
2663 | return (void *) dest; | |
2664 | } | |
2665 | ||
cd096152 RD |
2666 | static void *SwigwxPyListCtrlTowxWindow(void *ptr) { |
2667 | wxPyListCtrl *src; | |
8ab979d7 | 2668 | wxWindow *dest; |
cd096152 | 2669 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2670 | dest = (wxWindow *) src; |
2671 | return (void *) dest; | |
2672 | } | |
2673 | ||
cd096152 RD |
2674 | static void *SwigwxPyListCtrlTowxEvtHandler(void *ptr) { |
2675 | wxPyListCtrl *src; | |
8ab979d7 | 2676 | wxEvtHandler *dest; |
cd096152 | 2677 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2678 | dest = (wxEvtHandler *) src; |
2679 | return (void *) dest; | |
2680 | } | |
2681 | ||
cd096152 RD |
2682 | static void *SwigwxPyListCtrlTowxObject(void *ptr) { |
2683 | wxPyListCtrl *src; | |
9df61a29 | 2684 | wxObject *dest; |
cd096152 | 2685 | src = (wxPyListCtrl *) ptr; |
9df61a29 RD |
2686 | dest = (wxObject *) src; |
2687 | return (void *) dest; | |
2688 | } | |
2689 | ||
cd096152 | 2690 | #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 2691 | static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 2692 | PyObject * _resultobj; |
cd096152 | 2693 | wxPyListCtrl * _result; |
8ab979d7 | 2694 | wxWindow * _arg0; |
cd096152 | 2695 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
2696 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
2697 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2c8a649d | 2698 | long _arg4 = (long ) (wxLC_ICON); |
b68dc582 | 2699 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 2700 | wxString * _arg6 = (wxString *) &wxPyListCtrlNameStr; |
1d99702e | 2701 | PyObject * _argo0 = 0; |
2f90df85 RD |
2702 | wxPoint temp; |
2703 | PyObject * _obj2 = 0; | |
2704 | wxSize temp0; | |
2705 | PyObject * _obj3 = 0; | |
1d99702e | 2706 | PyObject * _argo5 = 0; |
9a74fcaf | 2707 | PyObject * _obj6 = 0; |
efc5f224 | 2708 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
2709 | char _ptemp[128]; |
2710 | ||
2711 | self = self; | |
9a74fcaf | 2712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) |
8ab979d7 | 2713 | return NULL; |
1d99702e RD |
2714 | if (_argo0) { |
2715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p."); |
2718 | return NULL; | |
2719 | } | |
2720 | } | |
2f90df85 RD |
2721 | if (_obj2) |
2722 | { | |
2723 | _arg2 = &temp; | |
2724 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 2725 | return NULL; |
2f90df85 RD |
2726 | } |
2727 | if (_obj3) | |
2728 | { | |
2729 | _arg3 = &temp0; | |
2730 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 2731 | return NULL; |
2f90df85 | 2732 | } |
1d99702e | 2733 | if (_argo5) { |
b67a9327 | 2734 | if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { |
8ab979d7 RD |
2735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p."); |
2736 | return NULL; | |
2737 | } | |
2738 | } | |
9a74fcaf RD |
2739 | if (_obj6) |
2740 | { | |
2741 | _arg6 = wxString_in_helper(_obj6); | |
2742 | if (_arg6 == NULL) | |
2743 | return NULL; | |
2744 | } | |
cf694132 | 2745 | { |
474c48f9 | 2746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 2747 | _result = (wxPyListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
cf694132 | 2748 | |
474c48f9 | 2749 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2750 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2751 | } if (_result) { |
cd096152 | 2752 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); |
1d99702e RD |
2753 | _resultobj = Py_BuildValue("s",_ptemp); |
2754 | } else { | |
2755 | Py_INCREF(Py_None); | |
2756 | _resultobj = Py_None; | |
2757 | } | |
9a74fcaf RD |
2758 | { |
2759 | if (_obj6) | |
2760 | delete _arg6; | |
2761 | } | |
8ab979d7 RD |
2762 | return _resultobj; |
2763 | } | |
2764 | ||
aa2a5b86 RD |
2765 | #define new_wxPreListCtrl() (new wxPyListCtrl()) |
2766 | static PyObject *_wrap_new_wxPreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2767 | PyObject * _resultobj; | |
2768 | wxPyListCtrl * _result; | |
2769 | char *_kwnames[] = { NULL }; | |
2770 | char _ptemp[128]; | |
2771 | ||
2772 | self = self; | |
2773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListCtrl",_kwnames)) | |
2774 | return NULL; | |
2775 | { | |
474c48f9 | 2776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2777 | _result = (wxPyListCtrl *)new_wxPreListCtrl(); |
aa2a5b86 | 2778 | |
474c48f9 | 2779 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
2780 | if (PyErr_Occurred()) return NULL; |
2781 | } if (_result) { | |
2782 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); | |
2783 | _resultobj = Py_BuildValue("s",_ptemp); | |
2784 | } else { | |
2785 | Py_INCREF(Py_None); | |
2786 | _resultobj = Py_None; | |
2787 | } | |
2788 | return _resultobj; | |
2789 | } | |
2790 | ||
2791 | #define wxListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
2792 | static PyObject *_wrap_wxListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2793 | PyObject * _resultobj; | |
2794 | bool _result; | |
2795 | wxPyListCtrl * _arg0; | |
2796 | wxWindow * _arg1; | |
2797 | wxWindowID _arg2 = (wxWindowID ) -1; | |
2798 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
2799 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2800 | long _arg5 = (long ) (wxLC_ICON); | |
2801 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 2802 | wxString * _arg7 = (wxString *) &wxPyListCtrlNameStr; |
aa2a5b86 RD |
2803 | PyObject * _argo0 = 0; |
2804 | PyObject * _argo1 = 0; | |
2805 | wxPoint temp; | |
2806 | PyObject * _obj3 = 0; | |
2807 | wxSize temp0; | |
2808 | PyObject * _obj4 = 0; | |
2809 | PyObject * _argo6 = 0; | |
9a74fcaf | 2810 | PyObject * _obj7 = 0; |
aa2a5b86 RD |
2811 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; |
2812 | ||
2813 | self = self; | |
9a74fcaf | 2814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
aa2a5b86 RD |
2815 | return NULL; |
2816 | if (_argo0) { | |
2817 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2818 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
2819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Create. Expected _wxPyListCtrl_p."); | |
2820 | return NULL; | |
2821 | } | |
2822 | } | |
2823 | if (_argo1) { | |
2824 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2825 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_Create. Expected _wxWindow_p."); | |
2827 | return NULL; | |
2828 | } | |
2829 | } | |
2830 | if (_obj3) | |
2831 | { | |
2832 | _arg3 = &temp; | |
2833 | if (! wxPoint_helper(_obj3, &_arg3)) | |
2834 | return NULL; | |
2835 | } | |
2836 | if (_obj4) | |
2837 | { | |
2838 | _arg4 = &temp0; | |
2839 | if (! wxSize_helper(_obj4, &_arg4)) | |
2840 | return NULL; | |
2841 | } | |
2842 | if (_argo6) { | |
b67a9327 | 2843 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { |
aa2a5b86 RD |
2844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListCtrl_Create. Expected _wxValidator_p."); |
2845 | return NULL; | |
2846 | } | |
2847 | } | |
9a74fcaf RD |
2848 | if (_obj7) |
2849 | { | |
2850 | _arg7 = wxString_in_helper(_obj7); | |
2851 | if (_arg7 == NULL) | |
2852 | return NULL; | |
2853 | } | |
aa2a5b86 | 2854 | { |
474c48f9 | 2855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 2856 | _result = (bool )wxListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
aa2a5b86 | 2857 | |
474c48f9 | 2858 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
2859 | if (PyErr_Occurred()) return NULL; |
2860 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
2861 | { |
2862 | if (_obj7) | |
2863 | delete _arg7; | |
2864 | } | |
aa2a5b86 RD |
2865 | return _resultobj; |
2866 | } | |
2867 | ||
0220cbc1 RD |
2868 | #define wxListCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
2869 | static PyObject *_wrap_wxListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2870 | PyObject * _resultobj; |
cd096152 RD |
2871 | wxPyListCtrl * _arg0; |
2872 | PyObject * _arg1; | |
2873 | PyObject * _arg2; | |
1d99702e | 2874 | PyObject * _argo0 = 0; |
cd096152 RD |
2875 | PyObject * _obj1 = 0; |
2876 | PyObject * _obj2 = 0; | |
2877 | char *_kwnames[] = { "self","self","_class", NULL }; | |
8ab979d7 RD |
2878 | |
2879 | self = self; | |
0220cbc1 | 2880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxListCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 2881 | return NULL; |
1d99702e RD |
2882 | if (_argo0) { |
2883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 | 2884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
0220cbc1 | 2885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl__setCallbackInfo. Expected _wxPyListCtrl_p."); |
8ab979d7 RD |
2886 | return NULL; |
2887 | } | |
2888 | } | |
cd096152 RD |
2889 | { |
2890 | _arg1 = _obj1; | |
2891 | } | |
2892 | { | |
2893 | _arg2 = _obj2; | |
2894 | } | |
cf694132 | 2895 | { |
474c48f9 | 2896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2897 | wxListCtrl__setCallbackInfo(_arg0,_arg1,_arg2); |
cf694132 | 2898 | |
474c48f9 | 2899 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2900 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
2901 | } Py_INCREF(Py_None); |
2902 | _resultobj = Py_None; | |
8ab979d7 RD |
2903 | return _resultobj; |
2904 | } | |
2905 | ||
cd096152 RD |
2906 | #define wxListCtrl_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) |
2907 | static PyObject *_wrap_wxListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c4165ad | 2908 | PyObject * _resultobj; |
cd096152 RD |
2909 | bool _result; |
2910 | wxPyListCtrl * _arg0; | |
2911 | wxColour * _arg1; | |
9c4165ad | 2912 | PyObject * _argo0 = 0; |
cd096152 RD |
2913 | wxColour temp; |
2914 | PyObject * _obj1 = 0; | |
2915 | char *_kwnames[] = { "self","col", NULL }; | |
9c4165ad RD |
2916 | |
2917 | self = self; | |
cd096152 | 2918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
9c4165ad RD |
2919 | return NULL; |
2920 | if (_argo0) { | |
2921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
2922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
2923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetForegroundColour. Expected _wxPyListCtrl_p."); | |
9c4165ad RD |
2924 | return NULL; |
2925 | } | |
2926 | } | |
cd096152 RD |
2927 | { |
2928 | _arg1 = &temp; | |
2929 | if (! wxColour_helper(_obj1, &_arg1)) | |
2930 | return NULL; | |
2931 | } | |
2932 | { | |
474c48f9 | 2933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2934 | _result = (bool )wxListCtrl_SetForegroundColour(_arg0,*_arg1); |
cd096152 | 2935 | |
474c48f9 | 2936 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
2937 | if (PyErr_Occurred()) return NULL; |
2938 | } _resultobj = Py_BuildValue("i",_result); | |
2939 | return _resultobj; | |
2940 | } | |
2941 | ||
2942 | #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
2943 | static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2944 | PyObject * _resultobj; | |
2945 | bool _result; | |
2946 | wxPyListCtrl * _arg0; | |
2947 | wxColour * _arg1; | |
2948 | PyObject * _argo0 = 0; | |
2949 | wxColour temp; | |
2950 | PyObject * _obj1 = 0; | |
2951 | char *_kwnames[] = { "self","col", NULL }; | |
2952 | ||
2953 | self = self; | |
2954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
2955 | return NULL; | |
2956 | if (_argo0) { | |
2957 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2958 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
2959 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxPyListCtrl_p."); | |
9c4165ad RD |
2960 | return NULL; |
2961 | } | |
2962 | } | |
cd096152 RD |
2963 | { |
2964 | _arg1 = &temp; | |
2965 | if (! wxColour_helper(_obj1, &_arg1)) | |
2966 | return NULL; | |
2967 | } | |
9c4165ad | 2968 | { |
474c48f9 | 2969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2970 | _result = (bool )wxListCtrl_SetBackgroundColour(_arg0,*_arg1); |
9c4165ad | 2971 | |
474c48f9 | 2972 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2973 | if (PyErr_Occurred()) return NULL; |
cd096152 | 2974 | } _resultobj = Py_BuildValue("i",_result); |
9c4165ad RD |
2975 | return _resultobj; |
2976 | } | |
2977 | ||
94082a71 RD |
2978 | static wxListItem * wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col) { |
2979 | wxListItem item; | |
9f873a51 | 2980 | item.SetMask(0xFFFF); |
94082a71 RD |
2981 | if (self->GetColumn(col, item)) |
2982 | return new wxListItem(item); | |
2983 | else | |
2984 | return NULL; | |
2985 | } | |
cd096152 | 2986 | static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 2987 | PyObject * _resultobj; |
94082a71 | 2988 | wxListItem * _result; |
cd096152 RD |
2989 | wxPyListCtrl * _arg0; |
2990 | int _arg1; | |
1d99702e | 2991 | PyObject * _argo0 = 0; |
94082a71 | 2992 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
2993 | |
2994 | self = self; | |
94082a71 | 2995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2996 | return NULL; |
1d99702e RD |
2997 | if (_argo0) { |
2998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
2999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxPyListCtrl_p."); | |
3001 | return NULL; | |
3002 | } | |
3003 | } | |
cf694132 | 3004 | { |
474c48f9 | 3005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3006 | _result = (wxListItem *)wxPyListCtrl_GetColumn(_arg0,_arg1); |
cf694132 | 3007 | |
474c48f9 | 3008 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3009 | if (PyErr_Occurred()) return NULL; |
94082a71 | 3010 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
3011 | return _resultobj; |
3012 | } | |
3013 | ||
cd096152 RD |
3014 | #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1)) |
3015 | static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3016 | PyObject * _resultobj; |
3017 | bool _result; | |
cd096152 RD |
3018 | wxPyListCtrl * _arg0; |
3019 | int _arg1; | |
3020 | wxListItem * _arg2; | |
1d99702e | 3021 | PyObject * _argo0 = 0; |
cd096152 RD |
3022 | PyObject * _argo2 = 0; |
3023 | char *_kwnames[] = { "self","col","item", NULL }; | |
8ab979d7 RD |
3024 | |
3025 | self = self; | |
cd096152 | 3026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3027 | return NULL; |
1d99702e RD |
3028 | if (_argo0) { |
3029 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3030 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxPyListCtrl_p."); | |
3032 | return NULL; | |
3033 | } | |
3034 | } | |
3035 | if (_argo2) { | |
b67a9327 | 3036 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { |
cd096152 | 3037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p."); |
8ab979d7 RD |
3038 | return NULL; |
3039 | } | |
3040 | } | |
cf694132 | 3041 | { |
474c48f9 | 3042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3043 | _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2); |
cf694132 | 3044 | |
474c48f9 | 3045 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3046 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3047 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3048 | return _resultobj; |
3049 | } | |
3050 | ||
cd096152 RD |
3051 | #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0)) |
3052 | static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3053 | PyObject * _resultobj; |
cd096152 RD |
3054 | int _result; |
3055 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3056 | int _arg1; |
1d99702e | 3057 | PyObject * _argo0 = 0; |
efc5f224 | 3058 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3059 | |
3060 | self = self; | |
cd096152 | 3061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3062 | return NULL; |
1d99702e RD |
3063 | if (_argo0) { |
3064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3067 | return NULL; |
3068 | } | |
3069 | } | |
cf694132 | 3070 | { |
474c48f9 | 3071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3072 | _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1); |
cf694132 | 3073 | |
474c48f9 | 3074 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3075 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3076 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3077 | return _resultobj; |
3078 | } | |
3079 | ||
cd096152 RD |
3080 | #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1)) |
3081 | static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3082 | PyObject * _resultobj; |
3083 | bool _result; | |
cd096152 RD |
3084 | wxPyListCtrl * _arg0; |
3085 | int _arg1; | |
3086 | int _arg2; | |
1d99702e | 3087 | PyObject * _argo0 = 0; |
cd096152 | 3088 | char *_kwnames[] = { "self","col","width", NULL }; |
8ab979d7 RD |
3089 | |
3090 | self = self; | |
cd096152 | 3091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3092 | return NULL; |
1d99702e RD |
3093 | if (_argo0) { |
3094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3097 | return NULL; |
3098 | } | |
3099 | } | |
cf694132 | 3100 | { |
474c48f9 | 3101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3102 | _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2); |
cf694132 | 3103 | |
474c48f9 | 3104 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3105 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3106 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3107 | return _resultobj; |
3108 | } | |
3109 | ||
cd096152 RD |
3110 | #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage()) |
3111 | static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3112 | PyObject * _resultobj; |
cd096152 RD |
3113 | int _result; |
3114 | wxPyListCtrl * _arg0; | |
1d99702e | 3115 | PyObject * _argo0 = 0; |
efc5f224 | 3116 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3117 | |
3118 | self = self; | |
cd096152 | 3119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0)) |
8ab979d7 | 3120 | return NULL; |
1d99702e RD |
3121 | if (_argo0) { |
3122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3125 | return NULL; |
3126 | } | |
3127 | } | |
cf694132 | 3128 | { |
474c48f9 | 3129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3130 | _result = (int )wxListCtrl_GetCountPerPage(_arg0); |
cf694132 | 3131 | |
474c48f9 | 3132 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3133 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3134 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3135 | return _resultobj; |
3136 | } | |
3137 | ||
1a8372ba RD |
3138 | #define wxListCtrl_GetViewRect(_swigobj) (_swigobj->GetViewRect()) |
3139 | static PyObject *_wrap_wxListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3140 | PyObject * _resultobj; | |
3141 | wxRect * _result; | |
3142 | wxPyListCtrl * _arg0; | |
3143 | PyObject * _argo0 = 0; | |
3144 | char *_kwnames[] = { "self", NULL }; | |
3145 | char _ptemp[128]; | |
3146 | ||
3147 | self = self; | |
3148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetViewRect",_kwnames,&_argo0)) | |
3149 | return NULL; | |
3150 | if (_argo0) { | |
3151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetViewRect. Expected _wxPyListCtrl_p."); | |
3154 | return NULL; | |
3155 | } | |
3156 | } | |
3157 | { | |
3158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3159 | _result = new wxRect (wxListCtrl_GetViewRect(_arg0)); | |
3160 | ||
3161 | wxPyEndAllowThreads(__tstate); | |
3162 | if (PyErr_Occurred()) return NULL; | |
3163 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
3164 | _resultobj = Py_BuildValue("s",_ptemp); | |
3165 | return _resultobj; | |
3166 | } | |
3167 | ||
cd096152 RD |
3168 | static wxListItem * wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col) { |
3169 | wxListItem* info = new wxListItem; | |
3170 | info->m_itemId = itemId; | |
3171 | info->m_col = col; | |
3172 | info->m_mask = 0xFFFF; | |
3173 | self->GetItem(*info); | |
3174 | return info; | |
3175 | } | |
3176 | static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3177 | PyObject * _resultobj; |
cd096152 RD |
3178 | wxListItem * _result; |
3179 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3180 | long _arg1; |
cd096152 | 3181 | int _arg2 = (int ) 0; |
1d99702e | 3182 | PyObject * _argo0 = 0; |
cd096152 | 3183 | char *_kwnames[] = { "self","itemId","col", NULL }; |
8ab979d7 RD |
3184 | |
3185 | self = self; | |
cd096152 | 3186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3187 | return NULL; |
1d99702e RD |
3188 | if (_argo0) { |
3189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3192 | return NULL; |
3193 | } | |
3194 | } | |
cf694132 | 3195 | { |
474c48f9 | 3196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3197 | _result = (wxListItem *)wxPyListCtrl_GetItem(_arg0,_arg1,_arg2); |
cf694132 | 3198 | |
474c48f9 | 3199 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3200 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3201 | }{ _resultobj = wxPyMake_wxObject(_result); } |
be4d9c1f RD |
3202 | return _resultobj; |
3203 | } | |
3204 | ||
cd096152 RD |
3205 | #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) |
3206 | static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3207 | PyObject * _resultobj; |
3208 | bool _result; | |
cd096152 RD |
3209 | wxPyListCtrl * _arg0; |
3210 | wxListItem * _arg1; | |
1d99702e | 3211 | PyObject * _argo0 = 0; |
cd096152 RD |
3212 | PyObject * _argo1 = 0; |
3213 | char *_kwnames[] = { "self","info", NULL }; | |
8ab979d7 RD |
3214 | |
3215 | self = self; | |
cd096152 | 3216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3217 | return NULL; |
1d99702e RD |
3218 | if (_argo0) { |
3219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxPyListCtrl_p."); | |
3222 | return NULL; | |
3223 | } | |
3224 | } | |
3225 | if (_argo1) { | |
b67a9327 | 3226 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { |
cd096152 | 3227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p."); |
8ab979d7 RD |
3228 | return NULL; |
3229 | } | |
3230 | } | |
cf694132 | 3231 | { |
474c48f9 | 3232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3233 | _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1); |
cf694132 | 3234 | |
474c48f9 | 3235 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3236 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3237 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3238 | return _resultobj; |
3239 | } | |
3240 | ||
cd096152 RD |
3241 | #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3242 | static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3243 | PyObject * _resultobj; |
3244 | long _result; | |
cd096152 | 3245 | wxPyListCtrl * _arg0; |
8ab979d7 | 3246 | long _arg1; |
cd096152 RD |
3247 | int _arg2; |
3248 | wxString * _arg3; | |
3249 | int _arg4 = (int ) -1; | |
1d99702e | 3250 | PyObject * _argo0 = 0; |
cd096152 RD |
3251 | PyObject * _obj3 = 0; |
3252 | char *_kwnames[] = { "self","index","col","label","imageId", NULL }; | |
8ab979d7 RD |
3253 | |
3254 | self = self; | |
cd096152 | 3255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
8ab979d7 | 3256 | return NULL; |
1d99702e RD |
3257 | if (_argo0) { |
3258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3261 | return NULL; |
3262 | } | |
3263 | } | |
3264 | { | |
c8bc7bb8 RD |
3265 | _arg3 = wxString_in_helper(_obj3); |
3266 | if (_arg3 == NULL) | |
2cd2fac8 | 3267 | return NULL; |
8ab979d7 | 3268 | } |
cf694132 | 3269 | { |
474c48f9 | 3270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3271 | _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4); |
cf694132 | 3272 | |
474c48f9 | 3273 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3274 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3275 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 3276 | { |
cd096152 RD |
3277 | if (_obj3) |
3278 | delete _arg3; | |
8ab979d7 RD |
3279 | } |
3280 | return _resultobj; | |
3281 | } | |
3282 | ||
cd096152 RD |
3283 | #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1)) |
3284 | static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3285 | PyObject * _resultobj; |
cd096152 RD |
3286 | int _result; |
3287 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
3288 | long _arg1; |
3289 | long _arg2; | |
1d99702e | 3290 | PyObject * _argo0 = 0; |
cd096152 | 3291 | char *_kwnames[] = { "self","item","stateMask", NULL }; |
8ab979d7 RD |
3292 | |
3293 | self = self; | |
cd096152 | 3294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3295 | return NULL; |
1d99702e RD |
3296 | if (_argo0) { |
3297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3300 | return NULL; |
3301 | } | |
3302 | } | |
cf694132 | 3303 | { |
474c48f9 | 3304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3305 | _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2); |
cf694132 | 3306 | |
474c48f9 | 3307 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3308 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3309 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3310 | return _resultobj; |
3311 | } | |
3312 | ||
cd096152 RD |
3313 | #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2)) |
3314 | static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3315 | PyObject * _resultobj; |
cd096152 RD |
3316 | bool _result; |
3317 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3318 | long _arg1; |
cd096152 RD |
3319 | long _arg2; |
3320 | long _arg3; | |
1d99702e | 3321 | PyObject * _argo0 = 0; |
cd096152 | 3322 | char *_kwnames[] = { "self","item","state","stateMask", NULL }; |
8ab979d7 RD |
3323 | |
3324 | self = self; | |
cd096152 | 3325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3326 | return NULL; |
1d99702e RD |
3327 | if (_argo0) { |
3328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3331 | return NULL; |
3332 | } | |
3333 | } | |
cf694132 | 3334 | { |
474c48f9 | 3335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3336 | _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3337 | |
474c48f9 | 3338 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3339 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3340 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3341 | return _resultobj; |
3342 | } | |
3343 | ||
cd096152 RD |
3344 | #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
3345 | static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3346 | PyObject * _resultobj; |
3347 | bool _result; | |
cd096152 RD |
3348 | wxPyListCtrl * _arg0; |
3349 | long _arg1; | |
3350 | int _arg2; | |
3351 | int _arg3; | |
1d99702e | 3352 | PyObject * _argo0 = 0; |
cd096152 | 3353 | char *_kwnames[] = { "self","item","image","selImage", NULL }; |
8ab979d7 RD |
3354 | |
3355 | self = self; | |
cd096152 | 3356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3357 | return NULL; |
1d99702e RD |
3358 | if (_argo0) { |
3359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3362 | return NULL; |
3363 | } | |
3364 | } | |
cf694132 | 3365 | { |
474c48f9 | 3366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3367 | _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3368 | |
474c48f9 | 3369 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3370 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3371 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3372 | return _resultobj; |
3373 | } | |
3374 | ||
cd096152 RD |
3375 | #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
3376 | static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3377 | PyObject * _resultobj; |
cd096152 RD |
3378 | wxString * _result; |
3379 | wxPyListCtrl * _arg0; | |
3380 | long _arg1; | |
1d99702e | 3381 | PyObject * _argo0 = 0; |
cd096152 | 3382 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3383 | |
3384 | self = self; | |
cd096152 | 3385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3386 | return NULL; |
1d99702e RD |
3387 | if (_argo0) { |
3388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3391 | return NULL; |
3392 | } | |
3393 | } | |
cf694132 | 3394 | { |
474c48f9 | 3395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3396 | _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1)); |
cf694132 | 3397 | |
474c48f9 | 3398 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3399 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3400 | }{ |
c8bc7bb8 | 3401 | #if wxUSE_UNICODE |
b67a9327 | 3402 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3403 | #else |
cd096152 | 3404 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3405 | #endif |
cd096152 RD |
3406 | } |
3407 | { | |
3408 | delete _result; | |
3409 | } | |
8ab979d7 RD |
3410 | return _resultobj; |
3411 | } | |
3412 | ||
cd096152 RD |
3413 | #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
3414 | static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3415 | PyObject * _resultobj; |
cd096152 RD |
3416 | wxPyListCtrl * _arg0; |
3417 | long _arg1; | |
3418 | wxString * _arg2; | |
1d99702e | 3419 | PyObject * _argo0 = 0; |
cd096152 RD |
3420 | PyObject * _obj2 = 0; |
3421 | char *_kwnames[] = { "self","item","str", NULL }; | |
8ab979d7 RD |
3422 | |
3423 | self = self; | |
cd096152 | 3424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3425 | return NULL; |
1d99702e RD |
3426 | if (_argo0) { |
3427 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3428 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3430 | return NULL; |
3431 | } | |
3432 | } | |
cf694132 | 3433 | { |
c8bc7bb8 RD |
3434 | _arg2 = wxString_in_helper(_obj2); |
3435 | if (_arg2 == NULL) | |
8ab979d7 | 3436 | return NULL; |
cd096152 | 3437 | } |
cf694132 | 3438 | { |
474c48f9 | 3439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3440 | wxListCtrl_SetItemText(_arg0,_arg1,*_arg2); |
cf694132 | 3441 | |
474c48f9 | 3442 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3443 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3444 | } Py_INCREF(Py_None); |
3445 | _resultobj = Py_None; | |
3446 | { | |
3447 | if (_obj2) | |
3448 | delete _arg2; | |
3449 | } | |
8ab979d7 RD |
3450 | return _resultobj; |
3451 | } | |
3452 | ||
3453 | #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0)) | |
efc5f224 | 3454 | static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3455 | PyObject * _resultobj; |
3456 | long _result; | |
cd096152 | 3457 | wxPyListCtrl * _arg0; |
8ab979d7 | 3458 | long _arg1; |
1d99702e | 3459 | PyObject * _argo0 = 0; |
efc5f224 | 3460 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3461 | |
3462 | self = self; | |
efc5f224 | 3463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3464 | return NULL; |
1d99702e RD |
3465 | if (_argo0) { |
3466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3469 | return NULL; |
3470 | } | |
3471 | } | |
cf694132 | 3472 | { |
474c48f9 | 3473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3474 | _result = (long )wxListCtrl_GetItemData(_arg0,_arg1); |
cf694132 | 3475 | |
474c48f9 | 3476 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3477 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3478 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
3479 | return _resultobj; |
3480 | } | |
3481 | ||
cd096152 RD |
3482 | #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1)) |
3483 | static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3484 | PyObject * _resultobj; |
cd096152 RD |
3485 | bool _result; |
3486 | wxPyListCtrl * _arg0; | |
0699c864 | 3487 | long _arg1; |
cd096152 | 3488 | long _arg2; |
1d99702e | 3489 | PyObject * _argo0 = 0; |
cd096152 | 3490 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
3491 | |
3492 | self = self; | |
cd096152 | 3493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3494 | return NULL; |
1d99702e RD |
3495 | if (_argo0) { |
3496 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3497 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3499 | return NULL; |
3500 | } | |
3501 | } | |
cf694132 | 3502 | { |
474c48f9 | 3503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3504 | _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2); |
cf694132 | 3505 | |
474c48f9 | 3506 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3507 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3508 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3509 | return _resultobj; |
3510 | } | |
3511 | ||
cd096152 | 3512 | static wxPoint * wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item) { |
8ab979d7 RD |
3513 | wxPoint* pos = new wxPoint; |
3514 | self->GetItemPosition(item, *pos); | |
3515 | return pos; | |
3516 | } | |
efc5f224 | 3517 | static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3518 | PyObject * _resultobj; |
3519 | wxPoint * _result; | |
cd096152 | 3520 | wxPyListCtrl * _arg0; |
8ab979d7 | 3521 | long _arg1; |
1d99702e | 3522 | PyObject * _argo0 = 0; |
efc5f224 | 3523 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3524 | char _ptemp[128]; |
3525 | ||
3526 | self = self; | |
efc5f224 | 3527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3528 | return NULL; |
1d99702e RD |
3529 | if (_argo0) { |
3530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3533 | return NULL; |
3534 | } | |
3535 | } | |
cf694132 | 3536 | { |
474c48f9 | 3537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3538 | _result = (wxPoint *)wxPyListCtrl_GetItemPosition(_arg0,_arg1); |
cf694132 | 3539 | |
474c48f9 | 3540 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3541 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3542 | } if (_result) { |
3543 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
3544 | _resultobj = Py_BuildValue("s",_ptemp); | |
3545 | } else { | |
3546 | Py_INCREF(Py_None); | |
3547 | _resultobj = Py_None; | |
3548 | } | |
8ab979d7 RD |
3549 | return _resultobj; |
3550 | } | |
3551 | ||
cd096152 | 3552 | static wxRect * wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code) { |
8ab979d7 RD |
3553 | wxRect* rect= new wxRect; |
3554 | self->GetItemRect(item, *rect, code); | |
3555 | return rect; | |
3556 | } | |
efc5f224 | 3557 | static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3558 | PyObject * _resultobj; |
3559 | wxRect * _result; | |
cd096152 | 3560 | wxPyListCtrl * _arg0; |
8ab979d7 | 3561 | long _arg1; |
1d99702e RD |
3562 | int _arg2 = (int ) (wxLIST_RECT_BOUNDS); |
3563 | PyObject * _argo0 = 0; | |
efc5f224 | 3564 | char *_kwnames[] = { "self","item","code", NULL }; |
8ab979d7 RD |
3565 | char _ptemp[128]; |
3566 | ||
3567 | self = self; | |
efc5f224 | 3568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3569 | return NULL; |
1d99702e RD |
3570 | if (_argo0) { |
3571 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3572 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3574 | return NULL; |
3575 | } | |
3576 | } | |
cf694132 | 3577 | { |
474c48f9 | 3578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3579 | _result = (wxRect *)wxPyListCtrl_GetItemRect(_arg0,_arg1,_arg2); |
cf694132 | 3580 | |
474c48f9 | 3581 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3582 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3583 | } if (_result) { |
3584 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
3585 | _resultobj = Py_BuildValue("s",_ptemp); | |
3586 | } else { | |
3587 | Py_INCREF(Py_None); | |
3588 | _resultobj = Py_None; | |
3589 | } | |
8ab979d7 RD |
3590 | return _resultobj; |
3591 | } | |
3592 | ||
cd096152 RD |
3593 | #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1)) |
3594 | static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3595 | PyObject * _resultobj; |
cd096152 RD |
3596 | bool _result; |
3597 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3598 | long _arg1; |
cd096152 | 3599 | wxPoint * _arg2; |
1d99702e | 3600 | PyObject * _argo0 = 0; |
cd096152 RD |
3601 | wxPoint temp; |
3602 | PyObject * _obj2 = 0; | |
3603 | char *_kwnames[] = { "self","item","pos", NULL }; | |
8ab979d7 RD |
3604 | |
3605 | self = self; | |
cd096152 | 3606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3607 | return NULL; |
1d99702e RD |
3608 | if (_argo0) { |
3609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3612 | return NULL; |
3613 | } | |
3614 | } | |
cd096152 RD |
3615 | { |
3616 | _arg2 = &temp; | |
3617 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3618 | return NULL; | |
3619 | } | |
cf694132 | 3620 | { |
474c48f9 | 3621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3622 | _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2); |
cf694132 | 3623 | |
474c48f9 | 3624 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3625 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3626 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3627 | return _resultobj; |
3628 | } | |
3629 | ||
3630 | #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
efc5f224 | 3631 | static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3632 | PyObject * _resultobj; |
3633 | int _result; | |
cd096152 | 3634 | wxPyListCtrl * _arg0; |
1d99702e | 3635 | PyObject * _argo0 = 0; |
efc5f224 | 3636 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3637 | |
3638 | self = self; | |
efc5f224 | 3639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3640 | return NULL; |
1d99702e RD |
3641 | if (_argo0) { |
3642 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3643 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3645 | return NULL; |
3646 | } | |
3647 | } | |
cf694132 | 3648 | { |
474c48f9 | 3649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3650 | _result = (int )wxListCtrl_GetItemCount(_arg0); |
cf694132 | 3651 | |
474c48f9 | 3652 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3653 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3654 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3655 | return _resultobj; |
3656 | } | |
3657 | ||
cd096152 RD |
3658 | #define wxListCtrl_GetColumnCount(_swigobj) (_swigobj->GetColumnCount()) |
3659 | static PyObject *_wrap_wxListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3660 | PyObject * _resultobj; | |
3661 | int _result; | |
3662 | wxPyListCtrl * _arg0; | |
3663 | PyObject * _argo0 = 0; | |
3664 | char *_kwnames[] = { "self", NULL }; | |
3665 | ||
3666 | self = self; | |
3667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetColumnCount",_kwnames,&_argo0)) | |
3668 | return NULL; | |
3669 | if (_argo0) { | |
3670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnCount. Expected _wxPyListCtrl_p."); | |
3673 | return NULL; | |
3674 | } | |
3675 | } | |
3676 | { | |
474c48f9 | 3677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3678 | _result = (int )wxListCtrl_GetColumnCount(_arg0); |
cd096152 | 3679 | |
474c48f9 | 3680 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
3681 | if (PyErr_Occurred()) return NULL; |
3682 | } _resultobj = Py_BuildValue("i",_result); | |
3683 | return _resultobj; | |
3684 | } | |
3685 | ||
1a8372ba | 3686 | #define wxListCtrl_GetItemSpacing(_swigobj) (_swigobj->GetItemSpacing()) |
efc5f224 | 3687 | static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3688 | PyObject * _resultobj; |
1a8372ba | 3689 | wxSize * _result; |
cd096152 | 3690 | wxPyListCtrl * _arg0; |
1d99702e | 3691 | PyObject * _argo0 = 0; |
1a8372ba RD |
3692 | char *_kwnames[] = { "self", NULL }; |
3693 | char _ptemp[128]; | |
8ab979d7 RD |
3694 | |
3695 | self = self; | |
1a8372ba | 3696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemSpacing",_kwnames,&_argo0)) |
8ab979d7 | 3697 | return NULL; |
1d99702e RD |
3698 | if (_argo0) { |
3699 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3700 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3702 | return NULL; |
3703 | } | |
3704 | } | |
cf694132 | 3705 | { |
474c48f9 | 3706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1a8372ba | 3707 | _result = new wxSize (wxListCtrl_GetItemSpacing(_arg0)); |
cf694132 | 3708 | |
474c48f9 | 3709 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3710 | if (PyErr_Occurred()) return NULL; |
1a8372ba RD |
3711 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
3712 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
3713 | return _resultobj; |
3714 | } | |
3715 | ||
b67a9327 RD |
3716 | #define wxListCtrl_SetItemSpacing(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSpacing(_swigarg0,_swigarg1)) |
3717 | static PyObject *_wrap_wxListCtrl_SetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3718 | PyObject * _resultobj; | |
3719 | wxPyListCtrl * _arg0; | |
3720 | int _arg1; | |
3721 | bool _arg2 = (bool ) FALSE; | |
3722 | PyObject * _argo0 = 0; | |
3723 | int tempbool2 = (int) FALSE; | |
3724 | char *_kwnames[] = { "self","spacing","isSmall", NULL }; | |
3725 | ||
3726 | self = self; | |
3727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxListCtrl_SetItemSpacing",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
3728 | return NULL; | |
3729 | if (_argo0) { | |
3730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemSpacing. Expected _wxPyListCtrl_p."); | |
3733 | return NULL; | |
3734 | } | |
3735 | } | |
3736 | _arg2 = (bool ) tempbool2; | |
3737 | { | |
3738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3739 | wxListCtrl_SetItemSpacing(_arg0,_arg1,_arg2); | |
3740 | ||
3741 | wxPyEndAllowThreads(__tstate); | |
3742 | if (PyErr_Occurred()) return NULL; | |
3743 | } Py_INCREF(Py_None); | |
3744 | _resultobj = Py_None; | |
3745 | return _resultobj; | |
3746 | } | |
3747 | ||
cd096152 RD |
3748 | #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount()) |
3749 | static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3750 | PyObject * _resultobj; |
cd096152 RD |
3751 | int _result; |
3752 | wxPyListCtrl * _arg0; | |
1d99702e | 3753 | PyObject * _argo0 = 0; |
cd096152 | 3754 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3755 | |
3756 | self = self; | |
cd096152 | 3757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3758 | return NULL; |
1d99702e RD |
3759 | if (_argo0) { |
3760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3763 | return NULL; |
3764 | } | |
3765 | } | |
8ab979d7 | 3766 | { |
474c48f9 | 3767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3768 | _result = (int )wxListCtrl_GetSelectedItemCount(_arg0); |
cf694132 | 3769 | |
474c48f9 | 3770 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3771 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3772 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3773 | return _resultobj; |
3774 | } | |
3775 | ||
cd096152 RD |
3776 | #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
3777 | static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3778 | PyObject * _resultobj; |
cd096152 RD |
3779 | wxColour * _result; |
3780 | wxPyListCtrl * _arg0; | |
1d99702e | 3781 | PyObject * _argo0 = 0; |
cd096152 RD |
3782 | char *_kwnames[] = { "self", NULL }; |
3783 | char _ptemp[128]; | |
8ab979d7 RD |
3784 | |
3785 | self = self; | |
cd096152 | 3786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 3787 | return NULL; |
1d99702e RD |
3788 | if (_argo0) { |
3789 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3790 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3792 | return NULL; |
3793 | } | |
3794 | } | |
cf694132 | 3795 | { |
474c48f9 | 3796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3797 | _result = new wxColour (wxListCtrl_GetTextColour(_arg0)); |
cf694132 | 3798 | |
474c48f9 | 3799 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3800 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3801 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
3802 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
3803 | return _resultobj; |
3804 | } | |
3805 | ||
cd096152 RD |
3806 | #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
3807 | static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3808 | PyObject * _resultobj; |
cd096152 RD |
3809 | wxPyListCtrl * _arg0; |
3810 | wxColour * _arg1; | |
1d99702e | 3811 | PyObject * _argo0 = 0; |
cd096152 RD |
3812 | wxColour temp; |
3813 | PyObject * _obj1 = 0; | |
3814 | char *_kwnames[] = { "self","col", NULL }; | |
8ab979d7 RD |
3815 | |
3816 | self = self; | |
cd096152 | 3817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3818 | return NULL; |
1d99702e RD |
3819 | if (_argo0) { |
3820 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3821 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3823 | return NULL; |
3824 | } | |
3825 | } | |
cd096152 RD |
3826 | { |
3827 | _arg1 = &temp; | |
3828 | if (! wxColour_helper(_obj1, &_arg1)) | |
3829 | return NULL; | |
3830 | } | |
cf694132 | 3831 | { |
474c48f9 | 3832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3833 | wxListCtrl_SetTextColour(_arg0,*_arg1); |
cf694132 | 3834 | |
474c48f9 | 3835 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3836 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3837 | } Py_INCREF(Py_None); |
3838 | _resultobj = Py_None; | |
8ab979d7 RD |
3839 | return _resultobj; |
3840 | } | |
3841 | ||
8ab979d7 | 3842 | #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem()) |
efc5f224 | 3843 | static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3844 | PyObject * _resultobj; |
3845 | long _result; | |
cd096152 | 3846 | wxPyListCtrl * _arg0; |
1d99702e | 3847 | PyObject * _argo0 = 0; |
efc5f224 | 3848 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3849 | |
3850 | self = self; | |
efc5f224 | 3851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0)) |
8ab979d7 | 3852 | return NULL; |
1d99702e RD |
3853 | if (_argo0) { |
3854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3857 | return NULL; |
3858 | } | |
3859 | } | |
cf694132 | 3860 | { |
474c48f9 | 3861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3862 | _result = (long )wxListCtrl_GetTopItem(_arg0); |
cf694132 | 3863 | |
474c48f9 | 3864 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3865 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3866 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
3867 | return _resultobj; |
3868 | } | |
3869 | ||
cd096152 RD |
3870 | #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1)) |
3871 | static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3872 | PyObject * _resultobj; | |
3873 | wxPyListCtrl * _arg0; | |
3874 | long _arg1; | |
3875 | bool _arg2 = (bool ) TRUE; | |
1d99702e | 3876 | PyObject * _argo0 = 0; |
cd096152 RD |
3877 | int tempbool2 = (int) TRUE; |
3878 | char *_kwnames[] = { "self","style","add", NULL }; | |
8ab979d7 RD |
3879 | |
3880 | self = self; | |
cd096152 RD |
3881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2)) |
3882 | return NULL; | |
3883 | if (_argo0) { | |
3884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxPyListCtrl_p."); | |
3887 | return NULL; | |
3888 | } | |
3889 | } | |
3890 | _arg2 = (bool ) tempbool2; | |
8ab979d7 | 3891 | { |
474c48f9 | 3892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3893 | wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2); |
cd096152 | 3894 | |
474c48f9 | 3895 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
3896 | if (PyErr_Occurred()) return NULL; |
3897 | } Py_INCREF(Py_None); | |
3898 | _resultobj = Py_None; | |
3899 | return _resultobj; | |
8ab979d7 | 3900 | } |
cd096152 RD |
3901 | |
3902 | #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) | |
3903 | static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3904 | PyObject * _resultobj; | |
3905 | wxPyListCtrl * _arg0; | |
3906 | long _arg1; | |
3907 | PyObject * _argo0 = 0; | |
3908 | char *_kwnames[] = { "self","style", NULL }; | |
3909 | ||
3910 | self = self; | |
3911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
8ab979d7 | 3912 | return NULL; |
1d99702e RD |
3913 | if (_argo0) { |
3914 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3915 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3917 | return NULL; |
3918 | } | |
3919 | } | |
2f90df85 | 3920 | { |
474c48f9 | 3921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3922 | wxListCtrl_SetWindowStyleFlag(_arg0,_arg1); |
cd096152 | 3923 | |
474c48f9 | 3924 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
3925 | if (PyErr_Occurred()) return NULL; |
3926 | } Py_INCREF(Py_None); | |
3927 | _resultobj = Py_None; | |
3928 | return _resultobj; | |
2f90df85 | 3929 | } |
cd096152 RD |
3930 | |
3931 | #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2)) | |
3932 | static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3933 | PyObject * _resultobj; | |
3934 | long _result; | |
3935 | wxPyListCtrl * _arg0; | |
3936 | long _arg1; | |
3937 | int _arg2 = (int ) (wxLIST_NEXT_ALL); | |
3938 | int _arg3 = (int ) (wxLIST_STATE_DONTCARE); | |
3939 | PyObject * _argo0 = 0; | |
3940 | char *_kwnames[] = { "self","item","geometry","state", NULL }; | |
3941 | ||
3942 | self = self; | |
3943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
3944 | return NULL; | |
3945 | if (_argo0) { | |
3946 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3947 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxPyListCtrl_p."); | |
3949 | return NULL; | |
3950 | } | |
3951 | } | |
cf694132 | 3952 | { |
474c48f9 | 3953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3954 | _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3955 | |
474c48f9 | 3956 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3957 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3958 | } _resultobj = Py_BuildValue("l",_result); |
cd096152 | 3959 | return _resultobj; |
8ab979d7 | 3960 | } |
cd096152 RD |
3961 | |
3962 | #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0)) | |
3963 | static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3964 | PyObject * _resultobj; | |
3965 | wxImageList * _result; | |
3966 | wxPyListCtrl * _arg0; | |
3967 | int _arg1; | |
3968 | PyObject * _argo0 = 0; | |
3969 | char *_kwnames[] = { "self","which", NULL }; | |
3970 | ||
3971 | self = self; | |
3972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1)) | |
3973 | return NULL; | |
3974 | if (_argo0) { | |
3975 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3976 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxPyListCtrl_p."); | |
3978 | return NULL; | |
3979 | } | |
3980 | } | |
3981 | { | |
474c48f9 | 3982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3983 | _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1); |
cd096152 | 3984 | |
474c48f9 | 3985 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
3986 | if (PyErr_Occurred()) return NULL; |
3987 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
8ab979d7 RD |
3988 | return _resultobj; |
3989 | } | |
3990 | ||
cd096152 RD |
3991 | #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1)) |
3992 | static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3993 | PyObject * _resultobj; |
cd096152 RD |
3994 | wxPyListCtrl * _arg0; |
3995 | wxImageList * _arg1; | |
3996 | int _arg2; | |
1d99702e | 3997 | PyObject * _argo0 = 0; |
cd096152 RD |
3998 | PyObject * _argo1 = 0; |
3999 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
8ab979d7 RD |
4000 | |
4001 | self = self; | |
cd096152 | 4002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4003 | return NULL; |
1d99702e RD |
4004 | if (_argo0) { |
4005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4008 | return NULL; |
4009 | } | |
4010 | } | |
cd096152 RD |
4011 | if (_argo1) { |
4012 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4013 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p."); | |
8ab979d7 RD |
4015 | return NULL; |
4016 | } | |
4017 | } | |
cf694132 | 4018 | { |
474c48f9 | 4019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4020 | wxListCtrl_SetImageList(_arg0,_arg1,_arg2); |
cf694132 | 4021 | |
474c48f9 | 4022 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4023 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4024 | } Py_INCREF(Py_None); |
4025 | _resultobj = Py_None; | |
8ab979d7 RD |
4026 | return _resultobj; |
4027 | } | |
4028 | ||
cd096152 RD |
4029 | #define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1)) |
4030 | static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4031 | PyObject * _resultobj; |
cd096152 RD |
4032 | wxPyListCtrl * _arg0; |
4033 | wxImageList * _arg1; | |
4034 | int _arg2; | |
1d99702e | 4035 | PyObject * _argo0 = 0; |
cd096152 RD |
4036 | PyObject * _argo1 = 0; |
4037 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
8ab979d7 RD |
4038 | |
4039 | self = self; | |
cd096152 | 4040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4041 | return NULL; |
1d99702e RD |
4042 | if (_argo0) { |
4043 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4044 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4046 | return NULL; |
4047 | } | |
4048 | } | |
cd096152 RD |
4049 | if (_argo1) { |
4050 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4051 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p."); | |
2cd2fac8 | 4053 | return NULL; |
cd096152 | 4054 | } |
2cd2fac8 | 4055 | } |
cd096152 | 4056 | { |
474c48f9 | 4057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4058 | wxListCtrl_AssignImageList(_arg0,_arg1,_arg2); |
cd096152 | 4059 | |
474c48f9 | 4060 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4061 | if (PyErr_Occurred()) return NULL; |
4062 | } Py_INCREF(Py_None); | |
4063 | _resultobj = Py_None; | |
4064 | return _resultobj; | |
4065 | } | |
4066 | ||
4067 | #define wxListCtrl_IsVirtual(_swigobj) (_swigobj->IsVirtual()) | |
4068 | static PyObject *_wrap_wxListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4069 | PyObject * _resultobj; | |
4070 | bool _result; | |
4071 | wxPyListCtrl * _arg0; | |
4072 | PyObject * _argo0 = 0; | |
4073 | char *_kwnames[] = { "self", NULL }; | |
4074 | ||
4075 | self = self; | |
4076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_IsVirtual",_kwnames,&_argo0)) | |
2cd2fac8 | 4077 | return NULL; |
cd096152 RD |
4078 | if (_argo0) { |
4079 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4080 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_IsVirtual. Expected _wxPyListCtrl_p."); | |
8ab979d7 | 4082 | return NULL; |
cd096152 | 4083 | } |
8ab979d7 | 4084 | } |
cf694132 | 4085 | { |
474c48f9 | 4086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4087 | _result = (bool )wxListCtrl_IsVirtual(_arg0); |
cf694132 | 4088 | |
474c48f9 | 4089 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4090 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4091 | } _resultobj = Py_BuildValue("i",_result); |
4092 | return _resultobj; | |
8ab979d7 | 4093 | } |
cd096152 RD |
4094 | |
4095 | #define wxListCtrl_RefreshItem(_swigobj,_swigarg0) (_swigobj->RefreshItem(_swigarg0)) | |
4096 | static PyObject *_wrap_wxListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4097 | PyObject * _resultobj; | |
4098 | wxPyListCtrl * _arg0; | |
4099 | long _arg1; | |
4100 | PyObject * _argo0 = 0; | |
4101 | char *_kwnames[] = { "self","item", NULL }; | |
4102 | ||
4103 | self = self; | |
4104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_RefreshItem",_kwnames,&_argo0,&_arg1)) | |
4105 | return NULL; | |
4106 | if (_argo0) { | |
4107 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4108 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItem. Expected _wxPyListCtrl_p."); | |
4110 | return NULL; | |
4111 | } | |
4112 | } | |
4113 | { | |
474c48f9 | 4114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4115 | wxListCtrl_RefreshItem(_arg0,_arg1); |
cd096152 | 4116 | |
474c48f9 | 4117 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4118 | if (PyErr_Occurred()) return NULL; |
4119 | } Py_INCREF(Py_None); | |
4120 | _resultobj = Py_None; | |
8ab979d7 RD |
4121 | return _resultobj; |
4122 | } | |
4123 | ||
cd096152 RD |
4124 | #define wxListCtrl_RefreshItems(_swigobj,_swigarg0,_swigarg1) (_swigobj->RefreshItems(_swigarg0,_swigarg1)) |
4125 | static PyObject *_wrap_wxListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4126 | PyObject * _resultobj; |
cd096152 RD |
4127 | wxPyListCtrl * _arg0; |
4128 | long _arg1; | |
4129 | long _arg2; | |
1d99702e | 4130 | PyObject * _argo0 = 0; |
cd096152 | 4131 | char *_kwnames[] = { "self","itemFrom","itemTo", NULL }; |
8ab979d7 RD |
4132 | |
4133 | self = self; | |
cd096152 | 4134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_RefreshItems",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4135 | return NULL; |
1d99702e RD |
4136 | if (_argo0) { |
4137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItems. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4140 | return NULL; |
4141 | } | |
4142 | } | |
cd096152 | 4143 | { |
474c48f9 | 4144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4145 | wxListCtrl_RefreshItems(_arg0,_arg1,_arg2); |
cd096152 | 4146 | |
474c48f9 | 4147 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4148 | if (PyErr_Occurred()) return NULL; |
4149 | } Py_INCREF(Py_None); | |
4150 | _resultobj = Py_None; | |
4151 | return _resultobj; | |
4152 | } | |
4153 | ||
4154 | #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0)) | |
4155 | static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4156 | PyObject * _resultobj; | |
4157 | bool _result; | |
4158 | wxPyListCtrl * _arg0; | |
4159 | int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT); | |
4160 | PyObject * _argo0 = 0; | |
4161 | char *_kwnames[] = { "self","flag", NULL }; | |
4162 | ||
4163 | self = self; | |
4164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1)) | |
4165 | return NULL; | |
4166 | if (_argo0) { | |
4167 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4168 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4170 | return NULL; |
4171 | } | |
4172 | } | |
cf694132 | 4173 | { |
474c48f9 | 4174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4175 | _result = (bool )wxListCtrl_Arrange(_arg0,_arg1); |
cf694132 | 4176 | |
474c48f9 | 4177 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4178 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4179 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4180 | return _resultobj; |
4181 | } | |
4182 | ||
cd096152 RD |
4183 | #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0)) |
4184 | static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4185 | PyObject * _resultobj; |
cd096152 RD |
4186 | bool _result; |
4187 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4188 | long _arg1; |
1d99702e | 4189 | PyObject * _argo0 = 0; |
cd096152 | 4190 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4191 | |
4192 | self = self; | |
cd096152 | 4193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4194 | return NULL; |
1d99702e RD |
4195 | if (_argo0) { |
4196 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4197 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4199 | return NULL; |
4200 | } | |
4201 | } | |
4202 | { | |
474c48f9 | 4203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4204 | _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1); |
cd096152 | 4205 | |
474c48f9 | 4206 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4207 | if (PyErr_Occurred()) return NULL; |
4208 | } _resultobj = Py_BuildValue("i",_result); | |
4209 | return _resultobj; | |
4210 | } | |
4211 | ||
4212 | #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
4213 | static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4214 | PyObject * _resultobj; | |
4215 | bool _result; | |
4216 | wxPyListCtrl * _arg0; | |
4217 | PyObject * _argo0 = 0; | |
4218 | char *_kwnames[] = { "self", NULL }; | |
4219 | ||
4220 | self = self; | |
4221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0)) | |
4222 | return NULL; | |
4223 | if (_argo0) { | |
4224 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4225 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxPyListCtrl_p."); | |
2cd2fac8 | 4227 | return NULL; |
cd096152 | 4228 | } |
2cd2fac8 | 4229 | } |
cd096152 | 4230 | { |
474c48f9 | 4231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4232 | _result = (bool )wxListCtrl_DeleteAllItems(_arg0); |
cd096152 | 4233 | |
474c48f9 | 4234 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4235 | if (PyErr_Occurred()) return NULL; |
4236 | } _resultobj = Py_BuildValue("i",_result); | |
4237 | return _resultobj; | |
4238 | } | |
4239 | ||
4240 | #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0)) | |
4241 | static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4242 | PyObject * _resultobj; | |
4243 | bool _result; | |
4244 | wxPyListCtrl * _arg0; | |
4245 | int _arg1; | |
4246 | PyObject * _argo0 = 0; | |
4247 | char *_kwnames[] = { "self","col", NULL }; | |
4248 | ||
4249 | self = self; | |
4250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1)) | |
2cd2fac8 | 4251 | return NULL; |
cd096152 RD |
4252 | if (_argo0) { |
4253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxPyListCtrl_p."); | |
4256 | return NULL; | |
4257 | } | |
4258 | } | |
4259 | { | |
474c48f9 | 4260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4261 | _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1); |
cd096152 | 4262 | |
474c48f9 | 4263 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4264 | if (PyErr_Occurred()) return NULL; |
4265 | } _resultobj = Py_BuildValue("i",_result); | |
4266 | return _resultobj; | |
4267 | } | |
4268 | ||
4269 | #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns()) | |
4270 | static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4271 | PyObject * _resultobj; | |
4272 | bool _result; | |
4273 | wxPyListCtrl * _arg0; | |
4274 | PyObject * _argo0 = 0; | |
4275 | char *_kwnames[] = { "self", NULL }; | |
4276 | ||
4277 | self = self; | |
4278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0)) | |
4279 | return NULL; | |
4280 | if (_argo0) { | |
4281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxPyListCtrl_p."); | |
4284 | return NULL; | |
4285 | } | |
4286 | } | |
4287 | { | |
474c48f9 | 4288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4289 | _result = (bool )wxListCtrl_DeleteAllColumns(_arg0); |
cd096152 | 4290 | |
474c48f9 | 4291 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4292 | if (PyErr_Occurred()) return NULL; |
4293 | } _resultobj = Py_BuildValue("i",_result); | |
4294 | return _resultobj; | |
4295 | } | |
4296 | ||
4297 | #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll()) | |
4298 | static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4299 | PyObject * _resultobj; | |
4300 | wxPyListCtrl * _arg0; | |
4301 | PyObject * _argo0 = 0; | |
4302 | char *_kwnames[] = { "self", NULL }; | |
4303 | ||
4304 | self = self; | |
4305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0)) | |
8ab979d7 | 4306 | return NULL; |
cd096152 RD |
4307 | if (_argo0) { |
4308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxPyListCtrl_p."); | |
4311 | return NULL; | |
4312 | } | |
8ab979d7 | 4313 | } |
cf694132 | 4314 | { |
474c48f9 | 4315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4316 | wxListCtrl_ClearAll(_arg0); |
cf694132 | 4317 | |
474c48f9 | 4318 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4319 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4320 | } Py_INCREF(Py_None); |
4321 | _resultobj = Py_None; | |
8ab979d7 RD |
4322 | return _resultobj; |
4323 | } | |
4324 | ||
b67a9327 RD |
4325 | #define wxListCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) |
4326 | static PyObject *_wrap_wxListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4327 | PyObject * _resultobj; | |
4328 | wxPyListCtrl * _arg0; | |
4329 | long _arg1; | |
4330 | PyObject * _argo0 = 0; | |
4331 | char *_kwnames[] = { "self","item", NULL }; | |
4332 | ||
4333 | self = self; | |
4334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EditLabel",_kwnames,&_argo0,&_arg1)) | |
4335 | return NULL; | |
4336 | if (_argo0) { | |
4337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EditLabel. Expected _wxPyListCtrl_p."); | |
4340 | return NULL; | |
4341 | } | |
4342 | } | |
4343 | { | |
4344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4345 | wxListCtrl_EditLabel(_arg0,_arg1); | |
4346 | ||
4347 | wxPyEndAllowThreads(__tstate); | |
4348 | if (PyErr_Occurred()) return NULL; | |
4349 | } Py_INCREF(Py_None); | |
4350 | _resultobj = Py_None; | |
4351 | return _resultobj; | |
4352 | } | |
4353 | ||
cd096152 RD |
4354 | #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) |
4355 | static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4356 | PyObject * _resultobj; |
cd096152 RD |
4357 | bool _result; |
4358 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4359 | long _arg1; |
1d99702e | 4360 | PyObject * _argo0 = 0; |
cd096152 | 4361 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4362 | |
4363 | self = self; | |
cd096152 | 4364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4365 | return NULL; |
1d99702e RD |
4366 | if (_argo0) { |
4367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4370 | return NULL; |
4371 | } | |
4372 | } | |
cf694132 | 4373 | { |
474c48f9 | 4374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4375 | _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1); |
cf694132 | 4376 | |
474c48f9 | 4377 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4378 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4379 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4380 | return _resultobj; |
4381 | } | |
4382 | ||
cd096152 RD |
4383 | #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4384 | static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4385 | PyObject * _resultobj; |
4386 | long _result; | |
cd096152 | 4387 | wxPyListCtrl * _arg0; |
8ab979d7 RD |
4388 | long _arg1; |
4389 | wxString * _arg2; | |
cd096152 | 4390 | bool _arg3 = (bool ) FALSE; |
1d99702e | 4391 | PyObject * _argo0 = 0; |
8ab979d7 | 4392 | PyObject * _obj2 = 0; |
cd096152 RD |
4393 | int tempbool3 = (int) FALSE; |
4394 | char *_kwnames[] = { "self","start","str","partial", NULL }; | |
8ab979d7 RD |
4395 | |
4396 | self = self; | |
cd096152 | 4397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
8ab979d7 | 4398 | return NULL; |
1d99702e RD |
4399 | if (_argo0) { |
4400 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4401 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4402 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4403 | return NULL; |
4404 | } | |
4405 | } | |
4406 | { | |
c8bc7bb8 RD |
4407 | _arg2 = wxString_in_helper(_obj2); |
4408 | if (_arg2 == NULL) | |
8ab979d7 | 4409 | return NULL; |
8ab979d7 | 4410 | } |
cd096152 | 4411 | _arg3 = (bool ) tempbool3; |
cf694132 | 4412 | { |
474c48f9 | 4413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4414 | _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4415 | |
474c48f9 | 4416 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4417 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4418 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4419 | { |
4420 | if (_obj2) | |
4421 | delete _arg2; | |
4422 | } | |
4423 | return _resultobj; | |
4424 | } | |
4425 | ||
cd096152 RD |
4426 | #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1)) |
4427 | static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4428 | PyObject * _resultobj; |
cd096152 RD |
4429 | long _result; |
4430 | wxPyListCtrl * _arg0; | |
4431 | long _arg1; | |
4432 | long _arg2; | |
1d99702e | 4433 | PyObject * _argo0 = 0; |
cd096152 | 4434 | char *_kwnames[] = { "self","start","data", NULL }; |
8ab979d7 RD |
4435 | |
4436 | self = self; | |
cd096152 | 4437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4438 | return NULL; |
1d99702e RD |
4439 | if (_argo0) { |
4440 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4441 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4442 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4443 | return NULL; |
4444 | } | |
4445 | } | |
cf694132 | 4446 | { |
474c48f9 | 4447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4448 | _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2); |
cf694132 | 4449 | |
474c48f9 | 4450 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4451 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4452 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4453 | return _resultobj; |
4454 | } | |
4455 | ||
cd096152 RD |
4456 | #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4457 | static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4458 | PyObject * _resultobj; |
cd096152 RD |
4459 | long _result; |
4460 | wxPyListCtrl * _arg0; | |
4461 | long _arg1; | |
4462 | wxPoint * _arg2; | |
4463 | int _arg3; | |
1d99702e | 4464 | PyObject * _argo0 = 0; |
cd096152 RD |
4465 | wxPoint temp; |
4466 | PyObject * _obj2 = 0; | |
4467 | char *_kwnames[] = { "self","start","pt","direction", NULL }; | |
8ab979d7 RD |
4468 | |
4469 | self = self; | |
cd096152 | 4470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4471 | return NULL; |
1d99702e RD |
4472 | if (_argo0) { |
4473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4476 | return NULL; |
4477 | } | |
4478 | } | |
f6bcfd97 | 4479 | { |
cd096152 RD |
4480 | _arg2 = &temp; |
4481 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 4482 | return NULL; |
f6bcfd97 | 4483 | } |
cf694132 | 4484 | { |
474c48f9 | 4485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4486 | _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4487 | |
474c48f9 | 4488 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4489 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4490 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4491 | return _resultobj; |
4492 | } | |
4493 | ||
cd096152 RD |
4494 | #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
4495 | static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4496 | PyObject * _resultobj; |
cd096152 RD |
4497 | long _result; |
4498 | wxPyListCtrl * _arg0; | |
4499 | wxPoint * _arg1; | |
4500 | int * _arg2; | |
4501 | int temp; | |
1d99702e | 4502 | PyObject * _argo0 = 0; |
cd096152 RD |
4503 | wxPoint temp0; |
4504 | PyObject * _obj1 = 0; | |
4505 | char *_kwnames[] = { "self","point", NULL }; | |
8ab979d7 RD |
4506 | |
4507 | self = self; | |
cf694132 | 4508 | { |
cd096152 | 4509 | _arg2 = &temp; |
8ab979d7 | 4510 | } |
cd096152 | 4511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4512 | return NULL; |
1d99702e RD |
4513 | if (_argo0) { |
4514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4517 | return NULL; |
4518 | } | |
4519 | } | |
cf694132 | 4520 | { |
cd096152 RD |
4521 | _arg1 = &temp0; |
4522 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4523 | return NULL; |
cd096152 | 4524 | } |
cf694132 | 4525 | { |
474c48f9 | 4526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4527 | _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2); |
cf694132 | 4528 | |
474c48f9 | 4529 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4530 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4531 | } _resultobj = Py_BuildValue("l",_result); |
4532 | { | |
4533 | PyObject *o; | |
4534 | o = PyInt_FromLong((long) (*_arg2)); | |
4535 | _resultobj = t_output_helper(_resultobj, o); | |
4536 | } | |
8ab979d7 RD |
4537 | return _resultobj; |
4538 | } | |
4539 | ||
cd096152 RD |
4540 | #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0)) |
4541 | static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4542 | PyObject * _resultobj; |
cd096152 RD |
4543 | long _result; |
4544 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4545 | wxListItem * _arg1; |
1d99702e RD |
4546 | PyObject * _argo0 = 0; |
4547 | PyObject * _argo1 = 0; | |
efc5f224 | 4548 | char *_kwnames[] = { "self","info", NULL }; |
8ab979d7 RD |
4549 | |
4550 | self = self; | |
cd096152 | 4551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4552 | return NULL; |
1d99702e RD |
4553 | if (_argo0) { |
4554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4557 | return NULL; |
4558 | } | |
4559 | } | |
1d99702e | 4560 | if (_argo1) { |
b67a9327 | 4561 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { |
cd096152 | 4562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p."); |
8ab979d7 RD |
4563 | return NULL; |
4564 | } | |
4565 | } | |
cf694132 | 4566 | { |
474c48f9 | 4567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4568 | _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1); |
cf694132 | 4569 | |
474c48f9 | 4570 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4571 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4572 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4573 | return _resultobj; |
4574 | } | |
4575 | ||
cd096152 RD |
4576 | #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) |
4577 | static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4578 | PyObject * _resultobj; |
4579 | long _result; | |
cd096152 | 4580 | wxPyListCtrl * _arg0; |
8ab979d7 | 4581 | long _arg1; |
cd096152 | 4582 | wxString * _arg2; |
1d99702e | 4583 | PyObject * _argo0 = 0; |
cd096152 RD |
4584 | PyObject * _obj2 = 0; |
4585 | char *_kwnames[] = { "self","index","label", NULL }; | |
8ab979d7 RD |
4586 | |
4587 | self = self; | |
cd096152 | 4588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4589 | return NULL; |
1d99702e RD |
4590 | if (_argo0) { |
4591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4594 | return NULL; |
4595 | } | |
4596 | } | |
4597 | { | |
c8bc7bb8 RD |
4598 | _arg2 = wxString_in_helper(_obj2); |
4599 | if (_arg2 == NULL) | |
8ab979d7 | 4600 | return NULL; |
8ab979d7 | 4601 | } |
cf694132 | 4602 | { |
474c48f9 | 4603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4604 | _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2); |
cf694132 | 4605 | |
474c48f9 | 4606 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4607 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4608 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 4609 | { |
cd096152 RD |
4610 | if (_obj2) |
4611 | delete _arg2; | |
4612 | } | |
8ab979d7 RD |
4613 | return _resultobj; |
4614 | } | |
4615 | ||
cd096152 RD |
4616 | #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) |
4617 | static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4618 | PyObject * _resultobj; |
cd096152 RD |
4619 | long _result; |
4620 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4621 | long _arg1; |
4622 | int _arg2; | |
1d99702e | 4623 | PyObject * _argo0 = 0; |
cd096152 | 4624 | char *_kwnames[] = { "self","index","imageIndex", NULL }; |
8ab979d7 RD |
4625 | |
4626 | self = self; | |
cd096152 | 4627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4628 | return NULL; |
1d99702e RD |
4629 | if (_argo0) { |
4630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4633 | return NULL; |
4634 | } | |
4635 | } | |
cf694132 | 4636 | { |
474c48f9 | 4637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4638 | _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2); |
cf694132 | 4639 | |
474c48f9 | 4640 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4641 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4642 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4643 | return _resultobj; |
4644 | } | |
4645 | ||
cd096152 RD |
4646 | #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2)) |
4647 | static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4648 | PyObject * _resultobj; |
cd096152 RD |
4649 | long _result; |
4650 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4651 | long _arg1; |
cd096152 RD |
4652 | wxString * _arg2; |
4653 | int _arg3; | |
1d99702e | 4654 | PyObject * _argo0 = 0; |
2f90df85 | 4655 | PyObject * _obj2 = 0; |
cd096152 | 4656 | char *_kwnames[] = { "self","index","label","imageIndex", NULL }; |
8ab979d7 RD |
4657 | |
4658 | self = self; | |
cd096152 | 4659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4660 | return NULL; |
1d99702e RD |
4661 | if (_argo0) { |
4662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4665 | return NULL; |
4666 | } | |
4667 | } | |
2f90df85 | 4668 | { |
c8bc7bb8 RD |
4669 | _arg2 = wxString_in_helper(_obj2); |
4670 | if (_arg2 == NULL) | |
8ab979d7 | 4671 | return NULL; |
2f90df85 | 4672 | } |
cf694132 | 4673 | { |
474c48f9 | 4674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4675 | _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4676 | |
474c48f9 | 4677 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4678 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4679 | } _resultobj = Py_BuildValue("l",_result); |
4680 | { | |
4681 | if (_obj2) | |
4682 | delete _arg2; | |
4683 | } | |
8ab979d7 RD |
4684 | return _resultobj; |
4685 | } | |
4686 | ||
cd096152 RD |
4687 | #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) |
4688 | static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4689 | PyObject * _resultobj; |
cd096152 RD |
4690 | long _result; |
4691 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4692 | long _arg1; |
cd096152 | 4693 | wxListItem * _arg2; |
1d99702e | 4694 | PyObject * _argo0 = 0; |
cd096152 RD |
4695 | PyObject * _argo2 = 0; |
4696 | char *_kwnames[] = { "self","col","info", NULL }; | |
8ab979d7 RD |
4697 | |
4698 | self = self; | |
cd096152 | 4699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 4700 | return NULL; |
1d99702e RD |
4701 | if (_argo0) { |
4702 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4703 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxPyListCtrl_p."); | |
4705 | return NULL; | |
4706 | } | |
4707 | } | |
4708 | if (_argo2) { | |
b67a9327 | 4709 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { |
cd096152 | 4710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p."); |
8ab979d7 RD |
4711 | return NULL; |
4712 | } | |
4713 | } | |
cf694132 | 4714 | { |
474c48f9 | 4715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4716 | _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2); |
cf694132 | 4717 | |
474c48f9 | 4718 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4719 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4720 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4721 | return _resultobj; |
4722 | } | |
4723 | ||
cd096152 RD |
4724 | #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4725 | static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4726 | PyObject * _resultobj; |
cd096152 RD |
4727 | long _result; |
4728 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4729 | long _arg1; |
4730 | wxString * _arg2; | |
cd096152 RD |
4731 | int _arg3 = (int ) (wxLIST_FORMAT_LEFT); |
4732 | int _arg4 = (int ) -1; | |
1d99702e | 4733 | PyObject * _argo0 = 0; |
8ab979d7 | 4734 | PyObject * _obj2 = 0; |
cd096152 | 4735 | char *_kwnames[] = { "self","col","heading","format","width", NULL }; |
8ab979d7 RD |
4736 | |
4737 | self = self; | |
cd096152 | 4738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 4739 | return NULL; |
1d99702e RD |
4740 | if (_argo0) { |
4741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4744 | return NULL; |
4745 | } | |
4746 | } | |
4747 | { | |
c8bc7bb8 RD |
4748 | _arg2 = wxString_in_helper(_obj2); |
4749 | if (_arg2 == NULL) | |
8ab979d7 | 4750 | return NULL; |
8ab979d7 | 4751 | } |
cf694132 | 4752 | { |
474c48f9 | 4753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4754 | _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4); |
cf694132 | 4755 | |
474c48f9 | 4756 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4757 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4758 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4759 | { |
4760 | if (_obj2) | |
4761 | delete _arg2; | |
4762 | } | |
4763 | return _resultobj; | |
4764 | } | |
4765 | ||
cd096152 RD |
4766 | #define wxListCtrl_SetItemCount(_swigobj,_swigarg0) (_swigobj->SetItemCount(_swigarg0)) |
4767 | static PyObject *_wrap_wxListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4768 | PyObject * _resultobj; |
cd096152 | 4769 | wxPyListCtrl * _arg0; |
8ab979d7 | 4770 | long _arg1; |
1d99702e | 4771 | PyObject * _argo0 = 0; |
cd096152 | 4772 | char *_kwnames[] = { "self","count", NULL }; |
8ab979d7 RD |
4773 | |
4774 | self = self; | |
cd096152 | 4775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetItemCount",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4776 | return NULL; |
1d99702e RD |
4777 | if (_argo0) { |
4778 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4779 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4781 | return NULL; |
4782 | } | |
4783 | } | |
cf694132 | 4784 | { |
474c48f9 | 4785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4786 | wxListCtrl_SetItemCount(_arg0,_arg1); |
cf694132 | 4787 | |
474c48f9 | 4788 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4789 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4790 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4791 | _resultobj = Py_None; |
4792 | return _resultobj; | |
4793 | } | |
4794 | ||
cd096152 RD |
4795 | #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1)) |
4796 | static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4797 | PyObject * _resultobj; |
cd096152 RD |
4798 | bool _result; |
4799 | wxPyListCtrl * _arg0; | |
4800 | int _arg1; | |
4801 | int _arg2; | |
1d99702e | 4802 | PyObject * _argo0 = 0; |
cd096152 | 4803 | char *_kwnames[] = { "self","dx","dy", NULL }; |
8ab979d7 RD |
4804 | |
4805 | self = self; | |
cd096152 | 4806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4807 | return NULL; |
1d99702e RD |
4808 | if (_argo0) { |
4809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4812 | return NULL; |
4813 | } | |
4814 | } | |
cf694132 | 4815 | { |
474c48f9 | 4816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4817 | _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2); |
cf694132 | 4818 | |
474c48f9 | 4819 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4820 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4821 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4822 | return _resultobj; |
4823 | } | |
4824 | ||
8381e4cd RD |
4825 | #define wxListCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
4826 | static PyObject *_wrap_wxListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4827 | PyObject * _resultobj; | |
4828 | wxPyListCtrl * _arg0; | |
4829 | long _arg1; | |
4830 | wxColour * _arg2; | |
4831 | PyObject * _argo0 = 0; | |
4832 | wxColour temp; | |
4833 | PyObject * _obj2 = 0; | |
4834 | char *_kwnames[] = { "self","item","col", NULL }; | |
4835 | ||
4836 | self = self; | |
4837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemTextColour",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4838 | return NULL; | |
4839 | if (_argo0) { | |
4840 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4841 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemTextColour. Expected _wxPyListCtrl_p."); | |
4843 | return NULL; | |
4844 | } | |
4845 | } | |
4846 | { | |
4847 | _arg2 = &temp; | |
4848 | if (! wxColour_helper(_obj2, &_arg2)) | |
4849 | return NULL; | |
4850 | } | |
4851 | { | |
4852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4853 | wxListCtrl_SetItemTextColour(_arg0,_arg1,*_arg2); | |
4854 | ||
4855 | wxPyEndAllowThreads(__tstate); | |
4856 | if (PyErr_Occurred()) return NULL; | |
4857 | } Py_INCREF(Py_None); | |
4858 | _resultobj = Py_None; | |
4859 | return _resultobj; | |
4860 | } | |
4861 | ||
4862 | #define wxListCtrl_GetItemTextColour(_swigobj,_swigarg0) (_swigobj->GetItemTextColour(_swigarg0)) | |
4863 | static PyObject *_wrap_wxListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4864 | PyObject * _resultobj; | |
4865 | wxColour * _result; | |
4866 | wxPyListCtrl * _arg0; | |
4867 | long _arg1; | |
4868 | PyObject * _argo0 = 0; | |
4869 | char *_kwnames[] = { "self","item", NULL }; | |
4870 | char _ptemp[128]; | |
4871 | ||
4872 | self = self; | |
4873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemTextColour",_kwnames,&_argo0,&_arg1)) | |
4874 | return NULL; | |
4875 | if (_argo0) { | |
4876 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4877 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemTextColour. Expected _wxPyListCtrl_p."); | |
4879 | return NULL; | |
4880 | } | |
4881 | } | |
4882 | { | |
4883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4884 | _result = new wxColour (wxListCtrl_GetItemTextColour(_arg0,_arg1)); | |
4885 | ||
4886 | wxPyEndAllowThreads(__tstate); | |
4887 | if (PyErr_Occurred()) return NULL; | |
4888 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
4889 | _resultobj = Py_BuildValue("s",_ptemp); | |
4890 | return _resultobj; | |
4891 | } | |
4892 | ||
4893 | #define wxListCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
4894 | static PyObject *_wrap_wxListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4895 | PyObject * _resultobj; | |
4896 | wxPyListCtrl * _arg0; | |
4897 | long _arg1; | |
4898 | wxColour * _arg2; | |
4899 | PyObject * _argo0 = 0; | |
4900 | wxColour temp; | |
4901 | PyObject * _obj2 = 0; | |
4902 | char *_kwnames[] = { "self","item","col", NULL }; | |
4903 | ||
4904 | self = self; | |
4905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4906 | return NULL; | |
4907 | if (_argo0) { | |
4908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemBackgroundColour. Expected _wxPyListCtrl_p."); | |
4911 | return NULL; | |
4912 | } | |
4913 | } | |
4914 | { | |
4915 | _arg2 = &temp; | |
4916 | if (! wxColour_helper(_obj2, &_arg2)) | |
4917 | return NULL; | |
4918 | } | |
4919 | { | |
4920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4921 | wxListCtrl_SetItemBackgroundColour(_arg0,_arg1,*_arg2); | |
4922 | ||
4923 | wxPyEndAllowThreads(__tstate); | |
4924 | if (PyErr_Occurred()) return NULL; | |
4925 | } Py_INCREF(Py_None); | |
4926 | _resultobj = Py_None; | |
4927 | return _resultobj; | |
4928 | } | |
4929 | ||
4930 | #define wxListCtrl_GetItemBackgroundColour(_swigobj,_swigarg0) (_swigobj->GetItemBackgroundColour(_swigarg0)) | |
4931 | static PyObject *_wrap_wxListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4932 | PyObject * _resultobj; | |
4933 | wxColour * _result; | |
4934 | wxPyListCtrl * _arg0; | |
4935 | long _arg1; | |
4936 | PyObject * _argo0 = 0; | |
4937 | char *_kwnames[] = { "self","item", NULL }; | |
4938 | char _ptemp[128]; | |
4939 | ||
4940 | self = self; | |
4941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemBackgroundColour",_kwnames,&_argo0,&_arg1)) | |
4942 | return NULL; | |
4943 | if (_argo0) { | |
4944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemBackgroundColour. Expected _wxPyListCtrl_p."); | |
4947 | return NULL; | |
4948 | } | |
4949 | } | |
4950 | { | |
4951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4952 | _result = new wxColour (wxListCtrl_GetItemBackgroundColour(_arg0,_arg1)); | |
4953 | ||
4954 | wxPyEndAllowThreads(__tstate); | |
4955 | if (PyErr_Occurred()) return NULL; | |
4956 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
4957 | _resultobj = Py_BuildValue("s",_ptemp); | |
4958 | return _resultobj; | |
4959 | } | |
4960 | ||
cd096152 | 4961 | static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject * func) { |
dcd38683 RD |
4962 | if (!PyCallable_Check(func)) |
4963 | return FALSE; | |
f6bcfd97 | 4964 | return self->SortItems(wxPyListCtrl_SortItems, (long)func); |
dcd38683 RD |
4965 | } |
4966 | static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4967 | PyObject * _resultobj; | |
4968 | bool _result; | |
cd096152 | 4969 | wxPyListCtrl * _arg0; |
dcd38683 RD |
4970 | PyObject * _arg1; |
4971 | PyObject * _argo0 = 0; | |
4972 | PyObject * _obj1 = 0; | |
4973 | char *_kwnames[] = { "self","func", NULL }; | |
4974 | ||
4975 | self = self; | |
4976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1)) | |
4977 | return NULL; | |
4978 | if (_argo0) { | |
4979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxPyListCtrl_p."); | |
dcd38683 RD |
4982 | return NULL; |
4983 | } | |
4984 | } | |
4985 | { | |
4986 | _arg1 = _obj1; | |
4987 | } | |
4988 | { | |
474c48f9 | 4989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4990 | _result = (bool )wxPyListCtrl_SortItems(_arg0,_arg1); |
dcd38683 | 4991 | |
474c48f9 | 4992 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4993 | if (PyErr_Occurred()) return NULL; |
dcd38683 RD |
4994 | } _resultobj = Py_BuildValue("i",_result); |
4995 | return _resultobj; | |
4996 | } | |
4997 | ||
57ee4c3b RD |
4998 | static wxWindow * wxPyListCtrl_GetMainWindow(wxPyListCtrl *self) { |
4999 | #ifdef __WXMSW__ | |
5000 | return self; | |
5001 | #else | |
5002 | return (wxWindow*)self->m_mainWin; | |
5003 | #endif | |
5004 | } | |
5005 | static PyObject *_wrap_wxListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5006 | PyObject * _resultobj; | |
5007 | wxWindow * _result; | |
5008 | wxPyListCtrl * _arg0; | |
5009 | PyObject * _argo0 = 0; | |
5010 | char *_kwnames[] = { "self", NULL }; | |
5011 | ||
5012 | self = self; | |
5013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetMainWindow",_kwnames,&_argo0)) | |
5014 | return NULL; | |
5015 | if (_argo0) { | |
5016 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5017 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
5018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetMainWindow. Expected _wxPyListCtrl_p."); | |
5019 | return NULL; | |
5020 | } | |
5021 | } | |
5022 | { | |
5023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5024 | _result = (wxWindow *)wxPyListCtrl_GetMainWindow(_arg0); | |
5025 | ||
5026 | wxPyEndAllowThreads(__tstate); | |
5027 | if (PyErr_Occurred()) return NULL; | |
5028 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5029 | return _resultobj; | |
5030 | } | |
5031 | ||
059a841c RD |
5032 | static void *SwigwxListViewTowxPyListCtrl(void *ptr) { |
5033 | wxListView *src; | |
5034 | wxPyListCtrl *dest; | |
5035 | src = (wxListView *) ptr; | |
5036 | dest = (wxPyListCtrl *) src; | |
5037 | return (void *) dest; | |
5038 | } | |
5039 | ||
5040 | static void *SwigwxListViewTowxControl(void *ptr) { | |
5041 | wxListView *src; | |
5042 | wxControl *dest; | |
5043 | src = (wxListView *) ptr; | |
5044 | dest = (wxControl *) src; | |
5045 | return (void *) dest; | |
5046 | } | |
5047 | ||
5048 | static void *SwigwxListViewTowxWindow(void *ptr) { | |
5049 | wxListView *src; | |
5050 | wxWindow *dest; | |
5051 | src = (wxListView *) ptr; | |
5052 | dest = (wxWindow *) src; | |
5053 | return (void *) dest; | |
5054 | } | |
5055 | ||
5056 | static void *SwigwxListViewTowxEvtHandler(void *ptr) { | |
5057 | wxListView *src; | |
5058 | wxEvtHandler *dest; | |
5059 | src = (wxListView *) ptr; | |
5060 | dest = (wxEvtHandler *) src; | |
5061 | return (void *) dest; | |
5062 | } | |
5063 | ||
5064 | static void *SwigwxListViewTowxObject(void *ptr) { | |
5065 | wxListView *src; | |
5066 | wxObject *dest; | |
5067 | src = (wxListView *) ptr; | |
5068 | dest = (wxObject *) src; | |
5069 | return (void *) dest; | |
5070 | } | |
5071 | ||
5072 | #define new_wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5073 | static PyObject *_wrap_new_wxListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5074 | PyObject * _resultobj; | |
5075 | wxListView * _result; | |
5076 | wxWindow * _arg0; | |
5077 | wxWindowID _arg1 = (wxWindowID ) -1; | |
5078 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
5079 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5080 | long _arg4 = (long ) (wxLC_REPORT); | |
5081 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 5082 | wxString * _arg6 = (wxString *) &wxPyListCtrlNameStr; |
059a841c RD |
5083 | PyObject * _argo0 = 0; |
5084 | wxPoint temp; | |
5085 | PyObject * _obj2 = 0; | |
5086 | wxSize temp0; | |
5087 | PyObject * _obj3 = 0; | |
5088 | PyObject * _argo5 = 0; | |
5089 | PyObject * _obj6 = 0; | |
5090 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
5091 | char _ptemp[128]; | |
5092 | ||
5093 | self = self; | |
5094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListView",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) | |
5095 | return NULL; | |
5096 | if (_argo0) { | |
5097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListView. Expected _wxWindow_p."); | |
5100 | return NULL; | |
5101 | } | |
5102 | } | |
5103 | if (_obj2) | |
5104 | { | |
5105 | _arg2 = &temp; | |
5106 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5107 | return NULL; | |
5108 | } | |
5109 | if (_obj3) | |
5110 | { | |
5111 | _arg3 = &temp0; | |
5112 | if (! wxSize_helper(_obj3, &_arg3)) | |
5113 | return NULL; | |
5114 | } | |
5115 | if (_argo5) { | |
b67a9327 | 5116 | if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { |
059a841c RD |
5117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListView. Expected _wxValidator_p."); |
5118 | return NULL; | |
5119 | } | |
5120 | } | |
5121 | if (_obj6) | |
5122 | { | |
c8bc7bb8 RD |
5123 | _arg6 = wxString_in_helper(_obj6); |
5124 | if (_arg6 == NULL) | |
059a841c | 5125 | return NULL; |
059a841c RD |
5126 | } |
5127 | { | |
474c48f9 | 5128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5129 | _result = (wxListView *)new_wxListView(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
059a841c | 5130 | |
474c48f9 | 5131 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5132 | if (PyErr_Occurred()) return NULL; |
5133 | } if (_result) { | |
5134 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5135 | _resultobj = Py_BuildValue("s",_ptemp); | |
5136 | } else { | |
5137 | Py_INCREF(Py_None); | |
5138 | _resultobj = Py_None; | |
5139 | } | |
5140 | { | |
5141 | if (_obj6) | |
5142 | delete _arg6; | |
5143 | } | |
5144 | return _resultobj; | |
5145 | } | |
5146 | ||
5147 | #define new_wxPreListView() (new wxListView()) | |
5148 | static PyObject *_wrap_new_wxPreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5149 | PyObject * _resultobj; | |
5150 | wxListView * _result; | |
5151 | char *_kwnames[] = { NULL }; | |
5152 | char _ptemp[128]; | |
5153 | ||
5154 | self = self; | |
5155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListView",_kwnames)) | |
5156 | return NULL; | |
5157 | { | |
474c48f9 | 5158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5159 | _result = (wxListView *)new_wxPreListView(); |
059a841c | 5160 | |
474c48f9 | 5161 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5162 | if (PyErr_Occurred()) return NULL; |
5163 | } if (_result) { | |
5164 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5165 | _resultobj = Py_BuildValue("s",_ptemp); | |
5166 | } else { | |
5167 | Py_INCREF(Py_None); | |
5168 | _resultobj = Py_None; | |
5169 | } | |
5170 | return _resultobj; | |
5171 | } | |
5172 | ||
5173 | #define wxListView_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5174 | static PyObject *_wrap_wxListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5175 | PyObject * _resultobj; | |
5176 | bool _result; | |
5177 | wxListView * _arg0; | |
5178 | wxWindow * _arg1; | |
5179 | wxWindowID _arg2 = (wxWindowID ) -1; | |
5180 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5181 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5182 | long _arg5 = (long ) (wxLC_REPORT); | |
5183 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 5184 | wxString * _arg7 = (wxString *) &wxPyListCtrlNameStr; |
059a841c RD |
5185 | PyObject * _argo0 = 0; |
5186 | PyObject * _argo1 = 0; | |
5187 | wxPoint temp; | |
5188 | PyObject * _obj3 = 0; | |
5189 | wxSize temp0; | |
5190 | PyObject * _obj4 = 0; | |
5191 | PyObject * _argo6 = 0; | |
5192 | PyObject * _obj7 = 0; | |
5193 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
5194 | ||
5195 | self = self; | |
5196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListView_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
5197 | return NULL; | |
5198 | if (_argo0) { | |
5199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Create. Expected _wxListView_p."); | |
5202 | return NULL; | |
5203 | } | |
5204 | } | |
5205 | if (_argo1) { | |
5206 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5207 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListView_Create. Expected _wxWindow_p."); | |
5209 | return NULL; | |
5210 | } | |
5211 | } | |
5212 | if (_obj3) | |
5213 | { | |
5214 | _arg3 = &temp; | |
5215 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5216 | return NULL; | |
5217 | } | |
5218 | if (_obj4) | |
5219 | { | |
5220 | _arg4 = &temp0; | |
5221 | if (! wxSize_helper(_obj4, &_arg4)) | |
5222 | return NULL; | |
5223 | } | |
5224 | if (_argo6) { | |
b67a9327 | 5225 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { |
059a841c RD |
5226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListView_Create. Expected _wxValidator_p."); |
5227 | return NULL; | |
5228 | } | |
5229 | } | |
5230 | if (_obj7) | |
5231 | { | |
c8bc7bb8 RD |
5232 | _arg7 = wxString_in_helper(_obj7); |
5233 | if (_arg7 == NULL) | |
059a841c | 5234 | return NULL; |
059a841c RD |
5235 | } |
5236 | { | |
474c48f9 | 5237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5238 | _result = (bool )wxListView_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
059a841c | 5239 | |
474c48f9 | 5240 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5241 | if (PyErr_Occurred()) return NULL; |
5242 | } _resultobj = Py_BuildValue("i",_result); | |
5243 | { | |
5244 | if (_obj7) | |
5245 | delete _arg7; | |
5246 | } | |
5247 | return _resultobj; | |
5248 | } | |
5249 | ||
5250 | #define wxListView_Select(_swigobj,_swigarg0,_swigarg1) (_swigobj->Select(_swigarg0,_swigarg1)) | |
5251 | static PyObject *_wrap_wxListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5252 | PyObject * _resultobj; | |
5253 | wxListView * _arg0; | |
5254 | long _arg1; | |
5255 | bool _arg2 = (bool ) TRUE; | |
5256 | PyObject * _argo0 = 0; | |
5257 | int tempbool2 = (int) TRUE; | |
5258 | char *_kwnames[] = { "self","n","on", NULL }; | |
5259 | ||
5260 | self = self; | |
5261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListView_Select",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
5262 | return NULL; | |
5263 | if (_argo0) { | |
5264 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5265 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Select. Expected _wxListView_p."); | |
5267 | return NULL; | |
5268 | } | |
5269 | } | |
5270 | _arg2 = (bool ) tempbool2; | |
5271 | { | |
474c48f9 | 5272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5273 | wxListView_Select(_arg0,_arg1,_arg2); |
059a841c | 5274 | |
474c48f9 | 5275 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5276 | if (PyErr_Occurred()) return NULL; |
5277 | } Py_INCREF(Py_None); | |
5278 | _resultobj = Py_None; | |
5279 | return _resultobj; | |
5280 | } | |
5281 | ||
5282 | #define wxListView_Focus(_swigobj,_swigarg0) (_swigobj->Focus(_swigarg0)) | |
5283 | static PyObject *_wrap_wxListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5284 | PyObject * _resultobj; | |
5285 | wxListView * _arg0; | |
5286 | long _arg1; | |
5287 | PyObject * _argo0 = 0; | |
5288 | char *_kwnames[] = { "self","index", NULL }; | |
5289 | ||
5290 | self = self; | |
5291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_Focus",_kwnames,&_argo0,&_arg1)) | |
5292 | return NULL; | |
5293 | if (_argo0) { | |
5294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Focus. Expected _wxListView_p."); | |
5297 | return NULL; | |
5298 | } | |
5299 | } | |
5300 | { | |
474c48f9 | 5301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5302 | wxListView_Focus(_arg0,_arg1); |
059a841c | 5303 | |
474c48f9 | 5304 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5305 | if (PyErr_Occurred()) return NULL; |
5306 | } Py_INCREF(Py_None); | |
5307 | _resultobj = Py_None; | |
5308 | return _resultobj; | |
5309 | } | |
5310 | ||
5311 | #define wxListView_GetFocusedItem(_swigobj) (_swigobj->GetFocusedItem()) | |
5312 | static PyObject *_wrap_wxListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5313 | PyObject * _resultobj; | |
5314 | long _result; | |
5315 | wxListView * _arg0; | |
5316 | PyObject * _argo0 = 0; | |
5317 | char *_kwnames[] = { "self", NULL }; | |
5318 | ||
5319 | self = self; | |
5320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFocusedItem",_kwnames,&_argo0)) | |
5321 | return NULL; | |
5322 | if (_argo0) { | |
5323 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5324 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFocusedItem. Expected _wxListView_p."); | |
5326 | return NULL; | |
5327 | } | |
5328 | } | |
5329 | { | |
474c48f9 | 5330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5331 | _result = (long )wxListView_GetFocusedItem(_arg0); |
059a841c | 5332 | |
474c48f9 | 5333 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5334 | if (PyErr_Occurred()) return NULL; |
5335 | } _resultobj = Py_BuildValue("l",_result); | |
5336 | return _resultobj; | |
5337 | } | |
5338 | ||
5339 | #define wxListView_GetNextSelected(_swigobj,_swigarg0) (_swigobj->GetNextSelected(_swigarg0)) | |
5340 | static PyObject *_wrap_wxListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5341 | PyObject * _resultobj; | |
5342 | long _result; | |
5343 | wxListView * _arg0; | |
5344 | long _arg1; | |
5345 | PyObject * _argo0 = 0; | |
5346 | char *_kwnames[] = { "self","item", NULL }; | |
5347 | ||
5348 | self = self; | |
5349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_GetNextSelected",_kwnames,&_argo0,&_arg1)) | |
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_GetNextSelected. Expected _wxListView_p."); | |
5355 | return NULL; | |
5356 | } | |
5357 | } | |
5358 | { | |
474c48f9 | 5359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5360 | _result = (long )wxListView_GetNextSelected(_arg0,_arg1); |
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_GetFirstSelected(_swigobj) (_swigobj->GetFirstSelected()) | |
5369 | static PyObject *_wrap_wxListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5370 | PyObject * _resultobj; | |
5371 | long _result; | |
5372 | wxListView * _arg0; | |
5373 | PyObject * _argo0 = 0; | |
5374 | char *_kwnames[] = { "self", NULL }; | |
5375 | ||
5376 | self = self; | |
5377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFirstSelected",_kwnames,&_argo0)) | |
5378 | return NULL; | |
5379 | if (_argo0) { | |
5380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFirstSelected. Expected _wxListView_p."); | |
5383 | return NULL; | |
5384 | } | |
5385 | } | |
5386 | { | |
474c48f9 | 5387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5388 | _result = (long )wxListView_GetFirstSelected(_arg0); |
059a841c | 5389 | |
474c48f9 | 5390 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5391 | if (PyErr_Occurred()) return NULL; |
5392 | } _resultobj = Py_BuildValue("l",_result); | |
5393 | return _resultobj; | |
5394 | } | |
5395 | ||
5396 | #define wxListView_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) | |
5397 | static PyObject *_wrap_wxListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5398 | PyObject * _resultobj; | |
5399 | bool _result; | |
5400 | wxListView * _arg0; | |
5401 | long _arg1; | |
5402 | PyObject * _argo0 = 0; | |
5403 | char *_kwnames[] = { "self","index", NULL }; | |
5404 | ||
5405 | self = self; | |
5406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_IsSelected",_kwnames,&_argo0,&_arg1)) | |
5407 | return NULL; | |
5408 | if (_argo0) { | |
5409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_IsSelected. Expected _wxListView_p."); | |
5412 | return NULL; | |
5413 | } | |
5414 | } | |
5415 | { | |
474c48f9 | 5416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5417 | _result = (bool )wxListView_IsSelected(_arg0,_arg1); |
059a841c | 5418 | |
474c48f9 | 5419 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5420 | if (PyErr_Occurred()) return NULL; |
5421 | } _resultobj = Py_BuildValue("i",_result); | |
5422 | return _resultobj; | |
5423 | } | |
5424 | ||
5425 | #define wxListView_SetColumnImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnImage(_swigarg0,_swigarg1)) | |
5426 | static PyObject *_wrap_wxListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5427 | PyObject * _resultobj; | |
5428 | wxListView * _arg0; | |
5429 | int _arg1; | |
5430 | int _arg2; | |
5431 | PyObject * _argo0 = 0; | |
5432 | char *_kwnames[] = { "self","col","image", NULL }; | |
5433 | ||
5434 | self = self; | |
5435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListView_SetColumnImage",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5436 | return NULL; | |
5437 | if (_argo0) { | |
5438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_SetColumnImage. Expected _wxListView_p."); | |
5441 | return NULL; | |
5442 | } | |
5443 | } | |
5444 | { | |
474c48f9 | 5445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5446 | wxListView_SetColumnImage(_arg0,_arg1,_arg2); |
059a841c | 5447 | |
474c48f9 | 5448 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5449 | if (PyErr_Occurred()) return NULL; |
5450 | } Py_INCREF(Py_None); | |
5451 | _resultobj = Py_None; | |
5452 | return _resultobj; | |
5453 | } | |
5454 | ||
5455 | #define wxListView_ClearColumnImage(_swigobj,_swigarg0) (_swigobj->ClearColumnImage(_swigarg0)) | |
5456 | static PyObject *_wrap_wxListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5457 | PyObject * _resultobj; | |
5458 | wxListView * _arg0; | |
5459 | int _arg1; | |
5460 | PyObject * _argo0 = 0; | |
5461 | char *_kwnames[] = { "self","col", NULL }; | |
5462 | ||
5463 | self = self; | |
5464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListView_ClearColumnImage",_kwnames,&_argo0,&_arg1)) | |
5465 | return NULL; | |
5466 | if (_argo0) { | |
5467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_ClearColumnImage. Expected _wxListView_p."); | |
5470 | return NULL; | |
5471 | } | |
5472 | } | |
5473 | { | |
474c48f9 | 5474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5475 | wxListView_ClearColumnImage(_arg0,_arg1); |
059a841c | 5476 | |
474c48f9 | 5477 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5478 | if (PyErr_Occurred()) return NULL; |
5479 | } Py_INCREF(Py_None); | |
5480 | _resultobj = Py_None; | |
5481 | return _resultobj; | |
5482 | } | |
5483 | ||
aa2a5b86 RD |
5484 | #define new_wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
5485 | static PyObject *_wrap_new_wxTreeItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5486 | PyObject * _resultobj; |
aa2a5b86 RD |
5487 | wxTreeItemAttr * _result; |
5488 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5489 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5490 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5491 | wxColour temp; | |
5492 | PyObject * _obj0 = 0; | |
5493 | wxColour temp0; | |
5494 | PyObject * _obj1 = 0; | |
5495 | PyObject * _argo2 = 0; | |
5496 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
d5c9047a | 5497 | char _ptemp[128]; |
8ab979d7 RD |
5498 | |
5499 | self = self; | |
aa2a5b86 RD |
5500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTreeItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) |
5501 | return NULL; | |
5502 | if (_obj0) | |
5503 | { | |
5504 | _arg0 = &temp; | |
5505 | if (! wxColour_helper(_obj0, &_arg0)) | |
5506 | return NULL; | |
5507 | } | |
5508 | if (_obj1) | |
5509 | { | |
5510 | _arg1 = &temp0; | |
5511 | if (! wxColour_helper(_obj1, &_arg1)) | |
5512 | return NULL; | |
5513 | } | |
5514 | if (_argo2) { | |
b67a9327 | 5515 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { |
aa2a5b86 | 5516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTreeItemAttr. Expected _wxFont_p."); |
8ab979d7 | 5517 | return NULL; |
aa2a5b86 RD |
5518 | } |
5519 | } | |
cf694132 | 5520 | { |
474c48f9 | 5521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5522 | _result = (wxTreeItemAttr *)new_wxTreeItemAttr(*_arg0,*_arg1,*_arg2); |
cf694132 | 5523 | |
474c48f9 | 5524 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5525 | if (PyErr_Occurred()) return NULL; |
1d99702e | 5526 | } if (_result) { |
aa2a5b86 | 5527 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemAttr_p"); |
1d99702e RD |
5528 | _resultobj = Py_BuildValue("s",_ptemp); |
5529 | } else { | |
5530 | Py_INCREF(Py_None); | |
5531 | _resultobj = Py_None; | |
5532 | } | |
8ab979d7 RD |
5533 | return _resultobj; |
5534 | } | |
5535 | ||
aa2a5b86 RD |
5536 | #define wxTreeItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
5537 | static PyObject *_wrap_wxTreeItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5538 | PyObject * _resultobj; |
aa2a5b86 RD |
5539 | wxTreeItemAttr * _arg0; |
5540 | wxColour * _arg1; | |
1d99702e | 5541 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
5542 | wxColour temp; |
5543 | PyObject * _obj1 = 0; | |
5544 | char *_kwnames[] = { "self","colText", NULL }; | |
8ab979d7 RD |
5545 | |
5546 | self = self; | |
aa2a5b86 | 5547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5548 | return NULL; |
1d99702e RD |
5549 | if (_argo0) { |
5550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetTextColour. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5553 | return NULL; |
5554 | } | |
5555 | } | |
aa2a5b86 RD |
5556 | { |
5557 | _arg1 = &temp; | |
5558 | if (! wxColour_helper(_obj1, &_arg1)) | |
5559 | return NULL; | |
5560 | } | |
cf694132 | 5561 | { |
474c48f9 | 5562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5563 | wxTreeItemAttr_SetTextColour(_arg0,*_arg1); |
cf694132 | 5564 | |
474c48f9 | 5565 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5566 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5567 | } Py_INCREF(Py_None); |
d5c9047a | 5568 | _resultobj = Py_None; |
8ab979d7 RD |
5569 | return _resultobj; |
5570 | } | |
5571 | ||
aa2a5b86 RD |
5572 | #define wxTreeItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
5573 | static PyObject *_wrap_wxTreeItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5574 | PyObject * _resultobj; |
aa2a5b86 RD |
5575 | wxTreeItemAttr * _arg0; |
5576 | wxColour * _arg1; | |
1d99702e | 5577 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
5578 | wxColour temp; |
5579 | PyObject * _obj1 = 0; | |
5580 | char *_kwnames[] = { "self","colBack", NULL }; | |
8ab979d7 RD |
5581 | |
5582 | self = self; | |
aa2a5b86 | 5583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5584 | return NULL; |
1d99702e RD |
5585 | if (_argo0) { |
5586 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5587 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5589 | return NULL; |
5590 | } | |
5591 | } | |
aa2a5b86 RD |
5592 | { |
5593 | _arg1 = &temp; | |
5594 | if (! wxColour_helper(_obj1, &_arg1)) | |
5595 | return NULL; | |
5596 | } | |
cf694132 | 5597 | { |
474c48f9 | 5598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5599 | wxTreeItemAttr_SetBackgroundColour(_arg0,*_arg1); |
cf694132 | 5600 | |
474c48f9 | 5601 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5602 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 RD |
5603 | } Py_INCREF(Py_None); |
5604 | _resultobj = Py_None; | |
8ab979d7 RD |
5605 | return _resultobj; |
5606 | } | |
5607 | ||
aa2a5b86 RD |
5608 | #define wxTreeItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
5609 | static PyObject *_wrap_wxTreeItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 5610 | PyObject * _resultobj; |
aa2a5b86 RD |
5611 | wxTreeItemAttr * _arg0; |
5612 | wxFont * _arg1; | |
f6bcfd97 BP |
5613 | PyObject * _argo0 = 0; |
5614 | PyObject * _argo1 = 0; | |
aa2a5b86 | 5615 | char *_kwnames[] = { "self","font", NULL }; |
f6bcfd97 BP |
5616 | |
5617 | self = self; | |
aa2a5b86 | 5618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) |
f6bcfd97 BP |
5619 | return NULL; |
5620 | if (_argo0) { | |
5621 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5622 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetFont. Expected _wxTreeItemAttr_p."); | |
f6bcfd97 BP |
5624 | return NULL; |
5625 | } | |
5626 | } | |
5627 | if (_argo1) { | |
b67a9327 | 5628 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { |
aa2a5b86 | 5629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemAttr_SetFont. Expected _wxFont_p."); |
f6bcfd97 BP |
5630 | return NULL; |
5631 | } | |
5632 | } | |
5633 | { | |
474c48f9 | 5634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5635 | wxTreeItemAttr_SetFont(_arg0,*_arg1); |
f6bcfd97 | 5636 | |
474c48f9 | 5637 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5638 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 RD |
5639 | } Py_INCREF(Py_None); |
5640 | _resultobj = Py_None; | |
f6bcfd97 BP |
5641 | return _resultobj; |
5642 | } | |
5643 | ||
aa2a5b86 RD |
5644 | #define wxTreeItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) |
5645 | static PyObject *_wrap_wxTreeItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5646 | PyObject * _resultobj; |
aa2a5b86 RD |
5647 | bool _result; |
5648 | wxTreeItemAttr * _arg0; | |
5649 | PyObject * _argo0 = 0; | |
5650 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
5651 | |
5652 | self = self; | |
aa2a5b86 | 5653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasTextColour",_kwnames,&_argo0)) |
8ab979d7 | 5654 | return NULL; |
aa2a5b86 RD |
5655 | if (_argo0) { |
5656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasTextColour. Expected _wxTreeItemAttr_p."); | |
5659 | return NULL; | |
5660 | } | |
5661 | } | |
cf694132 | 5662 | { |
474c48f9 | 5663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5664 | _result = (bool )wxTreeItemAttr_HasTextColour(_arg0); |
cf694132 | 5665 | |
474c48f9 | 5666 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5667 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5668 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5669 | return _resultobj; |
5670 | } | |
5671 | ||
aa2a5b86 RD |
5672 | #define wxTreeItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) |
5673 | static PyObject *_wrap_wxTreeItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 5674 | PyObject * _resultobj; |
aa2a5b86 RD |
5675 | bool _result; |
5676 | wxTreeItemAttr * _arg0; | |
1d99702e | 5677 | PyObject * _argo0 = 0; |
efc5f224 | 5678 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
5679 | |
5680 | self = self; | |
aa2a5b86 | 5681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasBackgroundColour",_kwnames,&_argo0)) |
cf694132 | 5682 | return NULL; |
1d99702e RD |
5683 | if (_argo0) { |
5684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasBackgroundColour. Expected _wxTreeItemAttr_p."); | |
cf694132 RD |
5687 | return NULL; |
5688 | } | |
5689 | } | |
5690 | { | |
474c48f9 | 5691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5692 | _result = (bool )wxTreeItemAttr_HasBackgroundColour(_arg0); |
cf694132 | 5693 | |
474c48f9 | 5694 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5695 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5696 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
5697 | return _resultobj; |
5698 | } | |
5699 | ||
aa2a5b86 RD |
5700 | #define wxTreeItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) |
5701 | static PyObject *_wrap_wxTreeItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5702 | PyObject * _resultobj; |
aa2a5b86 RD |
5703 | bool _result; |
5704 | wxTreeItemAttr * _arg0; | |
1d99702e | 5705 | PyObject * _argo0 = 0; |
aa2a5b86 | 5706 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5707 | |
5708 | self = self; | |
aa2a5b86 | 5709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasFont",_kwnames,&_argo0)) |
8ab979d7 | 5710 | return NULL; |
1d99702e RD |
5711 | if (_argo0) { |
5712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasFont. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5715 | return NULL; |
5716 | } | |
5717 | } | |
cf694132 | 5718 | { |
474c48f9 | 5719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5720 | _result = (bool )wxTreeItemAttr_HasFont(_arg0); |
cf694132 | 5721 | |
474c48f9 | 5722 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5723 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5724 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5725 | return _resultobj; |
5726 | } | |
5727 | ||
aa2a5b86 RD |
5728 | #define wxTreeItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
5729 | static PyObject *_wrap_wxTreeItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5730 | PyObject * _resultobj; |
aa2a5b86 RD |
5731 | wxColour * _result; |
5732 | wxTreeItemAttr * _arg0; | |
1d99702e | 5733 | PyObject * _argo0 = 0; |
efc5f224 | 5734 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5735 | char _ptemp[128]; |
5736 | ||
5737 | self = self; | |
aa2a5b86 | 5738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 5739 | return NULL; |
1d99702e RD |
5740 | if (_argo0) { |
5741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetTextColour. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5744 | return NULL; |
5745 | } | |
5746 | } | |
cf694132 | 5747 | { |
474c48f9 | 5748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5749 | _result = new wxColour (wxTreeItemAttr_GetTextColour(_arg0)); |
cf694132 | 5750 | |
474c48f9 | 5751 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5752 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
5753 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5754 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
5755 | return _resultobj; |
5756 | } | |
5757 | ||
aa2a5b86 RD |
5758 | #define wxTreeItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) |
5759 | static PyObject *_wrap_wxTreeItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
630d84f2 | 5760 | PyObject * _resultobj; |
aa2a5b86 RD |
5761 | wxColour * _result; |
5762 | wxTreeItemAttr * _arg0; | |
1d99702e | 5763 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
5764 | char *_kwnames[] = { "self", NULL }; |
5765 | char _ptemp[128]; | |
5766 | ||
5767 | self = self; | |
5768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
5769 | return NULL; | |
5770 | if (_argo0) { | |
5771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5774 | return NULL; | |
5775 | } | |
5776 | } | |
5777 | { | |
474c48f9 | 5778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5779 | _result = new wxColour (wxTreeItemAttr_GetBackgroundColour(_arg0)); |
aa2a5b86 | 5780 | |
474c48f9 | 5781 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 | 5782 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
5783 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5784 | _resultobj = Py_BuildValue("s",_ptemp); | |
aa2a5b86 RD |
5785 | return _resultobj; |
5786 | } | |
5787 | ||
5788 | #define wxTreeItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
5789 | static PyObject *_wrap_wxTreeItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5790 | PyObject * _resultobj; | |
5791 | wxFont * _result; | |
5792 | wxTreeItemAttr * _arg0; | |
5793 | PyObject * _argo0 = 0; | |
5794 | char *_kwnames[] = { "self", NULL }; | |
5795 | char _ptemp[128]; | |
5796 | ||
5797 | self = self; | |
5798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetFont",_kwnames,&_argo0)) | |
5799 | return NULL; | |
5800 | if (_argo0) { | |
5801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetFont. Expected _wxTreeItemAttr_p."); | |
5804 | return NULL; | |
5805 | } | |
5806 | } | |
5807 | { | |
474c48f9 | 5808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5809 | _result = new wxFont (wxTreeItemAttr_GetFont(_arg0)); |
aa2a5b86 | 5810 | |
474c48f9 | 5811 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 | 5812 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
5813 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
5814 | _resultobj = Py_BuildValue("s",_ptemp); | |
aa2a5b86 RD |
5815 | return _resultobj; |
5816 | } | |
5817 | ||
5818 | #define new_wxTreeItemId() (new wxTreeItemId()) | |
5819 | static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5820 | PyObject * _resultobj; | |
5821 | wxTreeItemId * _result; | |
5822 | char *_kwnames[] = { NULL }; | |
5823 | char _ptemp[128]; | |
5824 | ||
5825 | self = self; | |
5826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames)) | |
5827 | return NULL; | |
5828 | { | |
474c48f9 | 5829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5830 | _result = (wxTreeItemId *)new_wxTreeItemId(); |
aa2a5b86 | 5831 | |
474c48f9 | 5832 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5833 | if (PyErr_Occurred()) return NULL; |
5834 | } if (_result) { | |
5835 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
5836 | _resultobj = Py_BuildValue("s",_ptemp); | |
5837 | } else { | |
5838 | Py_INCREF(Py_None); | |
5839 | _resultobj = Py_None; | |
5840 | } | |
5841 | return _resultobj; | |
5842 | } | |
5843 | ||
5844 | #define delete_wxTreeItemId(_swigobj) (delete _swigobj) | |
5845 | static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5846 | PyObject * _resultobj; | |
5847 | wxTreeItemId * _arg0; | |
5848 | PyObject * _argo0 = 0; | |
5849 | char *_kwnames[] = { "self", NULL }; | |
5850 | ||
5851 | self = self; | |
5852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0)) | |
5853 | return NULL; | |
5854 | if (_argo0) { | |
5855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p."); | |
5858 | return NULL; | |
5859 | } | |
5860 | } | |
5861 | { | |
474c48f9 | 5862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5863 | delete_wxTreeItemId(_arg0); |
aa2a5b86 | 5864 | |
474c48f9 | 5865 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5866 | if (PyErr_Occurred()) return NULL; |
5867 | } Py_INCREF(Py_None); | |
5868 | _resultobj = Py_None; | |
5869 | return _resultobj; | |
5870 | } | |
5871 | ||
5872 | #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk()) | |
5873 | static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5874 | PyObject * _resultobj; | |
5875 | bool _result; | |
5876 | wxTreeItemId * _arg0; | |
5877 | PyObject * _argo0 = 0; | |
5878 | char *_kwnames[] = { "self", NULL }; | |
5879 | ||
5880 | self = self; | |
5881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0)) | |
5882 | return NULL; | |
5883 | if (_argo0) { | |
5884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p."); | |
5887 | return NULL; | |
5888 | } | |
5889 | } | |
5890 | { | |
474c48f9 | 5891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5892 | _result = (bool )wxTreeItemId_IsOk(_arg0); |
aa2a5b86 | 5893 | |
474c48f9 | 5894 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5895 | if (PyErr_Occurred()) return NULL; |
5896 | } _resultobj = Py_BuildValue("i",_result); | |
5897 | return _resultobj; | |
5898 | } | |
5899 | ||
5900 | static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) { | |
5901 | if (! other) return -1; | |
5902 | return *self != *other; | |
5903 | } | |
5904 | static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5905 | PyObject * _resultobj; | |
5906 | int _result; | |
5907 | wxTreeItemId * _arg0; | |
5908 | wxTreeItemId * _arg1; | |
5909 | PyObject * _argo0 = 0; | |
5910 | PyObject * _argo1 = 0; | |
5911 | char *_kwnames[] = { "self","other", NULL }; | |
5912 | ||
5913 | self = self; | |
5914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1)) | |
5915 | return NULL; | |
5916 | if (_argo0) { | |
5917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5920 | return NULL; | |
5921 | } | |
5922 | } | |
5923 | if (_argo1) { | |
5924 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5925 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
5926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5927 | return NULL; | |
5928 | } | |
5929 | } | |
5930 | { | |
474c48f9 | 5931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5932 | _result = (int )wxTreeItemId___cmp__(_arg0,_arg1); |
aa2a5b86 | 5933 | |
474c48f9 | 5934 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5935 | if (PyErr_Occurred()) return NULL; |
5936 | } _resultobj = Py_BuildValue("i",_result); | |
5937 | return _resultobj; | |
5938 | } | |
5939 | ||
aa2a5b86 RD |
5940 | #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) |
5941 | static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5942 | PyObject * _resultobj; | |
5943 | wxPyTreeItemData * _result; | |
5944 | PyObject * _arg0 = (PyObject *) NULL; | |
5945 | PyObject * _obj0 = 0; | |
5946 | char *_kwnames[] = { "obj", NULL }; | |
5947 | char _ptemp[128]; | |
5948 | ||
5949 | self = self; | |
5950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0)) | |
5951 | return NULL; | |
5952 | if (_obj0) | |
5953 | { | |
5954 | _arg0 = _obj0; | |
5955 | } | |
5956 | { | |
474c48f9 | 5957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5958 | _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0); |
aa2a5b86 | 5959 | |
474c48f9 | 5960 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5961 | if (PyErr_Occurred()) return NULL; |
5962 | } if (_result) { | |
5963 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
5964 | _resultobj = Py_BuildValue("s",_ptemp); | |
5965 | } else { | |
5966 | Py_INCREF(Py_None); | |
5967 | _resultobj = Py_None; | |
5968 | } | |
5969 | return _resultobj; | |
5970 | } | |
5971 | ||
5972 | #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData()) | |
5973 | static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5974 | PyObject * _resultobj; | |
5975 | PyObject * _result; | |
5976 | wxPyTreeItemData * _arg0; | |
5977 | PyObject * _argo0 = 0; | |
5978 | char *_kwnames[] = { "self", NULL }; | |
5979 | ||
5980 | self = self; | |
5981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0)) | |
5982 | return NULL; | |
5983 | if (_argo0) { | |
5984 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5985 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
5986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p."); | |
5987 | return NULL; | |
5988 | } | |
5989 | } | |
5990 | { | |
474c48f9 | 5991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5992 | _result = (PyObject *)wxTreeItemData_GetData(_arg0); |
aa2a5b86 | 5993 | |
474c48f9 | 5994 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5995 | if (PyErr_Occurred()) return NULL; |
5996 | }{ | |
5997 | _resultobj = _result; | |
5998 | } | |
5999 | return _resultobj; | |
6000 | } | |
6001 | ||
6002 | #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
6003 | static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6004 | PyObject * _resultobj; | |
6005 | wxPyTreeItemData * _arg0; | |
6006 | PyObject * _arg1; | |
6007 | PyObject * _argo0 = 0; | |
6008 | PyObject * _obj1 = 0; | |
6009 | char *_kwnames[] = { "self","obj", NULL }; | |
6010 | ||
6011 | self = self; | |
6012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1)) | |
6013 | return NULL; | |
6014 | if (_argo0) { | |
6015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p."); | |
6018 | return NULL; | |
6019 | } | |
6020 | } | |
6021 | { | |
6022 | _arg1 = _obj1; | |
6023 | } | |
6024 | { | |
474c48f9 | 6025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6026 | wxTreeItemData_SetData(_arg0,_arg1); |
aa2a5b86 | 6027 | |
474c48f9 | 6028 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6029 | if (PyErr_Occurred()) return NULL; |
6030 | } Py_INCREF(Py_None); | |
6031 | _resultobj = Py_None; | |
6032 | return _resultobj; | |
6033 | } | |
6034 | ||
6035 | #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId()) | |
6036 | static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6037 | PyObject * _resultobj; | |
6038 | wxTreeItemId * _result; | |
6039 | wxPyTreeItemData * _arg0; | |
6040 | PyObject * _argo0 = 0; | |
6041 | char *_kwnames[] = { "self", NULL }; | |
6042 | char _ptemp[128]; | |
6043 | ||
6044 | self = self; | |
6045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0)) | |
6046 | return NULL; | |
6047 | if (_argo0) { | |
6048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p."); | |
6051 | return NULL; | |
6052 | } | |
6053 | } | |
6054 | { | |
474c48f9 | 6055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6056 | const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0); |
aa2a5b86 RD |
6057 | _result = (wxTreeItemId *) &_result_ref; |
6058 | ||
474c48f9 | 6059 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6060 | if (PyErr_Occurred()) return NULL; |
6061 | } if (_result) { | |
6062 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
6063 | _resultobj = Py_BuildValue("s",_ptemp); | |
6064 | } else { | |
6065 | Py_INCREF(Py_None); | |
6066 | _resultobj = Py_None; | |
6067 | } | |
6068 | return _resultobj; | |
6069 | } | |
6070 | ||
6071 | #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
6072 | static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6073 | PyObject * _resultobj; | |
6074 | wxPyTreeItemData * _arg0; | |
6075 | wxTreeItemId * _arg1; | |
6076 | PyObject * _argo0 = 0; | |
6077 | PyObject * _argo1 = 0; | |
6078 | char *_kwnames[] = { "self","id", NULL }; | |
630d84f2 RD |
6079 | |
6080 | self = self; | |
efc5f224 | 6081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1)) |
630d84f2 | 6082 | return NULL; |
1d99702e RD |
6083 | if (_argo0) { |
6084 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6085 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 6086 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p."); |
630d84f2 RD |
6087 | return NULL; |
6088 | } | |
6089 | } | |
1d99702e | 6090 | if (_argo1) { |
b67a9327 | 6091 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
630d84f2 RD |
6092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p."); |
6093 | return NULL; | |
6094 | } | |
6095 | } | |
cf694132 | 6096 | { |
474c48f9 | 6097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6098 | wxTreeItemData_SetId(_arg0,*_arg1); |
cf694132 | 6099 | |
474c48f9 | 6100 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6101 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6102 | } Py_INCREF(Py_None); |
630d84f2 RD |
6103 | _resultobj = Py_None; |
6104 | return _resultobj; | |
6105 | } | |
6106 | ||
8bf5d46e RD |
6107 | static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) { |
6108 | wxTreeEvent *src; | |
6109 | wxNotifyEvent *dest; | |
6110 | src = (wxTreeEvent *) ptr; | |
6111 | dest = (wxNotifyEvent *) src; | |
6112 | return (void *) dest; | |
6113 | } | |
6114 | ||
8ab979d7 RD |
6115 | static void *SwigwxTreeEventTowxCommandEvent(void *ptr) { |
6116 | wxTreeEvent *src; | |
6117 | wxCommandEvent *dest; | |
6118 | src = (wxTreeEvent *) ptr; | |
6119 | dest = (wxCommandEvent *) src; | |
6120 | return (void *) dest; | |
6121 | } | |
6122 | ||
6123 | static void *SwigwxTreeEventTowxEvent(void *ptr) { | |
6124 | wxTreeEvent *src; | |
6125 | wxEvent *dest; | |
6126 | src = (wxTreeEvent *) ptr; | |
6127 | dest = (wxEvent *) src; | |
6128 | return (void *) dest; | |
6129 | } | |
6130 | ||
9df61a29 RD |
6131 | static void *SwigwxTreeEventTowxObject(void *ptr) { |
6132 | wxTreeEvent *src; | |
6133 | wxObject *dest; | |
6134 | src = (wxTreeEvent *) ptr; | |
6135 | dest = (wxObject *) src; | |
6136 | return (void *) dest; | |
6137 | } | |
6138 | ||
aa2a5b86 RD |
6139 | #define new_wxTreeEvent(_swigarg0,_swigarg1) (new wxTreeEvent(_swigarg0,_swigarg1)) |
6140 | static PyObject *_wrap_new_wxTreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6141 | PyObject * _resultobj; | |
6142 | wxTreeEvent * _result; | |
6143 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
6144 | int _arg1 = (int ) 0; | |
6145 | char *_kwnames[] = { "commandType","id", NULL }; | |
6146 | char _ptemp[128]; | |
6147 | ||
6148 | self = self; | |
6149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxTreeEvent",_kwnames,&_arg0,&_arg1)) | |
6150 | return NULL; | |
6151 | { | |
474c48f9 | 6152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6153 | _result = (wxTreeEvent *)new_wxTreeEvent(_arg0,_arg1); |
aa2a5b86 | 6154 | |
474c48f9 | 6155 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6156 | if (PyErr_Occurred()) return NULL; |
6157 | } if (_result) { | |
6158 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeEvent_p"); | |
6159 | _resultobj = Py_BuildValue("s",_ptemp); | |
6160 | } else { | |
6161 | Py_INCREF(Py_None); | |
6162 | _resultobj = Py_None; | |
6163 | } | |
6164 | return _resultobj; | |
6165 | } | |
6166 | ||
d5c9047a | 6167 | #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
efc5f224 | 6168 | static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6169 | PyObject * _resultobj; |
d5c9047a | 6170 | wxTreeItemId * _result; |
8ab979d7 | 6171 | wxTreeEvent * _arg0; |
1d99702e | 6172 | PyObject * _argo0 = 0; |
efc5f224 | 6173 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6174 | char _ptemp[128]; |
8ab979d7 RD |
6175 | |
6176 | self = self; | |
efc5f224 | 6177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 6178 | return NULL; |
1d99702e RD |
6179 | if (_argo0) { |
6180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6183 | return NULL; |
6184 | } | |
6185 | } | |
cf694132 | 6186 | { |
474c48f9 | 6187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6188 | _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0)); |
cf694132 | 6189 | |
474c48f9 | 6190 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6191 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6192 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 6193 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6194 | return _resultobj; |
6195 | } | |
6196 | ||
3ef86e32 RD |
6197 | #define wxTreeEvent_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) |
6198 | static PyObject *_wrap_wxTreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6199 | PyObject * _resultobj; |
8ab979d7 | 6200 | wxTreeEvent * _arg0; |
3ef86e32 | 6201 | wxTreeItemId * _arg1; |
1d99702e | 6202 | PyObject * _argo0 = 0; |
3ef86e32 RD |
6203 | PyObject * _argo1 = 0; |
6204 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
6205 | |
6206 | self = self; | |
3ef86e32 | 6207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeEvent_SetItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6208 | return NULL; |
1d99702e RD |
6209 | if (_argo0) { |
6210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
3ef86e32 RD |
6212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_SetItem. Expected _wxTreeEvent_p."); |
6213 | return NULL; | |
6214 | } | |
6215 | } | |
6216 | if (_argo1) { | |
6217 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeEvent_SetItem. Expected _wxTreeItemId_p."); | |
8ab979d7 RD |
6219 | return NULL; |
6220 | } | |
6221 | } | |
cf694132 | 6222 | { |
474c48f9 | 6223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3ef86e32 | 6224 | wxTreeEvent_SetItem(_arg0,*_arg1); |
cf694132 | 6225 | |
474c48f9 | 6226 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6227 | if (PyErr_Occurred()) return NULL; |
3ef86e32 RD |
6228 | } Py_INCREF(Py_None); |
6229 | _resultobj = Py_None; | |
8ab979d7 RD |
6230 | return _resultobj; |
6231 | } | |
6232 | ||
3ef86e32 RD |
6233 | #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
6234 | static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6235 | PyObject * _resultobj; |
3ef86e32 | 6236 | wxTreeItemId * _result; |
8ab979d7 | 6237 | wxTreeEvent * _arg0; |
1d99702e | 6238 | PyObject * _argo0 = 0; |
efc5f224 | 6239 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6240 | char _ptemp[128]; |
8ab979d7 RD |
6241 | |
6242 | self = self; | |
3ef86e32 | 6243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0)) |
8ab979d7 | 6244 | return NULL; |
1d99702e RD |
6245 | if (_argo0) { |
6246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
3ef86e32 | 6248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6249 | return NULL; |
6250 | } | |
6251 | } | |
cf694132 | 6252 | { |
474c48f9 | 6253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3ef86e32 | 6254 | _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0)); |
cf694132 | 6255 | |
474c48f9 | 6256 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6257 | if (PyErr_Occurred()) return NULL; |
3ef86e32 | 6258 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 6259 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6260 | return _resultobj; |
6261 | } | |
6262 | ||
3ef86e32 RD |
6263 | #define wxTreeEvent_SetOldItem(_swigobj,_swigarg0) (_swigobj->SetOldItem(_swigarg0)) |
6264 | static PyObject *_wrap_wxTreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
65191ae8 | 6265 | PyObject * _resultobj; |
65191ae8 | 6266 | wxTreeEvent * _arg0; |
3ef86e32 | 6267 | wxTreeItemId * _arg1; |
65191ae8 | 6268 | PyObject * _argo0 = 0; |
3ef86e32 RD |
6269 | PyObject * _argo1 = 0; |
6270 | char *_kwnames[] = { "self","item", NULL }; | |
65191ae8 RD |
6271 | |
6272 | self = self; | |
3ef86e32 | 6273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeEvent_SetOldItem",_kwnames,&_argo0,&_argo1)) |
65191ae8 RD |
6274 | return NULL; |
6275 | if (_argo0) { | |
6276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
3ef86e32 RD |
6278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_SetOldItem. Expected _wxTreeEvent_p."); |
6279 | return NULL; | |
6280 | } | |
6281 | } | |
6282 | if (_argo1) { | |
6283 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeEvent_SetOldItem. Expected _wxTreeItemId_p."); | |
65191ae8 RD |
6285 | return NULL; |
6286 | } | |
6287 | } | |
6288 | { | |
474c48f9 | 6289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3ef86e32 | 6290 | wxTreeEvent_SetOldItem(_arg0,*_arg1); |
65191ae8 | 6291 | |
474c48f9 | 6292 | wxPyEndAllowThreads(__tstate); |
65191ae8 | 6293 | if (PyErr_Occurred()) return NULL; |
3ef86e32 RD |
6294 | } Py_INCREF(Py_None); |
6295 | _resultobj = Py_None; | |
65191ae8 RD |
6296 | return _resultobj; |
6297 | } | |
6298 | ||
3ef86e32 RD |
6299 | #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
6300 | static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6301 | PyObject * _resultobj; |
3ef86e32 | 6302 | wxPoint * _result; |
8ab979d7 | 6303 | wxTreeEvent * _arg0; |
1d99702e | 6304 | PyObject * _argo0 = 0; |
efc5f224 | 6305 | char *_kwnames[] = { "self", NULL }; |
3ef86e32 | 6306 | char _ptemp[128]; |
8ab979d7 RD |
6307 | |
6308 | self = self; | |
3ef86e32 | 6309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 6310 | return NULL; |
1d99702e RD |
6311 | if (_argo0) { |
6312 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6313 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
3ef86e32 | 6314 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6315 | return NULL; |
6316 | } | |
6317 | } | |
cf694132 | 6318 | { |
474c48f9 | 6319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3ef86e32 | 6320 | _result = new wxPoint (wxTreeEvent_GetPoint(_arg0)); |
cf694132 | 6321 | |
474c48f9 | 6322 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6323 | if (PyErr_Occurred()) return NULL; |
3ef86e32 RD |
6324 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
6325 | _resultobj = Py_BuildValue("s",_ptemp); | |
d5c9047a RD |
6326 | return _resultobj; |
6327 | } | |
6328 | ||
3ef86e32 RD |
6329 | #define wxTreeEvent_SetPoint(_swigobj,_swigarg0) (_swigobj->SetPoint(_swigarg0)) |
6330 | static PyObject *_wrap_wxTreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d5c9047a RD |
6331 | PyObject * _resultobj; |
6332 | wxTreeEvent * _arg0; | |
3ef86e32 | 6333 | wxPoint * _arg1; |
1d99702e | 6334 | PyObject * _argo0 = 0; |
3ef86e32 RD |
6335 | wxPoint temp; |
6336 | PyObject * _obj1 = 0; | |
6337 | char *_kwnames[] = { "self","pt", NULL }; | |
d5c9047a RD |
6338 | |
6339 | self = self; | |
3ef86e32 | 6340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeEvent_SetPoint",_kwnames,&_argo0,&_obj1)) |
d5c9047a | 6341 | return NULL; |
1d99702e RD |
6342 | if (_argo0) { |
6343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
3ef86e32 | 6345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_SetPoint. Expected _wxTreeEvent_p."); |
d5c9047a RD |
6346 | return NULL; |
6347 | } | |
6348 | } | |
3ef86e32 RD |
6349 | { |
6350 | _arg1 = &temp; | |
6351 | if (! wxPoint_helper(_obj1, &_arg1)) | |
6352 | return NULL; | |
6353 | } | |
cf694132 | 6354 | { |
474c48f9 | 6355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3ef86e32 | 6356 | wxTreeEvent_SetPoint(_arg0,*_arg1); |
cf694132 | 6357 | |
474c48f9 | 6358 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6359 | if (PyErr_Occurred()) return NULL; |
3ef86e32 RD |
6360 | } Py_INCREF(Py_None); |
6361 | _resultobj = Py_None; | |
8ab979d7 RD |
6362 | return _resultobj; |
6363 | } | |
6364 | ||
3ef86e32 RD |
6365 | #define wxTreeEvent_GetKeyEvent(_swigobj) (_swigobj->GetKeyEvent()) |
6366 | static PyObject *_wrap_wxTreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4eb65923 | 6367 | PyObject * _resultobj; |
3ef86e32 | 6368 | wxKeyEvent * _result; |
4eb65923 RD |
6369 | wxTreeEvent * _arg0; |
6370 | PyObject * _argo0 = 0; | |
6371 | char *_kwnames[] = { "self", NULL }; | |
3ef86e32 | 6372 | char _ptemp[128]; |
4eb65923 RD |
6373 | |
6374 | self = self; | |
3ef86e32 | 6375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetKeyEvent",_kwnames,&_argo0)) |
4eb65923 RD |
6376 | return NULL; |
6377 | if (_argo0) { | |
6378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
3ef86e32 | 6380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetKeyEvent. Expected _wxTreeEvent_p."); |
4eb65923 RD |
6381 | return NULL; |
6382 | } | |
6383 | } | |
6384 | { | |
6385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3ef86e32 RD |
6386 | const wxKeyEvent & _result_ref = wxTreeEvent_GetKeyEvent(_arg0); |
6387 | _result = (wxKeyEvent *) &_result_ref; | |
4eb65923 RD |
6388 | |
6389 | wxPyEndAllowThreads(__tstate); | |
6390 | if (PyErr_Occurred()) return NULL; | |
3ef86e32 RD |
6391 | } if (_result) { |
6392 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxKeyEvent_p"); | |
6393 | _resultobj = Py_BuildValue("s",_ptemp); | |
6394 | } else { | |
6395 | Py_INCREF(Py_None); | |
6396 | _resultobj = Py_None; | |
6397 | } | |
4eb65923 RD |
6398 | return _resultobj; |
6399 | } | |
6400 | ||
3ef86e32 RD |
6401 | #define wxTreeEvent_GetKeyCode(_swigobj) (_swigobj->GetKeyCode()) |
6402 | static PyObject *_wrap_wxTreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1fded56b | 6403 | PyObject * _resultobj; |
3ef86e32 | 6404 | int _result; |
1fded56b | 6405 | wxTreeEvent * _arg0; |
1fded56b | 6406 | PyObject * _argo0 = 0; |
3ef86e32 | 6407 | char *_kwnames[] = { "self", NULL }; |
1fded56b RD |
6408 | |
6409 | self = self; | |
3ef86e32 | 6410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetKeyCode",_kwnames,&_argo0)) |
1fded56b RD |
6411 | return NULL; |
6412 | if (_argo0) { | |
6413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
3ef86e32 | 6415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetKeyCode. Expected _wxTreeEvent_p."); |
1fded56b RD |
6416 | return NULL; |
6417 | } | |
6418 | } | |
6419 | { | |
6420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3ef86e32 | 6421 | _result = (int )wxTreeEvent_GetKeyCode(_arg0); |
1fded56b RD |
6422 | |
6423 | wxPyEndAllowThreads(__tstate); | |
6424 | if (PyErr_Occurred()) return NULL; | |
3ef86e32 | 6425 | } _resultobj = Py_BuildValue("i",_result); |
1fded56b RD |
6426 | return _resultobj; |
6427 | } | |
6428 | ||
3ef86e32 RD |
6429 | #define wxTreeEvent_SetKeyEvent(_swigobj,_swigarg0) (_swigobj->SetKeyEvent(_swigarg0)) |
6430 | static PyObject *_wrap_wxTreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1fded56b RD |
6431 | PyObject * _resultobj; |
6432 | wxTreeEvent * _arg0; | |
3ef86e32 | 6433 | wxKeyEvent * _arg1; |
1fded56b RD |
6434 | PyObject * _argo0 = 0; |
6435 | PyObject * _argo1 = 0; | |
3ef86e32 | 6436 | char *_kwnames[] = { "self","evt", NULL }; |
1fded56b RD |
6437 | |
6438 | self = self; | |
3ef86e32 | 6439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeEvent_SetKeyEvent",_kwnames,&_argo0,&_argo1)) |
1fded56b RD |
6440 | return NULL; |
6441 | if (_argo0) { | |
6442 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6443 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
3ef86e32 | 6444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_SetKeyEvent. Expected _wxTreeEvent_p."); |
1fded56b RD |
6445 | return NULL; |
6446 | } | |
6447 | } | |
6448 | if (_argo1) { | |
3ef86e32 RD |
6449 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxKeyEvent_p")) { |
6450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeEvent_SetKeyEvent. Expected _wxKeyEvent_p."); | |
1fded56b RD |
6451 | return NULL; |
6452 | } | |
6453 | } | |
6454 | { | |
6455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3ef86e32 | 6456 | wxTreeEvent_SetKeyEvent(_arg0,*_arg1); |
1fded56b RD |
6457 | |
6458 | wxPyEndAllowThreads(__tstate); | |
6459 | if (PyErr_Occurred()) return NULL; | |
6460 | } Py_INCREF(Py_None); | |
6461 | _resultobj = Py_None; | |
6462 | return _resultobj; | |
6463 | } | |
6464 | ||
3ef86e32 RD |
6465 | #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
6466 | static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1fded56b | 6467 | PyObject * _resultobj; |
3ef86e32 | 6468 | wxString * _result; |
1fded56b | 6469 | wxTreeEvent * _arg0; |
1fded56b | 6470 | PyObject * _argo0 = 0; |
3ef86e32 | 6471 | char *_kwnames[] = { "self", NULL }; |
1fded56b RD |
6472 | |
6473 | self = self; | |
3ef86e32 | 6474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0)) |
1fded56b RD |
6475 | return NULL; |
6476 | if (_argo0) { | |
6477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
3ef86e32 | 6479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p."); |
1fded56b RD |
6480 | return NULL; |
6481 | } | |
6482 | } | |
1fded56b RD |
6483 | { |
6484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3ef86e32 RD |
6485 | const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0); |
6486 | _result = (wxString *) &_result_ref; | |
1fded56b RD |
6487 | |
6488 | wxPyEndAllowThreads(__tstate); | |
6489 | if (PyErr_Occurred()) return NULL; | |
3ef86e32 RD |
6490 | }{ |
6491 | #if wxUSE_UNICODE | |
6492 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
6493 | #else | |
6494 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6495 | #endif | |
6496 | } | |
1fded56b RD |
6497 | return _resultobj; |
6498 | } | |
6499 | ||
3ef86e32 RD |
6500 | #define wxTreeEvent_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
6501 | static PyObject *_wrap_wxTreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1fded56b RD |
6502 | PyObject * _resultobj; |
6503 | wxTreeEvent * _arg0; | |
3ef86e32 | 6504 | wxString * _arg1; |
1fded56b | 6505 | PyObject * _argo0 = 0; |
3ef86e32 RD |
6506 | PyObject * _obj1 = 0; |
6507 | char *_kwnames[] = { "self","label", NULL }; | |
1fded56b RD |
6508 | |
6509 | self = self; | |
3ef86e32 | 6510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeEvent_SetLabel",_kwnames,&_argo0,&_obj1)) |
1fded56b RD |
6511 | return NULL; |
6512 | if (_argo0) { | |
6513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
3ef86e32 | 6515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_SetLabel. Expected _wxTreeEvent_p."); |
1fded56b RD |
6516 | return NULL; |
6517 | } | |
6518 | } | |
3ef86e32 RD |
6519 | { |
6520 | _arg1 = wxString_in_helper(_obj1); | |
6521 | if (_arg1 == NULL) | |
1fded56b | 6522 | return NULL; |
3ef86e32 | 6523 | } |
1fded56b RD |
6524 | { |
6525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3ef86e32 | 6526 | wxTreeEvent_SetLabel(_arg0,*_arg1); |
1fded56b RD |
6527 | |
6528 | wxPyEndAllowThreads(__tstate); | |
6529 | if (PyErr_Occurred()) return NULL; | |
6530 | } Py_INCREF(Py_None); | |
6531 | _resultobj = Py_None; | |
3ef86e32 RD |
6532 | { |
6533 | if (_obj1) | |
6534 | delete _arg1; | |
6535 | } | |
1fded56b RD |
6536 | return _resultobj; |
6537 | } | |
6538 | ||
3ef86e32 RD |
6539 | #define wxTreeEvent_IsEditCancelled(_swigobj) (_swigobj->IsEditCancelled()) |
6540 | static PyObject *_wrap_wxTreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1fded56b | 6541 | PyObject * _resultobj; |
3ef86e32 | 6542 | bool _result; |
1fded56b | 6543 | wxTreeEvent * _arg0; |
1fded56b | 6544 | PyObject * _argo0 = 0; |
3ef86e32 | 6545 | char *_kwnames[] = { "self", NULL }; |
1fded56b RD |
6546 | |
6547 | self = self; | |
3ef86e32 | 6548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_IsEditCancelled",_kwnames,&_argo0)) |
1fded56b RD |
6549 | return NULL; |
6550 | if (_argo0) { | |
6551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
3ef86e32 | 6553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_IsEditCancelled. Expected _wxTreeEvent_p."); |
1fded56b RD |
6554 | return NULL; |
6555 | } | |
6556 | } | |
1fded56b RD |
6557 | { |
6558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3ef86e32 | 6559 | _result = (bool )wxTreeEvent_IsEditCancelled(_arg0); |
1fded56b RD |
6560 | |
6561 | wxPyEndAllowThreads(__tstate); | |
6562 | if (PyErr_Occurred()) return NULL; | |
3ef86e32 | 6563 | } _resultobj = Py_BuildValue("i",_result); |
1fded56b RD |
6564 | return _resultobj; |
6565 | } | |
6566 | ||
6567 | #define wxTreeEvent_SetEditCanceled(_swigobj,_swigarg0) (_swigobj->SetEditCanceled(_swigarg0)) | |
6568 | static PyObject *_wrap_wxTreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6569 | PyObject * _resultobj; | |
6570 | wxTreeEvent * _arg0; | |
6571 | bool _arg1; | |
6572 | PyObject * _argo0 = 0; | |
6573 | int tempbool1; | |
6574 | char *_kwnames[] = { "self","editCancelled", NULL }; | |
6575 | ||
6576 | self = self; | |
6577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeEvent_SetEditCanceled",_kwnames,&_argo0,&tempbool1)) | |
6578 | return NULL; | |
6579 | if (_argo0) { | |
6580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_SetEditCanceled. Expected _wxTreeEvent_p."); | |
6583 | return NULL; | |
6584 | } | |
6585 | } | |
6586 | _arg1 = (bool ) tempbool1; | |
6587 | { | |
6588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6589 | wxTreeEvent_SetEditCanceled(_arg0,_arg1); | |
6590 | ||
6591 | wxPyEndAllowThreads(__tstate); | |
6592 | if (PyErr_Occurred()) return NULL; | |
6593 | } Py_INCREF(Py_None); | |
6594 | _resultobj = Py_None; | |
6595 | return _resultobj; | |
6596 | } | |
6597 | ||
f6bcfd97 BP |
6598 | static void *SwigwxPyTreeCtrlTowxControl(void *ptr) { |
6599 | wxPyTreeCtrl *src; | |
8ab979d7 | 6600 | wxControl *dest; |
f6bcfd97 | 6601 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6602 | dest = (wxControl *) src; |
6603 | return (void *) dest; | |
6604 | } | |
6605 | ||
f6bcfd97 BP |
6606 | static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) { |
6607 | wxPyTreeCtrl *src; | |
8ab979d7 | 6608 | wxWindow *dest; |
f6bcfd97 | 6609 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6610 | dest = (wxWindow *) src; |
6611 | return (void *) dest; | |
6612 | } | |
6613 | ||
f6bcfd97 BP |
6614 | static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) { |
6615 | wxPyTreeCtrl *src; | |
8ab979d7 | 6616 | wxEvtHandler *dest; |
f6bcfd97 | 6617 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6618 | dest = (wxEvtHandler *) src; |
6619 | return (void *) dest; | |
6620 | } | |
6621 | ||
9df61a29 RD |
6622 | static void *SwigwxPyTreeCtrlTowxObject(void *ptr) { |
6623 | wxPyTreeCtrl *src; | |
6624 | wxObject *dest; | |
6625 | src = (wxPyTreeCtrl *) ptr; | |
6626 | dest = (wxObject *) src; | |
6627 | return (void *) dest; | |
6628 | } | |
6629 | ||
f6bcfd97 | 6630 | #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6631 | static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6632 | PyObject * _resultobj; |
f6bcfd97 | 6633 | wxPyTreeCtrl * _result; |
8ab979d7 | 6634 | wxWindow * _arg0; |
1d99702e | 6635 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
6636 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6637 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1fded56b | 6638 | long _arg4 = (long ) (wxTR_DEFAULT_STYLE); |
b68dc582 | 6639 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 6640 | wxString * _arg6 = (wxString *) &wxPy_TreeCtrlNameStr; |
1d99702e | 6641 | PyObject * _argo0 = 0; |
2f90df85 RD |
6642 | wxPoint temp; |
6643 | PyObject * _obj2 = 0; | |
6644 | wxSize temp0; | |
6645 | PyObject * _obj3 = 0; | |
1d99702e | 6646 | PyObject * _argo5 = 0; |
9a74fcaf | 6647 | PyObject * _obj6 = 0; |
efc5f224 | 6648 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
6649 | char _ptemp[128]; |
6650 | ||
6651 | self = self; | |
9a74fcaf | 6652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) |
8ab979d7 | 6653 | return NULL; |
1d99702e RD |
6654 | if (_argo0) { |
6655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p."); |
6658 | return NULL; | |
6659 | } | |
6660 | } | |
2f90df85 RD |
6661 | if (_obj2) |
6662 | { | |
6663 | _arg2 = &temp; | |
6664 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6665 | return NULL; |
2f90df85 RD |
6666 | } |
6667 | if (_obj3) | |
6668 | { | |
6669 | _arg3 = &temp0; | |
6670 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6671 | return NULL; |
2f90df85 | 6672 | } |
1d99702e | 6673 | if (_argo5) { |
b67a9327 | 6674 | if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { |
8ab979d7 RD |
6675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p."); |
6676 | return NULL; | |
6677 | } | |
6678 | } | |
9a74fcaf RD |
6679 | if (_obj6) |
6680 | { | |
6681 | _arg6 = wxString_in_helper(_obj6); | |
6682 | if (_arg6 == NULL) | |
6683 | return NULL; | |
6684 | } | |
cf694132 | 6685 | { |
474c48f9 | 6686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 6687 | _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
cf694132 | 6688 | |
474c48f9 | 6689 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6690 | if (PyErr_Occurred()) return NULL; |
1d99702e | 6691 | } if (_result) { |
f6bcfd97 | 6692 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); |
1d99702e RD |
6693 | _resultobj = Py_BuildValue("s",_ptemp); |
6694 | } else { | |
6695 | Py_INCREF(Py_None); | |
6696 | _resultobj = Py_None; | |
6697 | } | |
9a74fcaf RD |
6698 | { |
6699 | if (_obj6) | |
6700 | delete _arg6; | |
6701 | } | |
8ab979d7 RD |
6702 | return _resultobj; |
6703 | } | |
6704 | ||
aa2a5b86 RD |
6705 | #define new_wxPreTreeCtrl() (new wxPyTreeCtrl()) |
6706 | static PyObject *_wrap_new_wxPreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 6707 | PyObject * _resultobj; |
aa2a5b86 RD |
6708 | wxPyTreeCtrl * _result; |
6709 | char *_kwnames[] = { NULL }; | |
6710 | char _ptemp[128]; | |
6711 | ||
6712 | self = self; | |
6713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTreeCtrl",_kwnames)) | |
6714 | return NULL; | |
6715 | { | |
474c48f9 | 6716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6717 | _result = (wxPyTreeCtrl *)new_wxPreTreeCtrl(); |
aa2a5b86 | 6718 | |
474c48f9 | 6719 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6720 | if (PyErr_Occurred()) return NULL; |
6721 | } if (_result) { | |
6722 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); | |
6723 | _resultobj = Py_BuildValue("s",_ptemp); | |
6724 | } else { | |
6725 | Py_INCREF(Py_None); | |
6726 | _resultobj = Py_None; | |
6727 | } | |
6728 | return _resultobj; | |
6729 | } | |
6730 | ||
6731 | #define wxTreeCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
6732 | static PyObject *_wrap_wxTreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6733 | PyObject * _resultobj; | |
6734 | bool _result; | |
f6bcfd97 | 6735 | wxPyTreeCtrl * _arg0; |
aa2a5b86 RD |
6736 | wxWindow * _arg1; |
6737 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6738 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6739 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1fded56b | 6740 | long _arg5 = (long ) (wxTR_DEFAULT_STYLE); |
aa2a5b86 | 6741 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 6742 | wxString * _arg7 = (wxString *) &wxPy_TreeCtrlNameStr; |
f6bcfd97 | 6743 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
6744 | PyObject * _argo1 = 0; |
6745 | wxPoint temp; | |
6746 | PyObject * _obj3 = 0; | |
6747 | wxSize temp0; | |
6748 | PyObject * _obj4 = 0; | |
6749 | PyObject * _argo6 = 0; | |
9a74fcaf | 6750 | PyObject * _obj7 = 0; |
aa2a5b86 | 6751 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; |
f6bcfd97 BP |
6752 | |
6753 | self = self; | |
9a74fcaf | 6754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxTreeCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
f6bcfd97 BP |
6755 | return NULL; |
6756 | if (_argo0) { | |
6757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
aa2a5b86 RD |
6759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Create. Expected _wxPyTreeCtrl_p."); |
6760 | return NULL; | |
6761 | } | |
6762 | } | |
6763 | if (_argo1) { | |
6764 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6765 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6766 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Create. Expected _wxWindow_p."); | |
f6bcfd97 BP |
6767 | return NULL; |
6768 | } | |
6769 | } | |
aa2a5b86 | 6770 | if (_obj3) |
f6bcfd97 | 6771 | { |
aa2a5b86 RD |
6772 | _arg3 = &temp; |
6773 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6774 | return NULL; | |
f6bcfd97 | 6775 | } |
aa2a5b86 | 6776 | if (_obj4) |
f6bcfd97 | 6777 | { |
aa2a5b86 RD |
6778 | _arg4 = &temp0; |
6779 | if (! wxSize_helper(_obj4, &_arg4)) | |
6780 | return NULL; | |
f6bcfd97 | 6781 | } |
aa2a5b86 | 6782 | if (_argo6) { |
b67a9327 | 6783 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { |
aa2a5b86 RD |
6784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_Create. Expected _wxValidator_p."); |
6785 | return NULL; | |
6786 | } | |
6787 | } | |
9a74fcaf RD |
6788 | if (_obj7) |
6789 | { | |
6790 | _arg7 = wxString_in_helper(_obj7); | |
6791 | if (_arg7 == NULL) | |
6792 | return NULL; | |
6793 | } | |
f6bcfd97 | 6794 | { |
474c48f9 | 6795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 6796 | _result = (bool )wxTreeCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
f6bcfd97 | 6797 | |
474c48f9 | 6798 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6799 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 6800 | } _resultobj = Py_BuildValue("i",_result); |
9a74fcaf RD |
6801 | { |
6802 | if (_obj7) | |
6803 | delete _arg7; | |
6804 | } | |
f6bcfd97 BP |
6805 | return _resultobj; |
6806 | } | |
6807 | ||
0220cbc1 RD |
6808 | #define wxTreeCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
6809 | static PyObject *_wrap_wxTreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c4165ad RD |
6810 | PyObject * _resultobj; |
6811 | wxPyTreeCtrl * _arg0; | |
aa2a5b86 RD |
6812 | PyObject * _arg1; |
6813 | PyObject * _arg2; | |
9c4165ad | 6814 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
6815 | PyObject * _obj1 = 0; |
6816 | PyObject * _obj2 = 0; | |
6817 | char *_kwnames[] = { "self","self","_class", NULL }; | |
9c4165ad RD |
6818 | |
6819 | self = self; | |
0220cbc1 | 6820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
9c4165ad RD |
6821 | return NULL; |
6822 | if (_argo0) { | |
6823 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6824 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
0220cbc1 | 6825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setCallbackInfo. Expected _wxPyTreeCtrl_p."); |
9c4165ad RD |
6826 | return NULL; |
6827 | } | |
6828 | } | |
aa2a5b86 RD |
6829 | { |
6830 | _arg1 = _obj1; | |
6831 | } | |
6832 | { | |
6833 | _arg2 = _obj2; | |
6834 | } | |
9c4165ad | 6835 | { |
474c48f9 | 6836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6837 | wxTreeCtrl__setCallbackInfo(_arg0,_arg1,_arg2); |
9c4165ad | 6838 | |
474c48f9 | 6839 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6840 | if (PyErr_Occurred()) return NULL; |
9c4165ad RD |
6841 | } Py_INCREF(Py_None); |
6842 | _resultobj = Py_None; | |
6843 | return _resultobj; | |
6844 | } | |
6845 | ||
d5c9047a | 6846 | #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount()) |
efc5f224 | 6847 | static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6848 | PyObject * _resultobj; |
c127177f | 6849 | size_t _result; |
f6bcfd97 | 6850 | wxPyTreeCtrl * _arg0; |
1d99702e | 6851 | PyObject * _argo0 = 0; |
efc5f224 | 6852 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6853 | |
6854 | self = self; | |
efc5f224 | 6855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0)) |
8ab979d7 | 6856 | return NULL; |
1d99702e RD |
6857 | if (_argo0) { |
6858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6861 | return NULL; |
6862 | } | |
6863 | } | |
cf694132 | 6864 | { |
474c48f9 | 6865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6866 | _result = (size_t )wxTreeCtrl_GetCount(_arg0); |
cf694132 | 6867 | |
474c48f9 | 6868 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6869 | if (PyErr_Occurred()) return NULL; |
c127177f | 6870 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6871 | return _resultobj; |
6872 | } | |
6873 | ||
d5c9047a | 6874 | #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) |
efc5f224 | 6875 | static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6876 | PyObject * _resultobj; |
d5c9047a | 6877 | unsigned int _result; |
f6bcfd97 | 6878 | wxPyTreeCtrl * _arg0; |
1d99702e | 6879 | PyObject * _argo0 = 0; |
efc5f224 | 6880 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6881 | |
6882 | self = self; | |
efc5f224 | 6883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0)) |
8ab979d7 | 6884 | return NULL; |
1d99702e RD |
6885 | if (_argo0) { |
6886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6889 | return NULL; |
6890 | } | |
6891 | } | |
cf694132 | 6892 | { |
474c48f9 | 6893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6894 | _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0); |
cf694132 | 6895 | |
474c48f9 | 6896 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6897 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6898 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6899 | return _resultobj; |
6900 | } | |
6901 | ||
d5c9047a | 6902 | #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) |
efc5f224 | 6903 | static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6904 | PyObject * _resultobj; |
f6bcfd97 | 6905 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6906 | unsigned int _arg1; |
1d99702e | 6907 | PyObject * _argo0 = 0; |
efc5f224 | 6908 | char *_kwnames[] = { "self","indent", NULL }; |
8ab979d7 RD |
6909 | |
6910 | self = self; | |
efc5f224 | 6911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6912 | return NULL; |
1d99702e RD |
6913 | if (_argo0) { |
6914 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6915 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6917 | return NULL; |
6918 | } | |
6919 | } | |
cf694132 | 6920 | { |
474c48f9 | 6921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6922 | wxTreeCtrl_SetIndent(_arg0,_arg1); |
cf694132 | 6923 | |
474c48f9 | 6924 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6925 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6926 | } Py_INCREF(Py_None); |
d5c9047a | 6927 | _resultobj = Py_None; |
8ab979d7 RD |
6928 | return _resultobj; |
6929 | } | |
6930 | ||
d5c9047a | 6931 | #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList()) |
efc5f224 | 6932 | static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6933 | PyObject * _resultobj; |
d5c9047a | 6934 | wxImageList * _result; |
f6bcfd97 | 6935 | wxPyTreeCtrl * _arg0; |
1d99702e | 6936 | PyObject * _argo0 = 0; |
efc5f224 | 6937 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6938 | |
6939 | self = self; | |
efc5f224 | 6940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0)) |
8ab979d7 | 6941 | return NULL; |
1d99702e RD |
6942 | if (_argo0) { |
6943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6946 | return NULL; |
6947 | } | |
6948 | } | |
cf694132 | 6949 | { |
474c48f9 | 6950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6951 | _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0); |
cf694132 | 6952 | |
474c48f9 | 6953 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6954 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 6955 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
6956 | return _resultobj; |
6957 | } | |
6958 | ||
d5c9047a | 6959 | #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList()) |
efc5f224 | 6960 | static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6961 | PyObject * _resultobj; |
d5c9047a | 6962 | wxImageList * _result; |
f6bcfd97 | 6963 | wxPyTreeCtrl * _arg0; |
1d99702e | 6964 | PyObject * _argo0 = 0; |
efc5f224 | 6965 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6966 | |
6967 | self = self; | |
efc5f224 | 6968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0)) |
8ab979d7 | 6969 | return NULL; |
1d99702e RD |
6970 | if (_argo0) { |
6971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6974 | return NULL; |
6975 | } | |
6976 | } | |
cf694132 | 6977 | { |
474c48f9 | 6978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6979 | _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0); |
cf694132 | 6980 | |
474c48f9 | 6981 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6982 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 6983 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
6984 | return _resultobj; |
6985 | } | |
6986 | ||
d5c9047a | 6987 | #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) |
efc5f224 | 6988 | static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6989 | PyObject * _resultobj; |
f6bcfd97 | 6990 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6991 | wxImageList * _arg1; |
1d99702e RD |
6992 | PyObject * _argo0 = 0; |
6993 | PyObject * _argo1 = 0; | |
efc5f224 | 6994 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
6995 | |
6996 | self = self; | |
efc5f224 | 6997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6998 | return NULL; |
1d99702e RD |
6999 | if (_argo0) { |
7000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7003 | return NULL; |
7004 | } | |
7005 | } | |
1d99702e RD |
7006 | if (_argo1) { |
7007 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7008 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
7009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p."); |
7010 | return NULL; | |
7011 | } | |
7012 | } | |
cf694132 | 7013 | { |
474c48f9 | 7014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7015 | wxTreeCtrl_SetImageList(_arg0,_arg1); |
cf694132 | 7016 | |
474c48f9 | 7017 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7018 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7019 | } Py_INCREF(Py_None); |
d5c9047a | 7020 | _resultobj = Py_None; |
8ab979d7 RD |
7021 | return _resultobj; |
7022 | } | |
7023 | ||
d5c9047a | 7024 | #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0)) |
efc5f224 | 7025 | static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7026 | PyObject * _resultobj; |
f6bcfd97 | 7027 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7028 | wxImageList * _arg1; |
1d99702e RD |
7029 | PyObject * _argo0 = 0; |
7030 | PyObject * _argo1 = 0; | |
efc5f224 | 7031 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
7032 | |
7033 | self = self; | |
efc5f224 | 7034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7035 | return NULL; |
1d99702e RD |
7036 | if (_argo0) { |
7037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7040 | return NULL; |
7041 | } | |
7042 | } | |
1d99702e RD |
7043 | if (_argo1) { |
7044 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7045 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
7046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p."); |
7047 | return NULL; | |
7048 | } | |
7049 | } | |
cf694132 | 7050 | { |
474c48f9 | 7051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7052 | wxTreeCtrl_SetStateImageList(_arg0,_arg1); |
cf694132 | 7053 | |
474c48f9 | 7054 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7055 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7056 | } Py_INCREF(Py_None); |
d5c9047a | 7057 | _resultobj = Py_None; |
8ab979d7 RD |
7058 | return _resultobj; |
7059 | } | |
7060 | ||
aa2a5b86 RD |
7061 | #define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0)) |
7062 | static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7063 | PyObject * _resultobj; | |
7064 | wxPyTreeCtrl * _arg0; | |
7065 | wxImageList * _arg1; | |
7066 | PyObject * _argo0 = 0; | |
7067 | PyObject * _argo1 = 0; | |
7068 | char *_kwnames[] = { "self","imageList", NULL }; | |
7069 | ||
7070 | self = self; | |
7071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1)) | |
7072 | return NULL; | |
7073 | if (_argo0) { | |
7074 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7075 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p."); | |
7077 | return NULL; | |
7078 | } | |
7079 | } | |
7080 | if (_argo1) { | |
7081 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7082 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
7083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p."); | |
7084 | return NULL; | |
7085 | } | |
7086 | } | |
7087 | { | |
474c48f9 | 7088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7089 | wxTreeCtrl_AssignImageList(_arg0,_arg1); |
aa2a5b86 | 7090 | |
474c48f9 | 7091 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
7092 | if (PyErr_Occurred()) return NULL; |
7093 | } Py_INCREF(Py_None); | |
7094 | _resultobj = Py_None; | |
7095 | return _resultobj; | |
7096 | } | |
7097 | ||
7098 | #define wxTreeCtrl_AssignStateImageList(_swigobj,_swigarg0) (_swigobj->AssignStateImageList(_swigarg0)) | |
7099 | static PyObject *_wrap_wxTreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7100 | PyObject * _resultobj; | |
7101 | wxPyTreeCtrl * _arg0; | |
7102 | wxImageList * _arg1; | |
7103 | PyObject * _argo0 = 0; | |
7104 | PyObject * _argo1 = 0; | |
7105 | char *_kwnames[] = { "self","imageList", NULL }; | |
7106 | ||
7107 | self = self; | |
7108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignStateImageList",_kwnames,&_argo0,&_argo1)) | |
7109 | return NULL; | |
7110 | if (_argo0) { | |
7111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignStateImageList. Expected _wxPyTreeCtrl_p."); | |
7114 | return NULL; | |
7115 | } | |
7116 | } | |
7117 | if (_argo1) { | |
7118 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7119 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
7120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignStateImageList. Expected _wxImageList_p."); | |
7121 | return NULL; | |
7122 | } | |
7123 | } | |
7124 | { | |
474c48f9 | 7125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7126 | wxTreeCtrl_AssignStateImageList(_arg0,_arg1); |
aa2a5b86 | 7127 | |
474c48f9 | 7128 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
7129 | if (PyErr_Occurred()) return NULL; |
7130 | } Py_INCREF(Py_None); | |
7131 | _resultobj = Py_None; | |
7132 | return _resultobj; | |
7133 | } | |
7134 | ||
b1462dfa RD |
7135 | #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing()) |
7136 | static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7137 | PyObject * _resultobj; | |
7138 | unsigned int _result; | |
f6bcfd97 | 7139 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
7140 | PyObject * _argo0 = 0; |
7141 | char *_kwnames[] = { "self", NULL }; | |
7142 | ||
7143 | self = self; | |
7144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0)) | |
7145 | return NULL; | |
7146 | if (_argo0) { | |
7147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
7150 | return NULL; |
7151 | } | |
7152 | } | |
7153 | { | |
474c48f9 | 7154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7155 | _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0); |
b1462dfa | 7156 | |
474c48f9 | 7157 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7158 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7159 | } _resultobj = Py_BuildValue("i",_result); |
7160 | return _resultobj; | |
7161 | } | |
7162 | ||
7163 | #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0)) | |
7164 | static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7165 | PyObject * _resultobj; | |
f6bcfd97 | 7166 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
7167 | unsigned int _arg1; |
7168 | PyObject * _argo0 = 0; | |
7169 | char *_kwnames[] = { "self","spacing", NULL }; | |
7170 | ||
7171 | self = self; | |
7172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1)) | |
7173 | return NULL; | |
7174 | if (_argo0) { | |
7175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
7178 | return NULL; |
7179 | } | |
7180 | } | |
7181 | { | |
474c48f9 | 7182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7183 | wxTreeCtrl_SetSpacing(_arg0,_arg1); |
b1462dfa | 7184 | |
474c48f9 | 7185 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7186 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7187 | } Py_INCREF(Py_None); |
7188 | _resultobj = Py_None; | |
7189 | return _resultobj; | |
7190 | } | |
7191 | ||
d5c9047a | 7192 | #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
efc5f224 | 7193 | static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7194 | PyObject * _resultobj; |
d5c9047a | 7195 | wxString * _result; |
f6bcfd97 | 7196 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7197 | wxTreeItemId * _arg1; |
1d99702e RD |
7198 | PyObject * _argo0 = 0; |
7199 | PyObject * _argo1 = 0; | |
efc5f224 | 7200 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7201 | |
7202 | self = self; | |
efc5f224 | 7203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7204 | return NULL; |
1d99702e RD |
7205 | if (_argo0) { |
7206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7209 | return NULL; |
7210 | } | |
7211 | } | |
1d99702e | 7212 | if (_argo1) { |
b67a9327 | 7213 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p."); |
7215 | return NULL; | |
7216 | } | |
7217 | } | |
d5c9047a | 7218 | { |
474c48f9 | 7219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7220 | _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1)); |
cf694132 | 7221 | |
474c48f9 | 7222 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7223 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7224 | }{ |
c8bc7bb8 | 7225 | #if wxUSE_UNICODE |
b67a9327 | 7226 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7227 | #else |
eec92d76 | 7228 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7229 | #endif |
d5c9047a RD |
7230 | } |
7231 | { | |
7232 | delete _result; | |
7233 | } | |
8ab979d7 RD |
7234 | return _resultobj; |
7235 | } | |
7236 | ||
694759cf | 7237 | #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1)) |
efc5f224 | 7238 | static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7239 | PyObject * _resultobj; |
d5c9047a | 7240 | int _result; |
f6bcfd97 | 7241 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7242 | wxTreeItemId * _arg1; |
694759cf | 7243 | wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
7244 | PyObject * _argo0 = 0; |
7245 | PyObject * _argo1 = 0; | |
694759cf | 7246 | char *_kwnames[] = { "self","item","which", NULL }; |
8ab979d7 RD |
7247 | |
7248 | self = self; | |
694759cf | 7249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 7250 | return NULL; |
1d99702e RD |
7251 | if (_argo0) { |
7252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7255 | return NULL; |
7256 | } | |
7257 | } | |
1d99702e | 7258 | if (_argo1) { |
b67a9327 | 7259 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p."); |
7261 | return NULL; | |
7262 | } | |
7263 | } | |
cf694132 | 7264 | { |
474c48f9 | 7265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7266 | _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2); |
cf694132 | 7267 | |
474c48f9 | 7268 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7269 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7270 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7271 | return _resultobj; |
7272 | } | |
7273 | ||
d5c9047a | 7274 | #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0)) |
efc5f224 | 7275 | static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7276 | PyObject * _resultobj; |
d5c9047a | 7277 | int _result; |
f6bcfd97 | 7278 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7279 | wxTreeItemId * _arg1; |
1d99702e RD |
7280 | PyObject * _argo0 = 0; |
7281 | PyObject * _argo1 = 0; | |
efc5f224 | 7282 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7283 | |
7284 | self = self; | |
efc5f224 | 7285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7286 | return NULL; |
1d99702e RD |
7287 | if (_argo0) { |
7288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7291 | return NULL; |
7292 | } | |
7293 | } | |
1d99702e | 7294 | if (_argo1) { |
b67a9327 | 7295 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p."); |
7297 | return NULL; | |
7298 | } | |
7299 | } | |
cf694132 | 7300 | { |
474c48f9 | 7301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7302 | _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1); |
8ab979d7 | 7303 | |
474c48f9 | 7304 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7305 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7306 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7307 | return _resultobj; |
7308 | } | |
7309 | ||
d5c9047a | 7310 | #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
efc5f224 | 7311 | static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7312 | PyObject * _resultobj; |
f6bcfd97 | 7313 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7314 | wxTreeItemId * _arg1; |
7315 | wxString * _arg2; | |
1d99702e RD |
7316 | PyObject * _argo0 = 0; |
7317 | PyObject * _argo1 = 0; | |
d5c9047a | 7318 | PyObject * _obj2 = 0; |
efc5f224 | 7319 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
7320 | |
7321 | self = self; | |
efc5f224 | 7322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7323 | return NULL; |
1d99702e RD |
7324 | if (_argo0) { |
7325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7328 | return NULL; |
7329 | } | |
7330 | } | |
1d99702e | 7331 | if (_argo1) { |
b67a9327 | 7332 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p."); |
7334 | return NULL; | |
7335 | } | |
7336 | } | |
7337 | { | |
c8bc7bb8 RD |
7338 | _arg2 = wxString_in_helper(_obj2); |
7339 | if (_arg2 == NULL) | |
2cd2fac8 | 7340 | return NULL; |
d5c9047a | 7341 | } |
cf694132 | 7342 | { |
474c48f9 | 7343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7344 | wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2); |
cf694132 | 7345 | |
474c48f9 | 7346 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7347 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7348 | } Py_INCREF(Py_None); |
d5c9047a RD |
7349 | _resultobj = Py_None; |
7350 | { | |
7351 | if (_obj2) | |
7352 | delete _arg2; | |
7353 | } | |
8ab979d7 RD |
7354 | return _resultobj; |
7355 | } | |
7356 | ||
694759cf | 7357 | #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 7358 | static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7359 | PyObject * _resultobj; |
f6bcfd97 | 7360 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7361 | wxTreeItemId * _arg1; |
7362 | int _arg2; | |
694759cf | 7363 | wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
7364 | PyObject * _argo0 = 0; |
7365 | PyObject * _argo1 = 0; | |
694759cf | 7366 | char *_kwnames[] = { "self","item","image","which", NULL }; |
8ab979d7 RD |
7367 | |
7368 | self = self; | |
694759cf | 7369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 7370 | return NULL; |
1d99702e RD |
7371 | if (_argo0) { |
7372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7375 | return NULL; |
7376 | } | |
7377 | } | |
1d99702e | 7378 | if (_argo1) { |
b67a9327 | 7379 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p."); |
7381 | return NULL; | |
7382 | } | |
7383 | } | |
cf694132 | 7384 | { |
474c48f9 | 7385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7386 | wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 7387 | |
474c48f9 | 7388 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7389 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7390 | } Py_INCREF(Py_None); |
d5c9047a | 7391 | _resultobj = Py_None; |
8ab979d7 RD |
7392 | return _resultobj; |
7393 | } | |
7394 | ||
d5c9047a | 7395 | #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1)) |
efc5f224 | 7396 | static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7397 | PyObject * _resultobj; |
f6bcfd97 | 7398 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7399 | wxTreeItemId * _arg1; |
7400 | int _arg2; | |
1d99702e RD |
7401 | PyObject * _argo0 = 0; |
7402 | PyObject * _argo1 = 0; | |
efc5f224 | 7403 | char *_kwnames[] = { "self","item","image", NULL }; |
8ab979d7 RD |
7404 | |
7405 | self = self; | |
efc5f224 | 7406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 7407 | return NULL; |
1d99702e RD |
7408 | if (_argo0) { |
7409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7412 | return NULL; |
7413 | } | |
7414 | } | |
1d99702e | 7415 | if (_argo1) { |
b67a9327 | 7416 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p."); |
7418 | return NULL; | |
7419 | } | |
7420 | } | |
cf694132 | 7421 | { |
474c48f9 | 7422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7423 | wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2); |
cf694132 | 7424 | |
474c48f9 | 7425 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7426 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7427 | } Py_INCREF(Py_None); |
7428 | _resultobj = Py_None; | |
7429 | return _resultobj; | |
7430 | } | |
7431 | ||
7432 | #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1)) | |
efc5f224 | 7433 | static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7434 | PyObject * _resultobj; |
f6bcfd97 | 7435 | wxPyTreeCtrl * _arg0; |
cf694132 | 7436 | wxTreeItemId * _arg1; |
1d99702e RD |
7437 | bool _arg2 = (bool ) TRUE; |
7438 | PyObject * _argo0 = 0; | |
7439 | PyObject * _argo1 = 0; | |
7440 | int tempbool2 = (int) TRUE; | |
efc5f224 | 7441 | char *_kwnames[] = { "self","item","hasChildren", NULL }; |
cf694132 RD |
7442 | |
7443 | self = self; | |
efc5f224 | 7444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2)) |
cf694132 | 7445 | return NULL; |
1d99702e RD |
7446 | if (_argo0) { |
7447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7450 | return NULL; |
7451 | } | |
7452 | } | |
1d99702e | 7453 | if (_argo1) { |
b67a9327 | 7454 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
cf694132 RD |
7455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p."); |
7456 | return NULL; | |
7457 | } | |
7458 | } | |
7459 | _arg2 = (bool ) tempbool2; | |
7460 | { | |
474c48f9 | 7461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7462 | wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2); |
cf694132 | 7463 | |
474c48f9 | 7464 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7465 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7466 | } Py_INCREF(Py_None); |
d5c9047a | 7467 | _resultobj = Py_None; |
8ab979d7 RD |
7468 | return _resultobj; |
7469 | } | |
7470 | ||
f6bcfd97 | 7471 | static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7472 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7473 | if (data == NULL) { | |
7474 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7475 | data->SetId(item); // set the id |
cf694132 RD |
7476 | self->SetItemData(item, data); |
7477 | } | |
7478 | return data; | |
7479 | } | |
efc5f224 | 7480 | static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
7481 | PyObject * _resultobj; |
7482 | wxPyTreeItemData * _result; | |
f6bcfd97 | 7483 | wxPyTreeCtrl * _arg0; |
cf694132 | 7484 | wxTreeItemId * _arg1; |
1d99702e RD |
7485 | PyObject * _argo0 = 0; |
7486 | PyObject * _argo1 = 0; | |
efc5f224 | 7487 | char *_kwnames[] = { "self","item", NULL }; |
cf694132 RD |
7488 | char _ptemp[128]; |
7489 | ||
7490 | self = self; | |
efc5f224 | 7491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1)) |
cf694132 | 7492 | return NULL; |
1d99702e RD |
7493 | if (_argo0) { |
7494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7497 | return NULL; |
7498 | } | |
7499 | } | |
1d99702e | 7500 | if (_argo1) { |
b67a9327 | 7501 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
cf694132 RD |
7502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p."); |
7503 | return NULL; | |
7504 | } | |
7505 | } | |
7506 | { | |
474c48f9 | 7507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7508 | _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1); |
cf694132 | 7509 | |
474c48f9 | 7510 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7511 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7512 | } if (_result) { |
7513 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
7514 | _resultobj = Py_BuildValue("s",_ptemp); | |
7515 | } else { | |
7516 | Py_INCREF(Py_None); | |
7517 | _resultobj = Py_None; | |
7518 | } | |
cf694132 RD |
7519 | return _resultobj; |
7520 | } | |
7521 | ||
f6bcfd97 BP |
7522 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) { |
7523 | data->SetId(item); // set the id | |
7524 | self->SetItemData(item, data); | |
c368d904 | 7525 | } |
efc5f224 | 7526 | static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7527 | PyObject * _resultobj; |
f6bcfd97 | 7528 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7529 | wxTreeItemId * _arg1; |
cf694132 | 7530 | wxPyTreeItemData * _arg2; |
1d99702e RD |
7531 | PyObject * _argo0 = 0; |
7532 | PyObject * _argo1 = 0; | |
7533 | PyObject * _argo2 = 0; | |
efc5f224 | 7534 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
7535 | |
7536 | self = self; | |
efc5f224 | 7537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2)) |
8ab979d7 | 7538 | return NULL; |
1d99702e RD |
7539 | if (_argo0) { |
7540 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7541 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7543 | return NULL; |
7544 | } | |
7545 | } | |
1d99702e | 7546 | if (_argo1) { |
b67a9327 | 7547 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p."); |
7549 | return NULL; | |
7550 | } | |
7551 | } | |
1d99702e RD |
7552 | if (_argo2) { |
7553 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7554 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) { | |
cf694132 | 7555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
7556 | return NULL; |
7557 | } | |
7558 | } | |
cf694132 | 7559 | { |
474c48f9 | 7560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7561 | wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2); |
cf694132 | 7562 | |
474c48f9 | 7563 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7564 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7565 | } Py_INCREF(Py_None); |
d5c9047a | 7566 | _resultobj = Py_None; |
8ab979d7 RD |
7567 | return _resultobj; |
7568 | } | |
7569 | ||
f6bcfd97 | 7570 | static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7571 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7572 | if (data == NULL) { | |
7573 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7574 | data->SetId(item); // set the id |
cf694132 RD |
7575 | self->SetItemData(item, data); |
7576 | } | |
7577 | return data->GetData(); | |
c368d904 | 7578 | } |
efc5f224 | 7579 | static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 7580 | PyObject * _resultobj; |
cf694132 | 7581 | PyObject * _result; |
f6bcfd97 | 7582 | wxPyTreeCtrl * _arg0; |
08127323 | 7583 | wxTreeItemId * _arg1; |
1d99702e RD |
7584 | PyObject * _argo0 = 0; |
7585 | PyObject * _argo1 = 0; | |
efc5f224 | 7586 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
7587 | |
7588 | self = self; | |
efc5f224 | 7589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1)) |
08127323 | 7590 | return NULL; |
1d99702e RD |
7591 | if (_argo0) { |
7592 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7593 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
7595 | return NULL; |
7596 | } | |
7597 | } | |
1d99702e | 7598 | if (_argo1) { |
b67a9327 | 7599 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
cf694132 | 7600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p."); |
08127323 RD |
7601 | return NULL; |
7602 | } | |
7603 | } | |
cf694132 | 7604 | { |
474c48f9 | 7605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7606 | _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1); |
cf694132 | 7607 | |
474c48f9 | 7608 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7609 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7610 | }{ |
7611 | _resultobj = _result; | |
7612 | } | |
7613 | return _resultobj; | |
7614 | } | |
7615 | ||
f6bcfd97 | 7616 | static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) { |
cf694132 RD |
7617 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7618 | if (data == NULL) { | |
7619 | data = new wxPyTreeItemData(obj); | |
f6bcfd97 | 7620 | data->SetId(item); // set the id |
cf694132 RD |
7621 | self->SetItemData(item, data); |
7622 | } else | |
7623 | data->SetData(obj); | |
c368d904 | 7624 | } |
efc5f224 | 7625 | static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7626 | PyObject * _resultobj; |
f6bcfd97 | 7627 | wxPyTreeCtrl * _arg0; |
cf694132 RD |
7628 | wxTreeItemId * _arg1; |
7629 | PyObject * _arg2; | |
1d99702e RD |
7630 | PyObject * _argo0 = 0; |
7631 | PyObject * _argo1 = 0; | |
cf694132 | 7632 | PyObject * _obj2 = 0; |
efc5f224 | 7633 | char *_kwnames[] = { "self","item","obj", NULL }; |
cf694132 RD |
7634 | |
7635 | self = self; | |
efc5f224 | 7636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2)) |
cf694132 | 7637 | return NULL; |
1d99702e RD |
7638 | if (_argo0) { |
7639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7642 | return NULL; |
7643 | } | |
7644 | } | |
1d99702e | 7645 | if (_argo1) { |
b67a9327 | 7646 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
cf694132 RD |
7647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p."); |
7648 | return NULL; | |
7649 | } | |
7650 | } | |
7651 | { | |
7652 | _arg2 = _obj2; | |
7653 | } | |
7654 | { | |
474c48f9 | 7655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7656 | wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2); |
cf694132 | 7657 | |
474c48f9 | 7658 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7659 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7660 | } Py_INCREF(Py_None); |
08127323 RD |
7661 | _resultobj = Py_None; |
7662 | return _resultobj; | |
7663 | } | |
7664 | ||
b67a9327 RD |
7665 | #define wxTreeCtrl_GetItemTextColour(_swigobj,_swigarg0) (_swigobj->GetItemTextColour(_swigarg0)) |
7666 | static PyObject *_wrap_wxTreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7667 | PyObject * _resultobj; | |
7668 | wxColour * _result; | |
7669 | wxPyTreeCtrl * _arg0; | |
7670 | wxTreeItemId * _arg1; | |
7671 | PyObject * _argo0 = 0; | |
7672 | PyObject * _argo1 = 0; | |
7673 | char *_kwnames[] = { "self","item", NULL }; | |
7674 | char _ptemp[128]; | |
7675 | ||
7676 | self = self; | |
7677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemTextColour",_kwnames,&_argo0,&_argo1)) | |
7678 | return NULL; | |
7679 | if (_argo0) { | |
7680 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7681 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
7683 | return NULL; | |
7684 | } | |
7685 | } | |
7686 | if (_argo1) { | |
7687 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemTextColour. Expected _wxTreeItemId_p."); | |
7689 | return NULL; | |
7690 | } | |
7691 | } | |
7692 | { | |
7693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7694 | _result = new wxColour (wxTreeCtrl_GetItemTextColour(_arg0,*_arg1)); | |
7695 | ||
7696 | wxPyEndAllowThreads(__tstate); | |
7697 | if (PyErr_Occurred()) return NULL; | |
7698 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
7699 | _resultobj = Py_BuildValue("s",_ptemp); | |
7700 | return _resultobj; | |
7701 | } | |
7702 | ||
7703 | #define wxTreeCtrl_GetItemBackgroundColour(_swigobj,_swigarg0) (_swigobj->GetItemBackgroundColour(_swigarg0)) | |
7704 | static PyObject *_wrap_wxTreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7705 | PyObject * _resultobj; | |
7706 | wxColour * _result; | |
7707 | wxPyTreeCtrl * _arg0; | |
7708 | wxTreeItemId * _arg1; | |
7709 | PyObject * _argo0 = 0; | |
7710 | PyObject * _argo1 = 0; | |
7711 | char *_kwnames[] = { "self","item", NULL }; | |
7712 | char _ptemp[128]; | |
7713 | ||
7714 | self = self; | |
7715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemBackgroundColour",_kwnames,&_argo0,&_argo1)) | |
7716 | return NULL; | |
7717 | if (_argo0) { | |
7718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
7721 | return NULL; | |
7722 | } | |
7723 | } | |
7724 | if (_argo1) { | |
7725 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
7727 | return NULL; | |
7728 | } | |
7729 | } | |
7730 | { | |
7731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7732 | _result = new wxColour (wxTreeCtrl_GetItemBackgroundColour(_arg0,*_arg1)); | |
7733 | ||
7734 | wxPyEndAllowThreads(__tstate); | |
7735 | if (PyErr_Occurred()) return NULL; | |
7736 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
7737 | _resultobj = Py_BuildValue("s",_ptemp); | |
7738 | return _resultobj; | |
7739 | } | |
7740 | ||
7741 | #define wxTreeCtrl_GetItemFont(_swigobj,_swigarg0) (_swigobj->GetItemFont(_swigarg0)) | |
7742 | static PyObject *_wrap_wxTreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7743 | PyObject * _resultobj; | |
7744 | wxFont * _result; | |
7745 | wxPyTreeCtrl * _arg0; | |
7746 | wxTreeItemId * _arg1; | |
7747 | PyObject * _argo0 = 0; | |
7748 | PyObject * _argo1 = 0; | |
7749 | char *_kwnames[] = { "self","item", NULL }; | |
7750 | char _ptemp[128]; | |
7751 | ||
7752 | self = self; | |
7753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemFont",_kwnames,&_argo0,&_argo1)) | |
7754 | return NULL; | |
7755 | if (_argo0) { | |
7756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemFont. Expected _wxPyTreeCtrl_p."); | |
7759 | return NULL; | |
7760 | } | |
7761 | } | |
7762 | if (_argo1) { | |
7763 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemFont. Expected _wxTreeItemId_p."); | |
7765 | return NULL; | |
7766 | } | |
7767 | } | |
7768 | { | |
7769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7770 | _result = new wxFont (wxTreeCtrl_GetItemFont(_arg0,*_arg1)); | |
7771 | ||
7772 | wxPyEndAllowThreads(__tstate); | |
7773 | if (PyErr_Occurred()) return NULL; | |
7774 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
7775 | _resultobj = Py_BuildValue("s",_ptemp); | |
7776 | return _resultobj; | |
7777 | } | |
7778 | ||
d5c9047a | 7779 | #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) |
efc5f224 | 7780 | static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7781 | PyObject * _resultobj; |
d5c9047a | 7782 | bool _result; |
f6bcfd97 | 7783 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7784 | wxTreeItemId * _arg1; |
1d99702e RD |
7785 | PyObject * _argo0 = 0; |
7786 | PyObject * _argo1 = 0; | |
efc5f224 | 7787 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7788 | |
7789 | self = self; | |
efc5f224 | 7790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7791 | return NULL; |
1d99702e RD |
7792 | if (_argo0) { |
7793 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7794 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7796 | return NULL; |
7797 | } | |
7798 | } | |
1d99702e | 7799 | if (_argo1) { |
b67a9327 | 7800 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p."); |
7802 | return NULL; | |
7803 | } | |
7804 | } | |
cf694132 | 7805 | { |
474c48f9 | 7806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7807 | _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1); |
cf694132 | 7808 | |
474c48f9 | 7809 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7810 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7811 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7812 | return _resultobj; |
7813 | } | |
7814 | ||
d5c9047a | 7815 | #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0)) |
efc5f224 | 7816 | static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7817 | PyObject * _resultobj; |
d5c9047a | 7818 | bool _result; |
f6bcfd97 | 7819 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7820 | wxTreeItemId * _arg1; |
1d99702e RD |
7821 | PyObject * _argo0 = 0; |
7822 | PyObject * _argo1 = 0; | |
efc5f224 | 7823 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7824 | |
7825 | self = self; | |
efc5f224 | 7826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7827 | return NULL; |
1d99702e RD |
7828 | if (_argo0) { |
7829 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7830 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7831 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7832 | return NULL; |
7833 | } | |
7834 | } | |
1d99702e | 7835 | if (_argo1) { |
b67a9327 | 7836 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p."); |
7838 | return NULL; | |
7839 | } | |
7840 | } | |
cf694132 | 7841 | { |
474c48f9 | 7842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7843 | _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1); |
cf694132 | 7844 | |
474c48f9 | 7845 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7846 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7847 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7848 | return _resultobj; |
7849 | } | |
7850 | ||
d5c9047a | 7851 | #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0)) |
efc5f224 | 7852 | static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7853 | PyObject * _resultobj; |
d5c9047a | 7854 | bool _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 }; |
8ab979d7 RD |
7860 | |
7861 | self = self; | |
efc5f224 | 7862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7863 | return NULL; |
1d99702e RD |
7864 | if (_argo0) { |
7865 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7866 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7868 | return NULL; |
7869 | } | |
7870 | } | |
1d99702e | 7871 | if (_argo1) { |
b67a9327 | 7872 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p."); |
7874 | return NULL; | |
7875 | } | |
7876 | } | |
cf694132 | 7877 | { |
474c48f9 | 7878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7879 | _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1); |
cf694132 | 7880 | |
474c48f9 | 7881 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7882 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7883 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7884 | return _resultobj; |
7885 | } | |
7886 | ||
d5c9047a | 7887 | #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
efc5f224 | 7888 | static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7889 | PyObject * _resultobj; |
d5c9047a | 7890 | bool _result; |
f6bcfd97 | 7891 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7892 | wxTreeItemId * _arg1; |
1d99702e RD |
7893 | PyObject * _argo0 = 0; |
7894 | PyObject * _argo1 = 0; | |
efc5f224 | 7895 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7896 | |
7897 | self = self; | |
efc5f224 | 7898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7899 | return NULL; |
1d99702e RD |
7900 | if (_argo0) { |
7901 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7902 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7904 | return NULL; |
7905 | } | |
7906 | } | |
1d99702e | 7907 | if (_argo1) { |
b67a9327 | 7908 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p."); |
7910 | return NULL; | |
7911 | } | |
7912 | } | |
cf694132 | 7913 | { |
474c48f9 | 7914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7915 | _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1); |
cf694132 | 7916 | |
474c48f9 | 7917 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7918 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7919 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7920 | return _resultobj; |
7921 | } | |
7922 | ||
7923 | #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem()) | |
efc5f224 | 7924 | static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7925 | PyObject * _resultobj; |
d5c9047a | 7926 | wxTreeItemId * _result; |
f6bcfd97 | 7927 | wxPyTreeCtrl * _arg0; |
1d99702e | 7928 | PyObject * _argo0 = 0; |
efc5f224 | 7929 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7930 | char _ptemp[128]; |
8ab979d7 RD |
7931 | |
7932 | self = self; | |
efc5f224 | 7933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0)) |
8ab979d7 | 7934 | return NULL; |
1d99702e RD |
7935 | if (_argo0) { |
7936 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7937 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7939 | return NULL; |
7940 | } | |
7941 | } | |
cf694132 | 7942 | { |
474c48f9 | 7943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7944 | _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0)); |
cf694132 | 7945 | |
474c48f9 | 7946 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7947 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7948 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7949 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7950 | return _resultobj; |
7951 | } | |
7952 | ||
7953 | #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 7954 | static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7955 | PyObject * _resultobj; |
d5c9047a | 7956 | wxTreeItemId * _result; |
f6bcfd97 | 7957 | wxPyTreeCtrl * _arg0; |
1d99702e | 7958 | PyObject * _argo0 = 0; |
efc5f224 | 7959 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7960 | char _ptemp[128]; |
8ab979d7 RD |
7961 | |
7962 | self = self; | |
efc5f224 | 7963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 7964 | return NULL; |
1d99702e RD |
7965 | if (_argo0) { |
7966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7969 | return NULL; |
7970 | } | |
7971 | } | |
cf694132 | 7972 | { |
474c48f9 | 7973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7974 | _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0)); |
cf694132 | 7975 | |
474c48f9 | 7976 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7977 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7978 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7979 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7980 | return _resultobj; |
7981 | } | |
7982 | ||
b67a9327 | 7983 | #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetItemParent(_swigarg0)) |
eb715945 | 7984 | static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7985 | PyObject * _resultobj; |
d5c9047a | 7986 | wxTreeItemId * _result; |
f6bcfd97 | 7987 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7988 | wxTreeItemId * _arg1; |
1d99702e RD |
7989 | PyObject * _argo0 = 0; |
7990 | PyObject * _argo1 = 0; | |
efc5f224 | 7991 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7992 | char _ptemp[128]; |
8ab979d7 RD |
7993 | |
7994 | self = self; | |
eb715945 | 7995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7996 | return NULL; |
1d99702e RD |
7997 | if (_argo0) { |
7998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8001 | return NULL; |
8002 | } | |
8003 | } | |
1d99702e | 8004 | if (_argo1) { |
b67a9327 | 8005 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
eb715945 | 8006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8007 | return NULL; |
8008 | } | |
8009 | } | |
cf694132 | 8010 | { |
474c48f9 | 8011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8012 | _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1)); |
cf694132 | 8013 | |
474c48f9 | 8014 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8015 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8016 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8017 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8018 | return _resultobj; |
8019 | } | |
8020 | ||
f6bcfd97 | 8021 | static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) { |
474c48f9 | 8022 | wxPyBeginBlockThreads(); |
d426c97e RD |
8023 | PyObject* rval = PyList_New(0); |
8024 | wxArrayTreeItemIds array; | |
8025 | size_t num, x; | |
8026 | num = self->GetSelections(array); | |
8027 | for (x=0; x < num; x++) { | |
c368d904 | 8028 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); |
b67a9327 | 8029 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), TRUE); |
d426c97e RD |
8030 | PyList_Append(rval, item); |
8031 | } | |
474c48f9 | 8032 | wxPyEndBlockThreads(); |
d426c97e RD |
8033 | return rval; |
8034 | } | |
8035 | static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8036 | PyObject * _resultobj; | |
8037 | PyObject * _result; | |
f6bcfd97 | 8038 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8039 | PyObject * _argo0 = 0; |
8040 | char *_kwnames[] = { "self", NULL }; | |
8041 | ||
8042 | self = self; | |
8043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0)) | |
8044 | return NULL; | |
8045 | if (_argo0) { | |
8046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8049 | return NULL; |
8050 | } | |
8051 | } | |
8052 | { | |
474c48f9 | 8053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8054 | _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0); |
d426c97e | 8055 | |
474c48f9 | 8056 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8057 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8058 | }{ |
8059 | _resultobj = _result; | |
8060 | } | |
8061 | return _resultobj; | |
8062 | } | |
8063 | ||
bb0054cd | 8064 | #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1)) |
efc5f224 | 8065 | static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
8066 | PyObject * _resultobj; |
8067 | size_t _result; | |
f6bcfd97 | 8068 | wxPyTreeCtrl * _arg0; |
bb0054cd | 8069 | wxTreeItemId * _arg1; |
1d99702e RD |
8070 | bool _arg2 = (bool ) TRUE; |
8071 | PyObject * _argo0 = 0; | |
8072 | PyObject * _argo1 = 0; | |
8073 | int tempbool2 = (int) TRUE; | |
efc5f224 | 8074 | char *_kwnames[] = { "self","item","recursively", NULL }; |
bb0054cd RD |
8075 | |
8076 | self = self; | |
efc5f224 | 8077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2)) |
bb0054cd | 8078 | return NULL; |
1d99702e RD |
8079 | if (_argo0) { |
8080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p."); | |
bb0054cd RD |
8083 | return NULL; |
8084 | } | |
8085 | } | |
1d99702e | 8086 | if (_argo1) { |
b67a9327 | 8087 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
bb0054cd RD |
8088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p."); |
8089 | return NULL; | |
8090 | } | |
8091 | } | |
8092 | _arg2 = (bool ) tempbool2; | |
8093 | { | |
474c48f9 | 8094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8095 | _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2); |
bb0054cd | 8096 | |
474c48f9 | 8097 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8098 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
8099 | } _resultobj = Py_BuildValue("i",_result); |
8100 | return _resultobj; | |
8101 | } | |
8102 | ||
d5c9047a | 8103 | #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1)) |
efc5f224 | 8104 | static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8105 | PyObject * _resultobj; |
d5c9047a | 8106 | wxTreeItemId * _result; |
f6bcfd97 | 8107 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8108 | wxTreeItemId * _arg1; |
8f8b0a8d | 8109 | long * _arg2 = (long *) &longzero; |
1d99702e RD |
8110 | PyObject * _argo0 = 0; |
8111 | PyObject * _argo1 = 0; | |
d5c9047a RD |
8112 | long temp; |
8113 | PyObject * _obj2 = 0; | |
efc5f224 | 8114 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 8115 | char _ptemp[128]; |
8ab979d7 RD |
8116 | |
8117 | self = self; | |
8f8b0a8d | 8118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 8119 | return NULL; |
1d99702e RD |
8120 | if (_argo0) { |
8121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8124 | return NULL; |
8125 | } | |
8126 | } | |
1d99702e | 8127 | if (_argo1) { |
b67a9327 | 8128 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a | 8129 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8130 | return NULL; |
8131 | } | |
8132 | } | |
8f8b0a8d | 8133 | if (_obj2) |
d5c9047a RD |
8134 | { |
8135 | temp = (long) PyInt_AsLong(_obj2); | |
8136 | _arg2 = &temp; | |
8137 | } | |
cf694132 | 8138 | { |
474c48f9 | 8139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8140 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); |
cf694132 | 8141 | |
474c48f9 | 8142 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8143 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8144 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8145 | _resultobj = Py_BuildValue("s",_ptemp); |
8146 | { | |
8147 | PyObject *o; | |
8148 | o = PyInt_FromLong((long) (*_arg2)); | |
8149 | _resultobj = t_output_helper(_resultobj, o); | |
8150 | } | |
8ab979d7 RD |
8151 | return _resultobj; |
8152 | } | |
8153 | ||
d5c9047a | 8154 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) |
efc5f224 | 8155 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8156 | PyObject * _resultobj; |
d5c9047a | 8157 | wxTreeItemId * _result; |
f6bcfd97 | 8158 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8159 | wxTreeItemId * _arg1; |
8160 | long * _arg2; | |
1d99702e RD |
8161 | PyObject * _argo0 = 0; |
8162 | PyObject * _argo1 = 0; | |
d5c9047a | 8163 | long temp; |
8ab979d7 | 8164 | PyObject * _obj2 = 0; |
efc5f224 | 8165 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 8166 | char _ptemp[128]; |
8ab979d7 RD |
8167 | |
8168 | self = self; | |
efc5f224 | 8169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 8170 | return NULL; |
1d99702e RD |
8171 | if (_argo0) { |
8172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8175 | return NULL; |
8176 | } | |
8177 | } | |
1d99702e | 8178 | if (_argo1) { |
b67a9327 | 8179 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a | 8180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); |
8ab979d7 | 8181 | return NULL; |
d5c9047a | 8182 | } |
8ab979d7 | 8183 | } |
d5c9047a RD |
8184 | { |
8185 | temp = (long) PyInt_AsLong(_obj2); | |
8186 | _arg2 = &temp; | |
8ab979d7 | 8187 | } |
cf694132 | 8188 | { |
474c48f9 | 8189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8190 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); |
cf694132 | 8191 | |
474c48f9 | 8192 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8193 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8194 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8195 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 | 8196 | { |
d5c9047a RD |
8197 | PyObject *o; |
8198 | o = PyInt_FromLong((long) (*_arg2)); | |
8199 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
8200 | } |
8201 | return _resultobj; | |
8202 | } | |
8203 | ||
d5c9047a | 8204 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) |
efc5f224 | 8205 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8206 | PyObject * _resultobj; |
d5c9047a | 8207 | wxTreeItemId * _result; |
f6bcfd97 | 8208 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8209 | wxTreeItemId * _arg1; |
1d99702e RD |
8210 | PyObject * _argo0 = 0; |
8211 | PyObject * _argo1 = 0; | |
efc5f224 | 8212 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8213 | char _ptemp[128]; |
8ab979d7 RD |
8214 | |
8215 | self = self; | |
efc5f224 | 8216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8217 | return NULL; |
1d99702e RD |
8218 | if (_argo0) { |
8219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8222 | return NULL; |
8223 | } | |
8224 | } | |
1d99702e | 8225 | if (_argo1) { |
b67a9327 | 8226 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); |
8228 | return NULL; | |
8229 | } | |
8230 | } | |
cf694132 | 8231 | { |
474c48f9 | 8232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8233 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); |
cf694132 | 8234 | |
474c48f9 | 8235 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8236 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8237 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8238 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8239 | return _resultobj; |
8240 | } | |
8241 | ||
d5c9047a | 8242 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) |
efc5f224 | 8243 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8244 | PyObject * _resultobj; |
d5c9047a | 8245 | wxTreeItemId * _result; |
f6bcfd97 | 8246 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8247 | wxTreeItemId * _arg1; |
1d99702e RD |
8248 | PyObject * _argo0 = 0; |
8249 | PyObject * _argo1 = 0; | |
efc5f224 | 8250 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8251 | char _ptemp[128]; |
8ab979d7 RD |
8252 | |
8253 | self = self; | |
efc5f224 | 8254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8255 | return NULL; |
1d99702e RD |
8256 | if (_argo0) { |
8257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8260 | return NULL; |
8261 | } | |
8262 | } | |
1d99702e | 8263 | if (_argo1) { |
b67a9327 | 8264 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); |
8266 | return NULL; | |
8267 | } | |
8268 | } | |
cf694132 | 8269 | { |
474c48f9 | 8270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8271 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); |
cf694132 | 8272 | |
474c48f9 | 8273 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8274 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8275 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8276 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8277 | return _resultobj; |
8278 | } | |
8279 | ||
d5c9047a | 8280 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) |
efc5f224 | 8281 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8282 | PyObject * _resultobj; |
d5c9047a | 8283 | wxTreeItemId * _result; |
f6bcfd97 | 8284 | wxPyTreeCtrl * _arg0; |
1d99702e | 8285 | PyObject * _argo0 = 0; |
efc5f224 | 8286 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 8287 | char _ptemp[128]; |
8ab979d7 RD |
8288 | |
8289 | self = self; | |
efc5f224 | 8290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) |
8ab979d7 | 8291 | return NULL; |
1d99702e RD |
8292 | if (_argo0) { |
8293 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8294 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8296 | return NULL; |
8297 | } | |
8298 | } | |
cf694132 | 8299 | { |
474c48f9 | 8300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8301 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); |
cf694132 | 8302 | |
474c48f9 | 8303 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8304 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8305 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8306 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8307 | return _resultobj; |
8308 | } | |
8309 | ||
d5c9047a | 8310 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) |
efc5f224 | 8311 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8312 | PyObject * _resultobj; |
d5c9047a | 8313 | wxTreeItemId * _result; |
f6bcfd97 | 8314 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8315 | wxTreeItemId * _arg1; |
1d99702e RD |
8316 | PyObject * _argo0 = 0; |
8317 | PyObject * _argo1 = 0; | |
efc5f224 | 8318 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8319 | char _ptemp[128]; |
8ab979d7 RD |
8320 | |
8321 | self = self; | |
efc5f224 | 8322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8323 | return NULL; |
1d99702e RD |
8324 | if (_argo0) { |
8325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8328 | return NULL; |
8329 | } | |
8330 | } | |
1d99702e | 8331 | if (_argo1) { |
b67a9327 | 8332 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); |
8334 | return NULL; | |
8335 | } | |
8336 | } | |
cf694132 | 8337 | { |
474c48f9 | 8338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8339 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); |
cf694132 | 8340 | |
474c48f9 | 8341 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8342 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8343 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8344 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8345 | return _resultobj; |
8346 | } | |
8347 | ||
d5c9047a | 8348 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) |
efc5f224 | 8349 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8350 | PyObject * _resultobj; |
d5c9047a | 8351 | wxTreeItemId * _result; |
f6bcfd97 | 8352 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8353 | wxTreeItemId * _arg1; |
1d99702e RD |
8354 | PyObject * _argo0 = 0; |
8355 | PyObject * _argo1 = 0; | |
efc5f224 | 8356 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8357 | char _ptemp[128]; |
8ab979d7 RD |
8358 | |
8359 | self = self; | |
efc5f224 | 8360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8361 | return NULL; |
1d99702e RD |
8362 | if (_argo0) { |
8363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8366 | return NULL; |
8367 | } | |
8368 | } | |
1d99702e | 8369 | if (_argo1) { |
b67a9327 | 8370 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a | 8371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8372 | return NULL; |
8373 | } | |
8374 | } | |
cf694132 | 8375 | { |
474c48f9 | 8376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8377 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); |
cf694132 | 8378 | |
474c48f9 | 8379 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8380 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8381 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8382 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8383 | return _resultobj; |
8384 | } | |
8385 | ||
d426c97e RD |
8386 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) |
8387 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8388 | PyObject * _resultobj; | |
8389 | wxTreeItemId * _result; | |
f6bcfd97 | 8390 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8391 | wxTreeItemId * _arg1; |
8392 | PyObject * _argo0 = 0; | |
8393 | PyObject * _argo1 = 0; | |
8394 | char *_kwnames[] = { "self","item", NULL }; | |
8395 | char _ptemp[128]; | |
8396 | ||
8397 | self = self; | |
8398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
8399 | return NULL; | |
8400 | if (_argo0) { | |
8401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8404 | return NULL; |
8405 | } | |
8406 | } | |
8407 | if (_argo1) { | |
b67a9327 | 8408 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d426c97e RD |
8409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); |
8410 | return NULL; | |
8411 | } | |
8412 | } | |
8413 | { | |
474c48f9 | 8414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8415 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); |
d426c97e | 8416 | |
474c48f9 | 8417 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8418 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8419 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8420 | _resultobj = Py_BuildValue("s",_ptemp); | |
8421 | return _resultobj; | |
8422 | } | |
8423 | ||
d5c9047a | 8424 | #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 8425 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8426 | PyObject * _resultobj; |
d5c9047a | 8427 | wxTreeItemId * _result; |
f6bcfd97 | 8428 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8429 | wxString * _arg1; |
1d99702e RD |
8430 | int _arg2 = (int ) -1; |
8431 | int _arg3 = (int ) -1; | |
8432 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
8433 | PyObject * _argo0 = 0; | |
d5c9047a | 8434 | PyObject * _obj1 = 0; |
1d99702e | 8435 | PyObject * _argo4 = 0; |
efc5f224 | 8436 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; |
d5c9047a | 8437 | char _ptemp[128]; |
8ab979d7 RD |
8438 | |
8439 | self = self; | |
efc5f224 | 8440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) |
8ab979d7 | 8441 | return NULL; |
1d99702e RD |
8442 | if (_argo0) { |
8443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8446 | return NULL; |
8447 | } | |
8448 | } | |
d5c9047a | 8449 | { |
c8bc7bb8 RD |
8450 | _arg1 = wxString_in_helper(_obj1); |
8451 | if (_arg1 == NULL) | |
2cd2fac8 | 8452 | return NULL; |
d5c9047a | 8453 | } |
1d99702e RD |
8454 | if (_argo4) { |
8455 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
8456 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
cf694132 | 8457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
8458 | return NULL; |
8459 | } | |
8460 | } | |
cf694132 | 8461 | { |
474c48f9 | 8462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8463 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); |
cf694132 | 8464 | |
474c48f9 | 8465 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8466 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8467 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8468 | _resultobj = Py_BuildValue("s",_ptemp); |
8469 | { | |
8470 | if (_obj1) | |
8471 | delete _arg1; | |
8472 | } | |
8ab979d7 RD |
8473 | return _resultobj; |
8474 | } | |
8475 | ||
d5c9047a | 8476 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8477 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8478 | PyObject * _resultobj; |
d5c9047a | 8479 | wxTreeItemId * _result; |
f6bcfd97 | 8480 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8481 | wxTreeItemId * _arg1; |
8482 | wxString * _arg2; | |
1d99702e RD |
8483 | int _arg3 = (int ) -1; |
8484 | int _arg4 = (int ) -1; | |
8485 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8486 | PyObject * _argo0 = 0; | |
8487 | PyObject * _argo1 = 0; | |
d5c9047a | 8488 | PyObject * _obj2 = 0; |
1d99702e | 8489 | PyObject * _argo5 = 0; |
efc5f224 | 8490 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8491 | char _ptemp[128]; |
8ab979d7 RD |
8492 | |
8493 | self = self; | |
efc5f224 | 8494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 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_PrependItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8500 | return NULL; |
8501 | } | |
8502 | } | |
1d99702e | 8503 | if (_argo1) { |
b67a9327 | 8504 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); |
8506 | return NULL; | |
8507 | } | |
8508 | } | |
8509 | { | |
c8bc7bb8 RD |
8510 | _arg2 = wxString_in_helper(_obj2); |
8511 | if (_arg2 == NULL) | |
2cd2fac8 | 8512 | return NULL; |
d5c9047a | 8513 | } |
1d99702e RD |
8514 | if (_argo5) { |
8515 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8516 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8518 | return NULL; |
8519 | } | |
8520 | } | |
cf694132 | 8521 | { |
474c48f9 | 8522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8523 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); |
cf694132 | 8524 | |
474c48f9 | 8525 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8526 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8527 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8528 | _resultobj = Py_BuildValue("s",_ptemp); |
8529 | { | |
8530 | if (_obj2) | |
8531 | delete _arg2; | |
8532 | } | |
8ab979d7 RD |
8533 | return _resultobj; |
8534 | } | |
8535 | ||
d5c9047a | 8536 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 8537 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8538 | PyObject * _resultobj; |
d5c9047a | 8539 | wxTreeItemId * _result; |
f6bcfd97 | 8540 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8541 | wxTreeItemId * _arg1; |
8542 | wxTreeItemId * _arg2; | |
8543 | wxString * _arg3; | |
1d99702e RD |
8544 | int _arg4 = (int ) -1; |
8545 | int _arg5 = (int ) -1; | |
8546 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
8547 | PyObject * _argo0 = 0; | |
8548 | PyObject * _argo1 = 0; | |
8549 | PyObject * _argo2 = 0; | |
d5c9047a | 8550 | PyObject * _obj3 = 0; |
1d99702e | 8551 | PyObject * _argo6 = 0; |
efc5f224 | 8552 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; |
d5c9047a | 8553 | char _ptemp[128]; |
8ab979d7 RD |
8554 | |
8555 | self = self; | |
efc5f224 | 8556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) |
8ab979d7 | 8557 | return NULL; |
1d99702e RD |
8558 | if (_argo0) { |
8559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8562 | return NULL; |
8563 | } | |
8564 | } | |
1d99702e | 8565 | if (_argo1) { |
b67a9327 | 8566 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8568 | return NULL; | |
8569 | } | |
8570 | } | |
1d99702e | 8571 | if (_argo2) { |
b67a9327 | 8572 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { |
d5c9047a RD |
8573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8574 | return NULL; | |
8575 | } | |
8576 | } | |
8577 | { | |
c8bc7bb8 RD |
8578 | _arg3 = wxString_in_helper(_obj3); |
8579 | if (_arg3 == NULL) | |
2cd2fac8 | 8580 | return NULL; |
d5c9047a | 8581 | } |
1d99702e RD |
8582 | if (_argo6) { |
8583 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8584 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
cf694132 | 8585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8586 | return NULL; |
8587 | } | |
8588 | } | |
cf694132 | 8589 | { |
474c48f9 | 8590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8591 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); |
cf694132 | 8592 | |
474c48f9 | 8593 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8594 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8595 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8596 | _resultobj = Py_BuildValue("s",_ptemp); |
8597 | { | |
8598 | if (_obj3) | |
8599 | delete _arg3; | |
8600 | } | |
8ab979d7 RD |
8601 | return _resultobj; |
8602 | } | |
8603 | ||
f6bcfd97 BP |
8604 | #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
8605 | static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8606 | PyObject * _resultobj; | |
8607 | wxTreeItemId * _result; | |
8608 | wxPyTreeCtrl * _arg0; | |
8609 | wxTreeItemId * _arg1; | |
8610 | size_t _arg2; | |
8611 | wxString * _arg3; | |
8612 | int _arg4 = (int ) -1; | |
8613 | int _arg5 = (int ) -1; | |
55d18651 | 8614 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; |
f6bcfd97 BP |
8615 | PyObject * _argo0 = 0; |
8616 | PyObject * _argo1 = 0; | |
8617 | PyObject * _obj3 = 0; | |
8618 | PyObject * _argo6 = 0; | |
8619 | char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL }; | |
8620 | char _ptemp[128]; | |
8621 | ||
8622 | self = self; | |
8623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
8624 | return NULL; | |
8625 | if (_argo0) { | |
8626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p."); | |
8629 | return NULL; | |
8630 | } | |
8631 | } | |
8632 | if (_argo1) { | |
b67a9327 | 8633 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
f6bcfd97 BP |
8634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p."); |
8635 | return NULL; | |
8636 | } | |
8637 | } | |
8638 | { | |
c8bc7bb8 RD |
8639 | _arg3 = wxString_in_helper(_obj3); |
8640 | if (_arg3 == NULL) | |
2cd2fac8 | 8641 | return NULL; |
f6bcfd97 BP |
8642 | } |
8643 | if (_argo6) { | |
8644 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
55d18651 RD |
8645 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { |
8646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeItemData_p."); | |
f6bcfd97 BP |
8647 | return NULL; |
8648 | } | |
8649 | } | |
8650 | { | |
474c48f9 | 8651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8652 | _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6)); |
f6bcfd97 | 8653 | |
474c48f9 | 8654 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8655 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
8656 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8657 | _resultobj = Py_BuildValue("s",_ptemp); | |
8658 | { | |
8659 | if (_obj3) | |
8660 | delete _arg3; | |
8661 | } | |
8662 | return _resultobj; | |
8663 | } | |
8664 | ||
d5c9047a | 8665 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8666 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8667 | PyObject * _resultobj; |
d5c9047a | 8668 | wxTreeItemId * _result; |
f6bcfd97 | 8669 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8670 | wxTreeItemId * _arg1; |
8ab979d7 | 8671 | wxString * _arg2; |
1d99702e RD |
8672 | int _arg3 = (int ) -1; |
8673 | int _arg4 = (int ) -1; | |
8674 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8675 | PyObject * _argo0 = 0; | |
8676 | PyObject * _argo1 = 0; | |
8ab979d7 | 8677 | PyObject * _obj2 = 0; |
1d99702e | 8678 | PyObject * _argo5 = 0; |
efc5f224 | 8679 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8680 | char _ptemp[128]; |
8ab979d7 RD |
8681 | |
8682 | self = self; | |
efc5f224 | 8683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8684 | return NULL; |
1d99702e RD |
8685 | if (_argo0) { |
8686 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8687 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8689 | return NULL; |
8690 | } | |
8691 | } | |
1d99702e | 8692 | if (_argo1) { |
b67a9327 | 8693 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a | 8694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8695 | return NULL; |
8696 | } | |
8697 | } | |
8698 | { | |
c8bc7bb8 RD |
8699 | _arg2 = wxString_in_helper(_obj2); |
8700 | if (_arg2 == NULL) | |
2cd2fac8 | 8701 | return NULL; |
8ab979d7 | 8702 | } |
1d99702e RD |
8703 | if (_argo5) { |
8704 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8705 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8707 | return NULL; |
8708 | } | |
8709 | } | |
cf694132 | 8710 | { |
474c48f9 | 8711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8712 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); |
cf694132 | 8713 | |
474c48f9 | 8714 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8715 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8716 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8717 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8718 | { |
8719 | if (_obj2) | |
8720 | delete _arg2; | |
8721 | } | |
8722 | return _resultobj; | |
8723 | } | |
8724 | ||
d5c9047a | 8725 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
efc5f224 | 8726 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 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 }; |
8ab979d7 RD |
8733 | |
8734 | self = self; | |
efc5f224 | 8735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 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_Delete. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8741 | return NULL; |
8742 | } | |
8743 | } | |
1d99702e | 8744 | if (_argo1) { |
b67a9327 | 8745 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); |
8747 | return NULL; | |
8748 | } | |
8749 | } | |
cf694132 | 8750 | { |
474c48f9 | 8751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8752 | wxTreeCtrl_Delete(_arg0,*_arg1); |
cf694132 | 8753 | |
474c48f9 | 8754 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8755 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8756 | } Py_INCREF(Py_None); |
d5c9047a RD |
8757 | _resultobj = Py_None; |
8758 | return _resultobj; | |
8759 | } | |
8760 | ||
08127323 | 8761 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) |
efc5f224 | 8762 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 8763 | PyObject * _resultobj; |
f6bcfd97 | 8764 | wxPyTreeCtrl * _arg0; |
08127323 | 8765 | wxTreeItemId * _arg1; |
1d99702e RD |
8766 | PyObject * _argo0 = 0; |
8767 | PyObject * _argo1 = 0; | |
efc5f224 | 8768 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
8769 | |
8770 | self = self; | |
efc5f224 | 8771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) |
08127323 | 8772 | return NULL; |
1d99702e RD |
8773 | if (_argo0) { |
8774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
8777 | return NULL; |
8778 | } | |
8779 | } | |
1d99702e | 8780 | if (_argo1) { |
b67a9327 | 8781 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
08127323 RD |
8782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); |
8783 | return NULL; | |
8784 | } | |
8785 | } | |
cf694132 | 8786 | { |
474c48f9 | 8787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8788 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); |
cf694132 | 8789 | |
474c48f9 | 8790 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8791 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8792 | } Py_INCREF(Py_None); |
08127323 RD |
8793 | _resultobj = Py_None; |
8794 | return _resultobj; | |
8795 | } | |
8796 | ||
d5c9047a | 8797 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) |
efc5f224 | 8798 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8799 | PyObject * _resultobj; |
f6bcfd97 | 8800 | wxPyTreeCtrl * _arg0; |
1d99702e | 8801 | PyObject * _argo0 = 0; |
efc5f224 | 8802 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8803 | |
8804 | self = self; | |
efc5f224 | 8805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) |
d5c9047a | 8806 | return NULL; |
1d99702e RD |
8807 | if (_argo0) { |
8808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8811 | return NULL; |
8812 | } | |
8813 | } | |
cf694132 | 8814 | { |
474c48f9 | 8815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8816 | wxTreeCtrl_DeleteAllItems(_arg0); |
cf694132 | 8817 | |
474c48f9 | 8818 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8819 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8820 | } Py_INCREF(Py_None); |
d5c9047a RD |
8821 | _resultobj = Py_None; |
8822 | return _resultobj; | |
8823 | } | |
8824 | ||
8825 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
efc5f224 | 8826 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8827 | PyObject * _resultobj; |
f6bcfd97 | 8828 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8829 | wxTreeItemId * _arg1; |
1d99702e RD |
8830 | PyObject * _argo0 = 0; |
8831 | PyObject * _argo1 = 0; | |
efc5f224 | 8832 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8833 | |
8834 | self = self; | |
efc5f224 | 8835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8836 | return NULL; |
1d99702e RD |
8837 | if (_argo0) { |
8838 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8839 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8841 | return NULL; |
8842 | } | |
8843 | } | |
1d99702e | 8844 | if (_argo1) { |
b67a9327 | 8845 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); |
8847 | return NULL; | |
8848 | } | |
8849 | } | |
cf694132 | 8850 | { |
474c48f9 | 8851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8852 | wxTreeCtrl_Expand(_arg0,*_arg1); |
cf694132 | 8853 | |
474c48f9 | 8854 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8855 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8856 | } Py_INCREF(Py_None); |
d5c9047a RD |
8857 | _resultobj = Py_None; |
8858 | return _resultobj; | |
8859 | } | |
8860 | ||
8861 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
efc5f224 | 8862 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8863 | PyObject * _resultobj; |
f6bcfd97 | 8864 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8865 | wxTreeItemId * _arg1; |
1d99702e RD |
8866 | PyObject * _argo0 = 0; |
8867 | PyObject * _argo1 = 0; | |
efc5f224 | 8868 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8869 | |
8870 | self = self; | |
efc5f224 | 8871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8872 | return NULL; |
1d99702e RD |
8873 | if (_argo0) { |
8874 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8875 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8877 | return NULL; |
8878 | } | |
8879 | } | |
1d99702e | 8880 | if (_argo1) { |
b67a9327 | 8881 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p."); |
8883 | return NULL; | |
8884 | } | |
8885 | } | |
cf694132 | 8886 | { |
474c48f9 | 8887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8888 | wxTreeCtrl_Collapse(_arg0,*_arg1); |
cf694132 | 8889 | |
474c48f9 | 8890 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8891 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8892 | } Py_INCREF(Py_None); |
d5c9047a RD |
8893 | _resultobj = Py_None; |
8894 | return _resultobj; | |
8895 | } | |
8896 | ||
8897 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
efc5f224 | 8898 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8899 | PyObject * _resultobj; |
f6bcfd97 | 8900 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8901 | wxTreeItemId * _arg1; |
1d99702e RD |
8902 | PyObject * _argo0 = 0; |
8903 | PyObject * _argo1 = 0; | |
efc5f224 | 8904 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8905 | |
8906 | self = self; | |
efc5f224 | 8907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8908 | return NULL; |
1d99702e RD |
8909 | if (_argo0) { |
8910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8913 | return NULL; |
8914 | } | |
8915 | } | |
1d99702e | 8916 | if (_argo1) { |
b67a9327 | 8917 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); |
8919 | return NULL; | |
8920 | } | |
8921 | } | |
cf694132 | 8922 | { |
474c48f9 | 8923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8924 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); |
cf694132 | 8925 | |
474c48f9 | 8926 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8927 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8928 | } Py_INCREF(Py_None); |
d5c9047a RD |
8929 | _resultobj = Py_None; |
8930 | return _resultobj; | |
8931 | } | |
8932 | ||
8933 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
efc5f224 | 8934 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8935 | PyObject * _resultobj; |
f6bcfd97 | 8936 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8937 | wxTreeItemId * _arg1; |
1d99702e RD |
8938 | PyObject * _argo0 = 0; |
8939 | PyObject * _argo1 = 0; | |
efc5f224 | 8940 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8941 | |
8942 | self = self; | |
efc5f224 | 8943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8944 | return NULL; |
1d99702e RD |
8945 | if (_argo0) { |
8946 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8947 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8949 | return NULL; |
8950 | } | |
8951 | } | |
1d99702e | 8952 | if (_argo1) { |
b67a9327 | 8953 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); |
8955 | return NULL; | |
8956 | } | |
8957 | } | |
cf694132 | 8958 | { |
474c48f9 | 8959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8960 | wxTreeCtrl_Toggle(_arg0,*_arg1); |
cf694132 | 8961 | |
474c48f9 | 8962 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8963 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8964 | } Py_INCREF(Py_None); |
d5c9047a RD |
8965 | _resultobj = Py_None; |
8966 | return _resultobj; | |
8967 | } | |
8968 | ||
8969 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
efc5f224 | 8970 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8971 | PyObject * _resultobj; |
f6bcfd97 | 8972 | wxPyTreeCtrl * _arg0; |
1d99702e | 8973 | PyObject * _argo0 = 0; |
efc5f224 | 8974 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8975 | |
8976 | self = self; | |
efc5f224 | 8977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) |
d5c9047a | 8978 | return NULL; |
1d99702e RD |
8979 | if (_argo0) { |
8980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8983 | return NULL; |
8984 | } | |
8985 | } | |
cf694132 | 8986 | { |
474c48f9 | 8987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8988 | wxTreeCtrl_Unselect(_arg0); |
cf694132 | 8989 | |
474c48f9 | 8990 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8991 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8992 | } Py_INCREF(Py_None); |
d5c9047a RD |
8993 | _resultobj = Py_None; |
8994 | return _resultobj; | |
8995 | } | |
8996 | ||
8bf5d46e | 8997 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) |
efc5f224 | 8998 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e | 8999 | PyObject * _resultobj; |
f6bcfd97 | 9000 | wxPyTreeCtrl * _arg0; |
1d99702e | 9001 | PyObject * _argo0 = 0; |
efc5f224 | 9002 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
9003 | |
9004 | self = self; | |
efc5f224 | 9005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) |
8bf5d46e | 9006 | return NULL; |
1d99702e RD |
9007 | if (_argo0) { |
9008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p."); | |
8bf5d46e RD |
9011 | return NULL; |
9012 | } | |
9013 | } | |
9014 | { | |
474c48f9 | 9015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9016 | wxTreeCtrl_UnselectAll(_arg0); |
8bf5d46e | 9017 | |
474c48f9 | 9018 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9019 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
9020 | } Py_INCREF(Py_None); |
9021 | _resultobj = Py_None; | |
9022 | return _resultobj; | |
9023 | } | |
9024 | ||
d5c9047a | 9025 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) |
efc5f224 | 9026 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 9027 | PyObject * _resultobj; |
f6bcfd97 | 9028 | wxPyTreeCtrl * _arg0; |
d5c9047a | 9029 | wxTreeItemId * _arg1; |
1d99702e RD |
9030 | PyObject * _argo0 = 0; |
9031 | PyObject * _argo1 = 0; | |
efc5f224 | 9032 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
9033 | |
9034 | self = self; | |
efc5f224 | 9035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 9036 | return NULL; |
1d99702e RD |
9037 | if (_argo0) { |
9038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
9041 | return NULL; |
9042 | } | |
9043 | } | |
1d99702e | 9044 | if (_argo1) { |
b67a9327 | 9045 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
9046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); |
9047 | return NULL; | |
9048 | } | |
9049 | } | |
cf694132 | 9050 | { |
474c48f9 | 9051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9052 | wxTreeCtrl_SelectItem(_arg0,*_arg1); |
cf694132 | 9053 | |
474c48f9 | 9054 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9055 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9056 | } Py_INCREF(Py_None); |
d5c9047a RD |
9057 | _resultobj = Py_None; |
9058 | return _resultobj; | |
9059 | } | |
9060 | ||
9061 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
efc5f224 | 9062 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 9063 | PyObject * _resultobj; |
f6bcfd97 | 9064 | wxPyTreeCtrl * _arg0; |
d5c9047a | 9065 | wxTreeItemId * _arg1; |
1d99702e RD |
9066 | PyObject * _argo0 = 0; |
9067 | PyObject * _argo1 = 0; | |
efc5f224 | 9068 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
9069 | |
9070 | self = self; | |
efc5f224 | 9071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 9072 | return NULL; |
1d99702e RD |
9073 | if (_argo0) { |
9074 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9075 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
9077 | return NULL; |
9078 | } | |
9079 | } | |
1d99702e | 9080 | if (_argo1) { |
b67a9327 | 9081 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
9082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); |
9083 | return NULL; | |
9084 | } | |
9085 | } | |
cf694132 | 9086 | { |
474c48f9 | 9087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9088 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); |
cf694132 | 9089 | |
474c48f9 | 9090 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9091 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9092 | } Py_INCREF(Py_None); |
d5c9047a RD |
9093 | _resultobj = Py_None; |
9094 | return _resultobj; | |
9095 | } | |
9096 | ||
9097 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
efc5f224 | 9098 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 9099 | PyObject * _resultobj; |
f6bcfd97 | 9100 | wxPyTreeCtrl * _arg0; |
d5c9047a | 9101 | wxTreeItemId * _arg1; |
1d99702e RD |
9102 | PyObject * _argo0 = 0; |
9103 | PyObject * _argo1 = 0; | |
efc5f224 | 9104 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
9105 | |
9106 | self = self; | |
efc5f224 | 9107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 9108 | return NULL; |
1d99702e RD |
9109 | if (_argo0) { |
9110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
9113 | return NULL; |
9114 | } | |
9115 | } | |
1d99702e | 9116 | if (_argo1) { |
b67a9327 | 9117 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
9118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); |
9119 | return NULL; | |
9120 | } | |
9121 | } | |
cf694132 | 9122 | { |
474c48f9 | 9123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9124 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); |
cf694132 | 9125 | |
474c48f9 | 9126 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9127 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9128 | } Py_INCREF(Py_None); |
d5c9047a RD |
9129 | _resultobj = Py_None; |
9130 | return _resultobj; | |
9131 | } | |
9132 | ||
b67a9327 RD |
9133 | #define wxTreeCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) |
9134 | static PyObject *_wrap_wxTreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9135 | PyObject * _resultobj; | |
9136 | wxTextCtrl * _result; | |
9137 | wxPyTreeCtrl * _arg0; | |
9138 | PyObject * _argo0 = 0; | |
9139 | char *_kwnames[] = { "self", NULL }; | |
9140 | ||
9141 | self = self; | |
9142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetEditControl",_kwnames,&_argo0)) | |
9143 | return NULL; | |
9144 | if (_argo0) { | |
9145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetEditControl. Expected _wxPyTreeCtrl_p."); | |
9148 | return NULL; | |
9149 | } | |
9150 | } | |
9151 | { | |
9152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9153 | _result = (wxTextCtrl *)wxTreeCtrl_GetEditControl(_arg0); | |
9154 | ||
9155 | wxPyEndAllowThreads(__tstate); | |
9156 | if (PyErr_Occurred()) return NULL; | |
9157 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
9158 | return _resultobj; | |
9159 | } | |
9160 | ||
d5c9047a | 9161 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) |
efc5f224 | 9162 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 9163 | PyObject * _resultobj; |
f6bcfd97 | 9164 | wxPyTreeCtrl * _arg0; |
d5c9047a | 9165 | wxTreeItemId * _arg1; |
1d99702e RD |
9166 | PyObject * _argo0 = 0; |
9167 | PyObject * _argo1 = 0; | |
efc5f224 | 9168 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
9169 | |
9170 | self = self; | |
efc5f224 | 9171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 9172 | return NULL; |
1d99702e RD |
9173 | if (_argo0) { |
9174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
9177 | return NULL; |
9178 | } | |
9179 | } | |
1d99702e | 9180 | if (_argo1) { |
b67a9327 | 9181 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
9182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); |
9183 | return NULL; | |
9184 | } | |
9185 | } | |
cf694132 | 9186 | { |
474c48f9 | 9187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9188 | wxTreeCtrl_EditLabel(_arg0,*_arg1); |
cf694132 | 9189 | |
474c48f9 | 9190 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9191 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9192 | } Py_INCREF(Py_None); |
d5c9047a | 9193 | _resultobj = Py_None; |
8ab979d7 RD |
9194 | return _resultobj; |
9195 | } | |
9196 | ||
d426c97e RD |
9197 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) |
9198 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9199 | PyObject * _resultobj; | |
f6bcfd97 | 9200 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
9201 | wxTreeItemId * _arg1; |
9202 | PyObject * _argo0 = 0; | |
9203 | PyObject * _argo1 = 0; | |
9204 | char *_kwnames[] = { "self","item", NULL }; | |
9205 | ||
9206 | self = self; | |
9207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
9208 | return NULL; | |
9209 | if (_argo0) { | |
9210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
9213 | return NULL; |
9214 | } | |
9215 | } | |
9216 | if (_argo1) { | |
b67a9327 | 9217 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d426c97e RD |
9218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); |
9219 | return NULL; | |
9220 | } | |
9221 | } | |
9222 | { | |
474c48f9 | 9223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9224 | wxTreeCtrl_SortChildren(_arg0,*_arg1); |
d426c97e | 9225 | |
474c48f9 | 9226 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9227 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
9228 | } Py_INCREF(Py_None); |
9229 | _resultobj = Py_None; | |
9230 | return _resultobj; | |
9231 | } | |
9232 | ||
b8b8dda7 | 9233 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) |
efc5f224 | 9234 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 | 9235 | PyObject * _resultobj; |
f6bcfd97 | 9236 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9237 | wxTreeItemId * _arg1; |
b1462dfa | 9238 | int _arg2 = (int ) TRUE; |
1d99702e RD |
9239 | PyObject * _argo0 = 0; |
9240 | PyObject * _argo1 = 0; | |
efc5f224 | 9241 | char *_kwnames[] = { "self","item","bold", NULL }; |
b8b8dda7 RD |
9242 | |
9243 | self = self; | |
b1462dfa | 9244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) |
b8b8dda7 | 9245 | return NULL; |
1d99702e RD |
9246 | if (_argo0) { |
9247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9250 | return NULL; |
9251 | } | |
9252 | } | |
1d99702e | 9253 | if (_argo1) { |
b67a9327 | 9254 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
b8b8dda7 RD |
9255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); |
9256 | return NULL; | |
9257 | } | |
9258 | } | |
cf694132 | 9259 | { |
474c48f9 | 9260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9261 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); |
cf694132 | 9262 | |
474c48f9 | 9263 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9264 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9265 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
9266 | _resultobj = Py_None; |
9267 | return _resultobj; | |
9268 | } | |
9269 | ||
9270 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
efc5f224 | 9271 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
9272 | PyObject * _resultobj; |
9273 | bool _result; | |
f6bcfd97 | 9274 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9275 | wxTreeItemId * _arg1; |
1d99702e RD |
9276 | PyObject * _argo0 = 0; |
9277 | PyObject * _argo1 = 0; | |
efc5f224 | 9278 | char *_kwnames[] = { "self","item", NULL }; |
b8b8dda7 RD |
9279 | |
9280 | self = self; | |
efc5f224 | 9281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 9282 | return NULL; |
1d99702e RD |
9283 | if (_argo0) { |
9284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9287 | return NULL; |
9288 | } | |
9289 | } | |
1d99702e | 9290 | if (_argo1) { |
b67a9327 | 9291 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
b8b8dda7 RD |
9292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); |
9293 | return NULL; | |
9294 | } | |
9295 | } | |
cf694132 | 9296 | { |
474c48f9 | 9297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9298 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); |
cf694132 | 9299 | |
474c48f9 | 9300 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9301 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9302 | } _resultobj = Py_BuildValue("i",_result); |
b8b8dda7 RD |
9303 | return _resultobj; |
9304 | } | |
9305 | ||
164b735b | 9306 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
efc5f224 | 9307 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
9308 | PyObject * _resultobj; |
9309 | wxTreeItemId * _result; | |
f6bcfd97 | 9310 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9311 | wxPoint * _arg1; |
164b735b RD |
9312 | int * _arg2; |
9313 | int temp; | |
1d99702e | 9314 | PyObject * _argo0 = 0; |
164b735b | 9315 | wxPoint temp0; |
2f90df85 | 9316 | PyObject * _obj1 = 0; |
efc5f224 | 9317 | char *_kwnames[] = { "self","point", NULL }; |
b8b8dda7 RD |
9318 | char _ptemp[128]; |
9319 | ||
9320 | self = self; | |
164b735b RD |
9321 | { |
9322 | _arg2 = &temp; | |
9323 | } | |
2f90df85 | 9324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 9325 | return NULL; |
1d99702e RD |
9326 | if (_argo0) { |
9327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9330 | return NULL; |
9331 | } | |
9332 | } | |
2f90df85 | 9333 | { |
164b735b | 9334 | _arg1 = &temp0; |
2f90df85 | 9335 | if (! wxPoint_helper(_obj1, &_arg1)) |
b8b8dda7 | 9336 | return NULL; |
2f90df85 | 9337 | } |
cf694132 | 9338 | { |
474c48f9 | 9339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9340 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); |
cf694132 | 9341 | |
474c48f9 | 9342 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9343 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9344 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
b8b8dda7 | 9345 | _resultobj = Py_BuildValue("s",_ptemp); |
164b735b RD |
9346 | { |
9347 | PyObject *o; | |
9348 | o = PyInt_FromLong((long) (*_arg2)); | |
9349 | _resultobj = t_output_helper(_resultobj, o); | |
9350 | } | |
b8b8dda7 RD |
9351 | return _resultobj; |
9352 | } | |
9353 | ||
b7e72427 RD |
9354 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
9355 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9356 | PyObject * _resultobj; | |
f6bcfd97 | 9357 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9358 | wxTreeItemId * _arg1; |
9359 | wxColour * _arg2; | |
9360 | PyObject * _argo0 = 0; | |
9361 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9362 | wxColour temp; |
9363 | PyObject * _obj2 = 0; | |
b7e72427 RD |
9364 | char *_kwnames[] = { "self","item","col", NULL }; |
9365 | ||
9366 | self = self; | |
f6bcfd97 | 9367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9368 | return NULL; |
9369 | if (_argo0) { | |
9370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9373 | return NULL; |
9374 | } | |
9375 | } | |
9376 | if (_argo1) { | |
b67a9327 | 9377 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
b7e72427 RD |
9378 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); |
9379 | return NULL; | |
9380 | } | |
9381 | } | |
f6bcfd97 BP |
9382 | { |
9383 | _arg2 = &temp; | |
9384 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9385 | return NULL; |
f6bcfd97 | 9386 | } |
b7e72427 | 9387 | { |
474c48f9 | 9388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9389 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); |
b7e72427 | 9390 | |
474c48f9 | 9391 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9392 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9393 | } Py_INCREF(Py_None); |
9394 | _resultobj = Py_None; | |
9395 | return _resultobj; | |
9396 | } | |
9397 | ||
9398 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
9399 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9400 | PyObject * _resultobj; | |
f6bcfd97 | 9401 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9402 | wxTreeItemId * _arg1; |
9403 | wxColour * _arg2; | |
9404 | PyObject * _argo0 = 0; | |
9405 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9406 | wxColour temp; |
9407 | PyObject * _obj2 = 0; | |
b7e72427 RD |
9408 | char *_kwnames[] = { "self","item","col", NULL }; |
9409 | ||
9410 | self = self; | |
f6bcfd97 | 9411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9412 | return NULL; |
9413 | if (_argo0) { | |
9414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9417 | return NULL; |
9418 | } | |
9419 | } | |
9420 | if (_argo1) { | |
b67a9327 | 9421 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
b7e72427 RD |
9422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); |
9423 | return NULL; | |
9424 | } | |
9425 | } | |
f6bcfd97 BP |
9426 | { |
9427 | _arg2 = &temp; | |
9428 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9429 | return NULL; |
f6bcfd97 | 9430 | } |
b7e72427 | 9431 | { |
474c48f9 | 9432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9433 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); |
b7e72427 | 9434 | |
474c48f9 | 9435 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9436 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9437 | } Py_INCREF(Py_None); |
9438 | _resultobj = Py_None; | |
9439 | return _resultobj; | |
9440 | } | |
9441 | ||
9442 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
9443 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9444 | PyObject * _resultobj; | |
f6bcfd97 | 9445 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9446 | wxTreeItemId * _arg1; |
9447 | wxFont * _arg2; | |
9448 | PyObject * _argo0 = 0; | |
9449 | PyObject * _argo1 = 0; | |
9450 | PyObject * _argo2 = 0; | |
9451 | char *_kwnames[] = { "self","item","font", NULL }; | |
9452 | ||
9453 | self = self; | |
9454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
9455 | return NULL; | |
9456 | if (_argo0) { | |
9457 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9458 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9460 | return NULL; |
9461 | } | |
9462 | } | |
9463 | if (_argo1) { | |
b67a9327 | 9464 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
b7e72427 RD |
9465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); |
9466 | return NULL; | |
9467 | } | |
9468 | } | |
9469 | if (_argo2) { | |
b67a9327 | 9470 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { |
b7e72427 RD |
9471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); |
9472 | return NULL; | |
9473 | } | |
9474 | } | |
9475 | { | |
474c48f9 | 9476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9477 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); |
b7e72427 | 9478 | |
474c48f9 | 9479 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9480 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9481 | } Py_INCREF(Py_None); |
9482 | _resultobj = Py_None; | |
9483 | return _resultobj; | |
9484 | } | |
9485 | ||
74bcba0e RD |
9486 | static PyObject * wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,const wxTreeItemId & item,int textOnly) { |
9487 | wxRect rect; | |
9488 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
474c48f9 | 9489 | wxPyBeginBlockThreads(); |
74bcba0e | 9490 | wxRect* r = new wxRect(rect); |
1fded56b | 9491 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), 1); |
474c48f9 | 9492 | wxPyEndBlockThreads(); |
74bcba0e RD |
9493 | return val; |
9494 | } | |
9495 | else { | |
9496 | Py_INCREF(Py_None); | |
9497 | return Py_None; | |
9498 | } | |
9499 | } | |
9500 | static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9501 | PyObject * _resultobj; | |
9502 | PyObject * _result; | |
9503 | wxPyTreeCtrl * _arg0; | |
9504 | wxTreeItemId * _arg1; | |
9505 | int _arg2 = (int ) FALSE; | |
9506 | PyObject * _argo0 = 0; | |
9507 | PyObject * _argo1 = 0; | |
9508 | char *_kwnames[] = { "self","item","textOnly", NULL }; | |
9509 | ||
9510 | self = self; | |
9511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&_arg2)) | |
9512 | return NULL; | |
9513 | if (_argo0) { | |
9514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetBoundingRect. Expected _wxPyTreeCtrl_p."); | |
9517 | return NULL; | |
9518 | } | |
9519 | } | |
9520 | if (_argo1) { | |
b67a9327 | 9521 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
74bcba0e RD |
9522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeItemId_p."); |
9523 | return NULL; | |
9524 | } | |
9525 | } | |
9526 | { | |
474c48f9 | 9527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9528 | _result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(_arg0,*_arg1,_arg2); |
74bcba0e | 9529 | |
474c48f9 | 9530 | wxPyEndAllowThreads(__tstate); |
74bcba0e RD |
9531 | if (PyErr_Occurred()) return NULL; |
9532 | }{ | |
9533 | _resultobj = _result; | |
9534 | } | |
9535 | return _resultobj; | |
9536 | } | |
9537 | ||
db34b2d4 RD |
9538 | static void *SwigwxDirItemDataTowxObject(void *ptr) { |
9539 | wxDirItemData *src; | |
9540 | wxObject *dest; | |
9541 | src = (wxDirItemData *) ptr; | |
9542 | dest = (wxObject *) src; | |
9543 | return (void *) dest; | |
9544 | } | |
9545 | ||
9546 | #define new_wxDirItemData(_swigarg0,_swigarg1,_swigarg2) (new wxDirItemData(_swigarg0,_swigarg1,_swigarg2)) | |
9547 | static PyObject *_wrap_new_wxDirItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9548 | PyObject * _resultobj; | |
9549 | wxDirItemData * _result; | |
9550 | wxString * _arg0; | |
9551 | wxString * _arg1; | |
9552 | bool _arg2; | |
9553 | PyObject * _obj0 = 0; | |
9554 | PyObject * _obj1 = 0; | |
9555 | int tempbool2; | |
9556 | char *_kwnames[] = { "path","name","isDir", NULL }; | |
9557 | char _ptemp[128]; | |
9558 | ||
9559 | self = self; | |
9560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:new_wxDirItemData",_kwnames,&_obj0,&_obj1,&tempbool2)) | |
9561 | return NULL; | |
9562 | { | |
c8bc7bb8 RD |
9563 | _arg0 = wxString_in_helper(_obj0); |
9564 | if (_arg0 == NULL) | |
db34b2d4 | 9565 | return NULL; |
db34b2d4 RD |
9566 | } |
9567 | { | |
c8bc7bb8 RD |
9568 | _arg1 = wxString_in_helper(_obj1); |
9569 | if (_arg1 == NULL) | |
db34b2d4 | 9570 | return NULL; |
db34b2d4 RD |
9571 | } |
9572 | _arg2 = (bool ) tempbool2; | |
9573 | { | |
9574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9575 | _result = (wxDirItemData *)new_wxDirItemData(*_arg0,*_arg1,_arg2); |
db34b2d4 RD |
9576 | |
9577 | wxPyEndAllowThreads(__tstate); | |
9578 | if (PyErr_Occurred()) return NULL; | |
9579 | } if (_result) { | |
9580 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirItemData_p"); | |
9581 | _resultobj = Py_BuildValue("s",_ptemp); | |
9582 | } else { | |
9583 | Py_INCREF(Py_None); | |
9584 | _resultobj = Py_None; | |
9585 | } | |
9586 | { | |
9587 | if (_obj0) | |
9588 | delete _arg0; | |
9589 | } | |
9590 | { | |
9591 | if (_obj1) | |
9592 | delete _arg1; | |
9593 | } | |
9594 | return _resultobj; | |
9595 | } | |
9596 | ||
9597 | #define wxDirItemData_SetNewDirName(_swigobj,_swigarg0) (_swigobj->SetNewDirName(_swigarg0)) | |
9598 | static PyObject *_wrap_wxDirItemData_SetNewDirName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9599 | PyObject * _resultobj; | |
9600 | wxDirItemData * _arg0; | |
9601 | wxString * _arg1; | |
9602 | PyObject * _argo0 = 0; | |
9603 | PyObject * _obj1 = 0; | |
9604 | char *_kwnames[] = { "self","path", NULL }; | |
9605 | ||
9606 | self = self; | |
9607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_SetNewDirName",_kwnames,&_argo0,&_obj1)) | |
9608 | return NULL; | |
9609 | if (_argo0) { | |
9610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_SetNewDirName. Expected _wxDirItemData_p."); | |
9613 | return NULL; | |
9614 | } | |
9615 | } | |
9616 | { | |
c8bc7bb8 RD |
9617 | _arg1 = wxString_in_helper(_obj1); |
9618 | if (_arg1 == NULL) | |
db34b2d4 | 9619 | return NULL; |
db34b2d4 RD |
9620 | } |
9621 | { | |
9622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9623 | wxDirItemData_SetNewDirName(_arg0,*_arg1); |
db34b2d4 RD |
9624 | |
9625 | wxPyEndAllowThreads(__tstate); | |
9626 | if (PyErr_Occurred()) return NULL; | |
9627 | } Py_INCREF(Py_None); | |
9628 | _resultobj = Py_None; | |
9629 | { | |
9630 | if (_obj1) | |
9631 | delete _arg1; | |
9632 | } | |
9633 | return _resultobj; | |
9634 | } | |
9635 | ||
9636 | #define wxDirItemData_m_path_set(_swigobj,_swigval) (_swigobj->m_path = *(_swigval),_swigval) | |
9637 | static PyObject *_wrap_wxDirItemData_m_path_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9638 | PyObject * _resultobj; | |
9639 | wxString * _result; | |
9640 | wxDirItemData * _arg0; | |
9641 | wxString * _arg1; | |
9642 | PyObject * _argo0 = 0; | |
9643 | PyObject * _obj1 = 0; | |
9644 | char *_kwnames[] = { "self","m_path", NULL }; | |
9645 | ||
9646 | self = self; | |
9647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_path_set",_kwnames,&_argo0,&_obj1)) | |
9648 | return NULL; | |
9649 | if (_argo0) { | |
9650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_set. Expected _wxDirItemData_p."); | |
9653 | return NULL; | |
9654 | } | |
9655 | } | |
9656 | { | |
c8bc7bb8 RD |
9657 | _arg1 = wxString_in_helper(_obj1); |
9658 | if (_arg1 == NULL) | |
db34b2d4 | 9659 | return NULL; |
db34b2d4 RD |
9660 | } |
9661 | { | |
9662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9663 | _result = (wxString *)wxDirItemData_m_path_set(_arg0,_arg1); |
db34b2d4 RD |
9664 | |
9665 | wxPyEndAllowThreads(__tstate); | |
9666 | if (PyErr_Occurred()) return NULL; | |
9667 | }{ | |
c8bc7bb8 | 9668 | #if wxUSE_UNICODE |
b67a9327 | 9669 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9670 | #else |
db34b2d4 | 9671 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9672 | #endif |
db34b2d4 RD |
9673 | } |
9674 | { | |
9675 | if (_obj1) | |
9676 | delete _arg1; | |
9677 | } | |
9678 | return _resultobj; | |
9679 | } | |
9680 | ||
9681 | #define wxDirItemData_m_path_get(_swigobj) (&_swigobj->m_path) | |
9682 | static PyObject *_wrap_wxDirItemData_m_path_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9683 | PyObject * _resultobj; | |
9684 | wxString * _result; | |
9685 | wxDirItemData * _arg0; | |
9686 | PyObject * _argo0 = 0; | |
9687 | char *_kwnames[] = { "self", NULL }; | |
9688 | ||
9689 | self = self; | |
9690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_path_get",_kwnames,&_argo0)) | |
9691 | return NULL; | |
9692 | if (_argo0) { | |
9693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_get. Expected _wxDirItemData_p."); | |
9696 | return NULL; | |
9697 | } | |
9698 | } | |
9699 | { | |
9700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9701 | _result = (wxString *)wxDirItemData_m_path_get(_arg0); |
db34b2d4 RD |
9702 | |
9703 | wxPyEndAllowThreads(__tstate); | |
9704 | if (PyErr_Occurred()) return NULL; | |
9705 | }{ | |
c8bc7bb8 | 9706 | #if wxUSE_UNICODE |
b67a9327 | 9707 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9708 | #else |
db34b2d4 | 9709 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9710 | #endif |
db34b2d4 RD |
9711 | } |
9712 | return _resultobj; | |
9713 | } | |
9714 | ||
9715 | #define wxDirItemData_m_name_set(_swigobj,_swigval) (_swigobj->m_name = *(_swigval),_swigval) | |
9716 | static PyObject *_wrap_wxDirItemData_m_name_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9717 | PyObject * _resultobj; | |
9718 | wxString * _result; | |
9719 | wxDirItemData * _arg0; | |
9720 | wxString * _arg1; | |
9721 | PyObject * _argo0 = 0; | |
9722 | PyObject * _obj1 = 0; | |
9723 | char *_kwnames[] = { "self","m_name", NULL }; | |
9724 | ||
9725 | self = self; | |
9726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_name_set",_kwnames,&_argo0,&_obj1)) | |
9727 | return NULL; | |
9728 | if (_argo0) { | |
9729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_set. Expected _wxDirItemData_p."); | |
9732 | return NULL; | |
9733 | } | |
9734 | } | |
9735 | { | |
c8bc7bb8 RD |
9736 | _arg1 = wxString_in_helper(_obj1); |
9737 | if (_arg1 == NULL) | |
db34b2d4 | 9738 | return NULL; |
db34b2d4 RD |
9739 | } |
9740 | { | |
9741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9742 | _result = (wxString *)wxDirItemData_m_name_set(_arg0,_arg1); |
db34b2d4 RD |
9743 | |
9744 | wxPyEndAllowThreads(__tstate); | |
9745 | if (PyErr_Occurred()) return NULL; | |
9746 | }{ | |
c8bc7bb8 | 9747 | #if wxUSE_UNICODE |
b67a9327 | 9748 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9749 | #else |
db34b2d4 | 9750 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9751 | #endif |
db34b2d4 RD |
9752 | } |
9753 | { | |
9754 | if (_obj1) | |
9755 | delete _arg1; | |
9756 | } | |
9757 | return _resultobj; | |
9758 | } | |
9759 | ||
9760 | #define wxDirItemData_m_name_get(_swigobj) (&_swigobj->m_name) | |
9761 | static PyObject *_wrap_wxDirItemData_m_name_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9762 | PyObject * _resultobj; | |
9763 | wxString * _result; | |
9764 | wxDirItemData * _arg0; | |
9765 | PyObject * _argo0 = 0; | |
9766 | char *_kwnames[] = { "self", NULL }; | |
9767 | ||
9768 | self = self; | |
9769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_name_get",_kwnames,&_argo0)) | |
9770 | return NULL; | |
9771 | if (_argo0) { | |
9772 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9773 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_get. Expected _wxDirItemData_p."); | |
9775 | return NULL; | |
9776 | } | |
9777 | } | |
9778 | { | |
9779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9780 | _result = (wxString *)wxDirItemData_m_name_get(_arg0); |
db34b2d4 RD |
9781 | |
9782 | wxPyEndAllowThreads(__tstate); | |
9783 | if (PyErr_Occurred()) return NULL; | |
9784 | }{ | |
c8bc7bb8 | 9785 | #if wxUSE_UNICODE |
b67a9327 | 9786 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9787 | #else |
db34b2d4 | 9788 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9789 | #endif |
db34b2d4 RD |
9790 | } |
9791 | return _resultobj; | |
9792 | } | |
9793 | ||
9794 | #define wxDirItemData_m_isHidden_set(_swigobj,_swigval) (_swigobj->m_isHidden = _swigval,_swigval) | |
9795 | static PyObject *_wrap_wxDirItemData_m_isHidden_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9796 | PyObject * _resultobj; | |
9797 | bool _result; | |
9798 | wxDirItemData * _arg0; | |
9799 | bool _arg1; | |
9800 | PyObject * _argo0 = 0; | |
9801 | int tempbool1; | |
9802 | char *_kwnames[] = { "self","m_isHidden", NULL }; | |
9803 | ||
9804 | self = self; | |
9805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isHidden_set",_kwnames,&_argo0,&tempbool1)) | |
9806 | return NULL; | |
9807 | if (_argo0) { | |
9808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_set. Expected _wxDirItemData_p."); | |
9811 | return NULL; | |
9812 | } | |
9813 | } | |
9814 | _arg1 = (bool ) tempbool1; | |
9815 | { | |
9816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9817 | _result = (bool )wxDirItemData_m_isHidden_set(_arg0,_arg1); |
db34b2d4 RD |
9818 | |
9819 | wxPyEndAllowThreads(__tstate); | |
9820 | if (PyErr_Occurred()) return NULL; | |
9821 | } _resultobj = Py_BuildValue("i",_result); | |
9822 | return _resultobj; | |
9823 | } | |
9824 | ||
9825 | #define wxDirItemData_m_isHidden_get(_swigobj) ((bool ) _swigobj->m_isHidden) | |
9826 | static PyObject *_wrap_wxDirItemData_m_isHidden_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9827 | PyObject * _resultobj; | |
9828 | bool _result; | |
9829 | wxDirItemData * _arg0; | |
9830 | PyObject * _argo0 = 0; | |
9831 | char *_kwnames[] = { "self", NULL }; | |
9832 | ||
9833 | self = self; | |
9834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isHidden_get",_kwnames,&_argo0)) | |
9835 | return NULL; | |
9836 | if (_argo0) { | |
9837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_get. Expected _wxDirItemData_p."); | |
9840 | return NULL; | |
9841 | } | |
9842 | } | |
9843 | { | |
9844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9845 | _result = (bool )wxDirItemData_m_isHidden_get(_arg0); |
db34b2d4 RD |
9846 | |
9847 | wxPyEndAllowThreads(__tstate); | |
9848 | if (PyErr_Occurred()) return NULL; | |
9849 | } _resultobj = Py_BuildValue("i",_result); | |
9850 | return _resultobj; | |
9851 | } | |
9852 | ||
9853 | #define wxDirItemData_m_isExpanded_set(_swigobj,_swigval) (_swigobj->m_isExpanded = _swigval,_swigval) | |
9854 | static PyObject *_wrap_wxDirItemData_m_isExpanded_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9855 | PyObject * _resultobj; | |
9856 | bool _result; | |
9857 | wxDirItemData * _arg0; | |
9858 | bool _arg1; | |
9859 | PyObject * _argo0 = 0; | |
9860 | int tempbool1; | |
9861 | char *_kwnames[] = { "self","m_isExpanded", NULL }; | |
9862 | ||
9863 | self = self; | |
9864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isExpanded_set",_kwnames,&_argo0,&tempbool1)) | |
9865 | return NULL; | |
9866 | if (_argo0) { | |
9867 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9868 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_set. Expected _wxDirItemData_p."); | |
9870 | return NULL; | |
9871 | } | |
9872 | } | |
9873 | _arg1 = (bool ) tempbool1; | |
9874 | { | |
9875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9876 | _result = (bool )wxDirItemData_m_isExpanded_set(_arg0,_arg1); |
db34b2d4 RD |
9877 | |
9878 | wxPyEndAllowThreads(__tstate); | |
9879 | if (PyErr_Occurred()) return NULL; | |
9880 | } _resultobj = Py_BuildValue("i",_result); | |
9881 | return _resultobj; | |
9882 | } | |
9883 | ||
9884 | #define wxDirItemData_m_isExpanded_get(_swigobj) ((bool ) _swigobj->m_isExpanded) | |
9885 | static PyObject *_wrap_wxDirItemData_m_isExpanded_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9886 | PyObject * _resultobj; | |
9887 | bool _result; | |
9888 | wxDirItemData * _arg0; | |
9889 | PyObject * _argo0 = 0; | |
9890 | char *_kwnames[] = { "self", NULL }; | |
9891 | ||
9892 | self = self; | |
9893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isExpanded_get",_kwnames,&_argo0)) | |
9894 | return NULL; | |
9895 | if (_argo0) { | |
9896 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9897 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9898 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_get. Expected _wxDirItemData_p."); | |
9899 | return NULL; | |
9900 | } | |
9901 | } | |
9902 | { | |
9903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9904 | _result = (bool )wxDirItemData_m_isExpanded_get(_arg0); |
db34b2d4 RD |
9905 | |
9906 | wxPyEndAllowThreads(__tstate); | |
9907 | if (PyErr_Occurred()) return NULL; | |
9908 | } _resultobj = Py_BuildValue("i",_result); | |
9909 | return _resultobj; | |
9910 | } | |
9911 | ||
9912 | #define wxDirItemData_m_isDir_set(_swigobj,_swigval) (_swigobj->m_isDir = _swigval,_swigval) | |
9913 | static PyObject *_wrap_wxDirItemData_m_isDir_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9914 | PyObject * _resultobj; | |
9915 | bool _result; | |
9916 | wxDirItemData * _arg0; | |
9917 | bool _arg1; | |
9918 | PyObject * _argo0 = 0; | |
9919 | int tempbool1; | |
9920 | char *_kwnames[] = { "self","m_isDir", NULL }; | |
9921 | ||
9922 | self = self; | |
9923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isDir_set",_kwnames,&_argo0,&tempbool1)) | |
9924 | return NULL; | |
9925 | if (_argo0) { | |
9926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_set. Expected _wxDirItemData_p."); | |
9929 | return NULL; | |
9930 | } | |
9931 | } | |
9932 | _arg1 = (bool ) tempbool1; | |
9933 | { | |
9934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9935 | _result = (bool )wxDirItemData_m_isDir_set(_arg0,_arg1); |
db34b2d4 RD |
9936 | |
9937 | wxPyEndAllowThreads(__tstate); | |
9938 | if (PyErr_Occurred()) return NULL; | |
9939 | } _resultobj = Py_BuildValue("i",_result); | |
9940 | return _resultobj; | |
9941 | } | |
9942 | ||
9943 | #define wxDirItemData_m_isDir_get(_swigobj) ((bool ) _swigobj->m_isDir) | |
9944 | static PyObject *_wrap_wxDirItemData_m_isDir_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9945 | PyObject * _resultobj; | |
9946 | bool _result; | |
9947 | wxDirItemData * _arg0; | |
9948 | PyObject * _argo0 = 0; | |
9949 | char *_kwnames[] = { "self", NULL }; | |
9950 | ||
9951 | self = self; | |
9952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isDir_get",_kwnames,&_argo0)) | |
9953 | return NULL; | |
9954 | if (_argo0) { | |
9955 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9956 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_get. Expected _wxDirItemData_p."); | |
9958 | return NULL; | |
9959 | } | |
9960 | } | |
9961 | { | |
9962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9963 | _result = (bool )wxDirItemData_m_isDir_get(_arg0); |
db34b2d4 RD |
9964 | |
9965 | wxPyEndAllowThreads(__tstate); | |
9966 | if (PyErr_Occurred()) return NULL; | |
9967 | } _resultobj = Py_BuildValue("i",_result); | |
9968 | return _resultobj; | |
9969 | } | |
9970 | ||
9971 | static void *SwigwxGenericDirCtrlTowxControl(void *ptr) { | |
9972 | wxGenericDirCtrl *src; | |
9973 | wxControl *dest; | |
9974 | src = (wxGenericDirCtrl *) ptr; | |
9975 | dest = (wxControl *) src; | |
9976 | return (void *) dest; | |
9977 | } | |
9978 | ||
9979 | static void *SwigwxGenericDirCtrlTowxWindow(void *ptr) { | |
9980 | wxGenericDirCtrl *src; | |
9981 | wxWindow *dest; | |
9982 | src = (wxGenericDirCtrl *) ptr; | |
9983 | dest = (wxWindow *) src; | |
9984 | return (void *) dest; | |
9985 | } | |
9986 | ||
9987 | static void *SwigwxGenericDirCtrlTowxEvtHandler(void *ptr) { | |
9988 | wxGenericDirCtrl *src; | |
9989 | wxEvtHandler *dest; | |
9990 | src = (wxGenericDirCtrl *) ptr; | |
9991 | dest = (wxEvtHandler *) src; | |
9992 | return (void *) dest; | |
9993 | } | |
9994 | ||
9995 | static void *SwigwxGenericDirCtrlTowxObject(void *ptr) { | |
9996 | wxGenericDirCtrl *src; | |
9997 | wxObject *dest; | |
9998 | src = (wxGenericDirCtrl *) ptr; | |
9999 | dest = (wxObject *) src; | |
10000 | return (void *) dest; | |
10001 | } | |
10002 | ||
10003 | #define new_wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
10004 | static PyObject *_wrap_new_wxGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10005 | PyObject * _resultobj; | |
10006 | wxGenericDirCtrl * _result; | |
10007 | wxWindow * _arg0; | |
10008 | wxWindowID _arg1 = (wxWindowID ) -1; | |
9a74fcaf | 10009 | wxString * _arg2 = (wxString *) &wxPyDirDialogDefaultFolderStr; |
db34b2d4 RD |
10010 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
10011 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
10012 | long _arg5 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
9a74fcaf | 10013 | wxString * _arg6 = (wxString *) &wxPyEmptyString; |
db34b2d4 | 10014 | int _arg7 = (int ) 0; |
9a74fcaf | 10015 | wxString * _arg8 = (wxString *) &wxPy_TreeCtrlNameStr; |
db34b2d4 | 10016 | PyObject * _argo0 = 0; |
9a74fcaf | 10017 | PyObject * _obj2 = 0; |
db34b2d4 RD |
10018 | wxPoint temp; |
10019 | PyObject * _obj3 = 0; | |
10020 | wxSize temp0; | |
10021 | PyObject * _obj4 = 0; | |
9a74fcaf RD |
10022 | PyObject * _obj6 = 0; |
10023 | PyObject * _obj8 = 0; | |
db34b2d4 RD |
10024 | char *_kwnames[] = { "parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; |
10025 | char _ptemp[128]; | |
10026 | ||
10027 | self = self; | |
9a74fcaf | 10028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOOlOiO:new_wxGenericDirCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6,&_arg7,&_obj8)) |
db34b2d4 RD |
10029 | return NULL; |
10030 | if (_argo0) { | |
10031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGenericDirCtrl. Expected _wxWindow_p."); | |
10034 | return NULL; | |
10035 | } | |
10036 | } | |
9a74fcaf RD |
10037 | if (_obj2) |
10038 | { | |
10039 | _arg2 = wxString_in_helper(_obj2); | |
10040 | if (_arg2 == NULL) | |
10041 | return NULL; | |
10042 | } | |
db34b2d4 RD |
10043 | if (_obj3) |
10044 | { | |
10045 | _arg3 = &temp; | |
10046 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10047 | return NULL; | |
10048 | } | |
10049 | if (_obj4) | |
10050 | { | |
10051 | _arg4 = &temp0; | |
10052 | if (! wxSize_helper(_obj4, &_arg4)) | |
10053 | return NULL; | |
9a74fcaf RD |
10054 | } |
10055 | if (_obj6) | |
10056 | { | |
10057 | _arg6 = wxString_in_helper(_obj6); | |
10058 | if (_arg6 == NULL) | |
10059 | return NULL; | |
10060 | } | |
10061 | if (_obj8) | |
10062 | { | |
10063 | _arg8 = wxString_in_helper(_obj8); | |
10064 | if (_arg8 == NULL) | |
10065 | return NULL; | |
db34b2d4 RD |
10066 | } |
10067 | { | |
10068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9a74fcaf | 10069 | _result = (wxGenericDirCtrl *)new_wxGenericDirCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7,*_arg8); |
db34b2d4 RD |
10070 | |
10071 | wxPyEndAllowThreads(__tstate); | |
10072 | if (PyErr_Occurred()) return NULL; | |
10073 | } if (_result) { | |
10074 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
10075 | _resultobj = Py_BuildValue("s",_ptemp); | |
10076 | } else { | |
10077 | Py_INCREF(Py_None); | |
10078 | _resultobj = Py_None; | |
10079 | } | |
9a74fcaf RD |
10080 | { |
10081 | if (_obj2) | |
10082 | delete _arg2; | |
10083 | } | |
10084 | { | |
10085 | if (_obj6) | |
10086 | delete _arg6; | |
10087 | } | |
10088 | { | |
10089 | if (_obj8) | |
10090 | delete _arg8; | |
10091 | } | |
db34b2d4 RD |
10092 | return _resultobj; |
10093 | } | |
10094 | ||
10095 | #define new_wxPreGenericDirCtrl() (new wxGenericDirCtrl()) | |
10096 | static PyObject *_wrap_new_wxPreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10097 | PyObject * _resultobj; | |
10098 | wxGenericDirCtrl * _result; | |
10099 | char *_kwnames[] = { NULL }; | |
10100 | char _ptemp[128]; | |
10101 | ||
10102 | self = self; | |
10103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGenericDirCtrl",_kwnames)) | |
10104 | return NULL; | |
10105 | { | |
10106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10107 | _result = (wxGenericDirCtrl *)new_wxPreGenericDirCtrl(); |
db34b2d4 RD |
10108 | |
10109 | wxPyEndAllowThreads(__tstate); | |
10110 | if (PyErr_Occurred()) return NULL; | |
10111 | } if (_result) { | |
10112 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
10113 | _resultobj = Py_BuildValue("s",_ptemp); | |
10114 | } else { | |
10115 | Py_INCREF(Py_None); | |
10116 | _resultobj = Py_None; | |
10117 | } | |
10118 | return _resultobj; | |
10119 | } | |
10120 | ||
10121 | #define wxGenericDirCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
10122 | static PyObject *_wrap_wxGenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10123 | PyObject * _resultobj; | |
10124 | bool _result; | |
10125 | wxGenericDirCtrl * _arg0; | |
10126 | wxWindow * _arg1; | |
10127 | wxWindowID _arg2 = (wxWindowID ) -1; | |
9a74fcaf | 10128 | wxString * _arg3 = (wxString *) &wxPyDirDialogDefaultFolderStr; |
db34b2d4 RD |
10129 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
10130 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
10131 | long _arg6 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
9a74fcaf | 10132 | wxString * _arg7 = (wxString *) &wxPyEmptyString; |
db34b2d4 | 10133 | int _arg8 = (int ) 0; |
9a74fcaf | 10134 | wxString * _arg9 = (wxString *) &wxPy_TreeCtrlNameStr; |
db34b2d4 RD |
10135 | PyObject * _argo0 = 0; |
10136 | PyObject * _argo1 = 0; | |
9a74fcaf | 10137 | PyObject * _obj3 = 0; |
db34b2d4 RD |
10138 | wxPoint temp; |
10139 | PyObject * _obj4 = 0; | |
10140 | wxSize temp0; | |
10141 | PyObject * _obj5 = 0; | |
9a74fcaf RD |
10142 | PyObject * _obj7 = 0; |
10143 | PyObject * _obj9 = 0; | |
db34b2d4 RD |
10144 | char *_kwnames[] = { "self","parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; |
10145 | ||
10146 | self = self; | |
9a74fcaf | 10147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOOlOiO:wxGenericDirCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_obj7,&_arg8,&_obj9)) |
db34b2d4 RD |
10148 | return NULL; |
10149 | if (_argo0) { | |
10150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
10153 | return NULL; | |
10154 | } | |
10155 | } | |
10156 | if (_argo1) { | |
10157 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10158 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
10159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGenericDirCtrl_Create. Expected _wxWindow_p."); | |
10160 | return NULL; | |
10161 | } | |
10162 | } | |
9a74fcaf RD |
10163 | if (_obj3) |
10164 | { | |
10165 | _arg3 = wxString_in_helper(_obj3); | |
10166 | if (_arg3 == NULL) | |
10167 | return NULL; | |
10168 | } | |
db34b2d4 RD |
10169 | if (_obj4) |
10170 | { | |
10171 | _arg4 = &temp; | |
10172 | if (! wxPoint_helper(_obj4, &_arg4)) | |
10173 | return NULL; | |
10174 | } | |
10175 | if (_obj5) | |
10176 | { | |
10177 | _arg5 = &temp0; | |
10178 | if (! wxSize_helper(_obj5, &_arg5)) | |
10179 | return NULL; | |
9a74fcaf RD |
10180 | } |
10181 | if (_obj7) | |
10182 | { | |
10183 | _arg7 = wxString_in_helper(_obj7); | |
10184 | if (_arg7 == NULL) | |
10185 | return NULL; | |
10186 | } | |
10187 | if (_obj9) | |
10188 | { | |
10189 | _arg9 = wxString_in_helper(_obj9); | |
10190 | if (_arg9 == NULL) | |
10191 | return NULL; | |
db34b2d4 RD |
10192 | } |
10193 | { | |
10194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9a74fcaf | 10195 | _result = (bool )wxGenericDirCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8,*_arg9); |
db34b2d4 RD |
10196 | |
10197 | wxPyEndAllowThreads(__tstate); | |
10198 | if (PyErr_Occurred()) return NULL; | |
10199 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
10200 | { |
10201 | if (_obj3) | |
10202 | delete _arg3; | |
10203 | } | |
10204 | { | |
10205 | if (_obj7) | |
10206 | delete _arg7; | |
10207 | } | |
10208 | { | |
10209 | if (_obj9) | |
10210 | delete _arg9; | |
10211 | } | |
db34b2d4 RD |
10212 | return _resultobj; |
10213 | } | |
10214 | ||
10215 | #define wxGenericDirCtrl_ExpandPath(_swigobj,_swigarg0) (_swigobj->ExpandPath(_swigarg0)) | |
10216 | static PyObject *_wrap_wxGenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10217 | PyObject * _resultobj; | |
10218 | bool _result; | |
10219 | wxGenericDirCtrl * _arg0; | |
10220 | wxString * _arg1; | |
10221 | PyObject * _argo0 = 0; | |
10222 | PyObject * _obj1 = 0; | |
10223 | char *_kwnames[] = { "self","path", NULL }; | |
10224 | ||
10225 | self = self; | |
10226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_ExpandPath",_kwnames,&_argo0,&_obj1)) | |
10227 | return NULL; | |
10228 | if (_argo0) { | |
10229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ExpandPath. Expected _wxGenericDirCtrl_p."); | |
10232 | return NULL; | |
10233 | } | |
10234 | } | |
10235 | { | |
c8bc7bb8 RD |
10236 | _arg1 = wxString_in_helper(_obj1); |
10237 | if (_arg1 == NULL) | |
db34b2d4 | 10238 | return NULL; |
db34b2d4 RD |
10239 | } |
10240 | { | |
10241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10242 | _result = (bool )wxGenericDirCtrl_ExpandPath(_arg0,*_arg1); |
db34b2d4 RD |
10243 | |
10244 | wxPyEndAllowThreads(__tstate); | |
10245 | if (PyErr_Occurred()) return NULL; | |
10246 | } _resultobj = Py_BuildValue("i",_result); | |
10247 | { | |
10248 | if (_obj1) | |
10249 | delete _arg1; | |
10250 | } | |
10251 | return _resultobj; | |
10252 | } | |
10253 | ||
10254 | #define wxGenericDirCtrl_GetDefaultPath(_swigobj) (_swigobj->GetDefaultPath()) | |
10255 | static PyObject *_wrap_wxGenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10256 | PyObject * _resultobj; | |
10257 | wxString * _result; | |
10258 | wxGenericDirCtrl * _arg0; | |
10259 | PyObject * _argo0 = 0; | |
10260 | char *_kwnames[] = { "self", NULL }; | |
10261 | ||
10262 | self = self; | |
10263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetDefaultPath",_kwnames,&_argo0)) | |
10264 | return NULL; | |
10265 | if (_argo0) { | |
10266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
10269 | return NULL; | |
10270 | } | |
10271 | } | |
10272 | { | |
10273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10274 | _result = new wxString (wxGenericDirCtrl_GetDefaultPath(_arg0)); |
db34b2d4 RD |
10275 | |
10276 | wxPyEndAllowThreads(__tstate); | |
10277 | if (PyErr_Occurred()) return NULL; | |
10278 | }{ | |
c8bc7bb8 | 10279 | #if wxUSE_UNICODE |
b67a9327 | 10280 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10281 | #else |
db34b2d4 | 10282 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10283 | #endif |
db34b2d4 RD |
10284 | } |
10285 | { | |
10286 | delete _result; | |
10287 | } | |
10288 | return _resultobj; | |
10289 | } | |
10290 | ||
10291 | #define wxGenericDirCtrl_SetDefaultPath(_swigobj,_swigarg0) (_swigobj->SetDefaultPath(_swigarg0)) | |
10292 | static PyObject *_wrap_wxGenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10293 | PyObject * _resultobj; | |
10294 | wxGenericDirCtrl * _arg0; | |
10295 | wxString * _arg1; | |
10296 | PyObject * _argo0 = 0; | |
10297 | PyObject * _obj1 = 0; | |
10298 | char *_kwnames[] = { "self","path", NULL }; | |
10299 | ||
10300 | self = self; | |
10301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetDefaultPath",_kwnames,&_argo0,&_obj1)) | |
10302 | return NULL; | |
10303 | if (_argo0) { | |
10304 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
10307 | return NULL; | |
10308 | } | |
10309 | } | |
10310 | { | |
c8bc7bb8 RD |
10311 | _arg1 = wxString_in_helper(_obj1); |
10312 | if (_arg1 == NULL) | |
db34b2d4 | 10313 | return NULL; |
db34b2d4 RD |
10314 | } |
10315 | { | |
10316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10317 | wxGenericDirCtrl_SetDefaultPath(_arg0,*_arg1); |
db34b2d4 RD |
10318 | |
10319 | wxPyEndAllowThreads(__tstate); | |
10320 | if (PyErr_Occurred()) return NULL; | |
10321 | } Py_INCREF(Py_None); | |
10322 | _resultobj = Py_None; | |
10323 | { | |
10324 | if (_obj1) | |
10325 | delete _arg1; | |
10326 | } | |
10327 | return _resultobj; | |
10328 | } | |
10329 | ||
10330 | #define wxGenericDirCtrl_GetPath(_swigobj) (_swigobj->GetPath()) | |
10331 | static PyObject *_wrap_wxGenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10332 | PyObject * _resultobj; | |
10333 | wxString * _result; | |
10334 | wxGenericDirCtrl * _arg0; | |
10335 | PyObject * _argo0 = 0; | |
10336 | char *_kwnames[] = { "self", NULL }; | |
10337 | ||
10338 | self = self; | |
10339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetPath",_kwnames,&_argo0)) | |
10340 | return NULL; | |
10341 | if (_argo0) { | |
10342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetPath. Expected _wxGenericDirCtrl_p."); | |
10345 | return NULL; | |
10346 | } | |
10347 | } | |
10348 | { | |
10349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10350 | _result = new wxString (wxGenericDirCtrl_GetPath(_arg0)); |
db34b2d4 RD |
10351 | |
10352 | wxPyEndAllowThreads(__tstate); | |
10353 | if (PyErr_Occurred()) return NULL; | |
10354 | }{ | |
c8bc7bb8 | 10355 | #if wxUSE_UNICODE |
b67a9327 | 10356 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10357 | #else |
db34b2d4 | 10358 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10359 | #endif |
db34b2d4 RD |
10360 | } |
10361 | { | |
10362 | delete _result; | |
10363 | } | |
10364 | return _resultobj; | |
10365 | } | |
10366 | ||
10367 | #define wxGenericDirCtrl_GetFilePath(_swigobj) (_swigobj->GetFilePath()) | |
10368 | static PyObject *_wrap_wxGenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10369 | PyObject * _resultobj; | |
10370 | wxString * _result; | |
10371 | wxGenericDirCtrl * _arg0; | |
10372 | PyObject * _argo0 = 0; | |
10373 | char *_kwnames[] = { "self", NULL }; | |
10374 | ||
10375 | self = self; | |
10376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilePath",_kwnames,&_argo0)) | |
10377 | return NULL; | |
10378 | if (_argo0) { | |
10379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilePath. Expected _wxGenericDirCtrl_p."); | |
10382 | return NULL; | |
10383 | } | |
10384 | } | |
10385 | { | |
10386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10387 | _result = new wxString (wxGenericDirCtrl_GetFilePath(_arg0)); |
db34b2d4 RD |
10388 | |
10389 | wxPyEndAllowThreads(__tstate); | |
10390 | if (PyErr_Occurred()) return NULL; | |
10391 | }{ | |
c8bc7bb8 | 10392 | #if wxUSE_UNICODE |
b67a9327 | 10393 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10394 | #else |
db34b2d4 | 10395 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10396 | #endif |
db34b2d4 RD |
10397 | } |
10398 | { | |
10399 | delete _result; | |
10400 | } | |
10401 | return _resultobj; | |
10402 | } | |
10403 | ||
10404 | #define wxGenericDirCtrl_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0)) | |
10405 | static PyObject *_wrap_wxGenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10406 | PyObject * _resultobj; | |
10407 | wxGenericDirCtrl * _arg0; | |
10408 | wxString * _arg1; | |
10409 | PyObject * _argo0 = 0; | |
10410 | PyObject * _obj1 = 0; | |
10411 | char *_kwnames[] = { "self","path", NULL }; | |
10412 | ||
10413 | self = self; | |
10414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetPath",_kwnames,&_argo0,&_obj1)) | |
10415 | return NULL; | |
10416 | if (_argo0) { | |
10417 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10418 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetPath. Expected _wxGenericDirCtrl_p."); | |
10420 | return NULL; | |
10421 | } | |
10422 | } | |
10423 | { | |
c8bc7bb8 RD |
10424 | _arg1 = wxString_in_helper(_obj1); |
10425 | if (_arg1 == NULL) | |
db34b2d4 | 10426 | return NULL; |
db34b2d4 RD |
10427 | } |
10428 | { | |
10429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10430 | wxGenericDirCtrl_SetPath(_arg0,*_arg1); |
db34b2d4 RD |
10431 | |
10432 | wxPyEndAllowThreads(__tstate); | |
10433 | if (PyErr_Occurred()) return NULL; | |
10434 | } Py_INCREF(Py_None); | |
10435 | _resultobj = Py_None; | |
10436 | { | |
10437 | if (_obj1) | |
10438 | delete _arg1; | |
10439 | } | |
10440 | return _resultobj; | |
10441 | } | |
10442 | ||
10443 | #define wxGenericDirCtrl_ShowHidden(_swigobj,_swigarg0) (_swigobj->ShowHidden(_swigarg0)) | |
10444 | static PyObject *_wrap_wxGenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10445 | PyObject * _resultobj; | |
10446 | wxGenericDirCtrl * _arg0; | |
10447 | bool _arg1; | |
10448 | PyObject * _argo0 = 0; | |
10449 | int tempbool1; | |
10450 | char *_kwnames[] = { "self","show", NULL }; | |
10451 | ||
10452 | self = self; | |
10453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_ShowHidden",_kwnames,&_argo0,&tempbool1)) | |
10454 | return NULL; | |
10455 | if (_argo0) { | |
10456 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10457 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ShowHidden. Expected _wxGenericDirCtrl_p."); | |
10459 | return NULL; | |
10460 | } | |
10461 | } | |
10462 | _arg1 = (bool ) tempbool1; | |
10463 | { | |
10464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10465 | wxGenericDirCtrl_ShowHidden(_arg0,_arg1); |
db34b2d4 RD |
10466 | |
10467 | wxPyEndAllowThreads(__tstate); | |
10468 | if (PyErr_Occurred()) return NULL; | |
10469 | } Py_INCREF(Py_None); | |
10470 | _resultobj = Py_None; | |
10471 | return _resultobj; | |
10472 | } | |
10473 | ||
10474 | #define wxGenericDirCtrl_GetShowHidden(_swigobj) (_swigobj->GetShowHidden()) | |
10475 | static PyObject *_wrap_wxGenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10476 | PyObject * _resultobj; | |
10477 | bool _result; | |
10478 | wxGenericDirCtrl * _arg0; | |
10479 | PyObject * _argo0 = 0; | |
10480 | char *_kwnames[] = { "self", NULL }; | |
10481 | ||
10482 | self = self; | |
10483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetShowHidden",_kwnames,&_argo0)) | |
10484 | return NULL; | |
10485 | if (_argo0) { | |
10486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetShowHidden. Expected _wxGenericDirCtrl_p."); | |
10489 | return NULL; | |
10490 | } | |
10491 | } | |
10492 | { | |
10493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10494 | _result = (bool )wxGenericDirCtrl_GetShowHidden(_arg0); |
db34b2d4 RD |
10495 | |
10496 | wxPyEndAllowThreads(__tstate); | |
10497 | if (PyErr_Occurred()) return NULL; | |
10498 | } _resultobj = Py_BuildValue("i",_result); | |
10499 | return _resultobj; | |
10500 | } | |
10501 | ||
10502 | #define wxGenericDirCtrl_GetFilter(_swigobj) (_swigobj->GetFilter()) | |
10503 | static PyObject *_wrap_wxGenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10504 | PyObject * _resultobj; | |
10505 | wxString * _result; | |
10506 | wxGenericDirCtrl * _arg0; | |
10507 | PyObject * _argo0 = 0; | |
10508 | char *_kwnames[] = { "self", NULL }; | |
10509 | ||
10510 | self = self; | |
10511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilter",_kwnames,&_argo0)) | |
10512 | return NULL; | |
10513 | if (_argo0) { | |
10514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilter. Expected _wxGenericDirCtrl_p."); | |
10517 | return NULL; | |
10518 | } | |
10519 | } | |
10520 | { | |
10521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10522 | _result = new wxString (wxGenericDirCtrl_GetFilter(_arg0)); |
db34b2d4 RD |
10523 | |
10524 | wxPyEndAllowThreads(__tstate); | |
10525 | if (PyErr_Occurred()) return NULL; | |
10526 | }{ | |
c8bc7bb8 | 10527 | #if wxUSE_UNICODE |
b67a9327 | 10528 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10529 | #else |
db34b2d4 | 10530 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10531 | #endif |
db34b2d4 RD |
10532 | } |
10533 | { | |
10534 | delete _result; | |
10535 | } | |
10536 | return _resultobj; | |
10537 | } | |
10538 | ||
10539 | #define wxGenericDirCtrl_SetFilter(_swigobj,_swigarg0) (_swigobj->SetFilter(_swigarg0)) | |
10540 | static PyObject *_wrap_wxGenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10541 | PyObject * _resultobj; | |
10542 | wxGenericDirCtrl * _arg0; | |
10543 | wxString * _arg1; | |
10544 | PyObject * _argo0 = 0; | |
10545 | PyObject * _obj1 = 0; | |
10546 | char *_kwnames[] = { "self","filter", NULL }; | |
10547 | ||
10548 | self = self; | |
10549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetFilter",_kwnames,&_argo0,&_obj1)) | |
10550 | return NULL; | |
10551 | if (_argo0) { | |
10552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilter. Expected _wxGenericDirCtrl_p."); | |
10555 | return NULL; | |
10556 | } | |
10557 | } | |
10558 | { | |
c8bc7bb8 RD |
10559 | _arg1 = wxString_in_helper(_obj1); |
10560 | if (_arg1 == NULL) | |
db34b2d4 | 10561 | return NULL; |
db34b2d4 RD |
10562 | } |
10563 | { | |
10564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10565 | wxGenericDirCtrl_SetFilter(_arg0,*_arg1); |
db34b2d4 RD |
10566 | |
10567 | wxPyEndAllowThreads(__tstate); | |
10568 | if (PyErr_Occurred()) return NULL; | |
10569 | } Py_INCREF(Py_None); | |
10570 | _resultobj = Py_None; | |
10571 | { | |
10572 | if (_obj1) | |
10573 | delete _arg1; | |
10574 | } | |
10575 | return _resultobj; | |
10576 | } | |
10577 | ||
10578 | #define wxGenericDirCtrl_GetFilterIndex(_swigobj) (_swigobj->GetFilterIndex()) | |
10579 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10580 | PyObject * _resultobj; | |
10581 | int _result; | |
10582 | wxGenericDirCtrl * _arg0; | |
10583 | PyObject * _argo0 = 0; | |
10584 | char *_kwnames[] = { "self", NULL }; | |
10585 | ||
10586 | self = self; | |
10587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterIndex",_kwnames,&_argo0)) | |
10588 | return NULL; | |
10589 | if (_argo0) { | |
10590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10593 | return NULL; | |
10594 | } | |
10595 | } | |
10596 | { | |
10597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10598 | _result = (int )wxGenericDirCtrl_GetFilterIndex(_arg0); |
db34b2d4 RD |
10599 | |
10600 | wxPyEndAllowThreads(__tstate); | |
10601 | if (PyErr_Occurred()) return NULL; | |
10602 | } _resultobj = Py_BuildValue("i",_result); | |
10603 | return _resultobj; | |
10604 | } | |
10605 | ||
10606 | #define wxGenericDirCtrl_SetFilterIndex(_swigobj,_swigarg0) (_swigobj->SetFilterIndex(_swigarg0)) | |
10607 | static PyObject *_wrap_wxGenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10608 | PyObject * _resultobj; | |
10609 | wxGenericDirCtrl * _arg0; | |
10610 | int _arg1; | |
10611 | PyObject * _argo0 = 0; | |
10612 | char *_kwnames[] = { "self","n", NULL }; | |
10613 | ||
10614 | self = self; | |
10615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_SetFilterIndex",_kwnames,&_argo0,&_arg1)) | |
10616 | return NULL; | |
10617 | if (_argo0) { | |
10618 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10619 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10621 | return NULL; | |
10622 | } | |
10623 | } | |
10624 | { | |
10625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10626 | wxGenericDirCtrl_SetFilterIndex(_arg0,_arg1); |
db34b2d4 RD |
10627 | |
10628 | wxPyEndAllowThreads(__tstate); | |
10629 | if (PyErr_Occurred()) return NULL; | |
10630 | } Py_INCREF(Py_None); | |
10631 | _resultobj = Py_None; | |
10632 | return _resultobj; | |
10633 | } | |
10634 | ||
10635 | #define wxGenericDirCtrl_GetRootId(_swigobj) (_swigobj->GetRootId()) | |
10636 | static PyObject *_wrap_wxGenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10637 | PyObject * _resultobj; | |
10638 | wxTreeItemId * _result; | |
10639 | wxGenericDirCtrl * _arg0; | |
10640 | PyObject * _argo0 = 0; | |
10641 | char *_kwnames[] = { "self", NULL }; | |
10642 | char _ptemp[128]; | |
10643 | ||
10644 | self = self; | |
10645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetRootId",_kwnames,&_argo0)) | |
10646 | return NULL; | |
10647 | if (_argo0) { | |
10648 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10649 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10650 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetRootId. Expected _wxGenericDirCtrl_p."); | |
10651 | return NULL; | |
10652 | } | |
10653 | } | |
10654 | { | |
10655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10656 | _result = new wxTreeItemId (wxGenericDirCtrl_GetRootId(_arg0)); |
db34b2d4 RD |
10657 | |
10658 | wxPyEndAllowThreads(__tstate); | |
10659 | if (PyErr_Occurred()) return NULL; | |
10660 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
10661 | _resultobj = Py_BuildValue("s",_ptemp); | |
10662 | return _resultobj; | |
10663 | } | |
10664 | ||
10665 | #define wxGenericDirCtrl_GetTreeCtrl(_swigobj) (_swigobj->GetTreeCtrl()) | |
10666 | static PyObject *_wrap_wxGenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10667 | PyObject * _resultobj; | |
10668 | wxTreeCtrl * _result; | |
10669 | wxGenericDirCtrl * _arg0; | |
10670 | PyObject * _argo0 = 0; | |
10671 | char *_kwnames[] = { "self", NULL }; | |
db34b2d4 RD |
10672 | |
10673 | self = self; | |
10674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetTreeCtrl",_kwnames,&_argo0)) | |
10675 | return NULL; | |
10676 | if (_argo0) { | |
10677 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10678 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetTreeCtrl. Expected _wxGenericDirCtrl_p."); | |
10680 | return NULL; | |
10681 | } | |
10682 | } | |
10683 | { | |
10684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10685 | _result = (wxTreeCtrl *)wxGenericDirCtrl_GetTreeCtrl(_arg0); |
db34b2d4 RD |
10686 | |
10687 | wxPyEndAllowThreads(__tstate); | |
10688 | if (PyErr_Occurred()) return NULL; | |
eb88b742 | 10689 | }{ _resultobj = wxPyMake_wxObject(_result); } |
db34b2d4 RD |
10690 | return _resultobj; |
10691 | } | |
10692 | ||
10693 | #define wxGenericDirCtrl_GetFilterListCtrl(_swigobj) (_swigobj->GetFilterListCtrl()) | |
10694 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10695 | PyObject * _resultobj; | |
10696 | wxDirFilterListCtrl * _result; | |
10697 | wxGenericDirCtrl * _arg0; | |
10698 | PyObject * _argo0 = 0; | |
10699 | char *_kwnames[] = { "self", NULL }; | |
10700 | char _ptemp[128]; | |
10701 | ||
10702 | self = self; | |
10703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterListCtrl",_kwnames,&_argo0)) | |
10704 | return NULL; | |
10705 | if (_argo0) { | |
10706 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10707 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10709 | return NULL; | |
10710 | } | |
10711 | } | |
10712 | { | |
10713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10714 | _result = (wxDirFilterListCtrl *)wxGenericDirCtrl_GetFilterListCtrl(_arg0); |
db34b2d4 RD |
10715 | |
10716 | wxPyEndAllowThreads(__tstate); | |
10717 | if (PyErr_Occurred()) return NULL; | |
10718 | } if (_result) { | |
10719 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10720 | _resultobj = Py_BuildValue("s",_ptemp); | |
10721 | } else { | |
10722 | Py_INCREF(Py_None); | |
10723 | _resultobj = Py_None; | |
10724 | } | |
10725 | return _resultobj; | |
10726 | } | |
10727 | ||
1fded56b RD |
10728 | #define wxGenericDirCtrl_ReCreateTree(_swigobj) (_swigobj->ReCreateTree()) |
10729 | static PyObject *_wrap_wxGenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10730 | PyObject * _resultobj; | |
10731 | wxGenericDirCtrl * _arg0; | |
10732 | PyObject * _argo0 = 0; | |
10733 | char *_kwnames[] = { "self", NULL }; | |
10734 | ||
10735 | self = self; | |
10736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_ReCreateTree",_kwnames,&_argo0)) | |
10737 | return NULL; | |
10738 | if (_argo0) { | |
10739 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10740 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ReCreateTree. Expected _wxGenericDirCtrl_p."); | |
10742 | return NULL; | |
10743 | } | |
10744 | } | |
10745 | { | |
10746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10747 | wxGenericDirCtrl_ReCreateTree(_arg0); | |
10748 | ||
10749 | wxPyEndAllowThreads(__tstate); | |
10750 | if (PyErr_Occurred()) return NULL; | |
10751 | } Py_INCREF(Py_None); | |
10752 | _resultobj = Py_None; | |
10753 | return _resultobj; | |
10754 | } | |
10755 | ||
db34b2d4 RD |
10756 | static void *SwigwxDirFilterListCtrlTowxChoice(void *ptr) { |
10757 | wxDirFilterListCtrl *src; | |
10758 | wxChoice *dest; | |
10759 | src = (wxDirFilterListCtrl *) ptr; | |
10760 | dest = (wxChoice *) src; | |
10761 | return (void *) dest; | |
10762 | } | |
10763 | ||
10764 | static void *SwigwxDirFilterListCtrlTowxControlWithItems(void *ptr) { | |
10765 | wxDirFilterListCtrl *src; | |
10766 | wxControlWithItems *dest; | |
10767 | src = (wxDirFilterListCtrl *) ptr; | |
10768 | dest = (wxControlWithItems *) src; | |
10769 | return (void *) dest; | |
10770 | } | |
10771 | ||
10772 | static void *SwigwxDirFilterListCtrlTowxControl(void *ptr) { | |
10773 | wxDirFilterListCtrl *src; | |
10774 | wxControl *dest; | |
10775 | src = (wxDirFilterListCtrl *) ptr; | |
10776 | dest = (wxControl *) src; | |
10777 | return (void *) dest; | |
10778 | } | |
10779 | ||
10780 | static void *SwigwxDirFilterListCtrlTowxWindow(void *ptr) { | |
10781 | wxDirFilterListCtrl *src; | |
10782 | wxWindow *dest; | |
10783 | src = (wxDirFilterListCtrl *) ptr; | |
10784 | dest = (wxWindow *) src; | |
10785 | return (void *) dest; | |
10786 | } | |
10787 | ||
10788 | static void *SwigwxDirFilterListCtrlTowxEvtHandler(void *ptr) { | |
10789 | wxDirFilterListCtrl *src; | |
10790 | wxEvtHandler *dest; | |
10791 | src = (wxDirFilterListCtrl *) ptr; | |
10792 | dest = (wxEvtHandler *) src; | |
10793 | return (void *) dest; | |
10794 | } | |
10795 | ||
10796 | static void *SwigwxDirFilterListCtrlTowxObject(void *ptr) { | |
10797 | wxDirFilterListCtrl *src; | |
10798 | wxObject *dest; | |
10799 | src = (wxDirFilterListCtrl *) ptr; | |
10800 | dest = (wxObject *) src; | |
10801 | return (void *) dest; | |
10802 | } | |
10803 | ||
10804 | #define new_wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10805 | static PyObject *_wrap_new_wxDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10806 | PyObject * _resultobj; | |
10807 | wxDirFilterListCtrl * _result; | |
10808 | wxGenericDirCtrl * _arg0; | |
10809 | wxWindowID _arg1 = (wxWindowID ) -1; | |
10810 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
10811 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
10812 | long _arg4 = (long ) 0; | |
10813 | PyObject * _argo0 = 0; | |
10814 | wxPoint temp; | |
10815 | PyObject * _obj2 = 0; | |
10816 | wxSize temp0; | |
10817 | PyObject * _obj3 = 0; | |
10818 | char *_kwnames[] = { "parent","id","pos","size","style", NULL }; | |
10819 | char _ptemp[128]; | |
10820 | ||
10821 | self = self; | |
10822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxDirFilterListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
10823 | return NULL; | |
10824 | if (_argo0) { | |
10825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDirFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10828 | return NULL; | |
10829 | } | |
10830 | } | |
10831 | if (_obj2) | |
10832 | { | |
10833 | _arg2 = &temp; | |
10834 | if (! wxPoint_helper(_obj2, &_arg2)) | |
10835 | return NULL; | |
10836 | } | |
10837 | if (_obj3) | |
10838 | { | |
10839 | _arg3 = &temp0; | |
10840 | if (! wxSize_helper(_obj3, &_arg3)) | |
10841 | return NULL; | |
10842 | } | |
10843 | { | |
10844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10845 | _result = (wxDirFilterListCtrl *)new_wxDirFilterListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
db34b2d4 RD |
10846 | |
10847 | wxPyEndAllowThreads(__tstate); | |
10848 | if (PyErr_Occurred()) return NULL; | |
10849 | } if (_result) { | |
10850 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10851 | _resultobj = Py_BuildValue("s",_ptemp); | |
10852 | } else { | |
10853 | Py_INCREF(Py_None); | |
10854 | _resultobj = Py_None; | |
10855 | } | |
10856 | return _resultobj; | |
10857 | } | |
10858 | ||
10859 | #define new_wxPreDirFilterListCtrl() (new wxDirFilterListCtrl()) | |
10860 | static PyObject *_wrap_new_wxPreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10861 | PyObject * _resultobj; | |
10862 | wxDirFilterListCtrl * _result; | |
10863 | char *_kwnames[] = { NULL }; | |
10864 | char _ptemp[128]; | |
10865 | ||
10866 | self = self; | |
10867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreDirFilterListCtrl",_kwnames)) | |
10868 | return NULL; | |
10869 | { | |
10870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10871 | _result = (wxDirFilterListCtrl *)new_wxPreDirFilterListCtrl(); |
db34b2d4 RD |
10872 | |
10873 | wxPyEndAllowThreads(__tstate); | |
10874 | if (PyErr_Occurred()) return NULL; | |
10875 | } if (_result) { | |
10876 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10877 | _resultobj = Py_BuildValue("s",_ptemp); | |
10878 | } else { | |
10879 | Py_INCREF(Py_None); | |
10880 | _resultobj = Py_None; | |
10881 | } | |
10882 | return _resultobj; | |
10883 | } | |
10884 | ||
10885 | #define wxDirFilterListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10886 | static PyObject *_wrap_wxDirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10887 | PyObject * _resultobj; | |
10888 | bool _result; | |
10889 | wxDirFilterListCtrl * _arg0; | |
10890 | wxGenericDirCtrl * _arg1; | |
10891 | wxWindowID _arg2 = (wxWindowID ) -1; | |
10892 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
10893 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
10894 | long _arg5 = (long ) 0; | |
10895 | PyObject * _argo0 = 0; | |
10896 | PyObject * _argo1 = 0; | |
10897 | wxPoint temp; | |
10898 | PyObject * _obj3 = 0; | |
10899 | wxSize temp0; | |
10900 | PyObject * _obj4 = 0; | |
10901 | char *_kwnames[] = { "self","parent","id","pos","size","style", NULL }; | |
10902 | ||
10903 | self = self; | |
10904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOl:wxDirFilterListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5)) | |
10905 | return NULL; | |
10906 | if (_argo0) { | |
10907 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10908 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
10909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_Create. Expected _wxDirFilterListCtrl_p."); | |
10910 | return NULL; | |
10911 | } | |
10912 | } | |
10913 | if (_argo1) { | |
10914 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10915 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxGenericDirCtrl_p")) { | |
10916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDirFilterListCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
10917 | return NULL; | |
10918 | } | |
10919 | } | |
10920 | if (_obj3) | |
10921 | { | |
10922 | _arg3 = &temp; | |
10923 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10924 | return NULL; | |
10925 | } | |
10926 | if (_obj4) | |
10927 | { | |
10928 | _arg4 = &temp0; | |
10929 | if (! wxSize_helper(_obj4, &_arg4)) | |
10930 | return NULL; | |
10931 | } | |
10932 | { | |
10933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10934 | _result = (bool )wxDirFilterListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5); |
db34b2d4 RD |
10935 | |
10936 | wxPyEndAllowThreads(__tstate); | |
10937 | if (PyErr_Occurred()) return NULL; | |
10938 | } _resultobj = Py_BuildValue("i",_result); | |
10939 | return _resultobj; | |
10940 | } | |
10941 | ||
10942 | #define wxDirFilterListCtrl_FillFilterList(_swigobj,_swigarg0,_swigarg1) (_swigobj->FillFilterList(_swigarg0,_swigarg1)) | |
10943 | static PyObject *_wrap_wxDirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10944 | PyObject * _resultobj; | |
10945 | wxDirFilterListCtrl * _arg0; | |
10946 | wxString * _arg1; | |
10947 | int _arg2; | |
10948 | PyObject * _argo0 = 0; | |
10949 | PyObject * _obj1 = 0; | |
10950 | char *_kwnames[] = { "self","filter","defaultFilter", NULL }; | |
10951 | ||
10952 | self = self; | |
10953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxDirFilterListCtrl_FillFilterList",_kwnames,&_argo0,&_obj1,&_arg2)) | |
10954 | return NULL; | |
10955 | if (_argo0) { | |
10956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
10958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_FillFilterList. Expected _wxDirFilterListCtrl_p."); | |
10959 | return NULL; | |
10960 | } | |
10961 | } | |
10962 | { | |
c8bc7bb8 RD |
10963 | _arg1 = wxString_in_helper(_obj1); |
10964 | if (_arg1 == NULL) | |
db34b2d4 | 10965 | return NULL; |
db34b2d4 RD |
10966 | } |
10967 | { | |
10968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10969 | wxDirFilterListCtrl_FillFilterList(_arg0,*_arg1,_arg2); |
db34b2d4 RD |
10970 | |
10971 | wxPyEndAllowThreads(__tstate); | |
10972 | if (PyErr_Occurred()) return NULL; | |
10973 | } Py_INCREF(Py_None); | |
10974 | _resultobj = Py_None; | |
10975 | { | |
10976 | if (_obj1) | |
10977 | delete _arg1; | |
10978 | } | |
10979 | return _resultobj; | |
10980 | } | |
10981 | ||
3ef86e32 RD |
10982 | #define new_wxFileIconsTable() (new wxFileIconsTable()) |
10983 | static PyObject *_wrap_new_wxFileIconsTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10984 | PyObject * _resultobj; | |
10985 | wxFileIconsTable * _result; | |
10986 | char *_kwnames[] = { NULL }; | |
10987 | char _ptemp[128]; | |
10988 | ||
10989 | self = self; | |
10990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFileIconsTable",_kwnames)) | |
10991 | return NULL; | |
10992 | { | |
10993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10994 | _result = (wxFileIconsTable *)new_wxFileIconsTable(); | |
10995 | ||
10996 | wxPyEndAllowThreads(__tstate); | |
10997 | if (PyErr_Occurred()) return NULL; | |
10998 | } if (_result) { | |
10999 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileIconsTable_p"); | |
11000 | _resultobj = Py_BuildValue("s",_ptemp); | |
11001 | } else { | |
11002 | Py_INCREF(Py_None); | |
11003 | _resultobj = Py_None; | |
11004 | } | |
11005 | return _resultobj; | |
11006 | } | |
11007 | ||
11008 | #define delete_wxFileIconsTable(_swigobj) (delete _swigobj) | |
11009 | static PyObject *_wrap_delete_wxFileIconsTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11010 | PyObject * _resultobj; | |
11011 | wxFileIconsTable * _arg0; | |
11012 | PyObject * _argo0 = 0; | |
11013 | char *_kwnames[] = { "self", NULL }; | |
11014 | ||
11015 | self = self; | |
11016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileIconsTable",_kwnames,&_argo0)) | |
11017 | return NULL; | |
11018 | if (_argo0) { | |
11019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileIconsTable_p")) { | |
11021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileIconsTable. Expected _wxFileIconsTable_p."); | |
11022 | return NULL; | |
11023 | } | |
11024 | } | |
11025 | { | |
11026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11027 | delete_wxFileIconsTable(_arg0); | |
11028 | ||
11029 | wxPyEndAllowThreads(__tstate); | |
11030 | if (PyErr_Occurred()) return NULL; | |
11031 | } Py_INCREF(Py_None); | |
11032 | _resultobj = Py_None; | |
11033 | return _resultobj; | |
11034 | } | |
11035 | ||
11036 | #define wxFileIconsTable_GetIconID(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetIconID(_swigarg0,_swigarg1)) | |
11037 | static PyObject *_wrap_wxFileIconsTable_GetIconID(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11038 | PyObject * _resultobj; | |
11039 | int _result; | |
11040 | wxFileIconsTable * _arg0; | |
11041 | wxString * _arg1; | |
11042 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
11043 | PyObject * _argo0 = 0; | |
11044 | PyObject * _obj1 = 0; | |
11045 | PyObject * _obj2 = 0; | |
11046 | char *_kwnames[] = { "self","extension","mime", NULL }; | |
11047 | ||
11048 | self = self; | |
11049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileIconsTable_GetIconID",_kwnames,&_argo0,&_obj1,&_obj2)) | |
11050 | return NULL; | |
11051 | if (_argo0) { | |
11052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileIconsTable_p")) { | |
11054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileIconsTable_GetIconID. Expected _wxFileIconsTable_p."); | |
11055 | return NULL; | |
11056 | } | |
11057 | } | |
11058 | { | |
11059 | _arg1 = wxString_in_helper(_obj1); | |
11060 | if (_arg1 == NULL) | |
11061 | return NULL; | |
11062 | } | |
11063 | if (_obj2) | |
11064 | { | |
11065 | _arg2 = wxString_in_helper(_obj2); | |
11066 | if (_arg2 == NULL) | |
11067 | return NULL; | |
11068 | } | |
11069 | { | |
11070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11071 | _result = (int )wxFileIconsTable_GetIconID(_arg0,*_arg1,*_arg2); | |
11072 | ||
11073 | wxPyEndAllowThreads(__tstate); | |
11074 | if (PyErr_Occurred()) return NULL; | |
11075 | } _resultobj = Py_BuildValue("i",_result); | |
11076 | { | |
11077 | if (_obj1) | |
11078 | delete _arg1; | |
11079 | } | |
11080 | { | |
11081 | if (_obj2) | |
11082 | delete _arg2; | |
11083 | } | |
11084 | return _resultobj; | |
11085 | } | |
11086 | ||
11087 | #define wxFileIconsTable_GetSmallImageList(_swigobj) (_swigobj->GetSmallImageList()) | |
11088 | static PyObject *_wrap_wxFileIconsTable_GetSmallImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11089 | PyObject * _resultobj; | |
11090 | wxImageList * _result; | |
11091 | wxFileIconsTable * _arg0; | |
11092 | PyObject * _argo0 = 0; | |
11093 | char *_kwnames[] = { "self", NULL }; | |
11094 | ||
11095 | self = self; | |
11096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileIconsTable_GetSmallImageList",_kwnames,&_argo0)) | |
11097 | return NULL; | |
11098 | if (_argo0) { | |
11099 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11100 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileIconsTable_p")) { | |
11101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileIconsTable_GetSmallImageList. Expected _wxFileIconsTable_p."); | |
11102 | return NULL; | |
11103 | } | |
11104 | } | |
11105 | { | |
11106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11107 | _result = (wxImageList *)wxFileIconsTable_GetSmallImageList(_arg0); | |
11108 | ||
11109 | wxPyEndAllowThreads(__tstate); | |
11110 | if (PyErr_Occurred()) return NULL; | |
11111 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
11112 | return _resultobj; | |
11113 | } | |
11114 | ||
8ab979d7 | 11115 | static PyMethodDef controls2cMethods[] = { |
3ef86e32 RD |
11116 | { "wxFileIconsTable_GetSmallImageList", (PyCFunction) _wrap_wxFileIconsTable_GetSmallImageList, METH_VARARGS | METH_KEYWORDS }, |
11117 | { "wxFileIconsTable_GetIconID", (PyCFunction) _wrap_wxFileIconsTable_GetIconID, METH_VARARGS | METH_KEYWORDS }, | |
11118 | { "delete_wxFileIconsTable", (PyCFunction) _wrap_delete_wxFileIconsTable, METH_VARARGS | METH_KEYWORDS }, | |
11119 | { "new_wxFileIconsTable", (PyCFunction) _wrap_new_wxFileIconsTable, METH_VARARGS | METH_KEYWORDS }, | |
db34b2d4 RD |
11120 | { "wxDirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_wxDirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, |
11121 | { "wxDirFilterListCtrl_Create", (PyCFunction) _wrap_wxDirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
11122 | { "new_wxPreDirFilterListCtrl", (PyCFunction) _wrap_new_wxPreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11123 | { "new_wxDirFilterListCtrl", (PyCFunction) _wrap_new_wxDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
1fded56b | 11124 | { "wxGenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_wxGenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, |
db34b2d4 RD |
11125 | { "wxGenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, |
11126 | { "wxGenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11127 | { "wxGenericDirCtrl_GetRootId", (PyCFunction) _wrap_wxGenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
11128 | { "wxGenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
11129 | { "wxGenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
11130 | { "wxGenericDirCtrl_SetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
11131 | { "wxGenericDirCtrl_GetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
11132 | { "wxGenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
11133 | { "wxGenericDirCtrl_ShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
11134 | { "wxGenericDirCtrl_SetPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
11135 | { "wxGenericDirCtrl_GetFilePath", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
11136 | { "wxGenericDirCtrl_GetPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
11137 | { "wxGenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
11138 | { "wxGenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
11139 | { "wxGenericDirCtrl_ExpandPath", (PyCFunction) _wrap_wxGenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
11140 | { "wxGenericDirCtrl_Create", (PyCFunction) _wrap_wxGenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
11141 | { "new_wxPreGenericDirCtrl", (PyCFunction) _wrap_new_wxPreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11142 | { "new_wxGenericDirCtrl", (PyCFunction) _wrap_new_wxGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11143 | { "wxDirItemData_m_isDir_get", (PyCFunction) _wrap_wxDirItemData_m_isDir_get, METH_VARARGS | METH_KEYWORDS }, | |
11144 | { "wxDirItemData_m_isDir_set", (PyCFunction) _wrap_wxDirItemData_m_isDir_set, METH_VARARGS | METH_KEYWORDS }, | |
11145 | { "wxDirItemData_m_isExpanded_get", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_get, METH_VARARGS | METH_KEYWORDS }, | |
11146 | { "wxDirItemData_m_isExpanded_set", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_set, METH_VARARGS | METH_KEYWORDS }, | |
11147 | { "wxDirItemData_m_isHidden_get", (PyCFunction) _wrap_wxDirItemData_m_isHidden_get, METH_VARARGS | METH_KEYWORDS }, | |
11148 | { "wxDirItemData_m_isHidden_set", (PyCFunction) _wrap_wxDirItemData_m_isHidden_set, METH_VARARGS | METH_KEYWORDS }, | |
11149 | { "wxDirItemData_m_name_get", (PyCFunction) _wrap_wxDirItemData_m_name_get, METH_VARARGS | METH_KEYWORDS }, | |
11150 | { "wxDirItemData_m_name_set", (PyCFunction) _wrap_wxDirItemData_m_name_set, METH_VARARGS | METH_KEYWORDS }, | |
11151 | { "wxDirItemData_m_path_get", (PyCFunction) _wrap_wxDirItemData_m_path_get, METH_VARARGS | METH_KEYWORDS }, | |
11152 | { "wxDirItemData_m_path_set", (PyCFunction) _wrap_wxDirItemData_m_path_set, METH_VARARGS | METH_KEYWORDS }, | |
11153 | { "wxDirItemData_SetNewDirName", (PyCFunction) _wrap_wxDirItemData_SetNewDirName, METH_VARARGS | METH_KEYWORDS }, | |
11154 | { "new_wxDirItemData", (PyCFunction) _wrap_new_wxDirItemData, METH_VARARGS | METH_KEYWORDS }, | |
74bcba0e | 11155 | { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 RD |
11156 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, |
11157 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11158 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11159 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
11160 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
11161 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 11162 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11163 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, |
b67a9327 | 11164 | { "wxTreeCtrl_GetEditControl", (PyCFunction) _wrap_wxTreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11165 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, |
11166 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
11167 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
11168 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
11169 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
11170 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
11171 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
11172 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
11173 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
11174 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
11175 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
11176 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
11177 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11178 | { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11179 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, |
11180 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
11181 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 11182 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11183 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, |
11184 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
11185 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
11186 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
11187 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
11188 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
11189 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
11190 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 11191 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 11192 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11193 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
11194 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
11195 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
11196 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
11197 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
11198 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
b67a9327 RD |
11199 | { "wxTreeCtrl_GetItemFont", (PyCFunction) _wrap_wxTreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, |
11200 | { "wxTreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11201 | { "wxTreeCtrl_GetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11202 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, |
11203 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
11204 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
11205 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
11206 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
11207 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
11208 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
11209 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
11210 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
11211 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
11212 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
11213 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, |
11214 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11215 | { "wxTreeCtrl_AssignStateImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, |
11216 | { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11217 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, |
11218 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
11219 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
11220 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
11221 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
11222 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
11223 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
0220cbc1 | 11224 | { "wxTreeCtrl__setCallbackInfo", (PyCFunction) _wrap_wxTreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11225 | { "wxTreeCtrl_Create", (PyCFunction) _wrap_wxTreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
11226 | { "new_wxPreTreeCtrl", (PyCFunction) _wrap_new_wxPreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11227 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, |
1fded56b | 11228 | { "wxTreeEvent_SetEditCanceled", (PyCFunction) _wrap_wxTreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, |
4eb65923 | 11229 | { "wxTreeEvent_IsEditCancelled", (PyCFunction) _wrap_wxTreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, |
3ef86e32 | 11230 | { "wxTreeEvent_SetLabel", (PyCFunction) _wrap_wxTreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11231 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, |
3ef86e32 | 11232 | { "wxTreeEvent_SetKeyEvent", (PyCFunction) _wrap_wxTreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, |
d99400b2 | 11233 | { "wxTreeEvent_GetKeyCode", (PyCFunction) _wrap_wxTreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, |
65191ae8 | 11234 | { "wxTreeEvent_GetKeyEvent", (PyCFunction) _wrap_wxTreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, |
3ef86e32 | 11235 | { "wxTreeEvent_SetPoint", (PyCFunction) _wrap_wxTreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11236 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, |
3ef86e32 | 11237 | { "wxTreeEvent_SetOldItem", (PyCFunction) _wrap_wxTreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11238 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, |
3ef86e32 | 11239 | { "wxTreeEvent_SetItem", (PyCFunction) _wrap_wxTreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11240 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 | 11241 | { "new_wxTreeEvent", (PyCFunction) _wrap_new_wxTreeEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11242 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, |
11243 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
11244 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
11245 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
11246 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11247 | { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11248 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, |
11249 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
11250 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11251 | { "wxTreeItemAttr_GetFont", (PyCFunction) _wrap_wxTreeItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, |
11252 | { "wxTreeItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11253 | { "wxTreeItemAttr_GetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11254 | { "wxTreeItemAttr_HasFont", (PyCFunction) _wrap_wxTreeItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
11255 | { "wxTreeItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11256 | { "wxTreeItemAttr_HasTextColour", (PyCFunction) _wrap_wxTreeItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11257 | { "wxTreeItemAttr_SetFont", (PyCFunction) _wrap_wxTreeItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11258 | { "wxTreeItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11259 | { "wxTreeItemAttr_SetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11260 | { "new_wxTreeItemAttr", (PyCFunction) _wrap_new_wxTreeItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
059a841c RD |
11261 | { "wxListView_ClearColumnImage", (PyCFunction) _wrap_wxListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, |
11262 | { "wxListView_SetColumnImage", (PyCFunction) _wrap_wxListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
11263 | { "wxListView_IsSelected", (PyCFunction) _wrap_wxListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
11264 | { "wxListView_GetFirstSelected", (PyCFunction) _wrap_wxListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
11265 | { "wxListView_GetNextSelected", (PyCFunction) _wrap_wxListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
11266 | { "wxListView_GetFocusedItem", (PyCFunction) _wrap_wxListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
11267 | { "wxListView_Focus", (PyCFunction) _wrap_wxListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
11268 | { "wxListView_Select", (PyCFunction) _wrap_wxListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
11269 | { "wxListView_Create", (PyCFunction) _wrap_wxListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
11270 | { "new_wxPreListView", (PyCFunction) _wrap_new_wxPreListView, METH_VARARGS | METH_KEYWORDS }, | |
11271 | { "new_wxListView", (PyCFunction) _wrap_new_wxListView, METH_VARARGS | METH_KEYWORDS }, | |
57ee4c3b | 11272 | { "wxListCtrl_GetMainWindow", (PyCFunction) _wrap_wxListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, |
dcd38683 | 11273 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, |
8381e4cd RD |
11274 | { "wxListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_wxListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
11275 | { "wxListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11276 | { "wxListCtrl_GetItemTextColour", (PyCFunction) _wrap_wxListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11277 | { "wxListCtrl_SetItemTextColour", (PyCFunction) _wrap_wxListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11278 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, |
cd096152 RD |
11279 | { "wxListCtrl_SetItemCount", (PyCFunction) _wrap_wxListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, |
11280 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
11281 | { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11282 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, |
11283 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
11284 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
11285 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11286 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11287 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, |
11288 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
11289 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
11290 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
b67a9327 | 11291 | { "wxListCtrl_EditLabel", (PyCFunction) _wrap_wxListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11292 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, |
11293 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
11294 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
11295 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
11296 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
11297 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
cd096152 RD |
11298 | { "wxListCtrl_RefreshItems", (PyCFunction) _wrap_wxListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, |
11299 | { "wxListCtrl_RefreshItem", (PyCFunction) _wrap_wxListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
11300 | { "wxListCtrl_IsVirtual", (PyCFunction) _wrap_wxListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
11301 | { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
11302 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
11303 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
11304 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
11305 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
11306 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
11307 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
11308 | { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11309 | { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11310 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
b67a9327 | 11311 | { "wxListCtrl_SetItemSpacing", (PyCFunction) _wrap_wxListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS }, |
cd096152 RD |
11312 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, |
11313 | { "wxListCtrl_GetColumnCount", (PyCFunction) _wrap_wxListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
11314 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
11315 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
11316 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
11317 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
11318 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
11319 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
11320 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
11321 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
11322 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
11323 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
11324 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
11325 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
11326 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
11327 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
1a8372ba | 11328 | { "wxListCtrl_GetViewRect", (PyCFunction) _wrap_wxListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, |
cd096152 RD |
11329 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, |
11330 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
11331 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
11332 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
11333 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
11334 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11335 | { "wxListCtrl_SetForegroundColour", (PyCFunction) _wrap_wxListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
0220cbc1 | 11336 | { "wxListCtrl__setCallbackInfo", (PyCFunction) _wrap_wxListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11337 | { "wxListCtrl_Create", (PyCFunction) _wrap_wxListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
11338 | { "new_wxPreListCtrl", (PyCFunction) _wrap_new_wxPreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11339 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, |
059a841c RD |
11340 | { "wxListEvent_GetCacheTo", (PyCFunction) _wrap_wxListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, |
11341 | { "wxListEvent_GetCacheFrom", (PyCFunction) _wrap_wxListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
11342 | { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, |
11343 | { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
11344 | { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
11345 | { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
11346 | { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
11347 | { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11348 | { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11349 | { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 11350 | { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, |
d99400b2 | 11351 | { "wxListEvent_GetKeyCode", (PyCFunction) _wrap_wxListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11352 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11353 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11354 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11355 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
6e8a778a | 11356 | { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11357 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, |
059a841c | 11358 | { "new_wxListEvent", (PyCFunction) _wrap_new_wxListEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11359 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, |
11360 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
11361 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
11362 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
11363 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
11364 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
11365 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
11366 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
11367 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
11368 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
11369 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
11370 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
11371 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
11372 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
11373 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
11374 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
11375 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
11376 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
11377 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
11378 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
11379 | { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, |
11380 | { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11381 | { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11382 | { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
11383 | { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
11384 | { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
11385 | { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11386 | { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
11387 | { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
11388 | { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
11389 | { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
11390 | { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
11391 | { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
11392 | { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
11393 | { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11394 | { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11395 | { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11396 | { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
11397 | { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11398 | { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
11399 | { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
11400 | { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
11401 | { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
11402 | { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
11403 | { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
11404 | { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
11405 | { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
11406 | { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
11407 | { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11408 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
11409 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
11410 | { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11411 | { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11412 | { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11413 | { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
11414 | { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11415 | { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11416 | { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11417 | { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11418 | { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11419 | { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
11420 | { NULL, NULL } |
11421 | }; | |
1d99702e RD |
11422 | #ifdef __cplusplus |
11423 | } | |
11424 | #endif | |
11425 | /* | |
11426 | * This table is used by the pointer type-checker | |
11427 | */ | |
11428 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 11429 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, |
1d99702e | 11430 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, |
1d99702e | 11431 | { "_signed_long","_long",0}, |
b1462dfa | 11432 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
11433 | { "_wxPrintQuality","_int",0}, |
11434 | { "_wxPrintQuality","_signed_int",0}, | |
11435 | { "_wxPrintQuality","_unsigned_int",0}, | |
11436 | { "_wxPrintQuality","_wxWindowID",0}, | |
11437 | { "_wxPrintQuality","_uint",0}, | |
11438 | { "_wxPrintQuality","_EBool",0}, | |
11439 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11440 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 11441 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, |
c368d904 | 11442 | { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
1d99702e | 11443 | { "_byte","_unsigned_char",0}, |
db34b2d4 | 11444 | { "_wxChoice","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxChoice}, |
1d99702e RD |
11445 | { "_long","_unsigned_long",0}, |
11446 | { "_long","_signed_long",0}, | |
b1462dfa | 11447 | { "_size_t","_wxCoord",0}, |
1d99702e | 11448 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11449 | { "_size_t","_time_t",0}, |
1d99702e RD |
11450 | { "_size_t","_unsigned_int",0}, |
11451 | { "_size_t","_int",0}, | |
11452 | { "_size_t","_wxWindowID",0}, | |
11453 | { "_size_t","_uint",0}, | |
b1462dfa | 11454 | { "_uint","_wxCoord",0}, |
1d99702e | 11455 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11456 | { "_uint","_time_t",0}, |
1d99702e RD |
11457 | { "_uint","_size_t",0}, |
11458 | { "_uint","_unsigned_int",0}, | |
11459 | { "_uint","_int",0}, | |
11460 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11461 | { "_wxChar","_char",0}, |
1d99702e | 11462 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, |
1d99702e | 11463 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, |
f6bcfd97 | 11464 | { "_char","_wxChar",0}, |
059a841c | 11465 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 11466 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
11467 | { "_EBool","_wxPrintQuality",0}, |
11468 | { "_EBool","_signed_int",0}, | |
11469 | { "_EBool","_int",0}, | |
11470 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 11471 | { "_unsigned_long","_long",0}, |
059a841c | 11472 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 11473 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
11474 | { "_signed_int","_wxPrintQuality",0}, |
11475 | { "_signed_int","_EBool",0}, | |
11476 | { "_signed_int","_wxWindowID",0}, | |
11477 | { "_signed_int","_int",0}, | |
1d99702e RD |
11478 | { "_WXTYPE","_short",0}, |
11479 | { "_WXTYPE","_signed_short",0}, | |
11480 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
11481 | { "_unsigned_short","_WXTYPE",0}, |
11482 | { "_unsigned_short","_short",0}, | |
db34b2d4 RD |
11483 | { "_wxObject","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxObject}, |
11484 | { "_wxObject","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxObject}, | |
11485 | { "_wxObject","_wxDirItemData",SwigwxDirItemDataTowxObject}, | |
9df61a29 | 11486 | { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, |
9df61a29 | 11487 | { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject}, |
059a841c | 11488 | { "_wxObject","_wxListView",SwigwxListViewTowxObject}, |
cd096152 | 11489 | { "_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, |
9df61a29 | 11490 | { "_wxObject","_wxListEvent",SwigwxListEventTowxObject}, |
9df61a29 | 11491 | { "_wxObject","_wxListItem",SwigwxListItemTowxObject}, |
1d99702e RD |
11492 | { "_signed_short","_WXTYPE",0}, |
11493 | { "_signed_short","_short",0}, | |
1d99702e | 11494 | { "_unsigned_char","_byte",0}, |
db34b2d4 RD |
11495 | { "_wxControl","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControl}, |
11496 | { "_wxControl","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxControl}, | |
f6bcfd97 | 11497 | { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
059a841c | 11498 | { "_wxControl","_wxListView",SwigwxListViewTowxControl}, |
cd096152 | 11499 | { "_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, |
b1462dfa | 11500 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 11501 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 11502 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
11503 | { "_unsigned_int","_size_t",0}, |
11504 | { "_unsigned_int","_uint",0}, | |
11505 | { "_unsigned_int","_wxWindowID",0}, | |
11506 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
11507 | { "_short","_WXTYPE",0}, |
11508 | { "_short","_unsigned_short",0}, | |
11509 | { "_short","_signed_short",0}, | |
db34b2d4 | 11510 | { "_wxControlWithItems","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControlWithItems}, |
b1462dfa | 11511 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 11512 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 11513 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
11514 | { "_wxWindowID","_size_t",0}, |
11515 | { "_wxWindowID","_EBool",0}, | |
11516 | { "_wxWindowID","_uint",0}, | |
11517 | { "_wxWindowID","_int",0}, | |
11518 | { "_wxWindowID","_signed_int",0}, | |
11519 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 11520 | { "_int","_wxCoord",0}, |
1d99702e | 11521 | { "_int","_wxPrintQuality",0}, |
c368d904 | 11522 | { "_int","_time_t",0}, |
1d99702e RD |
11523 | { "_int","_size_t",0}, |
11524 | { "_int","_EBool",0}, | |
11525 | { "_int","_uint",0}, | |
11526 | { "_int","_wxWindowID",0}, | |
11527 | { "_int","_unsigned_int",0}, | |
11528 | { "_int","_signed_int",0}, | |
c368d904 RD |
11529 | { "_time_t","_wxCoord",0}, |
11530 | { "_time_t","_wxPrintQuality",0}, | |
11531 | { "_time_t","_unsigned_int",0}, | |
11532 | { "_time_t","_int",0}, | |
11533 | { "_time_t","_wxWindowID",0}, | |
11534 | { "_time_t","_uint",0}, | |
11535 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
11536 | { "_wxCoord","_int",0}, |
11537 | { "_wxCoord","_signed_int",0}, | |
11538 | { "_wxCoord","_unsigned_int",0}, | |
11539 | { "_wxCoord","_wxWindowID",0}, | |
11540 | { "_wxCoord","_uint",0}, | |
11541 | { "_wxCoord","_EBool",0}, | |
11542 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11543 | { "_wxCoord","_time_t",0}, |
b1462dfa | 11544 | { "_wxCoord","_wxPrintQuality",0}, |
059a841c | 11545 | { "_wxPyListCtrl","_wxListView",SwigwxListViewTowxPyListCtrl}, |
db34b2d4 RD |
11546 | { "_wxEvtHandler","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxEvtHandler}, |
11547 | { "_wxEvtHandler","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxEvtHandler}, | |
f6bcfd97 | 11548 | { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
059a841c | 11549 | { "_wxEvtHandler","_wxListView",SwigwxListViewTowxEvtHandler}, |
cd096152 | 11550 | { "_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, |
db34b2d4 RD |
11551 | { "_wxWindow","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxWindow}, |
11552 | { "_wxWindow","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxWindow}, | |
f6bcfd97 | 11553 | { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
059a841c | 11554 | { "_wxWindow","_wxListView",SwigwxListViewTowxWindow}, |
cd096152 | 11555 | { "_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, |
1d99702e RD |
11556 | {0,0,0}}; |
11557 | ||
8ab979d7 RD |
11558 | static PyObject *SWIG_globals; |
11559 | #ifdef __cplusplus | |
11560 | extern "C" | |
11561 | #endif | |
1d99702e | 11562 | SWIGEXPORT(void) initcontrols2c() { |
8ab979d7 RD |
11563 | PyObject *m, *d; |
11564 | SWIG_globals = SWIG_newvarlink(); | |
11565 | m = Py_InitModule("controls2c", controls2cMethods); | |
11566 | d = PyModule_GetDict(m); | |
cd096152 RD |
11567 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
11568 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
11569 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
11570 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
11571 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
11572 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
11573 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO)); | |
11574 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO)); | |
11575 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
11576 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
11577 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN)); | |
11578 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
11579 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK)); | |
11580 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
11581 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
11582 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
11583 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_CACHE_HINT)); | |
059a841c RD |
11584 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); |
11585 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
11586 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
11587 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
262e41eb | 11588 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_FOCUSED)); |
cd096152 RD |
11589 | PyDict_SetItemString(d,"wxLC_VRULES", PyInt_FromLong((long) wxLC_VRULES)); |
11590 | PyDict_SetItemString(d,"wxLC_HRULES", PyInt_FromLong((long) wxLC_HRULES)); | |
11591 | PyDict_SetItemString(d,"wxLC_ICON", PyInt_FromLong((long) wxLC_ICON)); | |
11592 | PyDict_SetItemString(d,"wxLC_SMALL_ICON", PyInt_FromLong((long) wxLC_SMALL_ICON)); | |
11593 | PyDict_SetItemString(d,"wxLC_LIST", PyInt_FromLong((long) wxLC_LIST)); | |
11594 | PyDict_SetItemString(d,"wxLC_REPORT", PyInt_FromLong((long) wxLC_REPORT)); | |
11595 | PyDict_SetItemString(d,"wxLC_ALIGN_TOP", PyInt_FromLong((long) wxLC_ALIGN_TOP)); | |
11596 | PyDict_SetItemString(d,"wxLC_ALIGN_LEFT", PyInt_FromLong((long) wxLC_ALIGN_LEFT)); | |
11597 | PyDict_SetItemString(d,"wxLC_AUTOARRANGE", PyInt_FromLong((long) wxLC_AUTOARRANGE)); | |
11598 | PyDict_SetItemString(d,"wxLC_VIRTUAL", PyInt_FromLong((long) wxLC_VIRTUAL)); | |
11599 | PyDict_SetItemString(d,"wxLC_EDIT_LABELS", PyInt_FromLong((long) wxLC_EDIT_LABELS)); | |
11600 | PyDict_SetItemString(d,"wxLC_NO_HEADER", PyInt_FromLong((long) wxLC_NO_HEADER)); | |
11601 | PyDict_SetItemString(d,"wxLC_NO_SORT_HEADER", PyInt_FromLong((long) wxLC_NO_SORT_HEADER)); | |
11602 | PyDict_SetItemString(d,"wxLC_SINGLE_SEL", PyInt_FromLong((long) wxLC_SINGLE_SEL)); | |
11603 | PyDict_SetItemString(d,"wxLC_SORT_ASCENDING", PyInt_FromLong((long) wxLC_SORT_ASCENDING)); | |
11604 | PyDict_SetItemString(d,"wxLC_SORT_DESCENDING", PyInt_FromLong((long) wxLC_SORT_DESCENDING)); | |
11605 | PyDict_SetItemString(d,"wxLC_MASK_TYPE", PyInt_FromLong((long) wxLC_MASK_TYPE)); | |
11606 | PyDict_SetItemString(d,"wxLC_MASK_ALIGN", PyInt_FromLong((long) wxLC_MASK_ALIGN)); | |
11607 | PyDict_SetItemString(d,"wxLC_MASK_SORT", PyInt_FromLong((long) wxLC_MASK_SORT)); | |
059a841c | 11608 | PyDict_SetItemString(d,"wxLC_USER_TEXT", PyInt_FromLong((long) wxLC_USER_TEXT)); |
cd096152 | 11609 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); |
af309447 RD |
11610 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); |
11611 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
11612 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
cd096152 | 11613 | PyDict_SetItemString(d,"wxLIST_SET_ITEM", PyInt_FromLong((long) wxLIST_SET_ITEM)); |
af309447 RD |
11614 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); |
11615 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
11616 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); | |
11617 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
11618 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
11619 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
11620 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
11621 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
11622 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
11623 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
11624 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
11625 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
11626 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
11627 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
11628 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
11629 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
11630 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
11631 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
11632 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
11633 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
11634 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
11635 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
11636 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
11637 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
11638 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
11639 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
af309447 RD |
11640 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); |
11641 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
11642 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
11643 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
11644 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
11645 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
11646 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
11647 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
11648 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
f6bcfd97 BP |
11649 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); |
11650 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
11651 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
11652 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
aa2a5b86 RD |
11653 | PyDict_SetItemString(d,"wxTR_NO_BUTTONS", PyInt_FromLong((long) wxTR_NO_BUTTONS)); |
11654 | PyDict_SetItemString(d,"wxTR_HAS_BUTTONS", PyInt_FromLong((long) wxTR_HAS_BUTTONS)); | |
aa2a5b86 | 11655 | PyDict_SetItemString(d,"wxTR_NO_LINES", PyInt_FromLong((long) wxTR_NO_LINES)); |
3ef86e32 | 11656 | PyDict_SetItemString(d,"wxTR_LINES_AT_ROOT", PyInt_FromLong((long) wxTR_LINES_AT_ROOT)); |
aa2a5b86 RD |
11657 | PyDict_SetItemString(d,"wxTR_SINGLE", PyInt_FromLong((long) wxTR_SINGLE)); |
11658 | PyDict_SetItemString(d,"wxTR_MULTIPLE", PyInt_FromLong((long) wxTR_MULTIPLE)); | |
11659 | PyDict_SetItemString(d,"wxTR_EXTENDED", PyInt_FromLong((long) wxTR_EXTENDED)); | |
3ef86e32 | 11660 | PyDict_SetItemString(d,"wxTR_HAS_VARIABLE_ROW_HEIGHT", PyInt_FromLong((long) wxTR_HAS_VARIABLE_ROW_HEIGHT)); |
aa2a5b86 | 11661 | PyDict_SetItemString(d,"wxTR_EDIT_LABELS", PyInt_FromLong((long) wxTR_EDIT_LABELS)); |
aa2a5b86 RD |
11662 | PyDict_SetItemString(d,"wxTR_HIDE_ROOT", PyInt_FromLong((long) wxTR_HIDE_ROOT)); |
11663 | PyDict_SetItemString(d,"wxTR_ROW_LINES", PyInt_FromLong((long) wxTR_ROW_LINES)); | |
3ef86e32 | 11664 | PyDict_SetItemString(d,"wxTR_FULL_ROW_HIGHLIGHT", PyInt_FromLong((long) wxTR_FULL_ROW_HIGHLIGHT)); |
aa2a5b86 | 11665 | PyDict_SetItemString(d,"wxTR_DEFAULT_STYLE", PyInt_FromLong((long) wxTR_DEFAULT_STYLE)); |
3ef86e32 RD |
11666 | PyDict_SetItemString(d,"wxTR_TWIST_BUTTONS", PyInt_FromLong((long) wxTR_TWIST_BUTTONS)); |
11667 | PyDict_SetItemString(d,"wxTR_MAC_BUTTONS", PyInt_FromLong((long) wxTR_MAC_BUTTONS)); | |
11668 | PyDict_SetItemString(d,"wxTR_AQUA_BUTTONS", PyInt_FromLong((long) wxTR_AQUA_BUTTONS)); | |
694759cf RD |
11669 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); |
11670 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
11671 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
11672 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
11673 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
164b735b RD |
11674 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); |
11675 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
11676 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
11677 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
11678 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
11679 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
11680 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
11681 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
11682 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
11683 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
11684 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
11685 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
11686 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
11687 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
9c4165ad RD |
11688 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
11689 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
11690 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
11691 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
11692 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
11693 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO)); | |
11694 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO)); | |
11695 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
11696 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
11697 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
11698 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
11699 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
11700 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
11701 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN)); | |
11702 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
11703 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
11704 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
7a446686 | 11705 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG)); |
3ef86e32 | 11706 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); |
db34b2d4 RD |
11707 | PyDict_SetItemString(d,"wxDIRCTRL_DIR_ONLY", PyInt_FromLong((long) wxDIRCTRL_DIR_ONLY)); |
11708 | PyDict_SetItemString(d,"wxDIRCTRL_SELECT_FIRST", PyInt_FromLong((long) wxDIRCTRL_SELECT_FIRST)); | |
11709 | PyDict_SetItemString(d,"wxDIRCTRL_SHOW_FILTERS", PyInt_FromLong((long) wxDIRCTRL_SHOW_FILTERS)); | |
11710 | PyDict_SetItemString(d,"wxDIRCTRL_3D_INTERNAL", PyInt_FromLong((long) wxDIRCTRL_3D_INTERNAL)); | |
301dfd67 | 11711 | PyDict_SetItemString(d,"wxDIRCTRL_EDIT_LABELS", PyInt_FromLong((long) wxDIRCTRL_EDIT_LABELS)); |
87439dd8 RD |
11712 | PyDict_SetItemString(d,"wxID_TREECTRL", PyInt_FromLong((long) wxID_TREECTRL)); |
11713 | PyDict_SetItemString(d,"wxID_FILTERLISTCTRL", PyInt_FromLong((long) wxID_FILTERLISTCTRL)); | |
9df61a29 | 11714 | |
059a841c | 11715 | // Map renamed classes back to their common name for OOR |
9df61a29 RD |
11716 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); |
11717 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
059a841c | 11718 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); |
3ef86e32 RD |
11719 | PyDict_SetItemString(d,"wxFileIconsTable_folder", PyInt_FromLong((long) wxFileIconsTable::folder)); |
11720 | PyDict_SetItemString(d,"wxFileIconsTable_folder_open", PyInt_FromLong((long) wxFileIconsTable::folder_open)); | |
11721 | PyDict_SetItemString(d,"wxFileIconsTable_computer", PyInt_FromLong((long) wxFileIconsTable::computer)); | |
11722 | PyDict_SetItemString(d,"wxFileIconsTable_drive", PyInt_FromLong((long) wxFileIconsTable::drive)); | |
11723 | PyDict_SetItemString(d,"wxFileIconsTable_cdrom", PyInt_FromLong((long) wxFileIconsTable::cdrom)); | |
11724 | PyDict_SetItemString(d,"wxFileIconsTable_floppy", PyInt_FromLong((long) wxFileIconsTable::floppy)); | |
11725 | PyDict_SetItemString(d,"wxFileIconsTable_removeable", PyInt_FromLong((long) wxFileIconsTable::removeable)); | |
11726 | PyDict_SetItemString(d,"wxFileIconsTable_file", PyInt_FromLong((long) wxFileIconsTable::file)); | |
11727 | PyDict_SetItemString(d,"wxFileIconsTable_executable", PyInt_FromLong((long) wxFileIconsTable::executable)); | |
1d99702e RD |
11728 | { |
11729 | int i; | |
11730 | for (i = 0; _swig_mapping[i].n1; i++) | |
11731 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11732 | } | |
8ab979d7 | 11733 | } |