]>
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 | ||
900eb07b RD |
2658 | #define wxListEvent_IsEditCancelled(_swigobj) (_swigobj->IsEditCancelled()) |
2659 | static PyObject *_wrap_wxListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2660 | PyObject * _resultobj; | |
2661 | bool _result; | |
2662 | wxListEvent * _arg0; | |
2663 | PyObject * _argo0 = 0; | |
2664 | char *_kwnames[] = { "self", NULL }; | |
2665 | ||
2666 | self = self; | |
2667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_IsEditCancelled",_kwnames,&_argo0)) | |
2668 | return NULL; | |
2669 | if (_argo0) { | |
2670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_IsEditCancelled. Expected _wxListEvent_p."); | |
2673 | return NULL; | |
2674 | } | |
2675 | } | |
2676 | { | |
2677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2678 | _result = (bool )wxListEvent_IsEditCancelled(_arg0); | |
2679 | ||
2680 | wxPyEndAllowThreads(__tstate); | |
2681 | if (PyErr_Occurred()) return NULL; | |
2682 | } _resultobj = Py_BuildValue("i",_result); | |
2683 | return _resultobj; | |
2684 | } | |
2685 | ||
2686 | #define wxListEvent_SetEditCanceled(_swigobj,_swigarg0) (_swigobj->SetEditCanceled(_swigarg0)) | |
2687 | static PyObject *_wrap_wxListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2688 | PyObject * _resultobj; | |
2689 | wxListEvent * _arg0; | |
2690 | bool _arg1; | |
2691 | PyObject * _argo0 = 0; | |
2692 | int tempbool1; | |
2693 | char *_kwnames[] = { "self","editCancelled", NULL }; | |
2694 | ||
2695 | self = self; | |
2696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_SetEditCanceled",_kwnames,&_argo0,&tempbool1)) | |
2697 | return NULL; | |
2698 | if (_argo0) { | |
2699 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2700 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_SetEditCanceled. Expected _wxListEvent_p."); | |
2702 | return NULL; | |
2703 | } | |
2704 | } | |
2705 | _arg1 = (bool ) tempbool1; | |
2706 | { | |
2707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2708 | wxListEvent_SetEditCanceled(_arg0,_arg1); | |
2709 | ||
2710 | wxPyEndAllowThreads(__tstate); | |
2711 | if (PyErr_Occurred()) return NULL; | |
2712 | } Py_INCREF(Py_None); | |
2713 | _resultobj = Py_None; | |
2714 | return _resultobj; | |
2715 | } | |
2716 | ||
cd096152 RD |
2717 | static void *SwigwxPyListCtrlTowxControl(void *ptr) { |
2718 | wxPyListCtrl *src; | |
8ab979d7 | 2719 | wxControl *dest; |
cd096152 | 2720 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2721 | dest = (wxControl *) src; |
2722 | return (void *) dest; | |
2723 | } | |
2724 | ||
cd096152 RD |
2725 | static void *SwigwxPyListCtrlTowxWindow(void *ptr) { |
2726 | wxPyListCtrl *src; | |
8ab979d7 | 2727 | wxWindow *dest; |
cd096152 | 2728 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2729 | dest = (wxWindow *) src; |
2730 | return (void *) dest; | |
2731 | } | |
2732 | ||
cd096152 RD |
2733 | static void *SwigwxPyListCtrlTowxEvtHandler(void *ptr) { |
2734 | wxPyListCtrl *src; | |
8ab979d7 | 2735 | wxEvtHandler *dest; |
cd096152 | 2736 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2737 | dest = (wxEvtHandler *) src; |
2738 | return (void *) dest; | |
2739 | } | |
2740 | ||
cd096152 RD |
2741 | static void *SwigwxPyListCtrlTowxObject(void *ptr) { |
2742 | wxPyListCtrl *src; | |
9df61a29 | 2743 | wxObject *dest; |
cd096152 | 2744 | src = (wxPyListCtrl *) ptr; |
9df61a29 RD |
2745 | dest = (wxObject *) src; |
2746 | return (void *) dest; | |
2747 | } | |
2748 | ||
cd096152 | 2749 | #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 2750 | static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 2751 | PyObject * _resultobj; |
cd096152 | 2752 | wxPyListCtrl * _result; |
8ab979d7 | 2753 | wxWindow * _arg0; |
cd096152 | 2754 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
2755 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
2756 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2c8a649d | 2757 | long _arg4 = (long ) (wxLC_ICON); |
b68dc582 | 2758 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 2759 | wxString * _arg6 = (wxString *) &wxPyListCtrlNameStr; |
1d99702e | 2760 | PyObject * _argo0 = 0; |
2f90df85 RD |
2761 | wxPoint temp; |
2762 | PyObject * _obj2 = 0; | |
2763 | wxSize temp0; | |
2764 | PyObject * _obj3 = 0; | |
1d99702e | 2765 | PyObject * _argo5 = 0; |
9a74fcaf | 2766 | PyObject * _obj6 = 0; |
efc5f224 | 2767 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
2768 | char _ptemp[128]; |
2769 | ||
2770 | self = self; | |
9a74fcaf | 2771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) |
8ab979d7 | 2772 | return NULL; |
1d99702e RD |
2773 | if (_argo0) { |
2774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p."); |
2777 | return NULL; | |
2778 | } | |
2779 | } | |
2f90df85 RD |
2780 | if (_obj2) |
2781 | { | |
2782 | _arg2 = &temp; | |
2783 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 2784 | return NULL; |
2f90df85 RD |
2785 | } |
2786 | if (_obj3) | |
2787 | { | |
2788 | _arg3 = &temp0; | |
2789 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 2790 | return NULL; |
2f90df85 | 2791 | } |
1d99702e | 2792 | if (_argo5) { |
b67a9327 | 2793 | if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { |
8ab979d7 RD |
2794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p."); |
2795 | return NULL; | |
2796 | } | |
2797 | } | |
9a74fcaf RD |
2798 | if (_obj6) |
2799 | { | |
2800 | _arg6 = wxString_in_helper(_obj6); | |
2801 | if (_arg6 == NULL) | |
2802 | return NULL; | |
2803 | } | |
cf694132 | 2804 | { |
474c48f9 | 2805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 2806 | _result = (wxPyListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
cf694132 | 2807 | |
474c48f9 | 2808 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2809 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2810 | } if (_result) { |
cd096152 | 2811 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); |
1d99702e RD |
2812 | _resultobj = Py_BuildValue("s",_ptemp); |
2813 | } else { | |
2814 | Py_INCREF(Py_None); | |
2815 | _resultobj = Py_None; | |
2816 | } | |
9a74fcaf RD |
2817 | { |
2818 | if (_obj6) | |
2819 | delete _arg6; | |
2820 | } | |
8ab979d7 RD |
2821 | return _resultobj; |
2822 | } | |
2823 | ||
aa2a5b86 RD |
2824 | #define new_wxPreListCtrl() (new wxPyListCtrl()) |
2825 | static PyObject *_wrap_new_wxPreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2826 | PyObject * _resultobj; | |
2827 | wxPyListCtrl * _result; | |
2828 | char *_kwnames[] = { NULL }; | |
2829 | char _ptemp[128]; | |
2830 | ||
2831 | self = self; | |
2832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListCtrl",_kwnames)) | |
2833 | return NULL; | |
2834 | { | |
474c48f9 | 2835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2836 | _result = (wxPyListCtrl *)new_wxPreListCtrl(); |
aa2a5b86 | 2837 | |
474c48f9 | 2838 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
2839 | if (PyErr_Occurred()) return NULL; |
2840 | } if (_result) { | |
2841 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); | |
2842 | _resultobj = Py_BuildValue("s",_ptemp); | |
2843 | } else { | |
2844 | Py_INCREF(Py_None); | |
2845 | _resultobj = Py_None; | |
2846 | } | |
2847 | return _resultobj; | |
2848 | } | |
2849 | ||
2850 | #define wxListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
2851 | static PyObject *_wrap_wxListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2852 | PyObject * _resultobj; | |
2853 | bool _result; | |
2854 | wxPyListCtrl * _arg0; | |
2855 | wxWindow * _arg1; | |
2856 | wxWindowID _arg2 = (wxWindowID ) -1; | |
2857 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
2858 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2859 | long _arg5 = (long ) (wxLC_ICON); | |
2860 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 2861 | wxString * _arg7 = (wxString *) &wxPyListCtrlNameStr; |
aa2a5b86 RD |
2862 | PyObject * _argo0 = 0; |
2863 | PyObject * _argo1 = 0; | |
2864 | wxPoint temp; | |
2865 | PyObject * _obj3 = 0; | |
2866 | wxSize temp0; | |
2867 | PyObject * _obj4 = 0; | |
2868 | PyObject * _argo6 = 0; | |
9a74fcaf | 2869 | PyObject * _obj7 = 0; |
aa2a5b86 RD |
2870 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; |
2871 | ||
2872 | self = self; | |
9a74fcaf | 2873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
aa2a5b86 RD |
2874 | return NULL; |
2875 | if (_argo0) { | |
2876 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2877 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
2878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Create. Expected _wxPyListCtrl_p."); | |
2879 | return NULL; | |
2880 | } | |
2881 | } | |
2882 | if (_argo1) { | |
2883 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2884 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_Create. Expected _wxWindow_p."); | |
2886 | return NULL; | |
2887 | } | |
2888 | } | |
2889 | if (_obj3) | |
2890 | { | |
2891 | _arg3 = &temp; | |
2892 | if (! wxPoint_helper(_obj3, &_arg3)) | |
2893 | return NULL; | |
2894 | } | |
2895 | if (_obj4) | |
2896 | { | |
2897 | _arg4 = &temp0; | |
2898 | if (! wxSize_helper(_obj4, &_arg4)) | |
2899 | return NULL; | |
2900 | } | |
2901 | if (_argo6) { | |
b67a9327 | 2902 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { |
aa2a5b86 RD |
2903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListCtrl_Create. Expected _wxValidator_p."); |
2904 | return NULL; | |
2905 | } | |
2906 | } | |
9a74fcaf RD |
2907 | if (_obj7) |
2908 | { | |
2909 | _arg7 = wxString_in_helper(_obj7); | |
2910 | if (_arg7 == NULL) | |
2911 | return NULL; | |
2912 | } | |
aa2a5b86 | 2913 | { |
474c48f9 | 2914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 2915 | _result = (bool )wxListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
aa2a5b86 | 2916 | |
474c48f9 | 2917 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
2918 | if (PyErr_Occurred()) return NULL; |
2919 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
2920 | { |
2921 | if (_obj7) | |
2922 | delete _arg7; | |
2923 | } | |
aa2a5b86 RD |
2924 | return _resultobj; |
2925 | } | |
2926 | ||
0220cbc1 RD |
2927 | #define wxListCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
2928 | static PyObject *_wrap_wxListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2929 | PyObject * _resultobj; |
cd096152 RD |
2930 | wxPyListCtrl * _arg0; |
2931 | PyObject * _arg1; | |
2932 | PyObject * _arg2; | |
1d99702e | 2933 | PyObject * _argo0 = 0; |
cd096152 RD |
2934 | PyObject * _obj1 = 0; |
2935 | PyObject * _obj2 = 0; | |
2936 | char *_kwnames[] = { "self","self","_class", NULL }; | |
8ab979d7 RD |
2937 | |
2938 | self = self; | |
0220cbc1 | 2939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxListCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 2940 | return NULL; |
1d99702e RD |
2941 | if (_argo0) { |
2942 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 | 2943 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
0220cbc1 | 2944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl__setCallbackInfo. Expected _wxPyListCtrl_p."); |
8ab979d7 RD |
2945 | return NULL; |
2946 | } | |
2947 | } | |
cd096152 RD |
2948 | { |
2949 | _arg1 = _obj1; | |
2950 | } | |
2951 | { | |
2952 | _arg2 = _obj2; | |
2953 | } | |
cf694132 | 2954 | { |
474c48f9 | 2955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2956 | wxListCtrl__setCallbackInfo(_arg0,_arg1,_arg2); |
cf694132 | 2957 | |
474c48f9 | 2958 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2959 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
2960 | } Py_INCREF(Py_None); |
2961 | _resultobj = Py_None; | |
8ab979d7 RD |
2962 | return _resultobj; |
2963 | } | |
2964 | ||
cd096152 RD |
2965 | #define wxListCtrl_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) |
2966 | static PyObject *_wrap_wxListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c4165ad | 2967 | PyObject * _resultobj; |
cd096152 RD |
2968 | bool _result; |
2969 | wxPyListCtrl * _arg0; | |
2970 | wxColour * _arg1; | |
9c4165ad | 2971 | PyObject * _argo0 = 0; |
cd096152 RD |
2972 | wxColour temp; |
2973 | PyObject * _obj1 = 0; | |
2974 | char *_kwnames[] = { "self","col", NULL }; | |
9c4165ad RD |
2975 | |
2976 | self = self; | |
cd096152 | 2977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
9c4165ad RD |
2978 | return NULL; |
2979 | if (_argo0) { | |
2980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
2981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
2982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetForegroundColour. Expected _wxPyListCtrl_p."); | |
9c4165ad RD |
2983 | return NULL; |
2984 | } | |
2985 | } | |
cd096152 RD |
2986 | { |
2987 | _arg1 = &temp; | |
2988 | if (! wxColour_helper(_obj1, &_arg1)) | |
2989 | return NULL; | |
2990 | } | |
2991 | { | |
474c48f9 | 2992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2993 | _result = (bool )wxListCtrl_SetForegroundColour(_arg0,*_arg1); |
cd096152 | 2994 | |
474c48f9 | 2995 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
2996 | if (PyErr_Occurred()) return NULL; |
2997 | } _resultobj = Py_BuildValue("i",_result); | |
2998 | return _resultobj; | |
2999 | } | |
3000 | ||
3001 | #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
3002 | static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3003 | PyObject * _resultobj; | |
3004 | bool _result; | |
3005 | wxPyListCtrl * _arg0; | |
3006 | wxColour * _arg1; | |
3007 | PyObject * _argo0 = 0; | |
3008 | wxColour temp; | |
3009 | PyObject * _obj1 = 0; | |
3010 | char *_kwnames[] = { "self","col", NULL }; | |
3011 | ||
3012 | self = self; | |
3013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
3014 | return NULL; | |
3015 | if (_argo0) { | |
3016 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3017 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxPyListCtrl_p."); | |
9c4165ad RD |
3019 | return NULL; |
3020 | } | |
3021 | } | |
cd096152 RD |
3022 | { |
3023 | _arg1 = &temp; | |
3024 | if (! wxColour_helper(_obj1, &_arg1)) | |
3025 | return NULL; | |
3026 | } | |
9c4165ad | 3027 | { |
474c48f9 | 3028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3029 | _result = (bool )wxListCtrl_SetBackgroundColour(_arg0,*_arg1); |
9c4165ad | 3030 | |
474c48f9 | 3031 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3032 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3033 | } _resultobj = Py_BuildValue("i",_result); |
9c4165ad RD |
3034 | return _resultobj; |
3035 | } | |
3036 | ||
94082a71 RD |
3037 | static wxListItem * wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col) { |
3038 | wxListItem item; | |
9f873a51 | 3039 | item.SetMask(0xFFFF); |
94082a71 RD |
3040 | if (self->GetColumn(col, item)) |
3041 | return new wxListItem(item); | |
3042 | else | |
3043 | return NULL; | |
3044 | } | |
cd096152 | 3045 | static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3046 | PyObject * _resultobj; |
94082a71 | 3047 | wxListItem * _result; |
cd096152 RD |
3048 | wxPyListCtrl * _arg0; |
3049 | int _arg1; | |
1d99702e | 3050 | PyObject * _argo0 = 0; |
94082a71 | 3051 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3052 | |
3053 | self = self; | |
94082a71 | 3054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3055 | return NULL; |
1d99702e RD |
3056 | if (_argo0) { |
3057 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3058 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxPyListCtrl_p."); | |
3060 | return NULL; | |
3061 | } | |
3062 | } | |
cf694132 | 3063 | { |
474c48f9 | 3064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3065 | _result = (wxListItem *)wxPyListCtrl_GetColumn(_arg0,_arg1); |
cf694132 | 3066 | |
474c48f9 | 3067 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3068 | if (PyErr_Occurred()) return NULL; |
94082a71 | 3069 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
3070 | return _resultobj; |
3071 | } | |
3072 | ||
cd096152 RD |
3073 | #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1)) |
3074 | static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3075 | PyObject * _resultobj; |
3076 | bool _result; | |
cd096152 RD |
3077 | wxPyListCtrl * _arg0; |
3078 | int _arg1; | |
3079 | wxListItem * _arg2; | |
1d99702e | 3080 | PyObject * _argo0 = 0; |
cd096152 RD |
3081 | PyObject * _argo2 = 0; |
3082 | char *_kwnames[] = { "self","col","item", NULL }; | |
8ab979d7 RD |
3083 | |
3084 | self = self; | |
cd096152 | 3085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3086 | return NULL; |
1d99702e RD |
3087 | if (_argo0) { |
3088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxPyListCtrl_p."); | |
3091 | return NULL; | |
3092 | } | |
3093 | } | |
3094 | if (_argo2) { | |
b67a9327 | 3095 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { |
cd096152 | 3096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p."); |
8ab979d7 RD |
3097 | return NULL; |
3098 | } | |
3099 | } | |
cf694132 | 3100 | { |
474c48f9 | 3101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3102 | _result = (bool )wxListCtrl_SetColumn(_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_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0)) |
3111 | static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3112 | PyObject * _resultobj; |
cd096152 RD |
3113 | int _result; |
3114 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3115 | int _arg1; |
1d99702e | 3116 | PyObject * _argo0 = 0; |
efc5f224 | 3117 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3118 | |
3119 | self = self; | |
cd096152 | 3120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3121 | return NULL; |
1d99702e RD |
3122 | if (_argo0) { |
3123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3126 | return NULL; |
3127 | } | |
3128 | } | |
cf694132 | 3129 | { |
474c48f9 | 3130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3131 | _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1); |
cf694132 | 3132 | |
474c48f9 | 3133 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3134 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3135 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3136 | return _resultobj; |
3137 | } | |
3138 | ||
cd096152 RD |
3139 | #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1)) |
3140 | static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3141 | PyObject * _resultobj; |
3142 | bool _result; | |
cd096152 RD |
3143 | wxPyListCtrl * _arg0; |
3144 | int _arg1; | |
3145 | int _arg2; | |
1d99702e | 3146 | PyObject * _argo0 = 0; |
cd096152 | 3147 | char *_kwnames[] = { "self","col","width", NULL }; |
8ab979d7 RD |
3148 | |
3149 | self = self; | |
cd096152 | 3150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3151 | return NULL; |
1d99702e RD |
3152 | if (_argo0) { |
3153 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3154 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3156 | return NULL; |
3157 | } | |
3158 | } | |
cf694132 | 3159 | { |
474c48f9 | 3160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3161 | _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2); |
cf694132 | 3162 | |
474c48f9 | 3163 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3164 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3165 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3166 | return _resultobj; |
3167 | } | |
3168 | ||
cd096152 RD |
3169 | #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage()) |
3170 | static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3171 | PyObject * _resultobj; |
cd096152 RD |
3172 | int _result; |
3173 | wxPyListCtrl * _arg0; | |
1d99702e | 3174 | PyObject * _argo0 = 0; |
efc5f224 | 3175 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3176 | |
3177 | self = self; | |
cd096152 | 3178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0)) |
8ab979d7 | 3179 | return NULL; |
1d99702e RD |
3180 | if (_argo0) { |
3181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3184 | return NULL; |
3185 | } | |
3186 | } | |
cf694132 | 3187 | { |
474c48f9 | 3188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3189 | _result = (int )wxListCtrl_GetCountPerPage(_arg0); |
cf694132 | 3190 | |
474c48f9 | 3191 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3192 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3193 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3194 | return _resultobj; |
3195 | } | |
3196 | ||
1a8372ba RD |
3197 | #define wxListCtrl_GetViewRect(_swigobj) (_swigobj->GetViewRect()) |
3198 | static PyObject *_wrap_wxListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3199 | PyObject * _resultobj; | |
3200 | wxRect * _result; | |
3201 | wxPyListCtrl * _arg0; | |
3202 | PyObject * _argo0 = 0; | |
3203 | char *_kwnames[] = { "self", NULL }; | |
3204 | char _ptemp[128]; | |
3205 | ||
3206 | self = self; | |
3207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetViewRect",_kwnames,&_argo0)) | |
3208 | return NULL; | |
3209 | if (_argo0) { | |
3210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetViewRect. Expected _wxPyListCtrl_p."); | |
3213 | return NULL; | |
3214 | } | |
3215 | } | |
3216 | { | |
3217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3218 | _result = new wxRect (wxListCtrl_GetViewRect(_arg0)); | |
3219 | ||
3220 | wxPyEndAllowThreads(__tstate); | |
3221 | if (PyErr_Occurred()) return NULL; | |
3222 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
3223 | _resultobj = Py_BuildValue("s",_ptemp); | |
3224 | return _resultobj; | |
3225 | } | |
3226 | ||
cd096152 RD |
3227 | static wxListItem * wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col) { |
3228 | wxListItem* info = new wxListItem; | |
3229 | info->m_itemId = itemId; | |
3230 | info->m_col = col; | |
3231 | info->m_mask = 0xFFFF; | |
3232 | self->GetItem(*info); | |
3233 | return info; | |
3234 | } | |
3235 | static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3236 | PyObject * _resultobj; |
cd096152 RD |
3237 | wxListItem * _result; |
3238 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3239 | long _arg1; |
cd096152 | 3240 | int _arg2 = (int ) 0; |
1d99702e | 3241 | PyObject * _argo0 = 0; |
cd096152 | 3242 | char *_kwnames[] = { "self","itemId","col", NULL }; |
8ab979d7 RD |
3243 | |
3244 | self = self; | |
cd096152 | 3245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3246 | return NULL; |
1d99702e RD |
3247 | if (_argo0) { |
3248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3251 | return NULL; |
3252 | } | |
3253 | } | |
cf694132 | 3254 | { |
474c48f9 | 3255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3256 | _result = (wxListItem *)wxPyListCtrl_GetItem(_arg0,_arg1,_arg2); |
cf694132 | 3257 | |
474c48f9 | 3258 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3259 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3260 | }{ _resultobj = wxPyMake_wxObject(_result); } |
be4d9c1f RD |
3261 | return _resultobj; |
3262 | } | |
3263 | ||
cd096152 RD |
3264 | #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) |
3265 | static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3266 | PyObject * _resultobj; |
3267 | bool _result; | |
cd096152 RD |
3268 | wxPyListCtrl * _arg0; |
3269 | wxListItem * _arg1; | |
1d99702e | 3270 | PyObject * _argo0 = 0; |
cd096152 RD |
3271 | PyObject * _argo1 = 0; |
3272 | char *_kwnames[] = { "self","info", NULL }; | |
8ab979d7 RD |
3273 | |
3274 | self = self; | |
cd096152 | 3275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3276 | return NULL; |
1d99702e RD |
3277 | if (_argo0) { |
3278 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3279 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3280 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxPyListCtrl_p."); | |
3281 | return NULL; | |
3282 | } | |
3283 | } | |
3284 | if (_argo1) { | |
b67a9327 | 3285 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { |
cd096152 | 3286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p."); |
8ab979d7 RD |
3287 | return NULL; |
3288 | } | |
3289 | } | |
cf694132 | 3290 | { |
474c48f9 | 3291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3292 | _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1); |
cf694132 | 3293 | |
474c48f9 | 3294 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3295 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3296 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3297 | return _resultobj; |
3298 | } | |
3299 | ||
cd096152 RD |
3300 | #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3301 | static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3302 | PyObject * _resultobj; |
3303 | long _result; | |
cd096152 | 3304 | wxPyListCtrl * _arg0; |
8ab979d7 | 3305 | long _arg1; |
cd096152 RD |
3306 | int _arg2; |
3307 | wxString * _arg3; | |
3308 | int _arg4 = (int ) -1; | |
1d99702e | 3309 | PyObject * _argo0 = 0; |
cd096152 RD |
3310 | PyObject * _obj3 = 0; |
3311 | char *_kwnames[] = { "self","index","col","label","imageId", NULL }; | |
8ab979d7 RD |
3312 | |
3313 | self = self; | |
cd096152 | 3314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
8ab979d7 | 3315 | return NULL; |
1d99702e RD |
3316 | if (_argo0) { |
3317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3320 | return NULL; |
3321 | } | |
3322 | } | |
3323 | { | |
c8bc7bb8 RD |
3324 | _arg3 = wxString_in_helper(_obj3); |
3325 | if (_arg3 == NULL) | |
2cd2fac8 | 3326 | return NULL; |
8ab979d7 | 3327 | } |
cf694132 | 3328 | { |
474c48f9 | 3329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3330 | _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4); |
cf694132 | 3331 | |
474c48f9 | 3332 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3333 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3334 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 3335 | { |
cd096152 RD |
3336 | if (_obj3) |
3337 | delete _arg3; | |
8ab979d7 RD |
3338 | } |
3339 | return _resultobj; | |
3340 | } | |
3341 | ||
cd096152 RD |
3342 | #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1)) |
3343 | static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3344 | PyObject * _resultobj; |
cd096152 RD |
3345 | int _result; |
3346 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
3347 | long _arg1; |
3348 | long _arg2; | |
1d99702e | 3349 | PyObject * _argo0 = 0; |
cd096152 | 3350 | char *_kwnames[] = { "self","item","stateMask", NULL }; |
8ab979d7 RD |
3351 | |
3352 | self = self; | |
cd096152 | 3353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3354 | return NULL; |
1d99702e RD |
3355 | if (_argo0) { |
3356 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3357 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3359 | return NULL; |
3360 | } | |
3361 | } | |
cf694132 | 3362 | { |
474c48f9 | 3363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3364 | _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2); |
cf694132 | 3365 | |
474c48f9 | 3366 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3367 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3368 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3369 | return _resultobj; |
3370 | } | |
3371 | ||
cd096152 RD |
3372 | #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2)) |
3373 | static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3374 | PyObject * _resultobj; |
cd096152 RD |
3375 | bool _result; |
3376 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3377 | long _arg1; |
cd096152 RD |
3378 | long _arg2; |
3379 | long _arg3; | |
1d99702e | 3380 | PyObject * _argo0 = 0; |
cd096152 | 3381 | char *_kwnames[] = { "self","item","state","stateMask", NULL }; |
8ab979d7 RD |
3382 | |
3383 | self = self; | |
cd096152 | 3384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3385 | return NULL; |
1d99702e RD |
3386 | if (_argo0) { |
3387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3390 | return NULL; |
3391 | } | |
3392 | } | |
cf694132 | 3393 | { |
474c48f9 | 3394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3395 | _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3396 | |
474c48f9 | 3397 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3398 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3399 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3400 | return _resultobj; |
3401 | } | |
3402 | ||
cd096152 RD |
3403 | #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
3404 | static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3405 | PyObject * _resultobj; |
3406 | bool _result; | |
cd096152 RD |
3407 | wxPyListCtrl * _arg0; |
3408 | long _arg1; | |
3409 | int _arg2; | |
3410 | int _arg3; | |
1d99702e | 3411 | PyObject * _argo0 = 0; |
cd096152 | 3412 | char *_kwnames[] = { "self","item","image","selImage", NULL }; |
8ab979d7 RD |
3413 | |
3414 | self = self; | |
cd096152 | 3415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3416 | return NULL; |
1d99702e RD |
3417 | if (_argo0) { |
3418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3421 | return NULL; |
3422 | } | |
3423 | } | |
cf694132 | 3424 | { |
474c48f9 | 3425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3426 | _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3427 | |
474c48f9 | 3428 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3429 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3430 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3431 | return _resultobj; |
3432 | } | |
3433 | ||
cd096152 RD |
3434 | #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
3435 | static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3436 | PyObject * _resultobj; |
cd096152 RD |
3437 | wxString * _result; |
3438 | wxPyListCtrl * _arg0; | |
3439 | long _arg1; | |
1d99702e | 3440 | PyObject * _argo0 = 0; |
cd096152 | 3441 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3442 | |
3443 | self = self; | |
cd096152 | 3444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3445 | return NULL; |
1d99702e RD |
3446 | if (_argo0) { |
3447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3450 | return NULL; |
3451 | } | |
3452 | } | |
cf694132 | 3453 | { |
474c48f9 | 3454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3455 | _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1)); |
cf694132 | 3456 | |
474c48f9 | 3457 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3458 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3459 | }{ |
c8bc7bb8 | 3460 | #if wxUSE_UNICODE |
b67a9327 | 3461 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3462 | #else |
cd096152 | 3463 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3464 | #endif |
cd096152 RD |
3465 | } |
3466 | { | |
3467 | delete _result; | |
3468 | } | |
8ab979d7 RD |
3469 | return _resultobj; |
3470 | } | |
3471 | ||
cd096152 RD |
3472 | #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
3473 | static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3474 | PyObject * _resultobj; |
cd096152 RD |
3475 | wxPyListCtrl * _arg0; |
3476 | long _arg1; | |
3477 | wxString * _arg2; | |
1d99702e | 3478 | PyObject * _argo0 = 0; |
cd096152 RD |
3479 | PyObject * _obj2 = 0; |
3480 | char *_kwnames[] = { "self","item","str", NULL }; | |
8ab979d7 RD |
3481 | |
3482 | self = self; | |
cd096152 | 3483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3484 | return NULL; |
1d99702e RD |
3485 | if (_argo0) { |
3486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3489 | return NULL; |
3490 | } | |
3491 | } | |
cf694132 | 3492 | { |
c8bc7bb8 RD |
3493 | _arg2 = wxString_in_helper(_obj2); |
3494 | if (_arg2 == NULL) | |
8ab979d7 | 3495 | return NULL; |
cd096152 | 3496 | } |
cf694132 | 3497 | { |
474c48f9 | 3498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3499 | wxListCtrl_SetItemText(_arg0,_arg1,*_arg2); |
cf694132 | 3500 | |
474c48f9 | 3501 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3502 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3503 | } Py_INCREF(Py_None); |
3504 | _resultobj = Py_None; | |
3505 | { | |
3506 | if (_obj2) | |
3507 | delete _arg2; | |
3508 | } | |
8ab979d7 RD |
3509 | return _resultobj; |
3510 | } | |
3511 | ||
3512 | #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0)) | |
efc5f224 | 3513 | static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3514 | PyObject * _resultobj; |
3515 | long _result; | |
cd096152 | 3516 | wxPyListCtrl * _arg0; |
8ab979d7 | 3517 | long _arg1; |
1d99702e | 3518 | PyObject * _argo0 = 0; |
efc5f224 | 3519 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3520 | |
3521 | self = self; | |
efc5f224 | 3522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3523 | return NULL; |
1d99702e RD |
3524 | if (_argo0) { |
3525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3528 | return NULL; |
3529 | } | |
3530 | } | |
cf694132 | 3531 | { |
474c48f9 | 3532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3533 | _result = (long )wxListCtrl_GetItemData(_arg0,_arg1); |
cf694132 | 3534 | |
474c48f9 | 3535 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3536 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3537 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
3538 | return _resultobj; |
3539 | } | |
3540 | ||
cd096152 RD |
3541 | #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1)) |
3542 | static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3543 | PyObject * _resultobj; |
cd096152 RD |
3544 | bool _result; |
3545 | wxPyListCtrl * _arg0; | |
0699c864 | 3546 | long _arg1; |
cd096152 | 3547 | long _arg2; |
1d99702e | 3548 | PyObject * _argo0 = 0; |
cd096152 | 3549 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
3550 | |
3551 | self = self; | |
cd096152 | 3552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3553 | return NULL; |
1d99702e RD |
3554 | if (_argo0) { |
3555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3558 | return NULL; |
3559 | } | |
3560 | } | |
cf694132 | 3561 | { |
474c48f9 | 3562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3563 | _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2); |
cf694132 | 3564 | |
474c48f9 | 3565 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3566 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3567 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3568 | return _resultobj; |
3569 | } | |
3570 | ||
cd096152 | 3571 | static wxPoint * wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item) { |
8ab979d7 RD |
3572 | wxPoint* pos = new wxPoint; |
3573 | self->GetItemPosition(item, *pos); | |
3574 | return pos; | |
3575 | } | |
efc5f224 | 3576 | static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3577 | PyObject * _resultobj; |
3578 | wxPoint * _result; | |
cd096152 | 3579 | wxPyListCtrl * _arg0; |
8ab979d7 | 3580 | long _arg1; |
1d99702e | 3581 | PyObject * _argo0 = 0; |
efc5f224 | 3582 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3583 | char _ptemp[128]; |
3584 | ||
3585 | self = self; | |
efc5f224 | 3586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3587 | return NULL; |
1d99702e RD |
3588 | if (_argo0) { |
3589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3592 | return NULL; |
3593 | } | |
3594 | } | |
cf694132 | 3595 | { |
474c48f9 | 3596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3597 | _result = (wxPoint *)wxPyListCtrl_GetItemPosition(_arg0,_arg1); |
cf694132 | 3598 | |
474c48f9 | 3599 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3600 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3601 | } if (_result) { |
3602 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
3603 | _resultobj = Py_BuildValue("s",_ptemp); | |
3604 | } else { | |
3605 | Py_INCREF(Py_None); | |
3606 | _resultobj = Py_None; | |
3607 | } | |
8ab979d7 RD |
3608 | return _resultobj; |
3609 | } | |
3610 | ||
cd096152 | 3611 | static wxRect * wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code) { |
8ab979d7 RD |
3612 | wxRect* rect= new wxRect; |
3613 | self->GetItemRect(item, *rect, code); | |
3614 | return rect; | |
3615 | } | |
efc5f224 | 3616 | static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3617 | PyObject * _resultobj; |
3618 | wxRect * _result; | |
cd096152 | 3619 | wxPyListCtrl * _arg0; |
8ab979d7 | 3620 | long _arg1; |
1d99702e RD |
3621 | int _arg2 = (int ) (wxLIST_RECT_BOUNDS); |
3622 | PyObject * _argo0 = 0; | |
efc5f224 | 3623 | char *_kwnames[] = { "self","item","code", NULL }; |
8ab979d7 RD |
3624 | char _ptemp[128]; |
3625 | ||
3626 | self = self; | |
efc5f224 | 3627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3628 | return NULL; |
1d99702e RD |
3629 | if (_argo0) { |
3630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3633 | return NULL; |
3634 | } | |
3635 | } | |
cf694132 | 3636 | { |
474c48f9 | 3637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3638 | _result = (wxRect *)wxPyListCtrl_GetItemRect(_arg0,_arg1,_arg2); |
cf694132 | 3639 | |
474c48f9 | 3640 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3641 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3642 | } if (_result) { |
3643 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
3644 | _resultobj = Py_BuildValue("s",_ptemp); | |
3645 | } else { | |
3646 | Py_INCREF(Py_None); | |
3647 | _resultobj = Py_None; | |
3648 | } | |
8ab979d7 RD |
3649 | return _resultobj; |
3650 | } | |
3651 | ||
cd096152 RD |
3652 | #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1)) |
3653 | static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3654 | PyObject * _resultobj; |
cd096152 RD |
3655 | bool _result; |
3656 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3657 | long _arg1; |
cd096152 | 3658 | wxPoint * _arg2; |
1d99702e | 3659 | PyObject * _argo0 = 0; |
cd096152 RD |
3660 | wxPoint temp; |
3661 | PyObject * _obj2 = 0; | |
3662 | char *_kwnames[] = { "self","item","pos", NULL }; | |
8ab979d7 RD |
3663 | |
3664 | self = self; | |
cd096152 | 3665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3666 | return NULL; |
1d99702e RD |
3667 | if (_argo0) { |
3668 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3669 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3671 | return NULL; |
3672 | } | |
3673 | } | |
cd096152 RD |
3674 | { |
3675 | _arg2 = &temp; | |
3676 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3677 | return NULL; | |
3678 | } | |
cf694132 | 3679 | { |
474c48f9 | 3680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3681 | _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2); |
cf694132 | 3682 | |
474c48f9 | 3683 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3684 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3685 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3686 | return _resultobj; |
3687 | } | |
3688 | ||
3689 | #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
efc5f224 | 3690 | static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3691 | PyObject * _resultobj; |
3692 | int _result; | |
cd096152 | 3693 | wxPyListCtrl * _arg0; |
1d99702e | 3694 | PyObject * _argo0 = 0; |
efc5f224 | 3695 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3696 | |
3697 | self = self; | |
efc5f224 | 3698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3699 | return NULL; |
1d99702e RD |
3700 | if (_argo0) { |
3701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3704 | return NULL; |
3705 | } | |
3706 | } | |
cf694132 | 3707 | { |
474c48f9 | 3708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3709 | _result = (int )wxListCtrl_GetItemCount(_arg0); |
cf694132 | 3710 | |
474c48f9 | 3711 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3712 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3713 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3714 | return _resultobj; |
3715 | } | |
3716 | ||
cd096152 RD |
3717 | #define wxListCtrl_GetColumnCount(_swigobj) (_swigobj->GetColumnCount()) |
3718 | static PyObject *_wrap_wxListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3719 | PyObject * _resultobj; | |
3720 | int _result; | |
3721 | wxPyListCtrl * _arg0; | |
3722 | PyObject * _argo0 = 0; | |
3723 | char *_kwnames[] = { "self", NULL }; | |
3724 | ||
3725 | self = self; | |
3726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetColumnCount",_kwnames,&_argo0)) | |
3727 | return NULL; | |
3728 | if (_argo0) { | |
3729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnCount. Expected _wxPyListCtrl_p."); | |
3732 | return NULL; | |
3733 | } | |
3734 | } | |
3735 | { | |
474c48f9 | 3736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3737 | _result = (int )wxListCtrl_GetColumnCount(_arg0); |
cd096152 | 3738 | |
474c48f9 | 3739 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
3740 | if (PyErr_Occurred()) return NULL; |
3741 | } _resultobj = Py_BuildValue("i",_result); | |
3742 | return _resultobj; | |
3743 | } | |
3744 | ||
1a8372ba | 3745 | #define wxListCtrl_GetItemSpacing(_swigobj) (_swigobj->GetItemSpacing()) |
efc5f224 | 3746 | static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3747 | PyObject * _resultobj; |
1a8372ba | 3748 | wxSize * _result; |
cd096152 | 3749 | wxPyListCtrl * _arg0; |
1d99702e | 3750 | PyObject * _argo0 = 0; |
1a8372ba RD |
3751 | char *_kwnames[] = { "self", NULL }; |
3752 | char _ptemp[128]; | |
8ab979d7 RD |
3753 | |
3754 | self = self; | |
1a8372ba | 3755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemSpacing",_kwnames,&_argo0)) |
8ab979d7 | 3756 | return NULL; |
1d99702e RD |
3757 | if (_argo0) { |
3758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3761 | return NULL; |
3762 | } | |
3763 | } | |
cf694132 | 3764 | { |
474c48f9 | 3765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1a8372ba | 3766 | _result = new wxSize (wxListCtrl_GetItemSpacing(_arg0)); |
cf694132 | 3767 | |
474c48f9 | 3768 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3769 | if (PyErr_Occurred()) return NULL; |
1a8372ba RD |
3770 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
3771 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
3772 | return _resultobj; |
3773 | } | |
3774 | ||
b67a9327 RD |
3775 | #define wxListCtrl_SetItemSpacing(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSpacing(_swigarg0,_swigarg1)) |
3776 | static PyObject *_wrap_wxListCtrl_SetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3777 | PyObject * _resultobj; | |
3778 | wxPyListCtrl * _arg0; | |
3779 | int _arg1; | |
3780 | bool _arg2 = (bool ) FALSE; | |
3781 | PyObject * _argo0 = 0; | |
3782 | int tempbool2 = (int) FALSE; | |
3783 | char *_kwnames[] = { "self","spacing","isSmall", NULL }; | |
3784 | ||
3785 | self = self; | |
3786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxListCtrl_SetItemSpacing",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
3787 | return NULL; | |
3788 | if (_argo0) { | |
3789 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3790 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemSpacing. Expected _wxPyListCtrl_p."); | |
3792 | return NULL; | |
3793 | } | |
3794 | } | |
3795 | _arg2 = (bool ) tempbool2; | |
3796 | { | |
3797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3798 | wxListCtrl_SetItemSpacing(_arg0,_arg1,_arg2); | |
3799 | ||
3800 | wxPyEndAllowThreads(__tstate); | |
3801 | if (PyErr_Occurred()) return NULL; | |
3802 | } Py_INCREF(Py_None); | |
3803 | _resultobj = Py_None; | |
3804 | return _resultobj; | |
3805 | } | |
3806 | ||
cd096152 RD |
3807 | #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount()) |
3808 | static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3809 | PyObject * _resultobj; |
cd096152 RD |
3810 | int _result; |
3811 | wxPyListCtrl * _arg0; | |
1d99702e | 3812 | PyObject * _argo0 = 0; |
cd096152 | 3813 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3814 | |
3815 | self = self; | |
cd096152 | 3816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3817 | return NULL; |
1d99702e RD |
3818 | if (_argo0) { |
3819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3822 | return NULL; |
3823 | } | |
3824 | } | |
8ab979d7 | 3825 | { |
474c48f9 | 3826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3827 | _result = (int )wxListCtrl_GetSelectedItemCount(_arg0); |
cf694132 | 3828 | |
474c48f9 | 3829 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3830 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3831 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3832 | return _resultobj; |
3833 | } | |
3834 | ||
cd096152 RD |
3835 | #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
3836 | static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3837 | PyObject * _resultobj; |
cd096152 RD |
3838 | wxColour * _result; |
3839 | wxPyListCtrl * _arg0; | |
1d99702e | 3840 | PyObject * _argo0 = 0; |
cd096152 RD |
3841 | char *_kwnames[] = { "self", NULL }; |
3842 | char _ptemp[128]; | |
8ab979d7 RD |
3843 | |
3844 | self = self; | |
cd096152 | 3845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 3846 | return NULL; |
1d99702e RD |
3847 | if (_argo0) { |
3848 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3849 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3851 | return NULL; |
3852 | } | |
3853 | } | |
cf694132 | 3854 | { |
474c48f9 | 3855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3856 | _result = new wxColour (wxListCtrl_GetTextColour(_arg0)); |
cf694132 | 3857 | |
474c48f9 | 3858 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3859 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3860 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
3861 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
3862 | return _resultobj; |
3863 | } | |
3864 | ||
cd096152 RD |
3865 | #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
3866 | static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3867 | PyObject * _resultobj; |
cd096152 RD |
3868 | wxPyListCtrl * _arg0; |
3869 | wxColour * _arg1; | |
1d99702e | 3870 | PyObject * _argo0 = 0; |
cd096152 RD |
3871 | wxColour temp; |
3872 | PyObject * _obj1 = 0; | |
3873 | char *_kwnames[] = { "self","col", NULL }; | |
8ab979d7 RD |
3874 | |
3875 | self = self; | |
cd096152 | 3876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3877 | return NULL; |
1d99702e RD |
3878 | if (_argo0) { |
3879 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3880 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3881 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3882 | return NULL; |
3883 | } | |
3884 | } | |
cd096152 RD |
3885 | { |
3886 | _arg1 = &temp; | |
3887 | if (! wxColour_helper(_obj1, &_arg1)) | |
3888 | return NULL; | |
3889 | } | |
cf694132 | 3890 | { |
474c48f9 | 3891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3892 | wxListCtrl_SetTextColour(_arg0,*_arg1); |
cf694132 | 3893 | |
474c48f9 | 3894 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3895 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3896 | } Py_INCREF(Py_None); |
3897 | _resultobj = Py_None; | |
8ab979d7 RD |
3898 | return _resultobj; |
3899 | } | |
3900 | ||
8ab979d7 | 3901 | #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem()) |
efc5f224 | 3902 | static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3903 | PyObject * _resultobj; |
3904 | long _result; | |
cd096152 | 3905 | wxPyListCtrl * _arg0; |
1d99702e | 3906 | PyObject * _argo0 = 0; |
efc5f224 | 3907 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3908 | |
3909 | self = self; | |
efc5f224 | 3910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0)) |
8ab979d7 | 3911 | return NULL; |
1d99702e RD |
3912 | if (_argo0) { |
3913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3916 | return NULL; |
3917 | } | |
3918 | } | |
cf694132 | 3919 | { |
474c48f9 | 3920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3921 | _result = (long )wxListCtrl_GetTopItem(_arg0); |
cf694132 | 3922 | |
474c48f9 | 3923 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3924 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3925 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
3926 | return _resultobj; |
3927 | } | |
3928 | ||
cd096152 RD |
3929 | #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1)) |
3930 | static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3931 | PyObject * _resultobj; | |
3932 | wxPyListCtrl * _arg0; | |
3933 | long _arg1; | |
3934 | bool _arg2 = (bool ) TRUE; | |
1d99702e | 3935 | PyObject * _argo0 = 0; |
cd096152 RD |
3936 | int tempbool2 = (int) TRUE; |
3937 | char *_kwnames[] = { "self","style","add", NULL }; | |
8ab979d7 RD |
3938 | |
3939 | self = self; | |
cd096152 RD |
3940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2)) |
3941 | return NULL; | |
3942 | if (_argo0) { | |
3943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxPyListCtrl_p."); | |
3946 | return NULL; | |
3947 | } | |
3948 | } | |
3949 | _arg2 = (bool ) tempbool2; | |
8ab979d7 | 3950 | { |
474c48f9 | 3951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3952 | wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2); |
cd096152 | 3953 | |
474c48f9 | 3954 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
3955 | if (PyErr_Occurred()) return NULL; |
3956 | } Py_INCREF(Py_None); | |
3957 | _resultobj = Py_None; | |
3958 | return _resultobj; | |
8ab979d7 | 3959 | } |
cd096152 RD |
3960 | |
3961 | #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) | |
3962 | static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3963 | PyObject * _resultobj; | |
3964 | wxPyListCtrl * _arg0; | |
3965 | long _arg1; | |
3966 | PyObject * _argo0 = 0; | |
3967 | char *_kwnames[] = { "self","style", NULL }; | |
3968 | ||
3969 | self = self; | |
3970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
8ab979d7 | 3971 | return NULL; |
1d99702e RD |
3972 | if (_argo0) { |
3973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3976 | return NULL; |
3977 | } | |
3978 | } | |
2f90df85 | 3979 | { |
474c48f9 | 3980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3981 | wxListCtrl_SetWindowStyleFlag(_arg0,_arg1); |
cd096152 | 3982 | |
474c48f9 | 3983 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
3984 | if (PyErr_Occurred()) return NULL; |
3985 | } Py_INCREF(Py_None); | |
3986 | _resultobj = Py_None; | |
3987 | return _resultobj; | |
2f90df85 | 3988 | } |
cd096152 RD |
3989 | |
3990 | #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2)) | |
3991 | static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3992 | PyObject * _resultobj; | |
3993 | long _result; | |
3994 | wxPyListCtrl * _arg0; | |
3995 | long _arg1; | |
3996 | int _arg2 = (int ) (wxLIST_NEXT_ALL); | |
3997 | int _arg3 = (int ) (wxLIST_STATE_DONTCARE); | |
3998 | PyObject * _argo0 = 0; | |
3999 | char *_kwnames[] = { "self","item","geometry","state", NULL }; | |
4000 | ||
4001 | self = self; | |
4002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
4003 | return NULL; | |
4004 | if (_argo0) { | |
4005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxPyListCtrl_p."); | |
4008 | return NULL; | |
4009 | } | |
4010 | } | |
cf694132 | 4011 | { |
474c48f9 | 4012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4013 | _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 4014 | |
474c48f9 | 4015 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4016 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4017 | } _resultobj = Py_BuildValue("l",_result); |
cd096152 | 4018 | return _resultobj; |
8ab979d7 | 4019 | } |
cd096152 RD |
4020 | |
4021 | #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0)) | |
4022 | static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4023 | PyObject * _resultobj; | |
4024 | wxImageList * _result; | |
4025 | wxPyListCtrl * _arg0; | |
4026 | int _arg1; | |
4027 | PyObject * _argo0 = 0; | |
4028 | char *_kwnames[] = { "self","which", NULL }; | |
4029 | ||
4030 | self = self; | |
4031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1)) | |
4032 | return NULL; | |
4033 | if (_argo0) { | |
4034 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4035 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4036 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxPyListCtrl_p."); | |
4037 | return NULL; | |
4038 | } | |
4039 | } | |
4040 | { | |
474c48f9 | 4041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4042 | _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1); |
cd096152 | 4043 | |
474c48f9 | 4044 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4045 | if (PyErr_Occurred()) return NULL; |
4046 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
8ab979d7 RD |
4047 | return _resultobj; |
4048 | } | |
4049 | ||
cd096152 RD |
4050 | #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1)) |
4051 | static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4052 | PyObject * _resultobj; |
cd096152 RD |
4053 | wxPyListCtrl * _arg0; |
4054 | wxImageList * _arg1; | |
4055 | int _arg2; | |
1d99702e | 4056 | PyObject * _argo0 = 0; |
cd096152 RD |
4057 | PyObject * _argo1 = 0; |
4058 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
8ab979d7 RD |
4059 | |
4060 | self = self; | |
cd096152 | 4061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4062 | return NULL; |
1d99702e RD |
4063 | if (_argo0) { |
4064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4067 | return NULL; |
4068 | } | |
4069 | } | |
cd096152 RD |
4070 | if (_argo1) { |
4071 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4072 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p."); | |
8ab979d7 RD |
4074 | return NULL; |
4075 | } | |
4076 | } | |
cf694132 | 4077 | { |
474c48f9 | 4078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4079 | wxListCtrl_SetImageList(_arg0,_arg1,_arg2); |
cf694132 | 4080 | |
474c48f9 | 4081 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4082 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4083 | } Py_INCREF(Py_None); |
4084 | _resultobj = Py_None; | |
8ab979d7 RD |
4085 | return _resultobj; |
4086 | } | |
4087 | ||
cd096152 RD |
4088 | #define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1)) |
4089 | static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4090 | PyObject * _resultobj; |
cd096152 RD |
4091 | wxPyListCtrl * _arg0; |
4092 | wxImageList * _arg1; | |
4093 | int _arg2; | |
1d99702e | 4094 | PyObject * _argo0 = 0; |
cd096152 RD |
4095 | PyObject * _argo1 = 0; |
4096 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
8ab979d7 RD |
4097 | |
4098 | self = self; | |
cd096152 | 4099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4100 | return NULL; |
1d99702e RD |
4101 | if (_argo0) { |
4102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4105 | return NULL; |
4106 | } | |
4107 | } | |
cd096152 RD |
4108 | if (_argo1) { |
4109 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4110 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p."); | |
2cd2fac8 | 4112 | return NULL; |
cd096152 | 4113 | } |
2cd2fac8 | 4114 | } |
cd096152 | 4115 | { |
474c48f9 | 4116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4117 | wxListCtrl_AssignImageList(_arg0,_arg1,_arg2); |
cd096152 | 4118 | |
474c48f9 | 4119 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4120 | if (PyErr_Occurred()) return NULL; |
4121 | } Py_INCREF(Py_None); | |
4122 | _resultobj = Py_None; | |
4123 | return _resultobj; | |
4124 | } | |
4125 | ||
4126 | #define wxListCtrl_IsVirtual(_swigobj) (_swigobj->IsVirtual()) | |
4127 | static PyObject *_wrap_wxListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4128 | PyObject * _resultobj; | |
4129 | bool _result; | |
4130 | wxPyListCtrl * _arg0; | |
4131 | PyObject * _argo0 = 0; | |
4132 | char *_kwnames[] = { "self", NULL }; | |
4133 | ||
4134 | self = self; | |
4135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_IsVirtual",_kwnames,&_argo0)) | |
2cd2fac8 | 4136 | return NULL; |
cd096152 RD |
4137 | if (_argo0) { |
4138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_IsVirtual. Expected _wxPyListCtrl_p."); | |
8ab979d7 | 4141 | return NULL; |
cd096152 | 4142 | } |
8ab979d7 | 4143 | } |
cf694132 | 4144 | { |
474c48f9 | 4145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4146 | _result = (bool )wxListCtrl_IsVirtual(_arg0); |
cf694132 | 4147 | |
474c48f9 | 4148 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4149 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4150 | } _resultobj = Py_BuildValue("i",_result); |
4151 | return _resultobj; | |
8ab979d7 | 4152 | } |
cd096152 RD |
4153 | |
4154 | #define wxListCtrl_RefreshItem(_swigobj,_swigarg0) (_swigobj->RefreshItem(_swigarg0)) | |
4155 | static PyObject *_wrap_wxListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4156 | PyObject * _resultobj; | |
4157 | wxPyListCtrl * _arg0; | |
4158 | long _arg1; | |
4159 | PyObject * _argo0 = 0; | |
4160 | char *_kwnames[] = { "self","item", NULL }; | |
4161 | ||
4162 | self = self; | |
4163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_RefreshItem",_kwnames,&_argo0,&_arg1)) | |
4164 | return NULL; | |
4165 | if (_argo0) { | |
4166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItem. Expected _wxPyListCtrl_p."); | |
4169 | return NULL; | |
4170 | } | |
4171 | } | |
4172 | { | |
474c48f9 | 4173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4174 | wxListCtrl_RefreshItem(_arg0,_arg1); |
cd096152 | 4175 | |
474c48f9 | 4176 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4177 | if (PyErr_Occurred()) return NULL; |
4178 | } Py_INCREF(Py_None); | |
4179 | _resultobj = Py_None; | |
8ab979d7 RD |
4180 | return _resultobj; |
4181 | } | |
4182 | ||
cd096152 RD |
4183 | #define wxListCtrl_RefreshItems(_swigobj,_swigarg0,_swigarg1) (_swigobj->RefreshItems(_swigarg0,_swigarg1)) |
4184 | static PyObject *_wrap_wxListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4185 | PyObject * _resultobj; |
cd096152 RD |
4186 | wxPyListCtrl * _arg0; |
4187 | long _arg1; | |
4188 | long _arg2; | |
1d99702e | 4189 | PyObject * _argo0 = 0; |
cd096152 | 4190 | char *_kwnames[] = { "self","itemFrom","itemTo", NULL }; |
8ab979d7 RD |
4191 | |
4192 | self = self; | |
cd096152 | 4193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_RefreshItems",_kwnames,&_argo0,&_arg1,&_arg2)) |
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_RefreshItems. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4199 | return NULL; |
4200 | } | |
4201 | } | |
cd096152 | 4202 | { |
474c48f9 | 4203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4204 | wxListCtrl_RefreshItems(_arg0,_arg1,_arg2); |
cd096152 | 4205 | |
474c48f9 | 4206 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4207 | if (PyErr_Occurred()) return NULL; |
4208 | } Py_INCREF(Py_None); | |
4209 | _resultobj = Py_None; | |
4210 | return _resultobj; | |
4211 | } | |
4212 | ||
4213 | #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0)) | |
4214 | static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4215 | PyObject * _resultobj; | |
4216 | bool _result; | |
4217 | wxPyListCtrl * _arg0; | |
4218 | int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT); | |
4219 | PyObject * _argo0 = 0; | |
4220 | char *_kwnames[] = { "self","flag", NULL }; | |
4221 | ||
4222 | self = self; | |
4223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1)) | |
4224 | return NULL; | |
4225 | if (_argo0) { | |
4226 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4227 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4229 | return NULL; |
4230 | } | |
4231 | } | |
cf694132 | 4232 | { |
474c48f9 | 4233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4234 | _result = (bool )wxListCtrl_Arrange(_arg0,_arg1); |
cf694132 | 4235 | |
474c48f9 | 4236 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4237 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4238 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4239 | return _resultobj; |
4240 | } | |
4241 | ||
cd096152 RD |
4242 | #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0)) |
4243 | static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4244 | PyObject * _resultobj; |
cd096152 RD |
4245 | bool _result; |
4246 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4247 | long _arg1; |
1d99702e | 4248 | PyObject * _argo0 = 0; |
cd096152 | 4249 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4250 | |
4251 | self = self; | |
cd096152 | 4252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4253 | return NULL; |
1d99702e RD |
4254 | if (_argo0) { |
4255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4258 | return NULL; |
4259 | } | |
4260 | } | |
4261 | { | |
474c48f9 | 4262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4263 | _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1); |
cd096152 | 4264 | |
474c48f9 | 4265 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4266 | if (PyErr_Occurred()) return NULL; |
4267 | } _resultobj = Py_BuildValue("i",_result); | |
4268 | return _resultobj; | |
4269 | } | |
4270 | ||
4271 | #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
4272 | static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4273 | PyObject * _resultobj; | |
4274 | bool _result; | |
4275 | wxPyListCtrl * _arg0; | |
4276 | PyObject * _argo0 = 0; | |
4277 | char *_kwnames[] = { "self", NULL }; | |
4278 | ||
4279 | self = self; | |
4280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0)) | |
4281 | return NULL; | |
4282 | if (_argo0) { | |
4283 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4284 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxPyListCtrl_p."); | |
2cd2fac8 | 4286 | return NULL; |
cd096152 | 4287 | } |
2cd2fac8 | 4288 | } |
cd096152 | 4289 | { |
474c48f9 | 4290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4291 | _result = (bool )wxListCtrl_DeleteAllItems(_arg0); |
cd096152 | 4292 | |
474c48f9 | 4293 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4294 | if (PyErr_Occurred()) return NULL; |
4295 | } _resultobj = Py_BuildValue("i",_result); | |
4296 | return _resultobj; | |
4297 | } | |
4298 | ||
4299 | #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0)) | |
4300 | static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4301 | PyObject * _resultobj; | |
4302 | bool _result; | |
4303 | wxPyListCtrl * _arg0; | |
4304 | int _arg1; | |
4305 | PyObject * _argo0 = 0; | |
4306 | char *_kwnames[] = { "self","col", NULL }; | |
4307 | ||
4308 | self = self; | |
4309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1)) | |
2cd2fac8 | 4310 | return NULL; |
cd096152 RD |
4311 | if (_argo0) { |
4312 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4313 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4314 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxPyListCtrl_p."); | |
4315 | return NULL; | |
4316 | } | |
4317 | } | |
4318 | { | |
474c48f9 | 4319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4320 | _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1); |
cd096152 | 4321 | |
474c48f9 | 4322 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4323 | if (PyErr_Occurred()) return NULL; |
4324 | } _resultobj = Py_BuildValue("i",_result); | |
4325 | return _resultobj; | |
4326 | } | |
4327 | ||
4328 | #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns()) | |
4329 | static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4330 | PyObject * _resultobj; | |
4331 | bool _result; | |
4332 | wxPyListCtrl * _arg0; | |
4333 | PyObject * _argo0 = 0; | |
4334 | char *_kwnames[] = { "self", NULL }; | |
4335 | ||
4336 | self = self; | |
4337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0)) | |
4338 | return NULL; | |
4339 | if (_argo0) { | |
4340 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4341 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxPyListCtrl_p."); | |
4343 | return NULL; | |
4344 | } | |
4345 | } | |
4346 | { | |
474c48f9 | 4347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4348 | _result = (bool )wxListCtrl_DeleteAllColumns(_arg0); |
cd096152 | 4349 | |
474c48f9 | 4350 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4351 | if (PyErr_Occurred()) return NULL; |
4352 | } _resultobj = Py_BuildValue("i",_result); | |
4353 | return _resultobj; | |
4354 | } | |
4355 | ||
4356 | #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll()) | |
4357 | static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4358 | PyObject * _resultobj; | |
4359 | wxPyListCtrl * _arg0; | |
4360 | PyObject * _argo0 = 0; | |
4361 | char *_kwnames[] = { "self", NULL }; | |
4362 | ||
4363 | self = self; | |
4364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0)) | |
8ab979d7 | 4365 | return NULL; |
cd096152 RD |
4366 | if (_argo0) { |
4367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxPyListCtrl_p."); | |
4370 | return NULL; | |
4371 | } | |
8ab979d7 | 4372 | } |
cf694132 | 4373 | { |
474c48f9 | 4374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4375 | wxListCtrl_ClearAll(_arg0); |
cf694132 | 4376 | |
474c48f9 | 4377 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4378 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4379 | } Py_INCREF(Py_None); |
4380 | _resultobj = Py_None; | |
8ab979d7 RD |
4381 | return _resultobj; |
4382 | } | |
4383 | ||
b67a9327 RD |
4384 | #define wxListCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) |
4385 | static PyObject *_wrap_wxListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4386 | PyObject * _resultobj; | |
4387 | wxPyListCtrl * _arg0; | |
4388 | long _arg1; | |
4389 | PyObject * _argo0 = 0; | |
4390 | char *_kwnames[] = { "self","item", NULL }; | |
4391 | ||
4392 | self = self; | |
4393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EditLabel",_kwnames,&_argo0,&_arg1)) | |
4394 | return NULL; | |
4395 | if (_argo0) { | |
4396 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4397 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EditLabel. Expected _wxPyListCtrl_p."); | |
4399 | return NULL; | |
4400 | } | |
4401 | } | |
4402 | { | |
4403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4404 | wxListCtrl_EditLabel(_arg0,_arg1); | |
4405 | ||
4406 | wxPyEndAllowThreads(__tstate); | |
4407 | if (PyErr_Occurred()) return NULL; | |
4408 | } Py_INCREF(Py_None); | |
4409 | _resultobj = Py_None; | |
4410 | return _resultobj; | |
4411 | } | |
4412 | ||
cd096152 RD |
4413 | #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) |
4414 | static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4415 | PyObject * _resultobj; |
cd096152 RD |
4416 | bool _result; |
4417 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4418 | long _arg1; |
1d99702e | 4419 | PyObject * _argo0 = 0; |
cd096152 | 4420 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4421 | |
4422 | self = self; | |
cd096152 | 4423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4424 | return NULL; |
1d99702e RD |
4425 | if (_argo0) { |
4426 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4427 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4429 | return NULL; |
4430 | } | |
4431 | } | |
cf694132 | 4432 | { |
474c48f9 | 4433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4434 | _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1); |
cf694132 | 4435 | |
474c48f9 | 4436 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4437 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4438 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4439 | return _resultobj; |
4440 | } | |
4441 | ||
cd096152 RD |
4442 | #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4443 | static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4444 | PyObject * _resultobj; |
4445 | long _result; | |
cd096152 | 4446 | wxPyListCtrl * _arg0; |
8ab979d7 RD |
4447 | long _arg1; |
4448 | wxString * _arg2; | |
cd096152 | 4449 | bool _arg3 = (bool ) FALSE; |
1d99702e | 4450 | PyObject * _argo0 = 0; |
8ab979d7 | 4451 | PyObject * _obj2 = 0; |
cd096152 RD |
4452 | int tempbool3 = (int) FALSE; |
4453 | char *_kwnames[] = { "self","start","str","partial", NULL }; | |
8ab979d7 RD |
4454 | |
4455 | self = self; | |
cd096152 | 4456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
8ab979d7 | 4457 | return NULL; |
1d99702e RD |
4458 | if (_argo0) { |
4459 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4460 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4462 | return NULL; |
4463 | } | |
4464 | } | |
4465 | { | |
c8bc7bb8 RD |
4466 | _arg2 = wxString_in_helper(_obj2); |
4467 | if (_arg2 == NULL) | |
8ab979d7 | 4468 | return NULL; |
8ab979d7 | 4469 | } |
cd096152 | 4470 | _arg3 = (bool ) tempbool3; |
cf694132 | 4471 | { |
474c48f9 | 4472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4473 | _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4474 | |
474c48f9 | 4475 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4476 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4477 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4478 | { |
4479 | if (_obj2) | |
4480 | delete _arg2; | |
4481 | } | |
4482 | return _resultobj; | |
4483 | } | |
4484 | ||
cd096152 RD |
4485 | #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1)) |
4486 | static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4487 | PyObject * _resultobj; |
cd096152 RD |
4488 | long _result; |
4489 | wxPyListCtrl * _arg0; | |
4490 | long _arg1; | |
4491 | long _arg2; | |
1d99702e | 4492 | PyObject * _argo0 = 0; |
cd096152 | 4493 | char *_kwnames[] = { "self","start","data", NULL }; |
8ab979d7 RD |
4494 | |
4495 | self = self; | |
cd096152 | 4496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4497 | return NULL; |
1d99702e RD |
4498 | if (_argo0) { |
4499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4502 | return NULL; |
4503 | } | |
4504 | } | |
cf694132 | 4505 | { |
474c48f9 | 4506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4507 | _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2); |
cf694132 | 4508 | |
474c48f9 | 4509 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4510 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4511 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4512 | return _resultobj; |
4513 | } | |
4514 | ||
cd096152 RD |
4515 | #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4516 | static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4517 | PyObject * _resultobj; |
cd096152 RD |
4518 | long _result; |
4519 | wxPyListCtrl * _arg0; | |
4520 | long _arg1; | |
4521 | wxPoint * _arg2; | |
4522 | int _arg3; | |
1d99702e | 4523 | PyObject * _argo0 = 0; |
cd096152 RD |
4524 | wxPoint temp; |
4525 | PyObject * _obj2 = 0; | |
4526 | char *_kwnames[] = { "self","start","pt","direction", NULL }; | |
8ab979d7 RD |
4527 | |
4528 | self = self; | |
cd096152 | 4529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4530 | return NULL; |
1d99702e RD |
4531 | if (_argo0) { |
4532 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4533 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4535 | return NULL; |
4536 | } | |
4537 | } | |
f6bcfd97 | 4538 | { |
cd096152 RD |
4539 | _arg2 = &temp; |
4540 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 4541 | return NULL; |
f6bcfd97 | 4542 | } |
cf694132 | 4543 | { |
474c48f9 | 4544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4545 | _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4546 | |
474c48f9 | 4547 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4548 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4549 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4550 | return _resultobj; |
4551 | } | |
4552 | ||
cd096152 RD |
4553 | #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
4554 | static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4555 | PyObject * _resultobj; |
cd096152 RD |
4556 | long _result; |
4557 | wxPyListCtrl * _arg0; | |
4558 | wxPoint * _arg1; | |
4559 | int * _arg2; | |
4560 | int temp; | |
1d99702e | 4561 | PyObject * _argo0 = 0; |
cd096152 RD |
4562 | wxPoint temp0; |
4563 | PyObject * _obj1 = 0; | |
4564 | char *_kwnames[] = { "self","point", NULL }; | |
8ab979d7 RD |
4565 | |
4566 | self = self; | |
cf694132 | 4567 | { |
cd096152 | 4568 | _arg2 = &temp; |
8ab979d7 | 4569 | } |
cd096152 | 4570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4571 | return NULL; |
1d99702e RD |
4572 | if (_argo0) { |
4573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4576 | return NULL; |
4577 | } | |
4578 | } | |
cf694132 | 4579 | { |
cd096152 RD |
4580 | _arg1 = &temp0; |
4581 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4582 | return NULL; |
cd096152 | 4583 | } |
cf694132 | 4584 | { |
474c48f9 | 4585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4586 | _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2); |
cf694132 | 4587 | |
474c48f9 | 4588 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4589 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4590 | } _resultobj = Py_BuildValue("l",_result); |
4591 | { | |
4592 | PyObject *o; | |
4593 | o = PyInt_FromLong((long) (*_arg2)); | |
4594 | _resultobj = t_output_helper(_resultobj, o); | |
4595 | } | |
8ab979d7 RD |
4596 | return _resultobj; |
4597 | } | |
4598 | ||
cd096152 RD |
4599 | #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0)) |
4600 | static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4601 | PyObject * _resultobj; |
cd096152 RD |
4602 | long _result; |
4603 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4604 | wxListItem * _arg1; |
1d99702e RD |
4605 | PyObject * _argo0 = 0; |
4606 | PyObject * _argo1 = 0; | |
efc5f224 | 4607 | char *_kwnames[] = { "self","info", NULL }; |
8ab979d7 RD |
4608 | |
4609 | self = self; | |
cd096152 | 4610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4611 | return NULL; |
1d99702e RD |
4612 | if (_argo0) { |
4613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4616 | return NULL; |
4617 | } | |
4618 | } | |
1d99702e | 4619 | if (_argo1) { |
b67a9327 | 4620 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { |
cd096152 | 4621 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p."); |
8ab979d7 RD |
4622 | return NULL; |
4623 | } | |
4624 | } | |
cf694132 | 4625 | { |
474c48f9 | 4626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4627 | _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1); |
cf694132 | 4628 | |
474c48f9 | 4629 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4630 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4631 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4632 | return _resultobj; |
4633 | } | |
4634 | ||
cd096152 RD |
4635 | #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) |
4636 | static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4637 | PyObject * _resultobj; |
4638 | long _result; | |
cd096152 | 4639 | wxPyListCtrl * _arg0; |
8ab979d7 | 4640 | long _arg1; |
cd096152 | 4641 | wxString * _arg2; |
1d99702e | 4642 | PyObject * _argo0 = 0; |
cd096152 RD |
4643 | PyObject * _obj2 = 0; |
4644 | char *_kwnames[] = { "self","index","label", NULL }; | |
8ab979d7 RD |
4645 | |
4646 | self = self; | |
cd096152 | 4647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4648 | return NULL; |
1d99702e RD |
4649 | if (_argo0) { |
4650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4653 | return NULL; |
4654 | } | |
4655 | } | |
4656 | { | |
c8bc7bb8 RD |
4657 | _arg2 = wxString_in_helper(_obj2); |
4658 | if (_arg2 == NULL) | |
8ab979d7 | 4659 | return NULL; |
8ab979d7 | 4660 | } |
cf694132 | 4661 | { |
474c48f9 | 4662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4663 | _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2); |
cf694132 | 4664 | |
474c48f9 | 4665 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4666 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4667 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 4668 | { |
cd096152 RD |
4669 | if (_obj2) |
4670 | delete _arg2; | |
4671 | } | |
8ab979d7 RD |
4672 | return _resultobj; |
4673 | } | |
4674 | ||
cd096152 RD |
4675 | #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) |
4676 | static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4677 | PyObject * _resultobj; |
cd096152 RD |
4678 | long _result; |
4679 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4680 | long _arg1; |
4681 | int _arg2; | |
1d99702e | 4682 | PyObject * _argo0 = 0; |
cd096152 | 4683 | char *_kwnames[] = { "self","index","imageIndex", NULL }; |
8ab979d7 RD |
4684 | |
4685 | self = self; | |
cd096152 | 4686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4687 | return NULL; |
1d99702e RD |
4688 | if (_argo0) { |
4689 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4690 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4691 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4692 | return NULL; |
4693 | } | |
4694 | } | |
cf694132 | 4695 | { |
474c48f9 | 4696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4697 | _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2); |
cf694132 | 4698 | |
474c48f9 | 4699 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4700 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4701 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4702 | return _resultobj; |
4703 | } | |
4704 | ||
cd096152 RD |
4705 | #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2)) |
4706 | static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4707 | PyObject * _resultobj; |
cd096152 RD |
4708 | long _result; |
4709 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4710 | long _arg1; |
cd096152 RD |
4711 | wxString * _arg2; |
4712 | int _arg3; | |
1d99702e | 4713 | PyObject * _argo0 = 0; |
2f90df85 | 4714 | PyObject * _obj2 = 0; |
cd096152 | 4715 | char *_kwnames[] = { "self","index","label","imageIndex", NULL }; |
8ab979d7 RD |
4716 | |
4717 | self = self; | |
cd096152 | 4718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4719 | return NULL; |
1d99702e RD |
4720 | if (_argo0) { |
4721 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4724 | return NULL; |
4725 | } | |
4726 | } | |
2f90df85 | 4727 | { |
c8bc7bb8 RD |
4728 | _arg2 = wxString_in_helper(_obj2); |
4729 | if (_arg2 == NULL) | |
8ab979d7 | 4730 | return NULL; |
2f90df85 | 4731 | } |
cf694132 | 4732 | { |
474c48f9 | 4733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4734 | _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4735 | |
474c48f9 | 4736 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4737 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4738 | } _resultobj = Py_BuildValue("l",_result); |
4739 | { | |
4740 | if (_obj2) | |
4741 | delete _arg2; | |
4742 | } | |
8ab979d7 RD |
4743 | return _resultobj; |
4744 | } | |
4745 | ||
cd096152 RD |
4746 | #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) |
4747 | static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4748 | PyObject * _resultobj; |
cd096152 RD |
4749 | long _result; |
4750 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4751 | long _arg1; |
cd096152 | 4752 | wxListItem * _arg2; |
1d99702e | 4753 | PyObject * _argo0 = 0; |
cd096152 RD |
4754 | PyObject * _argo2 = 0; |
4755 | char *_kwnames[] = { "self","col","info", NULL }; | |
8ab979d7 RD |
4756 | |
4757 | self = self; | |
cd096152 | 4758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 4759 | return NULL; |
1d99702e RD |
4760 | if (_argo0) { |
4761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxPyListCtrl_p."); | |
4764 | return NULL; | |
4765 | } | |
4766 | } | |
4767 | if (_argo2) { | |
b67a9327 | 4768 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { |
cd096152 | 4769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p."); |
8ab979d7 RD |
4770 | return NULL; |
4771 | } | |
4772 | } | |
cf694132 | 4773 | { |
474c48f9 | 4774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4775 | _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2); |
cf694132 | 4776 | |
474c48f9 | 4777 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4778 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4779 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4780 | return _resultobj; |
4781 | } | |
4782 | ||
cd096152 RD |
4783 | #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4784 | static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4785 | PyObject * _resultobj; |
cd096152 RD |
4786 | long _result; |
4787 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4788 | long _arg1; |
4789 | wxString * _arg2; | |
cd096152 RD |
4790 | int _arg3 = (int ) (wxLIST_FORMAT_LEFT); |
4791 | int _arg4 = (int ) -1; | |
1d99702e | 4792 | PyObject * _argo0 = 0; |
8ab979d7 | 4793 | PyObject * _obj2 = 0; |
cd096152 | 4794 | char *_kwnames[] = { "self","col","heading","format","width", NULL }; |
8ab979d7 RD |
4795 | |
4796 | self = self; | |
cd096152 | 4797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 4798 | return NULL; |
1d99702e RD |
4799 | if (_argo0) { |
4800 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4801 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4802 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4803 | return NULL; |
4804 | } | |
4805 | } | |
4806 | { | |
c8bc7bb8 RD |
4807 | _arg2 = wxString_in_helper(_obj2); |
4808 | if (_arg2 == NULL) | |
8ab979d7 | 4809 | return NULL; |
8ab979d7 | 4810 | } |
cf694132 | 4811 | { |
474c48f9 | 4812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4813 | _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4); |
cf694132 | 4814 | |
474c48f9 | 4815 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4816 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4817 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4818 | { |
4819 | if (_obj2) | |
4820 | delete _arg2; | |
4821 | } | |
4822 | return _resultobj; | |
4823 | } | |
4824 | ||
cd096152 RD |
4825 | #define wxListCtrl_SetItemCount(_swigobj,_swigarg0) (_swigobj->SetItemCount(_swigarg0)) |
4826 | static PyObject *_wrap_wxListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4827 | PyObject * _resultobj; |
cd096152 | 4828 | wxPyListCtrl * _arg0; |
8ab979d7 | 4829 | long _arg1; |
1d99702e | 4830 | PyObject * _argo0 = 0; |
cd096152 | 4831 | char *_kwnames[] = { "self","count", NULL }; |
8ab979d7 RD |
4832 | |
4833 | self = self; | |
cd096152 | 4834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetItemCount",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4835 | return NULL; |
1d99702e RD |
4836 | if (_argo0) { |
4837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4840 | return NULL; |
4841 | } | |
4842 | } | |
cf694132 | 4843 | { |
474c48f9 | 4844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4845 | wxListCtrl_SetItemCount(_arg0,_arg1); |
cf694132 | 4846 | |
474c48f9 | 4847 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4848 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4849 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4850 | _resultobj = Py_None; |
4851 | return _resultobj; | |
4852 | } | |
4853 | ||
cd096152 RD |
4854 | #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1)) |
4855 | static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4856 | PyObject * _resultobj; |
cd096152 RD |
4857 | bool _result; |
4858 | wxPyListCtrl * _arg0; | |
4859 | int _arg1; | |
4860 | int _arg2; | |
1d99702e | 4861 | PyObject * _argo0 = 0; |
cd096152 | 4862 | char *_kwnames[] = { "self","dx","dy", NULL }; |
8ab979d7 RD |
4863 | |
4864 | self = self; | |
cd096152 | 4865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4866 | return NULL; |
1d99702e RD |
4867 | if (_argo0) { |
4868 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4869 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4871 | return NULL; |
4872 | } | |
4873 | } | |
cf694132 | 4874 | { |
474c48f9 | 4875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4876 | _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2); |
cf694132 | 4877 | |
474c48f9 | 4878 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4879 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4880 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4881 | return _resultobj; |
4882 | } | |
4883 | ||
8381e4cd RD |
4884 | #define wxListCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
4885 | static PyObject *_wrap_wxListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4886 | PyObject * _resultobj; | |
4887 | wxPyListCtrl * _arg0; | |
4888 | long _arg1; | |
4889 | wxColour * _arg2; | |
4890 | PyObject * _argo0 = 0; | |
4891 | wxColour temp; | |
4892 | PyObject * _obj2 = 0; | |
4893 | char *_kwnames[] = { "self","item","col", NULL }; | |
4894 | ||
4895 | self = self; | |
4896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemTextColour",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4897 | return NULL; | |
4898 | if (_argo0) { | |
4899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemTextColour. Expected _wxPyListCtrl_p."); | |
4902 | return NULL; | |
4903 | } | |
4904 | } | |
4905 | { | |
4906 | _arg2 = &temp; | |
4907 | if (! wxColour_helper(_obj2, &_arg2)) | |
4908 | return NULL; | |
4909 | } | |
4910 | { | |
4911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4912 | wxListCtrl_SetItemTextColour(_arg0,_arg1,*_arg2); | |
4913 | ||
4914 | wxPyEndAllowThreads(__tstate); | |
4915 | if (PyErr_Occurred()) return NULL; | |
4916 | } Py_INCREF(Py_None); | |
4917 | _resultobj = Py_None; | |
4918 | return _resultobj; | |
4919 | } | |
4920 | ||
4921 | #define wxListCtrl_GetItemTextColour(_swigobj,_swigarg0) (_swigobj->GetItemTextColour(_swigarg0)) | |
4922 | static PyObject *_wrap_wxListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4923 | PyObject * _resultobj; | |
4924 | wxColour * _result; | |
4925 | wxPyListCtrl * _arg0; | |
4926 | long _arg1; | |
4927 | PyObject * _argo0 = 0; | |
4928 | char *_kwnames[] = { "self","item", NULL }; | |
4929 | char _ptemp[128]; | |
4930 | ||
4931 | self = self; | |
4932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemTextColour",_kwnames,&_argo0,&_arg1)) | |
4933 | return NULL; | |
4934 | if (_argo0) { | |
4935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemTextColour. Expected _wxPyListCtrl_p."); | |
4938 | return NULL; | |
4939 | } | |
4940 | } | |
4941 | { | |
4942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4943 | _result = new wxColour (wxListCtrl_GetItemTextColour(_arg0,_arg1)); | |
4944 | ||
4945 | wxPyEndAllowThreads(__tstate); | |
4946 | if (PyErr_Occurred()) return NULL; | |
4947 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
4948 | _resultobj = Py_BuildValue("s",_ptemp); | |
4949 | return _resultobj; | |
4950 | } | |
4951 | ||
4952 | #define wxListCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
4953 | static PyObject *_wrap_wxListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4954 | PyObject * _resultobj; | |
4955 | wxPyListCtrl * _arg0; | |
4956 | long _arg1; | |
4957 | wxColour * _arg2; | |
4958 | PyObject * _argo0 = 0; | |
4959 | wxColour temp; | |
4960 | PyObject * _obj2 = 0; | |
4961 | char *_kwnames[] = { "self","item","col", NULL }; | |
4962 | ||
4963 | self = self; | |
4964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4965 | return NULL; | |
4966 | if (_argo0) { | |
4967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemBackgroundColour. Expected _wxPyListCtrl_p."); | |
4970 | return NULL; | |
4971 | } | |
4972 | } | |
4973 | { | |
4974 | _arg2 = &temp; | |
4975 | if (! wxColour_helper(_obj2, &_arg2)) | |
4976 | return NULL; | |
4977 | } | |
4978 | { | |
4979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4980 | wxListCtrl_SetItemBackgroundColour(_arg0,_arg1,*_arg2); | |
4981 | ||
4982 | wxPyEndAllowThreads(__tstate); | |
4983 | if (PyErr_Occurred()) return NULL; | |
4984 | } Py_INCREF(Py_None); | |
4985 | _resultobj = Py_None; | |
4986 | return _resultobj; | |
4987 | } | |
4988 | ||
4989 | #define wxListCtrl_GetItemBackgroundColour(_swigobj,_swigarg0) (_swigobj->GetItemBackgroundColour(_swigarg0)) | |
4990 | static PyObject *_wrap_wxListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4991 | PyObject * _resultobj; | |
4992 | wxColour * _result; | |
4993 | wxPyListCtrl * _arg0; | |
4994 | long _arg1; | |
4995 | PyObject * _argo0 = 0; | |
4996 | char *_kwnames[] = { "self","item", NULL }; | |
4997 | char _ptemp[128]; | |
4998 | ||
4999 | self = self; | |
5000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemBackgroundColour",_kwnames,&_argo0,&_arg1)) | |
5001 | return NULL; | |
5002 | if (_argo0) { | |
5003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
5005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemBackgroundColour. Expected _wxPyListCtrl_p."); | |
5006 | return NULL; | |
5007 | } | |
5008 | } | |
5009 | { | |
5010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5011 | _result = new wxColour (wxListCtrl_GetItemBackgroundColour(_arg0,_arg1)); | |
5012 | ||
5013 | wxPyEndAllowThreads(__tstate); | |
5014 | if (PyErr_Occurred()) return NULL; | |
5015 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
5016 | _resultobj = Py_BuildValue("s",_ptemp); | |
5017 | return _resultobj; | |
5018 | } | |
5019 | ||
cd096152 | 5020 | static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject * func) { |
dcd38683 RD |
5021 | if (!PyCallable_Check(func)) |
5022 | return FALSE; | |
f6bcfd97 | 5023 | return self->SortItems(wxPyListCtrl_SortItems, (long)func); |
dcd38683 RD |
5024 | } |
5025 | static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5026 | PyObject * _resultobj; | |
5027 | bool _result; | |
cd096152 | 5028 | wxPyListCtrl * _arg0; |
dcd38683 RD |
5029 | PyObject * _arg1; |
5030 | PyObject * _argo0 = 0; | |
5031 | PyObject * _obj1 = 0; | |
5032 | char *_kwnames[] = { "self","func", NULL }; | |
5033 | ||
5034 | self = self; | |
5035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1)) | |
5036 | return NULL; | |
5037 | if (_argo0) { | |
5038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
5039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxPyListCtrl_p."); | |
dcd38683 RD |
5041 | return NULL; |
5042 | } | |
5043 | } | |
5044 | { | |
5045 | _arg1 = _obj1; | |
5046 | } | |
5047 | { | |
474c48f9 | 5048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5049 | _result = (bool )wxPyListCtrl_SortItems(_arg0,_arg1); |
dcd38683 | 5050 | |
474c48f9 | 5051 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5052 | if (PyErr_Occurred()) return NULL; |
dcd38683 RD |
5053 | } _resultobj = Py_BuildValue("i",_result); |
5054 | return _resultobj; | |
5055 | } | |
5056 | ||
57ee4c3b RD |
5057 | static wxWindow * wxPyListCtrl_GetMainWindow(wxPyListCtrl *self) { |
5058 | #ifdef __WXMSW__ | |
5059 | return self; | |
5060 | #else | |
5061 | return (wxWindow*)self->m_mainWin; | |
5062 | #endif | |
5063 | } | |
5064 | static PyObject *_wrap_wxListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5065 | PyObject * _resultobj; | |
5066 | wxWindow * _result; | |
5067 | wxPyListCtrl * _arg0; | |
5068 | PyObject * _argo0 = 0; | |
5069 | char *_kwnames[] = { "self", NULL }; | |
5070 | ||
5071 | self = self; | |
5072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetMainWindow",_kwnames,&_argo0)) | |
5073 | return NULL; | |
5074 | if (_argo0) { | |
5075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
5077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetMainWindow. Expected _wxPyListCtrl_p."); | |
5078 | return NULL; | |
5079 | } | |
5080 | } | |
5081 | { | |
5082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5083 | _result = (wxWindow *)wxPyListCtrl_GetMainWindow(_arg0); | |
5084 | ||
5085 | wxPyEndAllowThreads(__tstate); | |
5086 | if (PyErr_Occurred()) return NULL; | |
5087 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5088 | return _resultobj; | |
5089 | } | |
5090 | ||
059a841c RD |
5091 | static void *SwigwxListViewTowxPyListCtrl(void *ptr) { |
5092 | wxListView *src; | |
5093 | wxPyListCtrl *dest; | |
5094 | src = (wxListView *) ptr; | |
5095 | dest = (wxPyListCtrl *) src; | |
5096 | return (void *) dest; | |
5097 | } | |
5098 | ||
5099 | static void *SwigwxListViewTowxControl(void *ptr) { | |
5100 | wxListView *src; | |
5101 | wxControl *dest; | |
5102 | src = (wxListView *) ptr; | |
5103 | dest = (wxControl *) src; | |
5104 | return (void *) dest; | |
5105 | } | |
5106 | ||
5107 | static void *SwigwxListViewTowxWindow(void *ptr) { | |
5108 | wxListView *src; | |
5109 | wxWindow *dest; | |
5110 | src = (wxListView *) ptr; | |
5111 | dest = (wxWindow *) src; | |
5112 | return (void *) dest; | |
5113 | } | |
5114 | ||
5115 | static void *SwigwxListViewTowxEvtHandler(void *ptr) { | |
5116 | wxListView *src; | |
5117 | wxEvtHandler *dest; | |
5118 | src = (wxListView *) ptr; | |
5119 | dest = (wxEvtHandler *) src; | |
5120 | return (void *) dest; | |
5121 | } | |
5122 | ||
5123 | static void *SwigwxListViewTowxObject(void *ptr) { | |
5124 | wxListView *src; | |
5125 | wxObject *dest; | |
5126 | src = (wxListView *) ptr; | |
5127 | dest = (wxObject *) src; | |
5128 | return (void *) dest; | |
5129 | } | |
5130 | ||
5131 | #define new_wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5132 | static PyObject *_wrap_new_wxListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5133 | PyObject * _resultobj; | |
5134 | wxListView * _result; | |
5135 | wxWindow * _arg0; | |
5136 | wxWindowID _arg1 = (wxWindowID ) -1; | |
5137 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
5138 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5139 | long _arg4 = (long ) (wxLC_REPORT); | |
5140 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 5141 | wxString * _arg6 = (wxString *) &wxPyListCtrlNameStr; |
059a841c RD |
5142 | PyObject * _argo0 = 0; |
5143 | wxPoint temp; | |
5144 | PyObject * _obj2 = 0; | |
5145 | wxSize temp0; | |
5146 | PyObject * _obj3 = 0; | |
5147 | PyObject * _argo5 = 0; | |
5148 | PyObject * _obj6 = 0; | |
5149 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
5150 | char _ptemp[128]; | |
5151 | ||
5152 | self = self; | |
5153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListView",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) | |
5154 | return NULL; | |
5155 | if (_argo0) { | |
5156 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5157 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListView. Expected _wxWindow_p."); | |
5159 | return NULL; | |
5160 | } | |
5161 | } | |
5162 | if (_obj2) | |
5163 | { | |
5164 | _arg2 = &temp; | |
5165 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5166 | return NULL; | |
5167 | } | |
5168 | if (_obj3) | |
5169 | { | |
5170 | _arg3 = &temp0; | |
5171 | if (! wxSize_helper(_obj3, &_arg3)) | |
5172 | return NULL; | |
5173 | } | |
5174 | if (_argo5) { | |
b67a9327 | 5175 | if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { |
059a841c RD |
5176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListView. Expected _wxValidator_p."); |
5177 | return NULL; | |
5178 | } | |
5179 | } | |
5180 | if (_obj6) | |
5181 | { | |
c8bc7bb8 RD |
5182 | _arg6 = wxString_in_helper(_obj6); |
5183 | if (_arg6 == NULL) | |
059a841c | 5184 | return NULL; |
059a841c RD |
5185 | } |
5186 | { | |
474c48f9 | 5187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5188 | _result = (wxListView *)new_wxListView(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
059a841c | 5189 | |
474c48f9 | 5190 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5191 | if (PyErr_Occurred()) return NULL; |
5192 | } if (_result) { | |
5193 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5194 | _resultobj = Py_BuildValue("s",_ptemp); | |
5195 | } else { | |
5196 | Py_INCREF(Py_None); | |
5197 | _resultobj = Py_None; | |
5198 | } | |
5199 | { | |
5200 | if (_obj6) | |
5201 | delete _arg6; | |
5202 | } | |
5203 | return _resultobj; | |
5204 | } | |
5205 | ||
5206 | #define new_wxPreListView() (new wxListView()) | |
5207 | static PyObject *_wrap_new_wxPreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5208 | PyObject * _resultobj; | |
5209 | wxListView * _result; | |
5210 | char *_kwnames[] = { NULL }; | |
5211 | char _ptemp[128]; | |
5212 | ||
5213 | self = self; | |
5214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListView",_kwnames)) | |
5215 | return NULL; | |
5216 | { | |
474c48f9 | 5217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5218 | _result = (wxListView *)new_wxPreListView(); |
059a841c | 5219 | |
474c48f9 | 5220 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5221 | if (PyErr_Occurred()) return NULL; |
5222 | } if (_result) { | |
5223 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5224 | _resultobj = Py_BuildValue("s",_ptemp); | |
5225 | } else { | |
5226 | Py_INCREF(Py_None); | |
5227 | _resultobj = Py_None; | |
5228 | } | |
5229 | return _resultobj; | |
5230 | } | |
5231 | ||
5232 | #define wxListView_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5233 | static PyObject *_wrap_wxListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5234 | PyObject * _resultobj; | |
5235 | bool _result; | |
5236 | wxListView * _arg0; | |
5237 | wxWindow * _arg1; | |
5238 | wxWindowID _arg2 = (wxWindowID ) -1; | |
5239 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5240 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5241 | long _arg5 = (long ) (wxLC_REPORT); | |
5242 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 5243 | wxString * _arg7 = (wxString *) &wxPyListCtrlNameStr; |
059a841c RD |
5244 | PyObject * _argo0 = 0; |
5245 | PyObject * _argo1 = 0; | |
5246 | wxPoint temp; | |
5247 | PyObject * _obj3 = 0; | |
5248 | wxSize temp0; | |
5249 | PyObject * _obj4 = 0; | |
5250 | PyObject * _argo6 = 0; | |
5251 | PyObject * _obj7 = 0; | |
5252 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
5253 | ||
5254 | self = self; | |
5255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListView_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
5256 | return NULL; | |
5257 | if (_argo0) { | |
5258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Create. Expected _wxListView_p."); | |
5261 | return NULL; | |
5262 | } | |
5263 | } | |
5264 | if (_argo1) { | |
5265 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5266 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListView_Create. Expected _wxWindow_p."); | |
5268 | return NULL; | |
5269 | } | |
5270 | } | |
5271 | if (_obj3) | |
5272 | { | |
5273 | _arg3 = &temp; | |
5274 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5275 | return NULL; | |
5276 | } | |
5277 | if (_obj4) | |
5278 | { | |
5279 | _arg4 = &temp0; | |
5280 | if (! wxSize_helper(_obj4, &_arg4)) | |
5281 | return NULL; | |
5282 | } | |
5283 | if (_argo6) { | |
b67a9327 | 5284 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { |
059a841c RD |
5285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListView_Create. Expected _wxValidator_p."); |
5286 | return NULL; | |
5287 | } | |
5288 | } | |
5289 | if (_obj7) | |
5290 | { | |
c8bc7bb8 RD |
5291 | _arg7 = wxString_in_helper(_obj7); |
5292 | if (_arg7 == NULL) | |
059a841c | 5293 | return NULL; |
059a841c RD |
5294 | } |
5295 | { | |
474c48f9 | 5296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5297 | _result = (bool )wxListView_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
059a841c | 5298 | |
474c48f9 | 5299 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5300 | if (PyErr_Occurred()) return NULL; |
5301 | } _resultobj = Py_BuildValue("i",_result); | |
5302 | { | |
5303 | if (_obj7) | |
5304 | delete _arg7; | |
5305 | } | |
5306 | return _resultobj; | |
5307 | } | |
5308 | ||
5309 | #define wxListView_Select(_swigobj,_swigarg0,_swigarg1) (_swigobj->Select(_swigarg0,_swigarg1)) | |
5310 | static PyObject *_wrap_wxListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5311 | PyObject * _resultobj; | |
5312 | wxListView * _arg0; | |
5313 | long _arg1; | |
5314 | bool _arg2 = (bool ) TRUE; | |
5315 | PyObject * _argo0 = 0; | |
5316 | int tempbool2 = (int) TRUE; | |
5317 | char *_kwnames[] = { "self","n","on", NULL }; | |
5318 | ||
5319 | self = self; | |
5320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListView_Select",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
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_Select. Expected _wxListView_p."); | |
5326 | return NULL; | |
5327 | } | |
5328 | } | |
5329 | _arg2 = (bool ) tempbool2; | |
5330 | { | |
474c48f9 | 5331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5332 | wxListView_Select(_arg0,_arg1,_arg2); |
059a841c | 5333 | |
474c48f9 | 5334 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5335 | if (PyErr_Occurred()) return NULL; |
5336 | } Py_INCREF(Py_None); | |
5337 | _resultobj = Py_None; | |
5338 | return _resultobj; | |
5339 | } | |
5340 | ||
5341 | #define wxListView_Focus(_swigobj,_swigarg0) (_swigobj->Focus(_swigarg0)) | |
5342 | static PyObject *_wrap_wxListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5343 | PyObject * _resultobj; | |
5344 | wxListView * _arg0; | |
5345 | long _arg1; | |
5346 | PyObject * _argo0 = 0; | |
5347 | char *_kwnames[] = { "self","index", NULL }; | |
5348 | ||
5349 | self = self; | |
5350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_Focus",_kwnames,&_argo0,&_arg1)) | |
5351 | return NULL; | |
5352 | if (_argo0) { | |
5353 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5354 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5355 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Focus. Expected _wxListView_p."); | |
5356 | return NULL; | |
5357 | } | |
5358 | } | |
5359 | { | |
474c48f9 | 5360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5361 | wxListView_Focus(_arg0,_arg1); |
059a841c | 5362 | |
474c48f9 | 5363 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5364 | if (PyErr_Occurred()) return NULL; |
5365 | } Py_INCREF(Py_None); | |
5366 | _resultobj = Py_None; | |
5367 | return _resultobj; | |
5368 | } | |
5369 | ||
5370 | #define wxListView_GetFocusedItem(_swigobj) (_swigobj->GetFocusedItem()) | |
5371 | static PyObject *_wrap_wxListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5372 | PyObject * _resultobj; | |
5373 | long _result; | |
5374 | wxListView * _arg0; | |
5375 | PyObject * _argo0 = 0; | |
5376 | char *_kwnames[] = { "self", NULL }; | |
5377 | ||
5378 | self = self; | |
5379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFocusedItem",_kwnames,&_argo0)) | |
5380 | return NULL; | |
5381 | if (_argo0) { | |
5382 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5383 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFocusedItem. Expected _wxListView_p."); | |
5385 | return NULL; | |
5386 | } | |
5387 | } | |
5388 | { | |
474c48f9 | 5389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5390 | _result = (long )wxListView_GetFocusedItem(_arg0); |
059a841c | 5391 | |
474c48f9 | 5392 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5393 | if (PyErr_Occurred()) return NULL; |
5394 | } _resultobj = Py_BuildValue("l",_result); | |
5395 | return _resultobj; | |
5396 | } | |
5397 | ||
5398 | #define wxListView_GetNextSelected(_swigobj,_swigarg0) (_swigobj->GetNextSelected(_swigarg0)) | |
5399 | static PyObject *_wrap_wxListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5400 | PyObject * _resultobj; | |
5401 | long _result; | |
5402 | wxListView * _arg0; | |
5403 | long _arg1; | |
5404 | PyObject * _argo0 = 0; | |
5405 | char *_kwnames[] = { "self","item", NULL }; | |
5406 | ||
5407 | self = self; | |
5408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_GetNextSelected",_kwnames,&_argo0,&_arg1)) | |
5409 | return NULL; | |
5410 | if (_argo0) { | |
5411 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5412 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetNextSelected. Expected _wxListView_p."); | |
5414 | return NULL; | |
5415 | } | |
5416 | } | |
5417 | { | |
474c48f9 | 5418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5419 | _result = (long )wxListView_GetNextSelected(_arg0,_arg1); |
059a841c | 5420 | |
474c48f9 | 5421 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5422 | if (PyErr_Occurred()) return NULL; |
5423 | } _resultobj = Py_BuildValue("l",_result); | |
5424 | return _resultobj; | |
5425 | } | |
5426 | ||
5427 | #define wxListView_GetFirstSelected(_swigobj) (_swigobj->GetFirstSelected()) | |
5428 | static PyObject *_wrap_wxListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5429 | PyObject * _resultobj; | |
5430 | long _result; | |
5431 | wxListView * _arg0; | |
5432 | PyObject * _argo0 = 0; | |
5433 | char *_kwnames[] = { "self", NULL }; | |
5434 | ||
5435 | self = self; | |
5436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFirstSelected",_kwnames,&_argo0)) | |
5437 | return NULL; | |
5438 | if (_argo0) { | |
5439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFirstSelected. Expected _wxListView_p."); | |
5442 | return NULL; | |
5443 | } | |
5444 | } | |
5445 | { | |
474c48f9 | 5446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5447 | _result = (long )wxListView_GetFirstSelected(_arg0); |
059a841c | 5448 | |
474c48f9 | 5449 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5450 | if (PyErr_Occurred()) return NULL; |
5451 | } _resultobj = Py_BuildValue("l",_result); | |
5452 | return _resultobj; | |
5453 | } | |
5454 | ||
5455 | #define wxListView_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) | |
5456 | static PyObject *_wrap_wxListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5457 | PyObject * _resultobj; | |
5458 | bool _result; | |
5459 | wxListView * _arg0; | |
5460 | long _arg1; | |
5461 | PyObject * _argo0 = 0; | |
5462 | char *_kwnames[] = { "self","index", NULL }; | |
5463 | ||
5464 | self = self; | |
5465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_IsSelected",_kwnames,&_argo0,&_arg1)) | |
5466 | return NULL; | |
5467 | if (_argo0) { | |
5468 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5469 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_IsSelected. Expected _wxListView_p."); | |
5471 | return NULL; | |
5472 | } | |
5473 | } | |
5474 | { | |
474c48f9 | 5475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5476 | _result = (bool )wxListView_IsSelected(_arg0,_arg1); |
059a841c | 5477 | |
474c48f9 | 5478 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5479 | if (PyErr_Occurred()) return NULL; |
5480 | } _resultobj = Py_BuildValue("i",_result); | |
5481 | return _resultobj; | |
5482 | } | |
5483 | ||
5484 | #define wxListView_SetColumnImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnImage(_swigarg0,_swigarg1)) | |
5485 | static PyObject *_wrap_wxListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5486 | PyObject * _resultobj; | |
5487 | wxListView * _arg0; | |
5488 | int _arg1; | |
5489 | int _arg2; | |
5490 | PyObject * _argo0 = 0; | |
5491 | char *_kwnames[] = { "self","col","image", NULL }; | |
5492 | ||
5493 | self = self; | |
5494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListView_SetColumnImage",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5495 | return NULL; | |
5496 | if (_argo0) { | |
5497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_SetColumnImage. Expected _wxListView_p."); | |
5500 | return NULL; | |
5501 | } | |
5502 | } | |
5503 | { | |
474c48f9 | 5504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5505 | wxListView_SetColumnImage(_arg0,_arg1,_arg2); |
059a841c | 5506 | |
474c48f9 | 5507 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5508 | if (PyErr_Occurred()) return NULL; |
5509 | } Py_INCREF(Py_None); | |
5510 | _resultobj = Py_None; | |
5511 | return _resultobj; | |
5512 | } | |
5513 | ||
5514 | #define wxListView_ClearColumnImage(_swigobj,_swigarg0) (_swigobj->ClearColumnImage(_swigarg0)) | |
5515 | static PyObject *_wrap_wxListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5516 | PyObject * _resultobj; | |
5517 | wxListView * _arg0; | |
5518 | int _arg1; | |
5519 | PyObject * _argo0 = 0; | |
5520 | char *_kwnames[] = { "self","col", NULL }; | |
5521 | ||
5522 | self = self; | |
5523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListView_ClearColumnImage",_kwnames,&_argo0,&_arg1)) | |
5524 | return NULL; | |
5525 | if (_argo0) { | |
5526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_ClearColumnImage. Expected _wxListView_p."); | |
5529 | return NULL; | |
5530 | } | |
5531 | } | |
5532 | { | |
474c48f9 | 5533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5534 | wxListView_ClearColumnImage(_arg0,_arg1); |
059a841c | 5535 | |
474c48f9 | 5536 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5537 | if (PyErr_Occurred()) return NULL; |
5538 | } Py_INCREF(Py_None); | |
5539 | _resultobj = Py_None; | |
5540 | return _resultobj; | |
5541 | } | |
5542 | ||
aa2a5b86 RD |
5543 | #define new_wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
5544 | static PyObject *_wrap_new_wxTreeItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5545 | PyObject * _resultobj; |
aa2a5b86 RD |
5546 | wxTreeItemAttr * _result; |
5547 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5548 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5549 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5550 | wxColour temp; | |
5551 | PyObject * _obj0 = 0; | |
5552 | wxColour temp0; | |
5553 | PyObject * _obj1 = 0; | |
5554 | PyObject * _argo2 = 0; | |
5555 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
d5c9047a | 5556 | char _ptemp[128]; |
8ab979d7 RD |
5557 | |
5558 | self = self; | |
aa2a5b86 RD |
5559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTreeItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) |
5560 | return NULL; | |
5561 | if (_obj0) | |
5562 | { | |
5563 | _arg0 = &temp; | |
5564 | if (! wxColour_helper(_obj0, &_arg0)) | |
5565 | return NULL; | |
5566 | } | |
5567 | if (_obj1) | |
5568 | { | |
5569 | _arg1 = &temp0; | |
5570 | if (! wxColour_helper(_obj1, &_arg1)) | |
5571 | return NULL; | |
5572 | } | |
5573 | if (_argo2) { | |
b67a9327 | 5574 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { |
aa2a5b86 | 5575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTreeItemAttr. Expected _wxFont_p."); |
8ab979d7 | 5576 | return NULL; |
aa2a5b86 RD |
5577 | } |
5578 | } | |
cf694132 | 5579 | { |
474c48f9 | 5580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5581 | _result = (wxTreeItemAttr *)new_wxTreeItemAttr(*_arg0,*_arg1,*_arg2); |
cf694132 | 5582 | |
474c48f9 | 5583 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5584 | if (PyErr_Occurred()) return NULL; |
1d99702e | 5585 | } if (_result) { |
aa2a5b86 | 5586 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemAttr_p"); |
1d99702e RD |
5587 | _resultobj = Py_BuildValue("s",_ptemp); |
5588 | } else { | |
5589 | Py_INCREF(Py_None); | |
5590 | _resultobj = Py_None; | |
5591 | } | |
8ab979d7 RD |
5592 | return _resultobj; |
5593 | } | |
5594 | ||
aa2a5b86 RD |
5595 | #define wxTreeItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
5596 | static PyObject *_wrap_wxTreeItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5597 | PyObject * _resultobj; |
aa2a5b86 RD |
5598 | wxTreeItemAttr * _arg0; |
5599 | wxColour * _arg1; | |
1d99702e | 5600 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
5601 | wxColour temp; |
5602 | PyObject * _obj1 = 0; | |
5603 | char *_kwnames[] = { "self","colText", NULL }; | |
8ab979d7 RD |
5604 | |
5605 | self = self; | |
aa2a5b86 | 5606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5607 | return NULL; |
1d99702e RD |
5608 | if (_argo0) { |
5609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetTextColour. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5612 | return NULL; |
5613 | } | |
5614 | } | |
aa2a5b86 RD |
5615 | { |
5616 | _arg1 = &temp; | |
5617 | if (! wxColour_helper(_obj1, &_arg1)) | |
5618 | return NULL; | |
5619 | } | |
cf694132 | 5620 | { |
474c48f9 | 5621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5622 | wxTreeItemAttr_SetTextColour(_arg0,*_arg1); |
cf694132 | 5623 | |
474c48f9 | 5624 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5625 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5626 | } Py_INCREF(Py_None); |
d5c9047a | 5627 | _resultobj = Py_None; |
8ab979d7 RD |
5628 | return _resultobj; |
5629 | } | |
5630 | ||
aa2a5b86 RD |
5631 | #define wxTreeItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
5632 | static PyObject *_wrap_wxTreeItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5633 | PyObject * _resultobj; |
aa2a5b86 RD |
5634 | wxTreeItemAttr * _arg0; |
5635 | wxColour * _arg1; | |
1d99702e | 5636 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
5637 | wxColour temp; |
5638 | PyObject * _obj1 = 0; | |
5639 | char *_kwnames[] = { "self","colBack", NULL }; | |
8ab979d7 RD |
5640 | |
5641 | self = self; | |
aa2a5b86 | 5642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5643 | return NULL; |
1d99702e RD |
5644 | if (_argo0) { |
5645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5648 | return NULL; |
5649 | } | |
5650 | } | |
aa2a5b86 RD |
5651 | { |
5652 | _arg1 = &temp; | |
5653 | if (! wxColour_helper(_obj1, &_arg1)) | |
5654 | return NULL; | |
5655 | } | |
cf694132 | 5656 | { |
474c48f9 | 5657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5658 | wxTreeItemAttr_SetBackgroundColour(_arg0,*_arg1); |
cf694132 | 5659 | |
474c48f9 | 5660 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5661 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 RD |
5662 | } Py_INCREF(Py_None); |
5663 | _resultobj = Py_None; | |
8ab979d7 RD |
5664 | return _resultobj; |
5665 | } | |
5666 | ||
aa2a5b86 RD |
5667 | #define wxTreeItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
5668 | static PyObject *_wrap_wxTreeItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 5669 | PyObject * _resultobj; |
aa2a5b86 RD |
5670 | wxTreeItemAttr * _arg0; |
5671 | wxFont * _arg1; | |
f6bcfd97 BP |
5672 | PyObject * _argo0 = 0; |
5673 | PyObject * _argo1 = 0; | |
aa2a5b86 | 5674 | char *_kwnames[] = { "self","font", NULL }; |
f6bcfd97 BP |
5675 | |
5676 | self = self; | |
aa2a5b86 | 5677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) |
f6bcfd97 BP |
5678 | return NULL; |
5679 | if (_argo0) { | |
5680 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5681 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetFont. Expected _wxTreeItemAttr_p."); | |
f6bcfd97 BP |
5683 | return NULL; |
5684 | } | |
5685 | } | |
5686 | if (_argo1) { | |
b67a9327 | 5687 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { |
aa2a5b86 | 5688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemAttr_SetFont. Expected _wxFont_p."); |
f6bcfd97 BP |
5689 | return NULL; |
5690 | } | |
5691 | } | |
5692 | { | |
474c48f9 | 5693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5694 | wxTreeItemAttr_SetFont(_arg0,*_arg1); |
f6bcfd97 | 5695 | |
474c48f9 | 5696 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5697 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 RD |
5698 | } Py_INCREF(Py_None); |
5699 | _resultobj = Py_None; | |
f6bcfd97 BP |
5700 | return _resultobj; |
5701 | } | |
5702 | ||
aa2a5b86 RD |
5703 | #define wxTreeItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) |
5704 | static PyObject *_wrap_wxTreeItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5705 | PyObject * _resultobj; |
aa2a5b86 RD |
5706 | bool _result; |
5707 | wxTreeItemAttr * _arg0; | |
5708 | PyObject * _argo0 = 0; | |
5709 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
5710 | |
5711 | self = self; | |
aa2a5b86 | 5712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasTextColour",_kwnames,&_argo0)) |
8ab979d7 | 5713 | return NULL; |
aa2a5b86 RD |
5714 | if (_argo0) { |
5715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasTextColour. Expected _wxTreeItemAttr_p."); | |
5718 | return NULL; | |
5719 | } | |
5720 | } | |
cf694132 | 5721 | { |
474c48f9 | 5722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5723 | _result = (bool )wxTreeItemAttr_HasTextColour(_arg0); |
cf694132 | 5724 | |
474c48f9 | 5725 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5726 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5727 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5728 | return _resultobj; |
5729 | } | |
5730 | ||
aa2a5b86 RD |
5731 | #define wxTreeItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) |
5732 | static PyObject *_wrap_wxTreeItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 5733 | PyObject * _resultobj; |
aa2a5b86 RD |
5734 | bool _result; |
5735 | wxTreeItemAttr * _arg0; | |
1d99702e | 5736 | PyObject * _argo0 = 0; |
efc5f224 | 5737 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
5738 | |
5739 | self = self; | |
aa2a5b86 | 5740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasBackgroundColour",_kwnames,&_argo0)) |
cf694132 | 5741 | return NULL; |
1d99702e RD |
5742 | if (_argo0) { |
5743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasBackgroundColour. Expected _wxTreeItemAttr_p."); | |
cf694132 RD |
5746 | return NULL; |
5747 | } | |
5748 | } | |
5749 | { | |
474c48f9 | 5750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5751 | _result = (bool )wxTreeItemAttr_HasBackgroundColour(_arg0); |
cf694132 | 5752 | |
474c48f9 | 5753 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5754 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5755 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
5756 | return _resultobj; |
5757 | } | |
5758 | ||
aa2a5b86 RD |
5759 | #define wxTreeItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) |
5760 | static PyObject *_wrap_wxTreeItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5761 | PyObject * _resultobj; |
aa2a5b86 RD |
5762 | bool _result; |
5763 | wxTreeItemAttr * _arg0; | |
1d99702e | 5764 | PyObject * _argo0 = 0; |
aa2a5b86 | 5765 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5766 | |
5767 | self = self; | |
aa2a5b86 | 5768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasFont",_kwnames,&_argo0)) |
8ab979d7 | 5769 | return NULL; |
1d99702e RD |
5770 | if (_argo0) { |
5771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasFont. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5774 | return NULL; |
5775 | } | |
5776 | } | |
cf694132 | 5777 | { |
474c48f9 | 5778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5779 | _result = (bool )wxTreeItemAttr_HasFont(_arg0); |
cf694132 | 5780 | |
474c48f9 | 5781 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5782 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5783 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5784 | return _resultobj; |
5785 | } | |
5786 | ||
aa2a5b86 RD |
5787 | #define wxTreeItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
5788 | static PyObject *_wrap_wxTreeItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5789 | PyObject * _resultobj; |
aa2a5b86 RD |
5790 | wxColour * _result; |
5791 | wxTreeItemAttr * _arg0; | |
1d99702e | 5792 | PyObject * _argo0 = 0; |
efc5f224 | 5793 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5794 | char _ptemp[128]; |
5795 | ||
5796 | self = self; | |
aa2a5b86 | 5797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 5798 | return NULL; |
1d99702e RD |
5799 | if (_argo0) { |
5800 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5801 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5802 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetTextColour. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5803 | return NULL; |
5804 | } | |
5805 | } | |
cf694132 | 5806 | { |
474c48f9 | 5807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5808 | _result = new wxColour (wxTreeItemAttr_GetTextColour(_arg0)); |
cf694132 | 5809 | |
474c48f9 | 5810 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5811 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
5812 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5813 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
5814 | return _resultobj; |
5815 | } | |
5816 | ||
aa2a5b86 RD |
5817 | #define wxTreeItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) |
5818 | static PyObject *_wrap_wxTreeItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
630d84f2 | 5819 | PyObject * _resultobj; |
aa2a5b86 RD |
5820 | wxColour * _result; |
5821 | wxTreeItemAttr * _arg0; | |
1d99702e | 5822 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
5823 | char *_kwnames[] = { "self", NULL }; |
5824 | char _ptemp[128]; | |
5825 | ||
5826 | self = self; | |
5827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
5828 | return NULL; | |
5829 | if (_argo0) { | |
5830 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5831 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5833 | return NULL; | |
5834 | } | |
5835 | } | |
5836 | { | |
474c48f9 | 5837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5838 | _result = new wxColour (wxTreeItemAttr_GetBackgroundColour(_arg0)); |
aa2a5b86 | 5839 | |
474c48f9 | 5840 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 | 5841 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
5842 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5843 | _resultobj = Py_BuildValue("s",_ptemp); | |
aa2a5b86 RD |
5844 | return _resultobj; |
5845 | } | |
5846 | ||
5847 | #define wxTreeItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
5848 | static PyObject *_wrap_wxTreeItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5849 | PyObject * _resultobj; | |
5850 | wxFont * _result; | |
5851 | wxTreeItemAttr * _arg0; | |
5852 | PyObject * _argo0 = 0; | |
5853 | char *_kwnames[] = { "self", NULL }; | |
5854 | char _ptemp[128]; | |
5855 | ||
5856 | self = self; | |
5857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetFont",_kwnames,&_argo0)) | |
5858 | return NULL; | |
5859 | if (_argo0) { | |
5860 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5861 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetFont. Expected _wxTreeItemAttr_p."); | |
5863 | return NULL; | |
5864 | } | |
5865 | } | |
5866 | { | |
474c48f9 | 5867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5868 | _result = new wxFont (wxTreeItemAttr_GetFont(_arg0)); |
aa2a5b86 | 5869 | |
474c48f9 | 5870 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 | 5871 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
5872 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
5873 | _resultobj = Py_BuildValue("s",_ptemp); | |
aa2a5b86 RD |
5874 | return _resultobj; |
5875 | } | |
5876 | ||
5877 | #define new_wxTreeItemId() (new wxTreeItemId()) | |
5878 | static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5879 | PyObject * _resultobj; | |
5880 | wxTreeItemId * _result; | |
5881 | char *_kwnames[] = { NULL }; | |
5882 | char _ptemp[128]; | |
5883 | ||
5884 | self = self; | |
5885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames)) | |
5886 | return NULL; | |
5887 | { | |
474c48f9 | 5888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5889 | _result = (wxTreeItemId *)new_wxTreeItemId(); |
aa2a5b86 | 5890 | |
474c48f9 | 5891 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5892 | if (PyErr_Occurred()) return NULL; |
5893 | } if (_result) { | |
5894 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
5895 | _resultobj = Py_BuildValue("s",_ptemp); | |
5896 | } else { | |
5897 | Py_INCREF(Py_None); | |
5898 | _resultobj = Py_None; | |
5899 | } | |
5900 | return _resultobj; | |
5901 | } | |
5902 | ||
5903 | #define delete_wxTreeItemId(_swigobj) (delete _swigobj) | |
5904 | static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5905 | PyObject * _resultobj; | |
5906 | wxTreeItemId * _arg0; | |
5907 | PyObject * _argo0 = 0; | |
5908 | char *_kwnames[] = { "self", NULL }; | |
5909 | ||
5910 | self = self; | |
5911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0)) | |
5912 | return NULL; | |
5913 | if (_argo0) { | |
5914 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5915 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p."); | |
5917 | return NULL; | |
5918 | } | |
5919 | } | |
5920 | { | |
474c48f9 | 5921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5922 | delete_wxTreeItemId(_arg0); |
aa2a5b86 | 5923 | |
474c48f9 | 5924 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5925 | if (PyErr_Occurred()) return NULL; |
5926 | } Py_INCREF(Py_None); | |
5927 | _resultobj = Py_None; | |
5928 | return _resultobj; | |
5929 | } | |
5930 | ||
5931 | #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk()) | |
5932 | static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5933 | PyObject * _resultobj; | |
5934 | bool _result; | |
5935 | wxTreeItemId * _arg0; | |
5936 | PyObject * _argo0 = 0; | |
5937 | char *_kwnames[] = { "self", NULL }; | |
5938 | ||
5939 | self = self; | |
5940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0)) | |
5941 | return NULL; | |
5942 | if (_argo0) { | |
5943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p."); | |
5946 | return NULL; | |
5947 | } | |
5948 | } | |
5949 | { | |
474c48f9 | 5950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5951 | _result = (bool )wxTreeItemId_IsOk(_arg0); |
aa2a5b86 | 5952 | |
474c48f9 | 5953 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5954 | if (PyErr_Occurred()) return NULL; |
5955 | } _resultobj = Py_BuildValue("i",_result); | |
5956 | return _resultobj; | |
5957 | } | |
5958 | ||
5959 | static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) { | |
5960 | if (! other) return -1; | |
5961 | return *self != *other; | |
5962 | } | |
5963 | static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5964 | PyObject * _resultobj; | |
5965 | int _result; | |
5966 | wxTreeItemId * _arg0; | |
5967 | wxTreeItemId * _arg1; | |
5968 | PyObject * _argo0 = 0; | |
5969 | PyObject * _argo1 = 0; | |
5970 | char *_kwnames[] = { "self","other", NULL }; | |
5971 | ||
5972 | self = self; | |
5973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1)) | |
5974 | return NULL; | |
5975 | if (_argo0) { | |
5976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5979 | return NULL; | |
5980 | } | |
5981 | } | |
5982 | if (_argo1) { | |
5983 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5984 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
5985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5986 | return NULL; | |
5987 | } | |
5988 | } | |
5989 | { | |
474c48f9 | 5990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5991 | _result = (int )wxTreeItemId___cmp__(_arg0,_arg1); |
aa2a5b86 | 5992 | |
474c48f9 | 5993 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5994 | if (PyErr_Occurred()) return NULL; |
5995 | } _resultobj = Py_BuildValue("i",_result); | |
5996 | return _resultobj; | |
5997 | } | |
5998 | ||
aa2a5b86 RD |
5999 | #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) |
6000 | static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6001 | PyObject * _resultobj; | |
6002 | wxPyTreeItemData * _result; | |
6003 | PyObject * _arg0 = (PyObject *) NULL; | |
6004 | PyObject * _obj0 = 0; | |
6005 | char *_kwnames[] = { "obj", NULL }; | |
6006 | char _ptemp[128]; | |
6007 | ||
6008 | self = self; | |
6009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0)) | |
6010 | return NULL; | |
6011 | if (_obj0) | |
6012 | { | |
6013 | _arg0 = _obj0; | |
6014 | } | |
6015 | { | |
474c48f9 | 6016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6017 | _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0); |
aa2a5b86 | 6018 | |
474c48f9 | 6019 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6020 | if (PyErr_Occurred()) return NULL; |
6021 | } if (_result) { | |
6022 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
6023 | _resultobj = Py_BuildValue("s",_ptemp); | |
6024 | } else { | |
6025 | Py_INCREF(Py_None); | |
6026 | _resultobj = Py_None; | |
6027 | } | |
6028 | return _resultobj; | |
6029 | } | |
6030 | ||
6031 | #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData()) | |
6032 | static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6033 | PyObject * _resultobj; | |
6034 | PyObject * _result; | |
6035 | wxPyTreeItemData * _arg0; | |
6036 | PyObject * _argo0 = 0; | |
6037 | char *_kwnames[] = { "self", NULL }; | |
6038 | ||
6039 | self = self; | |
6040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0)) | |
6041 | return NULL; | |
6042 | if (_argo0) { | |
6043 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6044 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p."); | |
6046 | return NULL; | |
6047 | } | |
6048 | } | |
6049 | { | |
474c48f9 | 6050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6051 | _result = (PyObject *)wxTreeItemData_GetData(_arg0); |
aa2a5b86 | 6052 | |
474c48f9 | 6053 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6054 | if (PyErr_Occurred()) return NULL; |
6055 | }{ | |
6056 | _resultobj = _result; | |
6057 | } | |
6058 | return _resultobj; | |
6059 | } | |
6060 | ||
6061 | #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
6062 | static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6063 | PyObject * _resultobj; | |
6064 | wxPyTreeItemData * _arg0; | |
6065 | PyObject * _arg1; | |
6066 | PyObject * _argo0 = 0; | |
6067 | PyObject * _obj1 = 0; | |
6068 | char *_kwnames[] = { "self","obj", NULL }; | |
6069 | ||
6070 | self = self; | |
6071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1)) | |
6072 | return NULL; | |
6073 | if (_argo0) { | |
6074 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6075 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p."); | |
6077 | return NULL; | |
6078 | } | |
6079 | } | |
6080 | { | |
6081 | _arg1 = _obj1; | |
6082 | } | |
6083 | { | |
474c48f9 | 6084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6085 | wxTreeItemData_SetData(_arg0,_arg1); |
aa2a5b86 | 6086 | |
474c48f9 | 6087 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6088 | if (PyErr_Occurred()) return NULL; |
6089 | } Py_INCREF(Py_None); | |
6090 | _resultobj = Py_None; | |
6091 | return _resultobj; | |
6092 | } | |
6093 | ||
6094 | #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId()) | |
6095 | static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6096 | PyObject * _resultobj; | |
6097 | wxTreeItemId * _result; | |
6098 | wxPyTreeItemData * _arg0; | |
6099 | PyObject * _argo0 = 0; | |
6100 | char *_kwnames[] = { "self", NULL }; | |
6101 | char _ptemp[128]; | |
6102 | ||
6103 | self = self; | |
6104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0)) | |
6105 | return NULL; | |
6106 | if (_argo0) { | |
6107 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6108 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p."); | |
6110 | return NULL; | |
6111 | } | |
6112 | } | |
6113 | { | |
474c48f9 | 6114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6115 | const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0); |
aa2a5b86 RD |
6116 | _result = (wxTreeItemId *) &_result_ref; |
6117 | ||
474c48f9 | 6118 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6119 | if (PyErr_Occurred()) return NULL; |
6120 | } if (_result) { | |
6121 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
6122 | _resultobj = Py_BuildValue("s",_ptemp); | |
6123 | } else { | |
6124 | Py_INCREF(Py_None); | |
6125 | _resultobj = Py_None; | |
6126 | } | |
6127 | return _resultobj; | |
6128 | } | |
6129 | ||
6130 | #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
6131 | static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6132 | PyObject * _resultobj; | |
6133 | wxPyTreeItemData * _arg0; | |
6134 | wxTreeItemId * _arg1; | |
6135 | PyObject * _argo0 = 0; | |
6136 | PyObject * _argo1 = 0; | |
6137 | char *_kwnames[] = { "self","id", NULL }; | |
630d84f2 RD |
6138 | |
6139 | self = self; | |
efc5f224 | 6140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1)) |
630d84f2 | 6141 | return NULL; |
1d99702e RD |
6142 | if (_argo0) { |
6143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 6145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p."); |
630d84f2 RD |
6146 | return NULL; |
6147 | } | |
6148 | } | |
1d99702e | 6149 | if (_argo1) { |
b67a9327 | 6150 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
630d84f2 RD |
6151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p."); |
6152 | return NULL; | |
6153 | } | |
6154 | } | |
cf694132 | 6155 | { |
474c48f9 | 6156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6157 | wxTreeItemData_SetId(_arg0,*_arg1); |
cf694132 | 6158 | |
474c48f9 | 6159 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6160 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6161 | } Py_INCREF(Py_None); |
630d84f2 RD |
6162 | _resultobj = Py_None; |
6163 | return _resultobj; | |
6164 | } | |
6165 | ||
8bf5d46e RD |
6166 | static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) { |
6167 | wxTreeEvent *src; | |
6168 | wxNotifyEvent *dest; | |
6169 | src = (wxTreeEvent *) ptr; | |
6170 | dest = (wxNotifyEvent *) src; | |
6171 | return (void *) dest; | |
6172 | } | |
6173 | ||
8ab979d7 RD |
6174 | static void *SwigwxTreeEventTowxCommandEvent(void *ptr) { |
6175 | wxTreeEvent *src; | |
6176 | wxCommandEvent *dest; | |
6177 | src = (wxTreeEvent *) ptr; | |
6178 | dest = (wxCommandEvent *) src; | |
6179 | return (void *) dest; | |
6180 | } | |
6181 | ||
6182 | static void *SwigwxTreeEventTowxEvent(void *ptr) { | |
6183 | wxTreeEvent *src; | |
6184 | wxEvent *dest; | |
6185 | src = (wxTreeEvent *) ptr; | |
6186 | dest = (wxEvent *) src; | |
6187 | return (void *) dest; | |
6188 | } | |
6189 | ||
9df61a29 RD |
6190 | static void *SwigwxTreeEventTowxObject(void *ptr) { |
6191 | wxTreeEvent *src; | |
6192 | wxObject *dest; | |
6193 | src = (wxTreeEvent *) ptr; | |
6194 | dest = (wxObject *) src; | |
6195 | return (void *) dest; | |
6196 | } | |
6197 | ||
aa2a5b86 RD |
6198 | #define new_wxTreeEvent(_swigarg0,_swigarg1) (new wxTreeEvent(_swigarg0,_swigarg1)) |
6199 | static PyObject *_wrap_new_wxTreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6200 | PyObject * _resultobj; | |
6201 | wxTreeEvent * _result; | |
6202 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
6203 | int _arg1 = (int ) 0; | |
6204 | char *_kwnames[] = { "commandType","id", NULL }; | |
6205 | char _ptemp[128]; | |
6206 | ||
6207 | self = self; | |
6208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxTreeEvent",_kwnames,&_arg0,&_arg1)) | |
6209 | return NULL; | |
6210 | { | |
474c48f9 | 6211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6212 | _result = (wxTreeEvent *)new_wxTreeEvent(_arg0,_arg1); |
aa2a5b86 | 6213 | |
474c48f9 | 6214 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6215 | if (PyErr_Occurred()) return NULL; |
6216 | } if (_result) { | |
6217 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeEvent_p"); | |
6218 | _resultobj = Py_BuildValue("s",_ptemp); | |
6219 | } else { | |
6220 | Py_INCREF(Py_None); | |
6221 | _resultobj = Py_None; | |
6222 | } | |
6223 | return _resultobj; | |
6224 | } | |
6225 | ||
d5c9047a | 6226 | #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
efc5f224 | 6227 | static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6228 | PyObject * _resultobj; |
d5c9047a | 6229 | wxTreeItemId * _result; |
8ab979d7 | 6230 | wxTreeEvent * _arg0; |
1d99702e | 6231 | PyObject * _argo0 = 0; |
efc5f224 | 6232 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6233 | char _ptemp[128]; |
8ab979d7 RD |
6234 | |
6235 | self = self; | |
efc5f224 | 6236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 6237 | return NULL; |
1d99702e RD |
6238 | if (_argo0) { |
6239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6242 | return NULL; |
6243 | } | |
6244 | } | |
cf694132 | 6245 | { |
474c48f9 | 6246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6247 | _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0)); |
cf694132 | 6248 | |
474c48f9 | 6249 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6250 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6251 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 6252 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6253 | return _resultobj; |
6254 | } | |
6255 | ||
3ef86e32 RD |
6256 | #define wxTreeEvent_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) |
6257 | static PyObject *_wrap_wxTreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6258 | PyObject * _resultobj; |
8ab979d7 | 6259 | wxTreeEvent * _arg0; |
3ef86e32 | 6260 | wxTreeItemId * _arg1; |
1d99702e | 6261 | PyObject * _argo0 = 0; |
3ef86e32 RD |
6262 | PyObject * _argo1 = 0; |
6263 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
6264 | |
6265 | self = self; | |
3ef86e32 | 6266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeEvent_SetItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6267 | return NULL; |
1d99702e RD |
6268 | if (_argo0) { |
6269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
3ef86e32 RD |
6271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_SetItem. Expected _wxTreeEvent_p."); |
6272 | return NULL; | |
6273 | } | |
6274 | } | |
6275 | if (_argo1) { | |
6276 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeEvent_SetItem. Expected _wxTreeItemId_p."); | |
8ab979d7 RD |
6278 | return NULL; |
6279 | } | |
6280 | } | |
cf694132 | 6281 | { |
474c48f9 | 6282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3ef86e32 | 6283 | wxTreeEvent_SetItem(_arg0,*_arg1); |
cf694132 | 6284 | |
474c48f9 | 6285 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6286 | if (PyErr_Occurred()) return NULL; |
3ef86e32 RD |
6287 | } Py_INCREF(Py_None); |
6288 | _resultobj = Py_None; | |
8ab979d7 RD |
6289 | return _resultobj; |
6290 | } | |
6291 | ||
3ef86e32 RD |
6292 | #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
6293 | static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6294 | PyObject * _resultobj; |
3ef86e32 | 6295 | wxTreeItemId * _result; |
8ab979d7 | 6296 | wxTreeEvent * _arg0; |
1d99702e | 6297 | PyObject * _argo0 = 0; |
efc5f224 | 6298 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6299 | char _ptemp[128]; |
8ab979d7 RD |
6300 | |
6301 | self = self; | |
3ef86e32 | 6302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0)) |
8ab979d7 | 6303 | return NULL; |
1d99702e RD |
6304 | if (_argo0) { |
6305 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6306 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
3ef86e32 | 6307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6308 | return NULL; |
6309 | } | |
6310 | } | |
cf694132 | 6311 | { |
474c48f9 | 6312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3ef86e32 | 6313 | _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0)); |
cf694132 | 6314 | |
474c48f9 | 6315 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6316 | if (PyErr_Occurred()) return NULL; |
3ef86e32 | 6317 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 6318 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6319 | return _resultobj; |
6320 | } | |
6321 | ||
3ef86e32 RD |
6322 | #define wxTreeEvent_SetOldItem(_swigobj,_swigarg0) (_swigobj->SetOldItem(_swigarg0)) |
6323 | static PyObject *_wrap_wxTreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
65191ae8 | 6324 | PyObject * _resultobj; |
65191ae8 | 6325 | wxTreeEvent * _arg0; |
3ef86e32 | 6326 | wxTreeItemId * _arg1; |
65191ae8 | 6327 | PyObject * _argo0 = 0; |
3ef86e32 RD |
6328 | PyObject * _argo1 = 0; |
6329 | char *_kwnames[] = { "self","item", NULL }; | |
65191ae8 RD |
6330 | |
6331 | self = self; | |
3ef86e32 | 6332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeEvent_SetOldItem",_kwnames,&_argo0,&_argo1)) |
65191ae8 RD |
6333 | return NULL; |
6334 | if (_argo0) { | |
6335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
3ef86e32 RD |
6337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_SetOldItem. Expected _wxTreeEvent_p."); |
6338 | return NULL; | |
6339 | } | |
6340 | } | |
6341 | if (_argo1) { | |
6342 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeEvent_SetOldItem. Expected _wxTreeItemId_p."); | |
65191ae8 RD |
6344 | return NULL; |
6345 | } | |
6346 | } | |
6347 | { | |
474c48f9 | 6348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3ef86e32 | 6349 | wxTreeEvent_SetOldItem(_arg0,*_arg1); |
65191ae8 | 6350 | |
474c48f9 | 6351 | wxPyEndAllowThreads(__tstate); |
65191ae8 | 6352 | if (PyErr_Occurred()) return NULL; |
3ef86e32 RD |
6353 | } Py_INCREF(Py_None); |
6354 | _resultobj = Py_None; | |
65191ae8 RD |
6355 | return _resultobj; |
6356 | } | |
6357 | ||
3ef86e32 RD |
6358 | #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
6359 | static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6360 | PyObject * _resultobj; |
3ef86e32 | 6361 | wxPoint * _result; |
8ab979d7 | 6362 | wxTreeEvent * _arg0; |
1d99702e | 6363 | PyObject * _argo0 = 0; |
efc5f224 | 6364 | char *_kwnames[] = { "self", NULL }; |
3ef86e32 | 6365 | char _ptemp[128]; |
8ab979d7 RD |
6366 | |
6367 | self = self; | |
3ef86e32 | 6368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 6369 | return NULL; |
1d99702e RD |
6370 | if (_argo0) { |
6371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
3ef86e32 | 6373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6374 | return NULL; |
6375 | } | |
6376 | } | |
cf694132 | 6377 | { |
474c48f9 | 6378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3ef86e32 | 6379 | _result = new wxPoint (wxTreeEvent_GetPoint(_arg0)); |
cf694132 | 6380 | |
474c48f9 | 6381 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6382 | if (PyErr_Occurred()) return NULL; |
3ef86e32 RD |
6383 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
6384 | _resultobj = Py_BuildValue("s",_ptemp); | |
d5c9047a RD |
6385 | return _resultobj; |
6386 | } | |
6387 | ||
3ef86e32 RD |
6388 | #define wxTreeEvent_SetPoint(_swigobj,_swigarg0) (_swigobj->SetPoint(_swigarg0)) |
6389 | static PyObject *_wrap_wxTreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d5c9047a RD |
6390 | PyObject * _resultobj; |
6391 | wxTreeEvent * _arg0; | |
3ef86e32 | 6392 | wxPoint * _arg1; |
1d99702e | 6393 | PyObject * _argo0 = 0; |
3ef86e32 RD |
6394 | wxPoint temp; |
6395 | PyObject * _obj1 = 0; | |
6396 | char *_kwnames[] = { "self","pt", NULL }; | |
d5c9047a RD |
6397 | |
6398 | self = self; | |
3ef86e32 | 6399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeEvent_SetPoint",_kwnames,&_argo0,&_obj1)) |
d5c9047a | 6400 | return NULL; |
1d99702e RD |
6401 | if (_argo0) { |
6402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
3ef86e32 | 6404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_SetPoint. Expected _wxTreeEvent_p."); |
d5c9047a RD |
6405 | return NULL; |
6406 | } | |
6407 | } | |
3ef86e32 RD |
6408 | { |
6409 | _arg1 = &temp; | |
6410 | if (! wxPoint_helper(_obj1, &_arg1)) | |
6411 | return NULL; | |
6412 | } | |
cf694132 | 6413 | { |
474c48f9 | 6414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3ef86e32 | 6415 | wxTreeEvent_SetPoint(_arg0,*_arg1); |
cf694132 | 6416 | |
474c48f9 | 6417 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6418 | if (PyErr_Occurred()) return NULL; |
3ef86e32 RD |
6419 | } Py_INCREF(Py_None); |
6420 | _resultobj = Py_None; | |
8ab979d7 RD |
6421 | return _resultobj; |
6422 | } | |
6423 | ||
3ef86e32 RD |
6424 | #define wxTreeEvent_GetKeyEvent(_swigobj) (_swigobj->GetKeyEvent()) |
6425 | static PyObject *_wrap_wxTreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4eb65923 | 6426 | PyObject * _resultobj; |
3ef86e32 | 6427 | wxKeyEvent * _result; |
4eb65923 RD |
6428 | wxTreeEvent * _arg0; |
6429 | PyObject * _argo0 = 0; | |
6430 | char *_kwnames[] = { "self", NULL }; | |
3ef86e32 | 6431 | char _ptemp[128]; |
4eb65923 RD |
6432 | |
6433 | self = self; | |
3ef86e32 | 6434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetKeyEvent",_kwnames,&_argo0)) |
4eb65923 RD |
6435 | return NULL; |
6436 | if (_argo0) { | |
6437 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6438 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
3ef86e32 | 6439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetKeyEvent. Expected _wxTreeEvent_p."); |
4eb65923 RD |
6440 | return NULL; |
6441 | } | |
6442 | } | |
6443 | { | |
6444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3ef86e32 RD |
6445 | const wxKeyEvent & _result_ref = wxTreeEvent_GetKeyEvent(_arg0); |
6446 | _result = (wxKeyEvent *) &_result_ref; | |
4eb65923 RD |
6447 | |
6448 | wxPyEndAllowThreads(__tstate); | |
6449 | if (PyErr_Occurred()) return NULL; | |
3ef86e32 RD |
6450 | } if (_result) { |
6451 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxKeyEvent_p"); | |
6452 | _resultobj = Py_BuildValue("s",_ptemp); | |
6453 | } else { | |
6454 | Py_INCREF(Py_None); | |
6455 | _resultobj = Py_None; | |
6456 | } | |
4eb65923 RD |
6457 | return _resultobj; |
6458 | } | |
6459 | ||
3ef86e32 RD |
6460 | #define wxTreeEvent_GetKeyCode(_swigobj) (_swigobj->GetKeyCode()) |
6461 | static PyObject *_wrap_wxTreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1fded56b | 6462 | PyObject * _resultobj; |
3ef86e32 | 6463 | int _result; |
1fded56b | 6464 | wxTreeEvent * _arg0; |
1fded56b | 6465 | PyObject * _argo0 = 0; |
3ef86e32 | 6466 | char *_kwnames[] = { "self", NULL }; |
1fded56b RD |
6467 | |
6468 | self = self; | |
3ef86e32 | 6469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetKeyCode",_kwnames,&_argo0)) |
1fded56b RD |
6470 | return NULL; |
6471 | if (_argo0) { | |
6472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
3ef86e32 | 6474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetKeyCode. Expected _wxTreeEvent_p."); |
1fded56b RD |
6475 | return NULL; |
6476 | } | |
6477 | } | |
6478 | { | |
6479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3ef86e32 | 6480 | _result = (int )wxTreeEvent_GetKeyCode(_arg0); |
1fded56b RD |
6481 | |
6482 | wxPyEndAllowThreads(__tstate); | |
6483 | if (PyErr_Occurred()) return NULL; | |
3ef86e32 | 6484 | } _resultobj = Py_BuildValue("i",_result); |
1fded56b RD |
6485 | return _resultobj; |
6486 | } | |
6487 | ||
3ef86e32 RD |
6488 | #define wxTreeEvent_SetKeyEvent(_swigobj,_swigarg0) (_swigobj->SetKeyEvent(_swigarg0)) |
6489 | static PyObject *_wrap_wxTreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1fded56b RD |
6490 | PyObject * _resultobj; |
6491 | wxTreeEvent * _arg0; | |
3ef86e32 | 6492 | wxKeyEvent * _arg1; |
1fded56b RD |
6493 | PyObject * _argo0 = 0; |
6494 | PyObject * _argo1 = 0; | |
3ef86e32 | 6495 | char *_kwnames[] = { "self","evt", NULL }; |
1fded56b RD |
6496 | |
6497 | self = self; | |
3ef86e32 | 6498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeEvent_SetKeyEvent",_kwnames,&_argo0,&_argo1)) |
1fded56b RD |
6499 | return NULL; |
6500 | if (_argo0) { | |
6501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
3ef86e32 | 6503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_SetKeyEvent. Expected _wxTreeEvent_p."); |
1fded56b RD |
6504 | return NULL; |
6505 | } | |
6506 | } | |
6507 | if (_argo1) { | |
3ef86e32 RD |
6508 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxKeyEvent_p")) { |
6509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeEvent_SetKeyEvent. Expected _wxKeyEvent_p."); | |
1fded56b RD |
6510 | return NULL; |
6511 | } | |
6512 | } | |
6513 | { | |
6514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3ef86e32 | 6515 | wxTreeEvent_SetKeyEvent(_arg0,*_arg1); |
1fded56b RD |
6516 | |
6517 | wxPyEndAllowThreads(__tstate); | |
6518 | if (PyErr_Occurred()) return NULL; | |
6519 | } Py_INCREF(Py_None); | |
6520 | _resultobj = Py_None; | |
6521 | return _resultobj; | |
6522 | } | |
6523 | ||
3ef86e32 RD |
6524 | #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
6525 | static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1fded56b | 6526 | PyObject * _resultobj; |
3ef86e32 | 6527 | wxString * _result; |
1fded56b | 6528 | wxTreeEvent * _arg0; |
1fded56b | 6529 | PyObject * _argo0 = 0; |
3ef86e32 | 6530 | char *_kwnames[] = { "self", NULL }; |
1fded56b RD |
6531 | |
6532 | self = self; | |
3ef86e32 | 6533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0)) |
1fded56b RD |
6534 | return NULL; |
6535 | if (_argo0) { | |
6536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
3ef86e32 | 6538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p."); |
1fded56b RD |
6539 | return NULL; |
6540 | } | |
6541 | } | |
1fded56b RD |
6542 | { |
6543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3ef86e32 RD |
6544 | const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0); |
6545 | _result = (wxString *) &_result_ref; | |
1fded56b RD |
6546 | |
6547 | wxPyEndAllowThreads(__tstate); | |
6548 | if (PyErr_Occurred()) return NULL; | |
3ef86e32 RD |
6549 | }{ |
6550 | #if wxUSE_UNICODE | |
6551 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
6552 | #else | |
6553 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6554 | #endif | |
6555 | } | |
1fded56b RD |
6556 | return _resultobj; |
6557 | } | |
6558 | ||
3ef86e32 RD |
6559 | #define wxTreeEvent_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
6560 | static PyObject *_wrap_wxTreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1fded56b RD |
6561 | PyObject * _resultobj; |
6562 | wxTreeEvent * _arg0; | |
3ef86e32 | 6563 | wxString * _arg1; |
1fded56b | 6564 | PyObject * _argo0 = 0; |
3ef86e32 RD |
6565 | PyObject * _obj1 = 0; |
6566 | char *_kwnames[] = { "self","label", NULL }; | |
1fded56b RD |
6567 | |
6568 | self = self; | |
3ef86e32 | 6569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeEvent_SetLabel",_kwnames,&_argo0,&_obj1)) |
1fded56b RD |
6570 | return NULL; |
6571 | if (_argo0) { | |
6572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
3ef86e32 | 6574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_SetLabel. Expected _wxTreeEvent_p."); |
1fded56b RD |
6575 | return NULL; |
6576 | } | |
6577 | } | |
3ef86e32 RD |
6578 | { |
6579 | _arg1 = wxString_in_helper(_obj1); | |
6580 | if (_arg1 == NULL) | |
1fded56b | 6581 | return NULL; |
3ef86e32 | 6582 | } |
1fded56b RD |
6583 | { |
6584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3ef86e32 | 6585 | wxTreeEvent_SetLabel(_arg0,*_arg1); |
1fded56b RD |
6586 | |
6587 | wxPyEndAllowThreads(__tstate); | |
6588 | if (PyErr_Occurred()) return NULL; | |
6589 | } Py_INCREF(Py_None); | |
6590 | _resultobj = Py_None; | |
3ef86e32 RD |
6591 | { |
6592 | if (_obj1) | |
6593 | delete _arg1; | |
6594 | } | |
1fded56b RD |
6595 | return _resultobj; |
6596 | } | |
6597 | ||
3ef86e32 RD |
6598 | #define wxTreeEvent_IsEditCancelled(_swigobj) (_swigobj->IsEditCancelled()) |
6599 | static PyObject *_wrap_wxTreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1fded56b | 6600 | PyObject * _resultobj; |
3ef86e32 | 6601 | bool _result; |
1fded56b | 6602 | wxTreeEvent * _arg0; |
1fded56b | 6603 | PyObject * _argo0 = 0; |
3ef86e32 | 6604 | char *_kwnames[] = { "self", NULL }; |
1fded56b RD |
6605 | |
6606 | self = self; | |
3ef86e32 | 6607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_IsEditCancelled",_kwnames,&_argo0)) |
1fded56b RD |
6608 | return NULL; |
6609 | if (_argo0) { | |
6610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
3ef86e32 | 6612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_IsEditCancelled. Expected _wxTreeEvent_p."); |
1fded56b RD |
6613 | return NULL; |
6614 | } | |
6615 | } | |
1fded56b RD |
6616 | { |
6617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3ef86e32 | 6618 | _result = (bool )wxTreeEvent_IsEditCancelled(_arg0); |
1fded56b RD |
6619 | |
6620 | wxPyEndAllowThreads(__tstate); | |
6621 | if (PyErr_Occurred()) return NULL; | |
3ef86e32 | 6622 | } _resultobj = Py_BuildValue("i",_result); |
1fded56b RD |
6623 | return _resultobj; |
6624 | } | |
6625 | ||
6626 | #define wxTreeEvent_SetEditCanceled(_swigobj,_swigarg0) (_swigobj->SetEditCanceled(_swigarg0)) | |
6627 | static PyObject *_wrap_wxTreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6628 | PyObject * _resultobj; | |
6629 | wxTreeEvent * _arg0; | |
6630 | bool _arg1; | |
6631 | PyObject * _argo0 = 0; | |
6632 | int tempbool1; | |
6633 | char *_kwnames[] = { "self","editCancelled", NULL }; | |
6634 | ||
6635 | self = self; | |
6636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeEvent_SetEditCanceled",_kwnames,&_argo0,&tempbool1)) | |
6637 | return NULL; | |
6638 | if (_argo0) { | |
6639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_SetEditCanceled. Expected _wxTreeEvent_p."); | |
6642 | return NULL; | |
6643 | } | |
6644 | } | |
6645 | _arg1 = (bool ) tempbool1; | |
6646 | { | |
6647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6648 | wxTreeEvent_SetEditCanceled(_arg0,_arg1); | |
6649 | ||
6650 | wxPyEndAllowThreads(__tstate); | |
6651 | if (PyErr_Occurred()) return NULL; | |
6652 | } Py_INCREF(Py_None); | |
6653 | _resultobj = Py_None; | |
6654 | return _resultobj; | |
6655 | } | |
6656 | ||
f6bcfd97 BP |
6657 | static void *SwigwxPyTreeCtrlTowxControl(void *ptr) { |
6658 | wxPyTreeCtrl *src; | |
8ab979d7 | 6659 | wxControl *dest; |
f6bcfd97 | 6660 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6661 | dest = (wxControl *) src; |
6662 | return (void *) dest; | |
6663 | } | |
6664 | ||
f6bcfd97 BP |
6665 | static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) { |
6666 | wxPyTreeCtrl *src; | |
8ab979d7 | 6667 | wxWindow *dest; |
f6bcfd97 | 6668 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6669 | dest = (wxWindow *) src; |
6670 | return (void *) dest; | |
6671 | } | |
6672 | ||
f6bcfd97 BP |
6673 | static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) { |
6674 | wxPyTreeCtrl *src; | |
8ab979d7 | 6675 | wxEvtHandler *dest; |
f6bcfd97 | 6676 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6677 | dest = (wxEvtHandler *) src; |
6678 | return (void *) dest; | |
6679 | } | |
6680 | ||
9df61a29 RD |
6681 | static void *SwigwxPyTreeCtrlTowxObject(void *ptr) { |
6682 | wxPyTreeCtrl *src; | |
6683 | wxObject *dest; | |
6684 | src = (wxPyTreeCtrl *) ptr; | |
6685 | dest = (wxObject *) src; | |
6686 | return (void *) dest; | |
6687 | } | |
6688 | ||
f6bcfd97 | 6689 | #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6690 | static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6691 | PyObject * _resultobj; |
f6bcfd97 | 6692 | wxPyTreeCtrl * _result; |
8ab979d7 | 6693 | wxWindow * _arg0; |
1d99702e | 6694 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
6695 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6696 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1fded56b | 6697 | long _arg4 = (long ) (wxTR_DEFAULT_STYLE); |
b68dc582 | 6698 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 6699 | wxString * _arg6 = (wxString *) &wxPy_TreeCtrlNameStr; |
1d99702e | 6700 | PyObject * _argo0 = 0; |
2f90df85 RD |
6701 | wxPoint temp; |
6702 | PyObject * _obj2 = 0; | |
6703 | wxSize temp0; | |
6704 | PyObject * _obj3 = 0; | |
1d99702e | 6705 | PyObject * _argo5 = 0; |
9a74fcaf | 6706 | PyObject * _obj6 = 0; |
efc5f224 | 6707 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
6708 | char _ptemp[128]; |
6709 | ||
6710 | self = self; | |
9a74fcaf | 6711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) |
8ab979d7 | 6712 | return NULL; |
1d99702e RD |
6713 | if (_argo0) { |
6714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p."); |
6717 | return NULL; | |
6718 | } | |
6719 | } | |
2f90df85 RD |
6720 | if (_obj2) |
6721 | { | |
6722 | _arg2 = &temp; | |
6723 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6724 | return NULL; |
2f90df85 RD |
6725 | } |
6726 | if (_obj3) | |
6727 | { | |
6728 | _arg3 = &temp0; | |
6729 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6730 | return NULL; |
2f90df85 | 6731 | } |
1d99702e | 6732 | if (_argo5) { |
b67a9327 | 6733 | if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { |
8ab979d7 RD |
6734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p."); |
6735 | return NULL; | |
6736 | } | |
6737 | } | |
9a74fcaf RD |
6738 | if (_obj6) |
6739 | { | |
6740 | _arg6 = wxString_in_helper(_obj6); | |
6741 | if (_arg6 == NULL) | |
6742 | return NULL; | |
6743 | } | |
cf694132 | 6744 | { |
474c48f9 | 6745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 6746 | _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
cf694132 | 6747 | |
474c48f9 | 6748 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6749 | if (PyErr_Occurred()) return NULL; |
1d99702e | 6750 | } if (_result) { |
f6bcfd97 | 6751 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); |
1d99702e RD |
6752 | _resultobj = Py_BuildValue("s",_ptemp); |
6753 | } else { | |
6754 | Py_INCREF(Py_None); | |
6755 | _resultobj = Py_None; | |
6756 | } | |
9a74fcaf RD |
6757 | { |
6758 | if (_obj6) | |
6759 | delete _arg6; | |
6760 | } | |
8ab979d7 RD |
6761 | return _resultobj; |
6762 | } | |
6763 | ||
aa2a5b86 RD |
6764 | #define new_wxPreTreeCtrl() (new wxPyTreeCtrl()) |
6765 | static PyObject *_wrap_new_wxPreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 6766 | PyObject * _resultobj; |
aa2a5b86 RD |
6767 | wxPyTreeCtrl * _result; |
6768 | char *_kwnames[] = { NULL }; | |
6769 | char _ptemp[128]; | |
6770 | ||
6771 | self = self; | |
6772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTreeCtrl",_kwnames)) | |
6773 | return NULL; | |
6774 | { | |
474c48f9 | 6775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6776 | _result = (wxPyTreeCtrl *)new_wxPreTreeCtrl(); |
aa2a5b86 | 6777 | |
474c48f9 | 6778 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6779 | if (PyErr_Occurred()) return NULL; |
6780 | } if (_result) { | |
6781 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); | |
6782 | _resultobj = Py_BuildValue("s",_ptemp); | |
6783 | } else { | |
6784 | Py_INCREF(Py_None); | |
6785 | _resultobj = Py_None; | |
6786 | } | |
6787 | return _resultobj; | |
6788 | } | |
6789 | ||
6790 | #define wxTreeCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
6791 | static PyObject *_wrap_wxTreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6792 | PyObject * _resultobj; | |
6793 | bool _result; | |
f6bcfd97 | 6794 | wxPyTreeCtrl * _arg0; |
aa2a5b86 RD |
6795 | wxWindow * _arg1; |
6796 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6797 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6798 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1fded56b | 6799 | long _arg5 = (long ) (wxTR_DEFAULT_STYLE); |
aa2a5b86 | 6800 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 6801 | wxString * _arg7 = (wxString *) &wxPy_TreeCtrlNameStr; |
f6bcfd97 | 6802 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
6803 | PyObject * _argo1 = 0; |
6804 | wxPoint temp; | |
6805 | PyObject * _obj3 = 0; | |
6806 | wxSize temp0; | |
6807 | PyObject * _obj4 = 0; | |
6808 | PyObject * _argo6 = 0; | |
9a74fcaf | 6809 | PyObject * _obj7 = 0; |
aa2a5b86 | 6810 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; |
f6bcfd97 BP |
6811 | |
6812 | self = self; | |
9a74fcaf | 6813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxTreeCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
f6bcfd97 BP |
6814 | return NULL; |
6815 | if (_argo0) { | |
6816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
aa2a5b86 RD |
6818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Create. Expected _wxPyTreeCtrl_p."); |
6819 | return NULL; | |
6820 | } | |
6821 | } | |
6822 | if (_argo1) { | |
6823 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6824 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Create. Expected _wxWindow_p."); | |
f6bcfd97 BP |
6826 | return NULL; |
6827 | } | |
6828 | } | |
aa2a5b86 | 6829 | if (_obj3) |
f6bcfd97 | 6830 | { |
aa2a5b86 RD |
6831 | _arg3 = &temp; |
6832 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6833 | return NULL; | |
f6bcfd97 | 6834 | } |
aa2a5b86 | 6835 | if (_obj4) |
f6bcfd97 | 6836 | { |
aa2a5b86 RD |
6837 | _arg4 = &temp0; |
6838 | if (! wxSize_helper(_obj4, &_arg4)) | |
6839 | return NULL; | |
f6bcfd97 | 6840 | } |
aa2a5b86 | 6841 | if (_argo6) { |
b67a9327 | 6842 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { |
aa2a5b86 RD |
6843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_Create. Expected _wxValidator_p."); |
6844 | return NULL; | |
6845 | } | |
6846 | } | |
9a74fcaf RD |
6847 | if (_obj7) |
6848 | { | |
6849 | _arg7 = wxString_in_helper(_obj7); | |
6850 | if (_arg7 == NULL) | |
6851 | return NULL; | |
6852 | } | |
f6bcfd97 | 6853 | { |
474c48f9 | 6854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 6855 | _result = (bool )wxTreeCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
f6bcfd97 | 6856 | |
474c48f9 | 6857 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6858 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 6859 | } _resultobj = Py_BuildValue("i",_result); |
9a74fcaf RD |
6860 | { |
6861 | if (_obj7) | |
6862 | delete _arg7; | |
6863 | } | |
f6bcfd97 BP |
6864 | return _resultobj; |
6865 | } | |
6866 | ||
0220cbc1 RD |
6867 | #define wxTreeCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
6868 | static PyObject *_wrap_wxTreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c4165ad RD |
6869 | PyObject * _resultobj; |
6870 | wxPyTreeCtrl * _arg0; | |
aa2a5b86 RD |
6871 | PyObject * _arg1; |
6872 | PyObject * _arg2; | |
9c4165ad | 6873 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
6874 | PyObject * _obj1 = 0; |
6875 | PyObject * _obj2 = 0; | |
6876 | char *_kwnames[] = { "self","self","_class", NULL }; | |
9c4165ad RD |
6877 | |
6878 | self = self; | |
0220cbc1 | 6879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
9c4165ad RD |
6880 | return NULL; |
6881 | if (_argo0) { | |
6882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
0220cbc1 | 6884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setCallbackInfo. Expected _wxPyTreeCtrl_p."); |
9c4165ad RD |
6885 | return NULL; |
6886 | } | |
6887 | } | |
aa2a5b86 RD |
6888 | { |
6889 | _arg1 = _obj1; | |
6890 | } | |
6891 | { | |
6892 | _arg2 = _obj2; | |
6893 | } | |
9c4165ad | 6894 | { |
474c48f9 | 6895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6896 | wxTreeCtrl__setCallbackInfo(_arg0,_arg1,_arg2); |
9c4165ad | 6897 | |
474c48f9 | 6898 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6899 | if (PyErr_Occurred()) return NULL; |
9c4165ad RD |
6900 | } Py_INCREF(Py_None); |
6901 | _resultobj = Py_None; | |
6902 | return _resultobj; | |
6903 | } | |
6904 | ||
d5c9047a | 6905 | #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount()) |
efc5f224 | 6906 | static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6907 | PyObject * _resultobj; |
c127177f | 6908 | size_t _result; |
f6bcfd97 | 6909 | wxPyTreeCtrl * _arg0; |
1d99702e | 6910 | PyObject * _argo0 = 0; |
efc5f224 | 6911 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6912 | |
6913 | self = self; | |
efc5f224 | 6914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0)) |
8ab979d7 | 6915 | return NULL; |
1d99702e RD |
6916 | if (_argo0) { |
6917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6920 | return NULL; |
6921 | } | |
6922 | } | |
cf694132 | 6923 | { |
474c48f9 | 6924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6925 | _result = (size_t )wxTreeCtrl_GetCount(_arg0); |
cf694132 | 6926 | |
474c48f9 | 6927 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6928 | if (PyErr_Occurred()) return NULL; |
c127177f | 6929 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6930 | return _resultobj; |
6931 | } | |
6932 | ||
d5c9047a | 6933 | #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) |
efc5f224 | 6934 | static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6935 | PyObject * _resultobj; |
d5c9047a | 6936 | unsigned int _result; |
f6bcfd97 | 6937 | wxPyTreeCtrl * _arg0; |
1d99702e | 6938 | PyObject * _argo0 = 0; |
efc5f224 | 6939 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6940 | |
6941 | self = self; | |
efc5f224 | 6942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0)) |
8ab979d7 | 6943 | return NULL; |
1d99702e RD |
6944 | if (_argo0) { |
6945 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6946 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6948 | return NULL; |
6949 | } | |
6950 | } | |
cf694132 | 6951 | { |
474c48f9 | 6952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6953 | _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0); |
cf694132 | 6954 | |
474c48f9 | 6955 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6956 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6957 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6958 | return _resultobj; |
6959 | } | |
6960 | ||
d5c9047a | 6961 | #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) |
efc5f224 | 6962 | static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6963 | PyObject * _resultobj; |
f6bcfd97 | 6964 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6965 | unsigned int _arg1; |
1d99702e | 6966 | PyObject * _argo0 = 0; |
efc5f224 | 6967 | char *_kwnames[] = { "self","indent", NULL }; |
8ab979d7 RD |
6968 | |
6969 | self = self; | |
efc5f224 | 6970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6971 | return NULL; |
1d99702e RD |
6972 | if (_argo0) { |
6973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6976 | return NULL; |
6977 | } | |
6978 | } | |
cf694132 | 6979 | { |
474c48f9 | 6980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6981 | wxTreeCtrl_SetIndent(_arg0,_arg1); |
cf694132 | 6982 | |
474c48f9 | 6983 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6984 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6985 | } Py_INCREF(Py_None); |
d5c9047a | 6986 | _resultobj = Py_None; |
8ab979d7 RD |
6987 | return _resultobj; |
6988 | } | |
6989 | ||
d5c9047a | 6990 | #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList()) |
efc5f224 | 6991 | static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6992 | PyObject * _resultobj; |
d5c9047a | 6993 | wxImageList * _result; |
f6bcfd97 | 6994 | wxPyTreeCtrl * _arg0; |
1d99702e | 6995 | PyObject * _argo0 = 0; |
efc5f224 | 6996 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6997 | |
6998 | self = self; | |
efc5f224 | 6999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0)) |
8ab979d7 | 7000 | return NULL; |
1d99702e RD |
7001 | if (_argo0) { |
7002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7005 | return NULL; |
7006 | } | |
7007 | } | |
cf694132 | 7008 | { |
474c48f9 | 7009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7010 | _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0); |
cf694132 | 7011 | |
474c48f9 | 7012 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7013 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 7014 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
7015 | return _resultobj; |
7016 | } | |
7017 | ||
d5c9047a | 7018 | #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList()) |
efc5f224 | 7019 | static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7020 | PyObject * _resultobj; |
d5c9047a | 7021 | wxImageList * _result; |
f6bcfd97 | 7022 | wxPyTreeCtrl * _arg0; |
1d99702e | 7023 | PyObject * _argo0 = 0; |
efc5f224 | 7024 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7025 | |
7026 | self = self; | |
efc5f224 | 7027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0)) |
8ab979d7 | 7028 | return NULL; |
1d99702e RD |
7029 | if (_argo0) { |
7030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7033 | return NULL; |
7034 | } | |
7035 | } | |
cf694132 | 7036 | { |
474c48f9 | 7037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7038 | _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0); |
cf694132 | 7039 | |
474c48f9 | 7040 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7041 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 7042 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
7043 | return _resultobj; |
7044 | } | |
7045 | ||
d5c9047a | 7046 | #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) |
efc5f224 | 7047 | static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7048 | PyObject * _resultobj; |
f6bcfd97 | 7049 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7050 | wxImageList * _arg1; |
1d99702e RD |
7051 | PyObject * _argo0 = 0; |
7052 | PyObject * _argo1 = 0; | |
efc5f224 | 7053 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
7054 | |
7055 | self = self; | |
efc5f224 | 7056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7057 | return NULL; |
1d99702e RD |
7058 | if (_argo0) { |
7059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7062 | return NULL; |
7063 | } | |
7064 | } | |
1d99702e RD |
7065 | if (_argo1) { |
7066 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7067 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
7068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p."); |
7069 | return NULL; | |
7070 | } | |
7071 | } | |
cf694132 | 7072 | { |
474c48f9 | 7073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7074 | wxTreeCtrl_SetImageList(_arg0,_arg1); |
cf694132 | 7075 | |
474c48f9 | 7076 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7077 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7078 | } Py_INCREF(Py_None); |
d5c9047a | 7079 | _resultobj = Py_None; |
8ab979d7 RD |
7080 | return _resultobj; |
7081 | } | |
7082 | ||
d5c9047a | 7083 | #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0)) |
efc5f224 | 7084 | static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7085 | PyObject * _resultobj; |
f6bcfd97 | 7086 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7087 | wxImageList * _arg1; |
1d99702e RD |
7088 | PyObject * _argo0 = 0; |
7089 | PyObject * _argo1 = 0; | |
efc5f224 | 7090 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
7091 | |
7092 | self = self; | |
efc5f224 | 7093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7094 | return NULL; |
1d99702e RD |
7095 | if (_argo0) { |
7096 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7097 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7098 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7099 | return NULL; |
7100 | } | |
7101 | } | |
1d99702e RD |
7102 | if (_argo1) { |
7103 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7104 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
7105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p."); |
7106 | return NULL; | |
7107 | } | |
7108 | } | |
cf694132 | 7109 | { |
474c48f9 | 7110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7111 | wxTreeCtrl_SetStateImageList(_arg0,_arg1); |
cf694132 | 7112 | |
474c48f9 | 7113 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7114 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7115 | } Py_INCREF(Py_None); |
d5c9047a | 7116 | _resultobj = Py_None; |
8ab979d7 RD |
7117 | return _resultobj; |
7118 | } | |
7119 | ||
aa2a5b86 RD |
7120 | #define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0)) |
7121 | static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7122 | PyObject * _resultobj; | |
7123 | wxPyTreeCtrl * _arg0; | |
7124 | wxImageList * _arg1; | |
7125 | PyObject * _argo0 = 0; | |
7126 | PyObject * _argo1 = 0; | |
7127 | char *_kwnames[] = { "self","imageList", NULL }; | |
7128 | ||
7129 | self = self; | |
7130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1)) | |
7131 | return NULL; | |
7132 | if (_argo0) { | |
7133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p."); | |
7136 | return NULL; | |
7137 | } | |
7138 | } | |
7139 | if (_argo1) { | |
7140 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7141 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
7142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p."); | |
7143 | return NULL; | |
7144 | } | |
7145 | } | |
7146 | { | |
474c48f9 | 7147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7148 | wxTreeCtrl_AssignImageList(_arg0,_arg1); |
aa2a5b86 | 7149 | |
474c48f9 | 7150 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
7151 | if (PyErr_Occurred()) return NULL; |
7152 | } Py_INCREF(Py_None); | |
7153 | _resultobj = Py_None; | |
7154 | return _resultobj; | |
7155 | } | |
7156 | ||
7157 | #define wxTreeCtrl_AssignStateImageList(_swigobj,_swigarg0) (_swigobj->AssignStateImageList(_swigarg0)) | |
7158 | static PyObject *_wrap_wxTreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7159 | PyObject * _resultobj; | |
7160 | wxPyTreeCtrl * _arg0; | |
7161 | wxImageList * _arg1; | |
7162 | PyObject * _argo0 = 0; | |
7163 | PyObject * _argo1 = 0; | |
7164 | char *_kwnames[] = { "self","imageList", NULL }; | |
7165 | ||
7166 | self = self; | |
7167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignStateImageList",_kwnames,&_argo0,&_argo1)) | |
7168 | return NULL; | |
7169 | if (_argo0) { | |
7170 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7171 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignStateImageList. Expected _wxPyTreeCtrl_p."); | |
7173 | return NULL; | |
7174 | } | |
7175 | } | |
7176 | if (_argo1) { | |
7177 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7178 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
7179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignStateImageList. Expected _wxImageList_p."); | |
7180 | return NULL; | |
7181 | } | |
7182 | } | |
7183 | { | |
474c48f9 | 7184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7185 | wxTreeCtrl_AssignStateImageList(_arg0,_arg1); |
aa2a5b86 | 7186 | |
474c48f9 | 7187 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
7188 | if (PyErr_Occurred()) return NULL; |
7189 | } Py_INCREF(Py_None); | |
7190 | _resultobj = Py_None; | |
7191 | return _resultobj; | |
7192 | } | |
7193 | ||
b1462dfa RD |
7194 | #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing()) |
7195 | static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7196 | PyObject * _resultobj; | |
7197 | unsigned int _result; | |
f6bcfd97 | 7198 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
7199 | PyObject * _argo0 = 0; |
7200 | char *_kwnames[] = { "self", NULL }; | |
7201 | ||
7202 | self = self; | |
7203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0)) | |
7204 | return NULL; | |
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_GetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
7209 | return NULL; |
7210 | } | |
7211 | } | |
7212 | { | |
474c48f9 | 7213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7214 | _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0); |
b1462dfa | 7215 | |
474c48f9 | 7216 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7217 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7218 | } _resultobj = Py_BuildValue("i",_result); |
7219 | return _resultobj; | |
7220 | } | |
7221 | ||
7222 | #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0)) | |
7223 | static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7224 | PyObject * _resultobj; | |
f6bcfd97 | 7225 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
7226 | unsigned int _arg1; |
7227 | PyObject * _argo0 = 0; | |
7228 | char *_kwnames[] = { "self","spacing", NULL }; | |
7229 | ||
7230 | self = self; | |
7231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1)) | |
7232 | return NULL; | |
7233 | if (_argo0) { | |
7234 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7235 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
7237 | return NULL; |
7238 | } | |
7239 | } | |
7240 | { | |
474c48f9 | 7241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7242 | wxTreeCtrl_SetSpacing(_arg0,_arg1); |
b1462dfa | 7243 | |
474c48f9 | 7244 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7245 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7246 | } Py_INCREF(Py_None); |
7247 | _resultobj = Py_None; | |
7248 | return _resultobj; | |
7249 | } | |
7250 | ||
d5c9047a | 7251 | #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
efc5f224 | 7252 | static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7253 | PyObject * _resultobj; |
d5c9047a | 7254 | wxString * _result; |
f6bcfd97 | 7255 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7256 | wxTreeItemId * _arg1; |
1d99702e RD |
7257 | PyObject * _argo0 = 0; |
7258 | PyObject * _argo1 = 0; | |
efc5f224 | 7259 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7260 | |
7261 | self = self; | |
efc5f224 | 7262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7263 | return NULL; |
1d99702e RD |
7264 | if (_argo0) { |
7265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7268 | return NULL; |
7269 | } | |
7270 | } | |
1d99702e | 7271 | if (_argo1) { |
b67a9327 | 7272 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p."); |
7274 | return NULL; | |
7275 | } | |
7276 | } | |
d5c9047a | 7277 | { |
474c48f9 | 7278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7279 | _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1)); |
cf694132 | 7280 | |
474c48f9 | 7281 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7282 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7283 | }{ |
c8bc7bb8 | 7284 | #if wxUSE_UNICODE |
b67a9327 | 7285 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7286 | #else |
eec92d76 | 7287 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7288 | #endif |
d5c9047a RD |
7289 | } |
7290 | { | |
7291 | delete _result; | |
7292 | } | |
8ab979d7 RD |
7293 | return _resultobj; |
7294 | } | |
7295 | ||
694759cf | 7296 | #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1)) |
efc5f224 | 7297 | static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7298 | PyObject * _resultobj; |
d5c9047a | 7299 | int _result; |
f6bcfd97 | 7300 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7301 | wxTreeItemId * _arg1; |
694759cf | 7302 | wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
7303 | PyObject * _argo0 = 0; |
7304 | PyObject * _argo1 = 0; | |
694759cf | 7305 | char *_kwnames[] = { "self","item","which", NULL }; |
8ab979d7 RD |
7306 | |
7307 | self = self; | |
694759cf | 7308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 7309 | return NULL; |
1d99702e RD |
7310 | if (_argo0) { |
7311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7314 | return NULL; |
7315 | } | |
7316 | } | |
1d99702e | 7317 | if (_argo1) { |
b67a9327 | 7318 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p."); |
7320 | return NULL; | |
7321 | } | |
7322 | } | |
cf694132 | 7323 | { |
474c48f9 | 7324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7325 | _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2); |
cf694132 | 7326 | |
474c48f9 | 7327 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7328 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7329 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7330 | return _resultobj; |
7331 | } | |
7332 | ||
d5c9047a | 7333 | #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0)) |
efc5f224 | 7334 | static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7335 | PyObject * _resultobj; |
d5c9047a | 7336 | int _result; |
f6bcfd97 | 7337 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7338 | wxTreeItemId * _arg1; |
1d99702e RD |
7339 | PyObject * _argo0 = 0; |
7340 | PyObject * _argo1 = 0; | |
efc5f224 | 7341 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7342 | |
7343 | self = self; | |
efc5f224 | 7344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7345 | return NULL; |
1d99702e RD |
7346 | if (_argo0) { |
7347 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7348 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7350 | return NULL; |
7351 | } | |
7352 | } | |
1d99702e | 7353 | if (_argo1) { |
b67a9327 | 7354 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7355 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p."); |
7356 | return NULL; | |
7357 | } | |
7358 | } | |
cf694132 | 7359 | { |
474c48f9 | 7360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7361 | _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1); |
8ab979d7 | 7362 | |
474c48f9 | 7363 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7364 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7365 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7366 | return _resultobj; |
7367 | } | |
7368 | ||
d5c9047a | 7369 | #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
efc5f224 | 7370 | static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7371 | PyObject * _resultobj; |
f6bcfd97 | 7372 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7373 | wxTreeItemId * _arg1; |
7374 | wxString * _arg2; | |
1d99702e RD |
7375 | PyObject * _argo0 = 0; |
7376 | PyObject * _argo1 = 0; | |
d5c9047a | 7377 | PyObject * _obj2 = 0; |
efc5f224 | 7378 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
7379 | |
7380 | self = self; | |
efc5f224 | 7381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7382 | return NULL; |
1d99702e RD |
7383 | if (_argo0) { |
7384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7387 | return NULL; |
7388 | } | |
7389 | } | |
1d99702e | 7390 | if (_argo1) { |
b67a9327 | 7391 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p."); |
7393 | return NULL; | |
7394 | } | |
7395 | } | |
7396 | { | |
c8bc7bb8 RD |
7397 | _arg2 = wxString_in_helper(_obj2); |
7398 | if (_arg2 == NULL) | |
2cd2fac8 | 7399 | return NULL; |
d5c9047a | 7400 | } |
cf694132 | 7401 | { |
474c48f9 | 7402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7403 | wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2); |
cf694132 | 7404 | |
474c48f9 | 7405 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7406 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7407 | } Py_INCREF(Py_None); |
d5c9047a RD |
7408 | _resultobj = Py_None; |
7409 | { | |
7410 | if (_obj2) | |
7411 | delete _arg2; | |
7412 | } | |
8ab979d7 RD |
7413 | return _resultobj; |
7414 | } | |
7415 | ||
694759cf | 7416 | #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 7417 | static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7418 | PyObject * _resultobj; |
f6bcfd97 | 7419 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7420 | wxTreeItemId * _arg1; |
7421 | int _arg2; | |
694759cf | 7422 | wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
7423 | PyObject * _argo0 = 0; |
7424 | PyObject * _argo1 = 0; | |
694759cf | 7425 | char *_kwnames[] = { "self","item","image","which", NULL }; |
8ab979d7 RD |
7426 | |
7427 | self = self; | |
694759cf | 7428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 7429 | return NULL; |
1d99702e RD |
7430 | if (_argo0) { |
7431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7434 | return NULL; |
7435 | } | |
7436 | } | |
1d99702e | 7437 | if (_argo1) { |
b67a9327 | 7438 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p."); |
7440 | return NULL; | |
7441 | } | |
7442 | } | |
cf694132 | 7443 | { |
474c48f9 | 7444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7445 | wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 7446 | |
474c48f9 | 7447 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7448 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7449 | } Py_INCREF(Py_None); |
d5c9047a | 7450 | _resultobj = Py_None; |
8ab979d7 RD |
7451 | return _resultobj; |
7452 | } | |
7453 | ||
d5c9047a | 7454 | #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1)) |
efc5f224 | 7455 | static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7456 | PyObject * _resultobj; |
f6bcfd97 | 7457 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7458 | wxTreeItemId * _arg1; |
7459 | int _arg2; | |
1d99702e RD |
7460 | PyObject * _argo0 = 0; |
7461 | PyObject * _argo1 = 0; | |
efc5f224 | 7462 | char *_kwnames[] = { "self","item","image", NULL }; |
8ab979d7 RD |
7463 | |
7464 | self = self; | |
efc5f224 | 7465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 7466 | return NULL; |
1d99702e RD |
7467 | if (_argo0) { |
7468 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7469 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7471 | return NULL; |
7472 | } | |
7473 | } | |
1d99702e | 7474 | if (_argo1) { |
b67a9327 | 7475 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p."); |
7477 | return NULL; | |
7478 | } | |
7479 | } | |
cf694132 | 7480 | { |
474c48f9 | 7481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7482 | wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2); |
cf694132 | 7483 | |
474c48f9 | 7484 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7485 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7486 | } Py_INCREF(Py_None); |
7487 | _resultobj = Py_None; | |
7488 | return _resultobj; | |
7489 | } | |
7490 | ||
7491 | #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1)) | |
efc5f224 | 7492 | static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7493 | PyObject * _resultobj; |
f6bcfd97 | 7494 | wxPyTreeCtrl * _arg0; |
cf694132 | 7495 | wxTreeItemId * _arg1; |
1d99702e RD |
7496 | bool _arg2 = (bool ) TRUE; |
7497 | PyObject * _argo0 = 0; | |
7498 | PyObject * _argo1 = 0; | |
7499 | int tempbool2 = (int) TRUE; | |
efc5f224 | 7500 | char *_kwnames[] = { "self","item","hasChildren", NULL }; |
cf694132 RD |
7501 | |
7502 | self = self; | |
efc5f224 | 7503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2)) |
cf694132 | 7504 | return NULL; |
1d99702e RD |
7505 | if (_argo0) { |
7506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7509 | return NULL; |
7510 | } | |
7511 | } | |
1d99702e | 7512 | if (_argo1) { |
b67a9327 | 7513 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
cf694132 RD |
7514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p."); |
7515 | return NULL; | |
7516 | } | |
7517 | } | |
7518 | _arg2 = (bool ) tempbool2; | |
7519 | { | |
474c48f9 | 7520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7521 | wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2); |
cf694132 | 7522 | |
474c48f9 | 7523 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7524 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7525 | } Py_INCREF(Py_None); |
d5c9047a | 7526 | _resultobj = Py_None; |
8ab979d7 RD |
7527 | return _resultobj; |
7528 | } | |
7529 | ||
f6bcfd97 | 7530 | static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7531 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7532 | if (data == NULL) { | |
7533 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7534 | data->SetId(item); // set the id |
cf694132 RD |
7535 | self->SetItemData(item, data); |
7536 | } | |
7537 | return data; | |
7538 | } | |
efc5f224 | 7539 | static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
7540 | PyObject * _resultobj; |
7541 | wxPyTreeItemData * _result; | |
f6bcfd97 | 7542 | wxPyTreeCtrl * _arg0; |
cf694132 | 7543 | wxTreeItemId * _arg1; |
1d99702e RD |
7544 | PyObject * _argo0 = 0; |
7545 | PyObject * _argo1 = 0; | |
efc5f224 | 7546 | char *_kwnames[] = { "self","item", NULL }; |
cf694132 RD |
7547 | char _ptemp[128]; |
7548 | ||
7549 | self = self; | |
efc5f224 | 7550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1)) |
cf694132 | 7551 | return NULL; |
1d99702e RD |
7552 | if (_argo0) { |
7553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7556 | return NULL; |
7557 | } | |
7558 | } | |
1d99702e | 7559 | if (_argo1) { |
b67a9327 | 7560 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
cf694132 RD |
7561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p."); |
7562 | return NULL; | |
7563 | } | |
7564 | } | |
7565 | { | |
474c48f9 | 7566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7567 | _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1); |
cf694132 | 7568 | |
474c48f9 | 7569 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7570 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7571 | } if (_result) { |
7572 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
7573 | _resultobj = Py_BuildValue("s",_ptemp); | |
7574 | } else { | |
7575 | Py_INCREF(Py_None); | |
7576 | _resultobj = Py_None; | |
7577 | } | |
cf694132 RD |
7578 | return _resultobj; |
7579 | } | |
7580 | ||
f6bcfd97 BP |
7581 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) { |
7582 | data->SetId(item); // set the id | |
7583 | self->SetItemData(item, data); | |
c368d904 | 7584 | } |
efc5f224 | 7585 | static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7586 | PyObject * _resultobj; |
f6bcfd97 | 7587 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7588 | wxTreeItemId * _arg1; |
cf694132 | 7589 | wxPyTreeItemData * _arg2; |
1d99702e RD |
7590 | PyObject * _argo0 = 0; |
7591 | PyObject * _argo1 = 0; | |
7592 | PyObject * _argo2 = 0; | |
efc5f224 | 7593 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
7594 | |
7595 | self = self; | |
efc5f224 | 7596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2)) |
8ab979d7 | 7597 | return NULL; |
1d99702e RD |
7598 | if (_argo0) { |
7599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7602 | return NULL; |
7603 | } | |
7604 | } | |
1d99702e | 7605 | if (_argo1) { |
b67a9327 | 7606 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p."); |
7608 | return NULL; | |
7609 | } | |
7610 | } | |
1d99702e RD |
7611 | if (_argo2) { |
7612 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7613 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) { | |
cf694132 | 7614 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
7615 | return NULL; |
7616 | } | |
7617 | } | |
cf694132 | 7618 | { |
474c48f9 | 7619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7620 | wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2); |
cf694132 | 7621 | |
474c48f9 | 7622 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7623 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7624 | } Py_INCREF(Py_None); |
d5c9047a | 7625 | _resultobj = Py_None; |
8ab979d7 RD |
7626 | return _resultobj; |
7627 | } | |
7628 | ||
f6bcfd97 | 7629 | static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7630 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7631 | if (data == NULL) { | |
7632 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7633 | data->SetId(item); // set the id |
cf694132 RD |
7634 | self->SetItemData(item, data); |
7635 | } | |
7636 | return data->GetData(); | |
c368d904 | 7637 | } |
efc5f224 | 7638 | static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 7639 | PyObject * _resultobj; |
cf694132 | 7640 | PyObject * _result; |
f6bcfd97 | 7641 | wxPyTreeCtrl * _arg0; |
08127323 | 7642 | wxTreeItemId * _arg1; |
1d99702e RD |
7643 | PyObject * _argo0 = 0; |
7644 | PyObject * _argo1 = 0; | |
efc5f224 | 7645 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
7646 | |
7647 | self = self; | |
efc5f224 | 7648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1)) |
08127323 | 7649 | return NULL; |
1d99702e RD |
7650 | if (_argo0) { |
7651 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7652 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
7654 | return NULL; |
7655 | } | |
7656 | } | |
1d99702e | 7657 | if (_argo1) { |
b67a9327 | 7658 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
cf694132 | 7659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p."); |
08127323 RD |
7660 | return NULL; |
7661 | } | |
7662 | } | |
cf694132 | 7663 | { |
474c48f9 | 7664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7665 | _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1); |
cf694132 | 7666 | |
474c48f9 | 7667 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7668 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7669 | }{ |
7670 | _resultobj = _result; | |
7671 | } | |
7672 | return _resultobj; | |
7673 | } | |
7674 | ||
f6bcfd97 | 7675 | static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) { |
cf694132 RD |
7676 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7677 | if (data == NULL) { | |
7678 | data = new wxPyTreeItemData(obj); | |
f6bcfd97 | 7679 | data->SetId(item); // set the id |
cf694132 RD |
7680 | self->SetItemData(item, data); |
7681 | } else | |
7682 | data->SetData(obj); | |
c368d904 | 7683 | } |
efc5f224 | 7684 | static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7685 | PyObject * _resultobj; |
f6bcfd97 | 7686 | wxPyTreeCtrl * _arg0; |
cf694132 RD |
7687 | wxTreeItemId * _arg1; |
7688 | PyObject * _arg2; | |
1d99702e RD |
7689 | PyObject * _argo0 = 0; |
7690 | PyObject * _argo1 = 0; | |
cf694132 | 7691 | PyObject * _obj2 = 0; |
efc5f224 | 7692 | char *_kwnames[] = { "self","item","obj", NULL }; |
cf694132 RD |
7693 | |
7694 | self = self; | |
efc5f224 | 7695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2)) |
cf694132 | 7696 | return NULL; |
1d99702e RD |
7697 | if (_argo0) { |
7698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7701 | return NULL; |
7702 | } | |
7703 | } | |
1d99702e | 7704 | if (_argo1) { |
b67a9327 | 7705 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
cf694132 RD |
7706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p."); |
7707 | return NULL; | |
7708 | } | |
7709 | } | |
7710 | { | |
7711 | _arg2 = _obj2; | |
7712 | } | |
7713 | { | |
474c48f9 | 7714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7715 | wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2); |
cf694132 | 7716 | |
474c48f9 | 7717 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7718 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7719 | } Py_INCREF(Py_None); |
08127323 RD |
7720 | _resultobj = Py_None; |
7721 | return _resultobj; | |
7722 | } | |
7723 | ||
b67a9327 RD |
7724 | #define wxTreeCtrl_GetItemTextColour(_swigobj,_swigarg0) (_swigobj->GetItemTextColour(_swigarg0)) |
7725 | static PyObject *_wrap_wxTreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7726 | PyObject * _resultobj; | |
7727 | wxColour * _result; | |
7728 | wxPyTreeCtrl * _arg0; | |
7729 | wxTreeItemId * _arg1; | |
7730 | PyObject * _argo0 = 0; | |
7731 | PyObject * _argo1 = 0; | |
7732 | char *_kwnames[] = { "self","item", NULL }; | |
7733 | char _ptemp[128]; | |
7734 | ||
7735 | self = self; | |
7736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemTextColour",_kwnames,&_argo0,&_argo1)) | |
7737 | return NULL; | |
7738 | if (_argo0) { | |
7739 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7740 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
7742 | return NULL; | |
7743 | } | |
7744 | } | |
7745 | if (_argo1) { | |
7746 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemTextColour. Expected _wxTreeItemId_p."); | |
7748 | return NULL; | |
7749 | } | |
7750 | } | |
7751 | { | |
7752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7753 | _result = new wxColour (wxTreeCtrl_GetItemTextColour(_arg0,*_arg1)); | |
7754 | ||
7755 | wxPyEndAllowThreads(__tstate); | |
7756 | if (PyErr_Occurred()) return NULL; | |
7757 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
7758 | _resultobj = Py_BuildValue("s",_ptemp); | |
7759 | return _resultobj; | |
7760 | } | |
7761 | ||
7762 | #define wxTreeCtrl_GetItemBackgroundColour(_swigobj,_swigarg0) (_swigobj->GetItemBackgroundColour(_swigarg0)) | |
7763 | static PyObject *_wrap_wxTreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7764 | PyObject * _resultobj; | |
7765 | wxColour * _result; | |
7766 | wxPyTreeCtrl * _arg0; | |
7767 | wxTreeItemId * _arg1; | |
7768 | PyObject * _argo0 = 0; | |
7769 | PyObject * _argo1 = 0; | |
7770 | char *_kwnames[] = { "self","item", NULL }; | |
7771 | char _ptemp[128]; | |
7772 | ||
7773 | self = self; | |
7774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemBackgroundColour",_kwnames,&_argo0,&_argo1)) | |
7775 | return NULL; | |
7776 | if (_argo0) { | |
7777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
7780 | return NULL; | |
7781 | } | |
7782 | } | |
7783 | if (_argo1) { | |
7784 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
7786 | return NULL; | |
7787 | } | |
7788 | } | |
7789 | { | |
7790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7791 | _result = new wxColour (wxTreeCtrl_GetItemBackgroundColour(_arg0,*_arg1)); | |
7792 | ||
7793 | wxPyEndAllowThreads(__tstate); | |
7794 | if (PyErr_Occurred()) return NULL; | |
7795 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
7796 | _resultobj = Py_BuildValue("s",_ptemp); | |
7797 | return _resultobj; | |
7798 | } | |
7799 | ||
7800 | #define wxTreeCtrl_GetItemFont(_swigobj,_swigarg0) (_swigobj->GetItemFont(_swigarg0)) | |
7801 | static PyObject *_wrap_wxTreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7802 | PyObject * _resultobj; | |
7803 | wxFont * _result; | |
7804 | wxPyTreeCtrl * _arg0; | |
7805 | wxTreeItemId * _arg1; | |
7806 | PyObject * _argo0 = 0; | |
7807 | PyObject * _argo1 = 0; | |
7808 | char *_kwnames[] = { "self","item", NULL }; | |
7809 | char _ptemp[128]; | |
7810 | ||
7811 | self = self; | |
7812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemFont",_kwnames,&_argo0,&_argo1)) | |
7813 | return NULL; | |
7814 | if (_argo0) { | |
7815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemFont. Expected _wxPyTreeCtrl_p."); | |
7818 | return NULL; | |
7819 | } | |
7820 | } | |
7821 | if (_argo1) { | |
7822 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemFont. Expected _wxTreeItemId_p."); | |
7824 | return NULL; | |
7825 | } | |
7826 | } | |
7827 | { | |
7828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7829 | _result = new wxFont (wxTreeCtrl_GetItemFont(_arg0,*_arg1)); | |
7830 | ||
7831 | wxPyEndAllowThreads(__tstate); | |
7832 | if (PyErr_Occurred()) return NULL; | |
7833 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
7834 | _resultobj = Py_BuildValue("s",_ptemp); | |
7835 | return _resultobj; | |
7836 | } | |
7837 | ||
d5c9047a | 7838 | #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) |
efc5f224 | 7839 | static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7840 | PyObject * _resultobj; |
d5c9047a | 7841 | bool _result; |
f6bcfd97 | 7842 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7843 | wxTreeItemId * _arg1; |
1d99702e RD |
7844 | PyObject * _argo0 = 0; |
7845 | PyObject * _argo1 = 0; | |
efc5f224 | 7846 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7847 | |
7848 | self = self; | |
efc5f224 | 7849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7850 | return NULL; |
1d99702e RD |
7851 | if (_argo0) { |
7852 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7853 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7855 | return NULL; |
7856 | } | |
7857 | } | |
1d99702e | 7858 | if (_argo1) { |
b67a9327 | 7859 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p."); |
7861 | return NULL; | |
7862 | } | |
7863 | } | |
cf694132 | 7864 | { |
474c48f9 | 7865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7866 | _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1); |
cf694132 | 7867 | |
474c48f9 | 7868 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7869 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7870 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7871 | return _resultobj; |
7872 | } | |
7873 | ||
d5c9047a | 7874 | #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0)) |
efc5f224 | 7875 | static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7876 | PyObject * _resultobj; |
d5c9047a | 7877 | bool _result; |
f6bcfd97 | 7878 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7879 | wxTreeItemId * _arg1; |
1d99702e RD |
7880 | PyObject * _argo0 = 0; |
7881 | PyObject * _argo1 = 0; | |
efc5f224 | 7882 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7883 | |
7884 | self = self; | |
efc5f224 | 7885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7886 | return NULL; |
1d99702e RD |
7887 | if (_argo0) { |
7888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7891 | return NULL; |
7892 | } | |
7893 | } | |
1d99702e | 7894 | if (_argo1) { |
b67a9327 | 7895 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p."); |
7897 | return NULL; | |
7898 | } | |
7899 | } | |
cf694132 | 7900 | { |
474c48f9 | 7901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7902 | _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1); |
cf694132 | 7903 | |
474c48f9 | 7904 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7905 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7906 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7907 | return _resultobj; |
7908 | } | |
7909 | ||
d5c9047a | 7910 | #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0)) |
efc5f224 | 7911 | static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7912 | PyObject * _resultobj; |
d5c9047a | 7913 | bool _result; |
f6bcfd97 | 7914 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7915 | wxTreeItemId * _arg1; |
1d99702e RD |
7916 | PyObject * _argo0 = 0; |
7917 | PyObject * _argo1 = 0; | |
efc5f224 | 7918 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7919 | |
7920 | self = self; | |
efc5f224 | 7921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7922 | return NULL; |
1d99702e RD |
7923 | if (_argo0) { |
7924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7927 | return NULL; |
7928 | } | |
7929 | } | |
1d99702e | 7930 | if (_argo1) { |
b67a9327 | 7931 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p."); |
7933 | return NULL; | |
7934 | } | |
7935 | } | |
cf694132 | 7936 | { |
474c48f9 | 7937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7938 | _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1); |
cf694132 | 7939 | |
474c48f9 | 7940 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7941 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7942 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7943 | return _resultobj; |
7944 | } | |
7945 | ||
d5c9047a | 7946 | #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
efc5f224 | 7947 | static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7948 | PyObject * _resultobj; |
d5c9047a | 7949 | bool _result; |
f6bcfd97 | 7950 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7951 | wxTreeItemId * _arg1; |
1d99702e RD |
7952 | PyObject * _argo0 = 0; |
7953 | PyObject * _argo1 = 0; | |
efc5f224 | 7954 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7955 | |
7956 | self = self; | |
efc5f224 | 7957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7958 | return NULL; |
1d99702e RD |
7959 | if (_argo0) { |
7960 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7961 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7963 | return NULL; |
7964 | } | |
7965 | } | |
1d99702e | 7966 | if (_argo1) { |
b67a9327 | 7967 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p."); |
7969 | return NULL; | |
7970 | } | |
7971 | } | |
cf694132 | 7972 | { |
474c48f9 | 7973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7974 | _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1); |
cf694132 | 7975 | |
474c48f9 | 7976 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7977 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7978 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7979 | return _resultobj; |
7980 | } | |
7981 | ||
7982 | #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem()) | |
efc5f224 | 7983 | static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7984 | PyObject * _resultobj; |
d5c9047a | 7985 | wxTreeItemId * _result; |
f6bcfd97 | 7986 | wxPyTreeCtrl * _arg0; |
1d99702e | 7987 | PyObject * _argo0 = 0; |
efc5f224 | 7988 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7989 | char _ptemp[128]; |
8ab979d7 RD |
7990 | |
7991 | self = self; | |
efc5f224 | 7992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0)) |
8ab979d7 | 7993 | return NULL; |
1d99702e RD |
7994 | if (_argo0) { |
7995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7998 | return NULL; |
7999 | } | |
8000 | } | |
cf694132 | 8001 | { |
474c48f9 | 8002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8003 | _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0)); |
cf694132 | 8004 | |
474c48f9 | 8005 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8006 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8007 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8008 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8009 | return _resultobj; |
8010 | } | |
8011 | ||
8012 | #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 8013 | static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8014 | PyObject * _resultobj; |
d5c9047a | 8015 | wxTreeItemId * _result; |
f6bcfd97 | 8016 | wxPyTreeCtrl * _arg0; |
1d99702e | 8017 | PyObject * _argo0 = 0; |
efc5f224 | 8018 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 8019 | char _ptemp[128]; |
8ab979d7 RD |
8020 | |
8021 | self = self; | |
efc5f224 | 8022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 8023 | return NULL; |
1d99702e RD |
8024 | if (_argo0) { |
8025 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8026 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8028 | return NULL; |
8029 | } | |
8030 | } | |
cf694132 | 8031 | { |
474c48f9 | 8032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8033 | _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0)); |
cf694132 | 8034 | |
474c48f9 | 8035 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8036 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8037 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8038 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8039 | return _resultobj; |
8040 | } | |
8041 | ||
b67a9327 | 8042 | #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetItemParent(_swigarg0)) |
eb715945 | 8043 | static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8044 | PyObject * _resultobj; |
d5c9047a | 8045 | wxTreeItemId * _result; |
f6bcfd97 | 8046 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8047 | wxTreeItemId * _arg1; |
1d99702e RD |
8048 | PyObject * _argo0 = 0; |
8049 | PyObject * _argo1 = 0; | |
efc5f224 | 8050 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8051 | char _ptemp[128]; |
8ab979d7 RD |
8052 | |
8053 | self = self; | |
eb715945 | 8054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8055 | return NULL; |
1d99702e RD |
8056 | if (_argo0) { |
8057 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8058 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8060 | return NULL; |
8061 | } | |
8062 | } | |
1d99702e | 8063 | if (_argo1) { |
b67a9327 | 8064 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
eb715945 | 8065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8066 | return NULL; |
8067 | } | |
8068 | } | |
cf694132 | 8069 | { |
474c48f9 | 8070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8071 | _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1)); |
cf694132 | 8072 | |
474c48f9 | 8073 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8074 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8075 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8076 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8077 | return _resultobj; |
8078 | } | |
8079 | ||
f6bcfd97 | 8080 | static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) { |
474c48f9 | 8081 | wxPyBeginBlockThreads(); |
d426c97e RD |
8082 | PyObject* rval = PyList_New(0); |
8083 | wxArrayTreeItemIds array; | |
8084 | size_t num, x; | |
8085 | num = self->GetSelections(array); | |
8086 | for (x=0; x < num; x++) { | |
c368d904 | 8087 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); |
b67a9327 | 8088 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), TRUE); |
d426c97e RD |
8089 | PyList_Append(rval, item); |
8090 | } | |
474c48f9 | 8091 | wxPyEndBlockThreads(); |
d426c97e RD |
8092 | return rval; |
8093 | } | |
8094 | static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8095 | PyObject * _resultobj; | |
8096 | PyObject * _result; | |
f6bcfd97 | 8097 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8098 | PyObject * _argo0 = 0; |
8099 | char *_kwnames[] = { "self", NULL }; | |
8100 | ||
8101 | self = self; | |
8102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0)) | |
8103 | return NULL; | |
8104 | if (_argo0) { | |
8105 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8106 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8107 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8108 | return NULL; |
8109 | } | |
8110 | } | |
8111 | { | |
474c48f9 | 8112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8113 | _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0); |
d426c97e | 8114 | |
474c48f9 | 8115 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8116 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8117 | }{ |
8118 | _resultobj = _result; | |
8119 | } | |
8120 | return _resultobj; | |
8121 | } | |
8122 | ||
bb0054cd | 8123 | #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1)) |
efc5f224 | 8124 | static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
8125 | PyObject * _resultobj; |
8126 | size_t _result; | |
f6bcfd97 | 8127 | wxPyTreeCtrl * _arg0; |
bb0054cd | 8128 | wxTreeItemId * _arg1; |
1d99702e RD |
8129 | bool _arg2 = (bool ) TRUE; |
8130 | PyObject * _argo0 = 0; | |
8131 | PyObject * _argo1 = 0; | |
8132 | int tempbool2 = (int) TRUE; | |
efc5f224 | 8133 | char *_kwnames[] = { "self","item","recursively", NULL }; |
bb0054cd RD |
8134 | |
8135 | self = self; | |
efc5f224 | 8136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2)) |
bb0054cd | 8137 | return NULL; |
1d99702e RD |
8138 | if (_argo0) { |
8139 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8140 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p."); | |
bb0054cd RD |
8142 | return NULL; |
8143 | } | |
8144 | } | |
1d99702e | 8145 | if (_argo1) { |
b67a9327 | 8146 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
bb0054cd RD |
8147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p."); |
8148 | return NULL; | |
8149 | } | |
8150 | } | |
8151 | _arg2 = (bool ) tempbool2; | |
8152 | { | |
474c48f9 | 8153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8154 | _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2); |
bb0054cd | 8155 | |
474c48f9 | 8156 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8157 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
8158 | } _resultobj = Py_BuildValue("i",_result); |
8159 | return _resultobj; | |
8160 | } | |
8161 | ||
d5c9047a | 8162 | #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1)) |
efc5f224 | 8163 | static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8164 | PyObject * _resultobj; |
d5c9047a | 8165 | wxTreeItemId * _result; |
f6bcfd97 | 8166 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8167 | wxTreeItemId * _arg1; |
8f8b0a8d | 8168 | long * _arg2 = (long *) &longzero; |
1d99702e RD |
8169 | PyObject * _argo0 = 0; |
8170 | PyObject * _argo1 = 0; | |
d5c9047a RD |
8171 | long temp; |
8172 | PyObject * _obj2 = 0; | |
efc5f224 | 8173 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 8174 | char _ptemp[128]; |
8ab979d7 RD |
8175 | |
8176 | self = self; | |
8f8b0a8d | 8177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 8178 | return NULL; |
1d99702e RD |
8179 | if (_argo0) { |
8180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8183 | return NULL; |
8184 | } | |
8185 | } | |
1d99702e | 8186 | if (_argo1) { |
b67a9327 | 8187 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a | 8188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8189 | return NULL; |
8190 | } | |
8191 | } | |
8f8b0a8d | 8192 | if (_obj2) |
d5c9047a RD |
8193 | { |
8194 | temp = (long) PyInt_AsLong(_obj2); | |
8195 | _arg2 = &temp; | |
8196 | } | |
cf694132 | 8197 | { |
474c48f9 | 8198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8199 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); |
cf694132 | 8200 | |
474c48f9 | 8201 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8202 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8203 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8204 | _resultobj = Py_BuildValue("s",_ptemp); |
8205 | { | |
8206 | PyObject *o; | |
8207 | o = PyInt_FromLong((long) (*_arg2)); | |
8208 | _resultobj = t_output_helper(_resultobj, o); | |
8209 | } | |
8ab979d7 RD |
8210 | return _resultobj; |
8211 | } | |
8212 | ||
d5c9047a | 8213 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) |
efc5f224 | 8214 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8215 | PyObject * _resultobj; |
d5c9047a | 8216 | wxTreeItemId * _result; |
f6bcfd97 | 8217 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8218 | wxTreeItemId * _arg1; |
8219 | long * _arg2; | |
1d99702e RD |
8220 | PyObject * _argo0 = 0; |
8221 | PyObject * _argo1 = 0; | |
d5c9047a | 8222 | long temp; |
8ab979d7 | 8223 | PyObject * _obj2 = 0; |
efc5f224 | 8224 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 8225 | char _ptemp[128]; |
8ab979d7 RD |
8226 | |
8227 | self = self; | |
efc5f224 | 8228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 8229 | return NULL; |
1d99702e RD |
8230 | if (_argo0) { |
8231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8234 | return NULL; |
8235 | } | |
8236 | } | |
1d99702e | 8237 | if (_argo1) { |
b67a9327 | 8238 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a | 8239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); |
8ab979d7 | 8240 | return NULL; |
d5c9047a | 8241 | } |
8ab979d7 | 8242 | } |
d5c9047a RD |
8243 | { |
8244 | temp = (long) PyInt_AsLong(_obj2); | |
8245 | _arg2 = &temp; | |
8ab979d7 | 8246 | } |
cf694132 | 8247 | { |
474c48f9 | 8248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8249 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); |
cf694132 | 8250 | |
474c48f9 | 8251 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8252 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8253 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8254 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 | 8255 | { |
d5c9047a RD |
8256 | PyObject *o; |
8257 | o = PyInt_FromLong((long) (*_arg2)); | |
8258 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
8259 | } |
8260 | return _resultobj; | |
8261 | } | |
8262 | ||
d5c9047a | 8263 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) |
efc5f224 | 8264 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8265 | PyObject * _resultobj; |
d5c9047a | 8266 | wxTreeItemId * _result; |
f6bcfd97 | 8267 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8268 | wxTreeItemId * _arg1; |
1d99702e RD |
8269 | PyObject * _argo0 = 0; |
8270 | PyObject * _argo1 = 0; | |
efc5f224 | 8271 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8272 | char _ptemp[128]; |
8ab979d7 RD |
8273 | |
8274 | self = self; | |
efc5f224 | 8275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8276 | return NULL; |
1d99702e RD |
8277 | if (_argo0) { |
8278 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8279 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8280 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8281 | return NULL; |
8282 | } | |
8283 | } | |
1d99702e | 8284 | if (_argo1) { |
b67a9327 | 8285 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); |
8287 | return NULL; | |
8288 | } | |
8289 | } | |
cf694132 | 8290 | { |
474c48f9 | 8291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8292 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); |
cf694132 | 8293 | |
474c48f9 | 8294 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8295 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8296 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8297 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8298 | return _resultobj; |
8299 | } | |
8300 | ||
d5c9047a | 8301 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) |
efc5f224 | 8302 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8303 | PyObject * _resultobj; |
d5c9047a | 8304 | wxTreeItemId * _result; |
f6bcfd97 | 8305 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8306 | wxTreeItemId * _arg1; |
1d99702e RD |
8307 | PyObject * _argo0 = 0; |
8308 | PyObject * _argo1 = 0; | |
efc5f224 | 8309 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8310 | char _ptemp[128]; |
8ab979d7 RD |
8311 | |
8312 | self = self; | |
efc5f224 | 8313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8314 | return NULL; |
1d99702e RD |
8315 | if (_argo0) { |
8316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8319 | return NULL; |
8320 | } | |
8321 | } | |
1d99702e | 8322 | if (_argo1) { |
b67a9327 | 8323 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); |
8325 | return NULL; | |
8326 | } | |
8327 | } | |
cf694132 | 8328 | { |
474c48f9 | 8329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8330 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); |
cf694132 | 8331 | |
474c48f9 | 8332 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8333 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8334 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8335 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8336 | return _resultobj; |
8337 | } | |
8338 | ||
d5c9047a | 8339 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) |
efc5f224 | 8340 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8341 | PyObject * _resultobj; |
d5c9047a | 8342 | wxTreeItemId * _result; |
f6bcfd97 | 8343 | wxPyTreeCtrl * _arg0; |
1d99702e | 8344 | PyObject * _argo0 = 0; |
efc5f224 | 8345 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 8346 | char _ptemp[128]; |
8ab979d7 RD |
8347 | |
8348 | self = self; | |
efc5f224 | 8349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) |
8ab979d7 | 8350 | return NULL; |
1d99702e RD |
8351 | if (_argo0) { |
8352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8355 | return NULL; |
8356 | } | |
8357 | } | |
cf694132 | 8358 | { |
474c48f9 | 8359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8360 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); |
cf694132 | 8361 | |
474c48f9 | 8362 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8363 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8364 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8365 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8366 | return _resultobj; |
8367 | } | |
8368 | ||
d5c9047a | 8369 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) |
efc5f224 | 8370 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8371 | PyObject * _resultobj; |
d5c9047a | 8372 | wxTreeItemId * _result; |
f6bcfd97 | 8373 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8374 | wxTreeItemId * _arg1; |
1d99702e RD |
8375 | PyObject * _argo0 = 0; |
8376 | PyObject * _argo1 = 0; | |
efc5f224 | 8377 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8378 | char _ptemp[128]; |
8ab979d7 RD |
8379 | |
8380 | self = self; | |
efc5f224 | 8381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8382 | return NULL; |
1d99702e RD |
8383 | if (_argo0) { |
8384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8387 | return NULL; |
8388 | } | |
8389 | } | |
1d99702e | 8390 | if (_argo1) { |
b67a9327 | 8391 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); |
8393 | return NULL; | |
8394 | } | |
8395 | } | |
cf694132 | 8396 | { |
474c48f9 | 8397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8398 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); |
cf694132 | 8399 | |
474c48f9 | 8400 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8401 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8402 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8403 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8404 | return _resultobj; |
8405 | } | |
8406 | ||
d5c9047a | 8407 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) |
efc5f224 | 8408 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8409 | PyObject * _resultobj; |
d5c9047a | 8410 | wxTreeItemId * _result; |
f6bcfd97 | 8411 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8412 | wxTreeItemId * _arg1; |
1d99702e RD |
8413 | PyObject * _argo0 = 0; |
8414 | PyObject * _argo1 = 0; | |
efc5f224 | 8415 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8416 | char _ptemp[128]; |
8ab979d7 RD |
8417 | |
8418 | self = self; | |
efc5f224 | 8419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8420 | return NULL; |
1d99702e RD |
8421 | if (_argo0) { |
8422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8425 | return NULL; |
8426 | } | |
8427 | } | |
1d99702e | 8428 | if (_argo1) { |
b67a9327 | 8429 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a | 8430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8431 | return NULL; |
8432 | } | |
8433 | } | |
cf694132 | 8434 | { |
474c48f9 | 8435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8436 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); |
cf694132 | 8437 | |
474c48f9 | 8438 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8439 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8440 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8441 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8442 | return _resultobj; |
8443 | } | |
8444 | ||
d426c97e RD |
8445 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) |
8446 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8447 | PyObject * _resultobj; | |
8448 | wxTreeItemId * _result; | |
f6bcfd97 | 8449 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8450 | wxTreeItemId * _arg1; |
8451 | PyObject * _argo0 = 0; | |
8452 | PyObject * _argo1 = 0; | |
8453 | char *_kwnames[] = { "self","item", NULL }; | |
8454 | char _ptemp[128]; | |
8455 | ||
8456 | self = self; | |
8457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
8458 | return NULL; | |
8459 | if (_argo0) { | |
8460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8463 | return NULL; |
8464 | } | |
8465 | } | |
8466 | if (_argo1) { | |
b67a9327 | 8467 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d426c97e RD |
8468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); |
8469 | return NULL; | |
8470 | } | |
8471 | } | |
8472 | { | |
474c48f9 | 8473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8474 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); |
d426c97e | 8475 | |
474c48f9 | 8476 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8477 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8478 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8479 | _resultobj = Py_BuildValue("s",_ptemp); | |
8480 | return _resultobj; | |
8481 | } | |
8482 | ||
d5c9047a | 8483 | #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 8484 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8485 | PyObject * _resultobj; |
d5c9047a | 8486 | wxTreeItemId * _result; |
f6bcfd97 | 8487 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8488 | wxString * _arg1; |
1d99702e RD |
8489 | int _arg2 = (int ) -1; |
8490 | int _arg3 = (int ) -1; | |
8491 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
8492 | PyObject * _argo0 = 0; | |
d5c9047a | 8493 | PyObject * _obj1 = 0; |
1d99702e | 8494 | PyObject * _argo4 = 0; |
efc5f224 | 8495 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; |
d5c9047a | 8496 | char _ptemp[128]; |
8ab979d7 RD |
8497 | |
8498 | self = self; | |
efc5f224 | 8499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) |
8ab979d7 | 8500 | return NULL; |
1d99702e RD |
8501 | if (_argo0) { |
8502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8505 | return NULL; |
8506 | } | |
8507 | } | |
d5c9047a | 8508 | { |
c8bc7bb8 RD |
8509 | _arg1 = wxString_in_helper(_obj1); |
8510 | if (_arg1 == NULL) | |
2cd2fac8 | 8511 | return NULL; |
d5c9047a | 8512 | } |
1d99702e RD |
8513 | if (_argo4) { |
8514 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
8515 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
cf694132 | 8516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
8517 | return NULL; |
8518 | } | |
8519 | } | |
cf694132 | 8520 | { |
474c48f9 | 8521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8522 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); |
cf694132 | 8523 | |
474c48f9 | 8524 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8525 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8526 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8527 | _resultobj = Py_BuildValue("s",_ptemp); |
8528 | { | |
8529 | if (_obj1) | |
8530 | delete _arg1; | |
8531 | } | |
8ab979d7 RD |
8532 | return _resultobj; |
8533 | } | |
8534 | ||
d5c9047a | 8535 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8536 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8537 | PyObject * _resultobj; |
d5c9047a | 8538 | wxTreeItemId * _result; |
f6bcfd97 | 8539 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8540 | wxTreeItemId * _arg1; |
8541 | wxString * _arg2; | |
1d99702e RD |
8542 | int _arg3 = (int ) -1; |
8543 | int _arg4 = (int ) -1; | |
8544 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8545 | PyObject * _argo0 = 0; | |
8546 | PyObject * _argo1 = 0; | |
d5c9047a | 8547 | PyObject * _obj2 = 0; |
1d99702e | 8548 | PyObject * _argo5 = 0; |
efc5f224 | 8549 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8550 | char _ptemp[128]; |
8ab979d7 RD |
8551 | |
8552 | self = self; | |
efc5f224 | 8553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8554 | return NULL; |
1d99702e RD |
8555 | if (_argo0) { |
8556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8559 | return NULL; |
8560 | } | |
8561 | } | |
1d99702e | 8562 | if (_argo1) { |
b67a9327 | 8563 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); |
8565 | return NULL; | |
8566 | } | |
8567 | } | |
8568 | { | |
c8bc7bb8 RD |
8569 | _arg2 = wxString_in_helper(_obj2); |
8570 | if (_arg2 == NULL) | |
2cd2fac8 | 8571 | return NULL; |
d5c9047a | 8572 | } |
1d99702e RD |
8573 | if (_argo5) { |
8574 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8575 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8577 | return NULL; |
8578 | } | |
8579 | } | |
cf694132 | 8580 | { |
474c48f9 | 8581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8582 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); |
cf694132 | 8583 | |
474c48f9 | 8584 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8585 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8586 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8587 | _resultobj = Py_BuildValue("s",_ptemp); |
8588 | { | |
8589 | if (_obj2) | |
8590 | delete _arg2; | |
8591 | } | |
8ab979d7 RD |
8592 | return _resultobj; |
8593 | } | |
8594 | ||
d5c9047a | 8595 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 8596 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8597 | PyObject * _resultobj; |
d5c9047a | 8598 | wxTreeItemId * _result; |
f6bcfd97 | 8599 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8600 | wxTreeItemId * _arg1; |
8601 | wxTreeItemId * _arg2; | |
8602 | wxString * _arg3; | |
1d99702e RD |
8603 | int _arg4 = (int ) -1; |
8604 | int _arg5 = (int ) -1; | |
8605 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
8606 | PyObject * _argo0 = 0; | |
8607 | PyObject * _argo1 = 0; | |
8608 | PyObject * _argo2 = 0; | |
d5c9047a | 8609 | PyObject * _obj3 = 0; |
1d99702e | 8610 | PyObject * _argo6 = 0; |
efc5f224 | 8611 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; |
d5c9047a | 8612 | char _ptemp[128]; |
8ab979d7 RD |
8613 | |
8614 | self = self; | |
efc5f224 | 8615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) |
8ab979d7 | 8616 | return NULL; |
1d99702e RD |
8617 | if (_argo0) { |
8618 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8619 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8621 | return NULL; |
8622 | } | |
8623 | } | |
1d99702e | 8624 | if (_argo1) { |
b67a9327 | 8625 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8627 | return NULL; | |
8628 | } | |
8629 | } | |
1d99702e | 8630 | if (_argo2) { |
b67a9327 | 8631 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { |
d5c9047a RD |
8632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8633 | return NULL; | |
8634 | } | |
8635 | } | |
8636 | { | |
c8bc7bb8 RD |
8637 | _arg3 = wxString_in_helper(_obj3); |
8638 | if (_arg3 == NULL) | |
2cd2fac8 | 8639 | return NULL; |
d5c9047a | 8640 | } |
1d99702e RD |
8641 | if (_argo6) { |
8642 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8643 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
cf694132 | 8644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8645 | return NULL; |
8646 | } | |
8647 | } | |
cf694132 | 8648 | { |
474c48f9 | 8649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8650 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); |
cf694132 | 8651 | |
474c48f9 | 8652 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8653 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8654 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8655 | _resultobj = Py_BuildValue("s",_ptemp); |
8656 | { | |
8657 | if (_obj3) | |
8658 | delete _arg3; | |
8659 | } | |
8ab979d7 RD |
8660 | return _resultobj; |
8661 | } | |
8662 | ||
f6bcfd97 BP |
8663 | #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
8664 | static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8665 | PyObject * _resultobj; | |
8666 | wxTreeItemId * _result; | |
8667 | wxPyTreeCtrl * _arg0; | |
8668 | wxTreeItemId * _arg1; | |
8669 | size_t _arg2; | |
8670 | wxString * _arg3; | |
8671 | int _arg4 = (int ) -1; | |
8672 | int _arg5 = (int ) -1; | |
55d18651 | 8673 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; |
f6bcfd97 BP |
8674 | PyObject * _argo0 = 0; |
8675 | PyObject * _argo1 = 0; | |
8676 | PyObject * _obj3 = 0; | |
8677 | PyObject * _argo6 = 0; | |
8678 | char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL }; | |
8679 | char _ptemp[128]; | |
8680 | ||
8681 | self = self; | |
8682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
8683 | return NULL; | |
8684 | if (_argo0) { | |
8685 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8686 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p."); | |
8688 | return NULL; | |
8689 | } | |
8690 | } | |
8691 | if (_argo1) { | |
b67a9327 | 8692 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
f6bcfd97 BP |
8693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p."); |
8694 | return NULL; | |
8695 | } | |
8696 | } | |
8697 | { | |
c8bc7bb8 RD |
8698 | _arg3 = wxString_in_helper(_obj3); |
8699 | if (_arg3 == NULL) | |
2cd2fac8 | 8700 | return NULL; |
f6bcfd97 BP |
8701 | } |
8702 | if (_argo6) { | |
8703 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
55d18651 RD |
8704 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { |
8705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeItemData_p."); | |
f6bcfd97 BP |
8706 | return NULL; |
8707 | } | |
8708 | } | |
8709 | { | |
474c48f9 | 8710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8711 | _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6)); |
f6bcfd97 | 8712 | |
474c48f9 | 8713 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8714 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
8715 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8716 | _resultobj = Py_BuildValue("s",_ptemp); | |
8717 | { | |
8718 | if (_obj3) | |
8719 | delete _arg3; | |
8720 | } | |
8721 | return _resultobj; | |
8722 | } | |
8723 | ||
d5c9047a | 8724 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8725 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8726 | PyObject * _resultobj; |
d5c9047a | 8727 | wxTreeItemId * _result; |
f6bcfd97 | 8728 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8729 | wxTreeItemId * _arg1; |
8ab979d7 | 8730 | wxString * _arg2; |
1d99702e RD |
8731 | int _arg3 = (int ) -1; |
8732 | int _arg4 = (int ) -1; | |
8733 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8734 | PyObject * _argo0 = 0; | |
8735 | PyObject * _argo1 = 0; | |
8ab979d7 | 8736 | PyObject * _obj2 = 0; |
1d99702e | 8737 | PyObject * _argo5 = 0; |
efc5f224 | 8738 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8739 | char _ptemp[128]; |
8ab979d7 RD |
8740 | |
8741 | self = self; | |
efc5f224 | 8742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8743 | return NULL; |
1d99702e RD |
8744 | if (_argo0) { |
8745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8748 | return NULL; |
8749 | } | |
8750 | } | |
1d99702e | 8751 | if (_argo1) { |
b67a9327 | 8752 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a | 8753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8754 | return NULL; |
8755 | } | |
8756 | } | |
8757 | { | |
c8bc7bb8 RD |
8758 | _arg2 = wxString_in_helper(_obj2); |
8759 | if (_arg2 == NULL) | |
2cd2fac8 | 8760 | return NULL; |
8ab979d7 | 8761 | } |
1d99702e RD |
8762 | if (_argo5) { |
8763 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8764 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8766 | return NULL; |
8767 | } | |
8768 | } | |
cf694132 | 8769 | { |
474c48f9 | 8770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8771 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); |
cf694132 | 8772 | |
474c48f9 | 8773 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8774 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8775 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8776 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8777 | { |
8778 | if (_obj2) | |
8779 | delete _arg2; | |
8780 | } | |
8781 | return _resultobj; | |
8782 | } | |
8783 | ||
d5c9047a | 8784 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
efc5f224 | 8785 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8786 | PyObject * _resultobj; |
f6bcfd97 | 8787 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8788 | wxTreeItemId * _arg1; |
1d99702e RD |
8789 | PyObject * _argo0 = 0; |
8790 | PyObject * _argo1 = 0; | |
efc5f224 | 8791 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
8792 | |
8793 | self = self; | |
efc5f224 | 8794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8795 | return NULL; |
1d99702e RD |
8796 | if (_argo0) { |
8797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8800 | return NULL; |
8801 | } | |
8802 | } | |
1d99702e | 8803 | if (_argo1) { |
b67a9327 | 8804 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); |
8806 | return NULL; | |
8807 | } | |
8808 | } | |
cf694132 | 8809 | { |
474c48f9 | 8810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8811 | wxTreeCtrl_Delete(_arg0,*_arg1); |
cf694132 | 8812 | |
474c48f9 | 8813 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8814 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8815 | } Py_INCREF(Py_None); |
d5c9047a RD |
8816 | _resultobj = Py_None; |
8817 | return _resultobj; | |
8818 | } | |
8819 | ||
08127323 | 8820 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) |
efc5f224 | 8821 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 8822 | PyObject * _resultobj; |
f6bcfd97 | 8823 | wxPyTreeCtrl * _arg0; |
08127323 | 8824 | wxTreeItemId * _arg1; |
1d99702e RD |
8825 | PyObject * _argo0 = 0; |
8826 | PyObject * _argo1 = 0; | |
efc5f224 | 8827 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
8828 | |
8829 | self = self; | |
efc5f224 | 8830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) |
08127323 | 8831 | return NULL; |
1d99702e RD |
8832 | if (_argo0) { |
8833 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8834 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8835 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
8836 | return NULL; |
8837 | } | |
8838 | } | |
1d99702e | 8839 | if (_argo1) { |
b67a9327 | 8840 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
08127323 RD |
8841 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); |
8842 | return NULL; | |
8843 | } | |
8844 | } | |
cf694132 | 8845 | { |
474c48f9 | 8846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8847 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); |
cf694132 | 8848 | |
474c48f9 | 8849 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8850 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8851 | } Py_INCREF(Py_None); |
08127323 RD |
8852 | _resultobj = Py_None; |
8853 | return _resultobj; | |
8854 | } | |
8855 | ||
d5c9047a | 8856 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) |
efc5f224 | 8857 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8858 | PyObject * _resultobj; |
f6bcfd97 | 8859 | wxPyTreeCtrl * _arg0; |
1d99702e | 8860 | PyObject * _argo0 = 0; |
efc5f224 | 8861 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8862 | |
8863 | self = self; | |
efc5f224 | 8864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) |
d5c9047a | 8865 | return NULL; |
1d99702e RD |
8866 | if (_argo0) { |
8867 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8868 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8870 | return NULL; |
8871 | } | |
8872 | } | |
cf694132 | 8873 | { |
474c48f9 | 8874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8875 | wxTreeCtrl_DeleteAllItems(_arg0); |
cf694132 | 8876 | |
474c48f9 | 8877 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8878 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8879 | } Py_INCREF(Py_None); |
d5c9047a RD |
8880 | _resultobj = Py_None; |
8881 | return _resultobj; | |
8882 | } | |
8883 | ||
8884 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
efc5f224 | 8885 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8886 | PyObject * _resultobj; |
f6bcfd97 | 8887 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8888 | wxTreeItemId * _arg1; |
1d99702e RD |
8889 | PyObject * _argo0 = 0; |
8890 | PyObject * _argo1 = 0; | |
efc5f224 | 8891 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8892 | |
8893 | self = self; | |
efc5f224 | 8894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8895 | return NULL; |
1d99702e RD |
8896 | if (_argo0) { |
8897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8900 | return NULL; |
8901 | } | |
8902 | } | |
1d99702e | 8903 | if (_argo1) { |
b67a9327 | 8904 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); |
8906 | return NULL; | |
8907 | } | |
8908 | } | |
cf694132 | 8909 | { |
474c48f9 | 8910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8911 | wxTreeCtrl_Expand(_arg0,*_arg1); |
cf694132 | 8912 | |
474c48f9 | 8913 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8914 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8915 | } Py_INCREF(Py_None); |
d5c9047a RD |
8916 | _resultobj = Py_None; |
8917 | return _resultobj; | |
8918 | } | |
8919 | ||
8920 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
efc5f224 | 8921 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8922 | PyObject * _resultobj; |
f6bcfd97 | 8923 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8924 | wxTreeItemId * _arg1; |
1d99702e RD |
8925 | PyObject * _argo0 = 0; |
8926 | PyObject * _argo1 = 0; | |
efc5f224 | 8927 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8928 | |
8929 | self = self; | |
efc5f224 | 8930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8931 | return NULL; |
1d99702e RD |
8932 | if (_argo0) { |
8933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8936 | return NULL; |
8937 | } | |
8938 | } | |
1d99702e | 8939 | if (_argo1) { |
b67a9327 | 8940 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p."); |
8942 | return NULL; | |
8943 | } | |
8944 | } | |
cf694132 | 8945 | { |
474c48f9 | 8946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8947 | wxTreeCtrl_Collapse(_arg0,*_arg1); |
cf694132 | 8948 | |
474c48f9 | 8949 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8950 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8951 | } Py_INCREF(Py_None); |
d5c9047a RD |
8952 | _resultobj = Py_None; |
8953 | return _resultobj; | |
8954 | } | |
8955 | ||
8956 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
efc5f224 | 8957 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8958 | PyObject * _resultobj; |
f6bcfd97 | 8959 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8960 | wxTreeItemId * _arg1; |
1d99702e RD |
8961 | PyObject * _argo0 = 0; |
8962 | PyObject * _argo1 = 0; | |
efc5f224 | 8963 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8964 | |
8965 | self = self; | |
efc5f224 | 8966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8967 | return NULL; |
1d99702e RD |
8968 | if (_argo0) { |
8969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8972 | return NULL; |
8973 | } | |
8974 | } | |
1d99702e | 8975 | if (_argo1) { |
b67a9327 | 8976 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); |
8978 | return NULL; | |
8979 | } | |
8980 | } | |
cf694132 | 8981 | { |
474c48f9 | 8982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8983 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); |
cf694132 | 8984 | |
474c48f9 | 8985 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8986 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8987 | } Py_INCREF(Py_None); |
d5c9047a RD |
8988 | _resultobj = Py_None; |
8989 | return _resultobj; | |
8990 | } | |
8991 | ||
8992 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
efc5f224 | 8993 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8994 | PyObject * _resultobj; |
f6bcfd97 | 8995 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8996 | wxTreeItemId * _arg1; |
1d99702e RD |
8997 | PyObject * _argo0 = 0; |
8998 | PyObject * _argo1 = 0; | |
efc5f224 | 8999 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
9000 | |
9001 | self = self; | |
efc5f224 | 9002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 9003 | return NULL; |
1d99702e RD |
9004 | if (_argo0) { |
9005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
9008 | return NULL; |
9009 | } | |
9010 | } | |
1d99702e | 9011 | if (_argo1) { |
b67a9327 | 9012 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
9013 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); |
9014 | return NULL; | |
9015 | } | |
9016 | } | |
cf694132 | 9017 | { |
474c48f9 | 9018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9019 | wxTreeCtrl_Toggle(_arg0,*_arg1); |
cf694132 | 9020 | |
474c48f9 | 9021 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9022 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9023 | } Py_INCREF(Py_None); |
d5c9047a RD |
9024 | _resultobj = Py_None; |
9025 | return _resultobj; | |
9026 | } | |
9027 | ||
9028 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
efc5f224 | 9029 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 9030 | PyObject * _resultobj; |
f6bcfd97 | 9031 | wxPyTreeCtrl * _arg0; |
1d99702e | 9032 | PyObject * _argo0 = 0; |
efc5f224 | 9033 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
9034 | |
9035 | self = self; | |
efc5f224 | 9036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) |
d5c9047a | 9037 | return NULL; |
1d99702e RD |
9038 | if (_argo0) { |
9039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
9042 | return NULL; |
9043 | } | |
9044 | } | |
cf694132 | 9045 | { |
474c48f9 | 9046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9047 | wxTreeCtrl_Unselect(_arg0); |
cf694132 | 9048 | |
474c48f9 | 9049 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9050 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9051 | } Py_INCREF(Py_None); |
d5c9047a RD |
9052 | _resultobj = Py_None; |
9053 | return _resultobj; | |
9054 | } | |
9055 | ||
8bf5d46e | 9056 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) |
efc5f224 | 9057 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e | 9058 | PyObject * _resultobj; |
f6bcfd97 | 9059 | wxPyTreeCtrl * _arg0; |
1d99702e | 9060 | PyObject * _argo0 = 0; |
efc5f224 | 9061 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
9062 | |
9063 | self = self; | |
efc5f224 | 9064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) |
8bf5d46e | 9065 | return NULL; |
1d99702e RD |
9066 | if (_argo0) { |
9067 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9068 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p."); | |
8bf5d46e RD |
9070 | return NULL; |
9071 | } | |
9072 | } | |
9073 | { | |
474c48f9 | 9074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9075 | wxTreeCtrl_UnselectAll(_arg0); |
8bf5d46e | 9076 | |
474c48f9 | 9077 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9078 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
9079 | } Py_INCREF(Py_None); |
9080 | _resultobj = Py_None; | |
9081 | return _resultobj; | |
9082 | } | |
9083 | ||
d5c9047a | 9084 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) |
efc5f224 | 9085 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 9086 | PyObject * _resultobj; |
f6bcfd97 | 9087 | wxPyTreeCtrl * _arg0; |
d5c9047a | 9088 | wxTreeItemId * _arg1; |
1d99702e RD |
9089 | PyObject * _argo0 = 0; |
9090 | PyObject * _argo1 = 0; | |
efc5f224 | 9091 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
9092 | |
9093 | self = self; | |
efc5f224 | 9094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 9095 | return NULL; |
1d99702e RD |
9096 | if (_argo0) { |
9097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
9100 | return NULL; |
9101 | } | |
9102 | } | |
1d99702e | 9103 | if (_argo1) { |
b67a9327 | 9104 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
9105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); |
9106 | return NULL; | |
9107 | } | |
9108 | } | |
cf694132 | 9109 | { |
474c48f9 | 9110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9111 | wxTreeCtrl_SelectItem(_arg0,*_arg1); |
cf694132 | 9112 | |
474c48f9 | 9113 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9114 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9115 | } Py_INCREF(Py_None); |
d5c9047a RD |
9116 | _resultobj = Py_None; |
9117 | return _resultobj; | |
9118 | } | |
9119 | ||
9120 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
efc5f224 | 9121 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 9122 | PyObject * _resultobj; |
f6bcfd97 | 9123 | wxPyTreeCtrl * _arg0; |
d5c9047a | 9124 | wxTreeItemId * _arg1; |
1d99702e RD |
9125 | PyObject * _argo0 = 0; |
9126 | PyObject * _argo1 = 0; | |
efc5f224 | 9127 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
9128 | |
9129 | self = self; | |
efc5f224 | 9130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 9131 | return NULL; |
1d99702e RD |
9132 | if (_argo0) { |
9133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
9136 | return NULL; |
9137 | } | |
9138 | } | |
1d99702e | 9139 | if (_argo1) { |
b67a9327 | 9140 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
9141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); |
9142 | return NULL; | |
9143 | } | |
9144 | } | |
cf694132 | 9145 | { |
474c48f9 | 9146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9147 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); |
cf694132 | 9148 | |
474c48f9 | 9149 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9150 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9151 | } Py_INCREF(Py_None); |
d5c9047a RD |
9152 | _resultobj = Py_None; |
9153 | return _resultobj; | |
9154 | } | |
9155 | ||
9156 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
efc5f224 | 9157 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 9158 | PyObject * _resultobj; |
f6bcfd97 | 9159 | wxPyTreeCtrl * _arg0; |
d5c9047a | 9160 | wxTreeItemId * _arg1; |
1d99702e RD |
9161 | PyObject * _argo0 = 0; |
9162 | PyObject * _argo1 = 0; | |
efc5f224 | 9163 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
9164 | |
9165 | self = self; | |
efc5f224 | 9166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 9167 | return NULL; |
1d99702e RD |
9168 | if (_argo0) { |
9169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
9172 | return NULL; |
9173 | } | |
9174 | } | |
1d99702e | 9175 | if (_argo1) { |
b67a9327 | 9176 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
9177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); |
9178 | return NULL; | |
9179 | } | |
9180 | } | |
cf694132 | 9181 | { |
474c48f9 | 9182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9183 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); |
cf694132 | 9184 | |
474c48f9 | 9185 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9186 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9187 | } Py_INCREF(Py_None); |
d5c9047a RD |
9188 | _resultobj = Py_None; |
9189 | return _resultobj; | |
9190 | } | |
9191 | ||
b67a9327 RD |
9192 | #define wxTreeCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) |
9193 | static PyObject *_wrap_wxTreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9194 | PyObject * _resultobj; | |
9195 | wxTextCtrl * _result; | |
9196 | wxPyTreeCtrl * _arg0; | |
9197 | PyObject * _argo0 = 0; | |
9198 | char *_kwnames[] = { "self", NULL }; | |
9199 | ||
9200 | self = self; | |
9201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetEditControl",_kwnames,&_argo0)) | |
9202 | return NULL; | |
9203 | if (_argo0) { | |
9204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetEditControl. Expected _wxPyTreeCtrl_p."); | |
9207 | return NULL; | |
9208 | } | |
9209 | } | |
9210 | { | |
9211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9212 | _result = (wxTextCtrl *)wxTreeCtrl_GetEditControl(_arg0); | |
9213 | ||
9214 | wxPyEndAllowThreads(__tstate); | |
9215 | if (PyErr_Occurred()) return NULL; | |
9216 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
9217 | return _resultobj; | |
9218 | } | |
9219 | ||
d5c9047a | 9220 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) |
efc5f224 | 9221 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 9222 | PyObject * _resultobj; |
f6bcfd97 | 9223 | wxPyTreeCtrl * _arg0; |
d5c9047a | 9224 | wxTreeItemId * _arg1; |
1d99702e RD |
9225 | PyObject * _argo0 = 0; |
9226 | PyObject * _argo1 = 0; | |
efc5f224 | 9227 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
9228 | |
9229 | self = self; | |
efc5f224 | 9230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 9231 | return NULL; |
1d99702e RD |
9232 | if (_argo0) { |
9233 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9234 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
9236 | return NULL; |
9237 | } | |
9238 | } | |
1d99702e | 9239 | if (_argo1) { |
b67a9327 | 9240 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
9241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); |
9242 | return NULL; | |
9243 | } | |
9244 | } | |
cf694132 | 9245 | { |
474c48f9 | 9246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9247 | wxTreeCtrl_EditLabel(_arg0,*_arg1); |
cf694132 | 9248 | |
474c48f9 | 9249 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9250 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9251 | } Py_INCREF(Py_None); |
d5c9047a | 9252 | _resultobj = Py_None; |
8ab979d7 RD |
9253 | return _resultobj; |
9254 | } | |
9255 | ||
d426c97e RD |
9256 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) |
9257 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9258 | PyObject * _resultobj; | |
f6bcfd97 | 9259 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
9260 | wxTreeItemId * _arg1; |
9261 | PyObject * _argo0 = 0; | |
9262 | PyObject * _argo1 = 0; | |
9263 | char *_kwnames[] = { "self","item", NULL }; | |
9264 | ||
9265 | self = self; | |
9266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
9267 | return NULL; | |
9268 | if (_argo0) { | |
9269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
9272 | return NULL; |
9273 | } | |
9274 | } | |
9275 | if (_argo1) { | |
b67a9327 | 9276 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d426c97e RD |
9277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); |
9278 | return NULL; | |
9279 | } | |
9280 | } | |
9281 | { | |
474c48f9 | 9282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9283 | wxTreeCtrl_SortChildren(_arg0,*_arg1); |
d426c97e | 9284 | |
474c48f9 | 9285 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9286 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
9287 | } Py_INCREF(Py_None); |
9288 | _resultobj = Py_None; | |
9289 | return _resultobj; | |
9290 | } | |
9291 | ||
b8b8dda7 | 9292 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) |
efc5f224 | 9293 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 | 9294 | PyObject * _resultobj; |
f6bcfd97 | 9295 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9296 | wxTreeItemId * _arg1; |
b1462dfa | 9297 | int _arg2 = (int ) TRUE; |
1d99702e RD |
9298 | PyObject * _argo0 = 0; |
9299 | PyObject * _argo1 = 0; | |
efc5f224 | 9300 | char *_kwnames[] = { "self","item","bold", NULL }; |
b8b8dda7 RD |
9301 | |
9302 | self = self; | |
b1462dfa | 9303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) |
b8b8dda7 | 9304 | return NULL; |
1d99702e RD |
9305 | if (_argo0) { |
9306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9309 | return NULL; |
9310 | } | |
9311 | } | |
1d99702e | 9312 | if (_argo1) { |
b67a9327 | 9313 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
b8b8dda7 RD |
9314 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); |
9315 | return NULL; | |
9316 | } | |
9317 | } | |
cf694132 | 9318 | { |
474c48f9 | 9319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9320 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); |
cf694132 | 9321 | |
474c48f9 | 9322 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9323 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9324 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
9325 | _resultobj = Py_None; |
9326 | return _resultobj; | |
9327 | } | |
9328 | ||
9329 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
efc5f224 | 9330 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
9331 | PyObject * _resultobj; |
9332 | bool _result; | |
f6bcfd97 | 9333 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9334 | wxTreeItemId * _arg1; |
1d99702e RD |
9335 | PyObject * _argo0 = 0; |
9336 | PyObject * _argo1 = 0; | |
efc5f224 | 9337 | char *_kwnames[] = { "self","item", NULL }; |
b8b8dda7 RD |
9338 | |
9339 | self = self; | |
efc5f224 | 9340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 9341 | return NULL; |
1d99702e RD |
9342 | if (_argo0) { |
9343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9346 | return NULL; |
9347 | } | |
9348 | } | |
1d99702e | 9349 | if (_argo1) { |
b67a9327 | 9350 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
b8b8dda7 RD |
9351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); |
9352 | return NULL; | |
9353 | } | |
9354 | } | |
cf694132 | 9355 | { |
474c48f9 | 9356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9357 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); |
cf694132 | 9358 | |
474c48f9 | 9359 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9360 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9361 | } _resultobj = Py_BuildValue("i",_result); |
b8b8dda7 RD |
9362 | return _resultobj; |
9363 | } | |
9364 | ||
164b735b | 9365 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
efc5f224 | 9366 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
9367 | PyObject * _resultobj; |
9368 | wxTreeItemId * _result; | |
f6bcfd97 | 9369 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9370 | wxPoint * _arg1; |
164b735b RD |
9371 | int * _arg2; |
9372 | int temp; | |
1d99702e | 9373 | PyObject * _argo0 = 0; |
164b735b | 9374 | wxPoint temp0; |
2f90df85 | 9375 | PyObject * _obj1 = 0; |
efc5f224 | 9376 | char *_kwnames[] = { "self","point", NULL }; |
b8b8dda7 RD |
9377 | char _ptemp[128]; |
9378 | ||
9379 | self = self; | |
164b735b RD |
9380 | { |
9381 | _arg2 = &temp; | |
9382 | } | |
2f90df85 | 9383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 9384 | return NULL; |
1d99702e RD |
9385 | if (_argo0) { |
9386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9389 | return NULL; |
9390 | } | |
9391 | } | |
2f90df85 | 9392 | { |
164b735b | 9393 | _arg1 = &temp0; |
2f90df85 | 9394 | if (! wxPoint_helper(_obj1, &_arg1)) |
b8b8dda7 | 9395 | return NULL; |
2f90df85 | 9396 | } |
cf694132 | 9397 | { |
474c48f9 | 9398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9399 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); |
cf694132 | 9400 | |
474c48f9 | 9401 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9402 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9403 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
b8b8dda7 | 9404 | _resultobj = Py_BuildValue("s",_ptemp); |
164b735b RD |
9405 | { |
9406 | PyObject *o; | |
9407 | o = PyInt_FromLong((long) (*_arg2)); | |
9408 | _resultobj = t_output_helper(_resultobj, o); | |
9409 | } | |
b8b8dda7 RD |
9410 | return _resultobj; |
9411 | } | |
9412 | ||
b7e72427 RD |
9413 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
9414 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9415 | PyObject * _resultobj; | |
f6bcfd97 | 9416 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9417 | wxTreeItemId * _arg1; |
9418 | wxColour * _arg2; | |
9419 | PyObject * _argo0 = 0; | |
9420 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9421 | wxColour temp; |
9422 | PyObject * _obj2 = 0; | |
b7e72427 RD |
9423 | char *_kwnames[] = { "self","item","col", NULL }; |
9424 | ||
9425 | self = self; | |
f6bcfd97 | 9426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9427 | return NULL; |
9428 | if (_argo0) { | |
9429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9432 | return NULL; |
9433 | } | |
9434 | } | |
9435 | if (_argo1) { | |
b67a9327 | 9436 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
b7e72427 RD |
9437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); |
9438 | return NULL; | |
9439 | } | |
9440 | } | |
f6bcfd97 BP |
9441 | { |
9442 | _arg2 = &temp; | |
9443 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9444 | return NULL; |
f6bcfd97 | 9445 | } |
b7e72427 | 9446 | { |
474c48f9 | 9447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9448 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); |
b7e72427 | 9449 | |
474c48f9 | 9450 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9451 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9452 | } Py_INCREF(Py_None); |
9453 | _resultobj = Py_None; | |
9454 | return _resultobj; | |
9455 | } | |
9456 | ||
9457 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
9458 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9459 | PyObject * _resultobj; | |
f6bcfd97 | 9460 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9461 | wxTreeItemId * _arg1; |
9462 | wxColour * _arg2; | |
9463 | PyObject * _argo0 = 0; | |
9464 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9465 | wxColour temp; |
9466 | PyObject * _obj2 = 0; | |
b7e72427 RD |
9467 | char *_kwnames[] = { "self","item","col", NULL }; |
9468 | ||
9469 | self = self; | |
f6bcfd97 | 9470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9471 | return NULL; |
9472 | if (_argo0) { | |
9473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9476 | return NULL; |
9477 | } | |
9478 | } | |
9479 | if (_argo1) { | |
b67a9327 | 9480 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
b7e72427 RD |
9481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); |
9482 | return NULL; | |
9483 | } | |
9484 | } | |
f6bcfd97 BP |
9485 | { |
9486 | _arg2 = &temp; | |
9487 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9488 | return NULL; |
f6bcfd97 | 9489 | } |
b7e72427 | 9490 | { |
474c48f9 | 9491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9492 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); |
b7e72427 | 9493 | |
474c48f9 | 9494 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9495 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9496 | } Py_INCREF(Py_None); |
9497 | _resultobj = Py_None; | |
9498 | return _resultobj; | |
9499 | } | |
9500 | ||
9501 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
9502 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9503 | PyObject * _resultobj; | |
f6bcfd97 | 9504 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9505 | wxTreeItemId * _arg1; |
9506 | wxFont * _arg2; | |
9507 | PyObject * _argo0 = 0; | |
9508 | PyObject * _argo1 = 0; | |
9509 | PyObject * _argo2 = 0; | |
9510 | char *_kwnames[] = { "self","item","font", NULL }; | |
9511 | ||
9512 | self = self; | |
9513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
9514 | return NULL; | |
9515 | if (_argo0) { | |
9516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9519 | return NULL; |
9520 | } | |
9521 | } | |
9522 | if (_argo1) { | |
b67a9327 | 9523 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
b7e72427 RD |
9524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); |
9525 | return NULL; | |
9526 | } | |
9527 | } | |
9528 | if (_argo2) { | |
b67a9327 | 9529 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { |
b7e72427 RD |
9530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); |
9531 | return NULL; | |
9532 | } | |
9533 | } | |
9534 | { | |
474c48f9 | 9535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9536 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); |
b7e72427 | 9537 | |
474c48f9 | 9538 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9539 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9540 | } Py_INCREF(Py_None); |
9541 | _resultobj = Py_None; | |
9542 | return _resultobj; | |
9543 | } | |
9544 | ||
74bcba0e RD |
9545 | static PyObject * wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,const wxTreeItemId & item,int textOnly) { |
9546 | wxRect rect; | |
9547 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
474c48f9 | 9548 | wxPyBeginBlockThreads(); |
74bcba0e | 9549 | wxRect* r = new wxRect(rect); |
1fded56b | 9550 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), 1); |
474c48f9 | 9551 | wxPyEndBlockThreads(); |
74bcba0e RD |
9552 | return val; |
9553 | } | |
9554 | else { | |
9555 | Py_INCREF(Py_None); | |
9556 | return Py_None; | |
9557 | } | |
9558 | } | |
9559 | static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9560 | PyObject * _resultobj; | |
9561 | PyObject * _result; | |
9562 | wxPyTreeCtrl * _arg0; | |
9563 | wxTreeItemId * _arg1; | |
9564 | int _arg2 = (int ) FALSE; | |
9565 | PyObject * _argo0 = 0; | |
9566 | PyObject * _argo1 = 0; | |
9567 | char *_kwnames[] = { "self","item","textOnly", NULL }; | |
9568 | ||
9569 | self = self; | |
9570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&_arg2)) | |
9571 | return NULL; | |
9572 | if (_argo0) { | |
9573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetBoundingRect. Expected _wxPyTreeCtrl_p."); | |
9576 | return NULL; | |
9577 | } | |
9578 | } | |
9579 | if (_argo1) { | |
b67a9327 | 9580 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
74bcba0e RD |
9581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeItemId_p."); |
9582 | return NULL; | |
9583 | } | |
9584 | } | |
9585 | { | |
474c48f9 | 9586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9587 | _result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(_arg0,*_arg1,_arg2); |
74bcba0e | 9588 | |
474c48f9 | 9589 | wxPyEndAllowThreads(__tstate); |
74bcba0e RD |
9590 | if (PyErr_Occurred()) return NULL; |
9591 | }{ | |
9592 | _resultobj = _result; | |
9593 | } | |
9594 | return _resultobj; | |
9595 | } | |
9596 | ||
db34b2d4 RD |
9597 | static void *SwigwxDirItemDataTowxObject(void *ptr) { |
9598 | wxDirItemData *src; | |
9599 | wxObject *dest; | |
9600 | src = (wxDirItemData *) ptr; | |
9601 | dest = (wxObject *) src; | |
9602 | return (void *) dest; | |
9603 | } | |
9604 | ||
9605 | #define new_wxDirItemData(_swigarg0,_swigarg1,_swigarg2) (new wxDirItemData(_swigarg0,_swigarg1,_swigarg2)) | |
9606 | static PyObject *_wrap_new_wxDirItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9607 | PyObject * _resultobj; | |
9608 | wxDirItemData * _result; | |
9609 | wxString * _arg0; | |
9610 | wxString * _arg1; | |
9611 | bool _arg2; | |
9612 | PyObject * _obj0 = 0; | |
9613 | PyObject * _obj1 = 0; | |
9614 | int tempbool2; | |
9615 | char *_kwnames[] = { "path","name","isDir", NULL }; | |
9616 | char _ptemp[128]; | |
9617 | ||
9618 | self = self; | |
9619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:new_wxDirItemData",_kwnames,&_obj0,&_obj1,&tempbool2)) | |
9620 | return NULL; | |
9621 | { | |
c8bc7bb8 RD |
9622 | _arg0 = wxString_in_helper(_obj0); |
9623 | if (_arg0 == NULL) | |
db34b2d4 | 9624 | return NULL; |
db34b2d4 RD |
9625 | } |
9626 | { | |
c8bc7bb8 RD |
9627 | _arg1 = wxString_in_helper(_obj1); |
9628 | if (_arg1 == NULL) | |
db34b2d4 | 9629 | return NULL; |
db34b2d4 RD |
9630 | } |
9631 | _arg2 = (bool ) tempbool2; | |
9632 | { | |
9633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9634 | _result = (wxDirItemData *)new_wxDirItemData(*_arg0,*_arg1,_arg2); |
db34b2d4 RD |
9635 | |
9636 | wxPyEndAllowThreads(__tstate); | |
9637 | if (PyErr_Occurred()) return NULL; | |
9638 | } if (_result) { | |
9639 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirItemData_p"); | |
9640 | _resultobj = Py_BuildValue("s",_ptemp); | |
9641 | } else { | |
9642 | Py_INCREF(Py_None); | |
9643 | _resultobj = Py_None; | |
9644 | } | |
9645 | { | |
9646 | if (_obj0) | |
9647 | delete _arg0; | |
9648 | } | |
9649 | { | |
9650 | if (_obj1) | |
9651 | delete _arg1; | |
9652 | } | |
9653 | return _resultobj; | |
9654 | } | |
9655 | ||
9656 | #define wxDirItemData_SetNewDirName(_swigobj,_swigarg0) (_swigobj->SetNewDirName(_swigarg0)) | |
9657 | static PyObject *_wrap_wxDirItemData_SetNewDirName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9658 | PyObject * _resultobj; | |
9659 | wxDirItemData * _arg0; | |
9660 | wxString * _arg1; | |
9661 | PyObject * _argo0 = 0; | |
9662 | PyObject * _obj1 = 0; | |
9663 | char *_kwnames[] = { "self","path", NULL }; | |
9664 | ||
9665 | self = self; | |
9666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_SetNewDirName",_kwnames,&_argo0,&_obj1)) | |
9667 | return NULL; | |
9668 | if (_argo0) { | |
9669 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9670 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_SetNewDirName. Expected _wxDirItemData_p."); | |
9672 | return NULL; | |
9673 | } | |
9674 | } | |
9675 | { | |
c8bc7bb8 RD |
9676 | _arg1 = wxString_in_helper(_obj1); |
9677 | if (_arg1 == NULL) | |
db34b2d4 | 9678 | return NULL; |
db34b2d4 RD |
9679 | } |
9680 | { | |
9681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9682 | wxDirItemData_SetNewDirName(_arg0,*_arg1); |
db34b2d4 RD |
9683 | |
9684 | wxPyEndAllowThreads(__tstate); | |
9685 | if (PyErr_Occurred()) return NULL; | |
9686 | } Py_INCREF(Py_None); | |
9687 | _resultobj = Py_None; | |
9688 | { | |
9689 | if (_obj1) | |
9690 | delete _arg1; | |
9691 | } | |
9692 | return _resultobj; | |
9693 | } | |
9694 | ||
9695 | #define wxDirItemData_m_path_set(_swigobj,_swigval) (_swigobj->m_path = *(_swigval),_swigval) | |
9696 | static PyObject *_wrap_wxDirItemData_m_path_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9697 | PyObject * _resultobj; | |
9698 | wxString * _result; | |
9699 | wxDirItemData * _arg0; | |
9700 | wxString * _arg1; | |
9701 | PyObject * _argo0 = 0; | |
9702 | PyObject * _obj1 = 0; | |
9703 | char *_kwnames[] = { "self","m_path", NULL }; | |
9704 | ||
9705 | self = self; | |
9706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_path_set",_kwnames,&_argo0,&_obj1)) | |
9707 | return NULL; | |
9708 | if (_argo0) { | |
9709 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9710 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9711 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_set. Expected _wxDirItemData_p."); | |
9712 | return NULL; | |
9713 | } | |
9714 | } | |
9715 | { | |
c8bc7bb8 RD |
9716 | _arg1 = wxString_in_helper(_obj1); |
9717 | if (_arg1 == NULL) | |
db34b2d4 | 9718 | return NULL; |
db34b2d4 RD |
9719 | } |
9720 | { | |
9721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9722 | _result = (wxString *)wxDirItemData_m_path_set(_arg0,_arg1); |
db34b2d4 RD |
9723 | |
9724 | wxPyEndAllowThreads(__tstate); | |
9725 | if (PyErr_Occurred()) return NULL; | |
9726 | }{ | |
c8bc7bb8 | 9727 | #if wxUSE_UNICODE |
b67a9327 | 9728 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9729 | #else |
db34b2d4 | 9730 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9731 | #endif |
db34b2d4 RD |
9732 | } |
9733 | { | |
9734 | if (_obj1) | |
9735 | delete _arg1; | |
9736 | } | |
9737 | return _resultobj; | |
9738 | } | |
9739 | ||
9740 | #define wxDirItemData_m_path_get(_swigobj) (&_swigobj->m_path) | |
9741 | static PyObject *_wrap_wxDirItemData_m_path_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9742 | PyObject * _resultobj; | |
9743 | wxString * _result; | |
9744 | wxDirItemData * _arg0; | |
9745 | PyObject * _argo0 = 0; | |
9746 | char *_kwnames[] = { "self", NULL }; | |
9747 | ||
9748 | self = self; | |
9749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_path_get",_kwnames,&_argo0)) | |
9750 | return NULL; | |
9751 | if (_argo0) { | |
9752 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9753 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_get. Expected _wxDirItemData_p."); | |
9755 | return NULL; | |
9756 | } | |
9757 | } | |
9758 | { | |
9759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9760 | _result = (wxString *)wxDirItemData_m_path_get(_arg0); |
db34b2d4 RD |
9761 | |
9762 | wxPyEndAllowThreads(__tstate); | |
9763 | if (PyErr_Occurred()) return NULL; | |
9764 | }{ | |
c8bc7bb8 | 9765 | #if wxUSE_UNICODE |
b67a9327 | 9766 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9767 | #else |
db34b2d4 | 9768 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9769 | #endif |
db34b2d4 RD |
9770 | } |
9771 | return _resultobj; | |
9772 | } | |
9773 | ||
9774 | #define wxDirItemData_m_name_set(_swigobj,_swigval) (_swigobj->m_name = *(_swigval),_swigval) | |
9775 | static PyObject *_wrap_wxDirItemData_m_name_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9776 | PyObject * _resultobj; | |
9777 | wxString * _result; | |
9778 | wxDirItemData * _arg0; | |
9779 | wxString * _arg1; | |
9780 | PyObject * _argo0 = 0; | |
9781 | PyObject * _obj1 = 0; | |
9782 | char *_kwnames[] = { "self","m_name", NULL }; | |
9783 | ||
9784 | self = self; | |
9785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_name_set",_kwnames,&_argo0,&_obj1)) | |
9786 | return NULL; | |
9787 | if (_argo0) { | |
9788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_set. Expected _wxDirItemData_p."); | |
9791 | return NULL; | |
9792 | } | |
9793 | } | |
9794 | { | |
c8bc7bb8 RD |
9795 | _arg1 = wxString_in_helper(_obj1); |
9796 | if (_arg1 == NULL) | |
db34b2d4 | 9797 | return NULL; |
db34b2d4 RD |
9798 | } |
9799 | { | |
9800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9801 | _result = (wxString *)wxDirItemData_m_name_set(_arg0,_arg1); |
db34b2d4 RD |
9802 | |
9803 | wxPyEndAllowThreads(__tstate); | |
9804 | if (PyErr_Occurred()) return NULL; | |
9805 | }{ | |
c8bc7bb8 | 9806 | #if wxUSE_UNICODE |
b67a9327 | 9807 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9808 | #else |
db34b2d4 | 9809 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9810 | #endif |
db34b2d4 RD |
9811 | } |
9812 | { | |
9813 | if (_obj1) | |
9814 | delete _arg1; | |
9815 | } | |
9816 | return _resultobj; | |
9817 | } | |
9818 | ||
9819 | #define wxDirItemData_m_name_get(_swigobj) (&_swigobj->m_name) | |
9820 | static PyObject *_wrap_wxDirItemData_m_name_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9821 | PyObject * _resultobj; | |
9822 | wxString * _result; | |
9823 | wxDirItemData * _arg0; | |
9824 | PyObject * _argo0 = 0; | |
9825 | char *_kwnames[] = { "self", NULL }; | |
9826 | ||
9827 | self = self; | |
9828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_name_get",_kwnames,&_argo0)) | |
9829 | return NULL; | |
9830 | if (_argo0) { | |
9831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_get. Expected _wxDirItemData_p."); | |
9834 | return NULL; | |
9835 | } | |
9836 | } | |
9837 | { | |
9838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9839 | _result = (wxString *)wxDirItemData_m_name_get(_arg0); |
db34b2d4 RD |
9840 | |
9841 | wxPyEndAllowThreads(__tstate); | |
9842 | if (PyErr_Occurred()) return NULL; | |
9843 | }{ | |
c8bc7bb8 | 9844 | #if wxUSE_UNICODE |
b67a9327 | 9845 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9846 | #else |
db34b2d4 | 9847 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9848 | #endif |
db34b2d4 RD |
9849 | } |
9850 | return _resultobj; | |
9851 | } | |
9852 | ||
9853 | #define wxDirItemData_m_isHidden_set(_swigobj,_swigval) (_swigobj->m_isHidden = _swigval,_swigval) | |
9854 | static PyObject *_wrap_wxDirItemData_m_isHidden_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_isHidden", NULL }; | |
9862 | ||
9863 | self = self; | |
9864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isHidden_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_isHidden_set. Expected _wxDirItemData_p."); | |
9870 | return NULL; | |
9871 | } | |
9872 | } | |
9873 | _arg1 = (bool ) tempbool1; | |
9874 | { | |
9875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9876 | _result = (bool )wxDirItemData_m_isHidden_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_isHidden_get(_swigobj) ((bool ) _swigobj->m_isHidden) | |
9885 | static PyObject *_wrap_wxDirItemData_m_isHidden_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_isHidden_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_isHidden_get. Expected _wxDirItemData_p."); | |
9899 | return NULL; | |
9900 | } | |
9901 | } | |
9902 | { | |
9903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9904 | _result = (bool )wxDirItemData_m_isHidden_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_isExpanded_set(_swigobj,_swigval) (_swigobj->m_isExpanded = _swigval,_swigval) | |
9913 | static PyObject *_wrap_wxDirItemData_m_isExpanded_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_isExpanded", NULL }; | |
9921 | ||
9922 | self = self; | |
9923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isExpanded_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_isExpanded_set. Expected _wxDirItemData_p."); | |
9929 | return NULL; | |
9930 | } | |
9931 | } | |
9932 | _arg1 = (bool ) tempbool1; | |
9933 | { | |
9934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9935 | _result = (bool )wxDirItemData_m_isExpanded_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_isExpanded_get(_swigobj) ((bool ) _swigobj->m_isExpanded) | |
9944 | static PyObject *_wrap_wxDirItemData_m_isExpanded_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_isExpanded_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_isExpanded_get. Expected _wxDirItemData_p."); | |
9958 | return NULL; | |
9959 | } | |
9960 | } | |
9961 | { | |
9962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9963 | _result = (bool )wxDirItemData_m_isExpanded_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 | #define wxDirItemData_m_isDir_set(_swigobj,_swigval) (_swigobj->m_isDir = _swigval,_swigval) | |
9972 | static PyObject *_wrap_wxDirItemData_m_isDir_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9973 | PyObject * _resultobj; | |
9974 | bool _result; | |
9975 | wxDirItemData * _arg0; | |
9976 | bool _arg1; | |
9977 | PyObject * _argo0 = 0; | |
9978 | int tempbool1; | |
9979 | char *_kwnames[] = { "self","m_isDir", NULL }; | |
9980 | ||
9981 | self = self; | |
9982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isDir_set",_kwnames,&_argo0,&tempbool1)) | |
9983 | return NULL; | |
9984 | if (_argo0) { | |
9985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_set. Expected _wxDirItemData_p."); | |
9988 | return NULL; | |
9989 | } | |
9990 | } | |
9991 | _arg1 = (bool ) tempbool1; | |
9992 | { | |
9993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9994 | _result = (bool )wxDirItemData_m_isDir_set(_arg0,_arg1); |
db34b2d4 RD |
9995 | |
9996 | wxPyEndAllowThreads(__tstate); | |
9997 | if (PyErr_Occurred()) return NULL; | |
9998 | } _resultobj = Py_BuildValue("i",_result); | |
9999 | return _resultobj; | |
10000 | } | |
10001 | ||
10002 | #define wxDirItemData_m_isDir_get(_swigobj) ((bool ) _swigobj->m_isDir) | |
10003 | static PyObject *_wrap_wxDirItemData_m_isDir_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10004 | PyObject * _resultobj; | |
10005 | bool _result; | |
10006 | wxDirItemData * _arg0; | |
10007 | PyObject * _argo0 = 0; | |
10008 | char *_kwnames[] = { "self", NULL }; | |
10009 | ||
10010 | self = self; | |
10011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isDir_get",_kwnames,&_argo0)) | |
10012 | return NULL; | |
10013 | if (_argo0) { | |
10014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
10016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_get. Expected _wxDirItemData_p."); | |
10017 | return NULL; | |
10018 | } | |
10019 | } | |
10020 | { | |
10021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10022 | _result = (bool )wxDirItemData_m_isDir_get(_arg0); |
db34b2d4 RD |
10023 | |
10024 | wxPyEndAllowThreads(__tstate); | |
10025 | if (PyErr_Occurred()) return NULL; | |
10026 | } _resultobj = Py_BuildValue("i",_result); | |
10027 | return _resultobj; | |
10028 | } | |
10029 | ||
10030 | static void *SwigwxGenericDirCtrlTowxControl(void *ptr) { | |
10031 | wxGenericDirCtrl *src; | |
10032 | wxControl *dest; | |
10033 | src = (wxGenericDirCtrl *) ptr; | |
10034 | dest = (wxControl *) src; | |
10035 | return (void *) dest; | |
10036 | } | |
10037 | ||
10038 | static void *SwigwxGenericDirCtrlTowxWindow(void *ptr) { | |
10039 | wxGenericDirCtrl *src; | |
10040 | wxWindow *dest; | |
10041 | src = (wxGenericDirCtrl *) ptr; | |
10042 | dest = (wxWindow *) src; | |
10043 | return (void *) dest; | |
10044 | } | |
10045 | ||
10046 | static void *SwigwxGenericDirCtrlTowxEvtHandler(void *ptr) { | |
10047 | wxGenericDirCtrl *src; | |
10048 | wxEvtHandler *dest; | |
10049 | src = (wxGenericDirCtrl *) ptr; | |
10050 | dest = (wxEvtHandler *) src; | |
10051 | return (void *) dest; | |
10052 | } | |
10053 | ||
10054 | static void *SwigwxGenericDirCtrlTowxObject(void *ptr) { | |
10055 | wxGenericDirCtrl *src; | |
10056 | wxObject *dest; | |
10057 | src = (wxGenericDirCtrl *) ptr; | |
10058 | dest = (wxObject *) src; | |
10059 | return (void *) dest; | |
10060 | } | |
10061 | ||
10062 | #define new_wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
10063 | static PyObject *_wrap_new_wxGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10064 | PyObject * _resultobj; | |
10065 | wxGenericDirCtrl * _result; | |
10066 | wxWindow * _arg0; | |
10067 | wxWindowID _arg1 = (wxWindowID ) -1; | |
9a74fcaf | 10068 | wxString * _arg2 = (wxString *) &wxPyDirDialogDefaultFolderStr; |
db34b2d4 RD |
10069 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
10070 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
10071 | long _arg5 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
9a74fcaf | 10072 | wxString * _arg6 = (wxString *) &wxPyEmptyString; |
db34b2d4 | 10073 | int _arg7 = (int ) 0; |
9a74fcaf | 10074 | wxString * _arg8 = (wxString *) &wxPy_TreeCtrlNameStr; |
db34b2d4 | 10075 | PyObject * _argo0 = 0; |
9a74fcaf | 10076 | PyObject * _obj2 = 0; |
db34b2d4 RD |
10077 | wxPoint temp; |
10078 | PyObject * _obj3 = 0; | |
10079 | wxSize temp0; | |
10080 | PyObject * _obj4 = 0; | |
9a74fcaf RD |
10081 | PyObject * _obj6 = 0; |
10082 | PyObject * _obj8 = 0; | |
db34b2d4 RD |
10083 | char *_kwnames[] = { "parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; |
10084 | char _ptemp[128]; | |
10085 | ||
10086 | self = self; | |
9a74fcaf | 10087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOOlOiO:new_wxGenericDirCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6,&_arg7,&_obj8)) |
db34b2d4 RD |
10088 | return NULL; |
10089 | if (_argo0) { | |
10090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGenericDirCtrl. Expected _wxWindow_p."); | |
10093 | return NULL; | |
10094 | } | |
10095 | } | |
9a74fcaf RD |
10096 | if (_obj2) |
10097 | { | |
10098 | _arg2 = wxString_in_helper(_obj2); | |
10099 | if (_arg2 == NULL) | |
10100 | return NULL; | |
10101 | } | |
db34b2d4 RD |
10102 | if (_obj3) |
10103 | { | |
10104 | _arg3 = &temp; | |
10105 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10106 | return NULL; | |
10107 | } | |
10108 | if (_obj4) | |
10109 | { | |
10110 | _arg4 = &temp0; | |
10111 | if (! wxSize_helper(_obj4, &_arg4)) | |
10112 | return NULL; | |
9a74fcaf RD |
10113 | } |
10114 | if (_obj6) | |
10115 | { | |
10116 | _arg6 = wxString_in_helper(_obj6); | |
10117 | if (_arg6 == NULL) | |
10118 | return NULL; | |
10119 | } | |
10120 | if (_obj8) | |
10121 | { | |
10122 | _arg8 = wxString_in_helper(_obj8); | |
10123 | if (_arg8 == NULL) | |
10124 | return NULL; | |
db34b2d4 RD |
10125 | } |
10126 | { | |
10127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9a74fcaf | 10128 | _result = (wxGenericDirCtrl *)new_wxGenericDirCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7,*_arg8); |
db34b2d4 RD |
10129 | |
10130 | wxPyEndAllowThreads(__tstate); | |
10131 | if (PyErr_Occurred()) return NULL; | |
10132 | } if (_result) { | |
10133 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
10134 | _resultobj = Py_BuildValue("s",_ptemp); | |
10135 | } else { | |
10136 | Py_INCREF(Py_None); | |
10137 | _resultobj = Py_None; | |
10138 | } | |
9a74fcaf RD |
10139 | { |
10140 | if (_obj2) | |
10141 | delete _arg2; | |
10142 | } | |
10143 | { | |
10144 | if (_obj6) | |
10145 | delete _arg6; | |
10146 | } | |
10147 | { | |
10148 | if (_obj8) | |
10149 | delete _arg8; | |
10150 | } | |
db34b2d4 RD |
10151 | return _resultobj; |
10152 | } | |
10153 | ||
10154 | #define new_wxPreGenericDirCtrl() (new wxGenericDirCtrl()) | |
10155 | static PyObject *_wrap_new_wxPreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10156 | PyObject * _resultobj; | |
10157 | wxGenericDirCtrl * _result; | |
10158 | char *_kwnames[] = { NULL }; | |
10159 | char _ptemp[128]; | |
10160 | ||
10161 | self = self; | |
10162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGenericDirCtrl",_kwnames)) | |
10163 | return NULL; | |
10164 | { | |
10165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10166 | _result = (wxGenericDirCtrl *)new_wxPreGenericDirCtrl(); |
db34b2d4 RD |
10167 | |
10168 | wxPyEndAllowThreads(__tstate); | |
10169 | if (PyErr_Occurred()) return NULL; | |
10170 | } if (_result) { | |
10171 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
10172 | _resultobj = Py_BuildValue("s",_ptemp); | |
10173 | } else { | |
10174 | Py_INCREF(Py_None); | |
10175 | _resultobj = Py_None; | |
10176 | } | |
10177 | return _resultobj; | |
10178 | } | |
10179 | ||
10180 | #define wxGenericDirCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
10181 | static PyObject *_wrap_wxGenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10182 | PyObject * _resultobj; | |
10183 | bool _result; | |
10184 | wxGenericDirCtrl * _arg0; | |
10185 | wxWindow * _arg1; | |
10186 | wxWindowID _arg2 = (wxWindowID ) -1; | |
9a74fcaf | 10187 | wxString * _arg3 = (wxString *) &wxPyDirDialogDefaultFolderStr; |
db34b2d4 RD |
10188 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
10189 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
10190 | long _arg6 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
9a74fcaf | 10191 | wxString * _arg7 = (wxString *) &wxPyEmptyString; |
db34b2d4 | 10192 | int _arg8 = (int ) 0; |
9a74fcaf | 10193 | wxString * _arg9 = (wxString *) &wxPy_TreeCtrlNameStr; |
db34b2d4 RD |
10194 | PyObject * _argo0 = 0; |
10195 | PyObject * _argo1 = 0; | |
9a74fcaf | 10196 | PyObject * _obj3 = 0; |
db34b2d4 RD |
10197 | wxPoint temp; |
10198 | PyObject * _obj4 = 0; | |
10199 | wxSize temp0; | |
10200 | PyObject * _obj5 = 0; | |
9a74fcaf RD |
10201 | PyObject * _obj7 = 0; |
10202 | PyObject * _obj9 = 0; | |
db34b2d4 RD |
10203 | char *_kwnames[] = { "self","parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; |
10204 | ||
10205 | self = self; | |
9a74fcaf | 10206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOOlOiO:wxGenericDirCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_obj7,&_arg8,&_obj9)) |
db34b2d4 RD |
10207 | return NULL; |
10208 | if (_argo0) { | |
10209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
10212 | return NULL; | |
10213 | } | |
10214 | } | |
10215 | if (_argo1) { | |
10216 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10217 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
10218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGenericDirCtrl_Create. Expected _wxWindow_p."); | |
10219 | return NULL; | |
10220 | } | |
10221 | } | |
9a74fcaf RD |
10222 | if (_obj3) |
10223 | { | |
10224 | _arg3 = wxString_in_helper(_obj3); | |
10225 | if (_arg3 == NULL) | |
10226 | return NULL; | |
10227 | } | |
db34b2d4 RD |
10228 | if (_obj4) |
10229 | { | |
10230 | _arg4 = &temp; | |
10231 | if (! wxPoint_helper(_obj4, &_arg4)) | |
10232 | return NULL; | |
10233 | } | |
10234 | if (_obj5) | |
10235 | { | |
10236 | _arg5 = &temp0; | |
10237 | if (! wxSize_helper(_obj5, &_arg5)) | |
10238 | return NULL; | |
9a74fcaf RD |
10239 | } |
10240 | if (_obj7) | |
10241 | { | |
10242 | _arg7 = wxString_in_helper(_obj7); | |
10243 | if (_arg7 == NULL) | |
10244 | return NULL; | |
10245 | } | |
10246 | if (_obj9) | |
10247 | { | |
10248 | _arg9 = wxString_in_helper(_obj9); | |
10249 | if (_arg9 == NULL) | |
10250 | return NULL; | |
db34b2d4 RD |
10251 | } |
10252 | { | |
10253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9a74fcaf | 10254 | _result = (bool )wxGenericDirCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8,*_arg9); |
db34b2d4 RD |
10255 | |
10256 | wxPyEndAllowThreads(__tstate); | |
10257 | if (PyErr_Occurred()) return NULL; | |
10258 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
10259 | { |
10260 | if (_obj3) | |
10261 | delete _arg3; | |
10262 | } | |
10263 | { | |
10264 | if (_obj7) | |
10265 | delete _arg7; | |
10266 | } | |
10267 | { | |
10268 | if (_obj9) | |
10269 | delete _arg9; | |
10270 | } | |
db34b2d4 RD |
10271 | return _resultobj; |
10272 | } | |
10273 | ||
10274 | #define wxGenericDirCtrl_ExpandPath(_swigobj,_swigarg0) (_swigobj->ExpandPath(_swigarg0)) | |
10275 | static PyObject *_wrap_wxGenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10276 | PyObject * _resultobj; | |
10277 | bool _result; | |
10278 | wxGenericDirCtrl * _arg0; | |
10279 | wxString * _arg1; | |
10280 | PyObject * _argo0 = 0; | |
10281 | PyObject * _obj1 = 0; | |
10282 | char *_kwnames[] = { "self","path", NULL }; | |
10283 | ||
10284 | self = self; | |
10285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_ExpandPath",_kwnames,&_argo0,&_obj1)) | |
10286 | return NULL; | |
10287 | if (_argo0) { | |
10288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ExpandPath. Expected _wxGenericDirCtrl_p."); | |
10291 | return NULL; | |
10292 | } | |
10293 | } | |
10294 | { | |
c8bc7bb8 RD |
10295 | _arg1 = wxString_in_helper(_obj1); |
10296 | if (_arg1 == NULL) | |
db34b2d4 | 10297 | return NULL; |
db34b2d4 RD |
10298 | } |
10299 | { | |
10300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10301 | _result = (bool )wxGenericDirCtrl_ExpandPath(_arg0,*_arg1); |
db34b2d4 RD |
10302 | |
10303 | wxPyEndAllowThreads(__tstate); | |
10304 | if (PyErr_Occurred()) return NULL; | |
10305 | } _resultobj = Py_BuildValue("i",_result); | |
10306 | { | |
10307 | if (_obj1) | |
10308 | delete _arg1; | |
10309 | } | |
10310 | return _resultobj; | |
10311 | } | |
10312 | ||
10313 | #define wxGenericDirCtrl_GetDefaultPath(_swigobj) (_swigobj->GetDefaultPath()) | |
10314 | static PyObject *_wrap_wxGenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10315 | PyObject * _resultobj; | |
10316 | wxString * _result; | |
10317 | wxGenericDirCtrl * _arg0; | |
10318 | PyObject * _argo0 = 0; | |
10319 | char *_kwnames[] = { "self", NULL }; | |
10320 | ||
10321 | self = self; | |
10322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetDefaultPath",_kwnames,&_argo0)) | |
10323 | return NULL; | |
10324 | if (_argo0) { | |
10325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
10328 | return NULL; | |
10329 | } | |
10330 | } | |
10331 | { | |
10332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10333 | _result = new wxString (wxGenericDirCtrl_GetDefaultPath(_arg0)); |
db34b2d4 RD |
10334 | |
10335 | wxPyEndAllowThreads(__tstate); | |
10336 | if (PyErr_Occurred()) return NULL; | |
10337 | }{ | |
c8bc7bb8 | 10338 | #if wxUSE_UNICODE |
b67a9327 | 10339 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10340 | #else |
db34b2d4 | 10341 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10342 | #endif |
db34b2d4 RD |
10343 | } |
10344 | { | |
10345 | delete _result; | |
10346 | } | |
10347 | return _resultobj; | |
10348 | } | |
10349 | ||
10350 | #define wxGenericDirCtrl_SetDefaultPath(_swigobj,_swigarg0) (_swigobj->SetDefaultPath(_swigarg0)) | |
10351 | static PyObject *_wrap_wxGenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10352 | PyObject * _resultobj; | |
10353 | wxGenericDirCtrl * _arg0; | |
10354 | wxString * _arg1; | |
10355 | PyObject * _argo0 = 0; | |
10356 | PyObject * _obj1 = 0; | |
10357 | char *_kwnames[] = { "self","path", NULL }; | |
10358 | ||
10359 | self = self; | |
10360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetDefaultPath",_kwnames,&_argo0,&_obj1)) | |
10361 | return NULL; | |
10362 | if (_argo0) { | |
10363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
10366 | return NULL; | |
10367 | } | |
10368 | } | |
10369 | { | |
c8bc7bb8 RD |
10370 | _arg1 = wxString_in_helper(_obj1); |
10371 | if (_arg1 == NULL) | |
db34b2d4 | 10372 | return NULL; |
db34b2d4 RD |
10373 | } |
10374 | { | |
10375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10376 | wxGenericDirCtrl_SetDefaultPath(_arg0,*_arg1); |
db34b2d4 RD |
10377 | |
10378 | wxPyEndAllowThreads(__tstate); | |
10379 | if (PyErr_Occurred()) return NULL; | |
10380 | } Py_INCREF(Py_None); | |
10381 | _resultobj = Py_None; | |
10382 | { | |
10383 | if (_obj1) | |
10384 | delete _arg1; | |
10385 | } | |
10386 | return _resultobj; | |
10387 | } | |
10388 | ||
10389 | #define wxGenericDirCtrl_GetPath(_swigobj) (_swigobj->GetPath()) | |
10390 | static PyObject *_wrap_wxGenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10391 | PyObject * _resultobj; | |
10392 | wxString * _result; | |
10393 | wxGenericDirCtrl * _arg0; | |
10394 | PyObject * _argo0 = 0; | |
10395 | char *_kwnames[] = { "self", NULL }; | |
10396 | ||
10397 | self = self; | |
10398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetPath",_kwnames,&_argo0)) | |
10399 | return NULL; | |
10400 | if (_argo0) { | |
10401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetPath. Expected _wxGenericDirCtrl_p."); | |
10404 | return NULL; | |
10405 | } | |
10406 | } | |
10407 | { | |
10408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10409 | _result = new wxString (wxGenericDirCtrl_GetPath(_arg0)); |
db34b2d4 RD |
10410 | |
10411 | wxPyEndAllowThreads(__tstate); | |
10412 | if (PyErr_Occurred()) return NULL; | |
10413 | }{ | |
c8bc7bb8 | 10414 | #if wxUSE_UNICODE |
b67a9327 | 10415 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10416 | #else |
db34b2d4 | 10417 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10418 | #endif |
db34b2d4 RD |
10419 | } |
10420 | { | |
10421 | delete _result; | |
10422 | } | |
10423 | return _resultobj; | |
10424 | } | |
10425 | ||
10426 | #define wxGenericDirCtrl_GetFilePath(_swigobj) (_swigobj->GetFilePath()) | |
10427 | static PyObject *_wrap_wxGenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10428 | PyObject * _resultobj; | |
10429 | wxString * _result; | |
10430 | wxGenericDirCtrl * _arg0; | |
10431 | PyObject * _argo0 = 0; | |
10432 | char *_kwnames[] = { "self", NULL }; | |
10433 | ||
10434 | self = self; | |
10435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilePath",_kwnames,&_argo0)) | |
10436 | return NULL; | |
10437 | if (_argo0) { | |
10438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilePath. Expected _wxGenericDirCtrl_p."); | |
10441 | return NULL; | |
10442 | } | |
10443 | } | |
10444 | { | |
10445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10446 | _result = new wxString (wxGenericDirCtrl_GetFilePath(_arg0)); |
db34b2d4 RD |
10447 | |
10448 | wxPyEndAllowThreads(__tstate); | |
10449 | if (PyErr_Occurred()) return NULL; | |
10450 | }{ | |
c8bc7bb8 | 10451 | #if wxUSE_UNICODE |
b67a9327 | 10452 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10453 | #else |
db34b2d4 | 10454 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10455 | #endif |
db34b2d4 RD |
10456 | } |
10457 | { | |
10458 | delete _result; | |
10459 | } | |
10460 | return _resultobj; | |
10461 | } | |
10462 | ||
10463 | #define wxGenericDirCtrl_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0)) | |
10464 | static PyObject *_wrap_wxGenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10465 | PyObject * _resultobj; | |
10466 | wxGenericDirCtrl * _arg0; | |
10467 | wxString * _arg1; | |
10468 | PyObject * _argo0 = 0; | |
10469 | PyObject * _obj1 = 0; | |
10470 | char *_kwnames[] = { "self","path", NULL }; | |
10471 | ||
10472 | self = self; | |
10473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetPath",_kwnames,&_argo0,&_obj1)) | |
10474 | return NULL; | |
10475 | if (_argo0) { | |
10476 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10477 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetPath. Expected _wxGenericDirCtrl_p."); | |
10479 | return NULL; | |
10480 | } | |
10481 | } | |
10482 | { | |
c8bc7bb8 RD |
10483 | _arg1 = wxString_in_helper(_obj1); |
10484 | if (_arg1 == NULL) | |
db34b2d4 | 10485 | return NULL; |
db34b2d4 RD |
10486 | } |
10487 | { | |
10488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10489 | wxGenericDirCtrl_SetPath(_arg0,*_arg1); |
db34b2d4 RD |
10490 | |
10491 | wxPyEndAllowThreads(__tstate); | |
10492 | if (PyErr_Occurred()) return NULL; | |
10493 | } Py_INCREF(Py_None); | |
10494 | _resultobj = Py_None; | |
10495 | { | |
10496 | if (_obj1) | |
10497 | delete _arg1; | |
10498 | } | |
10499 | return _resultobj; | |
10500 | } | |
10501 | ||
10502 | #define wxGenericDirCtrl_ShowHidden(_swigobj,_swigarg0) (_swigobj->ShowHidden(_swigarg0)) | |
10503 | static PyObject *_wrap_wxGenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10504 | PyObject * _resultobj; | |
10505 | wxGenericDirCtrl * _arg0; | |
10506 | bool _arg1; | |
10507 | PyObject * _argo0 = 0; | |
10508 | int tempbool1; | |
10509 | char *_kwnames[] = { "self","show", NULL }; | |
10510 | ||
10511 | self = self; | |
10512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_ShowHidden",_kwnames,&_argo0,&tempbool1)) | |
10513 | return NULL; | |
10514 | if (_argo0) { | |
10515 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10516 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ShowHidden. Expected _wxGenericDirCtrl_p."); | |
10518 | return NULL; | |
10519 | } | |
10520 | } | |
10521 | _arg1 = (bool ) tempbool1; | |
10522 | { | |
10523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10524 | wxGenericDirCtrl_ShowHidden(_arg0,_arg1); |
db34b2d4 RD |
10525 | |
10526 | wxPyEndAllowThreads(__tstate); | |
10527 | if (PyErr_Occurred()) return NULL; | |
10528 | } Py_INCREF(Py_None); | |
10529 | _resultobj = Py_None; | |
10530 | return _resultobj; | |
10531 | } | |
10532 | ||
10533 | #define wxGenericDirCtrl_GetShowHidden(_swigobj) (_swigobj->GetShowHidden()) | |
10534 | static PyObject *_wrap_wxGenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10535 | PyObject * _resultobj; | |
10536 | bool _result; | |
10537 | wxGenericDirCtrl * _arg0; | |
10538 | PyObject * _argo0 = 0; | |
10539 | char *_kwnames[] = { "self", NULL }; | |
10540 | ||
10541 | self = self; | |
10542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetShowHidden",_kwnames,&_argo0)) | |
10543 | return NULL; | |
10544 | if (_argo0) { | |
10545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetShowHidden. Expected _wxGenericDirCtrl_p."); | |
10548 | return NULL; | |
10549 | } | |
10550 | } | |
10551 | { | |
10552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10553 | _result = (bool )wxGenericDirCtrl_GetShowHidden(_arg0); |
db34b2d4 RD |
10554 | |
10555 | wxPyEndAllowThreads(__tstate); | |
10556 | if (PyErr_Occurred()) return NULL; | |
10557 | } _resultobj = Py_BuildValue("i",_result); | |
10558 | return _resultobj; | |
10559 | } | |
10560 | ||
10561 | #define wxGenericDirCtrl_GetFilter(_swigobj) (_swigobj->GetFilter()) | |
10562 | static PyObject *_wrap_wxGenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10563 | PyObject * _resultobj; | |
10564 | wxString * _result; | |
10565 | wxGenericDirCtrl * _arg0; | |
10566 | PyObject * _argo0 = 0; | |
10567 | char *_kwnames[] = { "self", NULL }; | |
10568 | ||
10569 | self = self; | |
10570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilter",_kwnames,&_argo0)) | |
10571 | return NULL; | |
10572 | if (_argo0) { | |
10573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilter. Expected _wxGenericDirCtrl_p."); | |
10576 | return NULL; | |
10577 | } | |
10578 | } | |
10579 | { | |
10580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10581 | _result = new wxString (wxGenericDirCtrl_GetFilter(_arg0)); |
db34b2d4 RD |
10582 | |
10583 | wxPyEndAllowThreads(__tstate); | |
10584 | if (PyErr_Occurred()) return NULL; | |
10585 | }{ | |
c8bc7bb8 | 10586 | #if wxUSE_UNICODE |
b67a9327 | 10587 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10588 | #else |
db34b2d4 | 10589 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10590 | #endif |
db34b2d4 RD |
10591 | } |
10592 | { | |
10593 | delete _result; | |
10594 | } | |
10595 | return _resultobj; | |
10596 | } | |
10597 | ||
10598 | #define wxGenericDirCtrl_SetFilter(_swigobj,_swigarg0) (_swigobj->SetFilter(_swigarg0)) | |
10599 | static PyObject *_wrap_wxGenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10600 | PyObject * _resultobj; | |
10601 | wxGenericDirCtrl * _arg0; | |
10602 | wxString * _arg1; | |
10603 | PyObject * _argo0 = 0; | |
10604 | PyObject * _obj1 = 0; | |
10605 | char *_kwnames[] = { "self","filter", NULL }; | |
10606 | ||
10607 | self = self; | |
10608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetFilter",_kwnames,&_argo0,&_obj1)) | |
10609 | return NULL; | |
10610 | if (_argo0) { | |
10611 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10612 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilter. Expected _wxGenericDirCtrl_p."); | |
10614 | return NULL; | |
10615 | } | |
10616 | } | |
10617 | { | |
c8bc7bb8 RD |
10618 | _arg1 = wxString_in_helper(_obj1); |
10619 | if (_arg1 == NULL) | |
db34b2d4 | 10620 | return NULL; |
db34b2d4 RD |
10621 | } |
10622 | { | |
10623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10624 | wxGenericDirCtrl_SetFilter(_arg0,*_arg1); |
db34b2d4 RD |
10625 | |
10626 | wxPyEndAllowThreads(__tstate); | |
10627 | if (PyErr_Occurred()) return NULL; | |
10628 | } Py_INCREF(Py_None); | |
10629 | _resultobj = Py_None; | |
10630 | { | |
10631 | if (_obj1) | |
10632 | delete _arg1; | |
10633 | } | |
10634 | return _resultobj; | |
10635 | } | |
10636 | ||
10637 | #define wxGenericDirCtrl_GetFilterIndex(_swigobj) (_swigobj->GetFilterIndex()) | |
10638 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10639 | PyObject * _resultobj; | |
10640 | int _result; | |
10641 | wxGenericDirCtrl * _arg0; | |
10642 | PyObject * _argo0 = 0; | |
10643 | char *_kwnames[] = { "self", NULL }; | |
10644 | ||
10645 | self = self; | |
10646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterIndex",_kwnames,&_argo0)) | |
10647 | return NULL; | |
10648 | if (_argo0) { | |
10649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10652 | return NULL; | |
10653 | } | |
10654 | } | |
10655 | { | |
10656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10657 | _result = (int )wxGenericDirCtrl_GetFilterIndex(_arg0); |
db34b2d4 RD |
10658 | |
10659 | wxPyEndAllowThreads(__tstate); | |
10660 | if (PyErr_Occurred()) return NULL; | |
10661 | } _resultobj = Py_BuildValue("i",_result); | |
10662 | return _resultobj; | |
10663 | } | |
10664 | ||
10665 | #define wxGenericDirCtrl_SetFilterIndex(_swigobj,_swigarg0) (_swigobj->SetFilterIndex(_swigarg0)) | |
10666 | static PyObject *_wrap_wxGenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10667 | PyObject * _resultobj; | |
10668 | wxGenericDirCtrl * _arg0; | |
10669 | int _arg1; | |
10670 | PyObject * _argo0 = 0; | |
10671 | char *_kwnames[] = { "self","n", NULL }; | |
10672 | ||
10673 | self = self; | |
10674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_SetFilterIndex",_kwnames,&_argo0,&_arg1)) | |
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_SetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10680 | return NULL; | |
10681 | } | |
10682 | } | |
10683 | { | |
10684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10685 | wxGenericDirCtrl_SetFilterIndex(_arg0,_arg1); |
db34b2d4 RD |
10686 | |
10687 | wxPyEndAllowThreads(__tstate); | |
10688 | if (PyErr_Occurred()) return NULL; | |
10689 | } Py_INCREF(Py_None); | |
10690 | _resultobj = Py_None; | |
10691 | return _resultobj; | |
10692 | } | |
10693 | ||
10694 | #define wxGenericDirCtrl_GetRootId(_swigobj) (_swigobj->GetRootId()) | |
10695 | static PyObject *_wrap_wxGenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10696 | PyObject * _resultobj; | |
10697 | wxTreeItemId * _result; | |
10698 | wxGenericDirCtrl * _arg0; | |
10699 | PyObject * _argo0 = 0; | |
10700 | char *_kwnames[] = { "self", NULL }; | |
10701 | char _ptemp[128]; | |
10702 | ||
10703 | self = self; | |
10704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetRootId",_kwnames,&_argo0)) | |
10705 | return NULL; | |
10706 | if (_argo0) { | |
10707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetRootId. Expected _wxGenericDirCtrl_p."); | |
10710 | return NULL; | |
10711 | } | |
10712 | } | |
10713 | { | |
10714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10715 | _result = new wxTreeItemId (wxGenericDirCtrl_GetRootId(_arg0)); |
db34b2d4 RD |
10716 | |
10717 | wxPyEndAllowThreads(__tstate); | |
10718 | if (PyErr_Occurred()) return NULL; | |
10719 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
10720 | _resultobj = Py_BuildValue("s",_ptemp); | |
10721 | return _resultobj; | |
10722 | } | |
10723 | ||
10724 | #define wxGenericDirCtrl_GetTreeCtrl(_swigobj) (_swigobj->GetTreeCtrl()) | |
10725 | static PyObject *_wrap_wxGenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10726 | PyObject * _resultobj; | |
10727 | wxTreeCtrl * _result; | |
10728 | wxGenericDirCtrl * _arg0; | |
10729 | PyObject * _argo0 = 0; | |
10730 | char *_kwnames[] = { "self", NULL }; | |
db34b2d4 RD |
10731 | |
10732 | self = self; | |
10733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetTreeCtrl",_kwnames,&_argo0)) | |
10734 | return NULL; | |
10735 | if (_argo0) { | |
10736 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10737 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetTreeCtrl. Expected _wxGenericDirCtrl_p."); | |
10739 | return NULL; | |
10740 | } | |
10741 | } | |
10742 | { | |
10743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10744 | _result = (wxTreeCtrl *)wxGenericDirCtrl_GetTreeCtrl(_arg0); |
db34b2d4 RD |
10745 | |
10746 | wxPyEndAllowThreads(__tstate); | |
10747 | if (PyErr_Occurred()) return NULL; | |
eb88b742 | 10748 | }{ _resultobj = wxPyMake_wxObject(_result); } |
db34b2d4 RD |
10749 | return _resultobj; |
10750 | } | |
10751 | ||
10752 | #define wxGenericDirCtrl_GetFilterListCtrl(_swigobj) (_swigobj->GetFilterListCtrl()) | |
10753 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10754 | PyObject * _resultobj; | |
10755 | wxDirFilterListCtrl * _result; | |
10756 | wxGenericDirCtrl * _arg0; | |
10757 | PyObject * _argo0 = 0; | |
10758 | char *_kwnames[] = { "self", NULL }; | |
10759 | char _ptemp[128]; | |
10760 | ||
10761 | self = self; | |
10762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterListCtrl",_kwnames,&_argo0)) | |
10763 | return NULL; | |
10764 | if (_argo0) { | |
10765 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10766 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10768 | return NULL; | |
10769 | } | |
10770 | } | |
10771 | { | |
10772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10773 | _result = (wxDirFilterListCtrl *)wxGenericDirCtrl_GetFilterListCtrl(_arg0); |
db34b2d4 RD |
10774 | |
10775 | wxPyEndAllowThreads(__tstate); | |
10776 | if (PyErr_Occurred()) return NULL; | |
10777 | } if (_result) { | |
10778 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10779 | _resultobj = Py_BuildValue("s",_ptemp); | |
10780 | } else { | |
10781 | Py_INCREF(Py_None); | |
10782 | _resultobj = Py_None; | |
10783 | } | |
10784 | return _resultobj; | |
10785 | } | |
10786 | ||
1fded56b RD |
10787 | #define wxGenericDirCtrl_ReCreateTree(_swigobj) (_swigobj->ReCreateTree()) |
10788 | static PyObject *_wrap_wxGenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10789 | PyObject * _resultobj; | |
10790 | wxGenericDirCtrl * _arg0; | |
10791 | PyObject * _argo0 = 0; | |
10792 | char *_kwnames[] = { "self", NULL }; | |
10793 | ||
10794 | self = self; | |
10795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_ReCreateTree",_kwnames,&_argo0)) | |
10796 | return NULL; | |
10797 | if (_argo0) { | |
10798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ReCreateTree. Expected _wxGenericDirCtrl_p."); | |
10801 | return NULL; | |
10802 | } | |
10803 | } | |
10804 | { | |
10805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10806 | wxGenericDirCtrl_ReCreateTree(_arg0); | |
10807 | ||
10808 | wxPyEndAllowThreads(__tstate); | |
10809 | if (PyErr_Occurred()) return NULL; | |
10810 | } Py_INCREF(Py_None); | |
10811 | _resultobj = Py_None; | |
10812 | return _resultobj; | |
10813 | } | |
10814 | ||
db34b2d4 RD |
10815 | static void *SwigwxDirFilterListCtrlTowxChoice(void *ptr) { |
10816 | wxDirFilterListCtrl *src; | |
10817 | wxChoice *dest; | |
10818 | src = (wxDirFilterListCtrl *) ptr; | |
10819 | dest = (wxChoice *) src; | |
10820 | return (void *) dest; | |
10821 | } | |
10822 | ||
10823 | static void *SwigwxDirFilterListCtrlTowxControlWithItems(void *ptr) { | |
10824 | wxDirFilterListCtrl *src; | |
10825 | wxControlWithItems *dest; | |
10826 | src = (wxDirFilterListCtrl *) ptr; | |
10827 | dest = (wxControlWithItems *) src; | |
10828 | return (void *) dest; | |
10829 | } | |
10830 | ||
10831 | static void *SwigwxDirFilterListCtrlTowxControl(void *ptr) { | |
10832 | wxDirFilterListCtrl *src; | |
10833 | wxControl *dest; | |
10834 | src = (wxDirFilterListCtrl *) ptr; | |
10835 | dest = (wxControl *) src; | |
10836 | return (void *) dest; | |
10837 | } | |
10838 | ||
10839 | static void *SwigwxDirFilterListCtrlTowxWindow(void *ptr) { | |
10840 | wxDirFilterListCtrl *src; | |
10841 | wxWindow *dest; | |
10842 | src = (wxDirFilterListCtrl *) ptr; | |
10843 | dest = (wxWindow *) src; | |
10844 | return (void *) dest; | |
10845 | } | |
10846 | ||
10847 | static void *SwigwxDirFilterListCtrlTowxEvtHandler(void *ptr) { | |
10848 | wxDirFilterListCtrl *src; | |
10849 | wxEvtHandler *dest; | |
10850 | src = (wxDirFilterListCtrl *) ptr; | |
10851 | dest = (wxEvtHandler *) src; | |
10852 | return (void *) dest; | |
10853 | } | |
10854 | ||
10855 | static void *SwigwxDirFilterListCtrlTowxObject(void *ptr) { | |
10856 | wxDirFilterListCtrl *src; | |
10857 | wxObject *dest; | |
10858 | src = (wxDirFilterListCtrl *) ptr; | |
10859 | dest = (wxObject *) src; | |
10860 | return (void *) dest; | |
10861 | } | |
10862 | ||
10863 | #define new_wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10864 | static PyObject *_wrap_new_wxDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10865 | PyObject * _resultobj; | |
10866 | wxDirFilterListCtrl * _result; | |
10867 | wxGenericDirCtrl * _arg0; | |
10868 | wxWindowID _arg1 = (wxWindowID ) -1; | |
10869 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
10870 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
10871 | long _arg4 = (long ) 0; | |
10872 | PyObject * _argo0 = 0; | |
10873 | wxPoint temp; | |
10874 | PyObject * _obj2 = 0; | |
10875 | wxSize temp0; | |
10876 | PyObject * _obj3 = 0; | |
10877 | char *_kwnames[] = { "parent","id","pos","size","style", NULL }; | |
10878 | char _ptemp[128]; | |
10879 | ||
10880 | self = self; | |
10881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxDirFilterListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
10882 | return NULL; | |
10883 | if (_argo0) { | |
10884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDirFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10887 | return NULL; | |
10888 | } | |
10889 | } | |
10890 | if (_obj2) | |
10891 | { | |
10892 | _arg2 = &temp; | |
10893 | if (! wxPoint_helper(_obj2, &_arg2)) | |
10894 | return NULL; | |
10895 | } | |
10896 | if (_obj3) | |
10897 | { | |
10898 | _arg3 = &temp0; | |
10899 | if (! wxSize_helper(_obj3, &_arg3)) | |
10900 | return NULL; | |
10901 | } | |
10902 | { | |
10903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10904 | _result = (wxDirFilterListCtrl *)new_wxDirFilterListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
db34b2d4 RD |
10905 | |
10906 | wxPyEndAllowThreads(__tstate); | |
10907 | if (PyErr_Occurred()) return NULL; | |
10908 | } if (_result) { | |
10909 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10910 | _resultobj = Py_BuildValue("s",_ptemp); | |
10911 | } else { | |
10912 | Py_INCREF(Py_None); | |
10913 | _resultobj = Py_None; | |
10914 | } | |
10915 | return _resultobj; | |
10916 | } | |
10917 | ||
10918 | #define new_wxPreDirFilterListCtrl() (new wxDirFilterListCtrl()) | |
10919 | static PyObject *_wrap_new_wxPreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10920 | PyObject * _resultobj; | |
10921 | wxDirFilterListCtrl * _result; | |
10922 | char *_kwnames[] = { NULL }; | |
10923 | char _ptemp[128]; | |
10924 | ||
10925 | self = self; | |
10926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreDirFilterListCtrl",_kwnames)) | |
10927 | return NULL; | |
10928 | { | |
10929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10930 | _result = (wxDirFilterListCtrl *)new_wxPreDirFilterListCtrl(); |
db34b2d4 RD |
10931 | |
10932 | wxPyEndAllowThreads(__tstate); | |
10933 | if (PyErr_Occurred()) return NULL; | |
10934 | } if (_result) { | |
10935 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10936 | _resultobj = Py_BuildValue("s",_ptemp); | |
10937 | } else { | |
10938 | Py_INCREF(Py_None); | |
10939 | _resultobj = Py_None; | |
10940 | } | |
10941 | return _resultobj; | |
10942 | } | |
10943 | ||
10944 | #define wxDirFilterListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10945 | static PyObject *_wrap_wxDirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10946 | PyObject * _resultobj; | |
10947 | bool _result; | |
10948 | wxDirFilterListCtrl * _arg0; | |
10949 | wxGenericDirCtrl * _arg1; | |
10950 | wxWindowID _arg2 = (wxWindowID ) -1; | |
10951 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
10952 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
10953 | long _arg5 = (long ) 0; | |
10954 | PyObject * _argo0 = 0; | |
10955 | PyObject * _argo1 = 0; | |
10956 | wxPoint temp; | |
10957 | PyObject * _obj3 = 0; | |
10958 | wxSize temp0; | |
10959 | PyObject * _obj4 = 0; | |
10960 | char *_kwnames[] = { "self","parent","id","pos","size","style", NULL }; | |
10961 | ||
10962 | self = self; | |
10963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOl:wxDirFilterListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5)) | |
10964 | return NULL; | |
10965 | if (_argo0) { | |
10966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
10968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_Create. Expected _wxDirFilterListCtrl_p."); | |
10969 | return NULL; | |
10970 | } | |
10971 | } | |
10972 | if (_argo1) { | |
10973 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10974 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxGenericDirCtrl_p")) { | |
10975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDirFilterListCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
10976 | return NULL; | |
10977 | } | |
10978 | } | |
10979 | if (_obj3) | |
10980 | { | |
10981 | _arg3 = &temp; | |
10982 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10983 | return NULL; | |
10984 | } | |
10985 | if (_obj4) | |
10986 | { | |
10987 | _arg4 = &temp0; | |
10988 | if (! wxSize_helper(_obj4, &_arg4)) | |
10989 | return NULL; | |
10990 | } | |
10991 | { | |
10992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10993 | _result = (bool )wxDirFilterListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5); |
db34b2d4 RD |
10994 | |
10995 | wxPyEndAllowThreads(__tstate); | |
10996 | if (PyErr_Occurred()) return NULL; | |
10997 | } _resultobj = Py_BuildValue("i",_result); | |
10998 | return _resultobj; | |
10999 | } | |
11000 | ||
11001 | #define wxDirFilterListCtrl_FillFilterList(_swigobj,_swigarg0,_swigarg1) (_swigobj->FillFilterList(_swigarg0,_swigarg1)) | |
11002 | static PyObject *_wrap_wxDirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11003 | PyObject * _resultobj; | |
11004 | wxDirFilterListCtrl * _arg0; | |
11005 | wxString * _arg1; | |
11006 | int _arg2; | |
11007 | PyObject * _argo0 = 0; | |
11008 | PyObject * _obj1 = 0; | |
11009 | char *_kwnames[] = { "self","filter","defaultFilter", NULL }; | |
11010 | ||
11011 | self = self; | |
11012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxDirFilterListCtrl_FillFilterList",_kwnames,&_argo0,&_obj1,&_arg2)) | |
11013 | return NULL; | |
11014 | if (_argo0) { | |
11015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
11017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_FillFilterList. Expected _wxDirFilterListCtrl_p."); | |
11018 | return NULL; | |
11019 | } | |
11020 | } | |
11021 | { | |
c8bc7bb8 RD |
11022 | _arg1 = wxString_in_helper(_obj1); |
11023 | if (_arg1 == NULL) | |
db34b2d4 | 11024 | return NULL; |
db34b2d4 RD |
11025 | } |
11026 | { | |
11027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 11028 | wxDirFilterListCtrl_FillFilterList(_arg0,*_arg1,_arg2); |
db34b2d4 RD |
11029 | |
11030 | wxPyEndAllowThreads(__tstate); | |
11031 | if (PyErr_Occurred()) return NULL; | |
11032 | } Py_INCREF(Py_None); | |
11033 | _resultobj = Py_None; | |
11034 | { | |
11035 | if (_obj1) | |
11036 | delete _arg1; | |
11037 | } | |
11038 | return _resultobj; | |
11039 | } | |
11040 | ||
3ef86e32 RD |
11041 | #define new_wxFileIconsTable() (new wxFileIconsTable()) |
11042 | static PyObject *_wrap_new_wxFileIconsTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11043 | PyObject * _resultobj; | |
11044 | wxFileIconsTable * _result; | |
11045 | char *_kwnames[] = { NULL }; | |
11046 | char _ptemp[128]; | |
11047 | ||
11048 | self = self; | |
11049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFileIconsTable",_kwnames)) | |
11050 | return NULL; | |
11051 | { | |
11052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11053 | _result = (wxFileIconsTable *)new_wxFileIconsTable(); | |
11054 | ||
11055 | wxPyEndAllowThreads(__tstate); | |
11056 | if (PyErr_Occurred()) return NULL; | |
11057 | } if (_result) { | |
11058 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileIconsTable_p"); | |
11059 | _resultobj = Py_BuildValue("s",_ptemp); | |
11060 | } else { | |
11061 | Py_INCREF(Py_None); | |
11062 | _resultobj = Py_None; | |
11063 | } | |
11064 | return _resultobj; | |
11065 | } | |
11066 | ||
11067 | #define delete_wxFileIconsTable(_swigobj) (delete _swigobj) | |
11068 | static PyObject *_wrap_delete_wxFileIconsTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11069 | PyObject * _resultobj; | |
11070 | wxFileIconsTable * _arg0; | |
11071 | PyObject * _argo0 = 0; | |
11072 | char *_kwnames[] = { "self", NULL }; | |
11073 | ||
11074 | self = self; | |
11075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileIconsTable",_kwnames,&_argo0)) | |
11076 | return NULL; | |
11077 | if (_argo0) { | |
11078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileIconsTable_p")) { | |
11080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileIconsTable. Expected _wxFileIconsTable_p."); | |
11081 | return NULL; | |
11082 | } | |
11083 | } | |
11084 | { | |
11085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11086 | delete_wxFileIconsTable(_arg0); | |
11087 | ||
11088 | wxPyEndAllowThreads(__tstate); | |
11089 | if (PyErr_Occurred()) return NULL; | |
11090 | } Py_INCREF(Py_None); | |
11091 | _resultobj = Py_None; | |
11092 | return _resultobj; | |
11093 | } | |
11094 | ||
11095 | #define wxFileIconsTable_GetIconID(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetIconID(_swigarg0,_swigarg1)) | |
11096 | static PyObject *_wrap_wxFileIconsTable_GetIconID(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11097 | PyObject * _resultobj; | |
11098 | int _result; | |
11099 | wxFileIconsTable * _arg0; | |
11100 | wxString * _arg1; | |
11101 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
11102 | PyObject * _argo0 = 0; | |
11103 | PyObject * _obj1 = 0; | |
11104 | PyObject * _obj2 = 0; | |
11105 | char *_kwnames[] = { "self","extension","mime", NULL }; | |
11106 | ||
11107 | self = self; | |
11108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileIconsTable_GetIconID",_kwnames,&_argo0,&_obj1,&_obj2)) | |
11109 | return NULL; | |
11110 | if (_argo0) { | |
11111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileIconsTable_p")) { | |
11113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileIconsTable_GetIconID. Expected _wxFileIconsTable_p."); | |
11114 | return NULL; | |
11115 | } | |
11116 | } | |
11117 | { | |
11118 | _arg1 = wxString_in_helper(_obj1); | |
11119 | if (_arg1 == NULL) | |
11120 | return NULL; | |
11121 | } | |
11122 | if (_obj2) | |
11123 | { | |
11124 | _arg2 = wxString_in_helper(_obj2); | |
11125 | if (_arg2 == NULL) | |
11126 | return NULL; | |
11127 | } | |
11128 | { | |
11129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11130 | _result = (int )wxFileIconsTable_GetIconID(_arg0,*_arg1,*_arg2); | |
11131 | ||
11132 | wxPyEndAllowThreads(__tstate); | |
11133 | if (PyErr_Occurred()) return NULL; | |
11134 | } _resultobj = Py_BuildValue("i",_result); | |
11135 | { | |
11136 | if (_obj1) | |
11137 | delete _arg1; | |
11138 | } | |
11139 | { | |
11140 | if (_obj2) | |
11141 | delete _arg2; | |
11142 | } | |
11143 | return _resultobj; | |
11144 | } | |
11145 | ||
11146 | #define wxFileIconsTable_GetSmallImageList(_swigobj) (_swigobj->GetSmallImageList()) | |
11147 | static PyObject *_wrap_wxFileIconsTable_GetSmallImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11148 | PyObject * _resultobj; | |
11149 | wxImageList * _result; | |
11150 | wxFileIconsTable * _arg0; | |
11151 | PyObject * _argo0 = 0; | |
11152 | char *_kwnames[] = { "self", NULL }; | |
11153 | ||
11154 | self = self; | |
11155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileIconsTable_GetSmallImageList",_kwnames,&_argo0)) | |
11156 | return NULL; | |
11157 | if (_argo0) { | |
11158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileIconsTable_p")) { | |
11160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileIconsTable_GetSmallImageList. Expected _wxFileIconsTable_p."); | |
11161 | return NULL; | |
11162 | } | |
11163 | } | |
11164 | { | |
11165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11166 | _result = (wxImageList *)wxFileIconsTable_GetSmallImageList(_arg0); | |
11167 | ||
11168 | wxPyEndAllowThreads(__tstate); | |
11169 | if (PyErr_Occurred()) return NULL; | |
11170 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
11171 | return _resultobj; | |
11172 | } | |
11173 | ||
8ab979d7 | 11174 | static PyMethodDef controls2cMethods[] = { |
3ef86e32 RD |
11175 | { "wxFileIconsTable_GetSmallImageList", (PyCFunction) _wrap_wxFileIconsTable_GetSmallImageList, METH_VARARGS | METH_KEYWORDS }, |
11176 | { "wxFileIconsTable_GetIconID", (PyCFunction) _wrap_wxFileIconsTable_GetIconID, METH_VARARGS | METH_KEYWORDS }, | |
11177 | { "delete_wxFileIconsTable", (PyCFunction) _wrap_delete_wxFileIconsTable, METH_VARARGS | METH_KEYWORDS }, | |
11178 | { "new_wxFileIconsTable", (PyCFunction) _wrap_new_wxFileIconsTable, METH_VARARGS | METH_KEYWORDS }, | |
db34b2d4 RD |
11179 | { "wxDirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_wxDirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, |
11180 | { "wxDirFilterListCtrl_Create", (PyCFunction) _wrap_wxDirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
11181 | { "new_wxPreDirFilterListCtrl", (PyCFunction) _wrap_new_wxPreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11182 | { "new_wxDirFilterListCtrl", (PyCFunction) _wrap_new_wxDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
1fded56b | 11183 | { "wxGenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_wxGenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, |
db34b2d4 RD |
11184 | { "wxGenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, |
11185 | { "wxGenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11186 | { "wxGenericDirCtrl_GetRootId", (PyCFunction) _wrap_wxGenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
11187 | { "wxGenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
11188 | { "wxGenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
11189 | { "wxGenericDirCtrl_SetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
11190 | { "wxGenericDirCtrl_GetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
11191 | { "wxGenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
11192 | { "wxGenericDirCtrl_ShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
11193 | { "wxGenericDirCtrl_SetPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
11194 | { "wxGenericDirCtrl_GetFilePath", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
11195 | { "wxGenericDirCtrl_GetPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
11196 | { "wxGenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
11197 | { "wxGenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
11198 | { "wxGenericDirCtrl_ExpandPath", (PyCFunction) _wrap_wxGenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
11199 | { "wxGenericDirCtrl_Create", (PyCFunction) _wrap_wxGenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
11200 | { "new_wxPreGenericDirCtrl", (PyCFunction) _wrap_new_wxPreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11201 | { "new_wxGenericDirCtrl", (PyCFunction) _wrap_new_wxGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11202 | { "wxDirItemData_m_isDir_get", (PyCFunction) _wrap_wxDirItemData_m_isDir_get, METH_VARARGS | METH_KEYWORDS }, | |
11203 | { "wxDirItemData_m_isDir_set", (PyCFunction) _wrap_wxDirItemData_m_isDir_set, METH_VARARGS | METH_KEYWORDS }, | |
11204 | { "wxDirItemData_m_isExpanded_get", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_get, METH_VARARGS | METH_KEYWORDS }, | |
11205 | { "wxDirItemData_m_isExpanded_set", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_set, METH_VARARGS | METH_KEYWORDS }, | |
11206 | { "wxDirItemData_m_isHidden_get", (PyCFunction) _wrap_wxDirItemData_m_isHidden_get, METH_VARARGS | METH_KEYWORDS }, | |
11207 | { "wxDirItemData_m_isHidden_set", (PyCFunction) _wrap_wxDirItemData_m_isHidden_set, METH_VARARGS | METH_KEYWORDS }, | |
11208 | { "wxDirItemData_m_name_get", (PyCFunction) _wrap_wxDirItemData_m_name_get, METH_VARARGS | METH_KEYWORDS }, | |
11209 | { "wxDirItemData_m_name_set", (PyCFunction) _wrap_wxDirItemData_m_name_set, METH_VARARGS | METH_KEYWORDS }, | |
11210 | { "wxDirItemData_m_path_get", (PyCFunction) _wrap_wxDirItemData_m_path_get, METH_VARARGS | METH_KEYWORDS }, | |
11211 | { "wxDirItemData_m_path_set", (PyCFunction) _wrap_wxDirItemData_m_path_set, METH_VARARGS | METH_KEYWORDS }, | |
11212 | { "wxDirItemData_SetNewDirName", (PyCFunction) _wrap_wxDirItemData_SetNewDirName, METH_VARARGS | METH_KEYWORDS }, | |
11213 | { "new_wxDirItemData", (PyCFunction) _wrap_new_wxDirItemData, METH_VARARGS | METH_KEYWORDS }, | |
74bcba0e | 11214 | { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 RD |
11215 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, |
11216 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11217 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11218 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
11219 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
11220 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 11221 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11222 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, |
b67a9327 | 11223 | { "wxTreeCtrl_GetEditControl", (PyCFunction) _wrap_wxTreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11224 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, |
11225 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
11226 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
11227 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
11228 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
11229 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
11230 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
11231 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
11232 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
11233 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
11234 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
11235 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
11236 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11237 | { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11238 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, |
11239 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
11240 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 11241 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11242 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, |
11243 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
11244 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
11245 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
11246 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
11247 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
11248 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
11249 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 11250 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 11251 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11252 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
11253 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
11254 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
11255 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
11256 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
11257 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
b67a9327 RD |
11258 | { "wxTreeCtrl_GetItemFont", (PyCFunction) _wrap_wxTreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, |
11259 | { "wxTreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11260 | { "wxTreeCtrl_GetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11261 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, |
11262 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
11263 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
11264 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
11265 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
11266 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
11267 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
11268 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
11269 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
11270 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
11271 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
11272 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, |
11273 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11274 | { "wxTreeCtrl_AssignStateImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, |
11275 | { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11276 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, |
11277 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
11278 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
11279 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
11280 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
11281 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
11282 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
0220cbc1 | 11283 | { "wxTreeCtrl__setCallbackInfo", (PyCFunction) _wrap_wxTreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11284 | { "wxTreeCtrl_Create", (PyCFunction) _wrap_wxTreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
11285 | { "new_wxPreTreeCtrl", (PyCFunction) _wrap_new_wxPreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11286 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, |
1fded56b | 11287 | { "wxTreeEvent_SetEditCanceled", (PyCFunction) _wrap_wxTreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, |
4eb65923 | 11288 | { "wxTreeEvent_IsEditCancelled", (PyCFunction) _wrap_wxTreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, |
3ef86e32 | 11289 | { "wxTreeEvent_SetLabel", (PyCFunction) _wrap_wxTreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11290 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, |
3ef86e32 | 11291 | { "wxTreeEvent_SetKeyEvent", (PyCFunction) _wrap_wxTreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, |
d99400b2 | 11292 | { "wxTreeEvent_GetKeyCode", (PyCFunction) _wrap_wxTreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, |
65191ae8 | 11293 | { "wxTreeEvent_GetKeyEvent", (PyCFunction) _wrap_wxTreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, |
3ef86e32 | 11294 | { "wxTreeEvent_SetPoint", (PyCFunction) _wrap_wxTreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11295 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, |
3ef86e32 | 11296 | { "wxTreeEvent_SetOldItem", (PyCFunction) _wrap_wxTreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11297 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, |
3ef86e32 | 11298 | { "wxTreeEvent_SetItem", (PyCFunction) _wrap_wxTreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11299 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 | 11300 | { "new_wxTreeEvent", (PyCFunction) _wrap_new_wxTreeEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11301 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, |
11302 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
11303 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
11304 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
11305 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11306 | { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11307 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, |
11308 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
11309 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11310 | { "wxTreeItemAttr_GetFont", (PyCFunction) _wrap_wxTreeItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, |
11311 | { "wxTreeItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11312 | { "wxTreeItemAttr_GetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11313 | { "wxTreeItemAttr_HasFont", (PyCFunction) _wrap_wxTreeItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
11314 | { "wxTreeItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11315 | { "wxTreeItemAttr_HasTextColour", (PyCFunction) _wrap_wxTreeItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11316 | { "wxTreeItemAttr_SetFont", (PyCFunction) _wrap_wxTreeItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11317 | { "wxTreeItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11318 | { "wxTreeItemAttr_SetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11319 | { "new_wxTreeItemAttr", (PyCFunction) _wrap_new_wxTreeItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
059a841c RD |
11320 | { "wxListView_ClearColumnImage", (PyCFunction) _wrap_wxListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, |
11321 | { "wxListView_SetColumnImage", (PyCFunction) _wrap_wxListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
11322 | { "wxListView_IsSelected", (PyCFunction) _wrap_wxListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
11323 | { "wxListView_GetFirstSelected", (PyCFunction) _wrap_wxListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
11324 | { "wxListView_GetNextSelected", (PyCFunction) _wrap_wxListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
11325 | { "wxListView_GetFocusedItem", (PyCFunction) _wrap_wxListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
11326 | { "wxListView_Focus", (PyCFunction) _wrap_wxListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
11327 | { "wxListView_Select", (PyCFunction) _wrap_wxListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
11328 | { "wxListView_Create", (PyCFunction) _wrap_wxListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
11329 | { "new_wxPreListView", (PyCFunction) _wrap_new_wxPreListView, METH_VARARGS | METH_KEYWORDS }, | |
11330 | { "new_wxListView", (PyCFunction) _wrap_new_wxListView, METH_VARARGS | METH_KEYWORDS }, | |
57ee4c3b | 11331 | { "wxListCtrl_GetMainWindow", (PyCFunction) _wrap_wxListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, |
dcd38683 | 11332 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, |
8381e4cd RD |
11333 | { "wxListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_wxListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
11334 | { "wxListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11335 | { "wxListCtrl_GetItemTextColour", (PyCFunction) _wrap_wxListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11336 | { "wxListCtrl_SetItemTextColour", (PyCFunction) _wrap_wxListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11337 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, |
cd096152 RD |
11338 | { "wxListCtrl_SetItemCount", (PyCFunction) _wrap_wxListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, |
11339 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
11340 | { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11341 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, |
11342 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
11343 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
11344 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11345 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11346 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, |
11347 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
11348 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
11349 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
b67a9327 | 11350 | { "wxListCtrl_EditLabel", (PyCFunction) _wrap_wxListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11351 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, |
11352 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
11353 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
11354 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
11355 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
11356 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
cd096152 RD |
11357 | { "wxListCtrl_RefreshItems", (PyCFunction) _wrap_wxListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, |
11358 | { "wxListCtrl_RefreshItem", (PyCFunction) _wrap_wxListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
11359 | { "wxListCtrl_IsVirtual", (PyCFunction) _wrap_wxListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
11360 | { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
11361 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
11362 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
11363 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
11364 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
11365 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
11366 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
11367 | { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11368 | { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11369 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
b67a9327 | 11370 | { "wxListCtrl_SetItemSpacing", (PyCFunction) _wrap_wxListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS }, |
cd096152 RD |
11371 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, |
11372 | { "wxListCtrl_GetColumnCount", (PyCFunction) _wrap_wxListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
11373 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
11374 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
11375 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
11376 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
11377 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
11378 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
11379 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
11380 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
11381 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
11382 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
11383 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
11384 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
11385 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
11386 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
1a8372ba | 11387 | { "wxListCtrl_GetViewRect", (PyCFunction) _wrap_wxListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, |
cd096152 RD |
11388 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, |
11389 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
11390 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
11391 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
11392 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
11393 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11394 | { "wxListCtrl_SetForegroundColour", (PyCFunction) _wrap_wxListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
0220cbc1 | 11395 | { "wxListCtrl__setCallbackInfo", (PyCFunction) _wrap_wxListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11396 | { "wxListCtrl_Create", (PyCFunction) _wrap_wxListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
11397 | { "new_wxPreListCtrl", (PyCFunction) _wrap_new_wxPreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11398 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, |
900eb07b RD |
11399 | { "wxListEvent_SetEditCanceled", (PyCFunction) _wrap_wxListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, |
11400 | { "wxListEvent_IsEditCancelled", (PyCFunction) _wrap_wxListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
059a841c RD |
11401 | { "wxListEvent_GetCacheTo", (PyCFunction) _wrap_wxListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, |
11402 | { "wxListEvent_GetCacheFrom", (PyCFunction) _wrap_wxListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
11403 | { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, |
11404 | { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
11405 | { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
11406 | { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
11407 | { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
11408 | { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11409 | { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11410 | { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 11411 | { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, |
d99400b2 | 11412 | { "wxListEvent_GetKeyCode", (PyCFunction) _wrap_wxListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11413 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11414 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11415 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11416 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
6e8a778a | 11417 | { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11418 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, |
059a841c | 11419 | { "new_wxListEvent", (PyCFunction) _wrap_new_wxListEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11420 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, |
11421 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
11422 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
11423 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
11424 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
11425 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
11426 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
11427 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
11428 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
11429 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
11430 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
11431 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
11432 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
11433 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
11434 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
11435 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
11436 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
11437 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
11438 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
11439 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
11440 | { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, |
11441 | { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11442 | { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11443 | { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
11444 | { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
11445 | { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
11446 | { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11447 | { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
11448 | { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
11449 | { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
11450 | { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
11451 | { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
11452 | { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
11453 | { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
11454 | { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11455 | { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11456 | { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11457 | { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
11458 | { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11459 | { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
11460 | { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
11461 | { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
11462 | { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
11463 | { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
11464 | { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
11465 | { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
11466 | { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
11467 | { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
11468 | { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11469 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
11470 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
11471 | { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11472 | { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11473 | { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11474 | { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
11475 | { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11476 | { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11477 | { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11478 | { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11479 | { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11480 | { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
11481 | { NULL, NULL } |
11482 | }; | |
1d99702e RD |
11483 | #ifdef __cplusplus |
11484 | } | |
11485 | #endif | |
11486 | /* | |
11487 | * This table is used by the pointer type-checker | |
11488 | */ | |
11489 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 11490 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, |
1d99702e | 11491 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, |
1d99702e | 11492 | { "_signed_long","_long",0}, |
b1462dfa | 11493 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
11494 | { "_wxPrintQuality","_int",0}, |
11495 | { "_wxPrintQuality","_signed_int",0}, | |
11496 | { "_wxPrintQuality","_unsigned_int",0}, | |
11497 | { "_wxPrintQuality","_wxWindowID",0}, | |
11498 | { "_wxPrintQuality","_uint",0}, | |
11499 | { "_wxPrintQuality","_EBool",0}, | |
11500 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11501 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 11502 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, |
c368d904 | 11503 | { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
1d99702e | 11504 | { "_byte","_unsigned_char",0}, |
db34b2d4 | 11505 | { "_wxChoice","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxChoice}, |
1d99702e RD |
11506 | { "_long","_unsigned_long",0}, |
11507 | { "_long","_signed_long",0}, | |
b1462dfa | 11508 | { "_size_t","_wxCoord",0}, |
1d99702e | 11509 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11510 | { "_size_t","_time_t",0}, |
1d99702e RD |
11511 | { "_size_t","_unsigned_int",0}, |
11512 | { "_size_t","_int",0}, | |
11513 | { "_size_t","_wxWindowID",0}, | |
11514 | { "_size_t","_uint",0}, | |
b1462dfa | 11515 | { "_uint","_wxCoord",0}, |
1d99702e | 11516 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11517 | { "_uint","_time_t",0}, |
1d99702e RD |
11518 | { "_uint","_size_t",0}, |
11519 | { "_uint","_unsigned_int",0}, | |
11520 | { "_uint","_int",0}, | |
11521 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11522 | { "_wxChar","_char",0}, |
1d99702e | 11523 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, |
1d99702e | 11524 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, |
f6bcfd97 | 11525 | { "_char","_wxChar",0}, |
059a841c | 11526 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 11527 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
11528 | { "_EBool","_wxPrintQuality",0}, |
11529 | { "_EBool","_signed_int",0}, | |
11530 | { "_EBool","_int",0}, | |
11531 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 11532 | { "_unsigned_long","_long",0}, |
059a841c | 11533 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 11534 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
11535 | { "_signed_int","_wxPrintQuality",0}, |
11536 | { "_signed_int","_EBool",0}, | |
11537 | { "_signed_int","_wxWindowID",0}, | |
11538 | { "_signed_int","_int",0}, | |
1d99702e RD |
11539 | { "_WXTYPE","_short",0}, |
11540 | { "_WXTYPE","_signed_short",0}, | |
11541 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
11542 | { "_unsigned_short","_WXTYPE",0}, |
11543 | { "_unsigned_short","_short",0}, | |
db34b2d4 RD |
11544 | { "_wxObject","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxObject}, |
11545 | { "_wxObject","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxObject}, | |
11546 | { "_wxObject","_wxDirItemData",SwigwxDirItemDataTowxObject}, | |
9df61a29 | 11547 | { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, |
9df61a29 | 11548 | { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject}, |
059a841c | 11549 | { "_wxObject","_wxListView",SwigwxListViewTowxObject}, |
cd096152 | 11550 | { "_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, |
9df61a29 | 11551 | { "_wxObject","_wxListEvent",SwigwxListEventTowxObject}, |
9df61a29 | 11552 | { "_wxObject","_wxListItem",SwigwxListItemTowxObject}, |
1d99702e RD |
11553 | { "_signed_short","_WXTYPE",0}, |
11554 | { "_signed_short","_short",0}, | |
1d99702e | 11555 | { "_unsigned_char","_byte",0}, |
db34b2d4 RD |
11556 | { "_wxControl","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControl}, |
11557 | { "_wxControl","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxControl}, | |
f6bcfd97 | 11558 | { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
059a841c | 11559 | { "_wxControl","_wxListView",SwigwxListViewTowxControl}, |
cd096152 | 11560 | { "_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, |
b1462dfa | 11561 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 11562 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 11563 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
11564 | { "_unsigned_int","_size_t",0}, |
11565 | { "_unsigned_int","_uint",0}, | |
11566 | { "_unsigned_int","_wxWindowID",0}, | |
11567 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
11568 | { "_short","_WXTYPE",0}, |
11569 | { "_short","_unsigned_short",0}, | |
11570 | { "_short","_signed_short",0}, | |
db34b2d4 | 11571 | { "_wxControlWithItems","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControlWithItems}, |
b1462dfa | 11572 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 11573 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 11574 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
11575 | { "_wxWindowID","_size_t",0}, |
11576 | { "_wxWindowID","_EBool",0}, | |
11577 | { "_wxWindowID","_uint",0}, | |
11578 | { "_wxWindowID","_int",0}, | |
11579 | { "_wxWindowID","_signed_int",0}, | |
11580 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 11581 | { "_int","_wxCoord",0}, |
1d99702e | 11582 | { "_int","_wxPrintQuality",0}, |
c368d904 | 11583 | { "_int","_time_t",0}, |
1d99702e RD |
11584 | { "_int","_size_t",0}, |
11585 | { "_int","_EBool",0}, | |
11586 | { "_int","_uint",0}, | |
11587 | { "_int","_wxWindowID",0}, | |
11588 | { "_int","_unsigned_int",0}, | |
11589 | { "_int","_signed_int",0}, | |
c368d904 RD |
11590 | { "_time_t","_wxCoord",0}, |
11591 | { "_time_t","_wxPrintQuality",0}, | |
11592 | { "_time_t","_unsigned_int",0}, | |
11593 | { "_time_t","_int",0}, | |
11594 | { "_time_t","_wxWindowID",0}, | |
11595 | { "_time_t","_uint",0}, | |
11596 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
11597 | { "_wxCoord","_int",0}, |
11598 | { "_wxCoord","_signed_int",0}, | |
11599 | { "_wxCoord","_unsigned_int",0}, | |
11600 | { "_wxCoord","_wxWindowID",0}, | |
11601 | { "_wxCoord","_uint",0}, | |
11602 | { "_wxCoord","_EBool",0}, | |
11603 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11604 | { "_wxCoord","_time_t",0}, |
b1462dfa | 11605 | { "_wxCoord","_wxPrintQuality",0}, |
059a841c | 11606 | { "_wxPyListCtrl","_wxListView",SwigwxListViewTowxPyListCtrl}, |
db34b2d4 RD |
11607 | { "_wxEvtHandler","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxEvtHandler}, |
11608 | { "_wxEvtHandler","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxEvtHandler}, | |
f6bcfd97 | 11609 | { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
059a841c | 11610 | { "_wxEvtHandler","_wxListView",SwigwxListViewTowxEvtHandler}, |
cd096152 | 11611 | { "_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, |
db34b2d4 RD |
11612 | { "_wxWindow","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxWindow}, |
11613 | { "_wxWindow","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxWindow}, | |
f6bcfd97 | 11614 | { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
059a841c | 11615 | { "_wxWindow","_wxListView",SwigwxListViewTowxWindow}, |
cd096152 | 11616 | { "_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, |
1d99702e RD |
11617 | {0,0,0}}; |
11618 | ||
8ab979d7 RD |
11619 | static PyObject *SWIG_globals; |
11620 | #ifdef __cplusplus | |
11621 | extern "C" | |
11622 | #endif | |
1d99702e | 11623 | SWIGEXPORT(void) initcontrols2c() { |
8ab979d7 RD |
11624 | PyObject *m, *d; |
11625 | SWIG_globals = SWIG_newvarlink(); | |
11626 | m = Py_InitModule("controls2c", controls2cMethods); | |
11627 | d = PyModule_GetDict(m); | |
cd096152 RD |
11628 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
11629 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
11630 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
11631 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
11632 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
11633 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
11634 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO)); | |
11635 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO)); | |
11636 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
11637 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
11638 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN)); | |
11639 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
11640 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK)); | |
11641 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
11642 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
11643 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
11644 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_CACHE_HINT)); | |
059a841c RD |
11645 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); |
11646 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
11647 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
11648 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
262e41eb | 11649 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_FOCUSED)); |
cd096152 RD |
11650 | PyDict_SetItemString(d,"wxLC_VRULES", PyInt_FromLong((long) wxLC_VRULES)); |
11651 | PyDict_SetItemString(d,"wxLC_HRULES", PyInt_FromLong((long) wxLC_HRULES)); | |
11652 | PyDict_SetItemString(d,"wxLC_ICON", PyInt_FromLong((long) wxLC_ICON)); | |
11653 | PyDict_SetItemString(d,"wxLC_SMALL_ICON", PyInt_FromLong((long) wxLC_SMALL_ICON)); | |
11654 | PyDict_SetItemString(d,"wxLC_LIST", PyInt_FromLong((long) wxLC_LIST)); | |
11655 | PyDict_SetItemString(d,"wxLC_REPORT", PyInt_FromLong((long) wxLC_REPORT)); | |
11656 | PyDict_SetItemString(d,"wxLC_ALIGN_TOP", PyInt_FromLong((long) wxLC_ALIGN_TOP)); | |
11657 | PyDict_SetItemString(d,"wxLC_ALIGN_LEFT", PyInt_FromLong((long) wxLC_ALIGN_LEFT)); | |
11658 | PyDict_SetItemString(d,"wxLC_AUTOARRANGE", PyInt_FromLong((long) wxLC_AUTOARRANGE)); | |
11659 | PyDict_SetItemString(d,"wxLC_VIRTUAL", PyInt_FromLong((long) wxLC_VIRTUAL)); | |
11660 | PyDict_SetItemString(d,"wxLC_EDIT_LABELS", PyInt_FromLong((long) wxLC_EDIT_LABELS)); | |
11661 | PyDict_SetItemString(d,"wxLC_NO_HEADER", PyInt_FromLong((long) wxLC_NO_HEADER)); | |
11662 | PyDict_SetItemString(d,"wxLC_NO_SORT_HEADER", PyInt_FromLong((long) wxLC_NO_SORT_HEADER)); | |
11663 | PyDict_SetItemString(d,"wxLC_SINGLE_SEL", PyInt_FromLong((long) wxLC_SINGLE_SEL)); | |
11664 | PyDict_SetItemString(d,"wxLC_SORT_ASCENDING", PyInt_FromLong((long) wxLC_SORT_ASCENDING)); | |
11665 | PyDict_SetItemString(d,"wxLC_SORT_DESCENDING", PyInt_FromLong((long) wxLC_SORT_DESCENDING)); | |
11666 | PyDict_SetItemString(d,"wxLC_MASK_TYPE", PyInt_FromLong((long) wxLC_MASK_TYPE)); | |
11667 | PyDict_SetItemString(d,"wxLC_MASK_ALIGN", PyInt_FromLong((long) wxLC_MASK_ALIGN)); | |
11668 | PyDict_SetItemString(d,"wxLC_MASK_SORT", PyInt_FromLong((long) wxLC_MASK_SORT)); | |
059a841c | 11669 | PyDict_SetItemString(d,"wxLC_USER_TEXT", PyInt_FromLong((long) wxLC_USER_TEXT)); |
cd096152 | 11670 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); |
af309447 RD |
11671 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); |
11672 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
11673 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
cd096152 | 11674 | PyDict_SetItemString(d,"wxLIST_SET_ITEM", PyInt_FromLong((long) wxLIST_SET_ITEM)); |
af309447 RD |
11675 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); |
11676 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
11677 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); | |
11678 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
11679 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
11680 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
11681 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
11682 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
11683 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
11684 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
11685 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
11686 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
11687 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
11688 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
11689 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
11690 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
11691 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
11692 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
11693 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
11694 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
11695 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
11696 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
11697 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
11698 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
11699 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
11700 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
af309447 RD |
11701 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); |
11702 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
11703 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
11704 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
11705 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
11706 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
11707 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
11708 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
11709 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
f6bcfd97 BP |
11710 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); |
11711 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
11712 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
11713 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
aa2a5b86 RD |
11714 | PyDict_SetItemString(d,"wxTR_NO_BUTTONS", PyInt_FromLong((long) wxTR_NO_BUTTONS)); |
11715 | PyDict_SetItemString(d,"wxTR_HAS_BUTTONS", PyInt_FromLong((long) wxTR_HAS_BUTTONS)); | |
aa2a5b86 | 11716 | PyDict_SetItemString(d,"wxTR_NO_LINES", PyInt_FromLong((long) wxTR_NO_LINES)); |
3ef86e32 | 11717 | PyDict_SetItemString(d,"wxTR_LINES_AT_ROOT", PyInt_FromLong((long) wxTR_LINES_AT_ROOT)); |
aa2a5b86 RD |
11718 | PyDict_SetItemString(d,"wxTR_SINGLE", PyInt_FromLong((long) wxTR_SINGLE)); |
11719 | PyDict_SetItemString(d,"wxTR_MULTIPLE", PyInt_FromLong((long) wxTR_MULTIPLE)); | |
11720 | PyDict_SetItemString(d,"wxTR_EXTENDED", PyInt_FromLong((long) wxTR_EXTENDED)); | |
3ef86e32 | 11721 | PyDict_SetItemString(d,"wxTR_HAS_VARIABLE_ROW_HEIGHT", PyInt_FromLong((long) wxTR_HAS_VARIABLE_ROW_HEIGHT)); |
aa2a5b86 | 11722 | PyDict_SetItemString(d,"wxTR_EDIT_LABELS", PyInt_FromLong((long) wxTR_EDIT_LABELS)); |
aa2a5b86 RD |
11723 | PyDict_SetItemString(d,"wxTR_HIDE_ROOT", PyInt_FromLong((long) wxTR_HIDE_ROOT)); |
11724 | PyDict_SetItemString(d,"wxTR_ROW_LINES", PyInt_FromLong((long) wxTR_ROW_LINES)); | |
3ef86e32 | 11725 | PyDict_SetItemString(d,"wxTR_FULL_ROW_HIGHLIGHT", PyInt_FromLong((long) wxTR_FULL_ROW_HIGHLIGHT)); |
aa2a5b86 | 11726 | PyDict_SetItemString(d,"wxTR_DEFAULT_STYLE", PyInt_FromLong((long) wxTR_DEFAULT_STYLE)); |
3ef86e32 RD |
11727 | PyDict_SetItemString(d,"wxTR_TWIST_BUTTONS", PyInt_FromLong((long) wxTR_TWIST_BUTTONS)); |
11728 | PyDict_SetItemString(d,"wxTR_MAC_BUTTONS", PyInt_FromLong((long) wxTR_MAC_BUTTONS)); | |
11729 | PyDict_SetItemString(d,"wxTR_AQUA_BUTTONS", PyInt_FromLong((long) wxTR_AQUA_BUTTONS)); | |
694759cf RD |
11730 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); |
11731 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
11732 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
11733 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
11734 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
164b735b RD |
11735 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); |
11736 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
11737 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
11738 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
11739 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
11740 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
11741 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
11742 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
11743 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
11744 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
11745 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
11746 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
11747 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
11748 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
9c4165ad RD |
11749 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
11750 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
11751 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
11752 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
11753 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
11754 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO)); | |
11755 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO)); | |
11756 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
11757 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
11758 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
11759 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
11760 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
11761 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
11762 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN)); | |
11763 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
11764 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
11765 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
7a446686 | 11766 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG)); |
3ef86e32 | 11767 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); |
db34b2d4 RD |
11768 | PyDict_SetItemString(d,"wxDIRCTRL_DIR_ONLY", PyInt_FromLong((long) wxDIRCTRL_DIR_ONLY)); |
11769 | PyDict_SetItemString(d,"wxDIRCTRL_SELECT_FIRST", PyInt_FromLong((long) wxDIRCTRL_SELECT_FIRST)); | |
11770 | PyDict_SetItemString(d,"wxDIRCTRL_SHOW_FILTERS", PyInt_FromLong((long) wxDIRCTRL_SHOW_FILTERS)); | |
11771 | PyDict_SetItemString(d,"wxDIRCTRL_3D_INTERNAL", PyInt_FromLong((long) wxDIRCTRL_3D_INTERNAL)); | |
301dfd67 | 11772 | PyDict_SetItemString(d,"wxDIRCTRL_EDIT_LABELS", PyInt_FromLong((long) wxDIRCTRL_EDIT_LABELS)); |
87439dd8 RD |
11773 | PyDict_SetItemString(d,"wxID_TREECTRL", PyInt_FromLong((long) wxID_TREECTRL)); |
11774 | PyDict_SetItemString(d,"wxID_FILTERLISTCTRL", PyInt_FromLong((long) wxID_FILTERLISTCTRL)); | |
9df61a29 | 11775 | |
059a841c | 11776 | // Map renamed classes back to their common name for OOR |
9df61a29 RD |
11777 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); |
11778 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
059a841c | 11779 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); |
3ef86e32 RD |
11780 | PyDict_SetItemString(d,"wxFileIconsTable_folder", PyInt_FromLong((long) wxFileIconsTable::folder)); |
11781 | PyDict_SetItemString(d,"wxFileIconsTable_folder_open", PyInt_FromLong((long) wxFileIconsTable::folder_open)); | |
11782 | PyDict_SetItemString(d,"wxFileIconsTable_computer", PyInt_FromLong((long) wxFileIconsTable::computer)); | |
11783 | PyDict_SetItemString(d,"wxFileIconsTable_drive", PyInt_FromLong((long) wxFileIconsTable::drive)); | |
11784 | PyDict_SetItemString(d,"wxFileIconsTable_cdrom", PyInt_FromLong((long) wxFileIconsTable::cdrom)); | |
11785 | PyDict_SetItemString(d,"wxFileIconsTable_floppy", PyInt_FromLong((long) wxFileIconsTable::floppy)); | |
11786 | PyDict_SetItemString(d,"wxFileIconsTable_removeable", PyInt_FromLong((long) wxFileIconsTable::removeable)); | |
11787 | PyDict_SetItemString(d,"wxFileIconsTable_file", PyInt_FromLong((long) wxFileIconsTable::file)); | |
11788 | PyDict_SetItemString(d,"wxFileIconsTable_executable", PyInt_FromLong((long) wxFileIconsTable::executable)); | |
1d99702e RD |
11789 | { |
11790 | int i; | |
11791 | for (i = 0; _swig_mapping[i].n1; i++) | |
11792 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11793 | } | |
8ab979d7 | 11794 | } |