]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/gtk/controls2.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 6 | * Version 1.1 (Build 883) |
8ab979d7 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
3bcd5e1c | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
3bcd5e1c | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
3bcd5e1c | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
3bcd5e1c RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
3bcd5e1c | 44 | |
8ab979d7 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initcontrols2c |
55 | ||
56 | #define SWIG_name "controls2c" | |
57 | ||
58 | #include "helpers.h" | |
2f90df85 RD |
59 | #ifdef __WXMSW__ |
60 | #include <windows.h> | |
61 | #endif | |
8ab979d7 RD |
62 | #include <wx/listctrl.h> |
63 | #include <wx/treectrl.h> | |
9df61a29 | 64 | #include <wx/imaglist.h> |
db34b2d4 | 65 | #include <wx/dirctrl.h> |
8ab979d7 | 66 | |
8ab979d7 RD |
67 | |
68 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
69 | PyObject* o2; | |
70 | PyObject* o3; | |
71 | ||
3bcd5e1c | 72 | if (!target) { |
8ab979d7 | 73 | target = o; |
3bcd5e1c | 74 | } else if (target == Py_None) { |
8ab979d7 RD |
75 | Py_DECREF(Py_None); |
76 | target = o; | |
3bcd5e1c | 77 | } else { |
8ab979d7 RD |
78 | if (!PyTuple_Check(target)) { |
79 | o2 = target; | |
80 | target = PyTuple_New(1); | |
81 | PyTuple_SetItem(target, 0, o2); | |
82 | } | |
3bcd5e1c RD |
83 | o3 = PyTuple_New(1); |
84 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
85 | |
86 | o2 = target; | |
3bcd5e1c RD |
87 | target = PySequence_Concat(o2, o3); |
88 | Py_DECREF(o2); | |
8ab979d7 RD |
89 | Py_DECREF(o3); |
90 | } | |
91 | return target; | |
92 | } | |
9a74fcaf RD |
93 | |
94 | // Put some wx default wxChar* values into wxStrings. | |
95 | const wxChar* wxListCtrlNameStr = _T("wxListCtrl"); | |
96 | DECLARE_DEF_STRING(ListCtrlNameStr); | |
97 | ||
98 | const wxChar* wx_TreeCtrlNameStr = _T("wxTreeCtrl"); | |
99 | DECLARE_DEF_STRING(_TreeCtrlNameStr); | |
100 | DECLARE_DEF_STRING(DirDialogDefaultFolderStr); | |
101 | ||
102 | static const wxString wxPyEmptyString(wxT("")); | |
8f8b0a8d RD |
103 | |
104 | static const long longzero = 0; | |
aa2a5b86 | 105 | // C++ Version of a Python aware class |
cd096152 RD |
106 | class wxPyListCtrl : public wxListCtrl { |
107 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
108 | public: | |
aa2a5b86 | 109 | wxPyListCtrl() : wxListCtrl() {} |
cd096152 RD |
110 | wxPyListCtrl(wxWindow* parent, wxWindowID id, |
111 | const wxPoint& pos, | |
112 | const wxSize& size, | |
113 | long style, | |
114 | const wxValidator& validator, | |
9a74fcaf | 115 | const wxString& name) : |
cd096152 RD |
116 | wxListCtrl(parent, id, pos, size, style, validator, name) {} |
117 | ||
aa2a5b86 RD |
118 | bool Create(wxWindow* parent, wxWindowID id, |
119 | const wxPoint& pos, | |
120 | const wxSize& size, | |
121 | long style, | |
122 | const wxValidator& validator, | |
9a74fcaf | 123 | const wxString& name) { |
aa2a5b86 RD |
124 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); |
125 | } | |
126 | ||
cd096152 RD |
127 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); |
128 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
129 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
130 | ||
131 | PYPRIVATE; | |
132 | }; | |
133 | ||
134 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
135 | ||
136 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
137 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
138 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
059a841c | 139 | // Python aware sorting function for wxPyListCtrl |
f6bcfd97 | 140 | int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { |
dcd38683 RD |
141 | int retval = 0; |
142 | PyObject* func = (PyObject*)funcPtr; | |
474c48f9 | 143 | wxPyBeginBlockThreads(); |
dcd38683 RD |
144 | |
145 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
146 | PyObject* result = PyEval_CallObject(func, args); | |
147 | Py_DECREF(args); | |
148 | if (result) { | |
149 | retval = PyInt_AsLong(result); | |
150 | Py_DECREF(result); | |
151 | } | |
152 | ||
474c48f9 | 153 | wxPyEndBlockThreads(); |
dcd38683 RD |
154 | return retval; |
155 | } | |
156 | ||
157 | ||
cf694132 RD |
158 | class wxPyTreeItemData : public wxTreeItemData { |
159 | public: | |
160 | wxPyTreeItemData(PyObject* obj = NULL) { | |
c368d904 | 161 | if (obj == NULL) |
cf694132 | 162 | obj = Py_None; |
c368d904 RD |
163 | Py_INCREF(obj); |
164 | m_obj = obj; | |
cf694132 RD |
165 | } |
166 | ||
167 | ~wxPyTreeItemData() { | |
474c48f9 | 168 | wxPyBeginBlockThreads(); |
c368d904 | 169 | Py_DECREF(m_obj); |
474c48f9 | 170 | wxPyEndBlockThreads(); |
cf694132 RD |
171 | } |
172 | ||
173 | PyObject* GetData() { | |
174 | Py_INCREF(m_obj); | |
175 | return m_obj; | |
176 | } | |
177 | ||
178 | void SetData(PyObject* obj) { | |
474c48f9 | 179 | wxPyBeginBlockThreads(); |
cf694132 | 180 | Py_DECREF(m_obj); |
474c48f9 | 181 | wxPyEndBlockThreads(); |
cf694132 RD |
182 | m_obj = obj; |
183 | Py_INCREF(obj); | |
184 | } | |
185 | ||
186 | PyObject* m_obj; | |
187 | }; | |
aa2a5b86 | 188 | // C++ version of Python aware wxTreeCtrl |
f6bcfd97 | 189 | class wxPyTreeCtrl : public wxTreeCtrl { |
9df61a29 | 190 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); |
f6bcfd97 | 191 | public: |
aa2a5b86 | 192 | wxPyTreeCtrl() : wxTreeCtrl() {} |
f6bcfd97 BP |
193 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, |
194 | const wxPoint& pos, | |
195 | const wxSize& size, | |
196 | long style, | |
197 | const wxValidator& validator, | |
9a74fcaf | 198 | const wxString& name) : |
f6bcfd97 BP |
199 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} |
200 | ||
aa2a5b86 RD |
201 | bool Create(wxWindow *parent, wxWindowID id, |
202 | const wxPoint& pos, | |
203 | const wxSize& size, | |
204 | long style, | |
205 | const wxValidator& validator, | |
9a74fcaf | 206 | const wxString& name) { |
aa2a5b86 RD |
207 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); |
208 | } | |
209 | ||
210 | ||
f6bcfd97 BP |
211 | int OnCompareItems(const wxTreeItemId& item1, |
212 | const wxTreeItemId& item2) { | |
213 | int rval = 0; | |
059a841c | 214 | bool found; |
474c48f9 | 215 | wxPyBeginBlockThreads(); |
8f8b0a8d RD |
216 | if ((found = m_myInst.findCallback("OnCompareItems"))) { |
217 | PyObject *o1 = wxPyConstructObject((void*)&item1, "wxTreeItemId"); | |
218 | PyObject *o2 = wxPyConstructObject((void*)&item2, "wxTreeItemId"); | |
219 | rval = m_myInst.callCallback(Py_BuildValue("(OO)",o1,o2)); | |
220 | Py_DECREF(o1); | |
221 | Py_DECREF(o2); | |
222 | } | |
474c48f9 | 223 | wxPyEndBlockThreads(); |
059a841c | 224 | if (! found) |
f6bcfd97 | 225 | rval = wxTreeCtrl::OnCompareItems(item1, item2); |
f6bcfd97 BP |
226 | return rval; |
227 | } | |
228 | PYPRIVATE; | |
229 | }; | |
230 | ||
9df61a29 RD |
231 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); |
232 | ||
1d99702e RD |
233 | #ifdef __cplusplus |
234 | extern "C" { | |
235 | #endif | |
cd096152 | 236 | #define new_wxListItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxListItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
f6bcfd97 BP |
237 | static PyObject *_wrap_new_wxListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
238 | PyObject * _resultobj; | |
239 | wxListItemAttr * _result; | |
cd096152 RD |
240 | wxColour * _arg0 = (wxColour *) &wxNullColour; |
241 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
242 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
243 | wxColour temp; | |
244 | PyObject * _obj0 = 0; | |
245 | wxColour temp0; | |
246 | PyObject * _obj1 = 0; | |
247 | PyObject * _argo2 = 0; | |
248 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
f6bcfd97 BP |
249 | char _ptemp[128]; |
250 | ||
251 | self = self; | |
cd096152 RD |
252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxListItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) |
253 | return NULL; | |
254 | if (_obj0) | |
255 | { | |
256 | _arg0 = &temp; | |
257 | if (! wxColour_helper(_obj0, &_arg0)) | |
258 | return NULL; | |
259 | } | |
260 | if (_obj1) | |
261 | { | |
262 | _arg1 = &temp0; | |
263 | if (! wxColour_helper(_obj1, &_arg1)) | |
264 | return NULL; | |
265 | } | |
266 | if (_argo2) { | |
267 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
268 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxListItemAttr. Expected _wxFont_p."); | |
f6bcfd97 | 270 | return NULL; |
cd096152 RD |
271 | } |
272 | } | |
f6bcfd97 | 273 | { |
474c48f9 | 274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 275 | _result = (wxListItemAttr *)new_wxListItemAttr(*_arg0,*_arg1,*_arg2); |
f6bcfd97 | 276 | |
474c48f9 | 277 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 278 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
279 | } if (_result) { |
280 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
281 | _resultobj = Py_BuildValue("s",_ptemp); | |
282 | } else { | |
283 | Py_INCREF(Py_None); | |
284 | _resultobj = Py_None; | |
285 | } | |
286 | return _resultobj; | |
287 | } | |
288 | ||
289 | #define wxListItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
290 | static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
291 | PyObject * _resultobj; | |
292 | wxListItemAttr * _arg0; | |
293 | wxColour * _arg1; | |
294 | PyObject * _argo0 = 0; | |
295 | wxColour temp; | |
296 | PyObject * _obj1 = 0; | |
297 | char *_kwnames[] = { "self","colText", NULL }; | |
298 | ||
299 | self = self; | |
300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
301 | return NULL; | |
302 | if (_argo0) { | |
303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetTextColour. Expected _wxListItemAttr_p."); | |
306 | return NULL; | |
307 | } | |
308 | } | |
309 | { | |
310 | _arg1 = &temp; | |
311 | if (! wxColour_helper(_obj1, &_arg1)) | |
312 | return NULL; | |
313 | } | |
314 | { | |
474c48f9 | 315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 316 | wxListItemAttr_SetTextColour(_arg0,*_arg1); |
f6bcfd97 | 317 | |
474c48f9 | 318 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 319 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
320 | } Py_INCREF(Py_None); |
321 | _resultobj = Py_None; | |
322 | return _resultobj; | |
323 | } | |
324 | ||
325 | #define wxListItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
326 | static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
327 | PyObject * _resultobj; | |
328 | wxListItemAttr * _arg0; | |
329 | wxColour * _arg1; | |
330 | PyObject * _argo0 = 0; | |
331 | wxColour temp; | |
332 | PyObject * _obj1 = 0; | |
333 | char *_kwnames[] = { "self","colBack", NULL }; | |
334 | ||
335 | self = self; | |
336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
337 | return NULL; | |
338 | if (_argo0) { | |
339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetBackgroundColour. Expected _wxListItemAttr_p."); | |
342 | return NULL; | |
343 | } | |
344 | } | |
345 | { | |
346 | _arg1 = &temp; | |
347 | if (! wxColour_helper(_obj1, &_arg1)) | |
348 | return NULL; | |
349 | } | |
350 | { | |
474c48f9 | 351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 352 | wxListItemAttr_SetBackgroundColour(_arg0,*_arg1); |
f6bcfd97 | 353 | |
474c48f9 | 354 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 355 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
356 | } Py_INCREF(Py_None); |
357 | _resultobj = Py_None; | |
358 | return _resultobj; | |
359 | } | |
360 | ||
361 | #define wxListItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
362 | static PyObject *_wrap_wxListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
363 | PyObject * _resultobj; | |
364 | wxListItemAttr * _arg0; | |
365 | wxFont * _arg1; | |
366 | PyObject * _argo0 = 0; | |
367 | PyObject * _argo1 = 0; | |
368 | char *_kwnames[] = { "self","font", NULL }; | |
369 | ||
370 | self = self; | |
371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
372 | return NULL; | |
373 | if (_argo0) { | |
374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetFont. Expected _wxListItemAttr_p."); | |
377 | return NULL; | |
378 | } | |
379 | } | |
380 | if (_argo1) { | |
381 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
382 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetFont. Expected _wxFont_p."); | |
384 | return NULL; | |
385 | } | |
386 | } | |
387 | { | |
474c48f9 | 388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 389 | wxListItemAttr_SetFont(_arg0,*_arg1); |
f6bcfd97 | 390 | |
474c48f9 | 391 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 392 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
393 | } Py_INCREF(Py_None); |
394 | _resultobj = Py_None; | |
395 | return _resultobj; | |
396 | } | |
397 | ||
398 | #define wxListItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
399 | static PyObject *_wrap_wxListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
400 | PyObject * _resultobj; | |
401 | bool _result; | |
402 | wxListItemAttr * _arg0; | |
403 | PyObject * _argo0 = 0; | |
404 | char *_kwnames[] = { "self", NULL }; | |
405 | ||
406 | self = self; | |
407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasTextColour",_kwnames,&_argo0)) | |
408 | return NULL; | |
409 | if (_argo0) { | |
410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasTextColour. Expected _wxListItemAttr_p."); | |
413 | return NULL; | |
414 | } | |
415 | } | |
416 | { | |
474c48f9 | 417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 418 | _result = (bool )wxListItemAttr_HasTextColour(_arg0); |
f6bcfd97 | 419 | |
474c48f9 | 420 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 421 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
422 | } _resultobj = Py_BuildValue("i",_result); |
423 | return _resultobj; | |
424 | } | |
425 | ||
426 | #define wxListItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
427 | static PyObject *_wrap_wxListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
428 | PyObject * _resultobj; | |
429 | bool _result; | |
430 | wxListItemAttr * _arg0; | |
431 | PyObject * _argo0 = 0; | |
432 | char *_kwnames[] = { "self", NULL }; | |
433 | ||
434 | self = self; | |
435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
436 | return NULL; | |
437 | if (_argo0) { | |
438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasBackgroundColour. Expected _wxListItemAttr_p."); | |
441 | return NULL; | |
442 | } | |
443 | } | |
444 | { | |
474c48f9 | 445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 446 | _result = (bool )wxListItemAttr_HasBackgroundColour(_arg0); |
f6bcfd97 | 447 | |
474c48f9 | 448 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 449 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
450 | } _resultobj = Py_BuildValue("i",_result); |
451 | return _resultobj; | |
452 | } | |
453 | ||
454 | #define wxListItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
455 | static PyObject *_wrap_wxListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
456 | PyObject * _resultobj; | |
457 | bool _result; | |
458 | wxListItemAttr * _arg0; | |
459 | PyObject * _argo0 = 0; | |
460 | char *_kwnames[] = { "self", NULL }; | |
461 | ||
462 | self = self; | |
463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasFont",_kwnames,&_argo0)) | |
464 | return NULL; | |
465 | if (_argo0) { | |
466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasFont. Expected _wxListItemAttr_p."); | |
469 | return NULL; | |
470 | } | |
471 | } | |
472 | { | |
474c48f9 | 473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 474 | _result = (bool )wxListItemAttr_HasFont(_arg0); |
f6bcfd97 | 475 | |
474c48f9 | 476 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 477 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
478 | } _resultobj = Py_BuildValue("i",_result); |
479 | return _resultobj; | |
480 | } | |
481 | ||
482 | #define wxListItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
483 | static PyObject *_wrap_wxListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
484 | PyObject * _resultobj; | |
485 | wxColour * _result; | |
486 | wxListItemAttr * _arg0; | |
487 | PyObject * _argo0 = 0; | |
488 | char *_kwnames[] = { "self", NULL }; | |
489 | char _ptemp[128]; | |
490 | ||
491 | self = self; | |
492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetTextColour",_kwnames,&_argo0)) | |
493 | return NULL; | |
494 | if (_argo0) { | |
495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetTextColour. Expected _wxListItemAttr_p."); | |
498 | return NULL; | |
499 | } | |
500 | } | |
501 | { | |
474c48f9 | 502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 503 | _result = new wxColour (wxListItemAttr_GetTextColour(_arg0)); |
f6bcfd97 | 504 | |
474c48f9 | 505 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 506 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
507 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
508 | _resultobj = Py_BuildValue("s",_ptemp); | |
f6bcfd97 BP |
509 | return _resultobj; |
510 | } | |
511 | ||
512 | #define wxListItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
513 | static PyObject *_wrap_wxListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
514 | PyObject * _resultobj; | |
515 | wxColour * _result; | |
516 | wxListItemAttr * _arg0; | |
517 | PyObject * _argo0 = 0; | |
518 | char *_kwnames[] = { "self", NULL }; | |
519 | char _ptemp[128]; | |
520 | ||
521 | self = self; | |
522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
523 | return NULL; | |
524 | if (_argo0) { | |
525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetBackgroundColour. Expected _wxListItemAttr_p."); | |
528 | return NULL; | |
529 | } | |
530 | } | |
531 | { | |
474c48f9 | 532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 533 | _result = new wxColour (wxListItemAttr_GetBackgroundColour(_arg0)); |
f6bcfd97 | 534 | |
474c48f9 | 535 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 536 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
537 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
538 | _resultobj = Py_BuildValue("s",_ptemp); | |
f6bcfd97 BP |
539 | return _resultobj; |
540 | } | |
541 | ||
542 | #define wxListItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
543 | static PyObject *_wrap_wxListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
544 | PyObject * _resultobj; | |
545 | wxFont * _result; | |
546 | wxListItemAttr * _arg0; | |
547 | PyObject * _argo0 = 0; | |
548 | char *_kwnames[] = { "self", NULL }; | |
549 | char _ptemp[128]; | |
550 | ||
551 | self = self; | |
552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetFont",_kwnames,&_argo0)) | |
553 | return NULL; | |
554 | if (_argo0) { | |
555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetFont. Expected _wxListItemAttr_p."); | |
558 | return NULL; | |
559 | } | |
560 | } | |
561 | { | |
474c48f9 | 562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 563 | _result = new wxFont (wxListItemAttr_GetFont(_arg0)); |
f6bcfd97 | 564 | |
474c48f9 | 565 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 566 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
567 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
568 | _resultobj = Py_BuildValue("s",_ptemp); | |
f6bcfd97 BP |
569 | return _resultobj; |
570 | } | |
571 | ||
9df61a29 RD |
572 | static void *SwigwxListItemTowxObject(void *ptr) { |
573 | wxListItem *src; | |
574 | wxObject *dest; | |
575 | src = (wxListItem *) ptr; | |
576 | dest = (wxObject *) src; | |
577 | return (void *) dest; | |
578 | } | |
579 | ||
f6bcfd97 BP |
580 | #define new_wxListItem() (new wxListItem()) |
581 | static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
582 | PyObject * _resultobj; | |
583 | wxListItem * _result; | |
584 | char *_kwnames[] = { NULL }; | |
585 | char _ptemp[128]; | |
586 | ||
587 | self = self; | |
588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames)) | |
589 | return NULL; | |
590 | { | |
474c48f9 | 591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 592 | _result = (wxListItem *)new_wxListItem(); |
f6bcfd97 | 593 | |
474c48f9 | 594 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 595 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
596 | } if (_result) { |
597 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
598 | _resultobj = Py_BuildValue("s",_ptemp); | |
599 | } else { | |
600 | Py_INCREF(Py_None); | |
601 | _resultobj = Py_None; | |
602 | } | |
603 | return _resultobj; | |
604 | } | |
605 | ||
606 | #define delete_wxListItem(_swigobj) (delete _swigobj) | |
607 | static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
608 | PyObject * _resultobj; | |
609 | wxListItem * _arg0; | |
610 | PyObject * _argo0 = 0; | |
611 | char *_kwnames[] = { "self", NULL }; | |
612 | ||
613 | self = self; | |
614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0)) | |
615 | return NULL; | |
616 | if (_argo0) { | |
617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p."); | |
620 | return NULL; | |
621 | } | |
622 | } | |
623 | { | |
474c48f9 | 624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 625 | delete_wxListItem(_arg0); |
f6bcfd97 | 626 | |
474c48f9 | 627 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 628 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
629 | } Py_INCREF(Py_None); |
630 | _resultobj = Py_None; | |
631 | return _resultobj; | |
632 | } | |
633 | ||
634 | #define wxListItem_Clear(_swigobj) (_swigobj->Clear()) | |
635 | static PyObject *_wrap_wxListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
636 | PyObject * _resultobj; | |
637 | wxListItem * _arg0; | |
638 | PyObject * _argo0 = 0; | |
639 | char *_kwnames[] = { "self", NULL }; | |
640 | ||
641 | self = self; | |
642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_Clear",_kwnames,&_argo0)) | |
643 | return NULL; | |
644 | if (_argo0) { | |
645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_Clear. Expected _wxListItem_p."); | |
648 | return NULL; | |
649 | } | |
650 | } | |
651 | { | |
474c48f9 | 652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 653 | wxListItem_Clear(_arg0); |
f6bcfd97 | 654 | |
474c48f9 | 655 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 656 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
657 | } Py_INCREF(Py_None); |
658 | _resultobj = Py_None; | |
659 | return _resultobj; | |
660 | } | |
661 | ||
662 | #define wxListItem_ClearAttributes(_swigobj) (_swigobj->ClearAttributes()) | |
663 | static PyObject *_wrap_wxListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
664 | PyObject * _resultobj; | |
665 | wxListItem * _arg0; | |
666 | PyObject * _argo0 = 0; | |
667 | char *_kwnames[] = { "self", NULL }; | |
668 | ||
669 | self = self; | |
670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_ClearAttributes",_kwnames,&_argo0)) | |
671 | return NULL; | |
672 | if (_argo0) { | |
673 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
674 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_ClearAttributes. Expected _wxListItem_p."); | |
676 | return NULL; | |
677 | } | |
678 | } | |
679 | { | |
474c48f9 | 680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 681 | wxListItem_ClearAttributes(_arg0); |
f6bcfd97 | 682 | |
474c48f9 | 683 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 684 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
685 | } Py_INCREF(Py_None); |
686 | _resultobj = Py_None; | |
687 | return _resultobj; | |
688 | } | |
689 | ||
690 | #define wxListItem_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
691 | static PyObject *_wrap_wxListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
692 | PyObject * _resultobj; | |
693 | wxListItem * _arg0; | |
694 | long _arg1; | |
695 | PyObject * _argo0 = 0; | |
696 | char *_kwnames[] = { "self","mask", NULL }; | |
697 | ||
698 | self = self; | |
699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetMask",_kwnames,&_argo0,&_arg1)) | |
700 | return NULL; | |
701 | if (_argo0) { | |
702 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
703 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetMask. Expected _wxListItem_p."); | |
705 | return NULL; | |
706 | } | |
707 | } | |
708 | { | |
474c48f9 | 709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 710 | wxListItem_SetMask(_arg0,_arg1); |
f6bcfd97 | 711 | |
474c48f9 | 712 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 713 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
714 | } Py_INCREF(Py_None); |
715 | _resultobj = Py_None; | |
716 | return _resultobj; | |
717 | } | |
718 | ||
719 | #define wxListItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
720 | static PyObject *_wrap_wxListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
721 | PyObject * _resultobj; | |
722 | wxListItem * _arg0; | |
723 | long _arg1; | |
724 | PyObject * _argo0 = 0; | |
725 | char *_kwnames[] = { "self","id", NULL }; | |
726 | ||
727 | self = self; | |
728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetId",_kwnames,&_argo0,&_arg1)) | |
729 | return NULL; | |
730 | if (_argo0) { | |
731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetId. Expected _wxListItem_p."); | |
734 | return NULL; | |
735 | } | |
736 | } | |
737 | { | |
474c48f9 | 738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 739 | wxListItem_SetId(_arg0,_arg1); |
f6bcfd97 | 740 | |
474c48f9 | 741 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 742 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
743 | } Py_INCREF(Py_None); |
744 | _resultobj = Py_None; | |
745 | return _resultobj; | |
746 | } | |
747 | ||
748 | #define wxListItem_SetColumn(_swigobj,_swigarg0) (_swigobj->SetColumn(_swigarg0)) | |
749 | static PyObject *_wrap_wxListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
750 | PyObject * _resultobj; | |
751 | wxListItem * _arg0; | |
752 | int _arg1; | |
753 | PyObject * _argo0 = 0; | |
754 | char *_kwnames[] = { "self","col", NULL }; | |
755 | ||
756 | self = self; | |
757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetColumn",_kwnames,&_argo0,&_arg1)) | |
758 | return NULL; | |
759 | if (_argo0) { | |
760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetColumn. Expected _wxListItem_p."); | |
763 | return NULL; | |
764 | } | |
765 | } | |
766 | { | |
474c48f9 | 767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 768 | wxListItem_SetColumn(_arg0,_arg1); |
f6bcfd97 | 769 | |
474c48f9 | 770 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 771 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
772 | } Py_INCREF(Py_None); |
773 | _resultobj = Py_None; | |
774 | return _resultobj; | |
775 | } | |
776 | ||
777 | #define wxListItem_SetState(_swigobj,_swigarg0) (_swigobj->SetState(_swigarg0)) | |
778 | static PyObject *_wrap_wxListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
779 | PyObject * _resultobj; | |
780 | wxListItem * _arg0; | |
781 | long _arg1; | |
782 | PyObject * _argo0 = 0; | |
783 | char *_kwnames[] = { "self","state", NULL }; | |
784 | ||
785 | self = self; | |
786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetState",_kwnames,&_argo0,&_arg1)) | |
787 | return NULL; | |
788 | if (_argo0) { | |
789 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
790 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetState. Expected _wxListItem_p."); | |
792 | return NULL; | |
793 | } | |
794 | } | |
795 | { | |
474c48f9 | 796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 797 | wxListItem_SetState(_arg0,_arg1); |
f6bcfd97 | 798 | |
474c48f9 | 799 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 800 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
801 | } Py_INCREF(Py_None); |
802 | _resultobj = Py_None; | |
803 | return _resultobj; | |
804 | } | |
805 | ||
806 | #define wxListItem_SetStateMask(_swigobj,_swigarg0) (_swigobj->SetStateMask(_swigarg0)) | |
807 | static PyObject *_wrap_wxListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
808 | PyObject * _resultobj; | |
809 | wxListItem * _arg0; | |
810 | long _arg1; | |
811 | PyObject * _argo0 = 0; | |
812 | char *_kwnames[] = { "self","stateMask", NULL }; | |
813 | ||
814 | self = self; | |
815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetStateMask",_kwnames,&_argo0,&_arg1)) | |
816 | return NULL; | |
817 | if (_argo0) { | |
818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetStateMask. Expected _wxListItem_p."); | |
821 | return NULL; | |
822 | } | |
823 | } | |
824 | { | |
474c48f9 | 825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 826 | wxListItem_SetStateMask(_arg0,_arg1); |
f6bcfd97 | 827 | |
474c48f9 | 828 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 829 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
830 | } Py_INCREF(Py_None); |
831 | _resultobj = Py_None; | |
832 | return _resultobj; | |
833 | } | |
834 | ||
835 | #define wxListItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
836 | static PyObject *_wrap_wxListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
837 | PyObject * _resultobj; | |
838 | wxListItem * _arg0; | |
839 | wxString * _arg1; | |
840 | PyObject * _argo0 = 0; | |
841 | PyObject * _obj1 = 0; | |
842 | char *_kwnames[] = { "self","text", NULL }; | |
843 | ||
844 | self = self; | |
845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetText",_kwnames,&_argo0,&_obj1)) | |
846 | return NULL; | |
847 | if (_argo0) { | |
848 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
849 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetText. Expected _wxListItem_p."); | |
851 | return NULL; | |
852 | } | |
853 | } | |
854 | { | |
c8bc7bb8 RD |
855 | _arg1 = wxString_in_helper(_obj1); |
856 | if (_arg1 == NULL) | |
f6bcfd97 | 857 | return NULL; |
f6bcfd97 BP |
858 | } |
859 | { | |
474c48f9 | 860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 861 | wxListItem_SetText(_arg0,*_arg1); |
f6bcfd97 | 862 | |
474c48f9 | 863 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 864 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
865 | } Py_INCREF(Py_None); |
866 | _resultobj = Py_None; | |
867 | { | |
868 | if (_obj1) | |
869 | delete _arg1; | |
870 | } | |
871 | return _resultobj; | |
872 | } | |
873 | ||
874 | #define wxListItem_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0)) | |
875 | static PyObject *_wrap_wxListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
876 | PyObject * _resultobj; | |
877 | wxListItem * _arg0; | |
878 | int _arg1; | |
879 | PyObject * _argo0 = 0; | |
880 | char *_kwnames[] = { "self","image", NULL }; | |
881 | ||
882 | self = self; | |
883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetImage",_kwnames,&_argo0,&_arg1)) | |
884 | return NULL; | |
885 | if (_argo0) { | |
886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetImage. Expected _wxListItem_p."); | |
889 | return NULL; | |
890 | } | |
891 | } | |
892 | { | |
474c48f9 | 893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 894 | wxListItem_SetImage(_arg0,_arg1); |
f6bcfd97 | 895 | |
474c48f9 | 896 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 897 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
898 | } Py_INCREF(Py_None); |
899 | _resultobj = Py_None; | |
900 | return _resultobj; | |
901 | } | |
902 | ||
903 | #define wxListItem_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
904 | static PyObject *_wrap_wxListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
905 | PyObject * _resultobj; | |
906 | wxListItem * _arg0; | |
907 | long _arg1; | |
908 | PyObject * _argo0 = 0; | |
909 | char *_kwnames[] = { "self","data", NULL }; | |
910 | ||
911 | self = self; | |
912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetData",_kwnames,&_argo0,&_arg1)) | |
913 | return NULL; | |
914 | if (_argo0) { | |
915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetData. Expected _wxListItem_p."); | |
918 | return NULL; | |
919 | } | |
920 | } | |
921 | { | |
474c48f9 | 922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 923 | wxListItem_SetData(_arg0,_arg1); |
f6bcfd97 | 924 | |
474c48f9 | 925 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 926 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
927 | } Py_INCREF(Py_None); |
928 | _resultobj = Py_None; | |
929 | return _resultobj; | |
930 | } | |
931 | ||
932 | #define wxListItem_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
933 | static PyObject *_wrap_wxListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
934 | PyObject * _resultobj; | |
935 | wxListItem * _arg0; | |
936 | int _arg1; | |
937 | PyObject * _argo0 = 0; | |
938 | char *_kwnames[] = { "self","width", NULL }; | |
939 | ||
940 | self = self; | |
941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetWidth",_kwnames,&_argo0,&_arg1)) | |
942 | return NULL; | |
943 | if (_argo0) { | |
944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetWidth. Expected _wxListItem_p."); | |
947 | return NULL; | |
948 | } | |
949 | } | |
950 | { | |
474c48f9 | 951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 952 | wxListItem_SetWidth(_arg0,_arg1); |
f6bcfd97 | 953 | |
474c48f9 | 954 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 955 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
956 | } Py_INCREF(Py_None); |
957 | _resultobj = Py_None; | |
958 | return _resultobj; | |
959 | } | |
960 | ||
961 | #define wxListItem_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0)) | |
962 | static PyObject *_wrap_wxListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
963 | PyObject * _resultobj; | |
964 | wxListItem * _arg0; | |
965 | wxListColumnFormat _arg1; | |
966 | PyObject * _argo0 = 0; | |
967 | char *_kwnames[] = { "self","align", NULL }; | |
968 | ||
969 | self = self; | |
970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetAlign",_kwnames,&_argo0,&_arg1)) | |
971 | return NULL; | |
972 | if (_argo0) { | |
973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetAlign. Expected _wxListItem_p."); | |
976 | return NULL; | |
977 | } | |
978 | } | |
979 | { | |
474c48f9 | 980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 981 | wxListItem_SetAlign(_arg0,_arg1); |
f6bcfd97 | 982 | |
474c48f9 | 983 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 984 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
985 | } Py_INCREF(Py_None); |
986 | _resultobj = Py_None; | |
987 | return _resultobj; | |
988 | } | |
989 | ||
990 | #define wxListItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
991 | static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
992 | PyObject * _resultobj; | |
993 | wxListItem * _arg0; | |
994 | wxColour * _arg1; | |
995 | PyObject * _argo0 = 0; | |
996 | wxColour temp; | |
997 | PyObject * _obj1 = 0; | |
998 | char *_kwnames[] = { "self","colText", NULL }; | |
999 | ||
1000 | self = self; | |
1001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
1002 | return NULL; | |
1003 | if (_argo0) { | |
1004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetTextColour. Expected _wxListItem_p."); | |
1007 | return NULL; | |
1008 | } | |
1009 | } | |
1010 | { | |
1011 | _arg1 = &temp; | |
1012 | if (! wxColour_helper(_obj1, &_arg1)) | |
1013 | return NULL; | |
1014 | } | |
1015 | { | |
474c48f9 | 1016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1017 | wxListItem_SetTextColour(_arg0,*_arg1); |
f6bcfd97 | 1018 | |
474c48f9 | 1019 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1020 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1021 | } Py_INCREF(Py_None); |
1022 | _resultobj = Py_None; | |
1023 | return _resultobj; | |
1024 | } | |
1025 | ||
1026 | #define wxListItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
1027 | static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1028 | PyObject * _resultobj; | |
1029 | wxListItem * _arg0; | |
1030 | wxColour * _arg1; | |
1031 | PyObject * _argo0 = 0; | |
1032 | wxColour temp; | |
1033 | PyObject * _obj1 = 0; | |
1034 | char *_kwnames[] = { "self","colBack", NULL }; | |
1035 | ||
1036 | self = self; | |
1037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
1038 | return NULL; | |
1039 | if (_argo0) { | |
1040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetBackgroundColour. Expected _wxListItem_p."); | |
1043 | return NULL; | |
1044 | } | |
1045 | } | |
1046 | { | |
1047 | _arg1 = &temp; | |
1048 | if (! wxColour_helper(_obj1, &_arg1)) | |
1049 | return NULL; | |
1050 | } | |
1051 | { | |
474c48f9 | 1052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1053 | wxListItem_SetBackgroundColour(_arg0,*_arg1); |
f6bcfd97 | 1054 | |
474c48f9 | 1055 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1056 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1057 | } Py_INCREF(Py_None); |
1058 | _resultobj = Py_None; | |
1059 | return _resultobj; | |
1060 | } | |
1061 | ||
1062 | #define wxListItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1063 | static PyObject *_wrap_wxListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1064 | PyObject * _resultobj; | |
1065 | wxListItem * _arg0; | |
1066 | wxFont * _arg1; | |
1067 | PyObject * _argo0 = 0; | |
1068 | PyObject * _argo1 = 0; | |
1069 | char *_kwnames[] = { "self","font", NULL }; | |
1070 | ||
1071 | self = self; | |
1072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
1073 | return NULL; | |
1074 | if (_argo0) { | |
1075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetFont. Expected _wxListItem_p."); | |
1078 | return NULL; | |
1079 | } | |
1080 | } | |
1081 | if (_argo1) { | |
1082 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1083 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
1084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetFont. Expected _wxFont_p."); | |
1085 | return NULL; | |
1086 | } | |
1087 | } | |
1088 | { | |
474c48f9 | 1089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1090 | wxListItem_SetFont(_arg0,*_arg1); |
f6bcfd97 | 1091 | |
474c48f9 | 1092 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1093 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1094 | } Py_INCREF(Py_None); |
1095 | _resultobj = Py_None; | |
1096 | return _resultobj; | |
1097 | } | |
1098 | ||
1099 | #define wxListItem_GetMask(_swigobj) (_swigobj->GetMask()) | |
1100 | static PyObject *_wrap_wxListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1101 | PyObject * _resultobj; | |
1102 | long _result; | |
1103 | wxListItem * _arg0; | |
1104 | PyObject * _argo0 = 0; | |
1105 | char *_kwnames[] = { "self", NULL }; | |
1106 | ||
1107 | self = self; | |
1108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetMask",_kwnames,&_argo0)) | |
1109 | return NULL; | |
1110 | if (_argo0) { | |
1111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetMask. Expected _wxListItem_p."); | |
1114 | return NULL; | |
1115 | } | |
1116 | } | |
1117 | { | |
474c48f9 | 1118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1119 | _result = (long )wxListItem_GetMask(_arg0); |
f6bcfd97 | 1120 | |
474c48f9 | 1121 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1122 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1123 | } _resultobj = Py_BuildValue("l",_result); |
1124 | return _resultobj; | |
1125 | } | |
1126 | ||
1127 | #define wxListItem_GetId(_swigobj) (_swigobj->GetId()) | |
1128 | static PyObject *_wrap_wxListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1129 | PyObject * _resultobj; | |
1130 | long _result; | |
1131 | wxListItem * _arg0; | |
1132 | PyObject * _argo0 = 0; | |
1133 | char *_kwnames[] = { "self", NULL }; | |
1134 | ||
1135 | self = self; | |
1136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetId",_kwnames,&_argo0)) | |
1137 | return NULL; | |
1138 | if (_argo0) { | |
1139 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1140 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetId. Expected _wxListItem_p."); | |
1142 | return NULL; | |
1143 | } | |
1144 | } | |
1145 | { | |
474c48f9 | 1146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1147 | _result = (long )wxListItem_GetId(_arg0); |
f6bcfd97 | 1148 | |
474c48f9 | 1149 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1150 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1151 | } _resultobj = Py_BuildValue("l",_result); |
1152 | return _resultobj; | |
1153 | } | |
1154 | ||
1155 | #define wxListItem_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
1156 | static PyObject *_wrap_wxListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1157 | PyObject * _resultobj; | |
1158 | int _result; | |
1159 | wxListItem * _arg0; | |
1160 | PyObject * _argo0 = 0; | |
1161 | char *_kwnames[] = { "self", NULL }; | |
1162 | ||
1163 | self = self; | |
1164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetColumn",_kwnames,&_argo0)) | |
1165 | return NULL; | |
1166 | if (_argo0) { | |
1167 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1168 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetColumn. Expected _wxListItem_p."); | |
1170 | return NULL; | |
1171 | } | |
1172 | } | |
1173 | { | |
474c48f9 | 1174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1175 | _result = (int )wxListItem_GetColumn(_arg0); |
f6bcfd97 | 1176 | |
474c48f9 | 1177 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1178 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1179 | } _resultobj = Py_BuildValue("i",_result); |
1180 | return _resultobj; | |
1181 | } | |
1182 | ||
1183 | #define wxListItem_GetState(_swigobj) (_swigobj->GetState()) | |
1184 | static PyObject *_wrap_wxListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1185 | PyObject * _resultobj; | |
1186 | long _result; | |
1187 | wxListItem * _arg0; | |
1188 | PyObject * _argo0 = 0; | |
1189 | char *_kwnames[] = { "self", NULL }; | |
1190 | ||
1191 | self = self; | |
1192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetState",_kwnames,&_argo0)) | |
1193 | return NULL; | |
1194 | if (_argo0) { | |
1195 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1196 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetState. Expected _wxListItem_p."); | |
1198 | return NULL; | |
1199 | } | |
1200 | } | |
1201 | { | |
474c48f9 | 1202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1203 | _result = (long )wxListItem_GetState(_arg0); |
f6bcfd97 | 1204 | |
474c48f9 | 1205 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1206 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1207 | } _resultobj = Py_BuildValue("l",_result); |
1208 | return _resultobj; | |
1209 | } | |
1210 | ||
1211 | #define wxListItem_GetText(_swigobj) (_swigobj->GetText()) | |
1212 | static PyObject *_wrap_wxListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1213 | PyObject * _resultobj; | |
1214 | wxString * _result; | |
1215 | wxListItem * _arg0; | |
1216 | PyObject * _argo0 = 0; | |
1217 | char *_kwnames[] = { "self", NULL }; | |
1218 | ||
1219 | self = self; | |
1220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetText",_kwnames,&_argo0)) | |
1221 | return NULL; | |
1222 | if (_argo0) { | |
1223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetText. Expected _wxListItem_p."); | |
1226 | return NULL; | |
1227 | } | |
1228 | } | |
1229 | { | |
474c48f9 | 1230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1231 | const wxString & _result_ref = wxListItem_GetText(_arg0); |
f6bcfd97 BP |
1232 | _result = (wxString *) &_result_ref; |
1233 | ||
474c48f9 | 1234 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1235 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1236 | }{ |
c8bc7bb8 RD |
1237 | #if wxUSE_UNICODE |
1238 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1239 | #else | |
f6bcfd97 | 1240 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1241 | #endif |
f6bcfd97 BP |
1242 | } |
1243 | return _resultobj; | |
1244 | } | |
1245 | ||
1246 | #define wxListItem_GetImage(_swigobj) (_swigobj->GetImage()) | |
1247 | static PyObject *_wrap_wxListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1248 | PyObject * _resultobj; | |
1249 | int _result; | |
1250 | wxListItem * _arg0; | |
1251 | PyObject * _argo0 = 0; | |
1252 | char *_kwnames[] = { "self", NULL }; | |
1253 | ||
1254 | self = self; | |
1255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetImage",_kwnames,&_argo0)) | |
1256 | return NULL; | |
1257 | if (_argo0) { | |
1258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetImage. Expected _wxListItem_p."); | |
1261 | return NULL; | |
1262 | } | |
1263 | } | |
1264 | { | |
474c48f9 | 1265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1266 | _result = (int )wxListItem_GetImage(_arg0); |
f6bcfd97 | 1267 | |
474c48f9 | 1268 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1269 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1270 | } _resultobj = Py_BuildValue("i",_result); |
1271 | return _resultobj; | |
1272 | } | |
1273 | ||
1274 | #define wxListItem_GetData(_swigobj) (_swigobj->GetData()) | |
1275 | static PyObject *_wrap_wxListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1276 | PyObject * _resultobj; | |
1277 | long _result; | |
1278 | wxListItem * _arg0; | |
1279 | PyObject * _argo0 = 0; | |
1280 | char *_kwnames[] = { "self", NULL }; | |
1281 | ||
1282 | self = self; | |
1283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetData",_kwnames,&_argo0)) | |
1284 | return NULL; | |
1285 | if (_argo0) { | |
1286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetData. Expected _wxListItem_p."); | |
1289 | return NULL; | |
1290 | } | |
1291 | } | |
1292 | { | |
474c48f9 | 1293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1294 | _result = (long )wxListItem_GetData(_arg0); |
f6bcfd97 | 1295 | |
474c48f9 | 1296 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1297 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1298 | } _resultobj = Py_BuildValue("l",_result); |
1299 | return _resultobj; | |
1300 | } | |
1301 | ||
1302 | #define wxListItem_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1303 | static PyObject *_wrap_wxListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1304 | PyObject * _resultobj; | |
1305 | int _result; | |
1306 | wxListItem * _arg0; | |
1307 | PyObject * _argo0 = 0; | |
1308 | char *_kwnames[] = { "self", NULL }; | |
1309 | ||
1310 | self = self; | |
1311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetWidth",_kwnames,&_argo0)) | |
1312 | return NULL; | |
1313 | if (_argo0) { | |
1314 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1315 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetWidth. Expected _wxListItem_p."); | |
1317 | return NULL; | |
1318 | } | |
1319 | } | |
1320 | { | |
474c48f9 | 1321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1322 | _result = (int )wxListItem_GetWidth(_arg0); |
f6bcfd97 | 1323 | |
474c48f9 | 1324 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1325 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1326 | } _resultobj = Py_BuildValue("i",_result); |
1327 | return _resultobj; | |
1328 | } | |
1329 | ||
1330 | #define wxListItem_GetAlign(_swigobj) (_swigobj->GetAlign()) | |
1331 | static PyObject *_wrap_wxListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1332 | PyObject * _resultobj; | |
1333 | wxListColumnFormat _result; | |
1334 | wxListItem * _arg0; | |
1335 | PyObject * _argo0 = 0; | |
1336 | char *_kwnames[] = { "self", NULL }; | |
1337 | ||
1338 | self = self; | |
1339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAlign",_kwnames,&_argo0)) | |
1340 | return NULL; | |
1341 | if (_argo0) { | |
1342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAlign. Expected _wxListItem_p."); | |
1345 | return NULL; | |
1346 | } | |
1347 | } | |
1348 | { | |
474c48f9 | 1349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1350 | _result = (wxListColumnFormat )wxListItem_GetAlign(_arg0); |
f6bcfd97 | 1351 | |
474c48f9 | 1352 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1353 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1354 | } _resultobj = Py_BuildValue("i",_result); |
1355 | return _resultobj; | |
1356 | } | |
1357 | ||
1358 | #define wxListItem_GetAttributes(_swigobj) (_swigobj->GetAttributes()) | |
1359 | static PyObject *_wrap_wxListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1360 | PyObject * _resultobj; | |
1361 | wxListItemAttr * _result; | |
1362 | wxListItem * _arg0; | |
1363 | PyObject * _argo0 = 0; | |
1364 | char *_kwnames[] = { "self", NULL }; | |
1365 | char _ptemp[128]; | |
1366 | ||
1367 | self = self; | |
1368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAttributes",_kwnames,&_argo0)) | |
1369 | return NULL; | |
1370 | if (_argo0) { | |
1371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAttributes. Expected _wxListItem_p."); | |
1374 | return NULL; | |
1375 | } | |
1376 | } | |
1377 | { | |
474c48f9 | 1378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1379 | _result = (wxListItemAttr *)wxListItem_GetAttributes(_arg0); |
f6bcfd97 | 1380 | |
474c48f9 | 1381 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1382 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1383 | } if (_result) { |
1384 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
1385 | _resultobj = Py_BuildValue("s",_ptemp); | |
1386 | } else { | |
1387 | Py_INCREF(Py_None); | |
1388 | _resultobj = Py_None; | |
1389 | } | |
1390 | return _resultobj; | |
1391 | } | |
1392 | ||
1393 | #define wxListItem_HasAttributes(_swigobj) (_swigobj->HasAttributes()) | |
1394 | static PyObject *_wrap_wxListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1395 | PyObject * _resultobj; | |
1396 | bool _result; | |
1397 | wxListItem * _arg0; | |
1398 | PyObject * _argo0 = 0; | |
1399 | char *_kwnames[] = { "self", NULL }; | |
1400 | ||
1401 | self = self; | |
1402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_HasAttributes",_kwnames,&_argo0)) | |
1403 | return NULL; | |
1404 | if (_argo0) { | |
1405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_HasAttributes. Expected _wxListItem_p."); | |
1408 | return NULL; | |
1409 | } | |
1410 | } | |
1411 | { | |
474c48f9 | 1412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1413 | _result = (bool )wxListItem_HasAttributes(_arg0); |
f6bcfd97 | 1414 | |
474c48f9 | 1415 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1416 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1417 | } _resultobj = Py_BuildValue("i",_result); |
1418 | return _resultobj; | |
1419 | } | |
1420 | ||
1421 | #define wxListItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
1422 | static PyObject *_wrap_wxListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1423 | PyObject * _resultobj; | |
1424 | wxColour * _result; | |
1425 | wxListItem * _arg0; | |
1426 | PyObject * _argo0 = 0; | |
1427 | char *_kwnames[] = { "self", NULL }; | |
1428 | char _ptemp[128]; | |
1429 | ||
1430 | self = self; | |
1431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetTextColour",_kwnames,&_argo0)) | |
1432 | return NULL; | |
1433 | if (_argo0) { | |
1434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetTextColour. Expected _wxListItem_p."); | |
1437 | return NULL; | |
1438 | } | |
1439 | } | |
1440 | { | |
474c48f9 | 1441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1442 | _result = new wxColour (wxListItem_GetTextColour(_arg0)); |
f6bcfd97 | 1443 | |
474c48f9 | 1444 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1445 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1446 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1447 | _resultobj = Py_BuildValue("s",_ptemp); | |
1448 | return _resultobj; | |
1449 | } | |
1450 | ||
1451 | #define wxListItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1452 | static PyObject *_wrap_wxListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1453 | PyObject * _resultobj; | |
1454 | wxColour * _result; | |
1455 | wxListItem * _arg0; | |
1456 | PyObject * _argo0 = 0; | |
1457 | char *_kwnames[] = { "self", NULL }; | |
1458 | char _ptemp[128]; | |
1459 | ||
1460 | self = self; | |
1461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetBackgroundColour",_kwnames,&_argo0)) | |
1462 | return NULL; | |
1463 | if (_argo0) { | |
1464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetBackgroundColour. Expected _wxListItem_p."); | |
1467 | return NULL; | |
1468 | } | |
1469 | } | |
1470 | { | |
474c48f9 | 1471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1472 | _result = new wxColour (wxListItem_GetBackgroundColour(_arg0)); |
f6bcfd97 | 1473 | |
474c48f9 | 1474 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1475 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1476 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1477 | _resultobj = Py_BuildValue("s",_ptemp); | |
1478 | return _resultobj; | |
1479 | } | |
1480 | ||
1481 | #define wxListItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
1482 | static PyObject *_wrap_wxListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1483 | PyObject * _resultobj; | |
1484 | wxFont * _result; | |
1485 | wxListItem * _arg0; | |
1486 | PyObject * _argo0 = 0; | |
1487 | char *_kwnames[] = { "self", NULL }; | |
1488 | char _ptemp[128]; | |
1489 | ||
1490 | self = self; | |
1491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetFont",_kwnames,&_argo0)) | |
1492 | return NULL; | |
1493 | if (_argo0) { | |
1494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetFont. Expected _wxListItem_p."); | |
1497 | return NULL; | |
1498 | } | |
1499 | } | |
1500 | { | |
474c48f9 | 1501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1502 | _result = new wxFont (wxListItem_GetFont(_arg0)); |
f6bcfd97 | 1503 | |
474c48f9 | 1504 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1505 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1506 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
1507 | _resultobj = Py_BuildValue("s",_ptemp); | |
1508 | return _resultobj; | |
1509 | } | |
1510 | ||
1511 | #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval) | |
1512 | static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1513 | PyObject * _resultobj; | |
1514 | long _result; | |
1515 | wxListItem * _arg0; | |
1516 | long _arg1; | |
1517 | PyObject * _argo0 = 0; | |
1518 | char *_kwnames[] = { "self","m_mask", NULL }; | |
1519 | ||
1520 | self = self; | |
1521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1)) | |
1522 | return NULL; | |
1523 | if (_argo0) { | |
1524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p."); | |
1527 | return NULL; | |
1528 | } | |
1529 | } | |
1530 | { | |
474c48f9 | 1531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1532 | _result = (long )wxListItem_m_mask_set(_arg0,_arg1); |
f6bcfd97 | 1533 | |
474c48f9 | 1534 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1535 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1536 | } _resultobj = Py_BuildValue("l",_result); |
1537 | return _resultobj; | |
1538 | } | |
1539 | ||
1540 | #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask) | |
1541 | static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1542 | PyObject * _resultobj; | |
1543 | long _result; | |
1544 | wxListItem * _arg0; | |
1545 | PyObject * _argo0 = 0; | |
1546 | char *_kwnames[] = { "self", NULL }; | |
1547 | ||
1548 | self = self; | |
1549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0)) | |
1550 | return NULL; | |
1551 | if (_argo0) { | |
1552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p."); | |
1555 | return NULL; | |
1556 | } | |
1557 | } | |
1558 | { | |
474c48f9 | 1559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1560 | _result = (long )wxListItem_m_mask_get(_arg0); |
f6bcfd97 | 1561 | |
474c48f9 | 1562 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1563 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1564 | } _resultobj = Py_BuildValue("l",_result); |
1565 | return _resultobj; | |
1566 | } | |
1567 | ||
1568 | #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval) | |
1569 | static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
1570 | PyObject * _resultobj; |
1571 | long _result; | |
1572 | wxListItem * _arg0; | |
1573 | long _arg1; | |
1d99702e | 1574 | PyObject * _argo0 = 0; |
f6bcfd97 | 1575 | char *_kwnames[] = { "self","m_itemId", NULL }; |
af309447 RD |
1576 | |
1577 | self = self; | |
f6bcfd97 | 1578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1579 | return NULL; |
1d99702e RD |
1580 | if (_argo0) { |
1581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p."); |
af309447 RD |
1584 | return NULL; |
1585 | } | |
1586 | } | |
cf694132 | 1587 | { |
474c48f9 | 1588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1589 | _result = (long )wxListItem_m_itemId_set(_arg0,_arg1); |
f6bcfd97 | 1590 | |
474c48f9 | 1591 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1592 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1593 | } _resultobj = Py_BuildValue("l",_result); |
1594 | return _resultobj; | |
1595 | } | |
1596 | ||
1597 | #define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId) | |
1598 | static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1599 | PyObject * _resultobj; | |
1600 | long _result; | |
1601 | wxListItem * _arg0; | |
1602 | PyObject * _argo0 = 0; | |
1603 | char *_kwnames[] = { "self", NULL }; | |
1604 | ||
1605 | self = self; | |
1606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0)) | |
1607 | return NULL; | |
1608 | if (_argo0) { | |
1609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p."); | |
1612 | return NULL; | |
1613 | } | |
1614 | } | |
1615 | { | |
474c48f9 | 1616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1617 | _result = (long )wxListItem_m_itemId_get(_arg0); |
f6bcfd97 | 1618 | |
474c48f9 | 1619 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1620 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1621 | } _resultobj = Py_BuildValue("l",_result); |
1622 | return _resultobj; | |
1623 | } | |
1624 | ||
1625 | #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
1626 | static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1627 | PyObject * _resultobj; | |
1628 | int _result; | |
1629 | wxListItem * _arg0; | |
1630 | int _arg1; | |
1631 | PyObject * _argo0 = 0; | |
1632 | char *_kwnames[] = { "self","m_col", NULL }; | |
1633 | ||
1634 | self = self; | |
1635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1)) | |
1636 | return NULL; | |
1637 | if (_argo0) { | |
1638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p."); | |
1641 | return NULL; | |
1642 | } | |
1643 | } | |
1644 | { | |
474c48f9 | 1645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1646 | _result = (int )wxListItem_m_col_set(_arg0,_arg1); |
f6bcfd97 | 1647 | |
474c48f9 | 1648 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1649 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1650 | } _resultobj = Py_BuildValue("i",_result); |
1651 | return _resultobj; | |
1652 | } | |
1653 | ||
1654 | #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
1655 | static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1656 | PyObject * _resultobj; | |
1657 | int _result; | |
1658 | wxListItem * _arg0; | |
1659 | PyObject * _argo0 = 0; | |
1660 | char *_kwnames[] = { "self", NULL }; | |
1661 | ||
1662 | self = self; | |
1663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0)) | |
1664 | return NULL; | |
1665 | if (_argo0) { | |
1666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p."); | |
1669 | return NULL; | |
1670 | } | |
1671 | } | |
1672 | { | |
474c48f9 | 1673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1674 | _result = (int )wxListItem_m_col_get(_arg0); |
f6bcfd97 | 1675 | |
474c48f9 | 1676 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1677 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1678 | } _resultobj = Py_BuildValue("i",_result); |
1679 | return _resultobj; | |
1680 | } | |
1681 | ||
1682 | #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval) | |
1683 | static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1684 | PyObject * _resultobj; | |
1685 | long _result; | |
1686 | wxListItem * _arg0; | |
1687 | long _arg1; | |
1688 | PyObject * _argo0 = 0; | |
1689 | char *_kwnames[] = { "self","m_state", NULL }; | |
1690 | ||
1691 | self = self; | |
1692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1)) | |
1693 | return NULL; | |
1694 | if (_argo0) { | |
1695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p."); | |
1698 | return NULL; | |
1699 | } | |
1700 | } | |
1701 | { | |
474c48f9 | 1702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1703 | _result = (long )wxListItem_m_state_set(_arg0,_arg1); |
f6bcfd97 | 1704 | |
474c48f9 | 1705 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1706 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1707 | } _resultobj = Py_BuildValue("l",_result); |
1708 | return _resultobj; | |
1709 | } | |
1710 | ||
1711 | #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state) | |
1712 | static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1713 | PyObject * _resultobj; | |
1714 | long _result; | |
1715 | wxListItem * _arg0; | |
1716 | PyObject * _argo0 = 0; | |
1717 | char *_kwnames[] = { "self", NULL }; | |
1718 | ||
1719 | self = self; | |
1720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0)) | |
1721 | return NULL; | |
1722 | if (_argo0) { | |
1723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p."); | |
1726 | return NULL; | |
1727 | } | |
1728 | } | |
1729 | { | |
474c48f9 | 1730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1731 | _result = (long )wxListItem_m_state_get(_arg0); |
f6bcfd97 | 1732 | |
474c48f9 | 1733 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1734 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1735 | } _resultobj = Py_BuildValue("l",_result); |
1736 | return _resultobj; | |
1737 | } | |
1738 | ||
1739 | #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval) | |
1740 | static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1741 | PyObject * _resultobj; | |
1742 | long _result; | |
1743 | wxListItem * _arg0; | |
1744 | long _arg1; | |
1745 | PyObject * _argo0 = 0; | |
1746 | char *_kwnames[] = { "self","m_stateMask", NULL }; | |
1747 | ||
1748 | self = self; | |
1749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1)) | |
1750 | return NULL; | |
1751 | if (_argo0) { | |
1752 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1753 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p."); | |
1755 | return NULL; | |
1756 | } | |
1757 | } | |
1758 | { | |
474c48f9 | 1759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1760 | _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1); |
f6bcfd97 | 1761 | |
474c48f9 | 1762 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1763 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1764 | } _resultobj = Py_BuildValue("l",_result); |
1765 | return _resultobj; | |
1766 | } | |
1767 | ||
1768 | #define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask) | |
1769 | static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1770 | PyObject * _resultobj; | |
1771 | long _result; | |
1772 | wxListItem * _arg0; | |
1773 | PyObject * _argo0 = 0; | |
1774 | char *_kwnames[] = { "self", NULL }; | |
1775 | ||
1776 | self = self; | |
1777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0)) | |
1778 | return NULL; | |
1779 | if (_argo0) { | |
1780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p."); | |
1783 | return NULL; | |
1784 | } | |
1785 | } | |
1786 | { | |
474c48f9 | 1787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1788 | _result = (long )wxListItem_m_stateMask_get(_arg0); |
cf694132 | 1789 | |
474c48f9 | 1790 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1791 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1792 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
1793 | return _resultobj; |
1794 | } | |
1795 | ||
f6bcfd97 BP |
1796 | #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval) |
1797 | static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1798 | PyObject * _resultobj; | |
1799 | wxString * _result; | |
1800 | wxListItem * _arg0; | |
1801 | wxString * _arg1; | |
1802 | PyObject * _argo0 = 0; | |
1803 | PyObject * _obj1 = 0; | |
1804 | char *_kwnames[] = { "self","m_text", NULL }; | |
1805 | ||
1806 | self = self; | |
1807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1)) | |
1808 | return NULL; | |
1809 | if (_argo0) { | |
1810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p."); | |
1813 | return NULL; | |
1814 | } | |
1815 | } | |
1816 | { | |
c8bc7bb8 RD |
1817 | _arg1 = wxString_in_helper(_obj1); |
1818 | if (_arg1 == NULL) | |
f6bcfd97 | 1819 | return NULL; |
f6bcfd97 BP |
1820 | } |
1821 | { | |
474c48f9 | 1822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1823 | _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1); |
f6bcfd97 | 1824 | |
474c48f9 | 1825 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1826 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1827 | }{ |
c8bc7bb8 RD |
1828 | #if wxUSE_UNICODE |
1829 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1830 | #else | |
f6bcfd97 | 1831 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1832 | #endif |
f6bcfd97 BP |
1833 | } |
1834 | { | |
1835 | if (_obj1) | |
1836 | delete _arg1; | |
1837 | } | |
1838 | return _resultobj; | |
1839 | } | |
1840 | ||
1841 | #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text) | |
1842 | static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1843 | PyObject * _resultobj; |
f6bcfd97 | 1844 | wxString * _result; |
8ab979d7 | 1845 | wxListItem * _arg0; |
1d99702e | 1846 | PyObject * _argo0 = 0; |
efc5f224 | 1847 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1848 | |
1849 | self = self; | |
f6bcfd97 | 1850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0)) |
8ab979d7 | 1851 | return NULL; |
1d99702e RD |
1852 | if (_argo0) { |
1853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1856 | return NULL; |
1857 | } | |
1858 | } | |
cf694132 | 1859 | { |
474c48f9 | 1860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1861 | _result = (wxString *)wxListItem_m_text_get(_arg0); |
cf694132 | 1862 | |
474c48f9 | 1863 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1864 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1865 | }{ |
c8bc7bb8 RD |
1866 | #if wxUSE_UNICODE |
1867 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1868 | #else | |
f6bcfd97 | 1869 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1870 | #endif |
f6bcfd97 | 1871 | } |
8ab979d7 RD |
1872 | return _resultobj; |
1873 | } | |
1874 | ||
f6bcfd97 BP |
1875 | #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval) |
1876 | static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1877 | PyObject * _resultobj; |
f6bcfd97 | 1878 | int _result; |
af309447 | 1879 | wxListItem * _arg0; |
f6bcfd97 | 1880 | int _arg1; |
1d99702e | 1881 | PyObject * _argo0 = 0; |
f6bcfd97 | 1882 | char *_kwnames[] = { "self","m_image", NULL }; |
af309447 RD |
1883 | |
1884 | self = self; | |
f6bcfd97 | 1885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1886 | return NULL; |
1d99702e RD |
1887 | if (_argo0) { |
1888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p."); |
af309447 RD |
1891 | return NULL; |
1892 | } | |
1893 | } | |
cf694132 | 1894 | { |
474c48f9 | 1895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1896 | _result = (int )wxListItem_m_image_set(_arg0,_arg1); |
cf694132 | 1897 | |
474c48f9 | 1898 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1899 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1900 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
1901 | return _resultobj; |
1902 | } | |
1903 | ||
f6bcfd97 BP |
1904 | #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image) |
1905 | static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1906 | PyObject * _resultobj; |
f6bcfd97 | 1907 | int _result; |
8ab979d7 | 1908 | wxListItem * _arg0; |
1d99702e | 1909 | PyObject * _argo0 = 0; |
efc5f224 | 1910 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1911 | |
1912 | self = self; | |
f6bcfd97 | 1913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0)) |
8ab979d7 | 1914 | return NULL; |
1d99702e RD |
1915 | if (_argo0) { |
1916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1919 | return NULL; |
1920 | } | |
1921 | } | |
cf694132 | 1922 | { |
474c48f9 | 1923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1924 | _result = (int )wxListItem_m_image_get(_arg0); |
cf694132 | 1925 | |
474c48f9 | 1926 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1927 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1928 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1929 | return _resultobj; |
1930 | } | |
1931 | ||
f6bcfd97 BP |
1932 | #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval) |
1933 | static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1934 | PyObject * _resultobj; |
f6bcfd97 | 1935 | long _result; |
af309447 | 1936 | wxListItem * _arg0; |
f6bcfd97 | 1937 | long _arg1; |
1d99702e | 1938 | PyObject * _argo0 = 0; |
f6bcfd97 | 1939 | char *_kwnames[] = { "self","m_data", NULL }; |
af309447 RD |
1940 | |
1941 | self = self; | |
f6bcfd97 | 1942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1943 | return NULL; |
1d99702e RD |
1944 | if (_argo0) { |
1945 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1946 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p."); |
af309447 RD |
1948 | return NULL; |
1949 | } | |
1950 | } | |
cf694132 | 1951 | { |
474c48f9 | 1952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1953 | _result = (long )wxListItem_m_data_set(_arg0,_arg1); |
cf694132 | 1954 | |
474c48f9 | 1955 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1956 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1957 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
1958 | return _resultobj; |
1959 | } | |
1960 | ||
f6bcfd97 BP |
1961 | #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data) |
1962 | static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1963 | PyObject * _resultobj; |
f6bcfd97 | 1964 | long _result; |
8ab979d7 | 1965 | wxListItem * _arg0; |
1d99702e | 1966 | PyObject * _argo0 = 0; |
efc5f224 | 1967 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1968 | |
1969 | self = self; | |
f6bcfd97 | 1970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0)) |
8ab979d7 | 1971 | return NULL; |
1d99702e RD |
1972 | if (_argo0) { |
1973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1976 | return NULL; |
1977 | } | |
1978 | } | |
cf694132 | 1979 | { |
474c48f9 | 1980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1981 | _result = (long )wxListItem_m_data_get(_arg0); |
cf694132 | 1982 | |
474c48f9 | 1983 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1984 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1985 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
1986 | return _resultobj; |
1987 | } | |
1988 | ||
f6bcfd97 BP |
1989 | #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval) |
1990 | static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1991 | PyObject * _resultobj; |
f6bcfd97 | 1992 | int _result; |
af309447 | 1993 | wxListItem * _arg0; |
f6bcfd97 | 1994 | int _arg1; |
1d99702e | 1995 | PyObject * _argo0 = 0; |
f6bcfd97 | 1996 | char *_kwnames[] = { "self","m_format", NULL }; |
af309447 RD |
1997 | |
1998 | self = self; | |
f6bcfd97 | 1999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2000 | return NULL; |
1d99702e RD |
2001 | if (_argo0) { |
2002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p."); |
af309447 RD |
2005 | return NULL; |
2006 | } | |
2007 | } | |
cf694132 | 2008 | { |
474c48f9 | 2009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2010 | _result = (int )wxListItem_m_format_set(_arg0,_arg1); |
cf694132 | 2011 | |
474c48f9 | 2012 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2013 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2014 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2015 | return _resultobj; |
2016 | } | |
2017 | ||
f6bcfd97 BP |
2018 | #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format) |
2019 | static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2020 | PyObject * _resultobj; |
f6bcfd97 | 2021 | int _result; |
8ab979d7 | 2022 | wxListItem * _arg0; |
1d99702e | 2023 | PyObject * _argo0 = 0; |
efc5f224 | 2024 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2025 | |
2026 | self = self; | |
f6bcfd97 | 2027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0)) |
8ab979d7 | 2028 | return NULL; |
1d99702e RD |
2029 | if (_argo0) { |
2030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p."); |
8ab979d7 RD |
2033 | return NULL; |
2034 | } | |
2035 | } | |
cf694132 | 2036 | { |
474c48f9 | 2037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2038 | _result = (int )wxListItem_m_format_get(_arg0); |
cf694132 | 2039 | |
474c48f9 | 2040 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2041 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2042 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2043 | return _resultobj; |
2044 | } | |
2045 | ||
f6bcfd97 BP |
2046 | #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval) |
2047 | static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2048 | PyObject * _resultobj; |
f6bcfd97 | 2049 | int _result; |
af309447 | 2050 | wxListItem * _arg0; |
f6bcfd97 | 2051 | int _arg1; |
1d99702e | 2052 | PyObject * _argo0 = 0; |
f6bcfd97 | 2053 | char *_kwnames[] = { "self","m_width", NULL }; |
af309447 RD |
2054 | |
2055 | self = self; | |
f6bcfd97 | 2056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2057 | return NULL; |
1d99702e RD |
2058 | if (_argo0) { |
2059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p."); |
af309447 RD |
2062 | return NULL; |
2063 | } | |
2064 | } | |
cf694132 | 2065 | { |
474c48f9 | 2066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2067 | _result = (int )wxListItem_m_width_set(_arg0,_arg1); |
cf694132 | 2068 | |
474c48f9 | 2069 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2070 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2071 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2072 | return _resultobj; |
2073 | } | |
2074 | ||
f6bcfd97 BP |
2075 | #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width) |
2076 | static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2077 | PyObject * _resultobj; |
f6bcfd97 | 2078 | int _result; |
8ab979d7 | 2079 | wxListItem * _arg0; |
1d99702e | 2080 | PyObject * _argo0 = 0; |
efc5f224 | 2081 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2082 | |
2083 | self = self; | |
f6bcfd97 | 2084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0)) |
8ab979d7 | 2085 | return NULL; |
1d99702e RD |
2086 | if (_argo0) { |
2087 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2088 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p."); |
8ab979d7 RD |
2090 | return NULL; |
2091 | } | |
2092 | } | |
cf694132 | 2093 | { |
474c48f9 | 2094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2095 | _result = (int )wxListItem_m_width_get(_arg0); |
cf694132 | 2096 | |
474c48f9 | 2097 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2098 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2099 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2100 | return _resultobj; |
2101 | } | |
2102 | ||
c368d904 RD |
2103 | static void *SwigwxListEventTowxNotifyEvent(void *ptr) { |
2104 | wxListEvent *src; | |
2105 | wxNotifyEvent *dest; | |
2106 | src = (wxListEvent *) ptr; | |
2107 | dest = (wxNotifyEvent *) src; | |
2108 | return (void *) dest; | |
2109 | } | |
2110 | ||
f6bcfd97 BP |
2111 | static void *SwigwxListEventTowxCommandEvent(void *ptr) { |
2112 | wxListEvent *src; | |
2113 | wxCommandEvent *dest; | |
2114 | src = (wxListEvent *) ptr; | |
2115 | dest = (wxCommandEvent *) src; | |
2116 | return (void *) dest; | |
2117 | } | |
2118 | ||
2119 | static void *SwigwxListEventTowxEvent(void *ptr) { | |
2120 | wxListEvent *src; | |
2121 | wxEvent *dest; | |
2122 | src = (wxListEvent *) ptr; | |
2123 | dest = (wxEvent *) src; | |
2124 | return (void *) dest; | |
2125 | } | |
2126 | ||
9df61a29 RD |
2127 | static void *SwigwxListEventTowxObject(void *ptr) { |
2128 | wxListEvent *src; | |
2129 | wxObject *dest; | |
2130 | src = (wxListEvent *) ptr; | |
2131 | dest = (wxObject *) src; | |
2132 | return (void *) dest; | |
2133 | } | |
2134 | ||
059a841c RD |
2135 | #define new_wxListEvent(_swigarg0,_swigarg1) (new wxListEvent(_swigarg0,_swigarg1)) |
2136 | static PyObject *_wrap_new_wxListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2137 | PyObject * _resultobj; | |
2138 | wxListEvent * _result; | |
2139 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
2140 | int _arg1 = (int ) 0; | |
2141 | char *_kwnames[] = { "commandType","id", NULL }; | |
2142 | char _ptemp[128]; | |
2143 | ||
2144 | self = self; | |
2145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxListEvent",_kwnames,&_arg0,&_arg1)) | |
2146 | return NULL; | |
2147 | { | |
474c48f9 | 2148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2149 | _result = (wxListEvent *)new_wxListEvent(_arg0,_arg1); |
059a841c | 2150 | |
474c48f9 | 2151 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
2152 | if (PyErr_Occurred()) return NULL; |
2153 | } if (_result) { | |
2154 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListEvent_p"); | |
2155 | _resultobj = Py_BuildValue("s",_ptemp); | |
2156 | } else { | |
2157 | Py_INCREF(Py_None); | |
2158 | _resultobj = Py_None; | |
2159 | } | |
2160 | return _resultobj; | |
2161 | } | |
2162 | ||
f6bcfd97 BP |
2163 | #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code) |
2164 | static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2165 | PyObject * _resultobj; |
f6bcfd97 BP |
2166 | int _result; |
2167 | wxListEvent * _arg0; | |
1d99702e | 2168 | PyObject * _argo0 = 0; |
efc5f224 | 2169 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2170 | |
2171 | self = self; | |
f6bcfd97 | 2172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0)) |
8ab979d7 | 2173 | return NULL; |
1d99702e RD |
2174 | if (_argo0) { |
2175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2178 | return NULL; |
2179 | } | |
2180 | } | |
8ab979d7 | 2181 | { |
474c48f9 | 2182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2183 | _result = (int )wxListEvent_m_code_get(_arg0); |
cf694132 | 2184 | |
474c48f9 | 2185 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2186 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2187 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2188 | return _resultobj; |
2189 | } | |
2190 | ||
6e8a778a RD |
2191 | #define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex) |
2192 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2193 | PyObject * _resultobj; |
f6bcfd97 BP |
2194 | long _result; |
2195 | wxListEvent * _arg0; | |
1d99702e | 2196 | PyObject * _argo0 = 0; |
efc5f224 | 2197 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2198 | |
2199 | self = self; | |
6e8a778a | 2200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0)) |
8ab979d7 | 2201 | return NULL; |
1d99702e RD |
2202 | if (_argo0) { |
2203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p."); |
8ab979d7 RD |
2206 | return NULL; |
2207 | } | |
2208 | } | |
cf694132 | 2209 | { |
474c48f9 | 2210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2211 | _result = (long )wxListEvent_m_oldItemIndex_get(_arg0); |
cf694132 | 2212 | |
474c48f9 | 2213 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2214 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2215 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2216 | return _resultobj; |
2217 | } | |
2218 | ||
6e8a778a RD |
2219 | #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex) |
2220 | static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2221 | PyObject * _resultobj; |
6e8a778a | 2222 | long _result; |
f6bcfd97 | 2223 | wxListEvent * _arg0; |
1d99702e | 2224 | PyObject * _argo0 = 0; |
efc5f224 | 2225 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2226 | |
2227 | self = self; | |
6e8a778a | 2228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0)) |
8ab979d7 | 2229 | return NULL; |
1d99702e RD |
2230 | if (_argo0) { |
2231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p."); |
8ab979d7 RD |
2234 | return NULL; |
2235 | } | |
2236 | } | |
cf694132 | 2237 | { |
474c48f9 | 2238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2239 | _result = (long )wxListEvent_m_itemIndex_get(_arg0); |
cf694132 | 2240 | |
474c48f9 | 2241 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2242 | if (PyErr_Occurred()) return NULL; |
6e8a778a | 2243 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2244 | return _resultobj; |
2245 | } | |
2246 | ||
6e8a778a RD |
2247 | #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col) |
2248 | static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2249 | PyObject * _resultobj; |
6e8a778a | 2250 | int _result; |
f6bcfd97 | 2251 | wxListEvent * _arg0; |
1d99702e | 2252 | PyObject * _argo0 = 0; |
efc5f224 | 2253 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2254 | |
2255 | self = self; | |
6e8a778a | 2256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0)) |
8ab979d7 | 2257 | return NULL; |
1d99702e RD |
2258 | if (_argo0) { |
2259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p."); |
8ab979d7 RD |
2262 | return NULL; |
2263 | } | |
2264 | } | |
cf694132 | 2265 | { |
474c48f9 | 2266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2267 | _result = (int )wxListEvent_m_col_get(_arg0); |
cf694132 | 2268 | |
474c48f9 | 2269 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2270 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2271 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2272 | return _resultobj; |
2273 | } | |
2274 | ||
f6bcfd97 BP |
2275 | #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag) |
2276 | static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2277 | PyObject * _resultobj; |
f6bcfd97 BP |
2278 | wxPoint * _result; |
2279 | wxListEvent * _arg0; | |
1d99702e | 2280 | PyObject * _argo0 = 0; |
efc5f224 | 2281 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2282 | char _ptemp[128]; |
8ab979d7 RD |
2283 | |
2284 | self = self; | |
f6bcfd97 | 2285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0)) |
8ab979d7 | 2286 | return NULL; |
1d99702e RD |
2287 | if (_argo0) { |
2288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2291 | return NULL; |
2292 | } | |
2293 | } | |
cf694132 | 2294 | { |
474c48f9 | 2295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2296 | _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0); |
cf694132 | 2297 | |
474c48f9 | 2298 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2299 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2300 | } if (_result) { |
2301 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
2302 | _resultobj = Py_BuildValue("s",_ptemp); | |
2303 | } else { | |
2304 | Py_INCREF(Py_None); | |
2305 | _resultobj = Py_None; | |
2306 | } | |
8ab979d7 RD |
2307 | return _resultobj; |
2308 | } | |
2309 | ||
f6bcfd97 BP |
2310 | #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item) |
2311 | static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2312 | PyObject * _resultobj; |
f6bcfd97 | 2313 | wxListItem * _result; |
af309447 | 2314 | wxListEvent * _arg0; |
1d99702e | 2315 | PyObject * _argo0 = 0; |
f6bcfd97 | 2316 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2317 | |
2318 | self = self; | |
f6bcfd97 | 2319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0)) |
af309447 | 2320 | return NULL; |
1d99702e RD |
2321 | if (_argo0) { |
2322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p."); |
af309447 RD |
2325 | return NULL; |
2326 | } | |
2327 | } | |
cf694132 | 2328 | { |
474c48f9 | 2329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2330 | _result = (wxListItem *)wxListEvent_m_item_get(_arg0); |
cf694132 | 2331 | |
474c48f9 | 2332 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2333 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2334 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
2335 | return _resultobj; |
2336 | } | |
2337 | ||
d99400b2 RD |
2338 | #define wxListEvent_GetKeyCode(_swigobj) (_swigobj->GetKeyCode()) |
2339 | static PyObject *_wrap_wxListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2340 | PyObject * _resultobj; |
2341 | int _result; | |
2342 | wxListEvent * _arg0; | |
1d99702e | 2343 | PyObject * _argo0 = 0; |
efc5f224 | 2344 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2345 | |
2346 | self = self; | |
d99400b2 | 2347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetKeyCode",_kwnames,&_argo0)) |
8ab979d7 | 2348 | return NULL; |
1d99702e RD |
2349 | if (_argo0) { |
2350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
d99400b2 | 2352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetKeyCode. Expected _wxListEvent_p."); |
8ab979d7 RD |
2353 | return NULL; |
2354 | } | |
2355 | } | |
cf694132 | 2356 | { |
474c48f9 | 2357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d99400b2 | 2358 | _result = (int )wxListEvent_GetKeyCode(_arg0); |
cf694132 | 2359 | |
474c48f9 | 2360 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2361 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2362 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2363 | return _resultobj; |
2364 | } | |
2365 | ||
f6bcfd97 BP |
2366 | #define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex()) |
2367 | static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2368 | PyObject * _resultobj; |
2369 | long _result; | |
2370 | wxListEvent * _arg0; | |
1d99702e | 2371 | PyObject * _argo0 = 0; |
f6bcfd97 | 2372 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2373 | |
2374 | self = self; | |
f6bcfd97 | 2375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0)) |
af309447 | 2376 | return NULL; |
1d99702e RD |
2377 | if (_argo0) { |
2378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p."); |
af309447 RD |
2381 | return NULL; |
2382 | } | |
2383 | } | |
cf694132 | 2384 | { |
474c48f9 | 2385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2386 | _result = (long )wxListEvent_GetIndex(_arg0); |
cf694132 | 2387 | |
474c48f9 | 2388 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2389 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2390 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2391 | return _resultobj; |
2392 | } | |
2393 | ||
f6bcfd97 BP |
2394 | #define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn()) |
2395 | static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2396 | PyObject * _resultobj; |
f6bcfd97 | 2397 | int _result; |
8ab979d7 | 2398 | wxListEvent * _arg0; |
1d99702e | 2399 | PyObject * _argo0 = 0; |
efc5f224 | 2400 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2401 | |
2402 | self = self; | |
f6bcfd97 | 2403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0)) |
8ab979d7 | 2404 | return NULL; |
1d99702e RD |
2405 | if (_argo0) { |
2406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p."); |
8ab979d7 RD |
2409 | return NULL; |
2410 | } | |
2411 | } | |
cf694132 | 2412 | { |
474c48f9 | 2413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2414 | _result = (int )wxListEvent_GetColumn(_arg0); |
cf694132 | 2415 | |
474c48f9 | 2416 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2417 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2418 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2419 | return _resultobj; |
2420 | } | |
2421 | ||
f6bcfd97 BP |
2422 | #define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
2423 | static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2424 | PyObject * _resultobj; |
f6bcfd97 | 2425 | wxPoint * _result; |
8ab979d7 | 2426 | wxListEvent * _arg0; |
1d99702e | 2427 | PyObject * _argo0 = 0; |
efc5f224 | 2428 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2429 | char _ptemp[128]; |
8ab979d7 RD |
2430 | |
2431 | self = self; | |
f6bcfd97 | 2432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 2433 | return NULL; |
1d99702e RD |
2434 | if (_argo0) { |
2435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetPoint. Expected _wxListEvent_p."); |
8ab979d7 RD |
2438 | return NULL; |
2439 | } | |
2440 | } | |
cf694132 | 2441 | { |
474c48f9 | 2442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2443 | _result = new wxPoint (wxListEvent_GetPoint(_arg0)); |
cf694132 | 2444 | |
474c48f9 | 2445 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2446 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2447 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2448 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
2449 | return _resultobj; |
2450 | } | |
2451 | ||
f6bcfd97 BP |
2452 | #define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
2453 | static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2454 | PyObject * _resultobj; |
f6bcfd97 | 2455 | wxString * _result; |
af309447 | 2456 | wxListEvent * _arg0; |
1d99702e | 2457 | PyObject * _argo0 = 0; |
f6bcfd97 | 2458 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2459 | |
2460 | self = self; | |
f6bcfd97 | 2461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetLabel",_kwnames,&_argo0)) |
af309447 | 2462 | return NULL; |
1d99702e RD |
2463 | if (_argo0) { |
2464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetLabel. Expected _wxListEvent_p."); |
af309447 RD |
2467 | return NULL; |
2468 | } | |
2469 | } | |
cf694132 | 2470 | { |
474c48f9 | 2471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2472 | const wxString & _result_ref = wxListEvent_GetLabel(_arg0); |
f6bcfd97 | 2473 | _result = (wxString *) &_result_ref; |
cf694132 | 2474 | |
474c48f9 | 2475 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2476 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2477 | }{ |
c8bc7bb8 RD |
2478 | #if wxUSE_UNICODE |
2479 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2480 | #else | |
f6bcfd97 | 2481 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2482 | #endif |
f6bcfd97 | 2483 | } |
af309447 RD |
2484 | return _resultobj; |
2485 | } | |
2486 | ||
f6bcfd97 BP |
2487 | #define wxListEvent_GetText(_swigobj) (_swigobj->GetText()) |
2488 | static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2489 | PyObject * _resultobj; |
f6bcfd97 | 2490 | wxString * _result; |
8ab979d7 | 2491 | wxListEvent * _arg0; |
1d99702e | 2492 | PyObject * _argo0 = 0; |
efc5f224 | 2493 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2494 | |
2495 | self = self; | |
f6bcfd97 | 2496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0)) |
8ab979d7 | 2497 | return NULL; |
1d99702e RD |
2498 | if (_argo0) { |
2499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p."); |
8ab979d7 RD |
2502 | return NULL; |
2503 | } | |
2504 | } | |
cf694132 | 2505 | { |
474c48f9 | 2506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2507 | const wxString & _result_ref = wxListEvent_GetText(_arg0); |
f6bcfd97 | 2508 | _result = (wxString *) &_result_ref; |
cf694132 | 2509 | |
474c48f9 | 2510 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2511 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2512 | }{ |
c8bc7bb8 RD |
2513 | #if wxUSE_UNICODE |
2514 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2515 | #else | |
f6bcfd97 | 2516 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2517 | #endif |
f6bcfd97 | 2518 | } |
8ab979d7 RD |
2519 | return _resultobj; |
2520 | } | |
2521 | ||
f6bcfd97 BP |
2522 | #define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage()) |
2523 | static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2524 | PyObject * _resultobj; |
f6bcfd97 | 2525 | int _result; |
af309447 | 2526 | wxListEvent * _arg0; |
1d99702e | 2527 | PyObject * _argo0 = 0; |
f6bcfd97 | 2528 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2529 | |
2530 | self = self; | |
f6bcfd97 | 2531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0)) |
af309447 | 2532 | return NULL; |
1d99702e RD |
2533 | if (_argo0) { |
2534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p."); |
af309447 RD |
2537 | return NULL; |
2538 | } | |
2539 | } | |
cf694132 | 2540 | { |
474c48f9 | 2541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2542 | _result = (int )wxListEvent_GetImage(_arg0); |
cf694132 | 2543 | |
474c48f9 | 2544 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2545 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2546 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2547 | return _resultobj; |
2548 | } | |
2549 | ||
f6bcfd97 BP |
2550 | #define wxListEvent_GetData(_swigobj) (_swigobj->GetData()) |
2551 | static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2552 | PyObject * _resultobj; |
f6bcfd97 | 2553 | long _result; |
8ab979d7 | 2554 | wxListEvent * _arg0; |
1d99702e | 2555 | PyObject * _argo0 = 0; |
efc5f224 | 2556 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2557 | |
2558 | self = self; | |
f6bcfd97 | 2559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0)) |
8ab979d7 | 2560 | return NULL; |
1d99702e RD |
2561 | if (_argo0) { |
2562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p."); |
8ab979d7 RD |
2565 | return NULL; |
2566 | } | |
2567 | } | |
cf694132 | 2568 | { |
474c48f9 | 2569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2570 | _result = (long )wxListEvent_GetData(_arg0); |
cf694132 | 2571 | |
474c48f9 | 2572 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2573 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2574 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2575 | return _resultobj; |
2576 | } | |
2577 | ||
f6bcfd97 BP |
2578 | #define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask()) |
2579 | static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2580 | PyObject * _resultobj; |
f6bcfd97 | 2581 | long _result; |
af309447 | 2582 | wxListEvent * _arg0; |
1d99702e | 2583 | PyObject * _argo0 = 0; |
f6bcfd97 | 2584 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2585 | |
2586 | self = self; | |
f6bcfd97 | 2587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetMask",_kwnames,&_argo0)) |
af309447 | 2588 | return NULL; |
1d99702e RD |
2589 | if (_argo0) { |
2590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetMask. Expected _wxListEvent_p."); |
af309447 RD |
2593 | return NULL; |
2594 | } | |
2595 | } | |
cf694132 | 2596 | { |
474c48f9 | 2597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2598 | _result = (long )wxListEvent_GetMask(_arg0); |
cf694132 | 2599 | |
474c48f9 | 2600 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2601 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2602 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2603 | return _resultobj; |
2604 | } | |
2605 | ||
f6bcfd97 BP |
2606 | #define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
2607 | static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2608 | PyObject * _resultobj; |
2609 | wxListItem * _result; | |
2610 | wxListEvent * _arg0; | |
1d99702e | 2611 | PyObject * _argo0 = 0; |
efc5f224 | 2612 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2613 | |
2614 | self = self; | |
f6bcfd97 | 2615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 2616 | return NULL; |
1d99702e RD |
2617 | if (_argo0) { |
2618 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2619 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p."); |
8ab979d7 RD |
2621 | return NULL; |
2622 | } | |
2623 | } | |
cf694132 | 2624 | { |
474c48f9 | 2625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2626 | const wxListItem & _result_ref = wxListEvent_GetItem(_arg0); |
f6bcfd97 | 2627 | _result = (wxListItem *) &_result_ref; |
cf694132 | 2628 | |
474c48f9 | 2629 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2630 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2631 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2632 | return _resultobj; |
2633 | } | |
2634 | ||
059a841c RD |
2635 | #define wxListEvent_GetCacheFrom(_swigobj) (_swigobj->GetCacheFrom()) |
2636 | static PyObject *_wrap_wxListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2637 | PyObject * _resultobj; | |
2638 | long _result; | |
2639 | wxListEvent * _arg0; | |
2640 | PyObject * _argo0 = 0; | |
2641 | char *_kwnames[] = { "self", NULL }; | |
2642 | ||
2643 | self = self; | |
2644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheFrom",_kwnames,&_argo0)) | |
2645 | return NULL; | |
2646 | if (_argo0) { | |
2647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheFrom. Expected _wxListEvent_p."); | |
2650 | return NULL; | |
2651 | } | |
2652 | } | |
2653 | { | |
474c48f9 | 2654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2655 | _result = (long )wxListEvent_GetCacheFrom(_arg0); |
059a841c | 2656 | |
474c48f9 | 2657 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
2658 | if (PyErr_Occurred()) return NULL; |
2659 | } _resultobj = Py_BuildValue("l",_result); | |
2660 | return _resultobj; | |
2661 | } | |
2662 | ||
2663 | #define wxListEvent_GetCacheTo(_swigobj) (_swigobj->GetCacheTo()) | |
2664 | static PyObject *_wrap_wxListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2665 | PyObject * _resultobj; | |
2666 | long _result; | |
2667 | wxListEvent * _arg0; | |
2668 | PyObject * _argo0 = 0; | |
2669 | char *_kwnames[] = { "self", NULL }; | |
2670 | ||
2671 | self = self; | |
2672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheTo",_kwnames,&_argo0)) | |
2673 | return NULL; | |
2674 | if (_argo0) { | |
2675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheTo. Expected _wxListEvent_p."); | |
2678 | return NULL; | |
2679 | } | |
2680 | } | |
2681 | { | |
474c48f9 | 2682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2683 | _result = (long )wxListEvent_GetCacheTo(_arg0); |
059a841c | 2684 | |
474c48f9 | 2685 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
2686 | if (PyErr_Occurred()) return NULL; |
2687 | } _resultobj = Py_BuildValue("l",_result); | |
2688 | return _resultobj; | |
2689 | } | |
2690 | ||
cd096152 RD |
2691 | static void *SwigwxPyListCtrlTowxControl(void *ptr) { |
2692 | wxPyListCtrl *src; | |
8ab979d7 | 2693 | wxControl *dest; |
cd096152 | 2694 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2695 | dest = (wxControl *) src; |
2696 | return (void *) dest; | |
2697 | } | |
2698 | ||
cd096152 RD |
2699 | static void *SwigwxPyListCtrlTowxWindow(void *ptr) { |
2700 | wxPyListCtrl *src; | |
8ab979d7 | 2701 | wxWindow *dest; |
cd096152 | 2702 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2703 | dest = (wxWindow *) src; |
2704 | return (void *) dest; | |
2705 | } | |
2706 | ||
cd096152 RD |
2707 | static void *SwigwxPyListCtrlTowxEvtHandler(void *ptr) { |
2708 | wxPyListCtrl *src; | |
8ab979d7 | 2709 | wxEvtHandler *dest; |
cd096152 | 2710 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2711 | dest = (wxEvtHandler *) src; |
2712 | return (void *) dest; | |
2713 | } | |
2714 | ||
cd096152 RD |
2715 | static void *SwigwxPyListCtrlTowxObject(void *ptr) { |
2716 | wxPyListCtrl *src; | |
9df61a29 | 2717 | wxObject *dest; |
cd096152 | 2718 | src = (wxPyListCtrl *) ptr; |
9df61a29 RD |
2719 | dest = (wxObject *) src; |
2720 | return (void *) dest; | |
2721 | } | |
2722 | ||
cd096152 | 2723 | #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 2724 | static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 2725 | PyObject * _resultobj; |
cd096152 | 2726 | wxPyListCtrl * _result; |
8ab979d7 | 2727 | wxWindow * _arg0; |
cd096152 | 2728 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
2729 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
2730 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2c8a649d | 2731 | long _arg4 = (long ) (wxLC_ICON); |
b68dc582 | 2732 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 2733 | wxString * _arg6 = (wxString *) &wxPyListCtrlNameStr; |
1d99702e | 2734 | PyObject * _argo0 = 0; |
2f90df85 RD |
2735 | wxPoint temp; |
2736 | PyObject * _obj2 = 0; | |
2737 | wxSize temp0; | |
2738 | PyObject * _obj3 = 0; | |
1d99702e | 2739 | PyObject * _argo5 = 0; |
9a74fcaf | 2740 | PyObject * _obj6 = 0; |
efc5f224 | 2741 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
2742 | char _ptemp[128]; |
2743 | ||
2744 | self = self; | |
9a74fcaf | 2745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) |
8ab979d7 | 2746 | return NULL; |
1d99702e RD |
2747 | if (_argo0) { |
2748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p."); |
2751 | return NULL; | |
2752 | } | |
2753 | } | |
2f90df85 RD |
2754 | if (_obj2) |
2755 | { | |
2756 | _arg2 = &temp; | |
2757 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 2758 | return NULL; |
2f90df85 RD |
2759 | } |
2760 | if (_obj3) | |
2761 | { | |
2762 | _arg3 = &temp0; | |
2763 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 2764 | return NULL; |
2f90df85 | 2765 | } |
1d99702e RD |
2766 | if (_argo5) { |
2767 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
2768 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
2769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p."); |
2770 | return NULL; | |
2771 | } | |
2772 | } | |
9a74fcaf RD |
2773 | if (_obj6) |
2774 | { | |
2775 | _arg6 = wxString_in_helper(_obj6); | |
2776 | if (_arg6 == NULL) | |
2777 | return NULL; | |
2778 | } | |
cf694132 | 2779 | { |
474c48f9 | 2780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 2781 | _result = (wxPyListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
cf694132 | 2782 | |
474c48f9 | 2783 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2784 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2785 | } if (_result) { |
cd096152 | 2786 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); |
1d99702e RD |
2787 | _resultobj = Py_BuildValue("s",_ptemp); |
2788 | } else { | |
2789 | Py_INCREF(Py_None); | |
2790 | _resultobj = Py_None; | |
2791 | } | |
9a74fcaf RD |
2792 | { |
2793 | if (_obj6) | |
2794 | delete _arg6; | |
2795 | } | |
8ab979d7 RD |
2796 | return _resultobj; |
2797 | } | |
2798 | ||
aa2a5b86 RD |
2799 | #define new_wxPreListCtrl() (new wxPyListCtrl()) |
2800 | static PyObject *_wrap_new_wxPreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2801 | PyObject * _resultobj; | |
2802 | wxPyListCtrl * _result; | |
2803 | char *_kwnames[] = { NULL }; | |
2804 | char _ptemp[128]; | |
2805 | ||
2806 | self = self; | |
2807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListCtrl",_kwnames)) | |
2808 | return NULL; | |
2809 | { | |
474c48f9 | 2810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2811 | _result = (wxPyListCtrl *)new_wxPreListCtrl(); |
aa2a5b86 | 2812 | |
474c48f9 | 2813 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
2814 | if (PyErr_Occurred()) return NULL; |
2815 | } if (_result) { | |
2816 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); | |
2817 | _resultobj = Py_BuildValue("s",_ptemp); | |
2818 | } else { | |
2819 | Py_INCREF(Py_None); | |
2820 | _resultobj = Py_None; | |
2821 | } | |
2822 | return _resultobj; | |
2823 | } | |
2824 | ||
2825 | #define wxListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
2826 | static PyObject *_wrap_wxListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2827 | PyObject * _resultobj; | |
2828 | bool _result; | |
2829 | wxPyListCtrl * _arg0; | |
2830 | wxWindow * _arg1; | |
2831 | wxWindowID _arg2 = (wxWindowID ) -1; | |
2832 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
2833 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2834 | long _arg5 = (long ) (wxLC_ICON); | |
2835 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 2836 | wxString * _arg7 = (wxString *) &wxPyListCtrlNameStr; |
aa2a5b86 RD |
2837 | PyObject * _argo0 = 0; |
2838 | PyObject * _argo1 = 0; | |
2839 | wxPoint temp; | |
2840 | PyObject * _obj3 = 0; | |
2841 | wxSize temp0; | |
2842 | PyObject * _obj4 = 0; | |
2843 | PyObject * _argo6 = 0; | |
9a74fcaf | 2844 | PyObject * _obj7 = 0; |
aa2a5b86 RD |
2845 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; |
2846 | ||
2847 | self = self; | |
9a74fcaf | 2848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
aa2a5b86 RD |
2849 | return NULL; |
2850 | if (_argo0) { | |
2851 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2852 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
2853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Create. Expected _wxPyListCtrl_p."); | |
2854 | return NULL; | |
2855 | } | |
2856 | } | |
2857 | if (_argo1) { | |
2858 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2859 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_Create. Expected _wxWindow_p."); | |
2861 | return NULL; | |
2862 | } | |
2863 | } | |
2864 | if (_obj3) | |
2865 | { | |
2866 | _arg3 = &temp; | |
2867 | if (! wxPoint_helper(_obj3, &_arg3)) | |
2868 | return NULL; | |
2869 | } | |
2870 | if (_obj4) | |
2871 | { | |
2872 | _arg4 = &temp0; | |
2873 | if (! wxSize_helper(_obj4, &_arg4)) | |
2874 | return NULL; | |
2875 | } | |
2876 | if (_argo6) { | |
2877 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2878 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
2879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListCtrl_Create. Expected _wxValidator_p."); | |
2880 | return NULL; | |
2881 | } | |
2882 | } | |
9a74fcaf RD |
2883 | if (_obj7) |
2884 | { | |
2885 | _arg7 = wxString_in_helper(_obj7); | |
2886 | if (_arg7 == NULL) | |
2887 | return NULL; | |
2888 | } | |
aa2a5b86 | 2889 | { |
474c48f9 | 2890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 2891 | _result = (bool )wxListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
aa2a5b86 | 2892 | |
474c48f9 | 2893 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
2894 | if (PyErr_Occurred()) return NULL; |
2895 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
2896 | { |
2897 | if (_obj7) | |
2898 | delete _arg7; | |
2899 | } | |
aa2a5b86 RD |
2900 | return _resultobj; |
2901 | } | |
2902 | ||
0220cbc1 RD |
2903 | #define wxListCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
2904 | static PyObject *_wrap_wxListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2905 | PyObject * _resultobj; |
cd096152 RD |
2906 | wxPyListCtrl * _arg0; |
2907 | PyObject * _arg1; | |
2908 | PyObject * _arg2; | |
1d99702e | 2909 | PyObject * _argo0 = 0; |
cd096152 RD |
2910 | PyObject * _obj1 = 0; |
2911 | PyObject * _obj2 = 0; | |
2912 | char *_kwnames[] = { "self","self","_class", NULL }; | |
8ab979d7 RD |
2913 | |
2914 | self = self; | |
0220cbc1 | 2915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxListCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 2916 | return NULL; |
1d99702e RD |
2917 | if (_argo0) { |
2918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 | 2919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
0220cbc1 | 2920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl__setCallbackInfo. Expected _wxPyListCtrl_p."); |
8ab979d7 RD |
2921 | return NULL; |
2922 | } | |
2923 | } | |
cd096152 RD |
2924 | { |
2925 | _arg1 = _obj1; | |
2926 | } | |
2927 | { | |
2928 | _arg2 = _obj2; | |
2929 | } | |
cf694132 | 2930 | { |
474c48f9 | 2931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2932 | wxListCtrl__setCallbackInfo(_arg0,_arg1,_arg2); |
cf694132 | 2933 | |
474c48f9 | 2934 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2935 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
2936 | } Py_INCREF(Py_None); |
2937 | _resultobj = Py_None; | |
8ab979d7 RD |
2938 | return _resultobj; |
2939 | } | |
2940 | ||
cd096152 RD |
2941 | #define wxListCtrl_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) |
2942 | static PyObject *_wrap_wxListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c4165ad | 2943 | PyObject * _resultobj; |
cd096152 RD |
2944 | bool _result; |
2945 | wxPyListCtrl * _arg0; | |
2946 | wxColour * _arg1; | |
9c4165ad | 2947 | PyObject * _argo0 = 0; |
cd096152 RD |
2948 | wxColour temp; |
2949 | PyObject * _obj1 = 0; | |
2950 | char *_kwnames[] = { "self","col", NULL }; | |
9c4165ad RD |
2951 | |
2952 | self = self; | |
cd096152 | 2953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
9c4165ad RD |
2954 | return NULL; |
2955 | if (_argo0) { | |
2956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
2957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
2958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetForegroundColour. Expected _wxPyListCtrl_p."); | |
9c4165ad RD |
2959 | return NULL; |
2960 | } | |
2961 | } | |
cd096152 RD |
2962 | { |
2963 | _arg1 = &temp; | |
2964 | if (! wxColour_helper(_obj1, &_arg1)) | |
2965 | return NULL; | |
2966 | } | |
2967 | { | |
474c48f9 | 2968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2969 | _result = (bool )wxListCtrl_SetForegroundColour(_arg0,*_arg1); |
cd096152 | 2970 | |
474c48f9 | 2971 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
2972 | if (PyErr_Occurred()) return NULL; |
2973 | } _resultobj = Py_BuildValue("i",_result); | |
2974 | return _resultobj; | |
2975 | } | |
2976 | ||
2977 | #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
2978 | static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2979 | PyObject * _resultobj; | |
2980 | bool _result; | |
2981 | wxPyListCtrl * _arg0; | |
2982 | wxColour * _arg1; | |
2983 | PyObject * _argo0 = 0; | |
2984 | wxColour temp; | |
2985 | PyObject * _obj1 = 0; | |
2986 | char *_kwnames[] = { "self","col", NULL }; | |
2987 | ||
2988 | self = self; | |
2989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
2990 | return NULL; | |
2991 | if (_argo0) { | |
2992 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2993 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
2994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxPyListCtrl_p."); | |
9c4165ad RD |
2995 | return NULL; |
2996 | } | |
2997 | } | |
cd096152 RD |
2998 | { |
2999 | _arg1 = &temp; | |
3000 | if (! wxColour_helper(_obj1, &_arg1)) | |
3001 | return NULL; | |
3002 | } | |
9c4165ad | 3003 | { |
474c48f9 | 3004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3005 | _result = (bool )wxListCtrl_SetBackgroundColour(_arg0,*_arg1); |
9c4165ad | 3006 | |
474c48f9 | 3007 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3008 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3009 | } _resultobj = Py_BuildValue("i",_result); |
9c4165ad RD |
3010 | return _resultobj; |
3011 | } | |
3012 | ||
94082a71 RD |
3013 | static wxListItem * wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col) { |
3014 | wxListItem item; | |
9f873a51 | 3015 | item.SetMask(0xFFFF); |
94082a71 RD |
3016 | if (self->GetColumn(col, item)) |
3017 | return new wxListItem(item); | |
3018 | else | |
3019 | return NULL; | |
3020 | } | |
cd096152 | 3021 | static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3022 | PyObject * _resultobj; |
94082a71 | 3023 | wxListItem * _result; |
cd096152 RD |
3024 | wxPyListCtrl * _arg0; |
3025 | int _arg1; | |
1d99702e | 3026 | PyObject * _argo0 = 0; |
94082a71 | 3027 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3028 | |
3029 | self = self; | |
94082a71 | 3030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3031 | return NULL; |
1d99702e RD |
3032 | if (_argo0) { |
3033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxPyListCtrl_p."); | |
3036 | return NULL; | |
3037 | } | |
3038 | } | |
cf694132 | 3039 | { |
474c48f9 | 3040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3041 | _result = (wxListItem *)wxPyListCtrl_GetColumn(_arg0,_arg1); |
cf694132 | 3042 | |
474c48f9 | 3043 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3044 | if (PyErr_Occurred()) return NULL; |
94082a71 | 3045 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
3046 | return _resultobj; |
3047 | } | |
3048 | ||
cd096152 RD |
3049 | #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1)) |
3050 | static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3051 | PyObject * _resultobj; |
3052 | bool _result; | |
cd096152 RD |
3053 | wxPyListCtrl * _arg0; |
3054 | int _arg1; | |
3055 | wxListItem * _arg2; | |
1d99702e | 3056 | PyObject * _argo0 = 0; |
cd096152 RD |
3057 | PyObject * _argo2 = 0; |
3058 | char *_kwnames[] = { "self","col","item", NULL }; | |
8ab979d7 RD |
3059 | |
3060 | self = self; | |
cd096152 | 3061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3062 | return NULL; |
1d99702e RD |
3063 | if (_argo0) { |
3064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxPyListCtrl_p."); | |
3067 | return NULL; | |
3068 | } | |
3069 | } | |
3070 | if (_argo2) { | |
3071 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3072 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
3073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p."); | |
8ab979d7 RD |
3074 | return NULL; |
3075 | } | |
3076 | } | |
cf694132 | 3077 | { |
474c48f9 | 3078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3079 | _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2); |
cf694132 | 3080 | |
474c48f9 | 3081 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3082 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3083 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3084 | return _resultobj; |
3085 | } | |
3086 | ||
cd096152 RD |
3087 | #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0)) |
3088 | static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3089 | PyObject * _resultobj; |
cd096152 RD |
3090 | int _result; |
3091 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3092 | int _arg1; |
1d99702e | 3093 | PyObject * _argo0 = 0; |
efc5f224 | 3094 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3095 | |
3096 | self = self; | |
cd096152 | 3097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3098 | return NULL; |
1d99702e RD |
3099 | if (_argo0) { |
3100 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3101 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3102 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3103 | return NULL; |
3104 | } | |
3105 | } | |
cf694132 | 3106 | { |
474c48f9 | 3107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3108 | _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1); |
cf694132 | 3109 | |
474c48f9 | 3110 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3111 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3112 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3113 | return _resultobj; |
3114 | } | |
3115 | ||
cd096152 RD |
3116 | #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1)) |
3117 | static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3118 | PyObject * _resultobj; |
3119 | bool _result; | |
cd096152 RD |
3120 | wxPyListCtrl * _arg0; |
3121 | int _arg1; | |
3122 | int _arg2; | |
1d99702e | 3123 | PyObject * _argo0 = 0; |
cd096152 | 3124 | char *_kwnames[] = { "self","col","width", NULL }; |
8ab979d7 RD |
3125 | |
3126 | self = self; | |
cd096152 | 3127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3128 | return NULL; |
1d99702e RD |
3129 | if (_argo0) { |
3130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3133 | return NULL; |
3134 | } | |
3135 | } | |
cf694132 | 3136 | { |
474c48f9 | 3137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3138 | _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2); |
cf694132 | 3139 | |
474c48f9 | 3140 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3141 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3142 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3143 | return _resultobj; |
3144 | } | |
3145 | ||
cd096152 RD |
3146 | #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage()) |
3147 | static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3148 | PyObject * _resultobj; |
cd096152 RD |
3149 | int _result; |
3150 | wxPyListCtrl * _arg0; | |
1d99702e | 3151 | PyObject * _argo0 = 0; |
efc5f224 | 3152 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3153 | |
3154 | self = self; | |
cd096152 | 3155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0)) |
8ab979d7 | 3156 | return NULL; |
1d99702e RD |
3157 | if (_argo0) { |
3158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3161 | return NULL; |
3162 | } | |
3163 | } | |
cf694132 | 3164 | { |
474c48f9 | 3165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3166 | _result = (int )wxListCtrl_GetCountPerPage(_arg0); |
cf694132 | 3167 | |
474c48f9 | 3168 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3169 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3170 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3171 | return _resultobj; |
3172 | } | |
3173 | ||
cd096152 RD |
3174 | static wxListItem * wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col) { |
3175 | wxListItem* info = new wxListItem; | |
3176 | info->m_itemId = itemId; | |
3177 | info->m_col = col; | |
3178 | info->m_mask = 0xFFFF; | |
3179 | self->GetItem(*info); | |
3180 | return info; | |
3181 | } | |
3182 | static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3183 | PyObject * _resultobj; |
cd096152 RD |
3184 | wxListItem * _result; |
3185 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3186 | long _arg1; |
cd096152 | 3187 | int _arg2 = (int ) 0; |
1d99702e | 3188 | PyObject * _argo0 = 0; |
cd096152 | 3189 | char *_kwnames[] = { "self","itemId","col", NULL }; |
8ab979d7 RD |
3190 | |
3191 | self = self; | |
cd096152 | 3192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3193 | return NULL; |
1d99702e RD |
3194 | if (_argo0) { |
3195 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3196 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3198 | return NULL; |
3199 | } | |
3200 | } | |
cf694132 | 3201 | { |
474c48f9 | 3202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3203 | _result = (wxListItem *)wxPyListCtrl_GetItem(_arg0,_arg1,_arg2); |
cf694132 | 3204 | |
474c48f9 | 3205 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3206 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3207 | }{ _resultobj = wxPyMake_wxObject(_result); } |
be4d9c1f RD |
3208 | return _resultobj; |
3209 | } | |
3210 | ||
cd096152 RD |
3211 | #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) |
3212 | static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3213 | PyObject * _resultobj; |
3214 | bool _result; | |
cd096152 RD |
3215 | wxPyListCtrl * _arg0; |
3216 | wxListItem * _arg1; | |
1d99702e | 3217 | PyObject * _argo0 = 0; |
cd096152 RD |
3218 | PyObject * _argo1 = 0; |
3219 | char *_kwnames[] = { "self","info", NULL }; | |
8ab979d7 RD |
3220 | |
3221 | self = self; | |
cd096152 | 3222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3223 | return NULL; |
1d99702e RD |
3224 | if (_argo0) { |
3225 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3226 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxPyListCtrl_p."); | |
3228 | return NULL; | |
3229 | } | |
3230 | } | |
3231 | if (_argo1) { | |
3232 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3233 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
3234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p."); | |
8ab979d7 RD |
3235 | return NULL; |
3236 | } | |
3237 | } | |
cf694132 | 3238 | { |
474c48f9 | 3239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3240 | _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1); |
cf694132 | 3241 | |
474c48f9 | 3242 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3243 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3244 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3245 | return _resultobj; |
3246 | } | |
3247 | ||
cd096152 RD |
3248 | #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3249 | static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3250 | PyObject * _resultobj; |
3251 | long _result; | |
cd096152 | 3252 | wxPyListCtrl * _arg0; |
8ab979d7 | 3253 | long _arg1; |
cd096152 RD |
3254 | int _arg2; |
3255 | wxString * _arg3; | |
3256 | int _arg4 = (int ) -1; | |
1d99702e | 3257 | PyObject * _argo0 = 0; |
cd096152 RD |
3258 | PyObject * _obj3 = 0; |
3259 | char *_kwnames[] = { "self","index","col","label","imageId", NULL }; | |
8ab979d7 RD |
3260 | |
3261 | self = self; | |
cd096152 | 3262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
8ab979d7 | 3263 | return NULL; |
1d99702e RD |
3264 | if (_argo0) { |
3265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3268 | return NULL; |
3269 | } | |
3270 | } | |
3271 | { | |
c8bc7bb8 RD |
3272 | _arg3 = wxString_in_helper(_obj3); |
3273 | if (_arg3 == NULL) | |
2cd2fac8 | 3274 | return NULL; |
8ab979d7 | 3275 | } |
cf694132 | 3276 | { |
474c48f9 | 3277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3278 | _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4); |
cf694132 | 3279 | |
474c48f9 | 3280 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3281 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3282 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 3283 | { |
cd096152 RD |
3284 | if (_obj3) |
3285 | delete _arg3; | |
8ab979d7 RD |
3286 | } |
3287 | return _resultobj; | |
3288 | } | |
3289 | ||
cd096152 RD |
3290 | #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1)) |
3291 | static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3292 | PyObject * _resultobj; |
cd096152 RD |
3293 | int _result; |
3294 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
3295 | long _arg1; |
3296 | long _arg2; | |
1d99702e | 3297 | PyObject * _argo0 = 0; |
cd096152 | 3298 | char *_kwnames[] = { "self","item","stateMask", NULL }; |
8ab979d7 RD |
3299 | |
3300 | self = self; | |
cd096152 | 3301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3302 | return NULL; |
1d99702e RD |
3303 | if (_argo0) { |
3304 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3307 | return NULL; |
3308 | } | |
3309 | } | |
cf694132 | 3310 | { |
474c48f9 | 3311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3312 | _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2); |
cf694132 | 3313 | |
474c48f9 | 3314 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3315 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3316 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3317 | return _resultobj; |
3318 | } | |
3319 | ||
cd096152 RD |
3320 | #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2)) |
3321 | static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3322 | PyObject * _resultobj; |
cd096152 RD |
3323 | bool _result; |
3324 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3325 | long _arg1; |
cd096152 RD |
3326 | long _arg2; |
3327 | long _arg3; | |
1d99702e | 3328 | PyObject * _argo0 = 0; |
cd096152 | 3329 | char *_kwnames[] = { "self","item","state","stateMask", NULL }; |
8ab979d7 RD |
3330 | |
3331 | self = self; | |
cd096152 | 3332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3333 | return NULL; |
1d99702e RD |
3334 | if (_argo0) { |
3335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3338 | return NULL; |
3339 | } | |
3340 | } | |
cf694132 | 3341 | { |
474c48f9 | 3342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3343 | _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3344 | |
474c48f9 | 3345 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3346 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3347 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3348 | return _resultobj; |
3349 | } | |
3350 | ||
cd096152 RD |
3351 | #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
3352 | static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3353 | PyObject * _resultobj; |
3354 | bool _result; | |
cd096152 RD |
3355 | wxPyListCtrl * _arg0; |
3356 | long _arg1; | |
3357 | int _arg2; | |
3358 | int _arg3; | |
1d99702e | 3359 | PyObject * _argo0 = 0; |
cd096152 | 3360 | char *_kwnames[] = { "self","item","image","selImage", NULL }; |
8ab979d7 RD |
3361 | |
3362 | self = self; | |
cd096152 | 3363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3364 | return NULL; |
1d99702e RD |
3365 | if (_argo0) { |
3366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3369 | return NULL; |
3370 | } | |
3371 | } | |
cf694132 | 3372 | { |
474c48f9 | 3373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3374 | _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3375 | |
474c48f9 | 3376 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3377 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3378 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3379 | return _resultobj; |
3380 | } | |
3381 | ||
cd096152 RD |
3382 | #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
3383 | static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3384 | PyObject * _resultobj; |
cd096152 RD |
3385 | wxString * _result; |
3386 | wxPyListCtrl * _arg0; | |
3387 | long _arg1; | |
1d99702e | 3388 | PyObject * _argo0 = 0; |
cd096152 | 3389 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3390 | |
3391 | self = self; | |
cd096152 | 3392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3393 | return NULL; |
1d99702e RD |
3394 | if (_argo0) { |
3395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3398 | return NULL; |
3399 | } | |
3400 | } | |
cf694132 | 3401 | { |
474c48f9 | 3402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3403 | _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1)); |
cf694132 | 3404 | |
474c48f9 | 3405 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3406 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3407 | }{ |
c8bc7bb8 RD |
3408 | #if wxUSE_UNICODE |
3409 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3410 | #else | |
cd096152 | 3411 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3412 | #endif |
cd096152 RD |
3413 | } |
3414 | { | |
3415 | delete _result; | |
3416 | } | |
8ab979d7 RD |
3417 | return _resultobj; |
3418 | } | |
3419 | ||
cd096152 RD |
3420 | #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
3421 | static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3422 | PyObject * _resultobj; |
cd096152 RD |
3423 | wxPyListCtrl * _arg0; |
3424 | long _arg1; | |
3425 | wxString * _arg2; | |
1d99702e | 3426 | PyObject * _argo0 = 0; |
cd096152 RD |
3427 | PyObject * _obj2 = 0; |
3428 | char *_kwnames[] = { "self","item","str", NULL }; | |
8ab979d7 RD |
3429 | |
3430 | self = self; | |
cd096152 | 3431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3432 | return NULL; |
1d99702e RD |
3433 | if (_argo0) { |
3434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3437 | return NULL; |
3438 | } | |
3439 | } | |
cf694132 | 3440 | { |
c8bc7bb8 RD |
3441 | _arg2 = wxString_in_helper(_obj2); |
3442 | if (_arg2 == NULL) | |
8ab979d7 | 3443 | return NULL; |
cd096152 | 3444 | } |
cf694132 | 3445 | { |
474c48f9 | 3446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3447 | wxListCtrl_SetItemText(_arg0,_arg1,*_arg2); |
cf694132 | 3448 | |
474c48f9 | 3449 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3450 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3451 | } Py_INCREF(Py_None); |
3452 | _resultobj = Py_None; | |
3453 | { | |
3454 | if (_obj2) | |
3455 | delete _arg2; | |
3456 | } | |
8ab979d7 RD |
3457 | return _resultobj; |
3458 | } | |
3459 | ||
3460 | #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0)) | |
efc5f224 | 3461 | static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3462 | PyObject * _resultobj; |
3463 | long _result; | |
cd096152 | 3464 | wxPyListCtrl * _arg0; |
8ab979d7 | 3465 | long _arg1; |
1d99702e | 3466 | PyObject * _argo0 = 0; |
efc5f224 | 3467 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3468 | |
3469 | self = self; | |
efc5f224 | 3470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3471 | return NULL; |
1d99702e RD |
3472 | if (_argo0) { |
3473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3476 | return NULL; |
3477 | } | |
3478 | } | |
cf694132 | 3479 | { |
474c48f9 | 3480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3481 | _result = (long )wxListCtrl_GetItemData(_arg0,_arg1); |
cf694132 | 3482 | |
474c48f9 | 3483 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3484 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3485 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
3486 | return _resultobj; |
3487 | } | |
3488 | ||
cd096152 RD |
3489 | #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1)) |
3490 | static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3491 | PyObject * _resultobj; |
cd096152 RD |
3492 | bool _result; |
3493 | wxPyListCtrl * _arg0; | |
0699c864 | 3494 | long _arg1; |
cd096152 | 3495 | long _arg2; |
1d99702e | 3496 | PyObject * _argo0 = 0; |
cd096152 | 3497 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
3498 | |
3499 | self = self; | |
cd096152 | 3500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3501 | return NULL; |
1d99702e RD |
3502 | if (_argo0) { |
3503 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3504 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3506 | return NULL; |
3507 | } | |
3508 | } | |
cf694132 | 3509 | { |
474c48f9 | 3510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3511 | _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2); |
cf694132 | 3512 | |
474c48f9 | 3513 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3514 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3515 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3516 | return _resultobj; |
3517 | } | |
3518 | ||
cd096152 | 3519 | static wxPoint * wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item) { |
8ab979d7 RD |
3520 | wxPoint* pos = new wxPoint; |
3521 | self->GetItemPosition(item, *pos); | |
3522 | return pos; | |
3523 | } | |
efc5f224 | 3524 | static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3525 | PyObject * _resultobj; |
3526 | wxPoint * _result; | |
cd096152 | 3527 | wxPyListCtrl * _arg0; |
8ab979d7 | 3528 | long _arg1; |
1d99702e | 3529 | PyObject * _argo0 = 0; |
efc5f224 | 3530 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3531 | char _ptemp[128]; |
3532 | ||
3533 | self = self; | |
efc5f224 | 3534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3535 | return NULL; |
1d99702e RD |
3536 | if (_argo0) { |
3537 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3538 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3539 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3540 | return NULL; |
3541 | } | |
3542 | } | |
cf694132 | 3543 | { |
474c48f9 | 3544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3545 | _result = (wxPoint *)wxPyListCtrl_GetItemPosition(_arg0,_arg1); |
cf694132 | 3546 | |
474c48f9 | 3547 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3548 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3549 | } if (_result) { |
3550 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
3551 | _resultobj = Py_BuildValue("s",_ptemp); | |
3552 | } else { | |
3553 | Py_INCREF(Py_None); | |
3554 | _resultobj = Py_None; | |
3555 | } | |
8ab979d7 RD |
3556 | return _resultobj; |
3557 | } | |
3558 | ||
cd096152 | 3559 | static wxRect * wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code) { |
8ab979d7 RD |
3560 | wxRect* rect= new wxRect; |
3561 | self->GetItemRect(item, *rect, code); | |
3562 | return rect; | |
3563 | } | |
efc5f224 | 3564 | static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3565 | PyObject * _resultobj; |
3566 | wxRect * _result; | |
cd096152 | 3567 | wxPyListCtrl * _arg0; |
8ab979d7 | 3568 | long _arg1; |
1d99702e RD |
3569 | int _arg2 = (int ) (wxLIST_RECT_BOUNDS); |
3570 | PyObject * _argo0 = 0; | |
efc5f224 | 3571 | char *_kwnames[] = { "self","item","code", NULL }; |
8ab979d7 RD |
3572 | char _ptemp[128]; |
3573 | ||
3574 | self = self; | |
efc5f224 | 3575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3576 | return NULL; |
1d99702e RD |
3577 | if (_argo0) { |
3578 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3579 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3581 | return NULL; |
3582 | } | |
3583 | } | |
cf694132 | 3584 | { |
474c48f9 | 3585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3586 | _result = (wxRect *)wxPyListCtrl_GetItemRect(_arg0,_arg1,_arg2); |
cf694132 | 3587 | |
474c48f9 | 3588 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3589 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3590 | } if (_result) { |
3591 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
3592 | _resultobj = Py_BuildValue("s",_ptemp); | |
3593 | } else { | |
3594 | Py_INCREF(Py_None); | |
3595 | _resultobj = Py_None; | |
3596 | } | |
8ab979d7 RD |
3597 | return _resultobj; |
3598 | } | |
3599 | ||
cd096152 RD |
3600 | #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1)) |
3601 | static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3602 | PyObject * _resultobj; |
cd096152 RD |
3603 | bool _result; |
3604 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3605 | long _arg1; |
cd096152 | 3606 | wxPoint * _arg2; |
1d99702e | 3607 | PyObject * _argo0 = 0; |
cd096152 RD |
3608 | wxPoint temp; |
3609 | PyObject * _obj2 = 0; | |
3610 | char *_kwnames[] = { "self","item","pos", NULL }; | |
8ab979d7 RD |
3611 | |
3612 | self = self; | |
cd096152 | 3613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3614 | return NULL; |
1d99702e RD |
3615 | if (_argo0) { |
3616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3619 | return NULL; |
3620 | } | |
3621 | } | |
cd096152 RD |
3622 | { |
3623 | _arg2 = &temp; | |
3624 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3625 | return NULL; | |
3626 | } | |
cf694132 | 3627 | { |
474c48f9 | 3628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3629 | _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2); |
cf694132 | 3630 | |
474c48f9 | 3631 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3632 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3633 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3634 | return _resultobj; |
3635 | } | |
3636 | ||
3637 | #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
efc5f224 | 3638 | static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3639 | PyObject * _resultobj; |
3640 | int _result; | |
cd096152 | 3641 | wxPyListCtrl * _arg0; |
1d99702e | 3642 | PyObject * _argo0 = 0; |
efc5f224 | 3643 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3644 | |
3645 | self = self; | |
efc5f224 | 3646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3647 | return NULL; |
1d99702e RD |
3648 | if (_argo0) { |
3649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3652 | return NULL; |
3653 | } | |
3654 | } | |
cf694132 | 3655 | { |
474c48f9 | 3656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3657 | _result = (int )wxListCtrl_GetItemCount(_arg0); |
cf694132 | 3658 | |
474c48f9 | 3659 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3660 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3661 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3662 | return _resultobj; |
3663 | } | |
3664 | ||
cd096152 RD |
3665 | #define wxListCtrl_GetColumnCount(_swigobj) (_swigobj->GetColumnCount()) |
3666 | static PyObject *_wrap_wxListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3667 | PyObject * _resultobj; | |
3668 | int _result; | |
3669 | wxPyListCtrl * _arg0; | |
3670 | PyObject * _argo0 = 0; | |
3671 | char *_kwnames[] = { "self", NULL }; | |
3672 | ||
3673 | self = self; | |
3674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetColumnCount",_kwnames,&_argo0)) | |
3675 | return NULL; | |
3676 | if (_argo0) { | |
3677 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3678 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnCount. Expected _wxPyListCtrl_p."); | |
3680 | return NULL; | |
3681 | } | |
3682 | } | |
3683 | { | |
474c48f9 | 3684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3685 | _result = (int )wxListCtrl_GetColumnCount(_arg0); |
cd096152 | 3686 | |
474c48f9 | 3687 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
3688 | if (PyErr_Occurred()) return NULL; |
3689 | } _resultobj = Py_BuildValue("i",_result); | |
3690 | return _resultobj; | |
3691 | } | |
3692 | ||
8ab979d7 | 3693 | #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0)) |
efc5f224 | 3694 | static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3695 | PyObject * _resultobj; |
3696 | int _result; | |
cd096152 | 3697 | wxPyListCtrl * _arg0; |
8ab979d7 | 3698 | bool _arg1; |
1d99702e | 3699 | PyObject * _argo0 = 0; |
8ab979d7 | 3700 | int tempbool1; |
efc5f224 | 3701 | char *_kwnames[] = { "self","isSmall", NULL }; |
8ab979d7 RD |
3702 | |
3703 | self = self; | |
efc5f224 | 3704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3705 | return NULL; |
1d99702e RD |
3706 | if (_argo0) { |
3707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3710 | return NULL; |
3711 | } | |
3712 | } | |
3713 | _arg1 = (bool ) tempbool1; | |
cf694132 | 3714 | { |
474c48f9 | 3715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3716 | _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1); |
cf694132 | 3717 | |
474c48f9 | 3718 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3719 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3720 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3721 | return _resultobj; |
3722 | } | |
3723 | ||
cd096152 RD |
3724 | #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount()) |
3725 | static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3726 | PyObject * _resultobj; |
cd096152 RD |
3727 | int _result; |
3728 | wxPyListCtrl * _arg0; | |
1d99702e | 3729 | PyObject * _argo0 = 0; |
cd096152 | 3730 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3731 | |
3732 | self = self; | |
cd096152 | 3733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3734 | return NULL; |
1d99702e RD |
3735 | if (_argo0) { |
3736 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3737 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3739 | return NULL; |
3740 | } | |
3741 | } | |
8ab979d7 | 3742 | { |
474c48f9 | 3743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3744 | _result = (int )wxListCtrl_GetSelectedItemCount(_arg0); |
cf694132 | 3745 | |
474c48f9 | 3746 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3747 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3748 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3749 | return _resultobj; |
3750 | } | |
3751 | ||
cd096152 RD |
3752 | #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
3753 | static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3754 | PyObject * _resultobj; |
cd096152 RD |
3755 | wxColour * _result; |
3756 | wxPyListCtrl * _arg0; | |
1d99702e | 3757 | PyObject * _argo0 = 0; |
cd096152 RD |
3758 | char *_kwnames[] = { "self", NULL }; |
3759 | char _ptemp[128]; | |
8ab979d7 RD |
3760 | |
3761 | self = self; | |
cd096152 | 3762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 3763 | return NULL; |
1d99702e RD |
3764 | if (_argo0) { |
3765 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3766 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3768 | return NULL; |
3769 | } | |
3770 | } | |
cf694132 | 3771 | { |
474c48f9 | 3772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3773 | _result = new wxColour (wxListCtrl_GetTextColour(_arg0)); |
cf694132 | 3774 | |
474c48f9 | 3775 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3776 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3777 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
3778 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
3779 | return _resultobj; |
3780 | } | |
3781 | ||
cd096152 RD |
3782 | #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
3783 | static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3784 | PyObject * _resultobj; |
cd096152 RD |
3785 | wxPyListCtrl * _arg0; |
3786 | wxColour * _arg1; | |
1d99702e | 3787 | PyObject * _argo0 = 0; |
cd096152 RD |
3788 | wxColour temp; |
3789 | PyObject * _obj1 = 0; | |
3790 | char *_kwnames[] = { "self","col", NULL }; | |
8ab979d7 RD |
3791 | |
3792 | self = self; | |
cd096152 | 3793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3794 | return NULL; |
1d99702e RD |
3795 | if (_argo0) { |
3796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3799 | return NULL; |
3800 | } | |
3801 | } | |
cd096152 RD |
3802 | { |
3803 | _arg1 = &temp; | |
3804 | if (! wxColour_helper(_obj1, &_arg1)) | |
3805 | return NULL; | |
3806 | } | |
cf694132 | 3807 | { |
474c48f9 | 3808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3809 | wxListCtrl_SetTextColour(_arg0,*_arg1); |
cf694132 | 3810 | |
474c48f9 | 3811 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3812 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3813 | } Py_INCREF(Py_None); |
3814 | _resultobj = Py_None; | |
8ab979d7 RD |
3815 | return _resultobj; |
3816 | } | |
3817 | ||
8ab979d7 | 3818 | #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem()) |
efc5f224 | 3819 | static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3820 | PyObject * _resultobj; |
3821 | long _result; | |
cd096152 | 3822 | wxPyListCtrl * _arg0; |
1d99702e | 3823 | PyObject * _argo0 = 0; |
efc5f224 | 3824 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3825 | |
3826 | self = self; | |
efc5f224 | 3827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0)) |
8ab979d7 | 3828 | return NULL; |
1d99702e RD |
3829 | if (_argo0) { |
3830 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3831 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3833 | return NULL; |
3834 | } | |
3835 | } | |
cf694132 | 3836 | { |
474c48f9 | 3837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3838 | _result = (long )wxListCtrl_GetTopItem(_arg0); |
cf694132 | 3839 | |
474c48f9 | 3840 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3841 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3842 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
3843 | return _resultobj; |
3844 | } | |
3845 | ||
cd096152 RD |
3846 | #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1)) |
3847 | static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3848 | PyObject * _resultobj; | |
3849 | wxPyListCtrl * _arg0; | |
3850 | long _arg1; | |
3851 | bool _arg2 = (bool ) TRUE; | |
1d99702e | 3852 | PyObject * _argo0 = 0; |
cd096152 RD |
3853 | int tempbool2 = (int) TRUE; |
3854 | char *_kwnames[] = { "self","style","add", NULL }; | |
8ab979d7 RD |
3855 | |
3856 | self = self; | |
cd096152 RD |
3857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2)) |
3858 | return NULL; | |
3859 | if (_argo0) { | |
3860 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3861 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxPyListCtrl_p."); | |
3863 | return NULL; | |
3864 | } | |
3865 | } | |
3866 | _arg2 = (bool ) tempbool2; | |
8ab979d7 | 3867 | { |
474c48f9 | 3868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3869 | wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2); |
cd096152 | 3870 | |
474c48f9 | 3871 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
3872 | if (PyErr_Occurred()) return NULL; |
3873 | } Py_INCREF(Py_None); | |
3874 | _resultobj = Py_None; | |
3875 | return _resultobj; | |
8ab979d7 | 3876 | } |
cd096152 RD |
3877 | |
3878 | #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) | |
3879 | static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3880 | PyObject * _resultobj; | |
3881 | wxPyListCtrl * _arg0; | |
3882 | long _arg1; | |
3883 | PyObject * _argo0 = 0; | |
3884 | char *_kwnames[] = { "self","style", NULL }; | |
3885 | ||
3886 | self = self; | |
3887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
8ab979d7 | 3888 | return NULL; |
1d99702e RD |
3889 | if (_argo0) { |
3890 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3891 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3893 | return NULL; |
3894 | } | |
3895 | } | |
2f90df85 | 3896 | { |
474c48f9 | 3897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3898 | wxListCtrl_SetWindowStyleFlag(_arg0,_arg1); |
cd096152 | 3899 | |
474c48f9 | 3900 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
3901 | if (PyErr_Occurred()) return NULL; |
3902 | } Py_INCREF(Py_None); | |
3903 | _resultobj = Py_None; | |
3904 | return _resultobj; | |
2f90df85 | 3905 | } |
cd096152 RD |
3906 | |
3907 | #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2)) | |
3908 | static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3909 | PyObject * _resultobj; | |
3910 | long _result; | |
3911 | wxPyListCtrl * _arg0; | |
3912 | long _arg1; | |
3913 | int _arg2 = (int ) (wxLIST_NEXT_ALL); | |
3914 | int _arg3 = (int ) (wxLIST_STATE_DONTCARE); | |
3915 | PyObject * _argo0 = 0; | |
3916 | char *_kwnames[] = { "self","item","geometry","state", NULL }; | |
3917 | ||
3918 | self = self; | |
3919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
3920 | return NULL; | |
3921 | if (_argo0) { | |
3922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxPyListCtrl_p."); | |
3925 | return NULL; | |
3926 | } | |
3927 | } | |
cf694132 | 3928 | { |
474c48f9 | 3929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3930 | _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3931 | |
474c48f9 | 3932 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3933 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3934 | } _resultobj = Py_BuildValue("l",_result); |
cd096152 | 3935 | return _resultobj; |
8ab979d7 | 3936 | } |
cd096152 RD |
3937 | |
3938 | #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0)) | |
3939 | static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3940 | PyObject * _resultobj; | |
3941 | wxImageList * _result; | |
3942 | wxPyListCtrl * _arg0; | |
3943 | int _arg1; | |
3944 | PyObject * _argo0 = 0; | |
3945 | char *_kwnames[] = { "self","which", NULL }; | |
3946 | ||
3947 | self = self; | |
3948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1)) | |
3949 | return NULL; | |
3950 | if (_argo0) { | |
3951 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3952 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxPyListCtrl_p."); | |
3954 | return NULL; | |
3955 | } | |
3956 | } | |
3957 | { | |
474c48f9 | 3958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3959 | _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1); |
cd096152 | 3960 | |
474c48f9 | 3961 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
3962 | if (PyErr_Occurred()) return NULL; |
3963 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
8ab979d7 RD |
3964 | return _resultobj; |
3965 | } | |
3966 | ||
cd096152 RD |
3967 | #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1)) |
3968 | static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3969 | PyObject * _resultobj; |
cd096152 RD |
3970 | wxPyListCtrl * _arg0; |
3971 | wxImageList * _arg1; | |
3972 | int _arg2; | |
1d99702e | 3973 | PyObject * _argo0 = 0; |
cd096152 RD |
3974 | PyObject * _argo1 = 0; |
3975 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
8ab979d7 RD |
3976 | |
3977 | self = self; | |
cd096152 | 3978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 3979 | return NULL; |
1d99702e RD |
3980 | if (_argo0) { |
3981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3984 | return NULL; |
3985 | } | |
3986 | } | |
cd096152 RD |
3987 | if (_argo1) { |
3988 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3989 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
3990 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p."); | |
8ab979d7 RD |
3991 | return NULL; |
3992 | } | |
3993 | } | |
cf694132 | 3994 | { |
474c48f9 | 3995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3996 | wxListCtrl_SetImageList(_arg0,_arg1,_arg2); |
cf694132 | 3997 | |
474c48f9 | 3998 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3999 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4000 | } Py_INCREF(Py_None); |
4001 | _resultobj = Py_None; | |
8ab979d7 RD |
4002 | return _resultobj; |
4003 | } | |
4004 | ||
cd096152 RD |
4005 | #define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1)) |
4006 | static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4007 | PyObject * _resultobj; |
cd096152 RD |
4008 | wxPyListCtrl * _arg0; |
4009 | wxImageList * _arg1; | |
4010 | int _arg2; | |
1d99702e | 4011 | PyObject * _argo0 = 0; |
cd096152 RD |
4012 | PyObject * _argo1 = 0; |
4013 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
8ab979d7 RD |
4014 | |
4015 | self = self; | |
cd096152 | 4016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4017 | return NULL; |
1d99702e RD |
4018 | if (_argo0) { |
4019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4022 | return NULL; |
4023 | } | |
4024 | } | |
cd096152 RD |
4025 | if (_argo1) { |
4026 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4027 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p."); | |
2cd2fac8 | 4029 | return NULL; |
cd096152 | 4030 | } |
2cd2fac8 | 4031 | } |
cd096152 | 4032 | { |
474c48f9 | 4033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4034 | wxListCtrl_AssignImageList(_arg0,_arg1,_arg2); |
cd096152 | 4035 | |
474c48f9 | 4036 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4037 | if (PyErr_Occurred()) return NULL; |
4038 | } Py_INCREF(Py_None); | |
4039 | _resultobj = Py_None; | |
4040 | return _resultobj; | |
4041 | } | |
4042 | ||
4043 | #define wxListCtrl_IsVirtual(_swigobj) (_swigobj->IsVirtual()) | |
4044 | static PyObject *_wrap_wxListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4045 | PyObject * _resultobj; | |
4046 | bool _result; | |
4047 | wxPyListCtrl * _arg0; | |
4048 | PyObject * _argo0 = 0; | |
4049 | char *_kwnames[] = { "self", NULL }; | |
4050 | ||
4051 | self = self; | |
4052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_IsVirtual",_kwnames,&_argo0)) | |
2cd2fac8 | 4053 | return NULL; |
cd096152 RD |
4054 | if (_argo0) { |
4055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_IsVirtual. Expected _wxPyListCtrl_p."); | |
8ab979d7 | 4058 | return NULL; |
cd096152 | 4059 | } |
8ab979d7 | 4060 | } |
cf694132 | 4061 | { |
474c48f9 | 4062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4063 | _result = (bool )wxListCtrl_IsVirtual(_arg0); |
cf694132 | 4064 | |
474c48f9 | 4065 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4066 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4067 | } _resultobj = Py_BuildValue("i",_result); |
4068 | return _resultobj; | |
8ab979d7 | 4069 | } |
cd096152 RD |
4070 | |
4071 | #define wxListCtrl_RefreshItem(_swigobj,_swigarg0) (_swigobj->RefreshItem(_swigarg0)) | |
4072 | static PyObject *_wrap_wxListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4073 | PyObject * _resultobj; | |
4074 | wxPyListCtrl * _arg0; | |
4075 | long _arg1; | |
4076 | PyObject * _argo0 = 0; | |
4077 | char *_kwnames[] = { "self","item", NULL }; | |
4078 | ||
4079 | self = self; | |
4080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_RefreshItem",_kwnames,&_argo0,&_arg1)) | |
4081 | return NULL; | |
4082 | if (_argo0) { | |
4083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItem. Expected _wxPyListCtrl_p."); | |
4086 | return NULL; | |
4087 | } | |
4088 | } | |
4089 | { | |
474c48f9 | 4090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4091 | wxListCtrl_RefreshItem(_arg0,_arg1); |
cd096152 | 4092 | |
474c48f9 | 4093 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4094 | if (PyErr_Occurred()) return NULL; |
4095 | } Py_INCREF(Py_None); | |
4096 | _resultobj = Py_None; | |
8ab979d7 RD |
4097 | return _resultobj; |
4098 | } | |
4099 | ||
cd096152 RD |
4100 | #define wxListCtrl_RefreshItems(_swigobj,_swigarg0,_swigarg1) (_swigobj->RefreshItems(_swigarg0,_swigarg1)) |
4101 | static PyObject *_wrap_wxListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4102 | PyObject * _resultobj; |
cd096152 RD |
4103 | wxPyListCtrl * _arg0; |
4104 | long _arg1; | |
4105 | long _arg2; | |
1d99702e | 4106 | PyObject * _argo0 = 0; |
cd096152 | 4107 | char *_kwnames[] = { "self","itemFrom","itemTo", NULL }; |
8ab979d7 RD |
4108 | |
4109 | self = self; | |
cd096152 | 4110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_RefreshItems",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4111 | return NULL; |
1d99702e RD |
4112 | if (_argo0) { |
4113 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4114 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItems. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4116 | return NULL; |
4117 | } | |
4118 | } | |
cd096152 | 4119 | { |
474c48f9 | 4120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4121 | wxListCtrl_RefreshItems(_arg0,_arg1,_arg2); |
cd096152 | 4122 | |
474c48f9 | 4123 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4124 | if (PyErr_Occurred()) return NULL; |
4125 | } Py_INCREF(Py_None); | |
4126 | _resultobj = Py_None; | |
4127 | return _resultobj; | |
4128 | } | |
4129 | ||
4130 | #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0)) | |
4131 | static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4132 | PyObject * _resultobj; | |
4133 | bool _result; | |
4134 | wxPyListCtrl * _arg0; | |
4135 | int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT); | |
4136 | PyObject * _argo0 = 0; | |
4137 | char *_kwnames[] = { "self","flag", NULL }; | |
4138 | ||
4139 | self = self; | |
4140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1)) | |
4141 | return NULL; | |
4142 | if (_argo0) { | |
4143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4146 | return NULL; |
4147 | } | |
4148 | } | |
cf694132 | 4149 | { |
474c48f9 | 4150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4151 | _result = (bool )wxListCtrl_Arrange(_arg0,_arg1); |
cf694132 | 4152 | |
474c48f9 | 4153 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4154 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4155 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4156 | return _resultobj; |
4157 | } | |
4158 | ||
cd096152 RD |
4159 | #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0)) |
4160 | static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4161 | PyObject * _resultobj; |
cd096152 RD |
4162 | bool _result; |
4163 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4164 | long _arg1; |
1d99702e | 4165 | PyObject * _argo0 = 0; |
cd096152 | 4166 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4167 | |
4168 | self = self; | |
cd096152 | 4169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4170 | return NULL; |
1d99702e RD |
4171 | if (_argo0) { |
4172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4175 | return NULL; |
4176 | } | |
4177 | } | |
4178 | { | |
474c48f9 | 4179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4180 | _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1); |
cd096152 | 4181 | |
474c48f9 | 4182 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4183 | if (PyErr_Occurred()) return NULL; |
4184 | } _resultobj = Py_BuildValue("i",_result); | |
4185 | return _resultobj; | |
4186 | } | |
4187 | ||
4188 | #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
4189 | static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4190 | PyObject * _resultobj; | |
4191 | bool _result; | |
4192 | wxPyListCtrl * _arg0; | |
4193 | PyObject * _argo0 = 0; | |
4194 | char *_kwnames[] = { "self", NULL }; | |
4195 | ||
4196 | self = self; | |
4197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0)) | |
4198 | return NULL; | |
4199 | if (_argo0) { | |
4200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxPyListCtrl_p."); | |
2cd2fac8 | 4203 | return NULL; |
cd096152 | 4204 | } |
2cd2fac8 | 4205 | } |
cd096152 | 4206 | { |
474c48f9 | 4207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4208 | _result = (bool )wxListCtrl_DeleteAllItems(_arg0); |
cd096152 | 4209 | |
474c48f9 | 4210 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4211 | if (PyErr_Occurred()) return NULL; |
4212 | } _resultobj = Py_BuildValue("i",_result); | |
4213 | return _resultobj; | |
4214 | } | |
4215 | ||
4216 | #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0)) | |
4217 | static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4218 | PyObject * _resultobj; | |
4219 | bool _result; | |
4220 | wxPyListCtrl * _arg0; | |
4221 | int _arg1; | |
4222 | PyObject * _argo0 = 0; | |
4223 | char *_kwnames[] = { "self","col", NULL }; | |
4224 | ||
4225 | self = self; | |
4226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1)) | |
2cd2fac8 | 4227 | return NULL; |
cd096152 RD |
4228 | if (_argo0) { |
4229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxPyListCtrl_p."); | |
4232 | return NULL; | |
4233 | } | |
4234 | } | |
4235 | { | |
474c48f9 | 4236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4237 | _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1); |
cd096152 | 4238 | |
474c48f9 | 4239 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4240 | if (PyErr_Occurred()) return NULL; |
4241 | } _resultobj = Py_BuildValue("i",_result); | |
4242 | return _resultobj; | |
4243 | } | |
4244 | ||
4245 | #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns()) | |
4246 | static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4247 | PyObject * _resultobj; | |
4248 | bool _result; | |
4249 | wxPyListCtrl * _arg0; | |
4250 | PyObject * _argo0 = 0; | |
4251 | char *_kwnames[] = { "self", NULL }; | |
4252 | ||
4253 | self = self; | |
4254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0)) | |
4255 | return NULL; | |
4256 | if (_argo0) { | |
4257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxPyListCtrl_p."); | |
4260 | return NULL; | |
4261 | } | |
4262 | } | |
4263 | { | |
474c48f9 | 4264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4265 | _result = (bool )wxListCtrl_DeleteAllColumns(_arg0); |
cd096152 | 4266 | |
474c48f9 | 4267 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
4268 | if (PyErr_Occurred()) return NULL; |
4269 | } _resultobj = Py_BuildValue("i",_result); | |
4270 | return _resultobj; | |
4271 | } | |
4272 | ||
4273 | #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll()) | |
4274 | static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4275 | PyObject * _resultobj; | |
4276 | wxPyListCtrl * _arg0; | |
4277 | PyObject * _argo0 = 0; | |
4278 | char *_kwnames[] = { "self", NULL }; | |
4279 | ||
4280 | self = self; | |
4281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0)) | |
8ab979d7 | 4282 | return NULL; |
cd096152 RD |
4283 | if (_argo0) { |
4284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxPyListCtrl_p."); | |
4287 | return NULL; | |
4288 | } | |
8ab979d7 | 4289 | } |
cf694132 | 4290 | { |
474c48f9 | 4291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4292 | wxListCtrl_ClearAll(_arg0); |
cf694132 | 4293 | |
474c48f9 | 4294 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4295 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4296 | } Py_INCREF(Py_None); |
4297 | _resultobj = Py_None; | |
8ab979d7 RD |
4298 | return _resultobj; |
4299 | } | |
4300 | ||
cd096152 RD |
4301 | #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) |
4302 | static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4303 | PyObject * _resultobj; |
cd096152 RD |
4304 | bool _result; |
4305 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4306 | long _arg1; |
1d99702e | 4307 | PyObject * _argo0 = 0; |
cd096152 | 4308 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4309 | |
4310 | self = self; | |
cd096152 | 4311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4312 | return NULL; |
1d99702e RD |
4313 | if (_argo0) { |
4314 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4315 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4317 | return NULL; |
4318 | } | |
4319 | } | |
cf694132 | 4320 | { |
474c48f9 | 4321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4322 | _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1); |
cf694132 | 4323 | |
474c48f9 | 4324 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4325 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4326 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4327 | return _resultobj; |
4328 | } | |
4329 | ||
cd096152 RD |
4330 | #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4331 | static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4332 | PyObject * _resultobj; |
4333 | long _result; | |
cd096152 | 4334 | wxPyListCtrl * _arg0; |
8ab979d7 RD |
4335 | long _arg1; |
4336 | wxString * _arg2; | |
cd096152 | 4337 | bool _arg3 = (bool ) FALSE; |
1d99702e | 4338 | PyObject * _argo0 = 0; |
8ab979d7 | 4339 | PyObject * _obj2 = 0; |
cd096152 RD |
4340 | int tempbool3 = (int) FALSE; |
4341 | char *_kwnames[] = { "self","start","str","partial", NULL }; | |
8ab979d7 RD |
4342 | |
4343 | self = self; | |
cd096152 | 4344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
8ab979d7 | 4345 | return NULL; |
1d99702e RD |
4346 | if (_argo0) { |
4347 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4348 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4350 | return NULL; |
4351 | } | |
4352 | } | |
4353 | { | |
c8bc7bb8 RD |
4354 | _arg2 = wxString_in_helper(_obj2); |
4355 | if (_arg2 == NULL) | |
8ab979d7 | 4356 | return NULL; |
8ab979d7 | 4357 | } |
cd096152 | 4358 | _arg3 = (bool ) tempbool3; |
cf694132 | 4359 | { |
474c48f9 | 4360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4361 | _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4362 | |
474c48f9 | 4363 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4364 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4365 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4366 | { |
4367 | if (_obj2) | |
4368 | delete _arg2; | |
4369 | } | |
4370 | return _resultobj; | |
4371 | } | |
4372 | ||
cd096152 RD |
4373 | #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1)) |
4374 | static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4375 | PyObject * _resultobj; |
cd096152 RD |
4376 | long _result; |
4377 | wxPyListCtrl * _arg0; | |
4378 | long _arg1; | |
4379 | long _arg2; | |
1d99702e | 4380 | PyObject * _argo0 = 0; |
cd096152 | 4381 | char *_kwnames[] = { "self","start","data", NULL }; |
8ab979d7 RD |
4382 | |
4383 | self = self; | |
cd096152 | 4384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4385 | return NULL; |
1d99702e RD |
4386 | if (_argo0) { |
4387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4390 | return NULL; |
4391 | } | |
4392 | } | |
cf694132 | 4393 | { |
474c48f9 | 4394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4395 | _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2); |
cf694132 | 4396 | |
474c48f9 | 4397 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4398 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4399 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4400 | return _resultobj; |
4401 | } | |
4402 | ||
cd096152 RD |
4403 | #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4404 | static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4405 | PyObject * _resultobj; |
cd096152 RD |
4406 | long _result; |
4407 | wxPyListCtrl * _arg0; | |
4408 | long _arg1; | |
4409 | wxPoint * _arg2; | |
4410 | int _arg3; | |
1d99702e | 4411 | PyObject * _argo0 = 0; |
cd096152 RD |
4412 | wxPoint temp; |
4413 | PyObject * _obj2 = 0; | |
4414 | char *_kwnames[] = { "self","start","pt","direction", NULL }; | |
8ab979d7 RD |
4415 | |
4416 | self = self; | |
cd096152 | 4417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4418 | return NULL; |
1d99702e RD |
4419 | if (_argo0) { |
4420 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4421 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4423 | return NULL; |
4424 | } | |
4425 | } | |
f6bcfd97 | 4426 | { |
cd096152 RD |
4427 | _arg2 = &temp; |
4428 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 4429 | return NULL; |
f6bcfd97 | 4430 | } |
cf694132 | 4431 | { |
474c48f9 | 4432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4433 | _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4434 | |
474c48f9 | 4435 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4436 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4437 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4438 | return _resultobj; |
4439 | } | |
4440 | ||
cd096152 RD |
4441 | #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
4442 | static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4443 | PyObject * _resultobj; |
cd096152 RD |
4444 | long _result; |
4445 | wxPyListCtrl * _arg0; | |
4446 | wxPoint * _arg1; | |
4447 | int * _arg2; | |
4448 | int temp; | |
1d99702e | 4449 | PyObject * _argo0 = 0; |
cd096152 RD |
4450 | wxPoint temp0; |
4451 | PyObject * _obj1 = 0; | |
4452 | char *_kwnames[] = { "self","point", NULL }; | |
8ab979d7 RD |
4453 | |
4454 | self = self; | |
cf694132 | 4455 | { |
cd096152 | 4456 | _arg2 = &temp; |
8ab979d7 | 4457 | } |
cd096152 | 4458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4459 | return NULL; |
1d99702e RD |
4460 | if (_argo0) { |
4461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4464 | return NULL; |
4465 | } | |
4466 | } | |
cf694132 | 4467 | { |
cd096152 RD |
4468 | _arg1 = &temp0; |
4469 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4470 | return NULL; |
cd096152 | 4471 | } |
cf694132 | 4472 | { |
474c48f9 | 4473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4474 | _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2); |
cf694132 | 4475 | |
474c48f9 | 4476 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4477 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4478 | } _resultobj = Py_BuildValue("l",_result); |
4479 | { | |
4480 | PyObject *o; | |
4481 | o = PyInt_FromLong((long) (*_arg2)); | |
4482 | _resultobj = t_output_helper(_resultobj, o); | |
4483 | } | |
8ab979d7 RD |
4484 | return _resultobj; |
4485 | } | |
4486 | ||
cd096152 RD |
4487 | #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0)) |
4488 | static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4489 | PyObject * _resultobj; |
cd096152 RD |
4490 | long _result; |
4491 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4492 | wxListItem * _arg1; |
1d99702e RD |
4493 | PyObject * _argo0 = 0; |
4494 | PyObject * _argo1 = 0; | |
efc5f224 | 4495 | char *_kwnames[] = { "self","info", NULL }; |
8ab979d7 RD |
4496 | |
4497 | self = self; | |
cd096152 | 4498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4499 | return NULL; |
1d99702e RD |
4500 | if (_argo0) { |
4501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4504 | return NULL; |
4505 | } | |
4506 | } | |
1d99702e RD |
4507 | if (_argo1) { |
4508 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4509 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
cd096152 | 4510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p."); |
8ab979d7 RD |
4511 | return NULL; |
4512 | } | |
4513 | } | |
cf694132 | 4514 | { |
474c48f9 | 4515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4516 | _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1); |
cf694132 | 4517 | |
474c48f9 | 4518 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4519 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4520 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4521 | return _resultobj; |
4522 | } | |
4523 | ||
cd096152 RD |
4524 | #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) |
4525 | static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4526 | PyObject * _resultobj; |
4527 | long _result; | |
cd096152 | 4528 | wxPyListCtrl * _arg0; |
8ab979d7 | 4529 | long _arg1; |
cd096152 | 4530 | wxString * _arg2; |
1d99702e | 4531 | PyObject * _argo0 = 0; |
cd096152 RD |
4532 | PyObject * _obj2 = 0; |
4533 | char *_kwnames[] = { "self","index","label", NULL }; | |
8ab979d7 RD |
4534 | |
4535 | self = self; | |
cd096152 | 4536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4537 | return NULL; |
1d99702e RD |
4538 | if (_argo0) { |
4539 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4540 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4542 | return NULL; |
4543 | } | |
4544 | } | |
4545 | { | |
c8bc7bb8 RD |
4546 | _arg2 = wxString_in_helper(_obj2); |
4547 | if (_arg2 == NULL) | |
8ab979d7 | 4548 | return NULL; |
8ab979d7 | 4549 | } |
cf694132 | 4550 | { |
474c48f9 | 4551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4552 | _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2); |
cf694132 | 4553 | |
474c48f9 | 4554 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4555 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4556 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 4557 | { |
cd096152 RD |
4558 | if (_obj2) |
4559 | delete _arg2; | |
4560 | } | |
8ab979d7 RD |
4561 | return _resultobj; |
4562 | } | |
4563 | ||
cd096152 RD |
4564 | #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) |
4565 | static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4566 | PyObject * _resultobj; |
cd096152 RD |
4567 | long _result; |
4568 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4569 | long _arg1; |
4570 | int _arg2; | |
1d99702e | 4571 | PyObject * _argo0 = 0; |
cd096152 | 4572 | char *_kwnames[] = { "self","index","imageIndex", NULL }; |
8ab979d7 RD |
4573 | |
4574 | self = self; | |
cd096152 | 4575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4576 | return NULL; |
1d99702e RD |
4577 | if (_argo0) { |
4578 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4579 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4581 | return NULL; |
4582 | } | |
4583 | } | |
cf694132 | 4584 | { |
474c48f9 | 4585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4586 | _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2); |
cf694132 | 4587 | |
474c48f9 | 4588 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4589 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4590 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4591 | return _resultobj; |
4592 | } | |
4593 | ||
cd096152 RD |
4594 | #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2)) |
4595 | static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4596 | PyObject * _resultobj; |
cd096152 RD |
4597 | long _result; |
4598 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4599 | long _arg1; |
cd096152 RD |
4600 | wxString * _arg2; |
4601 | int _arg3; | |
1d99702e | 4602 | PyObject * _argo0 = 0; |
2f90df85 | 4603 | PyObject * _obj2 = 0; |
cd096152 | 4604 | char *_kwnames[] = { "self","index","label","imageIndex", NULL }; |
8ab979d7 RD |
4605 | |
4606 | self = self; | |
cd096152 | 4607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4608 | return NULL; |
1d99702e RD |
4609 | if (_argo0) { |
4610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4613 | return NULL; |
4614 | } | |
4615 | } | |
2f90df85 | 4616 | { |
c8bc7bb8 RD |
4617 | _arg2 = wxString_in_helper(_obj2); |
4618 | if (_arg2 == NULL) | |
8ab979d7 | 4619 | return NULL; |
2f90df85 | 4620 | } |
cf694132 | 4621 | { |
474c48f9 | 4622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4623 | _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4624 | |
474c48f9 | 4625 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4626 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4627 | } _resultobj = Py_BuildValue("l",_result); |
4628 | { | |
4629 | if (_obj2) | |
4630 | delete _arg2; | |
4631 | } | |
8ab979d7 RD |
4632 | return _resultobj; |
4633 | } | |
4634 | ||
cd096152 RD |
4635 | #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) |
4636 | static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4637 | PyObject * _resultobj; |
cd096152 RD |
4638 | long _result; |
4639 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4640 | long _arg1; |
cd096152 | 4641 | wxListItem * _arg2; |
1d99702e | 4642 | PyObject * _argo0 = 0; |
cd096152 RD |
4643 | PyObject * _argo2 = 0; |
4644 | char *_kwnames[] = { "self","col","info", NULL }; | |
8ab979d7 RD |
4645 | |
4646 | self = self; | |
cd096152 | 4647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2)) |
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_InsertColumnInfo. Expected _wxPyListCtrl_p."); | |
4653 | return NULL; | |
4654 | } | |
4655 | } | |
4656 | if (_argo2) { | |
4657 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4658 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
4659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p."); | |
8ab979d7 RD |
4660 | return NULL; |
4661 | } | |
4662 | } | |
cf694132 | 4663 | { |
474c48f9 | 4664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4665 | _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2); |
cf694132 | 4666 | |
474c48f9 | 4667 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4668 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4669 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4670 | return _resultobj; |
4671 | } | |
4672 | ||
cd096152 RD |
4673 | #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4674 | static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4675 | PyObject * _resultobj; |
cd096152 RD |
4676 | long _result; |
4677 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4678 | long _arg1; |
4679 | wxString * _arg2; | |
cd096152 RD |
4680 | int _arg3 = (int ) (wxLIST_FORMAT_LEFT); |
4681 | int _arg4 = (int ) -1; | |
1d99702e | 4682 | PyObject * _argo0 = 0; |
8ab979d7 | 4683 | PyObject * _obj2 = 0; |
cd096152 | 4684 | char *_kwnames[] = { "self","col","heading","format","width", NULL }; |
8ab979d7 RD |
4685 | |
4686 | self = self; | |
cd096152 | 4687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 4688 | return NULL; |
1d99702e RD |
4689 | if (_argo0) { |
4690 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4693 | return NULL; |
4694 | } | |
4695 | } | |
4696 | { | |
c8bc7bb8 RD |
4697 | _arg2 = wxString_in_helper(_obj2); |
4698 | if (_arg2 == NULL) | |
8ab979d7 | 4699 | return NULL; |
8ab979d7 | 4700 | } |
cf694132 | 4701 | { |
474c48f9 | 4702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4703 | _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4); |
cf694132 | 4704 | |
474c48f9 | 4705 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4706 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4707 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4708 | { |
4709 | if (_obj2) | |
4710 | delete _arg2; | |
4711 | } | |
4712 | return _resultobj; | |
4713 | } | |
4714 | ||
cd096152 RD |
4715 | #define wxListCtrl_SetItemCount(_swigobj,_swigarg0) (_swigobj->SetItemCount(_swigarg0)) |
4716 | static PyObject *_wrap_wxListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4717 | PyObject * _resultobj; |
cd096152 | 4718 | wxPyListCtrl * _arg0; |
8ab979d7 | 4719 | long _arg1; |
1d99702e | 4720 | PyObject * _argo0 = 0; |
cd096152 | 4721 | char *_kwnames[] = { "self","count", NULL }; |
8ab979d7 RD |
4722 | |
4723 | self = self; | |
cd096152 | 4724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetItemCount",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4725 | return NULL; |
1d99702e RD |
4726 | if (_argo0) { |
4727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4730 | return NULL; |
4731 | } | |
4732 | } | |
cf694132 | 4733 | { |
474c48f9 | 4734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4735 | wxListCtrl_SetItemCount(_arg0,_arg1); |
cf694132 | 4736 | |
474c48f9 | 4737 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4738 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4739 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4740 | _resultobj = Py_None; |
4741 | return _resultobj; | |
4742 | } | |
4743 | ||
cd096152 RD |
4744 | #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1)) |
4745 | static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4746 | PyObject * _resultobj; |
cd096152 RD |
4747 | bool _result; |
4748 | wxPyListCtrl * _arg0; | |
4749 | int _arg1; | |
4750 | int _arg2; | |
1d99702e | 4751 | PyObject * _argo0 = 0; |
cd096152 | 4752 | char *_kwnames[] = { "self","dx","dy", NULL }; |
8ab979d7 RD |
4753 | |
4754 | self = self; | |
cd096152 | 4755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4756 | return NULL; |
1d99702e RD |
4757 | if (_argo0) { |
4758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4761 | return NULL; |
4762 | } | |
4763 | } | |
cf694132 | 4764 | { |
474c48f9 | 4765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4766 | _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2); |
cf694132 | 4767 | |
474c48f9 | 4768 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4769 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4770 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4771 | return _resultobj; |
4772 | } | |
4773 | ||
8381e4cd RD |
4774 | #define wxListCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
4775 | static PyObject *_wrap_wxListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4776 | PyObject * _resultobj; | |
4777 | wxPyListCtrl * _arg0; | |
4778 | long _arg1; | |
4779 | wxColour * _arg2; | |
4780 | PyObject * _argo0 = 0; | |
4781 | wxColour temp; | |
4782 | PyObject * _obj2 = 0; | |
4783 | char *_kwnames[] = { "self","item","col", NULL }; | |
4784 | ||
4785 | self = self; | |
4786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemTextColour",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4787 | return NULL; | |
4788 | if (_argo0) { | |
4789 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4790 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemTextColour. Expected _wxPyListCtrl_p."); | |
4792 | return NULL; | |
4793 | } | |
4794 | } | |
4795 | { | |
4796 | _arg2 = &temp; | |
4797 | if (! wxColour_helper(_obj2, &_arg2)) | |
4798 | return NULL; | |
4799 | } | |
4800 | { | |
4801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4802 | wxListCtrl_SetItemTextColour(_arg0,_arg1,*_arg2); | |
4803 | ||
4804 | wxPyEndAllowThreads(__tstate); | |
4805 | if (PyErr_Occurred()) return NULL; | |
4806 | } Py_INCREF(Py_None); | |
4807 | _resultobj = Py_None; | |
4808 | return _resultobj; | |
4809 | } | |
4810 | ||
4811 | #define wxListCtrl_GetItemTextColour(_swigobj,_swigarg0) (_swigobj->GetItemTextColour(_swigarg0)) | |
4812 | static PyObject *_wrap_wxListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4813 | PyObject * _resultobj; | |
4814 | wxColour * _result; | |
4815 | wxPyListCtrl * _arg0; | |
4816 | long _arg1; | |
4817 | PyObject * _argo0 = 0; | |
4818 | char *_kwnames[] = { "self","item", NULL }; | |
4819 | char _ptemp[128]; | |
4820 | ||
4821 | self = self; | |
4822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemTextColour",_kwnames,&_argo0,&_arg1)) | |
4823 | return NULL; | |
4824 | if (_argo0) { | |
4825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemTextColour. Expected _wxPyListCtrl_p."); | |
4828 | return NULL; | |
4829 | } | |
4830 | } | |
4831 | { | |
4832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4833 | _result = new wxColour (wxListCtrl_GetItemTextColour(_arg0,_arg1)); | |
4834 | ||
4835 | wxPyEndAllowThreads(__tstate); | |
4836 | if (PyErr_Occurred()) return NULL; | |
4837 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
4838 | _resultobj = Py_BuildValue("s",_ptemp); | |
4839 | return _resultobj; | |
4840 | } | |
4841 | ||
4842 | #define wxListCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
4843 | static PyObject *_wrap_wxListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4844 | PyObject * _resultobj; | |
4845 | wxPyListCtrl * _arg0; | |
4846 | long _arg1; | |
4847 | wxColour * _arg2; | |
4848 | PyObject * _argo0 = 0; | |
4849 | wxColour temp; | |
4850 | PyObject * _obj2 = 0; | |
4851 | char *_kwnames[] = { "self","item","col", NULL }; | |
4852 | ||
4853 | self = self; | |
4854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4855 | return NULL; | |
4856 | if (_argo0) { | |
4857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemBackgroundColour. Expected _wxPyListCtrl_p."); | |
4860 | return NULL; | |
4861 | } | |
4862 | } | |
4863 | { | |
4864 | _arg2 = &temp; | |
4865 | if (! wxColour_helper(_obj2, &_arg2)) | |
4866 | return NULL; | |
4867 | } | |
4868 | { | |
4869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4870 | wxListCtrl_SetItemBackgroundColour(_arg0,_arg1,*_arg2); | |
4871 | ||
4872 | wxPyEndAllowThreads(__tstate); | |
4873 | if (PyErr_Occurred()) return NULL; | |
4874 | } Py_INCREF(Py_None); | |
4875 | _resultobj = Py_None; | |
4876 | return _resultobj; | |
4877 | } | |
4878 | ||
4879 | #define wxListCtrl_GetItemBackgroundColour(_swigobj,_swigarg0) (_swigobj->GetItemBackgroundColour(_swigarg0)) | |
4880 | static PyObject *_wrap_wxListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4881 | PyObject * _resultobj; | |
4882 | wxColour * _result; | |
4883 | wxPyListCtrl * _arg0; | |
4884 | long _arg1; | |
4885 | PyObject * _argo0 = 0; | |
4886 | char *_kwnames[] = { "self","item", NULL }; | |
4887 | char _ptemp[128]; | |
4888 | ||
4889 | self = self; | |
4890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemBackgroundColour",_kwnames,&_argo0,&_arg1)) | |
4891 | return NULL; | |
4892 | if (_argo0) { | |
4893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemBackgroundColour. Expected _wxPyListCtrl_p."); | |
4896 | return NULL; | |
4897 | } | |
4898 | } | |
4899 | { | |
4900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4901 | _result = new wxColour (wxListCtrl_GetItemBackgroundColour(_arg0,_arg1)); | |
4902 | ||
4903 | wxPyEndAllowThreads(__tstate); | |
4904 | if (PyErr_Occurred()) return NULL; | |
4905 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
4906 | _resultobj = Py_BuildValue("s",_ptemp); | |
4907 | return _resultobj; | |
4908 | } | |
4909 | ||
cd096152 | 4910 | static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject * func) { |
dcd38683 RD |
4911 | if (!PyCallable_Check(func)) |
4912 | return FALSE; | |
f6bcfd97 | 4913 | return self->SortItems(wxPyListCtrl_SortItems, (long)func); |
dcd38683 RD |
4914 | } |
4915 | static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4916 | PyObject * _resultobj; | |
4917 | bool _result; | |
cd096152 | 4918 | wxPyListCtrl * _arg0; |
dcd38683 RD |
4919 | PyObject * _arg1; |
4920 | PyObject * _argo0 = 0; | |
4921 | PyObject * _obj1 = 0; | |
4922 | char *_kwnames[] = { "self","func", NULL }; | |
4923 | ||
4924 | self = self; | |
4925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1)) | |
4926 | return NULL; | |
4927 | if (_argo0) { | |
4928 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4929 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxPyListCtrl_p."); | |
dcd38683 RD |
4931 | return NULL; |
4932 | } | |
4933 | } | |
4934 | { | |
4935 | _arg1 = _obj1; | |
4936 | } | |
4937 | { | |
474c48f9 | 4938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4939 | _result = (bool )wxPyListCtrl_SortItems(_arg0,_arg1); |
dcd38683 | 4940 | |
474c48f9 | 4941 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4942 | if (PyErr_Occurred()) return NULL; |
dcd38683 RD |
4943 | } _resultobj = Py_BuildValue("i",_result); |
4944 | return _resultobj; | |
4945 | } | |
4946 | ||
57ee4c3b RD |
4947 | static wxWindow * wxPyListCtrl_GetMainWindow(wxPyListCtrl *self) { |
4948 | #ifdef __WXMSW__ | |
4949 | return self; | |
4950 | #else | |
4951 | return (wxWindow*)self->m_mainWin; | |
4952 | #endif | |
4953 | } | |
4954 | static PyObject *_wrap_wxListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4955 | PyObject * _resultobj; | |
4956 | wxWindow * _result; | |
4957 | wxPyListCtrl * _arg0; | |
4958 | PyObject * _argo0 = 0; | |
4959 | char *_kwnames[] = { "self", NULL }; | |
4960 | ||
4961 | self = self; | |
4962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetMainWindow",_kwnames,&_argo0)) | |
4963 | return NULL; | |
4964 | if (_argo0) { | |
4965 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4966 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetMainWindow. Expected _wxPyListCtrl_p."); | |
4968 | return NULL; | |
4969 | } | |
4970 | } | |
4971 | { | |
4972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4973 | _result = (wxWindow *)wxPyListCtrl_GetMainWindow(_arg0); | |
4974 | ||
4975 | wxPyEndAllowThreads(__tstate); | |
4976 | if (PyErr_Occurred()) return NULL; | |
4977 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
4978 | return _resultobj; | |
4979 | } | |
4980 | ||
059a841c RD |
4981 | static void *SwigwxListViewTowxPyListCtrl(void *ptr) { |
4982 | wxListView *src; | |
4983 | wxPyListCtrl *dest; | |
4984 | src = (wxListView *) ptr; | |
4985 | dest = (wxPyListCtrl *) src; | |
4986 | return (void *) dest; | |
4987 | } | |
4988 | ||
4989 | static void *SwigwxListViewTowxControl(void *ptr) { | |
4990 | wxListView *src; | |
4991 | wxControl *dest; | |
4992 | src = (wxListView *) ptr; | |
4993 | dest = (wxControl *) src; | |
4994 | return (void *) dest; | |
4995 | } | |
4996 | ||
4997 | static void *SwigwxListViewTowxWindow(void *ptr) { | |
4998 | wxListView *src; | |
4999 | wxWindow *dest; | |
5000 | src = (wxListView *) ptr; | |
5001 | dest = (wxWindow *) src; | |
5002 | return (void *) dest; | |
5003 | } | |
5004 | ||
5005 | static void *SwigwxListViewTowxEvtHandler(void *ptr) { | |
5006 | wxListView *src; | |
5007 | wxEvtHandler *dest; | |
5008 | src = (wxListView *) ptr; | |
5009 | dest = (wxEvtHandler *) src; | |
5010 | return (void *) dest; | |
5011 | } | |
5012 | ||
5013 | static void *SwigwxListViewTowxObject(void *ptr) { | |
5014 | wxListView *src; | |
5015 | wxObject *dest; | |
5016 | src = (wxListView *) ptr; | |
5017 | dest = (wxObject *) src; | |
5018 | return (void *) dest; | |
5019 | } | |
5020 | ||
5021 | #define new_wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5022 | static PyObject *_wrap_new_wxListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5023 | PyObject * _resultobj; | |
5024 | wxListView * _result; | |
5025 | wxWindow * _arg0; | |
5026 | wxWindowID _arg1 = (wxWindowID ) -1; | |
5027 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
5028 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5029 | long _arg4 = (long ) (wxLC_REPORT); | |
5030 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 5031 | wxString * _arg6 = (wxString *) &wxPyListCtrlNameStr; |
059a841c RD |
5032 | PyObject * _argo0 = 0; |
5033 | wxPoint temp; | |
5034 | PyObject * _obj2 = 0; | |
5035 | wxSize temp0; | |
5036 | PyObject * _obj3 = 0; | |
5037 | PyObject * _argo5 = 0; | |
5038 | PyObject * _obj6 = 0; | |
5039 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
5040 | char _ptemp[128]; | |
5041 | ||
5042 | self = self; | |
5043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListView",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) | |
5044 | return NULL; | |
5045 | if (_argo0) { | |
5046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListView. Expected _wxWindow_p."); | |
5049 | return NULL; | |
5050 | } | |
5051 | } | |
5052 | if (_obj2) | |
5053 | { | |
5054 | _arg2 = &temp; | |
5055 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5056 | return NULL; | |
5057 | } | |
5058 | if (_obj3) | |
5059 | { | |
5060 | _arg3 = &temp0; | |
5061 | if (! wxSize_helper(_obj3, &_arg3)) | |
5062 | return NULL; | |
5063 | } | |
5064 | if (_argo5) { | |
5065 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5066 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
5067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListView. Expected _wxValidator_p."); | |
5068 | return NULL; | |
5069 | } | |
5070 | } | |
5071 | if (_obj6) | |
5072 | { | |
c8bc7bb8 RD |
5073 | _arg6 = wxString_in_helper(_obj6); |
5074 | if (_arg6 == NULL) | |
059a841c | 5075 | return NULL; |
059a841c RD |
5076 | } |
5077 | { | |
474c48f9 | 5078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5079 | _result = (wxListView *)new_wxListView(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
059a841c | 5080 | |
474c48f9 | 5081 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5082 | if (PyErr_Occurred()) return NULL; |
5083 | } if (_result) { | |
5084 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5085 | _resultobj = Py_BuildValue("s",_ptemp); | |
5086 | } else { | |
5087 | Py_INCREF(Py_None); | |
5088 | _resultobj = Py_None; | |
5089 | } | |
5090 | { | |
5091 | if (_obj6) | |
5092 | delete _arg6; | |
5093 | } | |
5094 | return _resultobj; | |
5095 | } | |
5096 | ||
5097 | #define new_wxPreListView() (new wxListView()) | |
5098 | static PyObject *_wrap_new_wxPreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5099 | PyObject * _resultobj; | |
5100 | wxListView * _result; | |
5101 | char *_kwnames[] = { NULL }; | |
5102 | char _ptemp[128]; | |
5103 | ||
5104 | self = self; | |
5105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListView",_kwnames)) | |
5106 | return NULL; | |
5107 | { | |
474c48f9 | 5108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5109 | _result = (wxListView *)new_wxPreListView(); |
059a841c | 5110 | |
474c48f9 | 5111 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5112 | if (PyErr_Occurred()) return NULL; |
5113 | } if (_result) { | |
5114 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5115 | _resultobj = Py_BuildValue("s",_ptemp); | |
5116 | } else { | |
5117 | Py_INCREF(Py_None); | |
5118 | _resultobj = Py_None; | |
5119 | } | |
5120 | return _resultobj; | |
5121 | } | |
5122 | ||
5123 | #define wxListView_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5124 | static PyObject *_wrap_wxListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5125 | PyObject * _resultobj; | |
5126 | bool _result; | |
5127 | wxListView * _arg0; | |
5128 | wxWindow * _arg1; | |
5129 | wxWindowID _arg2 = (wxWindowID ) -1; | |
5130 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5131 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5132 | long _arg5 = (long ) (wxLC_REPORT); | |
5133 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 5134 | wxString * _arg7 = (wxString *) &wxPyListCtrlNameStr; |
059a841c RD |
5135 | PyObject * _argo0 = 0; |
5136 | PyObject * _argo1 = 0; | |
5137 | wxPoint temp; | |
5138 | PyObject * _obj3 = 0; | |
5139 | wxSize temp0; | |
5140 | PyObject * _obj4 = 0; | |
5141 | PyObject * _argo6 = 0; | |
5142 | PyObject * _obj7 = 0; | |
5143 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
5144 | ||
5145 | self = self; | |
5146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListView_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
5147 | return NULL; | |
5148 | if (_argo0) { | |
5149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Create. Expected _wxListView_p."); | |
5152 | return NULL; | |
5153 | } | |
5154 | } | |
5155 | if (_argo1) { | |
5156 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5157 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListView_Create. Expected _wxWindow_p."); | |
5159 | return NULL; | |
5160 | } | |
5161 | } | |
5162 | if (_obj3) | |
5163 | { | |
5164 | _arg3 = &temp; | |
5165 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5166 | return NULL; | |
5167 | } | |
5168 | if (_obj4) | |
5169 | { | |
5170 | _arg4 = &temp0; | |
5171 | if (! wxSize_helper(_obj4, &_arg4)) | |
5172 | return NULL; | |
5173 | } | |
5174 | if (_argo6) { | |
5175 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
5176 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
5177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListView_Create. Expected _wxValidator_p."); | |
5178 | return NULL; | |
5179 | } | |
5180 | } | |
5181 | if (_obj7) | |
5182 | { | |
c8bc7bb8 RD |
5183 | _arg7 = wxString_in_helper(_obj7); |
5184 | if (_arg7 == NULL) | |
059a841c | 5185 | return NULL; |
059a841c RD |
5186 | } |
5187 | { | |
474c48f9 | 5188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5189 | _result = (bool )wxListView_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
059a841c | 5190 | |
474c48f9 | 5191 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5192 | if (PyErr_Occurred()) return NULL; |
5193 | } _resultobj = Py_BuildValue("i",_result); | |
5194 | { | |
5195 | if (_obj7) | |
5196 | delete _arg7; | |
5197 | } | |
5198 | return _resultobj; | |
5199 | } | |
5200 | ||
5201 | #define wxListView_Select(_swigobj,_swigarg0,_swigarg1) (_swigobj->Select(_swigarg0,_swigarg1)) | |
5202 | static PyObject *_wrap_wxListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5203 | PyObject * _resultobj; | |
5204 | wxListView * _arg0; | |
5205 | long _arg1; | |
5206 | bool _arg2 = (bool ) TRUE; | |
5207 | PyObject * _argo0 = 0; | |
5208 | int tempbool2 = (int) TRUE; | |
5209 | char *_kwnames[] = { "self","n","on", NULL }; | |
5210 | ||
5211 | self = self; | |
5212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListView_Select",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
5213 | return NULL; | |
5214 | if (_argo0) { | |
5215 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Select. Expected _wxListView_p."); | |
5218 | return NULL; | |
5219 | } | |
5220 | } | |
5221 | _arg2 = (bool ) tempbool2; | |
5222 | { | |
474c48f9 | 5223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5224 | wxListView_Select(_arg0,_arg1,_arg2); |
059a841c | 5225 | |
474c48f9 | 5226 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5227 | if (PyErr_Occurred()) return NULL; |
5228 | } Py_INCREF(Py_None); | |
5229 | _resultobj = Py_None; | |
5230 | return _resultobj; | |
5231 | } | |
5232 | ||
5233 | #define wxListView_Focus(_swigobj,_swigarg0) (_swigobj->Focus(_swigarg0)) | |
5234 | static PyObject *_wrap_wxListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5235 | PyObject * _resultobj; | |
5236 | wxListView * _arg0; | |
5237 | long _arg1; | |
5238 | PyObject * _argo0 = 0; | |
5239 | char *_kwnames[] = { "self","index", NULL }; | |
5240 | ||
5241 | self = self; | |
5242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_Focus",_kwnames,&_argo0,&_arg1)) | |
5243 | return NULL; | |
5244 | if (_argo0) { | |
5245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Focus. Expected _wxListView_p."); | |
5248 | return NULL; | |
5249 | } | |
5250 | } | |
5251 | { | |
474c48f9 | 5252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5253 | wxListView_Focus(_arg0,_arg1); |
059a841c | 5254 | |
474c48f9 | 5255 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5256 | if (PyErr_Occurred()) return NULL; |
5257 | } Py_INCREF(Py_None); | |
5258 | _resultobj = Py_None; | |
5259 | return _resultobj; | |
5260 | } | |
5261 | ||
5262 | #define wxListView_GetFocusedItem(_swigobj) (_swigobj->GetFocusedItem()) | |
5263 | static PyObject *_wrap_wxListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5264 | PyObject * _resultobj; | |
5265 | long _result; | |
5266 | wxListView * _arg0; | |
5267 | PyObject * _argo0 = 0; | |
5268 | char *_kwnames[] = { "self", NULL }; | |
5269 | ||
5270 | self = self; | |
5271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFocusedItem",_kwnames,&_argo0)) | |
5272 | return NULL; | |
5273 | if (_argo0) { | |
5274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFocusedItem. Expected _wxListView_p."); | |
5277 | return NULL; | |
5278 | } | |
5279 | } | |
5280 | { | |
474c48f9 | 5281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5282 | _result = (long )wxListView_GetFocusedItem(_arg0); |
059a841c | 5283 | |
474c48f9 | 5284 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5285 | if (PyErr_Occurred()) return NULL; |
5286 | } _resultobj = Py_BuildValue("l",_result); | |
5287 | return _resultobj; | |
5288 | } | |
5289 | ||
5290 | #define wxListView_GetNextSelected(_swigobj,_swigarg0) (_swigobj->GetNextSelected(_swigarg0)) | |
5291 | static PyObject *_wrap_wxListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5292 | PyObject * _resultobj; | |
5293 | long _result; | |
5294 | wxListView * _arg0; | |
5295 | long _arg1; | |
5296 | PyObject * _argo0 = 0; | |
5297 | char *_kwnames[] = { "self","item", NULL }; | |
5298 | ||
5299 | self = self; | |
5300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_GetNextSelected",_kwnames,&_argo0,&_arg1)) | |
5301 | return NULL; | |
5302 | if (_argo0) { | |
5303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetNextSelected. Expected _wxListView_p."); | |
5306 | return NULL; | |
5307 | } | |
5308 | } | |
5309 | { | |
474c48f9 | 5310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5311 | _result = (long )wxListView_GetNextSelected(_arg0,_arg1); |
059a841c | 5312 | |
474c48f9 | 5313 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5314 | if (PyErr_Occurred()) return NULL; |
5315 | } _resultobj = Py_BuildValue("l",_result); | |
5316 | return _resultobj; | |
5317 | } | |
5318 | ||
5319 | #define wxListView_GetFirstSelected(_swigobj) (_swigobj->GetFirstSelected()) | |
5320 | static PyObject *_wrap_wxListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5321 | PyObject * _resultobj; | |
5322 | long _result; | |
5323 | wxListView * _arg0; | |
5324 | PyObject * _argo0 = 0; | |
5325 | char *_kwnames[] = { "self", NULL }; | |
5326 | ||
5327 | self = self; | |
5328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFirstSelected",_kwnames,&_argo0)) | |
5329 | return NULL; | |
5330 | if (_argo0) { | |
5331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFirstSelected. Expected _wxListView_p."); | |
5334 | return NULL; | |
5335 | } | |
5336 | } | |
5337 | { | |
474c48f9 | 5338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5339 | _result = (long )wxListView_GetFirstSelected(_arg0); |
059a841c | 5340 | |
474c48f9 | 5341 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5342 | if (PyErr_Occurred()) return NULL; |
5343 | } _resultobj = Py_BuildValue("l",_result); | |
5344 | return _resultobj; | |
5345 | } | |
5346 | ||
5347 | #define wxListView_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) | |
5348 | static PyObject *_wrap_wxListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5349 | PyObject * _resultobj; | |
5350 | bool _result; | |
5351 | wxListView * _arg0; | |
5352 | long _arg1; | |
5353 | PyObject * _argo0 = 0; | |
5354 | char *_kwnames[] = { "self","index", NULL }; | |
5355 | ||
5356 | self = self; | |
5357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_IsSelected",_kwnames,&_argo0,&_arg1)) | |
5358 | return NULL; | |
5359 | if (_argo0) { | |
5360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_IsSelected. Expected _wxListView_p."); | |
5363 | return NULL; | |
5364 | } | |
5365 | } | |
5366 | { | |
474c48f9 | 5367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5368 | _result = (bool )wxListView_IsSelected(_arg0,_arg1); |
059a841c | 5369 | |
474c48f9 | 5370 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5371 | if (PyErr_Occurred()) return NULL; |
5372 | } _resultobj = Py_BuildValue("i",_result); | |
5373 | return _resultobj; | |
5374 | } | |
5375 | ||
5376 | #define wxListView_SetColumnImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnImage(_swigarg0,_swigarg1)) | |
5377 | static PyObject *_wrap_wxListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5378 | PyObject * _resultobj; | |
5379 | wxListView * _arg0; | |
5380 | int _arg1; | |
5381 | int _arg2; | |
5382 | PyObject * _argo0 = 0; | |
5383 | char *_kwnames[] = { "self","col","image", NULL }; | |
5384 | ||
5385 | self = self; | |
5386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListView_SetColumnImage",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5387 | return NULL; | |
5388 | if (_argo0) { | |
5389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_SetColumnImage. Expected _wxListView_p."); | |
5392 | return NULL; | |
5393 | } | |
5394 | } | |
5395 | { | |
474c48f9 | 5396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5397 | wxListView_SetColumnImage(_arg0,_arg1,_arg2); |
059a841c | 5398 | |
474c48f9 | 5399 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5400 | if (PyErr_Occurred()) return NULL; |
5401 | } Py_INCREF(Py_None); | |
5402 | _resultobj = Py_None; | |
5403 | return _resultobj; | |
5404 | } | |
5405 | ||
5406 | #define wxListView_ClearColumnImage(_swigobj,_swigarg0) (_swigobj->ClearColumnImage(_swigarg0)) | |
5407 | static PyObject *_wrap_wxListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5408 | PyObject * _resultobj; | |
5409 | wxListView * _arg0; | |
5410 | int _arg1; | |
5411 | PyObject * _argo0 = 0; | |
5412 | char *_kwnames[] = { "self","col", NULL }; | |
5413 | ||
5414 | self = self; | |
5415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListView_ClearColumnImage",_kwnames,&_argo0,&_arg1)) | |
5416 | return NULL; | |
5417 | if (_argo0) { | |
5418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_ClearColumnImage. Expected _wxListView_p."); | |
5421 | return NULL; | |
5422 | } | |
5423 | } | |
5424 | { | |
474c48f9 | 5425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5426 | wxListView_ClearColumnImage(_arg0,_arg1); |
059a841c | 5427 | |
474c48f9 | 5428 | wxPyEndAllowThreads(__tstate); |
059a841c RD |
5429 | if (PyErr_Occurred()) return NULL; |
5430 | } Py_INCREF(Py_None); | |
5431 | _resultobj = Py_None; | |
5432 | return _resultobj; | |
5433 | } | |
5434 | ||
aa2a5b86 RD |
5435 | #define new_wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
5436 | static PyObject *_wrap_new_wxTreeItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5437 | PyObject * _resultobj; |
aa2a5b86 RD |
5438 | wxTreeItemAttr * _result; |
5439 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5440 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5441 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5442 | wxColour temp; | |
5443 | PyObject * _obj0 = 0; | |
5444 | wxColour temp0; | |
5445 | PyObject * _obj1 = 0; | |
5446 | PyObject * _argo2 = 0; | |
5447 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
d5c9047a | 5448 | char _ptemp[128]; |
8ab979d7 RD |
5449 | |
5450 | self = self; | |
aa2a5b86 RD |
5451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTreeItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) |
5452 | return NULL; | |
5453 | if (_obj0) | |
5454 | { | |
5455 | _arg0 = &temp; | |
5456 | if (! wxColour_helper(_obj0, &_arg0)) | |
5457 | return NULL; | |
5458 | } | |
5459 | if (_obj1) | |
5460 | { | |
5461 | _arg1 = &temp0; | |
5462 | if (! wxColour_helper(_obj1, &_arg1)) | |
5463 | return NULL; | |
5464 | } | |
5465 | if (_argo2) { | |
5466 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5467 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
5468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTreeItemAttr. Expected _wxFont_p."); | |
8ab979d7 | 5469 | return NULL; |
aa2a5b86 RD |
5470 | } |
5471 | } | |
cf694132 | 5472 | { |
474c48f9 | 5473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5474 | _result = (wxTreeItemAttr *)new_wxTreeItemAttr(*_arg0,*_arg1,*_arg2); |
cf694132 | 5475 | |
474c48f9 | 5476 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5477 | if (PyErr_Occurred()) return NULL; |
1d99702e | 5478 | } if (_result) { |
aa2a5b86 | 5479 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemAttr_p"); |
1d99702e RD |
5480 | _resultobj = Py_BuildValue("s",_ptemp); |
5481 | } else { | |
5482 | Py_INCREF(Py_None); | |
5483 | _resultobj = Py_None; | |
5484 | } | |
8ab979d7 RD |
5485 | return _resultobj; |
5486 | } | |
5487 | ||
aa2a5b86 RD |
5488 | #define wxTreeItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
5489 | static PyObject *_wrap_wxTreeItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5490 | PyObject * _resultobj; |
aa2a5b86 RD |
5491 | wxTreeItemAttr * _arg0; |
5492 | wxColour * _arg1; | |
1d99702e | 5493 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
5494 | wxColour temp; |
5495 | PyObject * _obj1 = 0; | |
5496 | char *_kwnames[] = { "self","colText", NULL }; | |
8ab979d7 RD |
5497 | |
5498 | self = self; | |
aa2a5b86 | 5499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5500 | return NULL; |
1d99702e RD |
5501 | if (_argo0) { |
5502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetTextColour. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5505 | return NULL; |
5506 | } | |
5507 | } | |
aa2a5b86 RD |
5508 | { |
5509 | _arg1 = &temp; | |
5510 | if (! wxColour_helper(_obj1, &_arg1)) | |
5511 | return NULL; | |
5512 | } | |
cf694132 | 5513 | { |
474c48f9 | 5514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5515 | wxTreeItemAttr_SetTextColour(_arg0,*_arg1); |
cf694132 | 5516 | |
474c48f9 | 5517 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5518 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5519 | } Py_INCREF(Py_None); |
d5c9047a | 5520 | _resultobj = Py_None; |
8ab979d7 RD |
5521 | return _resultobj; |
5522 | } | |
5523 | ||
aa2a5b86 RD |
5524 | #define wxTreeItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
5525 | static PyObject *_wrap_wxTreeItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5526 | PyObject * _resultobj; |
aa2a5b86 RD |
5527 | wxTreeItemAttr * _arg0; |
5528 | wxColour * _arg1; | |
1d99702e | 5529 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
5530 | wxColour temp; |
5531 | PyObject * _obj1 = 0; | |
5532 | char *_kwnames[] = { "self","colBack", NULL }; | |
8ab979d7 RD |
5533 | |
5534 | self = self; | |
aa2a5b86 | 5535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5536 | return NULL; |
1d99702e RD |
5537 | if (_argo0) { |
5538 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5539 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5541 | return NULL; |
5542 | } | |
5543 | } | |
aa2a5b86 RD |
5544 | { |
5545 | _arg1 = &temp; | |
5546 | if (! wxColour_helper(_obj1, &_arg1)) | |
5547 | return NULL; | |
5548 | } | |
cf694132 | 5549 | { |
474c48f9 | 5550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5551 | wxTreeItemAttr_SetBackgroundColour(_arg0,*_arg1); |
cf694132 | 5552 | |
474c48f9 | 5553 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5554 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 RD |
5555 | } Py_INCREF(Py_None); |
5556 | _resultobj = Py_None; | |
8ab979d7 RD |
5557 | return _resultobj; |
5558 | } | |
5559 | ||
aa2a5b86 RD |
5560 | #define wxTreeItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
5561 | static PyObject *_wrap_wxTreeItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 5562 | PyObject * _resultobj; |
aa2a5b86 RD |
5563 | wxTreeItemAttr * _arg0; |
5564 | wxFont * _arg1; | |
f6bcfd97 BP |
5565 | PyObject * _argo0 = 0; |
5566 | PyObject * _argo1 = 0; | |
aa2a5b86 | 5567 | char *_kwnames[] = { "self","font", NULL }; |
f6bcfd97 BP |
5568 | |
5569 | self = self; | |
aa2a5b86 | 5570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) |
f6bcfd97 BP |
5571 | return NULL; |
5572 | if (_argo0) { | |
5573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetFont. Expected _wxTreeItemAttr_p."); | |
f6bcfd97 BP |
5576 | return NULL; |
5577 | } | |
5578 | } | |
5579 | if (_argo1) { | |
5580 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
aa2a5b86 RD |
5581 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { |
5582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemAttr_SetFont. Expected _wxFont_p."); | |
f6bcfd97 BP |
5583 | return NULL; |
5584 | } | |
5585 | } | |
5586 | { | |
474c48f9 | 5587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5588 | wxTreeItemAttr_SetFont(_arg0,*_arg1); |
f6bcfd97 | 5589 | |
474c48f9 | 5590 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5591 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 RD |
5592 | } Py_INCREF(Py_None); |
5593 | _resultobj = Py_None; | |
f6bcfd97 BP |
5594 | return _resultobj; |
5595 | } | |
5596 | ||
aa2a5b86 RD |
5597 | #define wxTreeItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) |
5598 | static PyObject *_wrap_wxTreeItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5599 | PyObject * _resultobj; |
aa2a5b86 RD |
5600 | bool _result; |
5601 | wxTreeItemAttr * _arg0; | |
5602 | PyObject * _argo0 = 0; | |
5603 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
5604 | |
5605 | self = self; | |
aa2a5b86 | 5606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasTextColour",_kwnames,&_argo0)) |
8ab979d7 | 5607 | return NULL; |
aa2a5b86 RD |
5608 | if (_argo0) { |
5609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasTextColour. Expected _wxTreeItemAttr_p."); | |
5612 | return NULL; | |
5613 | } | |
5614 | } | |
cf694132 | 5615 | { |
474c48f9 | 5616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5617 | _result = (bool )wxTreeItemAttr_HasTextColour(_arg0); |
cf694132 | 5618 | |
474c48f9 | 5619 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5620 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5621 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5622 | return _resultobj; |
5623 | } | |
5624 | ||
aa2a5b86 RD |
5625 | #define wxTreeItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) |
5626 | static PyObject *_wrap_wxTreeItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 5627 | PyObject * _resultobj; |
aa2a5b86 RD |
5628 | bool _result; |
5629 | wxTreeItemAttr * _arg0; | |
1d99702e | 5630 | PyObject * _argo0 = 0; |
efc5f224 | 5631 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
5632 | |
5633 | self = self; | |
aa2a5b86 | 5634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasBackgroundColour",_kwnames,&_argo0)) |
cf694132 | 5635 | return NULL; |
1d99702e RD |
5636 | if (_argo0) { |
5637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasBackgroundColour. Expected _wxTreeItemAttr_p."); | |
cf694132 RD |
5640 | return NULL; |
5641 | } | |
5642 | } | |
5643 | { | |
474c48f9 | 5644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5645 | _result = (bool )wxTreeItemAttr_HasBackgroundColour(_arg0); |
cf694132 | 5646 | |
474c48f9 | 5647 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5648 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5649 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
5650 | return _resultobj; |
5651 | } | |
5652 | ||
aa2a5b86 RD |
5653 | #define wxTreeItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) |
5654 | static PyObject *_wrap_wxTreeItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5655 | PyObject * _resultobj; |
aa2a5b86 RD |
5656 | bool _result; |
5657 | wxTreeItemAttr * _arg0; | |
1d99702e | 5658 | PyObject * _argo0 = 0; |
aa2a5b86 | 5659 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5660 | |
5661 | self = self; | |
aa2a5b86 | 5662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasFont",_kwnames,&_argo0)) |
8ab979d7 | 5663 | return NULL; |
1d99702e RD |
5664 | if (_argo0) { |
5665 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5666 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasFont. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5668 | return NULL; |
5669 | } | |
5670 | } | |
cf694132 | 5671 | { |
474c48f9 | 5672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5673 | _result = (bool )wxTreeItemAttr_HasFont(_arg0); |
cf694132 | 5674 | |
474c48f9 | 5675 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5676 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5677 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5678 | return _resultobj; |
5679 | } | |
5680 | ||
aa2a5b86 RD |
5681 | #define wxTreeItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
5682 | static PyObject *_wrap_wxTreeItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5683 | PyObject * _resultobj; |
aa2a5b86 RD |
5684 | wxColour * _result; |
5685 | wxTreeItemAttr * _arg0; | |
1d99702e | 5686 | PyObject * _argo0 = 0; |
efc5f224 | 5687 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5688 | char _ptemp[128]; |
5689 | ||
5690 | self = self; | |
aa2a5b86 | 5691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 5692 | return NULL; |
1d99702e RD |
5693 | if (_argo0) { |
5694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetTextColour. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5697 | return NULL; |
5698 | } | |
5699 | } | |
cf694132 | 5700 | { |
474c48f9 | 5701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5702 | _result = new wxColour (wxTreeItemAttr_GetTextColour(_arg0)); |
cf694132 | 5703 | |
474c48f9 | 5704 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5705 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
5706 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5707 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
5708 | return _resultobj; |
5709 | } | |
5710 | ||
aa2a5b86 RD |
5711 | #define wxTreeItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) |
5712 | static PyObject *_wrap_wxTreeItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
630d84f2 | 5713 | PyObject * _resultobj; |
aa2a5b86 RD |
5714 | wxColour * _result; |
5715 | wxTreeItemAttr * _arg0; | |
1d99702e | 5716 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
5717 | char *_kwnames[] = { "self", NULL }; |
5718 | char _ptemp[128]; | |
5719 | ||
5720 | self = self; | |
5721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
5722 | return NULL; | |
5723 | if (_argo0) { | |
5724 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5725 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5727 | return NULL; | |
5728 | } | |
5729 | } | |
5730 | { | |
474c48f9 | 5731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5732 | _result = new wxColour (wxTreeItemAttr_GetBackgroundColour(_arg0)); |
aa2a5b86 | 5733 | |
474c48f9 | 5734 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 | 5735 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
5736 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5737 | _resultobj = Py_BuildValue("s",_ptemp); | |
aa2a5b86 RD |
5738 | return _resultobj; |
5739 | } | |
5740 | ||
5741 | #define wxTreeItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
5742 | static PyObject *_wrap_wxTreeItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5743 | PyObject * _resultobj; | |
5744 | wxFont * _result; | |
5745 | wxTreeItemAttr * _arg0; | |
5746 | PyObject * _argo0 = 0; | |
5747 | char *_kwnames[] = { "self", NULL }; | |
5748 | char _ptemp[128]; | |
5749 | ||
5750 | self = self; | |
5751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetFont",_kwnames,&_argo0)) | |
5752 | return NULL; | |
5753 | if (_argo0) { | |
5754 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5755 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetFont. Expected _wxTreeItemAttr_p."); | |
5757 | return NULL; | |
5758 | } | |
5759 | } | |
5760 | { | |
474c48f9 | 5761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5762 | _result = new wxFont (wxTreeItemAttr_GetFont(_arg0)); |
aa2a5b86 | 5763 | |
474c48f9 | 5764 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 | 5765 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
5766 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
5767 | _resultobj = Py_BuildValue("s",_ptemp); | |
aa2a5b86 RD |
5768 | return _resultobj; |
5769 | } | |
5770 | ||
5771 | #define new_wxTreeItemId() (new wxTreeItemId()) | |
5772 | static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5773 | PyObject * _resultobj; | |
5774 | wxTreeItemId * _result; | |
5775 | char *_kwnames[] = { NULL }; | |
5776 | char _ptemp[128]; | |
5777 | ||
5778 | self = self; | |
5779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames)) | |
5780 | return NULL; | |
5781 | { | |
474c48f9 | 5782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5783 | _result = (wxTreeItemId *)new_wxTreeItemId(); |
aa2a5b86 | 5784 | |
474c48f9 | 5785 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5786 | if (PyErr_Occurred()) return NULL; |
5787 | } if (_result) { | |
5788 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
5789 | _resultobj = Py_BuildValue("s",_ptemp); | |
5790 | } else { | |
5791 | Py_INCREF(Py_None); | |
5792 | _resultobj = Py_None; | |
5793 | } | |
5794 | return _resultobj; | |
5795 | } | |
5796 | ||
5797 | #define delete_wxTreeItemId(_swigobj) (delete _swigobj) | |
5798 | static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5799 | PyObject * _resultobj; | |
5800 | wxTreeItemId * _arg0; | |
5801 | PyObject * _argo0 = 0; | |
5802 | char *_kwnames[] = { "self", NULL }; | |
5803 | ||
5804 | self = self; | |
5805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0)) | |
5806 | return NULL; | |
5807 | if (_argo0) { | |
5808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p."); | |
5811 | return NULL; | |
5812 | } | |
5813 | } | |
5814 | { | |
474c48f9 | 5815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5816 | delete_wxTreeItemId(_arg0); |
aa2a5b86 | 5817 | |
474c48f9 | 5818 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5819 | if (PyErr_Occurred()) return NULL; |
5820 | } Py_INCREF(Py_None); | |
5821 | _resultobj = Py_None; | |
5822 | return _resultobj; | |
5823 | } | |
5824 | ||
5825 | #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk()) | |
5826 | static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5827 | PyObject * _resultobj; | |
5828 | bool _result; | |
5829 | wxTreeItemId * _arg0; | |
5830 | PyObject * _argo0 = 0; | |
5831 | char *_kwnames[] = { "self", NULL }; | |
5832 | ||
5833 | self = self; | |
5834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0)) | |
5835 | return NULL; | |
5836 | if (_argo0) { | |
5837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p."); | |
5840 | return NULL; | |
5841 | } | |
5842 | } | |
5843 | { | |
474c48f9 | 5844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5845 | _result = (bool )wxTreeItemId_IsOk(_arg0); |
aa2a5b86 | 5846 | |
474c48f9 | 5847 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5848 | if (PyErr_Occurred()) return NULL; |
5849 | } _resultobj = Py_BuildValue("i",_result); | |
5850 | return _resultobj; | |
5851 | } | |
5852 | ||
5853 | static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) { | |
5854 | if (! other) return -1; | |
5855 | return *self != *other; | |
5856 | } | |
5857 | static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5858 | PyObject * _resultobj; | |
5859 | int _result; | |
5860 | wxTreeItemId * _arg0; | |
5861 | wxTreeItemId * _arg1; | |
5862 | PyObject * _argo0 = 0; | |
5863 | PyObject * _argo1 = 0; | |
5864 | char *_kwnames[] = { "self","other", NULL }; | |
5865 | ||
5866 | self = self; | |
5867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1)) | |
5868 | return NULL; | |
5869 | if (_argo0) { | |
5870 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5871 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5872 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5873 | return NULL; | |
5874 | } | |
5875 | } | |
5876 | if (_argo1) { | |
5877 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5878 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
5879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5880 | return NULL; | |
5881 | } | |
5882 | } | |
5883 | { | |
474c48f9 | 5884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5885 | _result = (int )wxTreeItemId___cmp__(_arg0,_arg1); |
aa2a5b86 | 5886 | |
474c48f9 | 5887 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5888 | if (PyErr_Occurred()) return NULL; |
5889 | } _resultobj = Py_BuildValue("i",_result); | |
5890 | return _resultobj; | |
5891 | } | |
5892 | ||
5893 | static void *SwigwxPyTreeItemDataTowxObject(void *ptr) { | |
5894 | wxPyTreeItemData *src; | |
5895 | wxObject *dest; | |
5896 | src = (wxPyTreeItemData *) ptr; | |
5897 | dest = (wxObject *) src; | |
5898 | return (void *) dest; | |
5899 | } | |
5900 | ||
5901 | #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) | |
5902 | static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5903 | PyObject * _resultobj; | |
5904 | wxPyTreeItemData * _result; | |
5905 | PyObject * _arg0 = (PyObject *) NULL; | |
5906 | PyObject * _obj0 = 0; | |
5907 | char *_kwnames[] = { "obj", NULL }; | |
5908 | char _ptemp[128]; | |
5909 | ||
5910 | self = self; | |
5911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0)) | |
5912 | return NULL; | |
5913 | if (_obj0) | |
5914 | { | |
5915 | _arg0 = _obj0; | |
5916 | } | |
5917 | { | |
474c48f9 | 5918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5919 | _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0); |
aa2a5b86 | 5920 | |
474c48f9 | 5921 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5922 | if (PyErr_Occurred()) return NULL; |
5923 | } if (_result) { | |
5924 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
5925 | _resultobj = Py_BuildValue("s",_ptemp); | |
5926 | } else { | |
5927 | Py_INCREF(Py_None); | |
5928 | _resultobj = Py_None; | |
5929 | } | |
5930 | return _resultobj; | |
5931 | } | |
5932 | ||
5933 | #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData()) | |
5934 | static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5935 | PyObject * _resultobj; | |
5936 | PyObject * _result; | |
5937 | wxPyTreeItemData * _arg0; | |
5938 | PyObject * _argo0 = 0; | |
5939 | char *_kwnames[] = { "self", NULL }; | |
5940 | ||
5941 | self = self; | |
5942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0)) | |
5943 | return NULL; | |
5944 | if (_argo0) { | |
5945 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5946 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
5947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p."); | |
5948 | return NULL; | |
5949 | } | |
5950 | } | |
5951 | { | |
474c48f9 | 5952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5953 | _result = (PyObject *)wxTreeItemData_GetData(_arg0); |
aa2a5b86 | 5954 | |
474c48f9 | 5955 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5956 | if (PyErr_Occurred()) return NULL; |
5957 | }{ | |
5958 | _resultobj = _result; | |
5959 | } | |
5960 | return _resultobj; | |
5961 | } | |
5962 | ||
5963 | #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
5964 | static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5965 | PyObject * _resultobj; | |
5966 | wxPyTreeItemData * _arg0; | |
5967 | PyObject * _arg1; | |
5968 | PyObject * _argo0 = 0; | |
5969 | PyObject * _obj1 = 0; | |
5970 | char *_kwnames[] = { "self","obj", NULL }; | |
5971 | ||
5972 | self = self; | |
5973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1)) | |
5974 | return NULL; | |
5975 | if (_argo0) { | |
5976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
5978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p."); | |
5979 | return NULL; | |
5980 | } | |
5981 | } | |
5982 | { | |
5983 | _arg1 = _obj1; | |
5984 | } | |
5985 | { | |
474c48f9 | 5986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5987 | wxTreeItemData_SetData(_arg0,_arg1); |
aa2a5b86 | 5988 | |
474c48f9 | 5989 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5990 | if (PyErr_Occurred()) return NULL; |
5991 | } Py_INCREF(Py_None); | |
5992 | _resultobj = Py_None; | |
5993 | return _resultobj; | |
5994 | } | |
5995 | ||
5996 | #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId()) | |
5997 | static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5998 | PyObject * _resultobj; | |
5999 | wxTreeItemId * _result; | |
6000 | wxPyTreeItemData * _arg0; | |
6001 | PyObject * _argo0 = 0; | |
6002 | char *_kwnames[] = { "self", NULL }; | |
6003 | char _ptemp[128]; | |
6004 | ||
6005 | self = self; | |
6006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0)) | |
6007 | return NULL; | |
6008 | if (_argo0) { | |
6009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p."); | |
6012 | return NULL; | |
6013 | } | |
6014 | } | |
6015 | { | |
474c48f9 | 6016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6017 | const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0); |
aa2a5b86 RD |
6018 | _result = (wxTreeItemId *) &_result_ref; |
6019 | ||
474c48f9 | 6020 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6021 | if (PyErr_Occurred()) return NULL; |
6022 | } if (_result) { | |
6023 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
6024 | _resultobj = Py_BuildValue("s",_ptemp); | |
6025 | } else { | |
6026 | Py_INCREF(Py_None); | |
6027 | _resultobj = Py_None; | |
6028 | } | |
6029 | return _resultobj; | |
6030 | } | |
6031 | ||
6032 | #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
6033 | static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6034 | PyObject * _resultobj; | |
6035 | wxPyTreeItemData * _arg0; | |
6036 | wxTreeItemId * _arg1; | |
6037 | PyObject * _argo0 = 0; | |
6038 | PyObject * _argo1 = 0; | |
6039 | char *_kwnames[] = { "self","id", NULL }; | |
630d84f2 RD |
6040 | |
6041 | self = self; | |
efc5f224 | 6042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1)) |
630d84f2 | 6043 | return NULL; |
1d99702e RD |
6044 | if (_argo0) { |
6045 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6046 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 6047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p."); |
630d84f2 RD |
6048 | return NULL; |
6049 | } | |
6050 | } | |
1d99702e RD |
6051 | if (_argo1) { |
6052 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6053 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
630d84f2 RD |
6054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p."); |
6055 | return NULL; | |
6056 | } | |
6057 | } | |
cf694132 | 6058 | { |
474c48f9 | 6059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6060 | wxTreeItemData_SetId(_arg0,*_arg1); |
cf694132 | 6061 | |
474c48f9 | 6062 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6063 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6064 | } Py_INCREF(Py_None); |
630d84f2 RD |
6065 | _resultobj = Py_None; |
6066 | return _resultobj; | |
6067 | } | |
6068 | ||
8bf5d46e RD |
6069 | static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) { |
6070 | wxTreeEvent *src; | |
6071 | wxNotifyEvent *dest; | |
6072 | src = (wxTreeEvent *) ptr; | |
6073 | dest = (wxNotifyEvent *) src; | |
6074 | return (void *) dest; | |
6075 | } | |
6076 | ||
8ab979d7 RD |
6077 | static void *SwigwxTreeEventTowxCommandEvent(void *ptr) { |
6078 | wxTreeEvent *src; | |
6079 | wxCommandEvent *dest; | |
6080 | src = (wxTreeEvent *) ptr; | |
6081 | dest = (wxCommandEvent *) src; | |
6082 | return (void *) dest; | |
6083 | } | |
6084 | ||
6085 | static void *SwigwxTreeEventTowxEvent(void *ptr) { | |
6086 | wxTreeEvent *src; | |
6087 | wxEvent *dest; | |
6088 | src = (wxTreeEvent *) ptr; | |
6089 | dest = (wxEvent *) src; | |
6090 | return (void *) dest; | |
6091 | } | |
6092 | ||
9df61a29 RD |
6093 | static void *SwigwxTreeEventTowxObject(void *ptr) { |
6094 | wxTreeEvent *src; | |
6095 | wxObject *dest; | |
6096 | src = (wxTreeEvent *) ptr; | |
6097 | dest = (wxObject *) src; | |
6098 | return (void *) dest; | |
6099 | } | |
6100 | ||
aa2a5b86 RD |
6101 | #define new_wxTreeEvent(_swigarg0,_swigarg1) (new wxTreeEvent(_swigarg0,_swigarg1)) |
6102 | static PyObject *_wrap_new_wxTreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6103 | PyObject * _resultobj; | |
6104 | wxTreeEvent * _result; | |
6105 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
6106 | int _arg1 = (int ) 0; | |
6107 | char *_kwnames[] = { "commandType","id", NULL }; | |
6108 | char _ptemp[128]; | |
6109 | ||
6110 | self = self; | |
6111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxTreeEvent",_kwnames,&_arg0,&_arg1)) | |
6112 | return NULL; | |
6113 | { | |
474c48f9 | 6114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6115 | _result = (wxTreeEvent *)new_wxTreeEvent(_arg0,_arg1); |
aa2a5b86 | 6116 | |
474c48f9 | 6117 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6118 | if (PyErr_Occurred()) return NULL; |
6119 | } if (_result) { | |
6120 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeEvent_p"); | |
6121 | _resultobj = Py_BuildValue("s",_ptemp); | |
6122 | } else { | |
6123 | Py_INCREF(Py_None); | |
6124 | _resultobj = Py_None; | |
6125 | } | |
6126 | return _resultobj; | |
6127 | } | |
6128 | ||
d5c9047a | 6129 | #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
efc5f224 | 6130 | static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6131 | PyObject * _resultobj; |
d5c9047a | 6132 | wxTreeItemId * _result; |
8ab979d7 | 6133 | wxTreeEvent * _arg0; |
1d99702e | 6134 | PyObject * _argo0 = 0; |
efc5f224 | 6135 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6136 | char _ptemp[128]; |
8ab979d7 RD |
6137 | |
6138 | self = self; | |
efc5f224 | 6139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 6140 | return NULL; |
1d99702e RD |
6141 | if (_argo0) { |
6142 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6143 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6145 | return NULL; |
6146 | } | |
6147 | } | |
cf694132 | 6148 | { |
474c48f9 | 6149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6150 | _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0)); |
cf694132 | 6151 | |
474c48f9 | 6152 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6153 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6154 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 6155 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6156 | return _resultobj; |
6157 | } | |
6158 | ||
d5c9047a | 6159 | #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
efc5f224 | 6160 | static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6161 | PyObject * _resultobj; |
d5c9047a | 6162 | wxTreeItemId * _result; |
8ab979d7 | 6163 | wxTreeEvent * _arg0; |
1d99702e | 6164 | PyObject * _argo0 = 0; |
efc5f224 | 6165 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6166 | char _ptemp[128]; |
6167 | ||
6168 | self = self; | |
efc5f224 | 6169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0)) |
8ab979d7 | 6170 | return NULL; |
1d99702e RD |
6171 | if (_argo0) { |
6172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6175 | return NULL; |
6176 | } | |
6177 | } | |
cf694132 | 6178 | { |
474c48f9 | 6179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6180 | _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0)); |
cf694132 | 6181 | |
474c48f9 | 6182 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6183 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6184 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8ab979d7 RD |
6185 | _resultobj = Py_BuildValue("s",_ptemp); |
6186 | return _resultobj; | |
6187 | } | |
6188 | ||
d5c9047a | 6189 | #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
efc5f224 | 6190 | static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6191 | PyObject * _resultobj; |
d5c9047a | 6192 | wxPoint * _result; |
8ab979d7 | 6193 | wxTreeEvent * _arg0; |
1d99702e | 6194 | PyObject * _argo0 = 0; |
efc5f224 | 6195 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6196 | char _ptemp[128]; |
8ab979d7 RD |
6197 | |
6198 | self = self; | |
efc5f224 | 6199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 6200 | return NULL; |
1d99702e RD |
6201 | if (_argo0) { |
6202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6205 | return NULL; |
6206 | } | |
6207 | } | |
cf694132 | 6208 | { |
474c48f9 | 6209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6210 | _result = new wxPoint (wxTreeEvent_GetPoint(_arg0)); |
cf694132 | 6211 | |
474c48f9 | 6212 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6213 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6214 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
d5c9047a | 6215 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6216 | return _resultobj; |
6217 | } | |
6218 | ||
65191ae8 RD |
6219 | #define wxTreeEvent_GetKeyEvent(_swigobj) (_swigobj->GetKeyEvent()) |
6220 | static PyObject *_wrap_wxTreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6221 | PyObject * _resultobj; | |
6222 | wxKeyEvent * _result; | |
6223 | wxTreeEvent * _arg0; | |
6224 | PyObject * _argo0 = 0; | |
6225 | char *_kwnames[] = { "self", NULL }; | |
6226 | char _ptemp[128]; | |
6227 | ||
6228 | self = self; | |
6229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetKeyEvent",_kwnames,&_argo0)) | |
6230 | return NULL; | |
6231 | if (_argo0) { | |
6232 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6233 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetKeyEvent. Expected _wxTreeEvent_p."); | |
6235 | return NULL; | |
6236 | } | |
6237 | } | |
6238 | { | |
474c48f9 | 6239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6240 | const wxKeyEvent & _result_ref = wxTreeEvent_GetKeyEvent(_arg0); |
65191ae8 RD |
6241 | _result = (wxKeyEvent *) &_result_ref; |
6242 | ||
474c48f9 | 6243 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
6244 | if (PyErr_Occurred()) return NULL; |
6245 | } if (_result) { | |
6246 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxKeyEvent_p"); | |
6247 | _resultobj = Py_BuildValue("s",_ptemp); | |
6248 | } else { | |
6249 | Py_INCREF(Py_None); | |
6250 | _resultobj = Py_None; | |
6251 | } | |
6252 | return _resultobj; | |
6253 | } | |
6254 | ||
d99400b2 RD |
6255 | #define wxTreeEvent_GetKeyCode(_swigobj) (_swigobj->GetKeyCode()) |
6256 | static PyObject *_wrap_wxTreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6257 | PyObject * _resultobj; |
d5c9047a | 6258 | int _result; |
8ab979d7 | 6259 | wxTreeEvent * _arg0; |
1d99702e | 6260 | PyObject * _argo0 = 0; |
efc5f224 | 6261 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6262 | |
6263 | self = self; | |
d99400b2 | 6264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetKeyCode",_kwnames,&_argo0)) |
8ab979d7 | 6265 | return NULL; |
1d99702e RD |
6266 | if (_argo0) { |
6267 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6268 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d99400b2 | 6269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetKeyCode. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6270 | return NULL; |
6271 | } | |
6272 | } | |
cf694132 | 6273 | { |
474c48f9 | 6274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d99400b2 | 6275 | _result = (int )wxTreeEvent_GetKeyCode(_arg0); |
cf694132 | 6276 | |
474c48f9 | 6277 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6278 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6279 | } _resultobj = Py_BuildValue("i",_result); |
d5c9047a RD |
6280 | return _resultobj; |
6281 | } | |
6282 | ||
8bf5d46e | 6283 | #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 6284 | static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 6285 | PyObject * _resultobj; |
8bf5d46e | 6286 | wxString * _result; |
d5c9047a | 6287 | wxTreeEvent * _arg0; |
1d99702e | 6288 | PyObject * _argo0 = 0; |
efc5f224 | 6289 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
6290 | |
6291 | self = self; | |
efc5f224 | 6292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0)) |
d5c9047a | 6293 | return NULL; |
1d99702e RD |
6294 | if (_argo0) { |
6295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
8bf5d46e | 6297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p."); |
d5c9047a RD |
6298 | return NULL; |
6299 | } | |
6300 | } | |
cf694132 | 6301 | { |
474c48f9 | 6302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6303 | const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0); |
8bf5d46e | 6304 | _result = (wxString *) &_result_ref; |
cf694132 | 6305 | |
474c48f9 | 6306 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6307 | if (PyErr_Occurred()) return NULL; |
8bf5d46e | 6308 | }{ |
c8bc7bb8 RD |
6309 | #if wxUSE_UNICODE |
6310 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6311 | #else | |
eec92d76 | 6312 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6313 | #endif |
8bf5d46e | 6314 | } |
8ab979d7 RD |
6315 | return _resultobj; |
6316 | } | |
6317 | ||
f6bcfd97 BP |
6318 | static void *SwigwxPyTreeCtrlTowxControl(void *ptr) { |
6319 | wxPyTreeCtrl *src; | |
8ab979d7 | 6320 | wxControl *dest; |
f6bcfd97 | 6321 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6322 | dest = (wxControl *) src; |
6323 | return (void *) dest; | |
6324 | } | |
6325 | ||
f6bcfd97 BP |
6326 | static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) { |
6327 | wxPyTreeCtrl *src; | |
8ab979d7 | 6328 | wxWindow *dest; |
f6bcfd97 | 6329 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6330 | dest = (wxWindow *) src; |
6331 | return (void *) dest; | |
6332 | } | |
6333 | ||
f6bcfd97 BP |
6334 | static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) { |
6335 | wxPyTreeCtrl *src; | |
8ab979d7 | 6336 | wxEvtHandler *dest; |
f6bcfd97 | 6337 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6338 | dest = (wxEvtHandler *) src; |
6339 | return (void *) dest; | |
6340 | } | |
6341 | ||
9df61a29 RD |
6342 | static void *SwigwxPyTreeCtrlTowxObject(void *ptr) { |
6343 | wxPyTreeCtrl *src; | |
6344 | wxObject *dest; | |
6345 | src = (wxPyTreeCtrl *) ptr; | |
6346 | dest = (wxObject *) src; | |
6347 | return (void *) dest; | |
6348 | } | |
6349 | ||
f6bcfd97 | 6350 | #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6351 | static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6352 | PyObject * _resultobj; |
f6bcfd97 | 6353 | wxPyTreeCtrl * _result; |
8ab979d7 | 6354 | wxWindow * _arg0; |
1d99702e | 6355 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
6356 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6357 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
aa2a5b86 | 6358 | long _arg4 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); |
b68dc582 | 6359 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
9a74fcaf | 6360 | wxString * _arg6 = (wxString *) &wxPy_TreeCtrlNameStr; |
1d99702e | 6361 | PyObject * _argo0 = 0; |
2f90df85 RD |
6362 | wxPoint temp; |
6363 | PyObject * _obj2 = 0; | |
6364 | wxSize temp0; | |
6365 | PyObject * _obj3 = 0; | |
1d99702e | 6366 | PyObject * _argo5 = 0; |
9a74fcaf | 6367 | PyObject * _obj6 = 0; |
efc5f224 | 6368 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
6369 | char _ptemp[128]; |
6370 | ||
6371 | self = self; | |
9a74fcaf | 6372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) |
8ab979d7 | 6373 | return NULL; |
1d99702e RD |
6374 | if (_argo0) { |
6375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p."); |
6378 | return NULL; | |
6379 | } | |
6380 | } | |
2f90df85 RD |
6381 | if (_obj2) |
6382 | { | |
6383 | _arg2 = &temp; | |
6384 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6385 | return NULL; |
2f90df85 RD |
6386 | } |
6387 | if (_obj3) | |
6388 | { | |
6389 | _arg3 = &temp0; | |
6390 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6391 | return NULL; |
2f90df85 | 6392 | } |
1d99702e RD |
6393 | if (_argo5) { |
6394 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6395 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
6396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p."); |
6397 | return NULL; | |
6398 | } | |
6399 | } | |
9a74fcaf RD |
6400 | if (_obj6) |
6401 | { | |
6402 | _arg6 = wxString_in_helper(_obj6); | |
6403 | if (_arg6 == NULL) | |
6404 | return NULL; | |
6405 | } | |
cf694132 | 6406 | { |
474c48f9 | 6407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 6408 | _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
cf694132 | 6409 | |
474c48f9 | 6410 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6411 | if (PyErr_Occurred()) return NULL; |
1d99702e | 6412 | } if (_result) { |
f6bcfd97 | 6413 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); |
1d99702e RD |
6414 | _resultobj = Py_BuildValue("s",_ptemp); |
6415 | } else { | |
6416 | Py_INCREF(Py_None); | |
6417 | _resultobj = Py_None; | |
6418 | } | |
9a74fcaf RD |
6419 | { |
6420 | if (_obj6) | |
6421 | delete _arg6; | |
6422 | } | |
8ab979d7 RD |
6423 | return _resultobj; |
6424 | } | |
6425 | ||
aa2a5b86 RD |
6426 | #define new_wxPreTreeCtrl() (new wxPyTreeCtrl()) |
6427 | static PyObject *_wrap_new_wxPreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 6428 | PyObject * _resultobj; |
aa2a5b86 RD |
6429 | wxPyTreeCtrl * _result; |
6430 | char *_kwnames[] = { NULL }; | |
6431 | char _ptemp[128]; | |
6432 | ||
6433 | self = self; | |
6434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTreeCtrl",_kwnames)) | |
6435 | return NULL; | |
6436 | { | |
474c48f9 | 6437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6438 | _result = (wxPyTreeCtrl *)new_wxPreTreeCtrl(); |
aa2a5b86 | 6439 | |
474c48f9 | 6440 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6441 | if (PyErr_Occurred()) return NULL; |
6442 | } if (_result) { | |
6443 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); | |
6444 | _resultobj = Py_BuildValue("s",_ptemp); | |
6445 | } else { | |
6446 | Py_INCREF(Py_None); | |
6447 | _resultobj = Py_None; | |
6448 | } | |
6449 | return _resultobj; | |
6450 | } | |
6451 | ||
6452 | #define wxTreeCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
6453 | static PyObject *_wrap_wxTreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6454 | PyObject * _resultobj; | |
6455 | bool _result; | |
f6bcfd97 | 6456 | wxPyTreeCtrl * _arg0; |
aa2a5b86 RD |
6457 | wxWindow * _arg1; |
6458 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6459 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6460 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6461 | long _arg5 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); | |
6462 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
9a74fcaf | 6463 | wxString * _arg7 = (wxString *) &wxPy_TreeCtrlNameStr; |
f6bcfd97 | 6464 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
6465 | PyObject * _argo1 = 0; |
6466 | wxPoint temp; | |
6467 | PyObject * _obj3 = 0; | |
6468 | wxSize temp0; | |
6469 | PyObject * _obj4 = 0; | |
6470 | PyObject * _argo6 = 0; | |
9a74fcaf | 6471 | PyObject * _obj7 = 0; |
aa2a5b86 | 6472 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; |
f6bcfd97 BP |
6473 | |
6474 | self = self; | |
9a74fcaf | 6475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxTreeCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
f6bcfd97 BP |
6476 | return NULL; |
6477 | if (_argo0) { | |
6478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
aa2a5b86 RD |
6480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Create. Expected _wxPyTreeCtrl_p."); |
6481 | return NULL; | |
6482 | } | |
6483 | } | |
6484 | if (_argo1) { | |
6485 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6486 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Create. Expected _wxWindow_p."); | |
f6bcfd97 BP |
6488 | return NULL; |
6489 | } | |
6490 | } | |
aa2a5b86 | 6491 | if (_obj3) |
f6bcfd97 | 6492 | { |
aa2a5b86 RD |
6493 | _arg3 = &temp; |
6494 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6495 | return NULL; | |
f6bcfd97 | 6496 | } |
aa2a5b86 | 6497 | if (_obj4) |
f6bcfd97 | 6498 | { |
aa2a5b86 RD |
6499 | _arg4 = &temp0; |
6500 | if (! wxSize_helper(_obj4, &_arg4)) | |
6501 | return NULL; | |
f6bcfd97 | 6502 | } |
aa2a5b86 RD |
6503 | if (_argo6) { |
6504 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6505 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
6506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_Create. Expected _wxValidator_p."); | |
6507 | return NULL; | |
6508 | } | |
6509 | } | |
9a74fcaf RD |
6510 | if (_obj7) |
6511 | { | |
6512 | _arg7 = wxString_in_helper(_obj7); | |
6513 | if (_arg7 == NULL) | |
6514 | return NULL; | |
6515 | } | |
f6bcfd97 | 6516 | { |
474c48f9 | 6517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 6518 | _result = (bool )wxTreeCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
f6bcfd97 | 6519 | |
474c48f9 | 6520 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6521 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 6522 | } _resultobj = Py_BuildValue("i",_result); |
9a74fcaf RD |
6523 | { |
6524 | if (_obj7) | |
6525 | delete _arg7; | |
6526 | } | |
f6bcfd97 BP |
6527 | return _resultobj; |
6528 | } | |
6529 | ||
0220cbc1 RD |
6530 | #define wxTreeCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
6531 | static PyObject *_wrap_wxTreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c4165ad RD |
6532 | PyObject * _resultobj; |
6533 | wxPyTreeCtrl * _arg0; | |
aa2a5b86 RD |
6534 | PyObject * _arg1; |
6535 | PyObject * _arg2; | |
9c4165ad | 6536 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
6537 | PyObject * _obj1 = 0; |
6538 | PyObject * _obj2 = 0; | |
6539 | char *_kwnames[] = { "self","self","_class", NULL }; | |
9c4165ad RD |
6540 | |
6541 | self = self; | |
0220cbc1 | 6542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
9c4165ad RD |
6543 | return NULL; |
6544 | if (_argo0) { | |
6545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
0220cbc1 | 6547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setCallbackInfo. Expected _wxPyTreeCtrl_p."); |
9c4165ad RD |
6548 | return NULL; |
6549 | } | |
6550 | } | |
aa2a5b86 RD |
6551 | { |
6552 | _arg1 = _obj1; | |
6553 | } | |
6554 | { | |
6555 | _arg2 = _obj2; | |
6556 | } | |
9c4165ad | 6557 | { |
474c48f9 | 6558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6559 | wxTreeCtrl__setCallbackInfo(_arg0,_arg1,_arg2); |
9c4165ad | 6560 | |
474c48f9 | 6561 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6562 | if (PyErr_Occurred()) return NULL; |
9c4165ad RD |
6563 | } Py_INCREF(Py_None); |
6564 | _resultobj = Py_None; | |
6565 | return _resultobj; | |
6566 | } | |
6567 | ||
d5c9047a | 6568 | #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount()) |
efc5f224 | 6569 | static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6570 | PyObject * _resultobj; |
c127177f | 6571 | size_t _result; |
f6bcfd97 | 6572 | wxPyTreeCtrl * _arg0; |
1d99702e | 6573 | PyObject * _argo0 = 0; |
efc5f224 | 6574 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6575 | |
6576 | self = self; | |
efc5f224 | 6577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0)) |
8ab979d7 | 6578 | return NULL; |
1d99702e RD |
6579 | if (_argo0) { |
6580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6583 | return NULL; |
6584 | } | |
6585 | } | |
cf694132 | 6586 | { |
474c48f9 | 6587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6588 | _result = (size_t )wxTreeCtrl_GetCount(_arg0); |
cf694132 | 6589 | |
474c48f9 | 6590 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6591 | if (PyErr_Occurred()) return NULL; |
c127177f | 6592 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6593 | return _resultobj; |
6594 | } | |
6595 | ||
d5c9047a | 6596 | #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) |
efc5f224 | 6597 | static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6598 | PyObject * _resultobj; |
d5c9047a | 6599 | unsigned int _result; |
f6bcfd97 | 6600 | wxPyTreeCtrl * _arg0; |
1d99702e | 6601 | PyObject * _argo0 = 0; |
efc5f224 | 6602 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6603 | |
6604 | self = self; | |
efc5f224 | 6605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0)) |
8ab979d7 | 6606 | return NULL; |
1d99702e RD |
6607 | if (_argo0) { |
6608 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6609 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6611 | return NULL; |
6612 | } | |
6613 | } | |
cf694132 | 6614 | { |
474c48f9 | 6615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6616 | _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0); |
cf694132 | 6617 | |
474c48f9 | 6618 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6619 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6620 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6621 | return _resultobj; |
6622 | } | |
6623 | ||
d5c9047a | 6624 | #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) |
efc5f224 | 6625 | static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6626 | PyObject * _resultobj; |
f6bcfd97 | 6627 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6628 | unsigned int _arg1; |
1d99702e | 6629 | PyObject * _argo0 = 0; |
efc5f224 | 6630 | char *_kwnames[] = { "self","indent", NULL }; |
8ab979d7 RD |
6631 | |
6632 | self = self; | |
efc5f224 | 6633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6634 | return NULL; |
1d99702e RD |
6635 | if (_argo0) { |
6636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6639 | return NULL; |
6640 | } | |
6641 | } | |
cf694132 | 6642 | { |
474c48f9 | 6643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6644 | wxTreeCtrl_SetIndent(_arg0,_arg1); |
cf694132 | 6645 | |
474c48f9 | 6646 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6647 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6648 | } Py_INCREF(Py_None); |
d5c9047a | 6649 | _resultobj = Py_None; |
8ab979d7 RD |
6650 | return _resultobj; |
6651 | } | |
6652 | ||
d5c9047a | 6653 | #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList()) |
efc5f224 | 6654 | static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6655 | PyObject * _resultobj; |
d5c9047a | 6656 | wxImageList * _result; |
f6bcfd97 | 6657 | wxPyTreeCtrl * _arg0; |
1d99702e | 6658 | PyObject * _argo0 = 0; |
efc5f224 | 6659 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6660 | |
6661 | self = self; | |
efc5f224 | 6662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0)) |
8ab979d7 | 6663 | return NULL; |
1d99702e RD |
6664 | if (_argo0) { |
6665 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6666 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6668 | return NULL; |
6669 | } | |
6670 | } | |
cf694132 | 6671 | { |
474c48f9 | 6672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6673 | _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0); |
cf694132 | 6674 | |
474c48f9 | 6675 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6676 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 6677 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
6678 | return _resultobj; |
6679 | } | |
6680 | ||
d5c9047a | 6681 | #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList()) |
efc5f224 | 6682 | static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6683 | PyObject * _resultobj; |
d5c9047a | 6684 | wxImageList * _result; |
f6bcfd97 | 6685 | wxPyTreeCtrl * _arg0; |
1d99702e | 6686 | PyObject * _argo0 = 0; |
efc5f224 | 6687 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6688 | |
6689 | self = self; | |
efc5f224 | 6690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0)) |
8ab979d7 | 6691 | return NULL; |
1d99702e RD |
6692 | if (_argo0) { |
6693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6696 | return NULL; |
6697 | } | |
6698 | } | |
cf694132 | 6699 | { |
474c48f9 | 6700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6701 | _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0); |
cf694132 | 6702 | |
474c48f9 | 6703 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6704 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 6705 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
6706 | return _resultobj; |
6707 | } | |
6708 | ||
d5c9047a | 6709 | #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) |
efc5f224 | 6710 | static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6711 | PyObject * _resultobj; |
f6bcfd97 | 6712 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6713 | wxImageList * _arg1; |
1d99702e RD |
6714 | PyObject * _argo0 = 0; |
6715 | PyObject * _argo1 = 0; | |
efc5f224 | 6716 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
6717 | |
6718 | self = self; | |
efc5f224 | 6719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6720 | return NULL; |
1d99702e RD |
6721 | if (_argo0) { |
6722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6725 | return NULL; |
6726 | } | |
6727 | } | |
1d99702e RD |
6728 | if (_argo1) { |
6729 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6730 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
6731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p."); |
6732 | return NULL; | |
6733 | } | |
6734 | } | |
cf694132 | 6735 | { |
474c48f9 | 6736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6737 | wxTreeCtrl_SetImageList(_arg0,_arg1); |
cf694132 | 6738 | |
474c48f9 | 6739 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6740 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6741 | } Py_INCREF(Py_None); |
d5c9047a | 6742 | _resultobj = Py_None; |
8ab979d7 RD |
6743 | return _resultobj; |
6744 | } | |
6745 | ||
d5c9047a | 6746 | #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0)) |
efc5f224 | 6747 | static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6748 | PyObject * _resultobj; |
f6bcfd97 | 6749 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6750 | wxImageList * _arg1; |
1d99702e RD |
6751 | PyObject * _argo0 = 0; |
6752 | PyObject * _argo1 = 0; | |
efc5f224 | 6753 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
6754 | |
6755 | self = self; | |
efc5f224 | 6756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6757 | return NULL; |
1d99702e RD |
6758 | if (_argo0) { |
6759 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6762 | return NULL; |
6763 | } | |
6764 | } | |
1d99702e RD |
6765 | if (_argo1) { |
6766 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6767 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
6768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p."); |
6769 | return NULL; | |
6770 | } | |
6771 | } | |
cf694132 | 6772 | { |
474c48f9 | 6773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6774 | wxTreeCtrl_SetStateImageList(_arg0,_arg1); |
cf694132 | 6775 | |
474c48f9 | 6776 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6777 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6778 | } Py_INCREF(Py_None); |
d5c9047a | 6779 | _resultobj = Py_None; |
8ab979d7 RD |
6780 | return _resultobj; |
6781 | } | |
6782 | ||
aa2a5b86 RD |
6783 | #define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0)) |
6784 | static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6785 | PyObject * _resultobj; | |
6786 | wxPyTreeCtrl * _arg0; | |
6787 | wxImageList * _arg1; | |
6788 | PyObject * _argo0 = 0; | |
6789 | PyObject * _argo1 = 0; | |
6790 | char *_kwnames[] = { "self","imageList", NULL }; | |
6791 | ||
6792 | self = self; | |
6793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1)) | |
6794 | return NULL; | |
6795 | if (_argo0) { | |
6796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p."); | |
6799 | return NULL; | |
6800 | } | |
6801 | } | |
6802 | if (_argo1) { | |
6803 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6804 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p."); | |
6806 | return NULL; | |
6807 | } | |
6808 | } | |
6809 | { | |
474c48f9 | 6810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6811 | wxTreeCtrl_AssignImageList(_arg0,_arg1); |
aa2a5b86 | 6812 | |
474c48f9 | 6813 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6814 | if (PyErr_Occurred()) return NULL; |
6815 | } Py_INCREF(Py_None); | |
6816 | _resultobj = Py_None; | |
6817 | return _resultobj; | |
6818 | } | |
6819 | ||
6820 | #define wxTreeCtrl_AssignStateImageList(_swigobj,_swigarg0) (_swigobj->AssignStateImageList(_swigarg0)) | |
6821 | static PyObject *_wrap_wxTreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6822 | PyObject * _resultobj; | |
6823 | wxPyTreeCtrl * _arg0; | |
6824 | wxImageList * _arg1; | |
6825 | PyObject * _argo0 = 0; | |
6826 | PyObject * _argo1 = 0; | |
6827 | char *_kwnames[] = { "self","imageList", NULL }; | |
6828 | ||
6829 | self = self; | |
6830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignStateImageList",_kwnames,&_argo0,&_argo1)) | |
6831 | return NULL; | |
6832 | if (_argo0) { | |
6833 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6834 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6835 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignStateImageList. Expected _wxPyTreeCtrl_p."); | |
6836 | return NULL; | |
6837 | } | |
6838 | } | |
6839 | if (_argo1) { | |
6840 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6841 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignStateImageList. Expected _wxImageList_p."); | |
6843 | return NULL; | |
6844 | } | |
6845 | } | |
6846 | { | |
474c48f9 | 6847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6848 | wxTreeCtrl_AssignStateImageList(_arg0,_arg1); |
aa2a5b86 | 6849 | |
474c48f9 | 6850 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6851 | if (PyErr_Occurred()) return NULL; |
6852 | } Py_INCREF(Py_None); | |
6853 | _resultobj = Py_None; | |
6854 | return _resultobj; | |
6855 | } | |
6856 | ||
b1462dfa RD |
6857 | #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing()) |
6858 | static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6859 | PyObject * _resultobj; | |
6860 | unsigned int _result; | |
f6bcfd97 | 6861 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
6862 | PyObject * _argo0 = 0; |
6863 | char *_kwnames[] = { "self", NULL }; | |
6864 | ||
6865 | self = self; | |
6866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0)) | |
6867 | return NULL; | |
6868 | if (_argo0) { | |
6869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
6872 | return NULL; |
6873 | } | |
6874 | } | |
6875 | { | |
474c48f9 | 6876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6877 | _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0); |
b1462dfa | 6878 | |
474c48f9 | 6879 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6880 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
6881 | } _resultobj = Py_BuildValue("i",_result); |
6882 | return _resultobj; | |
6883 | } | |
6884 | ||
6885 | #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0)) | |
6886 | static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6887 | PyObject * _resultobj; | |
f6bcfd97 | 6888 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
6889 | unsigned int _arg1; |
6890 | PyObject * _argo0 = 0; | |
6891 | char *_kwnames[] = { "self","spacing", NULL }; | |
6892 | ||
6893 | self = self; | |
6894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1)) | |
6895 | return NULL; | |
6896 | if (_argo0) { | |
6897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
6900 | return NULL; |
6901 | } | |
6902 | } | |
6903 | { | |
474c48f9 | 6904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6905 | wxTreeCtrl_SetSpacing(_arg0,_arg1); |
b1462dfa | 6906 | |
474c48f9 | 6907 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6908 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
6909 | } Py_INCREF(Py_None); |
6910 | _resultobj = Py_None; | |
6911 | return _resultobj; | |
6912 | } | |
6913 | ||
d5c9047a | 6914 | #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
efc5f224 | 6915 | static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6916 | PyObject * _resultobj; |
d5c9047a | 6917 | wxString * _result; |
f6bcfd97 | 6918 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6919 | wxTreeItemId * _arg1; |
1d99702e RD |
6920 | PyObject * _argo0 = 0; |
6921 | PyObject * _argo1 = 0; | |
efc5f224 | 6922 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6923 | |
6924 | self = self; | |
efc5f224 | 6925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6926 | return NULL; |
1d99702e RD |
6927 | if (_argo0) { |
6928 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6929 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6931 | return NULL; |
6932 | } | |
6933 | } | |
1d99702e RD |
6934 | if (_argo1) { |
6935 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6936 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p."); |
6938 | return NULL; | |
6939 | } | |
6940 | } | |
d5c9047a | 6941 | { |
474c48f9 | 6942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6943 | _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1)); |
cf694132 | 6944 | |
474c48f9 | 6945 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6946 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6947 | }{ |
c8bc7bb8 RD |
6948 | #if wxUSE_UNICODE |
6949 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6950 | #else | |
eec92d76 | 6951 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6952 | #endif |
d5c9047a RD |
6953 | } |
6954 | { | |
6955 | delete _result; | |
6956 | } | |
8ab979d7 RD |
6957 | return _resultobj; |
6958 | } | |
6959 | ||
694759cf | 6960 | #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1)) |
efc5f224 | 6961 | static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6962 | PyObject * _resultobj; |
d5c9047a | 6963 | int _result; |
f6bcfd97 | 6964 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6965 | wxTreeItemId * _arg1; |
694759cf | 6966 | wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
6967 | PyObject * _argo0 = 0; |
6968 | PyObject * _argo1 = 0; | |
694759cf | 6969 | char *_kwnames[] = { "self","item","which", NULL }; |
8ab979d7 RD |
6970 | |
6971 | self = self; | |
694759cf | 6972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 6973 | return NULL; |
1d99702e RD |
6974 | if (_argo0) { |
6975 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6976 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6978 | return NULL; |
6979 | } | |
6980 | } | |
1d99702e RD |
6981 | if (_argo1) { |
6982 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6983 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p."); |
6985 | return NULL; | |
6986 | } | |
6987 | } | |
cf694132 | 6988 | { |
474c48f9 | 6989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6990 | _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2); |
cf694132 | 6991 | |
474c48f9 | 6992 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6993 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6994 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6995 | return _resultobj; |
6996 | } | |
6997 | ||
d5c9047a | 6998 | #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0)) |
efc5f224 | 6999 | static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7000 | PyObject * _resultobj; |
d5c9047a | 7001 | int _result; |
f6bcfd97 | 7002 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7003 | wxTreeItemId * _arg1; |
1d99702e RD |
7004 | PyObject * _argo0 = 0; |
7005 | PyObject * _argo1 = 0; | |
efc5f224 | 7006 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7007 | |
7008 | self = self; | |
efc5f224 | 7009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7010 | return NULL; |
1d99702e RD |
7011 | if (_argo0) { |
7012 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7013 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7015 | return NULL; |
7016 | } | |
7017 | } | |
1d99702e RD |
7018 | if (_argo1) { |
7019 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7020 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p."); |
7022 | return NULL; | |
7023 | } | |
7024 | } | |
cf694132 | 7025 | { |
474c48f9 | 7026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7027 | _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1); |
8ab979d7 | 7028 | |
474c48f9 | 7029 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7030 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7031 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7032 | return _resultobj; |
7033 | } | |
7034 | ||
d5c9047a | 7035 | #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
efc5f224 | 7036 | static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7037 | PyObject * _resultobj; |
f6bcfd97 | 7038 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7039 | wxTreeItemId * _arg1; |
7040 | wxString * _arg2; | |
1d99702e RD |
7041 | PyObject * _argo0 = 0; |
7042 | PyObject * _argo1 = 0; | |
d5c9047a | 7043 | PyObject * _obj2 = 0; |
efc5f224 | 7044 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
7045 | |
7046 | self = self; | |
efc5f224 | 7047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7048 | return NULL; |
1d99702e RD |
7049 | if (_argo0) { |
7050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7053 | return NULL; |
7054 | } | |
7055 | } | |
1d99702e RD |
7056 | if (_argo1) { |
7057 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7058 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p."); |
7060 | return NULL; | |
7061 | } | |
7062 | } | |
7063 | { | |
c8bc7bb8 RD |
7064 | _arg2 = wxString_in_helper(_obj2); |
7065 | if (_arg2 == NULL) | |
2cd2fac8 | 7066 | return NULL; |
d5c9047a | 7067 | } |
cf694132 | 7068 | { |
474c48f9 | 7069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7070 | wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2); |
cf694132 | 7071 | |
474c48f9 | 7072 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7073 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7074 | } Py_INCREF(Py_None); |
d5c9047a RD |
7075 | _resultobj = Py_None; |
7076 | { | |
7077 | if (_obj2) | |
7078 | delete _arg2; | |
7079 | } | |
8ab979d7 RD |
7080 | return _resultobj; |
7081 | } | |
7082 | ||
694759cf | 7083 | #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 7084 | static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7085 | PyObject * _resultobj; |
f6bcfd97 | 7086 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7087 | wxTreeItemId * _arg1; |
7088 | int _arg2; | |
694759cf | 7089 | wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
7090 | PyObject * _argo0 = 0; |
7091 | PyObject * _argo1 = 0; | |
694759cf | 7092 | char *_kwnames[] = { "self","item","image","which", NULL }; |
8ab979d7 RD |
7093 | |
7094 | self = self; | |
694759cf | 7095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 7096 | return NULL; |
1d99702e RD |
7097 | if (_argo0) { |
7098 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7099 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7100 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7101 | return NULL; |
7102 | } | |
7103 | } | |
1d99702e RD |
7104 | if (_argo1) { |
7105 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7106 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7107 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p."); |
7108 | return NULL; | |
7109 | } | |
7110 | } | |
cf694132 | 7111 | { |
474c48f9 | 7112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7113 | wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 7114 | |
474c48f9 | 7115 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7116 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7117 | } Py_INCREF(Py_None); |
d5c9047a | 7118 | _resultobj = Py_None; |
8ab979d7 RD |
7119 | return _resultobj; |
7120 | } | |
7121 | ||
d5c9047a | 7122 | #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1)) |
efc5f224 | 7123 | static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7124 | PyObject * _resultobj; |
f6bcfd97 | 7125 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7126 | wxTreeItemId * _arg1; |
7127 | int _arg2; | |
1d99702e RD |
7128 | PyObject * _argo0 = 0; |
7129 | PyObject * _argo1 = 0; | |
efc5f224 | 7130 | char *_kwnames[] = { "self","item","image", NULL }; |
8ab979d7 RD |
7131 | |
7132 | self = self; | |
efc5f224 | 7133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 7134 | return NULL; |
1d99702e RD |
7135 | if (_argo0) { |
7136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7139 | return NULL; |
7140 | } | |
7141 | } | |
1d99702e RD |
7142 | if (_argo1) { |
7143 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7144 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p."); |
7146 | return NULL; | |
7147 | } | |
7148 | } | |
cf694132 | 7149 | { |
474c48f9 | 7150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7151 | wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2); |
cf694132 | 7152 | |
474c48f9 | 7153 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7154 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7155 | } Py_INCREF(Py_None); |
7156 | _resultobj = Py_None; | |
7157 | return _resultobj; | |
7158 | } | |
7159 | ||
7160 | #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1)) | |
efc5f224 | 7161 | static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7162 | PyObject * _resultobj; |
f6bcfd97 | 7163 | wxPyTreeCtrl * _arg0; |
cf694132 | 7164 | wxTreeItemId * _arg1; |
1d99702e RD |
7165 | bool _arg2 = (bool ) TRUE; |
7166 | PyObject * _argo0 = 0; | |
7167 | PyObject * _argo1 = 0; | |
7168 | int tempbool2 = (int) TRUE; | |
efc5f224 | 7169 | char *_kwnames[] = { "self","item","hasChildren", NULL }; |
cf694132 RD |
7170 | |
7171 | self = self; | |
efc5f224 | 7172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2)) |
cf694132 | 7173 | return NULL; |
1d99702e RD |
7174 | if (_argo0) { |
7175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7178 | return NULL; |
7179 | } | |
7180 | } | |
1d99702e RD |
7181 | if (_argo1) { |
7182 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7183 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p."); |
7185 | return NULL; | |
7186 | } | |
7187 | } | |
7188 | _arg2 = (bool ) tempbool2; | |
7189 | { | |
474c48f9 | 7190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7191 | wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2); |
cf694132 | 7192 | |
474c48f9 | 7193 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7194 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7195 | } Py_INCREF(Py_None); |
d5c9047a | 7196 | _resultobj = Py_None; |
8ab979d7 RD |
7197 | return _resultobj; |
7198 | } | |
7199 | ||
f6bcfd97 | 7200 | static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7201 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7202 | if (data == NULL) { | |
7203 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7204 | data->SetId(item); // set the id |
cf694132 RD |
7205 | self->SetItemData(item, data); |
7206 | } | |
7207 | return data; | |
7208 | } | |
efc5f224 | 7209 | static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
7210 | PyObject * _resultobj; |
7211 | wxPyTreeItemData * _result; | |
f6bcfd97 | 7212 | wxPyTreeCtrl * _arg0; |
cf694132 | 7213 | wxTreeItemId * _arg1; |
1d99702e RD |
7214 | PyObject * _argo0 = 0; |
7215 | PyObject * _argo1 = 0; | |
efc5f224 | 7216 | char *_kwnames[] = { "self","item", NULL }; |
cf694132 RD |
7217 | char _ptemp[128]; |
7218 | ||
7219 | self = self; | |
efc5f224 | 7220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1)) |
cf694132 | 7221 | return NULL; |
1d99702e RD |
7222 | if (_argo0) { |
7223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7226 | return NULL; |
7227 | } | |
7228 | } | |
1d99702e RD |
7229 | if (_argo1) { |
7230 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7231 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p."); |
7233 | return NULL; | |
7234 | } | |
7235 | } | |
7236 | { | |
474c48f9 | 7237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7238 | _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1); |
cf694132 | 7239 | |
474c48f9 | 7240 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7241 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7242 | } if (_result) { |
7243 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
7244 | _resultobj = Py_BuildValue("s",_ptemp); | |
7245 | } else { | |
7246 | Py_INCREF(Py_None); | |
7247 | _resultobj = Py_None; | |
7248 | } | |
cf694132 RD |
7249 | return _resultobj; |
7250 | } | |
7251 | ||
f6bcfd97 BP |
7252 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) { |
7253 | data->SetId(item); // set the id | |
7254 | self->SetItemData(item, data); | |
c368d904 | 7255 | } |
efc5f224 | 7256 | static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7257 | PyObject * _resultobj; |
f6bcfd97 | 7258 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7259 | wxTreeItemId * _arg1; |
cf694132 | 7260 | wxPyTreeItemData * _arg2; |
1d99702e RD |
7261 | PyObject * _argo0 = 0; |
7262 | PyObject * _argo1 = 0; | |
7263 | PyObject * _argo2 = 0; | |
efc5f224 | 7264 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
7265 | |
7266 | self = self; | |
efc5f224 | 7267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2)) |
8ab979d7 | 7268 | return NULL; |
1d99702e RD |
7269 | if (_argo0) { |
7270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7273 | return NULL; |
7274 | } | |
7275 | } | |
1d99702e RD |
7276 | if (_argo1) { |
7277 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7278 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p."); |
7280 | return NULL; | |
7281 | } | |
7282 | } | |
1d99702e RD |
7283 | if (_argo2) { |
7284 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7285 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) { | |
cf694132 | 7286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
7287 | return NULL; |
7288 | } | |
7289 | } | |
cf694132 | 7290 | { |
474c48f9 | 7291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7292 | wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2); |
cf694132 | 7293 | |
474c48f9 | 7294 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7295 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7296 | } Py_INCREF(Py_None); |
d5c9047a | 7297 | _resultobj = Py_None; |
8ab979d7 RD |
7298 | return _resultobj; |
7299 | } | |
7300 | ||
f6bcfd97 | 7301 | static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7302 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7303 | if (data == NULL) { | |
7304 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7305 | data->SetId(item); // set the id |
cf694132 RD |
7306 | self->SetItemData(item, data); |
7307 | } | |
7308 | return data->GetData(); | |
c368d904 | 7309 | } |
efc5f224 | 7310 | static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 7311 | PyObject * _resultobj; |
cf694132 | 7312 | PyObject * _result; |
f6bcfd97 | 7313 | wxPyTreeCtrl * _arg0; |
08127323 | 7314 | wxTreeItemId * _arg1; |
1d99702e RD |
7315 | PyObject * _argo0 = 0; |
7316 | PyObject * _argo1 = 0; | |
efc5f224 | 7317 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
7318 | |
7319 | self = self; | |
efc5f224 | 7320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1)) |
08127323 | 7321 | return NULL; |
1d99702e RD |
7322 | if (_argo0) { |
7323 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7324 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
7326 | return NULL; |
7327 | } | |
7328 | } | |
1d99702e RD |
7329 | if (_argo1) { |
7330 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7331 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 | 7332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p."); |
08127323 RD |
7333 | return NULL; |
7334 | } | |
7335 | } | |
cf694132 | 7336 | { |
474c48f9 | 7337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7338 | _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1); |
cf694132 | 7339 | |
474c48f9 | 7340 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7341 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7342 | }{ |
7343 | _resultobj = _result; | |
7344 | } | |
7345 | return _resultobj; | |
7346 | } | |
7347 | ||
f6bcfd97 | 7348 | static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) { |
cf694132 RD |
7349 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7350 | if (data == NULL) { | |
7351 | data = new wxPyTreeItemData(obj); | |
f6bcfd97 | 7352 | data->SetId(item); // set the id |
cf694132 RD |
7353 | self->SetItemData(item, data); |
7354 | } else | |
7355 | data->SetData(obj); | |
c368d904 | 7356 | } |
efc5f224 | 7357 | static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7358 | PyObject * _resultobj; |
f6bcfd97 | 7359 | wxPyTreeCtrl * _arg0; |
cf694132 RD |
7360 | wxTreeItemId * _arg1; |
7361 | PyObject * _arg2; | |
1d99702e RD |
7362 | PyObject * _argo0 = 0; |
7363 | PyObject * _argo1 = 0; | |
cf694132 | 7364 | PyObject * _obj2 = 0; |
efc5f224 | 7365 | char *_kwnames[] = { "self","item","obj", NULL }; |
cf694132 RD |
7366 | |
7367 | self = self; | |
efc5f224 | 7368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2)) |
cf694132 | 7369 | return NULL; |
1d99702e RD |
7370 | if (_argo0) { |
7371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7374 | return NULL; |
7375 | } | |
7376 | } | |
1d99702e RD |
7377 | if (_argo1) { |
7378 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7379 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p."); |
7381 | return NULL; | |
7382 | } | |
7383 | } | |
7384 | { | |
7385 | _arg2 = _obj2; | |
7386 | } | |
7387 | { | |
474c48f9 | 7388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7389 | wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2); |
cf694132 | 7390 | |
474c48f9 | 7391 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7392 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7393 | } Py_INCREF(Py_None); |
08127323 RD |
7394 | _resultobj = Py_None; |
7395 | return _resultobj; | |
7396 | } | |
7397 | ||
d5c9047a | 7398 | #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) |
efc5f224 | 7399 | static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7400 | PyObject * _resultobj; |
d5c9047a | 7401 | bool _result; |
f6bcfd97 | 7402 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7403 | wxTreeItemId * _arg1; |
1d99702e RD |
7404 | PyObject * _argo0 = 0; |
7405 | PyObject * _argo1 = 0; | |
efc5f224 | 7406 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7407 | |
7408 | self = self; | |
efc5f224 | 7409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7410 | return NULL; |
1d99702e RD |
7411 | if (_argo0) { |
7412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7415 | return NULL; |
7416 | } | |
7417 | } | |
1d99702e RD |
7418 | if (_argo1) { |
7419 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7420 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p."); |
7422 | return NULL; | |
7423 | } | |
7424 | } | |
cf694132 | 7425 | { |
474c48f9 | 7426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7427 | _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1); |
cf694132 | 7428 | |
474c48f9 | 7429 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7430 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7431 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7432 | return _resultobj; |
7433 | } | |
7434 | ||
d5c9047a | 7435 | #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0)) |
efc5f224 | 7436 | static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7437 | PyObject * _resultobj; |
d5c9047a | 7438 | bool _result; |
f6bcfd97 | 7439 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7440 | wxTreeItemId * _arg1; |
1d99702e RD |
7441 | PyObject * _argo0 = 0; |
7442 | PyObject * _argo1 = 0; | |
efc5f224 | 7443 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7444 | |
7445 | self = self; | |
efc5f224 | 7446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7447 | return NULL; |
1d99702e RD |
7448 | if (_argo0) { |
7449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7452 | return NULL; |
7453 | } | |
7454 | } | |
1d99702e RD |
7455 | if (_argo1) { |
7456 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7457 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p."); |
7459 | return NULL; | |
7460 | } | |
7461 | } | |
cf694132 | 7462 | { |
474c48f9 | 7463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7464 | _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1); |
cf694132 | 7465 | |
474c48f9 | 7466 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7467 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7468 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7469 | return _resultobj; |
7470 | } | |
7471 | ||
d5c9047a | 7472 | #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0)) |
efc5f224 | 7473 | static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7474 | PyObject * _resultobj; |
d5c9047a | 7475 | bool _result; |
f6bcfd97 | 7476 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7477 | wxTreeItemId * _arg1; |
1d99702e RD |
7478 | PyObject * _argo0 = 0; |
7479 | PyObject * _argo1 = 0; | |
efc5f224 | 7480 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7481 | |
7482 | self = self; | |
efc5f224 | 7483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7484 | return NULL; |
1d99702e RD |
7485 | if (_argo0) { |
7486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7489 | return NULL; |
7490 | } | |
7491 | } | |
1d99702e RD |
7492 | if (_argo1) { |
7493 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7494 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p."); |
7496 | return NULL; | |
7497 | } | |
7498 | } | |
cf694132 | 7499 | { |
474c48f9 | 7500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7501 | _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1); |
cf694132 | 7502 | |
474c48f9 | 7503 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7504 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7505 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7506 | return _resultobj; |
7507 | } | |
7508 | ||
d5c9047a | 7509 | #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
efc5f224 | 7510 | static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7511 | PyObject * _resultobj; |
d5c9047a | 7512 | bool _result; |
f6bcfd97 | 7513 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7514 | wxTreeItemId * _arg1; |
1d99702e RD |
7515 | PyObject * _argo0 = 0; |
7516 | PyObject * _argo1 = 0; | |
efc5f224 | 7517 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7518 | |
7519 | self = self; | |
efc5f224 | 7520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7521 | return NULL; |
1d99702e RD |
7522 | if (_argo0) { |
7523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7526 | return NULL; |
7527 | } | |
7528 | } | |
1d99702e RD |
7529 | if (_argo1) { |
7530 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7531 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p."); |
7533 | return NULL; | |
7534 | } | |
7535 | } | |
cf694132 | 7536 | { |
474c48f9 | 7537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7538 | _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1); |
cf694132 | 7539 | |
474c48f9 | 7540 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7541 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7542 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7543 | return _resultobj; |
7544 | } | |
7545 | ||
7546 | #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem()) | |
efc5f224 | 7547 | static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7548 | PyObject * _resultobj; |
d5c9047a | 7549 | wxTreeItemId * _result; |
f6bcfd97 | 7550 | wxPyTreeCtrl * _arg0; |
1d99702e | 7551 | PyObject * _argo0 = 0; |
efc5f224 | 7552 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7553 | char _ptemp[128]; |
8ab979d7 RD |
7554 | |
7555 | self = self; | |
efc5f224 | 7556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0)) |
8ab979d7 | 7557 | return NULL; |
1d99702e RD |
7558 | if (_argo0) { |
7559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7562 | return NULL; |
7563 | } | |
7564 | } | |
cf694132 | 7565 | { |
474c48f9 | 7566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7567 | _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0)); |
cf694132 | 7568 | |
474c48f9 | 7569 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7570 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7571 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7572 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7573 | return _resultobj; |
7574 | } | |
7575 | ||
7576 | #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 7577 | static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7578 | PyObject * _resultobj; |
d5c9047a | 7579 | wxTreeItemId * _result; |
f6bcfd97 | 7580 | wxPyTreeCtrl * _arg0; |
1d99702e | 7581 | PyObject * _argo0 = 0; |
efc5f224 | 7582 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7583 | char _ptemp[128]; |
8ab979d7 RD |
7584 | |
7585 | self = self; | |
efc5f224 | 7586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 7587 | return NULL; |
1d99702e RD |
7588 | if (_argo0) { |
7589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7592 | return NULL; |
7593 | } | |
7594 | } | |
cf694132 | 7595 | { |
474c48f9 | 7596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7597 | _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0)); |
cf694132 | 7598 | |
474c48f9 | 7599 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7600 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7601 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7602 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7603 | return _resultobj; |
7604 | } | |
7605 | ||
eb715945 RD |
7606 | #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0)) |
7607 | static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7608 | PyObject * _resultobj; |
d5c9047a | 7609 | wxTreeItemId * _result; |
f6bcfd97 | 7610 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7611 | wxTreeItemId * _arg1; |
1d99702e RD |
7612 | PyObject * _argo0 = 0; |
7613 | PyObject * _argo1 = 0; | |
efc5f224 | 7614 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7615 | char _ptemp[128]; |
8ab979d7 RD |
7616 | |
7617 | self = self; | |
eb715945 | 7618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7619 | return NULL; |
1d99702e RD |
7620 | if (_argo0) { |
7621 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7622 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7624 | return NULL; |
7625 | } | |
7626 | } | |
1d99702e RD |
7627 | if (_argo1) { |
7628 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7629 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
eb715945 | 7630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7631 | return NULL; |
7632 | } | |
7633 | } | |
cf694132 | 7634 | { |
474c48f9 | 7635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7636 | _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1)); |
cf694132 | 7637 | |
474c48f9 | 7638 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7639 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7640 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7641 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7642 | return _resultobj; |
7643 | } | |
7644 | ||
f6bcfd97 | 7645 | static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) { |
474c48f9 | 7646 | wxPyBeginBlockThreads(); |
d426c97e RD |
7647 | PyObject* rval = PyList_New(0); |
7648 | wxArrayTreeItemIds array; | |
7649 | size_t num, x; | |
7650 | num = self->GetSelections(array); | |
7651 | for (x=0; x < num; x++) { | |
c368d904 RD |
7652 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); |
7653 | PyObject* item = wxPyConstructObject((void*)tii, "wxTreeItemId", TRUE); | |
d426c97e RD |
7654 | PyList_Append(rval, item); |
7655 | } | |
474c48f9 | 7656 | wxPyEndBlockThreads(); |
d426c97e RD |
7657 | return rval; |
7658 | } | |
7659 | static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7660 | PyObject * _resultobj; | |
7661 | PyObject * _result; | |
f6bcfd97 | 7662 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
7663 | PyObject * _argo0 = 0; |
7664 | char *_kwnames[] = { "self", NULL }; | |
7665 | ||
7666 | self = self; | |
7667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0)) | |
7668 | return NULL; | |
7669 | if (_argo0) { | |
7670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
7673 | return NULL; |
7674 | } | |
7675 | } | |
7676 | { | |
474c48f9 | 7677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7678 | _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0); |
d426c97e | 7679 | |
474c48f9 | 7680 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7681 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
7682 | }{ |
7683 | _resultobj = _result; | |
7684 | } | |
7685 | return _resultobj; | |
7686 | } | |
7687 | ||
bb0054cd | 7688 | #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1)) |
efc5f224 | 7689 | static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
7690 | PyObject * _resultobj; |
7691 | size_t _result; | |
f6bcfd97 | 7692 | wxPyTreeCtrl * _arg0; |
bb0054cd | 7693 | wxTreeItemId * _arg1; |
1d99702e RD |
7694 | bool _arg2 = (bool ) TRUE; |
7695 | PyObject * _argo0 = 0; | |
7696 | PyObject * _argo1 = 0; | |
7697 | int tempbool2 = (int) TRUE; | |
efc5f224 | 7698 | char *_kwnames[] = { "self","item","recursively", NULL }; |
bb0054cd RD |
7699 | |
7700 | self = self; | |
efc5f224 | 7701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2)) |
bb0054cd | 7702 | return NULL; |
1d99702e RD |
7703 | if (_argo0) { |
7704 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7705 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p."); | |
bb0054cd RD |
7707 | return NULL; |
7708 | } | |
7709 | } | |
1d99702e RD |
7710 | if (_argo1) { |
7711 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7712 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
bb0054cd RD |
7713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p."); |
7714 | return NULL; | |
7715 | } | |
7716 | } | |
7717 | _arg2 = (bool ) tempbool2; | |
7718 | { | |
474c48f9 | 7719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7720 | _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2); |
bb0054cd | 7721 | |
474c48f9 | 7722 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7723 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
7724 | } _resultobj = Py_BuildValue("i",_result); |
7725 | return _resultobj; | |
7726 | } | |
7727 | ||
d5c9047a | 7728 | #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1)) |
efc5f224 | 7729 | static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7730 | PyObject * _resultobj; |
d5c9047a | 7731 | wxTreeItemId * _result; |
f6bcfd97 | 7732 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7733 | wxTreeItemId * _arg1; |
8f8b0a8d | 7734 | long * _arg2 = (long *) &longzero; |
1d99702e RD |
7735 | PyObject * _argo0 = 0; |
7736 | PyObject * _argo1 = 0; | |
d5c9047a RD |
7737 | long temp; |
7738 | PyObject * _obj2 = 0; | |
efc5f224 | 7739 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 7740 | char _ptemp[128]; |
8ab979d7 RD |
7741 | |
7742 | self = self; | |
8f8b0a8d | 7743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7744 | return NULL; |
1d99702e RD |
7745 | if (_argo0) { |
7746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7749 | return NULL; |
7750 | } | |
7751 | } | |
1d99702e RD |
7752 | if (_argo1) { |
7753 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7754 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7756 | return NULL; |
7757 | } | |
7758 | } | |
8f8b0a8d | 7759 | if (_obj2) |
d5c9047a RD |
7760 | { |
7761 | temp = (long) PyInt_AsLong(_obj2); | |
7762 | _arg2 = &temp; | |
7763 | } | |
cf694132 | 7764 | { |
474c48f9 | 7765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7766 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); |
cf694132 | 7767 | |
474c48f9 | 7768 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7769 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7770 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
7771 | _resultobj = Py_BuildValue("s",_ptemp); |
7772 | { | |
7773 | PyObject *o; | |
7774 | o = PyInt_FromLong((long) (*_arg2)); | |
7775 | _resultobj = t_output_helper(_resultobj, o); | |
7776 | } | |
8ab979d7 RD |
7777 | return _resultobj; |
7778 | } | |
7779 | ||
d5c9047a | 7780 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) |
efc5f224 | 7781 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7782 | PyObject * _resultobj; |
d5c9047a | 7783 | wxTreeItemId * _result; |
f6bcfd97 | 7784 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7785 | wxTreeItemId * _arg1; |
7786 | long * _arg2; | |
1d99702e RD |
7787 | PyObject * _argo0 = 0; |
7788 | PyObject * _argo1 = 0; | |
d5c9047a | 7789 | long temp; |
8ab979d7 | 7790 | PyObject * _obj2 = 0; |
efc5f224 | 7791 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 7792 | char _ptemp[128]; |
8ab979d7 RD |
7793 | |
7794 | self = self; | |
efc5f224 | 7795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7796 | return NULL; |
1d99702e RD |
7797 | if (_argo0) { |
7798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7801 | return NULL; |
7802 | } | |
7803 | } | |
1d99702e RD |
7804 | if (_argo1) { |
7805 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7806 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); |
8ab979d7 | 7808 | return NULL; |
d5c9047a | 7809 | } |
8ab979d7 | 7810 | } |
d5c9047a RD |
7811 | { |
7812 | temp = (long) PyInt_AsLong(_obj2); | |
7813 | _arg2 = &temp; | |
8ab979d7 | 7814 | } |
cf694132 | 7815 | { |
474c48f9 | 7816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7817 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); |
cf694132 | 7818 | |
474c48f9 | 7819 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7820 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7821 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7822 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 | 7823 | { |
d5c9047a RD |
7824 | PyObject *o; |
7825 | o = PyInt_FromLong((long) (*_arg2)); | |
7826 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
7827 | } |
7828 | return _resultobj; | |
7829 | } | |
7830 | ||
d5c9047a | 7831 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) |
efc5f224 | 7832 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7833 | PyObject * _resultobj; |
d5c9047a | 7834 | wxTreeItemId * _result; |
f6bcfd97 | 7835 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7836 | wxTreeItemId * _arg1; |
1d99702e RD |
7837 | PyObject * _argo0 = 0; |
7838 | PyObject * _argo1 = 0; | |
efc5f224 | 7839 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7840 | char _ptemp[128]; |
8ab979d7 RD |
7841 | |
7842 | self = self; | |
efc5f224 | 7843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7844 | return NULL; |
1d99702e RD |
7845 | if (_argo0) { |
7846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7849 | return NULL; |
7850 | } | |
7851 | } | |
1d99702e RD |
7852 | if (_argo1) { |
7853 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7854 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); |
7856 | return NULL; | |
7857 | } | |
7858 | } | |
cf694132 | 7859 | { |
474c48f9 | 7860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7861 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); |
cf694132 | 7862 | |
474c48f9 | 7863 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7864 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7865 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7866 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7867 | return _resultobj; |
7868 | } | |
7869 | ||
d5c9047a | 7870 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) |
efc5f224 | 7871 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7872 | PyObject * _resultobj; |
d5c9047a | 7873 | wxTreeItemId * _result; |
f6bcfd97 | 7874 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7875 | wxTreeItemId * _arg1; |
1d99702e RD |
7876 | PyObject * _argo0 = 0; |
7877 | PyObject * _argo1 = 0; | |
efc5f224 | 7878 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7879 | char _ptemp[128]; |
8ab979d7 RD |
7880 | |
7881 | self = self; | |
efc5f224 | 7882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7883 | return NULL; |
1d99702e RD |
7884 | if (_argo0) { |
7885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7888 | return NULL; |
7889 | } | |
7890 | } | |
1d99702e RD |
7891 | if (_argo1) { |
7892 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7893 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); |
7895 | return NULL; | |
7896 | } | |
7897 | } | |
cf694132 | 7898 | { |
474c48f9 | 7899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7900 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); |
cf694132 | 7901 | |
474c48f9 | 7902 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7903 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7904 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7905 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7906 | return _resultobj; |
7907 | } | |
7908 | ||
d5c9047a | 7909 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) |
efc5f224 | 7910 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7911 | PyObject * _resultobj; |
d5c9047a | 7912 | wxTreeItemId * _result; |
f6bcfd97 | 7913 | wxPyTreeCtrl * _arg0; |
1d99702e | 7914 | PyObject * _argo0 = 0; |
efc5f224 | 7915 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7916 | char _ptemp[128]; |
8ab979d7 RD |
7917 | |
7918 | self = self; | |
efc5f224 | 7919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) |
8ab979d7 | 7920 | return NULL; |
1d99702e RD |
7921 | if (_argo0) { |
7922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7925 | return NULL; |
7926 | } | |
7927 | } | |
cf694132 | 7928 | { |
474c48f9 | 7929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7930 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); |
cf694132 | 7931 | |
474c48f9 | 7932 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7933 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7934 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7935 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7936 | return _resultobj; |
7937 | } | |
7938 | ||
d5c9047a | 7939 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) |
efc5f224 | 7940 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7941 | PyObject * _resultobj; |
d5c9047a | 7942 | wxTreeItemId * _result; |
f6bcfd97 | 7943 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7944 | wxTreeItemId * _arg1; |
1d99702e RD |
7945 | PyObject * _argo0 = 0; |
7946 | PyObject * _argo1 = 0; | |
efc5f224 | 7947 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7948 | char _ptemp[128]; |
8ab979d7 RD |
7949 | |
7950 | self = self; | |
efc5f224 | 7951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7952 | return NULL; |
1d99702e RD |
7953 | if (_argo0) { |
7954 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7957 | return NULL; |
7958 | } | |
7959 | } | |
1d99702e RD |
7960 | if (_argo1) { |
7961 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7962 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); |
7964 | return NULL; | |
7965 | } | |
7966 | } | |
cf694132 | 7967 | { |
474c48f9 | 7968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7969 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); |
cf694132 | 7970 | |
474c48f9 | 7971 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7972 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7973 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7974 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7975 | return _resultobj; |
7976 | } | |
7977 | ||
d5c9047a | 7978 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) |
efc5f224 | 7979 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7980 | PyObject * _resultobj; |
d5c9047a | 7981 | wxTreeItemId * _result; |
f6bcfd97 | 7982 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7983 | wxTreeItemId * _arg1; |
1d99702e RD |
7984 | PyObject * _argo0 = 0; |
7985 | PyObject * _argo1 = 0; | |
efc5f224 | 7986 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7987 | char _ptemp[128]; |
8ab979d7 RD |
7988 | |
7989 | self = self; | |
efc5f224 | 7990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7991 | return NULL; |
1d99702e RD |
7992 | if (_argo0) { |
7993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7996 | return NULL; |
7997 | } | |
7998 | } | |
1d99702e RD |
7999 | if (_argo1) { |
8000 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8001 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 8002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8003 | return NULL; |
8004 | } | |
8005 | } | |
cf694132 | 8006 | { |
474c48f9 | 8007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8008 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); |
cf694132 | 8009 | |
474c48f9 | 8010 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8011 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8012 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8013 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8014 | return _resultobj; |
8015 | } | |
8016 | ||
d426c97e RD |
8017 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) |
8018 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8019 | PyObject * _resultobj; | |
8020 | wxTreeItemId * _result; | |
f6bcfd97 | 8021 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8022 | wxTreeItemId * _arg1; |
8023 | PyObject * _argo0 = 0; | |
8024 | PyObject * _argo1 = 0; | |
8025 | char *_kwnames[] = { "self","item", NULL }; | |
8026 | char _ptemp[128]; | |
8027 | ||
8028 | self = self; | |
8029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
8030 | return NULL; | |
8031 | if (_argo0) { | |
8032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8035 | return NULL; |
8036 | } | |
8037 | } | |
8038 | if (_argo1) { | |
8039 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8040 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); | |
8042 | return NULL; | |
8043 | } | |
8044 | } | |
8045 | { | |
474c48f9 | 8046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8047 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); |
d426c97e | 8048 | |
474c48f9 | 8049 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8050 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8051 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8052 | _resultobj = Py_BuildValue("s",_ptemp); | |
8053 | return _resultobj; | |
8054 | } | |
8055 | ||
d5c9047a | 8056 | #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 8057 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8058 | PyObject * _resultobj; |
d5c9047a | 8059 | wxTreeItemId * _result; |
f6bcfd97 | 8060 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8061 | wxString * _arg1; |
1d99702e RD |
8062 | int _arg2 = (int ) -1; |
8063 | int _arg3 = (int ) -1; | |
8064 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
8065 | PyObject * _argo0 = 0; | |
d5c9047a | 8066 | PyObject * _obj1 = 0; |
1d99702e | 8067 | PyObject * _argo4 = 0; |
efc5f224 | 8068 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; |
d5c9047a | 8069 | char _ptemp[128]; |
8ab979d7 RD |
8070 | |
8071 | self = self; | |
efc5f224 | 8072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) |
8ab979d7 | 8073 | return NULL; |
1d99702e RD |
8074 | if (_argo0) { |
8075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8078 | return NULL; |
8079 | } | |
8080 | } | |
d5c9047a | 8081 | { |
c8bc7bb8 RD |
8082 | _arg1 = wxString_in_helper(_obj1); |
8083 | if (_arg1 == NULL) | |
2cd2fac8 | 8084 | return NULL; |
d5c9047a | 8085 | } |
1d99702e RD |
8086 | if (_argo4) { |
8087 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
8088 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
cf694132 | 8089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
8090 | return NULL; |
8091 | } | |
8092 | } | |
cf694132 | 8093 | { |
474c48f9 | 8094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8095 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); |
cf694132 | 8096 | |
474c48f9 | 8097 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8098 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8099 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8100 | _resultobj = Py_BuildValue("s",_ptemp); |
8101 | { | |
8102 | if (_obj1) | |
8103 | delete _arg1; | |
8104 | } | |
8ab979d7 RD |
8105 | return _resultobj; |
8106 | } | |
8107 | ||
d5c9047a | 8108 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8109 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8110 | PyObject * _resultobj; |
d5c9047a | 8111 | wxTreeItemId * _result; |
f6bcfd97 | 8112 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8113 | wxTreeItemId * _arg1; |
8114 | wxString * _arg2; | |
1d99702e RD |
8115 | int _arg3 = (int ) -1; |
8116 | int _arg4 = (int ) -1; | |
8117 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8118 | PyObject * _argo0 = 0; | |
8119 | PyObject * _argo1 = 0; | |
d5c9047a | 8120 | PyObject * _obj2 = 0; |
1d99702e | 8121 | PyObject * _argo5 = 0; |
efc5f224 | 8122 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8123 | char _ptemp[128]; |
8ab979d7 RD |
8124 | |
8125 | self = self; | |
efc5f224 | 8126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8127 | return NULL; |
1d99702e RD |
8128 | if (_argo0) { |
8129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8132 | return NULL; |
8133 | } | |
8134 | } | |
1d99702e RD |
8135 | if (_argo1) { |
8136 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8137 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); |
8139 | return NULL; | |
8140 | } | |
8141 | } | |
8142 | { | |
c8bc7bb8 RD |
8143 | _arg2 = wxString_in_helper(_obj2); |
8144 | if (_arg2 == NULL) | |
2cd2fac8 | 8145 | return NULL; |
d5c9047a | 8146 | } |
1d99702e RD |
8147 | if (_argo5) { |
8148 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8149 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8151 | return NULL; |
8152 | } | |
8153 | } | |
cf694132 | 8154 | { |
474c48f9 | 8155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8156 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); |
cf694132 | 8157 | |
474c48f9 | 8158 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8159 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8160 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8161 | _resultobj = Py_BuildValue("s",_ptemp); |
8162 | { | |
8163 | if (_obj2) | |
8164 | delete _arg2; | |
8165 | } | |
8ab979d7 RD |
8166 | return _resultobj; |
8167 | } | |
8168 | ||
d5c9047a | 8169 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 8170 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8171 | PyObject * _resultobj; |
d5c9047a | 8172 | wxTreeItemId * _result; |
f6bcfd97 | 8173 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8174 | wxTreeItemId * _arg1; |
8175 | wxTreeItemId * _arg2; | |
8176 | wxString * _arg3; | |
1d99702e RD |
8177 | int _arg4 = (int ) -1; |
8178 | int _arg5 = (int ) -1; | |
8179 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
8180 | PyObject * _argo0 = 0; | |
8181 | PyObject * _argo1 = 0; | |
8182 | PyObject * _argo2 = 0; | |
d5c9047a | 8183 | PyObject * _obj3 = 0; |
1d99702e | 8184 | PyObject * _argo6 = 0; |
efc5f224 | 8185 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; |
d5c9047a | 8186 | char _ptemp[128]; |
8ab979d7 RD |
8187 | |
8188 | self = self; | |
efc5f224 | 8189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) |
8ab979d7 | 8190 | return NULL; |
1d99702e RD |
8191 | if (_argo0) { |
8192 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8193 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8195 | return NULL; |
8196 | } | |
8197 | } | |
1d99702e RD |
8198 | if (_argo1) { |
8199 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8200 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8202 | return NULL; | |
8203 | } | |
8204 | } | |
1d99702e RD |
8205 | if (_argo2) { |
8206 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8207 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8209 | return NULL; | |
8210 | } | |
8211 | } | |
8212 | { | |
c8bc7bb8 RD |
8213 | _arg3 = wxString_in_helper(_obj3); |
8214 | if (_arg3 == NULL) | |
2cd2fac8 | 8215 | return NULL; |
d5c9047a | 8216 | } |
1d99702e RD |
8217 | if (_argo6) { |
8218 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8219 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
cf694132 | 8220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8221 | return NULL; |
8222 | } | |
8223 | } | |
cf694132 | 8224 | { |
474c48f9 | 8225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8226 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); |
cf694132 | 8227 | |
474c48f9 | 8228 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8229 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8230 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8231 | _resultobj = Py_BuildValue("s",_ptemp); |
8232 | { | |
8233 | if (_obj3) | |
8234 | delete _arg3; | |
8235 | } | |
8ab979d7 RD |
8236 | return _resultobj; |
8237 | } | |
8238 | ||
f6bcfd97 BP |
8239 | #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
8240 | static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8241 | PyObject * _resultobj; | |
8242 | wxTreeItemId * _result; | |
8243 | wxPyTreeCtrl * _arg0; | |
8244 | wxTreeItemId * _arg1; | |
8245 | size_t _arg2; | |
8246 | wxString * _arg3; | |
8247 | int _arg4 = (int ) -1; | |
8248 | int _arg5 = (int ) -1; | |
55d18651 | 8249 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; |
f6bcfd97 BP |
8250 | PyObject * _argo0 = 0; |
8251 | PyObject * _argo1 = 0; | |
8252 | PyObject * _obj3 = 0; | |
8253 | PyObject * _argo6 = 0; | |
8254 | char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL }; | |
8255 | char _ptemp[128]; | |
8256 | ||
8257 | self = self; | |
8258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
8259 | return NULL; | |
8260 | if (_argo0) { | |
8261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p."); | |
8264 | return NULL; | |
8265 | } | |
8266 | } | |
8267 | if (_argo1) { | |
8268 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8269 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8270 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p."); | |
8271 | return NULL; | |
8272 | } | |
8273 | } | |
8274 | { | |
c8bc7bb8 RD |
8275 | _arg3 = wxString_in_helper(_obj3); |
8276 | if (_arg3 == NULL) | |
2cd2fac8 | 8277 | return NULL; |
f6bcfd97 BP |
8278 | } |
8279 | if (_argo6) { | |
8280 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
55d18651 RD |
8281 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { |
8282 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeItemData_p."); | |
f6bcfd97 BP |
8283 | return NULL; |
8284 | } | |
8285 | } | |
8286 | { | |
474c48f9 | 8287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8288 | _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6)); |
f6bcfd97 | 8289 | |
474c48f9 | 8290 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8291 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
8292 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8293 | _resultobj = Py_BuildValue("s",_ptemp); | |
8294 | { | |
8295 | if (_obj3) | |
8296 | delete _arg3; | |
8297 | } | |
8298 | return _resultobj; | |
8299 | } | |
8300 | ||
d5c9047a | 8301 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8302 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8303 | PyObject * _resultobj; |
d5c9047a | 8304 | wxTreeItemId * _result; |
f6bcfd97 | 8305 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8306 | wxTreeItemId * _arg1; |
8ab979d7 | 8307 | wxString * _arg2; |
1d99702e RD |
8308 | int _arg3 = (int ) -1; |
8309 | int _arg4 = (int ) -1; | |
8310 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8311 | PyObject * _argo0 = 0; | |
8312 | PyObject * _argo1 = 0; | |
8ab979d7 | 8313 | PyObject * _obj2 = 0; |
1d99702e | 8314 | PyObject * _argo5 = 0; |
efc5f224 | 8315 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8316 | char _ptemp[128]; |
8ab979d7 RD |
8317 | |
8318 | self = self; | |
efc5f224 | 8319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8320 | return NULL; |
1d99702e RD |
8321 | if (_argo0) { |
8322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8325 | return NULL; |
8326 | } | |
8327 | } | |
1d99702e RD |
8328 | if (_argo1) { |
8329 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8330 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 8331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8332 | return NULL; |
8333 | } | |
8334 | } | |
8335 | { | |
c8bc7bb8 RD |
8336 | _arg2 = wxString_in_helper(_obj2); |
8337 | if (_arg2 == NULL) | |
2cd2fac8 | 8338 | return NULL; |
8ab979d7 | 8339 | } |
1d99702e RD |
8340 | if (_argo5) { |
8341 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8342 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8344 | return NULL; |
8345 | } | |
8346 | } | |
cf694132 | 8347 | { |
474c48f9 | 8348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8349 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); |
cf694132 | 8350 | |
474c48f9 | 8351 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8352 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8353 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8354 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8355 | { |
8356 | if (_obj2) | |
8357 | delete _arg2; | |
8358 | } | |
8359 | return _resultobj; | |
8360 | } | |
8361 | ||
d5c9047a | 8362 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
efc5f224 | 8363 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8364 | PyObject * _resultobj; |
f6bcfd97 | 8365 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8366 | wxTreeItemId * _arg1; |
1d99702e RD |
8367 | PyObject * _argo0 = 0; |
8368 | PyObject * _argo1 = 0; | |
efc5f224 | 8369 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
8370 | |
8371 | self = self; | |
efc5f224 | 8372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8373 | return NULL; |
1d99702e RD |
8374 | if (_argo0) { |
8375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8378 | return NULL; |
8379 | } | |
8380 | } | |
1d99702e RD |
8381 | if (_argo1) { |
8382 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8383 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); |
8385 | return NULL; | |
8386 | } | |
8387 | } | |
cf694132 | 8388 | { |
474c48f9 | 8389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8390 | wxTreeCtrl_Delete(_arg0,*_arg1); |
cf694132 | 8391 | |
474c48f9 | 8392 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8393 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8394 | } Py_INCREF(Py_None); |
d5c9047a RD |
8395 | _resultobj = Py_None; |
8396 | return _resultobj; | |
8397 | } | |
8398 | ||
08127323 | 8399 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) |
efc5f224 | 8400 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 8401 | PyObject * _resultobj; |
f6bcfd97 | 8402 | wxPyTreeCtrl * _arg0; |
08127323 | 8403 | wxTreeItemId * _arg1; |
1d99702e RD |
8404 | PyObject * _argo0 = 0; |
8405 | PyObject * _argo1 = 0; | |
efc5f224 | 8406 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
8407 | |
8408 | self = self; | |
efc5f224 | 8409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) |
08127323 | 8410 | return NULL; |
1d99702e RD |
8411 | if (_argo0) { |
8412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
8415 | return NULL; |
8416 | } | |
8417 | } | |
1d99702e RD |
8418 | if (_argo1) { |
8419 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8420 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
08127323 RD |
8421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); |
8422 | return NULL; | |
8423 | } | |
8424 | } | |
cf694132 | 8425 | { |
474c48f9 | 8426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8427 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); |
cf694132 | 8428 | |
474c48f9 | 8429 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8430 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8431 | } Py_INCREF(Py_None); |
08127323 RD |
8432 | _resultobj = Py_None; |
8433 | return _resultobj; | |
8434 | } | |
8435 | ||
d5c9047a | 8436 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) |
efc5f224 | 8437 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8438 | PyObject * _resultobj; |
f6bcfd97 | 8439 | wxPyTreeCtrl * _arg0; |
1d99702e | 8440 | PyObject * _argo0 = 0; |
efc5f224 | 8441 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8442 | |
8443 | self = self; | |
efc5f224 | 8444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) |
d5c9047a | 8445 | return NULL; |
1d99702e RD |
8446 | if (_argo0) { |
8447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8450 | return NULL; |
8451 | } | |
8452 | } | |
cf694132 | 8453 | { |
474c48f9 | 8454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8455 | wxTreeCtrl_DeleteAllItems(_arg0); |
cf694132 | 8456 | |
474c48f9 | 8457 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8458 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8459 | } Py_INCREF(Py_None); |
d5c9047a RD |
8460 | _resultobj = Py_None; |
8461 | return _resultobj; | |
8462 | } | |
8463 | ||
8464 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
efc5f224 | 8465 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8466 | PyObject * _resultobj; |
f6bcfd97 | 8467 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8468 | wxTreeItemId * _arg1; |
1d99702e RD |
8469 | PyObject * _argo0 = 0; |
8470 | PyObject * _argo1 = 0; | |
efc5f224 | 8471 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8472 | |
8473 | self = self; | |
efc5f224 | 8474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8475 | return NULL; |
1d99702e RD |
8476 | if (_argo0) { |
8477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8480 | return NULL; |
8481 | } | |
8482 | } | |
1d99702e RD |
8483 | if (_argo1) { |
8484 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8485 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8486 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); |
8487 | return NULL; | |
8488 | } | |
8489 | } | |
cf694132 | 8490 | { |
474c48f9 | 8491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8492 | wxTreeCtrl_Expand(_arg0,*_arg1); |
cf694132 | 8493 | |
474c48f9 | 8494 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8495 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8496 | } Py_INCREF(Py_None); |
d5c9047a RD |
8497 | _resultobj = Py_None; |
8498 | return _resultobj; | |
8499 | } | |
8500 | ||
8501 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
efc5f224 | 8502 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8503 | PyObject * _resultobj; |
f6bcfd97 | 8504 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8505 | wxTreeItemId * _arg1; |
1d99702e RD |
8506 | PyObject * _argo0 = 0; |
8507 | PyObject * _argo1 = 0; | |
efc5f224 | 8508 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8509 | |
8510 | self = self; | |
efc5f224 | 8511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8512 | return NULL; |
1d99702e RD |
8513 | if (_argo0) { |
8514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8517 | return NULL; |
8518 | } | |
8519 | } | |
1d99702e RD |
8520 | if (_argo1) { |
8521 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8522 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p."); |
8524 | return NULL; | |
8525 | } | |
8526 | } | |
cf694132 | 8527 | { |
474c48f9 | 8528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8529 | wxTreeCtrl_Collapse(_arg0,*_arg1); |
cf694132 | 8530 | |
474c48f9 | 8531 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8532 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8533 | } Py_INCREF(Py_None); |
d5c9047a RD |
8534 | _resultobj = Py_None; |
8535 | return _resultobj; | |
8536 | } | |
8537 | ||
8538 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
efc5f224 | 8539 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8540 | PyObject * _resultobj; |
f6bcfd97 | 8541 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8542 | wxTreeItemId * _arg1; |
1d99702e RD |
8543 | PyObject * _argo0 = 0; |
8544 | PyObject * _argo1 = 0; | |
efc5f224 | 8545 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8546 | |
8547 | self = self; | |
efc5f224 | 8548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8549 | return NULL; |
1d99702e RD |
8550 | if (_argo0) { |
8551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8554 | return NULL; |
8555 | } | |
8556 | } | |
1d99702e RD |
8557 | if (_argo1) { |
8558 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8559 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); |
8561 | return NULL; | |
8562 | } | |
8563 | } | |
cf694132 | 8564 | { |
474c48f9 | 8565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8566 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); |
cf694132 | 8567 | |
474c48f9 | 8568 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8569 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8570 | } Py_INCREF(Py_None); |
d5c9047a RD |
8571 | _resultobj = Py_None; |
8572 | return _resultobj; | |
8573 | } | |
8574 | ||
8575 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
efc5f224 | 8576 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8577 | PyObject * _resultobj; |
f6bcfd97 | 8578 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8579 | wxTreeItemId * _arg1; |
1d99702e RD |
8580 | PyObject * _argo0 = 0; |
8581 | PyObject * _argo1 = 0; | |
efc5f224 | 8582 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8583 | |
8584 | self = self; | |
efc5f224 | 8585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8586 | return NULL; |
1d99702e RD |
8587 | if (_argo0) { |
8588 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8589 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8591 | return NULL; |
8592 | } | |
8593 | } | |
1d99702e RD |
8594 | if (_argo1) { |
8595 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8596 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); |
8598 | return NULL; | |
8599 | } | |
8600 | } | |
cf694132 | 8601 | { |
474c48f9 | 8602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8603 | wxTreeCtrl_Toggle(_arg0,*_arg1); |
cf694132 | 8604 | |
474c48f9 | 8605 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8606 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8607 | } Py_INCREF(Py_None); |
d5c9047a RD |
8608 | _resultobj = Py_None; |
8609 | return _resultobj; | |
8610 | } | |
8611 | ||
8612 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
efc5f224 | 8613 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8614 | PyObject * _resultobj; |
f6bcfd97 | 8615 | wxPyTreeCtrl * _arg0; |
1d99702e | 8616 | PyObject * _argo0 = 0; |
efc5f224 | 8617 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8618 | |
8619 | self = self; | |
efc5f224 | 8620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) |
d5c9047a | 8621 | return NULL; |
1d99702e RD |
8622 | if (_argo0) { |
8623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8626 | return NULL; |
8627 | } | |
8628 | } | |
cf694132 | 8629 | { |
474c48f9 | 8630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8631 | wxTreeCtrl_Unselect(_arg0); |
cf694132 | 8632 | |
474c48f9 | 8633 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8634 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8635 | } Py_INCREF(Py_None); |
d5c9047a RD |
8636 | _resultobj = Py_None; |
8637 | return _resultobj; | |
8638 | } | |
8639 | ||
8bf5d46e | 8640 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) |
efc5f224 | 8641 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e | 8642 | PyObject * _resultobj; |
f6bcfd97 | 8643 | wxPyTreeCtrl * _arg0; |
1d99702e | 8644 | PyObject * _argo0 = 0; |
efc5f224 | 8645 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
8646 | |
8647 | self = self; | |
efc5f224 | 8648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) |
8bf5d46e | 8649 | return NULL; |
1d99702e RD |
8650 | if (_argo0) { |
8651 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8652 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p."); | |
8bf5d46e RD |
8654 | return NULL; |
8655 | } | |
8656 | } | |
8657 | { | |
474c48f9 | 8658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8659 | wxTreeCtrl_UnselectAll(_arg0); |
8bf5d46e | 8660 | |
474c48f9 | 8661 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8662 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
8663 | } Py_INCREF(Py_None); |
8664 | _resultobj = Py_None; | |
8665 | return _resultobj; | |
8666 | } | |
8667 | ||
d5c9047a | 8668 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) |
efc5f224 | 8669 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8670 | PyObject * _resultobj; |
f6bcfd97 | 8671 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8672 | wxTreeItemId * _arg1; |
1d99702e RD |
8673 | PyObject * _argo0 = 0; |
8674 | PyObject * _argo1 = 0; | |
efc5f224 | 8675 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8676 | |
8677 | self = self; | |
efc5f224 | 8678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8679 | return NULL; |
1d99702e RD |
8680 | if (_argo0) { |
8681 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8682 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8684 | return NULL; |
8685 | } | |
8686 | } | |
1d99702e RD |
8687 | if (_argo1) { |
8688 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8689 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); |
8691 | return NULL; | |
8692 | } | |
8693 | } | |
cf694132 | 8694 | { |
474c48f9 | 8695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8696 | wxTreeCtrl_SelectItem(_arg0,*_arg1); |
cf694132 | 8697 | |
474c48f9 | 8698 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8699 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8700 | } Py_INCREF(Py_None); |
d5c9047a RD |
8701 | _resultobj = Py_None; |
8702 | return _resultobj; | |
8703 | } | |
8704 | ||
8705 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
efc5f224 | 8706 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8707 | PyObject * _resultobj; |
f6bcfd97 | 8708 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8709 | wxTreeItemId * _arg1; |
1d99702e RD |
8710 | PyObject * _argo0 = 0; |
8711 | PyObject * _argo1 = 0; | |
efc5f224 | 8712 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8713 | |
8714 | self = self; | |
efc5f224 | 8715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8716 | return NULL; |
1d99702e RD |
8717 | if (_argo0) { |
8718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8721 | return NULL; |
8722 | } | |
8723 | } | |
1d99702e RD |
8724 | if (_argo1) { |
8725 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8726 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); |
8728 | return NULL; | |
8729 | } | |
8730 | } | |
cf694132 | 8731 | { |
474c48f9 | 8732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8733 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); |
cf694132 | 8734 | |
474c48f9 | 8735 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8736 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8737 | } Py_INCREF(Py_None); |
d5c9047a RD |
8738 | _resultobj = Py_None; |
8739 | return _resultobj; | |
8740 | } | |
8741 | ||
8742 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
efc5f224 | 8743 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8744 | PyObject * _resultobj; |
f6bcfd97 | 8745 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8746 | wxTreeItemId * _arg1; |
1d99702e RD |
8747 | PyObject * _argo0 = 0; |
8748 | PyObject * _argo1 = 0; | |
efc5f224 | 8749 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8750 | |
8751 | self = self; | |
efc5f224 | 8752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8753 | return NULL; |
1d99702e RD |
8754 | if (_argo0) { |
8755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8758 | return NULL; |
8759 | } | |
8760 | } | |
1d99702e RD |
8761 | if (_argo1) { |
8762 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8763 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); |
8765 | return NULL; | |
8766 | } | |
8767 | } | |
cf694132 | 8768 | { |
474c48f9 | 8769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8770 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); |
cf694132 | 8771 | |
474c48f9 | 8772 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8773 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8774 | } Py_INCREF(Py_None); |
d5c9047a RD |
8775 | _resultobj = Py_None; |
8776 | return _resultobj; | |
8777 | } | |
8778 | ||
8779 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
efc5f224 | 8780 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8781 | PyObject * _resultobj; |
f6bcfd97 | 8782 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8783 | wxTreeItemId * _arg1; |
1d99702e RD |
8784 | PyObject * _argo0 = 0; |
8785 | PyObject * _argo1 = 0; | |
efc5f224 | 8786 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8787 | |
8788 | self = self; | |
efc5f224 | 8789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8790 | return NULL; |
1d99702e RD |
8791 | if (_argo0) { |
8792 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8793 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8795 | return NULL; |
8796 | } | |
8797 | } | |
1d99702e RD |
8798 | if (_argo1) { |
8799 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8800 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); |
8802 | return NULL; | |
8803 | } | |
8804 | } | |
cf694132 | 8805 | { |
474c48f9 | 8806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8807 | wxTreeCtrl_EditLabel(_arg0,*_arg1); |
cf694132 | 8808 | |
474c48f9 | 8809 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8810 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8811 | } Py_INCREF(Py_None); |
d5c9047a | 8812 | _resultobj = Py_None; |
8ab979d7 RD |
8813 | return _resultobj; |
8814 | } | |
8815 | ||
d426c97e RD |
8816 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) |
8817 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8818 | PyObject * _resultobj; | |
f6bcfd97 | 8819 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8820 | wxTreeItemId * _arg1; |
8821 | PyObject * _argo0 = 0; | |
8822 | PyObject * _argo1 = 0; | |
8823 | char *_kwnames[] = { "self","item", NULL }; | |
8824 | ||
8825 | self = self; | |
8826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
8827 | return NULL; | |
8828 | if (_argo0) { | |
8829 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8830 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8831 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8832 | return NULL; |
8833 | } | |
8834 | } | |
8835 | if (_argo1) { | |
8836 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8837 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); | |
8839 | return NULL; | |
8840 | } | |
8841 | } | |
8842 | { | |
474c48f9 | 8843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8844 | wxTreeCtrl_SortChildren(_arg0,*_arg1); |
d426c97e | 8845 | |
474c48f9 | 8846 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8847 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8848 | } Py_INCREF(Py_None); |
8849 | _resultobj = Py_None; | |
8850 | return _resultobj; | |
8851 | } | |
8852 | ||
b8b8dda7 | 8853 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) |
efc5f224 | 8854 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 | 8855 | PyObject * _resultobj; |
f6bcfd97 | 8856 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 8857 | wxTreeItemId * _arg1; |
b1462dfa | 8858 | int _arg2 = (int ) TRUE; |
1d99702e RD |
8859 | PyObject * _argo0 = 0; |
8860 | PyObject * _argo1 = 0; | |
efc5f224 | 8861 | char *_kwnames[] = { "self","item","bold", NULL }; |
b8b8dda7 RD |
8862 | |
8863 | self = self; | |
b1462dfa | 8864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) |
b8b8dda7 | 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_SetItemBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
8870 | return NULL; |
8871 | } | |
8872 | } | |
1d99702e RD |
8873 | if (_argo1) { |
8874 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8875 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
8876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); |
8877 | return NULL; | |
8878 | } | |
8879 | } | |
cf694132 | 8880 | { |
474c48f9 | 8881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8882 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); |
cf694132 | 8883 | |
474c48f9 | 8884 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8885 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8886 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
8887 | _resultobj = Py_None; |
8888 | return _resultobj; | |
8889 | } | |
8890 | ||
8891 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
efc5f224 | 8892 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
8893 | PyObject * _resultobj; |
8894 | bool _result; | |
f6bcfd97 | 8895 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 8896 | wxTreeItemId * _arg1; |
1d99702e RD |
8897 | PyObject * _argo0 = 0; |
8898 | PyObject * _argo1 = 0; | |
efc5f224 | 8899 | char *_kwnames[] = { "self","item", NULL }; |
b8b8dda7 RD |
8900 | |
8901 | self = self; | |
efc5f224 | 8902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 8903 | return NULL; |
1d99702e RD |
8904 | if (_argo0) { |
8905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
8908 | return NULL; |
8909 | } | |
8910 | } | |
1d99702e RD |
8911 | if (_argo1) { |
8912 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8913 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
8914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); |
8915 | return NULL; | |
8916 | } | |
8917 | } | |
cf694132 | 8918 | { |
474c48f9 | 8919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8920 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); |
cf694132 | 8921 | |
474c48f9 | 8922 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8923 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8924 | } _resultobj = Py_BuildValue("i",_result); |
b8b8dda7 RD |
8925 | return _resultobj; |
8926 | } | |
8927 | ||
164b735b | 8928 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
efc5f224 | 8929 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
8930 | PyObject * _resultobj; |
8931 | wxTreeItemId * _result; | |
f6bcfd97 | 8932 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 8933 | wxPoint * _arg1; |
164b735b RD |
8934 | int * _arg2; |
8935 | int temp; | |
1d99702e | 8936 | PyObject * _argo0 = 0; |
164b735b | 8937 | wxPoint temp0; |
2f90df85 | 8938 | PyObject * _obj1 = 0; |
efc5f224 | 8939 | char *_kwnames[] = { "self","point", NULL }; |
b8b8dda7 RD |
8940 | char _ptemp[128]; |
8941 | ||
8942 | self = self; | |
164b735b RD |
8943 | { |
8944 | _arg2 = &temp; | |
8945 | } | |
2f90df85 | 8946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 8947 | return NULL; |
1d99702e RD |
8948 | if (_argo0) { |
8949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
8952 | return NULL; |
8953 | } | |
8954 | } | |
2f90df85 | 8955 | { |
164b735b | 8956 | _arg1 = &temp0; |
2f90df85 | 8957 | if (! wxPoint_helper(_obj1, &_arg1)) |
b8b8dda7 | 8958 | return NULL; |
2f90df85 | 8959 | } |
cf694132 | 8960 | { |
474c48f9 | 8961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8962 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); |
cf694132 | 8963 | |
474c48f9 | 8964 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8965 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8966 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
b8b8dda7 | 8967 | _resultobj = Py_BuildValue("s",_ptemp); |
164b735b RD |
8968 | { |
8969 | PyObject *o; | |
8970 | o = PyInt_FromLong((long) (*_arg2)); | |
8971 | _resultobj = t_output_helper(_resultobj, o); | |
8972 | } | |
b8b8dda7 RD |
8973 | return _resultobj; |
8974 | } | |
8975 | ||
b7e72427 RD |
8976 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
8977 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8978 | PyObject * _resultobj; | |
f6bcfd97 | 8979 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
8980 | wxTreeItemId * _arg1; |
8981 | wxColour * _arg2; | |
8982 | PyObject * _argo0 = 0; | |
8983 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
8984 | wxColour temp; |
8985 | PyObject * _obj2 = 0; | |
b7e72427 RD |
8986 | char *_kwnames[] = { "self","item","col", NULL }; |
8987 | ||
8988 | self = self; | |
f6bcfd97 | 8989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
8990 | return NULL; |
8991 | if (_argo0) { | |
8992 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8993 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
8995 | return NULL; |
8996 | } | |
8997 | } | |
8998 | if (_argo1) { | |
8999 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9000 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); | |
9002 | return NULL; | |
9003 | } | |
9004 | } | |
f6bcfd97 BP |
9005 | { |
9006 | _arg2 = &temp; | |
9007 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9008 | return NULL; |
f6bcfd97 | 9009 | } |
b7e72427 | 9010 | { |
474c48f9 | 9011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9012 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); |
b7e72427 | 9013 | |
474c48f9 | 9014 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9015 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9016 | } Py_INCREF(Py_None); |
9017 | _resultobj = Py_None; | |
9018 | return _resultobj; | |
9019 | } | |
9020 | ||
9021 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
9022 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9023 | PyObject * _resultobj; | |
f6bcfd97 | 9024 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9025 | wxTreeItemId * _arg1; |
9026 | wxColour * _arg2; | |
9027 | PyObject * _argo0 = 0; | |
9028 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9029 | wxColour temp; |
9030 | PyObject * _obj2 = 0; | |
b7e72427 RD |
9031 | char *_kwnames[] = { "self","item","col", NULL }; |
9032 | ||
9033 | self = self; | |
f6bcfd97 | 9034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9035 | return NULL; |
9036 | if (_argo0) { | |
9037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9040 | return NULL; |
9041 | } | |
9042 | } | |
9043 | if (_argo1) { | |
9044 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9045 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
9047 | return NULL; | |
9048 | } | |
9049 | } | |
f6bcfd97 BP |
9050 | { |
9051 | _arg2 = &temp; | |
9052 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9053 | return NULL; |
f6bcfd97 | 9054 | } |
b7e72427 | 9055 | { |
474c48f9 | 9056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9057 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); |
b7e72427 | 9058 | |
474c48f9 | 9059 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9060 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9061 | } Py_INCREF(Py_None); |
9062 | _resultobj = Py_None; | |
9063 | return _resultobj; | |
9064 | } | |
9065 | ||
9066 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
9067 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9068 | PyObject * _resultobj; | |
f6bcfd97 | 9069 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9070 | wxTreeItemId * _arg1; |
9071 | wxFont * _arg2; | |
9072 | PyObject * _argo0 = 0; | |
9073 | PyObject * _argo1 = 0; | |
9074 | PyObject * _argo2 = 0; | |
9075 | char *_kwnames[] = { "self","item","font", NULL }; | |
9076 | ||
9077 | self = self; | |
9078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
9079 | return NULL; | |
9080 | if (_argo0) { | |
9081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9084 | return NULL; |
9085 | } | |
9086 | } | |
9087 | if (_argo1) { | |
9088 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9089 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); | |
9091 | return NULL; | |
9092 | } | |
9093 | } | |
9094 | if (_argo2) { | |
9095 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9096 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
9097 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); | |
9098 | return NULL; | |
9099 | } | |
9100 | } | |
9101 | { | |
474c48f9 | 9102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9103 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); |
b7e72427 | 9104 | |
474c48f9 | 9105 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9106 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9107 | } Py_INCREF(Py_None); |
9108 | _resultobj = Py_None; | |
9109 | return _resultobj; | |
9110 | } | |
9111 | ||
74bcba0e RD |
9112 | static PyObject * wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,const wxTreeItemId & item,int textOnly) { |
9113 | wxRect rect; | |
9114 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
474c48f9 | 9115 | wxPyBeginBlockThreads(); |
74bcba0e RD |
9116 | wxRect* r = new wxRect(rect); |
9117 | PyObject* val = wxPyConstructObject((void*)r, "wxRect"); | |
474c48f9 | 9118 | wxPyEndBlockThreads(); |
74bcba0e RD |
9119 | return val; |
9120 | } | |
9121 | else { | |
9122 | Py_INCREF(Py_None); | |
9123 | return Py_None; | |
9124 | } | |
9125 | } | |
9126 | static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9127 | PyObject * _resultobj; | |
9128 | PyObject * _result; | |
9129 | wxPyTreeCtrl * _arg0; | |
9130 | wxTreeItemId * _arg1; | |
9131 | int _arg2 = (int ) FALSE; | |
9132 | PyObject * _argo0 = 0; | |
9133 | PyObject * _argo1 = 0; | |
9134 | char *_kwnames[] = { "self","item","textOnly", NULL }; | |
9135 | ||
9136 | self = self; | |
9137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&_arg2)) | |
9138 | return NULL; | |
9139 | if (_argo0) { | |
9140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetBoundingRect. Expected _wxPyTreeCtrl_p."); | |
9143 | return NULL; | |
9144 | } | |
9145 | } | |
9146 | if (_argo1) { | |
9147 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9148 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeItemId_p."); | |
9150 | return NULL; | |
9151 | } | |
9152 | } | |
9153 | { | |
474c48f9 | 9154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9155 | _result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(_arg0,*_arg1,_arg2); |
74bcba0e | 9156 | |
474c48f9 | 9157 | wxPyEndAllowThreads(__tstate); |
74bcba0e RD |
9158 | if (PyErr_Occurred()) return NULL; |
9159 | }{ | |
9160 | _resultobj = _result; | |
9161 | } | |
9162 | return _resultobj; | |
9163 | } | |
9164 | ||
db34b2d4 RD |
9165 | static void *SwigwxDirItemDataTowxObject(void *ptr) { |
9166 | wxDirItemData *src; | |
9167 | wxObject *dest; | |
9168 | src = (wxDirItemData *) ptr; | |
9169 | dest = (wxObject *) src; | |
9170 | return (void *) dest; | |
9171 | } | |
9172 | ||
9173 | #define new_wxDirItemData(_swigarg0,_swigarg1,_swigarg2) (new wxDirItemData(_swigarg0,_swigarg1,_swigarg2)) | |
9174 | static PyObject *_wrap_new_wxDirItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9175 | PyObject * _resultobj; | |
9176 | wxDirItemData * _result; | |
9177 | wxString * _arg0; | |
9178 | wxString * _arg1; | |
9179 | bool _arg2; | |
9180 | PyObject * _obj0 = 0; | |
9181 | PyObject * _obj1 = 0; | |
9182 | int tempbool2; | |
9183 | char *_kwnames[] = { "path","name","isDir", NULL }; | |
9184 | char _ptemp[128]; | |
9185 | ||
9186 | self = self; | |
9187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:new_wxDirItemData",_kwnames,&_obj0,&_obj1,&tempbool2)) | |
9188 | return NULL; | |
9189 | { | |
c8bc7bb8 RD |
9190 | _arg0 = wxString_in_helper(_obj0); |
9191 | if (_arg0 == NULL) | |
db34b2d4 | 9192 | return NULL; |
db34b2d4 RD |
9193 | } |
9194 | { | |
c8bc7bb8 RD |
9195 | _arg1 = wxString_in_helper(_obj1); |
9196 | if (_arg1 == NULL) | |
db34b2d4 | 9197 | return NULL; |
db34b2d4 RD |
9198 | } |
9199 | _arg2 = (bool ) tempbool2; | |
9200 | { | |
9201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9202 | _result = (wxDirItemData *)new_wxDirItemData(*_arg0,*_arg1,_arg2); |
db34b2d4 RD |
9203 | |
9204 | wxPyEndAllowThreads(__tstate); | |
9205 | if (PyErr_Occurred()) return NULL; | |
9206 | } if (_result) { | |
9207 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirItemData_p"); | |
9208 | _resultobj = Py_BuildValue("s",_ptemp); | |
9209 | } else { | |
9210 | Py_INCREF(Py_None); | |
9211 | _resultobj = Py_None; | |
9212 | } | |
9213 | { | |
9214 | if (_obj0) | |
9215 | delete _arg0; | |
9216 | } | |
9217 | { | |
9218 | if (_obj1) | |
9219 | delete _arg1; | |
9220 | } | |
9221 | return _resultobj; | |
9222 | } | |
9223 | ||
9224 | #define wxDirItemData_SetNewDirName(_swigobj,_swigarg0) (_swigobj->SetNewDirName(_swigarg0)) | |
9225 | static PyObject *_wrap_wxDirItemData_SetNewDirName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9226 | PyObject * _resultobj; | |
9227 | wxDirItemData * _arg0; | |
9228 | wxString * _arg1; | |
9229 | PyObject * _argo0 = 0; | |
9230 | PyObject * _obj1 = 0; | |
9231 | char *_kwnames[] = { "self","path", NULL }; | |
9232 | ||
9233 | self = self; | |
9234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_SetNewDirName",_kwnames,&_argo0,&_obj1)) | |
9235 | return NULL; | |
9236 | if (_argo0) { | |
9237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_SetNewDirName. Expected _wxDirItemData_p."); | |
9240 | return NULL; | |
9241 | } | |
9242 | } | |
9243 | { | |
c8bc7bb8 RD |
9244 | _arg1 = wxString_in_helper(_obj1); |
9245 | if (_arg1 == NULL) | |
db34b2d4 | 9246 | return NULL; |
db34b2d4 RD |
9247 | } |
9248 | { | |
9249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9250 | wxDirItemData_SetNewDirName(_arg0,*_arg1); |
db34b2d4 RD |
9251 | |
9252 | wxPyEndAllowThreads(__tstate); | |
9253 | if (PyErr_Occurred()) return NULL; | |
9254 | } Py_INCREF(Py_None); | |
9255 | _resultobj = Py_None; | |
9256 | { | |
9257 | if (_obj1) | |
9258 | delete _arg1; | |
9259 | } | |
9260 | return _resultobj; | |
9261 | } | |
9262 | ||
9263 | #define wxDirItemData_m_path_set(_swigobj,_swigval) (_swigobj->m_path = *(_swigval),_swigval) | |
9264 | static PyObject *_wrap_wxDirItemData_m_path_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9265 | PyObject * _resultobj; | |
9266 | wxString * _result; | |
9267 | wxDirItemData * _arg0; | |
9268 | wxString * _arg1; | |
9269 | PyObject * _argo0 = 0; | |
9270 | PyObject * _obj1 = 0; | |
9271 | char *_kwnames[] = { "self","m_path", NULL }; | |
9272 | ||
9273 | self = self; | |
9274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_path_set",_kwnames,&_argo0,&_obj1)) | |
9275 | return NULL; | |
9276 | if (_argo0) { | |
9277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_set. Expected _wxDirItemData_p."); | |
9280 | return NULL; | |
9281 | } | |
9282 | } | |
9283 | { | |
c8bc7bb8 RD |
9284 | _arg1 = wxString_in_helper(_obj1); |
9285 | if (_arg1 == NULL) | |
db34b2d4 | 9286 | return NULL; |
db34b2d4 RD |
9287 | } |
9288 | { | |
9289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9290 | _result = (wxString *)wxDirItemData_m_path_set(_arg0,_arg1); |
db34b2d4 RD |
9291 | |
9292 | wxPyEndAllowThreads(__tstate); | |
9293 | if (PyErr_Occurred()) return NULL; | |
9294 | }{ | |
c8bc7bb8 RD |
9295 | #if wxUSE_UNICODE |
9296 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9297 | #else | |
db34b2d4 | 9298 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9299 | #endif |
db34b2d4 RD |
9300 | } |
9301 | { | |
9302 | if (_obj1) | |
9303 | delete _arg1; | |
9304 | } | |
9305 | return _resultobj; | |
9306 | } | |
9307 | ||
9308 | #define wxDirItemData_m_path_get(_swigobj) (&_swigobj->m_path) | |
9309 | static PyObject *_wrap_wxDirItemData_m_path_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9310 | PyObject * _resultobj; | |
9311 | wxString * _result; | |
9312 | wxDirItemData * _arg0; | |
9313 | PyObject * _argo0 = 0; | |
9314 | char *_kwnames[] = { "self", NULL }; | |
9315 | ||
9316 | self = self; | |
9317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_path_get",_kwnames,&_argo0)) | |
9318 | return NULL; | |
9319 | if (_argo0) { | |
9320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_get. Expected _wxDirItemData_p."); | |
9323 | return NULL; | |
9324 | } | |
9325 | } | |
9326 | { | |
9327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9328 | _result = (wxString *)wxDirItemData_m_path_get(_arg0); |
db34b2d4 RD |
9329 | |
9330 | wxPyEndAllowThreads(__tstate); | |
9331 | if (PyErr_Occurred()) return NULL; | |
9332 | }{ | |
c8bc7bb8 RD |
9333 | #if wxUSE_UNICODE |
9334 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9335 | #else | |
db34b2d4 | 9336 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9337 | #endif |
db34b2d4 RD |
9338 | } |
9339 | return _resultobj; | |
9340 | } | |
9341 | ||
9342 | #define wxDirItemData_m_name_set(_swigobj,_swigval) (_swigobj->m_name = *(_swigval),_swigval) | |
9343 | static PyObject *_wrap_wxDirItemData_m_name_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9344 | PyObject * _resultobj; | |
9345 | wxString * _result; | |
9346 | wxDirItemData * _arg0; | |
9347 | wxString * _arg1; | |
9348 | PyObject * _argo0 = 0; | |
9349 | PyObject * _obj1 = 0; | |
9350 | char *_kwnames[] = { "self","m_name", NULL }; | |
9351 | ||
9352 | self = self; | |
9353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_name_set",_kwnames,&_argo0,&_obj1)) | |
9354 | return NULL; | |
9355 | if (_argo0) { | |
9356 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9357 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_set. Expected _wxDirItemData_p."); | |
9359 | return NULL; | |
9360 | } | |
9361 | } | |
9362 | { | |
c8bc7bb8 RD |
9363 | _arg1 = wxString_in_helper(_obj1); |
9364 | if (_arg1 == NULL) | |
db34b2d4 | 9365 | return NULL; |
db34b2d4 RD |
9366 | } |
9367 | { | |
9368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9369 | _result = (wxString *)wxDirItemData_m_name_set(_arg0,_arg1); |
db34b2d4 RD |
9370 | |
9371 | wxPyEndAllowThreads(__tstate); | |
9372 | if (PyErr_Occurred()) return NULL; | |
9373 | }{ | |
c8bc7bb8 RD |
9374 | #if wxUSE_UNICODE |
9375 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9376 | #else | |
db34b2d4 | 9377 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9378 | #endif |
db34b2d4 RD |
9379 | } |
9380 | { | |
9381 | if (_obj1) | |
9382 | delete _arg1; | |
9383 | } | |
9384 | return _resultobj; | |
9385 | } | |
9386 | ||
9387 | #define wxDirItemData_m_name_get(_swigobj) (&_swigobj->m_name) | |
9388 | static PyObject *_wrap_wxDirItemData_m_name_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9389 | PyObject * _resultobj; | |
9390 | wxString * _result; | |
9391 | wxDirItemData * _arg0; | |
9392 | PyObject * _argo0 = 0; | |
9393 | char *_kwnames[] = { "self", NULL }; | |
9394 | ||
9395 | self = self; | |
9396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_name_get",_kwnames,&_argo0)) | |
9397 | return NULL; | |
9398 | if (_argo0) { | |
9399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_get. Expected _wxDirItemData_p."); | |
9402 | return NULL; | |
9403 | } | |
9404 | } | |
9405 | { | |
9406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9407 | _result = (wxString *)wxDirItemData_m_name_get(_arg0); |
db34b2d4 RD |
9408 | |
9409 | wxPyEndAllowThreads(__tstate); | |
9410 | if (PyErr_Occurred()) return NULL; | |
9411 | }{ | |
c8bc7bb8 RD |
9412 | #if wxUSE_UNICODE |
9413 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9414 | #else | |
db34b2d4 | 9415 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9416 | #endif |
db34b2d4 RD |
9417 | } |
9418 | return _resultobj; | |
9419 | } | |
9420 | ||
9421 | #define wxDirItemData_m_isHidden_set(_swigobj,_swigval) (_swigobj->m_isHidden = _swigval,_swigval) | |
9422 | static PyObject *_wrap_wxDirItemData_m_isHidden_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9423 | PyObject * _resultobj; | |
9424 | bool _result; | |
9425 | wxDirItemData * _arg0; | |
9426 | bool _arg1; | |
9427 | PyObject * _argo0 = 0; | |
9428 | int tempbool1; | |
9429 | char *_kwnames[] = { "self","m_isHidden", NULL }; | |
9430 | ||
9431 | self = self; | |
9432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isHidden_set",_kwnames,&_argo0,&tempbool1)) | |
9433 | return NULL; | |
9434 | if (_argo0) { | |
9435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_set. Expected _wxDirItemData_p."); | |
9438 | return NULL; | |
9439 | } | |
9440 | } | |
9441 | _arg1 = (bool ) tempbool1; | |
9442 | { | |
9443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9444 | _result = (bool )wxDirItemData_m_isHidden_set(_arg0,_arg1); |
db34b2d4 RD |
9445 | |
9446 | wxPyEndAllowThreads(__tstate); | |
9447 | if (PyErr_Occurred()) return NULL; | |
9448 | } _resultobj = Py_BuildValue("i",_result); | |
9449 | return _resultobj; | |
9450 | } | |
9451 | ||
9452 | #define wxDirItemData_m_isHidden_get(_swigobj) ((bool ) _swigobj->m_isHidden) | |
9453 | static PyObject *_wrap_wxDirItemData_m_isHidden_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9454 | PyObject * _resultobj; | |
9455 | bool _result; | |
9456 | wxDirItemData * _arg0; | |
9457 | PyObject * _argo0 = 0; | |
9458 | char *_kwnames[] = { "self", NULL }; | |
9459 | ||
9460 | self = self; | |
9461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isHidden_get",_kwnames,&_argo0)) | |
9462 | return NULL; | |
9463 | if (_argo0) { | |
9464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_get. Expected _wxDirItemData_p."); | |
9467 | return NULL; | |
9468 | } | |
9469 | } | |
9470 | { | |
9471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9472 | _result = (bool )wxDirItemData_m_isHidden_get(_arg0); |
db34b2d4 RD |
9473 | |
9474 | wxPyEndAllowThreads(__tstate); | |
9475 | if (PyErr_Occurred()) return NULL; | |
9476 | } _resultobj = Py_BuildValue("i",_result); | |
9477 | return _resultobj; | |
9478 | } | |
9479 | ||
9480 | #define wxDirItemData_m_isExpanded_set(_swigobj,_swigval) (_swigobj->m_isExpanded = _swigval,_swigval) | |
9481 | static PyObject *_wrap_wxDirItemData_m_isExpanded_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9482 | PyObject * _resultobj; | |
9483 | bool _result; | |
9484 | wxDirItemData * _arg0; | |
9485 | bool _arg1; | |
9486 | PyObject * _argo0 = 0; | |
9487 | int tempbool1; | |
9488 | char *_kwnames[] = { "self","m_isExpanded", NULL }; | |
9489 | ||
9490 | self = self; | |
9491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isExpanded_set",_kwnames,&_argo0,&tempbool1)) | |
9492 | return NULL; | |
9493 | if (_argo0) { | |
9494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_set. Expected _wxDirItemData_p."); | |
9497 | return NULL; | |
9498 | } | |
9499 | } | |
9500 | _arg1 = (bool ) tempbool1; | |
9501 | { | |
9502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9503 | _result = (bool )wxDirItemData_m_isExpanded_set(_arg0,_arg1); |
db34b2d4 RD |
9504 | |
9505 | wxPyEndAllowThreads(__tstate); | |
9506 | if (PyErr_Occurred()) return NULL; | |
9507 | } _resultobj = Py_BuildValue("i",_result); | |
9508 | return _resultobj; | |
9509 | } | |
9510 | ||
9511 | #define wxDirItemData_m_isExpanded_get(_swigobj) ((bool ) _swigobj->m_isExpanded) | |
9512 | static PyObject *_wrap_wxDirItemData_m_isExpanded_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9513 | PyObject * _resultobj; | |
9514 | bool _result; | |
9515 | wxDirItemData * _arg0; | |
9516 | PyObject * _argo0 = 0; | |
9517 | char *_kwnames[] = { "self", NULL }; | |
9518 | ||
9519 | self = self; | |
9520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isExpanded_get",_kwnames,&_argo0)) | |
9521 | return NULL; | |
9522 | if (_argo0) { | |
9523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_get. Expected _wxDirItemData_p."); | |
9526 | return NULL; | |
9527 | } | |
9528 | } | |
9529 | { | |
9530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9531 | _result = (bool )wxDirItemData_m_isExpanded_get(_arg0); |
db34b2d4 RD |
9532 | |
9533 | wxPyEndAllowThreads(__tstate); | |
9534 | if (PyErr_Occurred()) return NULL; | |
9535 | } _resultobj = Py_BuildValue("i",_result); | |
9536 | return _resultobj; | |
9537 | } | |
9538 | ||
9539 | #define wxDirItemData_m_isDir_set(_swigobj,_swigval) (_swigobj->m_isDir = _swigval,_swigval) | |
9540 | static PyObject *_wrap_wxDirItemData_m_isDir_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9541 | PyObject * _resultobj; | |
9542 | bool _result; | |
9543 | wxDirItemData * _arg0; | |
9544 | bool _arg1; | |
9545 | PyObject * _argo0 = 0; | |
9546 | int tempbool1; | |
9547 | char *_kwnames[] = { "self","m_isDir", NULL }; | |
9548 | ||
9549 | self = self; | |
9550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isDir_set",_kwnames,&_argo0,&tempbool1)) | |
9551 | return NULL; | |
9552 | if (_argo0) { | |
9553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_set. Expected _wxDirItemData_p."); | |
9556 | return NULL; | |
9557 | } | |
9558 | } | |
9559 | _arg1 = (bool ) tempbool1; | |
9560 | { | |
9561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9562 | _result = (bool )wxDirItemData_m_isDir_set(_arg0,_arg1); |
db34b2d4 RD |
9563 | |
9564 | wxPyEndAllowThreads(__tstate); | |
9565 | if (PyErr_Occurred()) return NULL; | |
9566 | } _resultobj = Py_BuildValue("i",_result); | |
9567 | return _resultobj; | |
9568 | } | |
9569 | ||
9570 | #define wxDirItemData_m_isDir_get(_swigobj) ((bool ) _swigobj->m_isDir) | |
9571 | static PyObject *_wrap_wxDirItemData_m_isDir_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9572 | PyObject * _resultobj; | |
9573 | bool _result; | |
9574 | wxDirItemData * _arg0; | |
9575 | PyObject * _argo0 = 0; | |
9576 | char *_kwnames[] = { "self", NULL }; | |
9577 | ||
9578 | self = self; | |
9579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isDir_get",_kwnames,&_argo0)) | |
9580 | return NULL; | |
9581 | if (_argo0) { | |
9582 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9583 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9584 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_get. Expected _wxDirItemData_p."); | |
9585 | return NULL; | |
9586 | } | |
9587 | } | |
9588 | { | |
9589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9590 | _result = (bool )wxDirItemData_m_isDir_get(_arg0); |
db34b2d4 RD |
9591 | |
9592 | wxPyEndAllowThreads(__tstate); | |
9593 | if (PyErr_Occurred()) return NULL; | |
9594 | } _resultobj = Py_BuildValue("i",_result); | |
9595 | return _resultobj; | |
9596 | } | |
9597 | ||
9598 | static void *SwigwxGenericDirCtrlTowxControl(void *ptr) { | |
9599 | wxGenericDirCtrl *src; | |
9600 | wxControl *dest; | |
9601 | src = (wxGenericDirCtrl *) ptr; | |
9602 | dest = (wxControl *) src; | |
9603 | return (void *) dest; | |
9604 | } | |
9605 | ||
9606 | static void *SwigwxGenericDirCtrlTowxWindow(void *ptr) { | |
9607 | wxGenericDirCtrl *src; | |
9608 | wxWindow *dest; | |
9609 | src = (wxGenericDirCtrl *) ptr; | |
9610 | dest = (wxWindow *) src; | |
9611 | return (void *) dest; | |
9612 | } | |
9613 | ||
9614 | static void *SwigwxGenericDirCtrlTowxEvtHandler(void *ptr) { | |
9615 | wxGenericDirCtrl *src; | |
9616 | wxEvtHandler *dest; | |
9617 | src = (wxGenericDirCtrl *) ptr; | |
9618 | dest = (wxEvtHandler *) src; | |
9619 | return (void *) dest; | |
9620 | } | |
9621 | ||
9622 | static void *SwigwxGenericDirCtrlTowxObject(void *ptr) { | |
9623 | wxGenericDirCtrl *src; | |
9624 | wxObject *dest; | |
9625 | src = (wxGenericDirCtrl *) ptr; | |
9626 | dest = (wxObject *) src; | |
9627 | return (void *) dest; | |
9628 | } | |
9629 | ||
9630 | #define new_wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
9631 | static PyObject *_wrap_new_wxGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9632 | PyObject * _resultobj; | |
9633 | wxGenericDirCtrl * _result; | |
9634 | wxWindow * _arg0; | |
9635 | wxWindowID _arg1 = (wxWindowID ) -1; | |
9a74fcaf | 9636 | wxString * _arg2 = (wxString *) &wxPyDirDialogDefaultFolderStr; |
db34b2d4 RD |
9637 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
9638 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
9639 | long _arg5 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
9a74fcaf | 9640 | wxString * _arg6 = (wxString *) &wxPyEmptyString; |
db34b2d4 | 9641 | int _arg7 = (int ) 0; |
9a74fcaf | 9642 | wxString * _arg8 = (wxString *) &wxPy_TreeCtrlNameStr; |
db34b2d4 | 9643 | PyObject * _argo0 = 0; |
9a74fcaf | 9644 | PyObject * _obj2 = 0; |
db34b2d4 RD |
9645 | wxPoint temp; |
9646 | PyObject * _obj3 = 0; | |
9647 | wxSize temp0; | |
9648 | PyObject * _obj4 = 0; | |
9a74fcaf RD |
9649 | PyObject * _obj6 = 0; |
9650 | PyObject * _obj8 = 0; | |
db34b2d4 RD |
9651 | char *_kwnames[] = { "parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; |
9652 | char _ptemp[128]; | |
9653 | ||
9654 | self = self; | |
9a74fcaf | 9655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOOlOiO:new_wxGenericDirCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6,&_arg7,&_obj8)) |
db34b2d4 RD |
9656 | return NULL; |
9657 | if (_argo0) { | |
9658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGenericDirCtrl. Expected _wxWindow_p."); | |
9661 | return NULL; | |
9662 | } | |
9663 | } | |
9a74fcaf RD |
9664 | if (_obj2) |
9665 | { | |
9666 | _arg2 = wxString_in_helper(_obj2); | |
9667 | if (_arg2 == NULL) | |
9668 | return NULL; | |
9669 | } | |
db34b2d4 RD |
9670 | if (_obj3) |
9671 | { | |
9672 | _arg3 = &temp; | |
9673 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9674 | return NULL; | |
9675 | } | |
9676 | if (_obj4) | |
9677 | { | |
9678 | _arg4 = &temp0; | |
9679 | if (! wxSize_helper(_obj4, &_arg4)) | |
9680 | return NULL; | |
9a74fcaf RD |
9681 | } |
9682 | if (_obj6) | |
9683 | { | |
9684 | _arg6 = wxString_in_helper(_obj6); | |
9685 | if (_arg6 == NULL) | |
9686 | return NULL; | |
9687 | } | |
9688 | if (_obj8) | |
9689 | { | |
9690 | _arg8 = wxString_in_helper(_obj8); | |
9691 | if (_arg8 == NULL) | |
9692 | return NULL; | |
db34b2d4 RD |
9693 | } |
9694 | { | |
9695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9a74fcaf | 9696 | _result = (wxGenericDirCtrl *)new_wxGenericDirCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7,*_arg8); |
db34b2d4 RD |
9697 | |
9698 | wxPyEndAllowThreads(__tstate); | |
9699 | if (PyErr_Occurred()) return NULL; | |
9700 | } if (_result) { | |
9701 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
9702 | _resultobj = Py_BuildValue("s",_ptemp); | |
9703 | } else { | |
9704 | Py_INCREF(Py_None); | |
9705 | _resultobj = Py_None; | |
9706 | } | |
9a74fcaf RD |
9707 | { |
9708 | if (_obj2) | |
9709 | delete _arg2; | |
9710 | } | |
9711 | { | |
9712 | if (_obj6) | |
9713 | delete _arg6; | |
9714 | } | |
9715 | { | |
9716 | if (_obj8) | |
9717 | delete _arg8; | |
9718 | } | |
db34b2d4 RD |
9719 | return _resultobj; |
9720 | } | |
9721 | ||
9722 | #define new_wxPreGenericDirCtrl() (new wxGenericDirCtrl()) | |
9723 | static PyObject *_wrap_new_wxPreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9724 | PyObject * _resultobj; | |
9725 | wxGenericDirCtrl * _result; | |
9726 | char *_kwnames[] = { NULL }; | |
9727 | char _ptemp[128]; | |
9728 | ||
9729 | self = self; | |
9730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGenericDirCtrl",_kwnames)) | |
9731 | return NULL; | |
9732 | { | |
9733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9734 | _result = (wxGenericDirCtrl *)new_wxPreGenericDirCtrl(); |
db34b2d4 RD |
9735 | |
9736 | wxPyEndAllowThreads(__tstate); | |
9737 | if (PyErr_Occurred()) return NULL; | |
9738 | } if (_result) { | |
9739 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
9740 | _resultobj = Py_BuildValue("s",_ptemp); | |
9741 | } else { | |
9742 | Py_INCREF(Py_None); | |
9743 | _resultobj = Py_None; | |
9744 | } | |
9745 | return _resultobj; | |
9746 | } | |
9747 | ||
9748 | #define wxGenericDirCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
9749 | static PyObject *_wrap_wxGenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9750 | PyObject * _resultobj; | |
9751 | bool _result; | |
9752 | wxGenericDirCtrl * _arg0; | |
9753 | wxWindow * _arg1; | |
9754 | wxWindowID _arg2 = (wxWindowID ) -1; | |
9a74fcaf | 9755 | wxString * _arg3 = (wxString *) &wxPyDirDialogDefaultFolderStr; |
db34b2d4 RD |
9756 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
9757 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
9758 | long _arg6 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
9a74fcaf | 9759 | wxString * _arg7 = (wxString *) &wxPyEmptyString; |
db34b2d4 | 9760 | int _arg8 = (int ) 0; |
9a74fcaf | 9761 | wxString * _arg9 = (wxString *) &wxPy_TreeCtrlNameStr; |
db34b2d4 RD |
9762 | PyObject * _argo0 = 0; |
9763 | PyObject * _argo1 = 0; | |
9a74fcaf | 9764 | PyObject * _obj3 = 0; |
db34b2d4 RD |
9765 | wxPoint temp; |
9766 | PyObject * _obj4 = 0; | |
9767 | wxSize temp0; | |
9768 | PyObject * _obj5 = 0; | |
9a74fcaf RD |
9769 | PyObject * _obj7 = 0; |
9770 | PyObject * _obj9 = 0; | |
db34b2d4 RD |
9771 | char *_kwnames[] = { "self","parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; |
9772 | ||
9773 | self = self; | |
9a74fcaf | 9774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOOlOiO:wxGenericDirCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_obj7,&_arg8,&_obj9)) |
db34b2d4 RD |
9775 | return NULL; |
9776 | if (_argo0) { | |
9777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
9779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
9780 | return NULL; | |
9781 | } | |
9782 | } | |
9783 | if (_argo1) { | |
9784 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9785 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGenericDirCtrl_Create. Expected _wxWindow_p."); | |
9787 | return NULL; | |
9788 | } | |
9789 | } | |
9a74fcaf RD |
9790 | if (_obj3) |
9791 | { | |
9792 | _arg3 = wxString_in_helper(_obj3); | |
9793 | if (_arg3 == NULL) | |
9794 | return NULL; | |
9795 | } | |
db34b2d4 RD |
9796 | if (_obj4) |
9797 | { | |
9798 | _arg4 = &temp; | |
9799 | if (! wxPoint_helper(_obj4, &_arg4)) | |
9800 | return NULL; | |
9801 | } | |
9802 | if (_obj5) | |
9803 | { | |
9804 | _arg5 = &temp0; | |
9805 | if (! wxSize_helper(_obj5, &_arg5)) | |
9806 | return NULL; | |
9a74fcaf RD |
9807 | } |
9808 | if (_obj7) | |
9809 | { | |
9810 | _arg7 = wxString_in_helper(_obj7); | |
9811 | if (_arg7 == NULL) | |
9812 | return NULL; | |
9813 | } | |
9814 | if (_obj9) | |
9815 | { | |
9816 | _arg9 = wxString_in_helper(_obj9); | |
9817 | if (_arg9 == NULL) | |
9818 | return NULL; | |
db34b2d4 RD |
9819 | } |
9820 | { | |
9821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9a74fcaf | 9822 | _result = (bool )wxGenericDirCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8,*_arg9); |
db34b2d4 RD |
9823 | |
9824 | wxPyEndAllowThreads(__tstate); | |
9825 | if (PyErr_Occurred()) return NULL; | |
9826 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
9827 | { |
9828 | if (_obj3) | |
9829 | delete _arg3; | |
9830 | } | |
9831 | { | |
9832 | if (_obj7) | |
9833 | delete _arg7; | |
9834 | } | |
9835 | { | |
9836 | if (_obj9) | |
9837 | delete _arg9; | |
9838 | } | |
db34b2d4 RD |
9839 | return _resultobj; |
9840 | } | |
9841 | ||
9842 | #define wxGenericDirCtrl_ExpandPath(_swigobj,_swigarg0) (_swigobj->ExpandPath(_swigarg0)) | |
9843 | static PyObject *_wrap_wxGenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9844 | PyObject * _resultobj; | |
9845 | bool _result; | |
9846 | wxGenericDirCtrl * _arg0; | |
9847 | wxString * _arg1; | |
9848 | PyObject * _argo0 = 0; | |
9849 | PyObject * _obj1 = 0; | |
9850 | char *_kwnames[] = { "self","path", NULL }; | |
9851 | ||
9852 | self = self; | |
9853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_ExpandPath",_kwnames,&_argo0,&_obj1)) | |
9854 | return NULL; | |
9855 | if (_argo0) { | |
9856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
9858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ExpandPath. Expected _wxGenericDirCtrl_p."); | |
9859 | return NULL; | |
9860 | } | |
9861 | } | |
9862 | { | |
c8bc7bb8 RD |
9863 | _arg1 = wxString_in_helper(_obj1); |
9864 | if (_arg1 == NULL) | |
db34b2d4 | 9865 | return NULL; |
db34b2d4 RD |
9866 | } |
9867 | { | |
9868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9869 | _result = (bool )wxGenericDirCtrl_ExpandPath(_arg0,*_arg1); |
db34b2d4 RD |
9870 | |
9871 | wxPyEndAllowThreads(__tstate); | |
9872 | if (PyErr_Occurred()) return NULL; | |
9873 | } _resultobj = Py_BuildValue("i",_result); | |
9874 | { | |
9875 | if (_obj1) | |
9876 | delete _arg1; | |
9877 | } | |
9878 | return _resultobj; | |
9879 | } | |
9880 | ||
9881 | #define wxGenericDirCtrl_GetDefaultPath(_swigobj) (_swigobj->GetDefaultPath()) | |
9882 | static PyObject *_wrap_wxGenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9883 | PyObject * _resultobj; | |
9884 | wxString * _result; | |
9885 | wxGenericDirCtrl * _arg0; | |
9886 | PyObject * _argo0 = 0; | |
9887 | char *_kwnames[] = { "self", NULL }; | |
9888 | ||
9889 | self = self; | |
9890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetDefaultPath",_kwnames,&_argo0)) | |
9891 | return NULL; | |
9892 | if (_argo0) { | |
9893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
9895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
9896 | return NULL; | |
9897 | } | |
9898 | } | |
9899 | { | |
9900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9901 | _result = new wxString (wxGenericDirCtrl_GetDefaultPath(_arg0)); |
db34b2d4 RD |
9902 | |
9903 | wxPyEndAllowThreads(__tstate); | |
9904 | if (PyErr_Occurred()) return NULL; | |
9905 | }{ | |
c8bc7bb8 RD |
9906 | #if wxUSE_UNICODE |
9907 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9908 | #else | |
db34b2d4 | 9909 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9910 | #endif |
db34b2d4 RD |
9911 | } |
9912 | { | |
9913 | delete _result; | |
9914 | } | |
9915 | return _resultobj; | |
9916 | } | |
9917 | ||
9918 | #define wxGenericDirCtrl_SetDefaultPath(_swigobj,_swigarg0) (_swigobj->SetDefaultPath(_swigarg0)) | |
9919 | static PyObject *_wrap_wxGenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9920 | PyObject * _resultobj; | |
9921 | wxGenericDirCtrl * _arg0; | |
9922 | wxString * _arg1; | |
9923 | PyObject * _argo0 = 0; | |
9924 | PyObject * _obj1 = 0; | |
9925 | char *_kwnames[] = { "self","path", NULL }; | |
9926 | ||
9927 | self = self; | |
9928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetDefaultPath",_kwnames,&_argo0,&_obj1)) | |
9929 | return NULL; | |
9930 | if (_argo0) { | |
9931 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9932 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
9933 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
9934 | return NULL; | |
9935 | } | |
9936 | } | |
9937 | { | |
c8bc7bb8 RD |
9938 | _arg1 = wxString_in_helper(_obj1); |
9939 | if (_arg1 == NULL) | |
db34b2d4 | 9940 | return NULL; |
db34b2d4 RD |
9941 | } |
9942 | { | |
9943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9944 | wxGenericDirCtrl_SetDefaultPath(_arg0,*_arg1); |
db34b2d4 RD |
9945 | |
9946 | wxPyEndAllowThreads(__tstate); | |
9947 | if (PyErr_Occurred()) return NULL; | |
9948 | } Py_INCREF(Py_None); | |
9949 | _resultobj = Py_None; | |
9950 | { | |
9951 | if (_obj1) | |
9952 | delete _arg1; | |
9953 | } | |
9954 | return _resultobj; | |
9955 | } | |
9956 | ||
9957 | #define wxGenericDirCtrl_GetPath(_swigobj) (_swigobj->GetPath()) | |
9958 | static PyObject *_wrap_wxGenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9959 | PyObject * _resultobj; | |
9960 | wxString * _result; | |
9961 | wxGenericDirCtrl * _arg0; | |
9962 | PyObject * _argo0 = 0; | |
9963 | char *_kwnames[] = { "self", NULL }; | |
9964 | ||
9965 | self = self; | |
9966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetPath",_kwnames,&_argo0)) | |
9967 | return NULL; | |
9968 | if (_argo0) { | |
9969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
9971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetPath. Expected _wxGenericDirCtrl_p."); | |
9972 | return NULL; | |
9973 | } | |
9974 | } | |
9975 | { | |
9976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9977 | _result = new wxString (wxGenericDirCtrl_GetPath(_arg0)); |
db34b2d4 RD |
9978 | |
9979 | wxPyEndAllowThreads(__tstate); | |
9980 | if (PyErr_Occurred()) return NULL; | |
9981 | }{ | |
c8bc7bb8 RD |
9982 | #if wxUSE_UNICODE |
9983 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9984 | #else | |
db34b2d4 | 9985 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9986 | #endif |
db34b2d4 RD |
9987 | } |
9988 | { | |
9989 | delete _result; | |
9990 | } | |
9991 | return _resultobj; | |
9992 | } | |
9993 | ||
9994 | #define wxGenericDirCtrl_GetFilePath(_swigobj) (_swigobj->GetFilePath()) | |
9995 | static PyObject *_wrap_wxGenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9996 | PyObject * _resultobj; | |
9997 | wxString * _result; | |
9998 | wxGenericDirCtrl * _arg0; | |
9999 | PyObject * _argo0 = 0; | |
10000 | char *_kwnames[] = { "self", NULL }; | |
10001 | ||
10002 | self = self; | |
10003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilePath",_kwnames,&_argo0)) | |
10004 | return NULL; | |
10005 | if (_argo0) { | |
10006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilePath. Expected _wxGenericDirCtrl_p."); | |
10009 | return NULL; | |
10010 | } | |
10011 | } | |
10012 | { | |
10013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10014 | _result = new wxString (wxGenericDirCtrl_GetFilePath(_arg0)); |
db34b2d4 RD |
10015 | |
10016 | wxPyEndAllowThreads(__tstate); | |
10017 | if (PyErr_Occurred()) return NULL; | |
10018 | }{ | |
c8bc7bb8 RD |
10019 | #if wxUSE_UNICODE |
10020 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10021 | #else | |
db34b2d4 | 10022 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10023 | #endif |
db34b2d4 RD |
10024 | } |
10025 | { | |
10026 | delete _result; | |
10027 | } | |
10028 | return _resultobj; | |
10029 | } | |
10030 | ||
10031 | #define wxGenericDirCtrl_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0)) | |
10032 | static PyObject *_wrap_wxGenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10033 | PyObject * _resultobj; | |
10034 | wxGenericDirCtrl * _arg0; | |
10035 | wxString * _arg1; | |
10036 | PyObject * _argo0 = 0; | |
10037 | PyObject * _obj1 = 0; | |
10038 | char *_kwnames[] = { "self","path", NULL }; | |
10039 | ||
10040 | self = self; | |
10041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetPath",_kwnames,&_argo0,&_obj1)) | |
10042 | return NULL; | |
10043 | if (_argo0) { | |
10044 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10045 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetPath. Expected _wxGenericDirCtrl_p."); | |
10047 | return NULL; | |
10048 | } | |
10049 | } | |
10050 | { | |
c8bc7bb8 RD |
10051 | _arg1 = wxString_in_helper(_obj1); |
10052 | if (_arg1 == NULL) | |
db34b2d4 | 10053 | return NULL; |
db34b2d4 RD |
10054 | } |
10055 | { | |
10056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10057 | wxGenericDirCtrl_SetPath(_arg0,*_arg1); |
db34b2d4 RD |
10058 | |
10059 | wxPyEndAllowThreads(__tstate); | |
10060 | if (PyErr_Occurred()) return NULL; | |
10061 | } Py_INCREF(Py_None); | |
10062 | _resultobj = Py_None; | |
10063 | { | |
10064 | if (_obj1) | |
10065 | delete _arg1; | |
10066 | } | |
10067 | return _resultobj; | |
10068 | } | |
10069 | ||
10070 | #define wxGenericDirCtrl_ShowHidden(_swigobj,_swigarg0) (_swigobj->ShowHidden(_swigarg0)) | |
10071 | static PyObject *_wrap_wxGenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10072 | PyObject * _resultobj; | |
10073 | wxGenericDirCtrl * _arg0; | |
10074 | bool _arg1; | |
10075 | PyObject * _argo0 = 0; | |
10076 | int tempbool1; | |
10077 | char *_kwnames[] = { "self","show", NULL }; | |
10078 | ||
10079 | self = self; | |
10080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_ShowHidden",_kwnames,&_argo0,&tempbool1)) | |
10081 | return NULL; | |
10082 | if (_argo0) { | |
10083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ShowHidden. Expected _wxGenericDirCtrl_p."); | |
10086 | return NULL; | |
10087 | } | |
10088 | } | |
10089 | _arg1 = (bool ) tempbool1; | |
10090 | { | |
10091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10092 | wxGenericDirCtrl_ShowHidden(_arg0,_arg1); |
db34b2d4 RD |
10093 | |
10094 | wxPyEndAllowThreads(__tstate); | |
10095 | if (PyErr_Occurred()) return NULL; | |
10096 | } Py_INCREF(Py_None); | |
10097 | _resultobj = Py_None; | |
10098 | return _resultobj; | |
10099 | } | |
10100 | ||
10101 | #define wxGenericDirCtrl_GetShowHidden(_swigobj) (_swigobj->GetShowHidden()) | |
10102 | static PyObject *_wrap_wxGenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10103 | PyObject * _resultobj; | |
10104 | bool _result; | |
10105 | wxGenericDirCtrl * _arg0; | |
10106 | PyObject * _argo0 = 0; | |
10107 | char *_kwnames[] = { "self", NULL }; | |
10108 | ||
10109 | self = self; | |
10110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetShowHidden",_kwnames,&_argo0)) | |
10111 | return NULL; | |
10112 | if (_argo0) { | |
10113 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10114 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetShowHidden. Expected _wxGenericDirCtrl_p."); | |
10116 | return NULL; | |
10117 | } | |
10118 | } | |
10119 | { | |
10120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10121 | _result = (bool )wxGenericDirCtrl_GetShowHidden(_arg0); |
db34b2d4 RD |
10122 | |
10123 | wxPyEndAllowThreads(__tstate); | |
10124 | if (PyErr_Occurred()) return NULL; | |
10125 | } _resultobj = Py_BuildValue("i",_result); | |
10126 | return _resultobj; | |
10127 | } | |
10128 | ||
10129 | #define wxGenericDirCtrl_GetFilter(_swigobj) (_swigobj->GetFilter()) | |
10130 | static PyObject *_wrap_wxGenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10131 | PyObject * _resultobj; | |
10132 | wxString * _result; | |
10133 | wxGenericDirCtrl * _arg0; | |
10134 | PyObject * _argo0 = 0; | |
10135 | char *_kwnames[] = { "self", NULL }; | |
10136 | ||
10137 | self = self; | |
10138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilter",_kwnames,&_argo0)) | |
10139 | return NULL; | |
10140 | if (_argo0) { | |
10141 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10142 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilter. Expected _wxGenericDirCtrl_p."); | |
10144 | return NULL; | |
10145 | } | |
10146 | } | |
10147 | { | |
10148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10149 | _result = new wxString (wxGenericDirCtrl_GetFilter(_arg0)); |
db34b2d4 RD |
10150 | |
10151 | wxPyEndAllowThreads(__tstate); | |
10152 | if (PyErr_Occurred()) return NULL; | |
10153 | }{ | |
c8bc7bb8 RD |
10154 | #if wxUSE_UNICODE |
10155 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10156 | #else | |
db34b2d4 | 10157 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10158 | #endif |
db34b2d4 RD |
10159 | } |
10160 | { | |
10161 | delete _result; | |
10162 | } | |
10163 | return _resultobj; | |
10164 | } | |
10165 | ||
10166 | #define wxGenericDirCtrl_SetFilter(_swigobj,_swigarg0) (_swigobj->SetFilter(_swigarg0)) | |
10167 | static PyObject *_wrap_wxGenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10168 | PyObject * _resultobj; | |
10169 | wxGenericDirCtrl * _arg0; | |
10170 | wxString * _arg1; | |
10171 | PyObject * _argo0 = 0; | |
10172 | PyObject * _obj1 = 0; | |
10173 | char *_kwnames[] = { "self","filter", NULL }; | |
10174 | ||
10175 | self = self; | |
10176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetFilter",_kwnames,&_argo0,&_obj1)) | |
10177 | return NULL; | |
10178 | if (_argo0) { | |
10179 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10180 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilter. Expected _wxGenericDirCtrl_p."); | |
10182 | return NULL; | |
10183 | } | |
10184 | } | |
10185 | { | |
c8bc7bb8 RD |
10186 | _arg1 = wxString_in_helper(_obj1); |
10187 | if (_arg1 == NULL) | |
db34b2d4 | 10188 | return NULL; |
db34b2d4 RD |
10189 | } |
10190 | { | |
10191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10192 | wxGenericDirCtrl_SetFilter(_arg0,*_arg1); |
db34b2d4 RD |
10193 | |
10194 | wxPyEndAllowThreads(__tstate); | |
10195 | if (PyErr_Occurred()) return NULL; | |
10196 | } Py_INCREF(Py_None); | |
10197 | _resultobj = Py_None; | |
10198 | { | |
10199 | if (_obj1) | |
10200 | delete _arg1; | |
10201 | } | |
10202 | return _resultobj; | |
10203 | } | |
10204 | ||
10205 | #define wxGenericDirCtrl_GetFilterIndex(_swigobj) (_swigobj->GetFilterIndex()) | |
10206 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10207 | PyObject * _resultobj; | |
10208 | int _result; | |
10209 | wxGenericDirCtrl * _arg0; | |
10210 | PyObject * _argo0 = 0; | |
10211 | char *_kwnames[] = { "self", NULL }; | |
10212 | ||
10213 | self = self; | |
10214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterIndex",_kwnames,&_argo0)) | |
10215 | return NULL; | |
10216 | if (_argo0) { | |
10217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10220 | return NULL; | |
10221 | } | |
10222 | } | |
10223 | { | |
10224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10225 | _result = (int )wxGenericDirCtrl_GetFilterIndex(_arg0); |
db34b2d4 RD |
10226 | |
10227 | wxPyEndAllowThreads(__tstate); | |
10228 | if (PyErr_Occurred()) return NULL; | |
10229 | } _resultobj = Py_BuildValue("i",_result); | |
10230 | return _resultobj; | |
10231 | } | |
10232 | ||
10233 | #define wxGenericDirCtrl_SetFilterIndex(_swigobj,_swigarg0) (_swigobj->SetFilterIndex(_swigarg0)) | |
10234 | static PyObject *_wrap_wxGenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10235 | PyObject * _resultobj; | |
10236 | wxGenericDirCtrl * _arg0; | |
10237 | int _arg1; | |
10238 | PyObject * _argo0 = 0; | |
10239 | char *_kwnames[] = { "self","n", NULL }; | |
10240 | ||
10241 | self = self; | |
10242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_SetFilterIndex",_kwnames,&_argo0,&_arg1)) | |
10243 | return NULL; | |
10244 | if (_argo0) { | |
10245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10248 | return NULL; | |
10249 | } | |
10250 | } | |
10251 | { | |
10252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10253 | wxGenericDirCtrl_SetFilterIndex(_arg0,_arg1); |
db34b2d4 RD |
10254 | |
10255 | wxPyEndAllowThreads(__tstate); | |
10256 | if (PyErr_Occurred()) return NULL; | |
10257 | } Py_INCREF(Py_None); | |
10258 | _resultobj = Py_None; | |
10259 | return _resultobj; | |
10260 | } | |
10261 | ||
10262 | #define wxGenericDirCtrl_GetRootId(_swigobj) (_swigobj->GetRootId()) | |
10263 | static PyObject *_wrap_wxGenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10264 | PyObject * _resultobj; | |
10265 | wxTreeItemId * _result; | |
10266 | wxGenericDirCtrl * _arg0; | |
10267 | PyObject * _argo0 = 0; | |
10268 | char *_kwnames[] = { "self", NULL }; | |
10269 | char _ptemp[128]; | |
10270 | ||
10271 | self = self; | |
10272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetRootId",_kwnames,&_argo0)) | |
10273 | return NULL; | |
10274 | if (_argo0) { | |
10275 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10276 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetRootId. Expected _wxGenericDirCtrl_p."); | |
10278 | return NULL; | |
10279 | } | |
10280 | } | |
10281 | { | |
10282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10283 | _result = new wxTreeItemId (wxGenericDirCtrl_GetRootId(_arg0)); |
db34b2d4 RD |
10284 | |
10285 | wxPyEndAllowThreads(__tstate); | |
10286 | if (PyErr_Occurred()) return NULL; | |
10287 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
10288 | _resultobj = Py_BuildValue("s",_ptemp); | |
10289 | return _resultobj; | |
10290 | } | |
10291 | ||
10292 | #define wxGenericDirCtrl_GetTreeCtrl(_swigobj) (_swigobj->GetTreeCtrl()) | |
10293 | static PyObject *_wrap_wxGenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10294 | PyObject * _resultobj; | |
10295 | wxTreeCtrl * _result; | |
10296 | wxGenericDirCtrl * _arg0; | |
10297 | PyObject * _argo0 = 0; | |
10298 | char *_kwnames[] = { "self", NULL }; | |
db34b2d4 RD |
10299 | |
10300 | self = self; | |
10301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetTreeCtrl",_kwnames,&_argo0)) | |
10302 | return NULL; | |
10303 | if (_argo0) { | |
10304 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetTreeCtrl. Expected _wxGenericDirCtrl_p."); | |
10307 | return NULL; | |
10308 | } | |
10309 | } | |
10310 | { | |
10311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10312 | _result = (wxTreeCtrl *)wxGenericDirCtrl_GetTreeCtrl(_arg0); |
db34b2d4 RD |
10313 | |
10314 | wxPyEndAllowThreads(__tstate); | |
10315 | if (PyErr_Occurred()) return NULL; | |
eb88b742 | 10316 | }{ _resultobj = wxPyMake_wxObject(_result); } |
db34b2d4 RD |
10317 | return _resultobj; |
10318 | } | |
10319 | ||
10320 | #define wxGenericDirCtrl_GetFilterListCtrl(_swigobj) (_swigobj->GetFilterListCtrl()) | |
10321 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10322 | PyObject * _resultobj; | |
10323 | wxDirFilterListCtrl * _result; | |
10324 | wxGenericDirCtrl * _arg0; | |
10325 | PyObject * _argo0 = 0; | |
10326 | char *_kwnames[] = { "self", NULL }; | |
10327 | char _ptemp[128]; | |
10328 | ||
10329 | self = self; | |
10330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterListCtrl",_kwnames,&_argo0)) | |
10331 | return NULL; | |
10332 | if (_argo0) { | |
10333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10336 | return NULL; | |
10337 | } | |
10338 | } | |
10339 | { | |
10340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10341 | _result = (wxDirFilterListCtrl *)wxGenericDirCtrl_GetFilterListCtrl(_arg0); |
db34b2d4 RD |
10342 | |
10343 | wxPyEndAllowThreads(__tstate); | |
10344 | if (PyErr_Occurred()) return NULL; | |
10345 | } if (_result) { | |
10346 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10347 | _resultobj = Py_BuildValue("s",_ptemp); | |
10348 | } else { | |
10349 | Py_INCREF(Py_None); | |
10350 | _resultobj = Py_None; | |
10351 | } | |
10352 | return _resultobj; | |
10353 | } | |
10354 | ||
10355 | static void *SwigwxDirFilterListCtrlTowxChoice(void *ptr) { | |
10356 | wxDirFilterListCtrl *src; | |
10357 | wxChoice *dest; | |
10358 | src = (wxDirFilterListCtrl *) ptr; | |
10359 | dest = (wxChoice *) src; | |
10360 | return (void *) dest; | |
10361 | } | |
10362 | ||
10363 | static void *SwigwxDirFilterListCtrlTowxControlWithItems(void *ptr) { | |
10364 | wxDirFilterListCtrl *src; | |
10365 | wxControlWithItems *dest; | |
10366 | src = (wxDirFilterListCtrl *) ptr; | |
10367 | dest = (wxControlWithItems *) src; | |
10368 | return (void *) dest; | |
10369 | } | |
10370 | ||
10371 | static void *SwigwxDirFilterListCtrlTowxControl(void *ptr) { | |
10372 | wxDirFilterListCtrl *src; | |
10373 | wxControl *dest; | |
10374 | src = (wxDirFilterListCtrl *) ptr; | |
10375 | dest = (wxControl *) src; | |
10376 | return (void *) dest; | |
10377 | } | |
10378 | ||
10379 | static void *SwigwxDirFilterListCtrlTowxWindow(void *ptr) { | |
10380 | wxDirFilterListCtrl *src; | |
10381 | wxWindow *dest; | |
10382 | src = (wxDirFilterListCtrl *) ptr; | |
10383 | dest = (wxWindow *) src; | |
10384 | return (void *) dest; | |
10385 | } | |
10386 | ||
10387 | static void *SwigwxDirFilterListCtrlTowxEvtHandler(void *ptr) { | |
10388 | wxDirFilterListCtrl *src; | |
10389 | wxEvtHandler *dest; | |
10390 | src = (wxDirFilterListCtrl *) ptr; | |
10391 | dest = (wxEvtHandler *) src; | |
10392 | return (void *) dest; | |
10393 | } | |
10394 | ||
10395 | static void *SwigwxDirFilterListCtrlTowxObject(void *ptr) { | |
10396 | wxDirFilterListCtrl *src; | |
10397 | wxObject *dest; | |
10398 | src = (wxDirFilterListCtrl *) ptr; | |
10399 | dest = (wxObject *) src; | |
10400 | return (void *) dest; | |
10401 | } | |
10402 | ||
10403 | #define new_wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10404 | static PyObject *_wrap_new_wxDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10405 | PyObject * _resultobj; | |
10406 | wxDirFilterListCtrl * _result; | |
10407 | wxGenericDirCtrl * _arg0; | |
10408 | wxWindowID _arg1 = (wxWindowID ) -1; | |
10409 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
10410 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
10411 | long _arg4 = (long ) 0; | |
10412 | PyObject * _argo0 = 0; | |
10413 | wxPoint temp; | |
10414 | PyObject * _obj2 = 0; | |
10415 | wxSize temp0; | |
10416 | PyObject * _obj3 = 0; | |
10417 | char *_kwnames[] = { "parent","id","pos","size","style", NULL }; | |
10418 | char _ptemp[128]; | |
10419 | ||
10420 | self = self; | |
10421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxDirFilterListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
10422 | return NULL; | |
10423 | if (_argo0) { | |
10424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDirFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10427 | return NULL; | |
10428 | } | |
10429 | } | |
10430 | if (_obj2) | |
10431 | { | |
10432 | _arg2 = &temp; | |
10433 | if (! wxPoint_helper(_obj2, &_arg2)) | |
10434 | return NULL; | |
10435 | } | |
10436 | if (_obj3) | |
10437 | { | |
10438 | _arg3 = &temp0; | |
10439 | if (! wxSize_helper(_obj3, &_arg3)) | |
10440 | return NULL; | |
10441 | } | |
10442 | { | |
10443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10444 | _result = (wxDirFilterListCtrl *)new_wxDirFilterListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
db34b2d4 RD |
10445 | |
10446 | wxPyEndAllowThreads(__tstate); | |
10447 | if (PyErr_Occurred()) return NULL; | |
10448 | } if (_result) { | |
10449 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10450 | _resultobj = Py_BuildValue("s",_ptemp); | |
10451 | } else { | |
10452 | Py_INCREF(Py_None); | |
10453 | _resultobj = Py_None; | |
10454 | } | |
10455 | return _resultobj; | |
10456 | } | |
10457 | ||
10458 | #define new_wxPreDirFilterListCtrl() (new wxDirFilterListCtrl()) | |
10459 | static PyObject *_wrap_new_wxPreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10460 | PyObject * _resultobj; | |
10461 | wxDirFilterListCtrl * _result; | |
10462 | char *_kwnames[] = { NULL }; | |
10463 | char _ptemp[128]; | |
10464 | ||
10465 | self = self; | |
10466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreDirFilterListCtrl",_kwnames)) | |
10467 | return NULL; | |
10468 | { | |
10469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10470 | _result = (wxDirFilterListCtrl *)new_wxPreDirFilterListCtrl(); |
db34b2d4 RD |
10471 | |
10472 | wxPyEndAllowThreads(__tstate); | |
10473 | if (PyErr_Occurred()) return NULL; | |
10474 | } if (_result) { | |
10475 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10476 | _resultobj = Py_BuildValue("s",_ptemp); | |
10477 | } else { | |
10478 | Py_INCREF(Py_None); | |
10479 | _resultobj = Py_None; | |
10480 | } | |
10481 | return _resultobj; | |
10482 | } | |
10483 | ||
10484 | #define wxDirFilterListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10485 | static PyObject *_wrap_wxDirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10486 | PyObject * _resultobj; | |
10487 | bool _result; | |
10488 | wxDirFilterListCtrl * _arg0; | |
10489 | wxGenericDirCtrl * _arg1; | |
10490 | wxWindowID _arg2 = (wxWindowID ) -1; | |
10491 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
10492 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
10493 | long _arg5 = (long ) 0; | |
10494 | PyObject * _argo0 = 0; | |
10495 | PyObject * _argo1 = 0; | |
10496 | wxPoint temp; | |
10497 | PyObject * _obj3 = 0; | |
10498 | wxSize temp0; | |
10499 | PyObject * _obj4 = 0; | |
10500 | char *_kwnames[] = { "self","parent","id","pos","size","style", NULL }; | |
10501 | ||
10502 | self = self; | |
10503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOl:wxDirFilterListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5)) | |
10504 | return NULL; | |
10505 | if (_argo0) { | |
10506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
10508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_Create. Expected _wxDirFilterListCtrl_p."); | |
10509 | return NULL; | |
10510 | } | |
10511 | } | |
10512 | if (_argo1) { | |
10513 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10514 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxGenericDirCtrl_p")) { | |
10515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDirFilterListCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
10516 | return NULL; | |
10517 | } | |
10518 | } | |
10519 | if (_obj3) | |
10520 | { | |
10521 | _arg3 = &temp; | |
10522 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10523 | return NULL; | |
10524 | } | |
10525 | if (_obj4) | |
10526 | { | |
10527 | _arg4 = &temp0; | |
10528 | if (! wxSize_helper(_obj4, &_arg4)) | |
10529 | return NULL; | |
10530 | } | |
10531 | { | |
10532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10533 | _result = (bool )wxDirFilterListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5); |
db34b2d4 RD |
10534 | |
10535 | wxPyEndAllowThreads(__tstate); | |
10536 | if (PyErr_Occurred()) return NULL; | |
10537 | } _resultobj = Py_BuildValue("i",_result); | |
10538 | return _resultobj; | |
10539 | } | |
10540 | ||
10541 | #define wxDirFilterListCtrl_FillFilterList(_swigobj,_swigarg0,_swigarg1) (_swigobj->FillFilterList(_swigarg0,_swigarg1)) | |
10542 | static PyObject *_wrap_wxDirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10543 | PyObject * _resultobj; | |
10544 | wxDirFilterListCtrl * _arg0; | |
10545 | wxString * _arg1; | |
10546 | int _arg2; | |
10547 | PyObject * _argo0 = 0; | |
10548 | PyObject * _obj1 = 0; | |
10549 | char *_kwnames[] = { "self","filter","defaultFilter", NULL }; | |
10550 | ||
10551 | self = self; | |
10552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxDirFilterListCtrl_FillFilterList",_kwnames,&_argo0,&_obj1,&_arg2)) | |
10553 | return NULL; | |
10554 | if (_argo0) { | |
10555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
10557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_FillFilterList. Expected _wxDirFilterListCtrl_p."); | |
10558 | return NULL; | |
10559 | } | |
10560 | } | |
10561 | { | |
c8bc7bb8 RD |
10562 | _arg1 = wxString_in_helper(_obj1); |
10563 | if (_arg1 == NULL) | |
db34b2d4 | 10564 | return NULL; |
db34b2d4 RD |
10565 | } |
10566 | { | |
10567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10568 | wxDirFilterListCtrl_FillFilterList(_arg0,*_arg1,_arg2); |
db34b2d4 RD |
10569 | |
10570 | wxPyEndAllowThreads(__tstate); | |
10571 | if (PyErr_Occurred()) return NULL; | |
10572 | } Py_INCREF(Py_None); | |
10573 | _resultobj = Py_None; | |
10574 | { | |
10575 | if (_obj1) | |
10576 | delete _arg1; | |
10577 | } | |
10578 | return _resultobj; | |
10579 | } | |
10580 | ||
8ab979d7 | 10581 | static PyMethodDef controls2cMethods[] = { |
db34b2d4 RD |
10582 | { "wxDirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_wxDirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, |
10583 | { "wxDirFilterListCtrl_Create", (PyCFunction) _wrap_wxDirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10584 | { "new_wxPreDirFilterListCtrl", (PyCFunction) _wrap_new_wxPreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10585 | { "new_wxDirFilterListCtrl", (PyCFunction) _wrap_new_wxDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10586 | { "wxGenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10587 | { "wxGenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10588 | { "wxGenericDirCtrl_GetRootId", (PyCFunction) _wrap_wxGenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
10589 | { "wxGenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
10590 | { "wxGenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
10591 | { "wxGenericDirCtrl_SetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
10592 | { "wxGenericDirCtrl_GetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
10593 | { "wxGenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
10594 | { "wxGenericDirCtrl_ShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
10595 | { "wxGenericDirCtrl_SetPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
10596 | { "wxGenericDirCtrl_GetFilePath", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
10597 | { "wxGenericDirCtrl_GetPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
10598 | { "wxGenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
10599 | { "wxGenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
10600 | { "wxGenericDirCtrl_ExpandPath", (PyCFunction) _wrap_wxGenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
10601 | { "wxGenericDirCtrl_Create", (PyCFunction) _wrap_wxGenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10602 | { "new_wxPreGenericDirCtrl", (PyCFunction) _wrap_new_wxPreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10603 | { "new_wxGenericDirCtrl", (PyCFunction) _wrap_new_wxGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10604 | { "wxDirItemData_m_isDir_get", (PyCFunction) _wrap_wxDirItemData_m_isDir_get, METH_VARARGS | METH_KEYWORDS }, | |
10605 | { "wxDirItemData_m_isDir_set", (PyCFunction) _wrap_wxDirItemData_m_isDir_set, METH_VARARGS | METH_KEYWORDS }, | |
10606 | { "wxDirItemData_m_isExpanded_get", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_get, METH_VARARGS | METH_KEYWORDS }, | |
10607 | { "wxDirItemData_m_isExpanded_set", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_set, METH_VARARGS | METH_KEYWORDS }, | |
10608 | { "wxDirItemData_m_isHidden_get", (PyCFunction) _wrap_wxDirItemData_m_isHidden_get, METH_VARARGS | METH_KEYWORDS }, | |
10609 | { "wxDirItemData_m_isHidden_set", (PyCFunction) _wrap_wxDirItemData_m_isHidden_set, METH_VARARGS | METH_KEYWORDS }, | |
10610 | { "wxDirItemData_m_name_get", (PyCFunction) _wrap_wxDirItemData_m_name_get, METH_VARARGS | METH_KEYWORDS }, | |
10611 | { "wxDirItemData_m_name_set", (PyCFunction) _wrap_wxDirItemData_m_name_set, METH_VARARGS | METH_KEYWORDS }, | |
10612 | { "wxDirItemData_m_path_get", (PyCFunction) _wrap_wxDirItemData_m_path_get, METH_VARARGS | METH_KEYWORDS }, | |
10613 | { "wxDirItemData_m_path_set", (PyCFunction) _wrap_wxDirItemData_m_path_set, METH_VARARGS | METH_KEYWORDS }, | |
10614 | { "wxDirItemData_SetNewDirName", (PyCFunction) _wrap_wxDirItemData_SetNewDirName, METH_VARARGS | METH_KEYWORDS }, | |
10615 | { "new_wxDirItemData", (PyCFunction) _wrap_new_wxDirItemData, METH_VARARGS | METH_KEYWORDS }, | |
74bcba0e | 10616 | { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 RD |
10617 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, |
10618 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10619 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10620 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
10621 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
10622 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10623 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10624 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, |
10625 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
10626 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
10627 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
10628 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
10629 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
10630 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
10631 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
10632 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
10633 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
10634 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
10635 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
10636 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
10637 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10638 | { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10639 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, |
10640 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
10641 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10642 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10643 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, |
10644 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
10645 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
10646 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
10647 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
10648 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
10649 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
10650 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10651 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 10652 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10653 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
10654 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
10655 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
10656 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
10657 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
10658 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
10659 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, | |
10660 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
10661 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10662 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10663 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
10664 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
10665 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10666 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10667 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
10668 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10669 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
10670 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, |
10671 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
10672 | { "wxTreeCtrl_AssignStateImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, |
10673 | { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10674 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, |
10675 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10676 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
10677 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10678 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
10679 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
10680 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
0220cbc1 | 10681 | { "wxTreeCtrl__setCallbackInfo", (PyCFunction) _wrap_wxTreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
10682 | { "wxTreeCtrl_Create", (PyCFunction) _wrap_wxTreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
10683 | { "new_wxPreTreeCtrl", (PyCFunction) _wrap_new_wxPreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10684 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, |
10685 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
d99400b2 | 10686 | { "wxTreeEvent_GetKeyCode", (PyCFunction) _wrap_wxTreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, |
65191ae8 | 10687 | { "wxTreeEvent_GetKeyEvent", (PyCFunction) _wrap_wxTreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10688 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, |
10689 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
10690 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 | 10691 | { "new_wxTreeEvent", (PyCFunction) _wrap_new_wxTreeEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10692 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, |
10693 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
10694 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
10695 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10696 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10697 | { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10698 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, |
10699 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
10700 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
10701 | { "wxTreeItemAttr_GetFont", (PyCFunction) _wrap_wxTreeItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, |
10702 | { "wxTreeItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10703 | { "wxTreeItemAttr_GetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10704 | { "wxTreeItemAttr_HasFont", (PyCFunction) _wrap_wxTreeItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
10705 | { "wxTreeItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10706 | { "wxTreeItemAttr_HasTextColour", (PyCFunction) _wrap_wxTreeItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10707 | { "wxTreeItemAttr_SetFont", (PyCFunction) _wrap_wxTreeItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10708 | { "wxTreeItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10709 | { "wxTreeItemAttr_SetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10710 | { "new_wxTreeItemAttr", (PyCFunction) _wrap_new_wxTreeItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
059a841c RD |
10711 | { "wxListView_ClearColumnImage", (PyCFunction) _wrap_wxListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, |
10712 | { "wxListView_SetColumnImage", (PyCFunction) _wrap_wxListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
10713 | { "wxListView_IsSelected", (PyCFunction) _wrap_wxListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
10714 | { "wxListView_GetFirstSelected", (PyCFunction) _wrap_wxListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
10715 | { "wxListView_GetNextSelected", (PyCFunction) _wrap_wxListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
10716 | { "wxListView_GetFocusedItem", (PyCFunction) _wrap_wxListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
10717 | { "wxListView_Focus", (PyCFunction) _wrap_wxListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
10718 | { "wxListView_Select", (PyCFunction) _wrap_wxListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
10719 | { "wxListView_Create", (PyCFunction) _wrap_wxListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
10720 | { "new_wxPreListView", (PyCFunction) _wrap_new_wxPreListView, METH_VARARGS | METH_KEYWORDS }, | |
10721 | { "new_wxListView", (PyCFunction) _wrap_new_wxListView, METH_VARARGS | METH_KEYWORDS }, | |
57ee4c3b | 10722 | { "wxListCtrl_GetMainWindow", (PyCFunction) _wrap_wxListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, |
dcd38683 | 10723 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, |
8381e4cd RD |
10724 | { "wxListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_wxListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
10725 | { "wxListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10726 | { "wxListCtrl_GetItemTextColour", (PyCFunction) _wrap_wxListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10727 | { "wxListCtrl_SetItemTextColour", (PyCFunction) _wrap_wxListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10728 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, |
cd096152 RD |
10729 | { "wxListCtrl_SetItemCount", (PyCFunction) _wrap_wxListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, |
10730 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
10731 | { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10732 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, |
10733 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
10734 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
10735 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10736 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10737 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, |
10738 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
10739 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
10740 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10741 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, |
10742 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
10743 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
10744 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
10745 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
10746 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
cd096152 RD |
10747 | { "wxListCtrl_RefreshItems", (PyCFunction) _wrap_wxListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, |
10748 | { "wxListCtrl_RefreshItem", (PyCFunction) _wrap_wxListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
10749 | { "wxListCtrl_IsVirtual", (PyCFunction) _wrap_wxListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
10750 | { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
10751 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10752 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10753 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
10754 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
10755 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
10756 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
10757 | { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10758 | { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10759 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10760 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
10761 | { "wxListCtrl_GetColumnCount", (PyCFunction) _wrap_wxListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
10762 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10763 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
10764 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
10765 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
10766 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10767 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10768 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10769 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10770 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10771 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
10772 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
10773 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
10774 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
10775 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
10776 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
10777 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
10778 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
10779 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10780 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10781 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10782 | { "wxListCtrl_SetForegroundColour", (PyCFunction) _wrap_wxListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
0220cbc1 | 10783 | { "wxListCtrl__setCallbackInfo", (PyCFunction) _wrap_wxListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
10784 | { "wxListCtrl_Create", (PyCFunction) _wrap_wxListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
10785 | { "new_wxPreListCtrl", (PyCFunction) _wrap_new_wxPreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10786 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, |
059a841c RD |
10787 | { "wxListEvent_GetCacheTo", (PyCFunction) _wrap_wxListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, |
10788 | { "wxListEvent_GetCacheFrom", (PyCFunction) _wrap_wxListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10789 | { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, |
10790 | { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
10791 | { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10792 | { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
10793 | { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10794 | { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10795 | { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10796 | { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 10797 | { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, |
d99400b2 | 10798 | { "wxListEvent_GetKeyCode", (PyCFunction) _wrap_wxListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10799 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10800 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10801 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10802 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
6e8a778a | 10803 | { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10804 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, |
059a841c | 10805 | { "new_wxListEvent", (PyCFunction) _wrap_new_wxListEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10806 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, |
10807 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
10808 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
10809 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
10810 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
10811 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
10812 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
10813 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
10814 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
10815 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
10816 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
10817 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
10818 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
10819 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
10820 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
10821 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
10822 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
10823 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
10824 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
10825 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10826 | { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, |
10827 | { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10828 | { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10829 | { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
10830 | { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
10831 | { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
10832 | { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10833 | { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10834 | { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
10835 | { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10836 | { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
10837 | { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10838 | { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
10839 | { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
10840 | { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10841 | { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10842 | { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10843 | { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
10844 | { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10845 | { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
10846 | { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
10847 | { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
10848 | { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
10849 | { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
10850 | { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10851 | { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10852 | { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
10853 | { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
10854 | { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
10855 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
10856 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
10857 | { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10858 | { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10859 | { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10860 | { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
10861 | { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10862 | { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10863 | { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10864 | { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10865 | { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10866 | { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
10867 | { NULL, NULL } |
10868 | }; | |
1d99702e RD |
10869 | #ifdef __cplusplus |
10870 | } | |
10871 | #endif | |
10872 | /* | |
10873 | * This table is used by the pointer type-checker | |
10874 | */ | |
10875 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 10876 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, |
1d99702e | 10877 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, |
1d99702e | 10878 | { "_signed_long","_long",0}, |
b1462dfa | 10879 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
10880 | { "_wxPrintQuality","_int",0}, |
10881 | { "_wxPrintQuality","_signed_int",0}, | |
10882 | { "_wxPrintQuality","_unsigned_int",0}, | |
10883 | { "_wxPrintQuality","_wxWindowID",0}, | |
10884 | { "_wxPrintQuality","_uint",0}, | |
10885 | { "_wxPrintQuality","_EBool",0}, | |
10886 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 10887 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 10888 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, |
c368d904 | 10889 | { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
1d99702e | 10890 | { "_byte","_unsigned_char",0}, |
db34b2d4 | 10891 | { "_wxChoice","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxChoice}, |
1d99702e RD |
10892 | { "_long","_unsigned_long",0}, |
10893 | { "_long","_signed_long",0}, | |
b1462dfa | 10894 | { "_size_t","_wxCoord",0}, |
1d99702e | 10895 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 10896 | { "_size_t","_time_t",0}, |
1d99702e RD |
10897 | { "_size_t","_unsigned_int",0}, |
10898 | { "_size_t","_int",0}, | |
10899 | { "_size_t","_wxWindowID",0}, | |
10900 | { "_size_t","_uint",0}, | |
b1462dfa | 10901 | { "_uint","_wxCoord",0}, |
1d99702e | 10902 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 10903 | { "_uint","_time_t",0}, |
1d99702e RD |
10904 | { "_uint","_size_t",0}, |
10905 | { "_uint","_unsigned_int",0}, | |
10906 | { "_uint","_int",0}, | |
10907 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 10908 | { "_wxChar","_char",0}, |
1d99702e | 10909 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, |
1d99702e | 10910 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, |
f6bcfd97 | 10911 | { "_char","_wxChar",0}, |
059a841c | 10912 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 10913 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
10914 | { "_EBool","_wxPrintQuality",0}, |
10915 | { "_EBool","_signed_int",0}, | |
10916 | { "_EBool","_int",0}, | |
10917 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 10918 | { "_unsigned_long","_long",0}, |
059a841c | 10919 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 10920 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
10921 | { "_signed_int","_wxPrintQuality",0}, |
10922 | { "_signed_int","_EBool",0}, | |
10923 | { "_signed_int","_wxWindowID",0}, | |
10924 | { "_signed_int","_int",0}, | |
1d99702e RD |
10925 | { "_WXTYPE","_short",0}, |
10926 | { "_WXTYPE","_signed_short",0}, | |
10927 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
10928 | { "_unsigned_short","_WXTYPE",0}, |
10929 | { "_unsigned_short","_short",0}, | |
db34b2d4 RD |
10930 | { "_wxObject","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxObject}, |
10931 | { "_wxObject","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxObject}, | |
10932 | { "_wxObject","_wxDirItemData",SwigwxDirItemDataTowxObject}, | |
9df61a29 | 10933 | { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, |
9df61a29 | 10934 | { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject}, |
9df61a29 | 10935 | { "_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, |
059a841c | 10936 | { "_wxObject","_wxListView",SwigwxListViewTowxObject}, |
cd096152 | 10937 | { "_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, |
9df61a29 | 10938 | { "_wxObject","_wxListEvent",SwigwxListEventTowxObject}, |
9df61a29 | 10939 | { "_wxObject","_wxListItem",SwigwxListItemTowxObject}, |
1d99702e RD |
10940 | { "_signed_short","_WXTYPE",0}, |
10941 | { "_signed_short","_short",0}, | |
1d99702e | 10942 | { "_unsigned_char","_byte",0}, |
db34b2d4 RD |
10943 | { "_wxControl","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControl}, |
10944 | { "_wxControl","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxControl}, | |
f6bcfd97 | 10945 | { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
059a841c | 10946 | { "_wxControl","_wxListView",SwigwxListViewTowxControl}, |
cd096152 | 10947 | { "_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, |
b1462dfa | 10948 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 10949 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 10950 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
10951 | { "_unsigned_int","_size_t",0}, |
10952 | { "_unsigned_int","_uint",0}, | |
10953 | { "_unsigned_int","_wxWindowID",0}, | |
10954 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
10955 | { "_short","_WXTYPE",0}, |
10956 | { "_short","_unsigned_short",0}, | |
10957 | { "_short","_signed_short",0}, | |
db34b2d4 | 10958 | { "_wxControlWithItems","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControlWithItems}, |
b1462dfa | 10959 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 10960 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 10961 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
10962 | { "_wxWindowID","_size_t",0}, |
10963 | { "_wxWindowID","_EBool",0}, | |
10964 | { "_wxWindowID","_uint",0}, | |
10965 | { "_wxWindowID","_int",0}, | |
10966 | { "_wxWindowID","_signed_int",0}, | |
10967 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 10968 | { "_int","_wxCoord",0}, |
1d99702e | 10969 | { "_int","_wxPrintQuality",0}, |
c368d904 | 10970 | { "_int","_time_t",0}, |
1d99702e RD |
10971 | { "_int","_size_t",0}, |
10972 | { "_int","_EBool",0}, | |
10973 | { "_int","_uint",0}, | |
10974 | { "_int","_wxWindowID",0}, | |
10975 | { "_int","_unsigned_int",0}, | |
10976 | { "_int","_signed_int",0}, | |
c368d904 RD |
10977 | { "_time_t","_wxCoord",0}, |
10978 | { "_time_t","_wxPrintQuality",0}, | |
10979 | { "_time_t","_unsigned_int",0}, | |
10980 | { "_time_t","_int",0}, | |
10981 | { "_time_t","_wxWindowID",0}, | |
10982 | { "_time_t","_uint",0}, | |
10983 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
10984 | { "_wxCoord","_int",0}, |
10985 | { "_wxCoord","_signed_int",0}, | |
10986 | { "_wxCoord","_unsigned_int",0}, | |
10987 | { "_wxCoord","_wxWindowID",0}, | |
10988 | { "_wxCoord","_uint",0}, | |
10989 | { "_wxCoord","_EBool",0}, | |
10990 | { "_wxCoord","_size_t",0}, | |
c368d904 | 10991 | { "_wxCoord","_time_t",0}, |
b1462dfa | 10992 | { "_wxCoord","_wxPrintQuality",0}, |
059a841c | 10993 | { "_wxPyListCtrl","_wxListView",SwigwxListViewTowxPyListCtrl}, |
db34b2d4 RD |
10994 | { "_wxEvtHandler","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxEvtHandler}, |
10995 | { "_wxEvtHandler","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxEvtHandler}, | |
f6bcfd97 | 10996 | { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
059a841c | 10997 | { "_wxEvtHandler","_wxListView",SwigwxListViewTowxEvtHandler}, |
cd096152 | 10998 | { "_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, |
db34b2d4 RD |
10999 | { "_wxWindow","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxWindow}, |
11000 | { "_wxWindow","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxWindow}, | |
f6bcfd97 | 11001 | { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
059a841c | 11002 | { "_wxWindow","_wxListView",SwigwxListViewTowxWindow}, |
cd096152 | 11003 | { "_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, |
1d99702e RD |
11004 | {0,0,0}}; |
11005 | ||
8ab979d7 RD |
11006 | static PyObject *SWIG_globals; |
11007 | #ifdef __cplusplus | |
11008 | extern "C" | |
11009 | #endif | |
1d99702e | 11010 | SWIGEXPORT(void) initcontrols2c() { |
8ab979d7 RD |
11011 | PyObject *m, *d; |
11012 | SWIG_globals = SWIG_newvarlink(); | |
11013 | m = Py_InitModule("controls2c", controls2cMethods); | |
11014 | d = PyModule_GetDict(m); | |
cd096152 RD |
11015 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
11016 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
11017 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
11018 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
11019 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
11020 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
11021 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO)); | |
11022 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO)); | |
11023 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
11024 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
11025 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN)); | |
11026 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
11027 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK)); | |
11028 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
11029 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
11030 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
11031 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_CACHE_HINT)); | |
059a841c RD |
11032 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); |
11033 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
11034 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
11035 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
262e41eb | 11036 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_FOCUSED)); |
cd096152 RD |
11037 | PyDict_SetItemString(d,"wxLC_VRULES", PyInt_FromLong((long) wxLC_VRULES)); |
11038 | PyDict_SetItemString(d,"wxLC_HRULES", PyInt_FromLong((long) wxLC_HRULES)); | |
11039 | PyDict_SetItemString(d,"wxLC_ICON", PyInt_FromLong((long) wxLC_ICON)); | |
11040 | PyDict_SetItemString(d,"wxLC_SMALL_ICON", PyInt_FromLong((long) wxLC_SMALL_ICON)); | |
11041 | PyDict_SetItemString(d,"wxLC_LIST", PyInt_FromLong((long) wxLC_LIST)); | |
11042 | PyDict_SetItemString(d,"wxLC_REPORT", PyInt_FromLong((long) wxLC_REPORT)); | |
11043 | PyDict_SetItemString(d,"wxLC_ALIGN_TOP", PyInt_FromLong((long) wxLC_ALIGN_TOP)); | |
11044 | PyDict_SetItemString(d,"wxLC_ALIGN_LEFT", PyInt_FromLong((long) wxLC_ALIGN_LEFT)); | |
11045 | PyDict_SetItemString(d,"wxLC_AUTOARRANGE", PyInt_FromLong((long) wxLC_AUTOARRANGE)); | |
11046 | PyDict_SetItemString(d,"wxLC_VIRTUAL", PyInt_FromLong((long) wxLC_VIRTUAL)); | |
11047 | PyDict_SetItemString(d,"wxLC_EDIT_LABELS", PyInt_FromLong((long) wxLC_EDIT_LABELS)); | |
11048 | PyDict_SetItemString(d,"wxLC_NO_HEADER", PyInt_FromLong((long) wxLC_NO_HEADER)); | |
11049 | PyDict_SetItemString(d,"wxLC_NO_SORT_HEADER", PyInt_FromLong((long) wxLC_NO_SORT_HEADER)); | |
11050 | PyDict_SetItemString(d,"wxLC_SINGLE_SEL", PyInt_FromLong((long) wxLC_SINGLE_SEL)); | |
11051 | PyDict_SetItemString(d,"wxLC_SORT_ASCENDING", PyInt_FromLong((long) wxLC_SORT_ASCENDING)); | |
11052 | PyDict_SetItemString(d,"wxLC_SORT_DESCENDING", PyInt_FromLong((long) wxLC_SORT_DESCENDING)); | |
11053 | PyDict_SetItemString(d,"wxLC_MASK_TYPE", PyInt_FromLong((long) wxLC_MASK_TYPE)); | |
11054 | PyDict_SetItemString(d,"wxLC_MASK_ALIGN", PyInt_FromLong((long) wxLC_MASK_ALIGN)); | |
11055 | PyDict_SetItemString(d,"wxLC_MASK_SORT", PyInt_FromLong((long) wxLC_MASK_SORT)); | |
059a841c | 11056 | PyDict_SetItemString(d,"wxLC_USER_TEXT", PyInt_FromLong((long) wxLC_USER_TEXT)); |
cd096152 | 11057 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); |
af309447 RD |
11058 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); |
11059 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
11060 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
cd096152 | 11061 | PyDict_SetItemString(d,"wxLIST_SET_ITEM", PyInt_FromLong((long) wxLIST_SET_ITEM)); |
af309447 RD |
11062 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); |
11063 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
11064 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); | |
11065 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
11066 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
11067 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
11068 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
11069 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
11070 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
11071 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
11072 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
11073 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
11074 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
11075 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
11076 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
11077 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
11078 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
11079 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
11080 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
11081 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
11082 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
11083 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
11084 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
11085 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
11086 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
11087 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
af309447 RD |
11088 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); |
11089 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
11090 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
11091 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
11092 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
11093 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
11094 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
11095 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
11096 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
f6bcfd97 BP |
11097 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); |
11098 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
11099 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
11100 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
aa2a5b86 RD |
11101 | PyDict_SetItemString(d,"wxTR_NO_BUTTONS", PyInt_FromLong((long) wxTR_NO_BUTTONS)); |
11102 | PyDict_SetItemString(d,"wxTR_HAS_BUTTONS", PyInt_FromLong((long) wxTR_HAS_BUTTONS)); | |
11103 | PyDict_SetItemString(d,"wxTR_TWIST_BUTTONS", PyInt_FromLong((long) wxTR_TWIST_BUTTONS)); | |
11104 | PyDict_SetItemString(d,"wxTR_NO_LINES", PyInt_FromLong((long) wxTR_NO_LINES)); | |
11105 | PyDict_SetItemString(d,"wxTR_MAC_BUTTONS", PyInt_FromLong((long) wxTR_MAC_BUTTONS)); | |
1893b029 | 11106 | PyDict_SetItemString(d,"wxTR_AQUA_BUTTONS", PyInt_FromLong((long) wxTR_AQUA_BUTTONS)); |
aa2a5b86 RD |
11107 | PyDict_SetItemString(d,"wxTR_SINGLE", PyInt_FromLong((long) wxTR_SINGLE)); |
11108 | PyDict_SetItemString(d,"wxTR_MULTIPLE", PyInt_FromLong((long) wxTR_MULTIPLE)); | |
11109 | PyDict_SetItemString(d,"wxTR_EXTENDED", PyInt_FromLong((long) wxTR_EXTENDED)); | |
1893b029 | 11110 | PyDict_SetItemString(d,"wxTR_FULL_ROW_HIGHLIGHT", PyInt_FromLong((long) wxTR_FULL_ROW_HIGHLIGHT)); |
aa2a5b86 RD |
11111 | PyDict_SetItemString(d,"wxTR_EDIT_LABELS", PyInt_FromLong((long) wxTR_EDIT_LABELS)); |
11112 | PyDict_SetItemString(d,"wxTR_LINES_AT_ROOT", PyInt_FromLong((long) wxTR_LINES_AT_ROOT)); | |
11113 | PyDict_SetItemString(d,"wxTR_HIDE_ROOT", PyInt_FromLong((long) wxTR_HIDE_ROOT)); | |
11114 | PyDict_SetItemString(d,"wxTR_ROW_LINES", PyInt_FromLong((long) wxTR_ROW_LINES)); | |
11115 | PyDict_SetItemString(d,"wxTR_HAS_VARIABLE_ROW_HEIGHT", PyInt_FromLong((long) wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
11116 | PyDict_SetItemString(d,"wxTR_DEFAULT_STYLE", PyInt_FromLong((long) wxTR_DEFAULT_STYLE)); | |
694759cf RD |
11117 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); |
11118 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
11119 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
11120 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
11121 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
164b735b RD |
11122 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); |
11123 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
11124 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
11125 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
11126 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
11127 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
11128 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
11129 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
11130 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
11131 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
11132 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
11133 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
11134 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
11135 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
9c4165ad RD |
11136 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
11137 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
11138 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
11139 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
11140 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
11141 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO)); | |
11142 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO)); | |
11143 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
11144 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
11145 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
11146 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
11147 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
11148 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
11149 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN)); | |
11150 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
11151 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
11152 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
7a446686 | 11153 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG)); |
db34b2d4 RD |
11154 | PyDict_SetItemString(d,"wxDIRCTRL_DIR_ONLY", PyInt_FromLong((long) wxDIRCTRL_DIR_ONLY)); |
11155 | PyDict_SetItemString(d,"wxDIRCTRL_SELECT_FIRST", PyInt_FromLong((long) wxDIRCTRL_SELECT_FIRST)); | |
11156 | PyDict_SetItemString(d,"wxDIRCTRL_SHOW_FILTERS", PyInt_FromLong((long) wxDIRCTRL_SHOW_FILTERS)); | |
11157 | PyDict_SetItemString(d,"wxDIRCTRL_3D_INTERNAL", PyInt_FromLong((long) wxDIRCTRL_3D_INTERNAL)); | |
301dfd67 | 11158 | PyDict_SetItemString(d,"wxDIRCTRL_EDIT_LABELS", PyInt_FromLong((long) wxDIRCTRL_EDIT_LABELS)); |
87439dd8 RD |
11159 | PyDict_SetItemString(d,"wxID_TREECTRL", PyInt_FromLong((long) wxID_TREECTRL)); |
11160 | PyDict_SetItemString(d,"wxID_FILTERLISTCTRL", PyInt_FromLong((long) wxID_FILTERLISTCTRL)); | |
9df61a29 | 11161 | |
059a841c | 11162 | // Map renamed classes back to their common name for OOR |
9df61a29 RD |
11163 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); |
11164 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
059a841c | 11165 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); |
1d99702e RD |
11166 | { |
11167 | int i; | |
11168 | for (i = 0; _swig_mapping[i].n1; i++) | |
11169 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11170 | } | |
8ab979d7 | 11171 | } |