]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/msw/controls2.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
185d7c3e | 6 | * Version 1.1 (Build 883) |
8ab979d7 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
185d7c3e | 44 | |
8ab979d7 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initcontrols2c |
55 | ||
56 | #define SWIG_name "controls2c" | |
57 | ||
58 | #include "helpers.h" | |
2f90df85 RD |
59 | #ifdef __WXMSW__ |
60 | #include <windows.h> | |
61 | #endif | |
8ab979d7 RD |
62 | #include <wx/listctrl.h> |
63 | #include <wx/treectrl.h> | |
9416aa89 | 64 | #include <wx/imaglist.h> |
68320e40 | 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 | ||
e0672e2f | 72 | if (!target) { |
8ab979d7 | 73 | target = o; |
e0672e2f | 74 | } else if (target == Py_None) { |
8ab979d7 RD |
75 | Py_DECREF(Py_None); |
76 | target = o; | |
e0672e2f | 77 | } else { |
8ab979d7 RD |
78 | if (!PyTuple_Check(target)) { |
79 | o2 = target; | |
80 | target = PyTuple_New(1); | |
81 | PyTuple_SetItem(target, 0, o2); | |
82 | } | |
e0672e2f RD |
83 | o3 = PyTuple_New(1); |
84 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
85 | |
86 | o2 = target; | |
e0672e2f RD |
87 | target = PySequence_Concat(o2, o3); |
88 | Py_DECREF(o2); | |
8ab979d7 RD |
89 | Py_DECREF(o3); |
90 | } | |
91 | return target; | |
92 | } | |
137b5242 RD |
93 | |
94 | // Put some wx default wxChar* values into wxStrings. | |
95 | const wxChar* wxListCtrlNameStr = _T("wxListCtrl"); | |
96 | DECLARE_DEF_STRING(ListCtrlNameStr); | |
97 | ||
3413be75 | 98 | const wxChar* wx_TreeCtrlNameStr = _T("wxTreeCtrl"); |
137b5242 RD |
99 | DECLARE_DEF_STRING(_TreeCtrlNameStr); |
100 | DECLARE_DEF_STRING(DirDialogDefaultFolderStr); | |
101 | ||
102 | static const wxString wxPyEmptyString(wxT("")); | |
09f3d4e6 | 103 | // C++ Version of a Python aware class |
c7e7022c RD |
104 | class wxPyListCtrl : public wxListCtrl { |
105 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
106 | public: | |
09f3d4e6 | 107 | wxPyListCtrl() : wxListCtrl() {} |
c7e7022c RD |
108 | wxPyListCtrl(wxWindow* parent, wxWindowID id, |
109 | const wxPoint& pos, | |
110 | const wxSize& size, | |
111 | long style, | |
112 | const wxValidator& validator, | |
137b5242 | 113 | const wxString& name) : |
c7e7022c RD |
114 | wxListCtrl(parent, id, pos, size, style, validator, name) {} |
115 | ||
09f3d4e6 RD |
116 | bool Create(wxWindow* parent, wxWindowID id, |
117 | const wxPoint& pos, | |
118 | const wxSize& size, | |
119 | long style, | |
120 | const wxValidator& validator, | |
137b5242 | 121 | const wxString& name) { |
09f3d4e6 RD |
122 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); |
123 | } | |
124 | ||
c7e7022c RD |
125 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); |
126 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
127 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
128 | ||
129 | PYPRIVATE; | |
130 | }; | |
131 | ||
132 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
133 | ||
134 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
135 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
136 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
6d19860f | 137 | // Python aware sorting function for wxPyListCtrl |
f6bcfd97 | 138 | int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { |
dcd38683 RD |
139 | int retval = 0; |
140 | PyObject* func = (PyObject*)funcPtr; | |
4268f798 | 141 | wxPyBeginBlockThreads(); |
dcd38683 RD |
142 | |
143 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
144 | PyObject* result = PyEval_CallObject(func, args); | |
145 | Py_DECREF(args); | |
146 | if (result) { | |
147 | retval = PyInt_AsLong(result); | |
148 | Py_DECREF(result); | |
149 | } | |
150 | ||
4268f798 | 151 | wxPyEndBlockThreads(); |
dcd38683 RD |
152 | return retval; |
153 | } | |
154 | ||
155 | ||
cf694132 RD |
156 | class wxPyTreeItemData : public wxTreeItemData { |
157 | public: | |
158 | wxPyTreeItemData(PyObject* obj = NULL) { | |
c368d904 | 159 | if (obj == NULL) |
cf694132 | 160 | obj = Py_None; |
c368d904 RD |
161 | Py_INCREF(obj); |
162 | m_obj = obj; | |
cf694132 RD |
163 | } |
164 | ||
165 | ~wxPyTreeItemData() { | |
4268f798 | 166 | wxPyBeginBlockThreads(); |
c368d904 | 167 | Py_DECREF(m_obj); |
4268f798 | 168 | wxPyEndBlockThreads(); |
cf694132 RD |
169 | } |
170 | ||
171 | PyObject* GetData() { | |
172 | Py_INCREF(m_obj); | |
173 | return m_obj; | |
174 | } | |
175 | ||
176 | void SetData(PyObject* obj) { | |
4268f798 | 177 | wxPyBeginBlockThreads(); |
cf694132 | 178 | Py_DECREF(m_obj); |
4268f798 | 179 | wxPyEndBlockThreads(); |
cf694132 RD |
180 | m_obj = obj; |
181 | Py_INCREF(obj); | |
182 | } | |
183 | ||
184 | PyObject* m_obj; | |
185 | }; | |
09f3d4e6 | 186 | // C++ version of Python aware wxTreeCtrl |
f6bcfd97 | 187 | class wxPyTreeCtrl : public wxTreeCtrl { |
3b36695d | 188 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); |
f6bcfd97 | 189 | public: |
09f3d4e6 | 190 | wxPyTreeCtrl() : wxTreeCtrl() {} |
f6bcfd97 BP |
191 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, |
192 | const wxPoint& pos, | |
193 | const wxSize& size, | |
194 | long style, | |
195 | const wxValidator& validator, | |
137b5242 | 196 | const wxString& name) : |
f6bcfd97 BP |
197 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} |
198 | ||
09f3d4e6 RD |
199 | bool Create(wxWindow *parent, wxWindowID id, |
200 | const wxPoint& pos, | |
201 | const wxSize& size, | |
202 | long style, | |
203 | const wxValidator& validator, | |
137b5242 | 204 | const wxString& name) { |
09f3d4e6 RD |
205 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); |
206 | } | |
207 | ||
208 | ||
f6bcfd97 BP |
209 | int OnCompareItems(const wxTreeItemId& item1, |
210 | const wxTreeItemId& item2) { | |
211 | int rval = 0; | |
19a97bd6 | 212 | bool found; |
4268f798 | 213 | wxPyBeginBlockThreads(); |
19a97bd6 | 214 | if ((found = m_myInst.findCallback("OnCompareItems"))) |
f6bcfd97 BP |
215 | rval = m_myInst.callCallback(Py_BuildValue( |
216 | "(OO)", | |
217 | wxPyConstructObject((void*)&item1, "wxTreeItemId"), | |
218 | wxPyConstructObject((void*)&item2, "wxTreeItemId"))); | |
4268f798 | 219 | wxPyEndBlockThreads(); |
19a97bd6 | 220 | if (! found) |
f6bcfd97 | 221 | rval = wxTreeCtrl::OnCompareItems(item1, item2); |
f6bcfd97 BP |
222 | return rval; |
223 | } | |
224 | PYPRIVATE; | |
225 | }; | |
226 | ||
3b36695d RD |
227 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); |
228 | ||
1d99702e RD |
229 | #ifdef __cplusplus |
230 | extern "C" { | |
231 | #endif | |
c7e7022c | 232 | #define new_wxListItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxListItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
f6bcfd97 | 233 | static PyObject *_wrap_new_wxListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 | 234 | PyObject * _resultobj; |
f6bcfd97 | 235 | wxListItemAttr * _result; |
c7e7022c RD |
236 | wxColour * _arg0 = (wxColour *) &wxNullColour; |
237 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
238 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
239 | wxColour temp; | |
240 | PyObject * _obj0 = 0; | |
241 | wxColour temp0; | |
242 | PyObject * _obj1 = 0; | |
243 | PyObject * _argo2 = 0; | |
244 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
f6bcfd97 | 245 | char _ptemp[128]; |
af309447 RD |
246 | |
247 | self = self; | |
c7e7022c RD |
248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxListItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) |
249 | return NULL; | |
250 | if (_obj0) | |
251 | { | |
252 | _arg0 = &temp; | |
253 | if (! wxColour_helper(_obj0, &_arg0)) | |
254 | return NULL; | |
255 | } | |
256 | if (_obj1) | |
257 | { | |
258 | _arg1 = &temp0; | |
259 | if (! wxColour_helper(_obj1, &_arg1)) | |
260 | return NULL; | |
261 | } | |
262 | if (_argo2) { | |
263 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
264 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxListItemAttr. Expected _wxFont_p."); | |
af309447 | 266 | return NULL; |
c7e7022c RD |
267 | } |
268 | } | |
cf694132 | 269 | { |
4268f798 | 270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 271 | _result = (wxListItemAttr *)new_wxListItemAttr(*_arg0,*_arg1,*_arg2); |
cf694132 | 272 | |
4268f798 | 273 | wxPyEndAllowThreads(__tstate); |
493f1553 | 274 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
275 | } if (_result) { |
276 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
277 | _resultobj = Py_BuildValue("s",_ptemp); | |
278 | } else { | |
279 | Py_INCREF(Py_None); | |
280 | _resultobj = Py_None; | |
281 | } | |
af309447 RD |
282 | return _resultobj; |
283 | } | |
284 | ||
f6bcfd97 BP |
285 | #define wxListItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
286 | static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 287 | PyObject * _resultobj; |
f6bcfd97 BP |
288 | wxListItemAttr * _arg0; |
289 | wxColour * _arg1; | |
1d99702e | 290 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
291 | wxColour temp; |
292 | PyObject * _obj1 = 0; | |
293 | char *_kwnames[] = { "self","colText", NULL }; | |
8ab979d7 RD |
294 | |
295 | self = self; | |
f6bcfd97 | 296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 297 | return NULL; |
1d99702e RD |
298 | if (_argo0) { |
299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetTextColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
302 | return NULL; |
303 | } | |
304 | } | |
f6bcfd97 BP |
305 | { |
306 | _arg1 = &temp; | |
307 | if (! wxColour_helper(_obj1, &_arg1)) | |
308 | return NULL; | |
309 | } | |
cf694132 | 310 | { |
4268f798 | 311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 312 | wxListItemAttr_SetTextColour(_arg0,*_arg1); |
cf694132 | 313 | |
4268f798 | 314 | wxPyEndAllowThreads(__tstate); |
493f1553 | 315 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
316 | } Py_INCREF(Py_None); |
317 | _resultobj = Py_None; | |
8ab979d7 RD |
318 | return _resultobj; |
319 | } | |
320 | ||
f6bcfd97 BP |
321 | #define wxListItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
322 | static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 323 | PyObject * _resultobj; |
f6bcfd97 BP |
324 | wxListItemAttr * _arg0; |
325 | wxColour * _arg1; | |
1d99702e | 326 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
327 | wxColour temp; |
328 | PyObject * _obj1 = 0; | |
329 | char *_kwnames[] = { "self","colBack", NULL }; | |
af309447 RD |
330 | |
331 | self = self; | |
f6bcfd97 | 332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
af309447 | 333 | return NULL; |
1d99702e RD |
334 | if (_argo0) { |
335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetBackgroundColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
338 | return NULL; |
339 | } | |
340 | } | |
f6bcfd97 BP |
341 | { |
342 | _arg1 = &temp; | |
343 | if (! wxColour_helper(_obj1, &_arg1)) | |
344 | return NULL; | |
345 | } | |
cf694132 | 346 | { |
4268f798 | 347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 348 | wxListItemAttr_SetBackgroundColour(_arg0,*_arg1); |
cf694132 | 349 | |
4268f798 | 350 | wxPyEndAllowThreads(__tstate); |
493f1553 | 351 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
352 | } Py_INCREF(Py_None); |
353 | _resultobj = Py_None; | |
af309447 RD |
354 | return _resultobj; |
355 | } | |
356 | ||
f6bcfd97 BP |
357 | #define wxListItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
358 | static PyObject *_wrap_wxListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 359 | PyObject * _resultobj; |
f6bcfd97 BP |
360 | wxListItemAttr * _arg0; |
361 | wxFont * _arg1; | |
1d99702e | 362 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
363 | PyObject * _argo1 = 0; |
364 | char *_kwnames[] = { "self","font", NULL }; | |
8ab979d7 RD |
365 | |
366 | self = self; | |
f6bcfd97 | 367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 368 | return NULL; |
1d99702e RD |
369 | if (_argo0) { |
370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetFont. Expected _wxListItemAttr_p."); | |
373 | return NULL; | |
374 | } | |
375 | } | |
376 | if (_argo1) { | |
377 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
378 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetFont. Expected _wxFont_p."); | |
8ab979d7 RD |
380 | return NULL; |
381 | } | |
382 | } | |
cf694132 | 383 | { |
4268f798 | 384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 385 | wxListItemAttr_SetFont(_arg0,*_arg1); |
cf694132 | 386 | |
4268f798 | 387 | wxPyEndAllowThreads(__tstate); |
493f1553 | 388 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
389 | } Py_INCREF(Py_None); |
390 | _resultobj = Py_None; | |
8ab979d7 RD |
391 | return _resultobj; |
392 | } | |
393 | ||
f6bcfd97 BP |
394 | #define wxListItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) |
395 | static PyObject *_wrap_wxListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 396 | PyObject * _resultobj; |
f6bcfd97 BP |
397 | bool _result; |
398 | wxListItemAttr * _arg0; | |
1d99702e | 399 | PyObject * _argo0 = 0; |
f6bcfd97 | 400 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
401 | |
402 | self = self; | |
f6bcfd97 | 403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasTextColour",_kwnames,&_argo0)) |
af309447 | 404 | return NULL; |
1d99702e RD |
405 | if (_argo0) { |
406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasTextColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
409 | return NULL; |
410 | } | |
411 | } | |
cf694132 | 412 | { |
4268f798 | 413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 414 | _result = (bool )wxListItemAttr_HasTextColour(_arg0); |
cf694132 | 415 | |
4268f798 | 416 | wxPyEndAllowThreads(__tstate); |
493f1553 | 417 | if (PyErr_Occurred()) return NULL; |
cf694132 | 418 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
419 | return _resultobj; |
420 | } | |
421 | ||
f6bcfd97 BP |
422 | #define wxListItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) |
423 | static PyObject *_wrap_wxListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 424 | PyObject * _resultobj; |
f6bcfd97 BP |
425 | bool _result; |
426 | wxListItemAttr * _arg0; | |
1d99702e | 427 | PyObject * _argo0 = 0; |
efc5f224 | 428 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
429 | |
430 | self = self; | |
f6bcfd97 | 431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 432 | return NULL; |
1d99702e RD |
433 | if (_argo0) { |
434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasBackgroundColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
437 | return NULL; |
438 | } | |
439 | } | |
cf694132 | 440 | { |
4268f798 | 441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 442 | _result = (bool )wxListItemAttr_HasBackgroundColour(_arg0); |
cf694132 | 443 | |
4268f798 | 444 | wxPyEndAllowThreads(__tstate); |
493f1553 | 445 | if (PyErr_Occurred()) return NULL; |
cf694132 | 446 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
447 | return _resultobj; |
448 | } | |
449 | ||
f6bcfd97 BP |
450 | #define wxListItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) |
451 | static PyObject *_wrap_wxListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 452 | PyObject * _resultobj; |
f6bcfd97 BP |
453 | bool _result; |
454 | wxListItemAttr * _arg0; | |
1d99702e | 455 | PyObject * _argo0 = 0; |
f6bcfd97 | 456 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
457 | |
458 | self = self; | |
f6bcfd97 | 459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasFont",_kwnames,&_argo0)) |
af309447 | 460 | return NULL; |
1d99702e RD |
461 | if (_argo0) { |
462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasFont. Expected _wxListItemAttr_p."); | |
af309447 RD |
465 | return NULL; |
466 | } | |
467 | } | |
cf694132 | 468 | { |
4268f798 | 469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 470 | _result = (bool )wxListItemAttr_HasFont(_arg0); |
cf694132 | 471 | |
4268f798 | 472 | wxPyEndAllowThreads(__tstate); |
493f1553 | 473 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 474 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
475 | return _resultobj; |
476 | } | |
477 | ||
f6bcfd97 BP |
478 | #define wxListItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
479 | static PyObject *_wrap_wxListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 480 | PyObject * _resultobj; |
f6bcfd97 BP |
481 | wxColour * _result; |
482 | wxListItemAttr * _arg0; | |
1d99702e | 483 | PyObject * _argo0 = 0; |
efc5f224 | 484 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 485 | char _ptemp[128]; |
8ab979d7 RD |
486 | |
487 | self = self; | |
f6bcfd97 | 488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 489 | return NULL; |
1d99702e RD |
490 | if (_argo0) { |
491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetTextColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
494 | return NULL; |
495 | } | |
496 | } | |
cf694132 | 497 | { |
4268f798 | 498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 499 | _result = new wxColour (wxListItemAttr_GetTextColour(_arg0)); |
cf694132 | 500 | |
4268f798 | 501 | wxPyEndAllowThreads(__tstate); |
493f1553 | 502 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
503 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
504 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
505 | return _resultobj; |
506 | } | |
507 | ||
f6bcfd97 BP |
508 | #define wxListItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) |
509 | static PyObject *_wrap_wxListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 510 | PyObject * _resultobj; |
f6bcfd97 BP |
511 | wxColour * _result; |
512 | wxListItemAttr * _arg0; | |
1d99702e | 513 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
514 | char *_kwnames[] = { "self", NULL }; |
515 | char _ptemp[128]; | |
af309447 RD |
516 | |
517 | self = self; | |
f6bcfd97 | 518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetBackgroundColour",_kwnames,&_argo0)) |
af309447 | 519 | return NULL; |
1d99702e RD |
520 | if (_argo0) { |
521 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
522 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetBackgroundColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
524 | return NULL; |
525 | } | |
526 | } | |
cf694132 | 527 | { |
4268f798 | 528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 529 | _result = new wxColour (wxListItemAttr_GetBackgroundColour(_arg0)); |
cf694132 | 530 | |
4268f798 | 531 | wxPyEndAllowThreads(__tstate); |
493f1553 | 532 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
533 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
534 | _resultobj = Py_BuildValue("s",_ptemp); | |
af309447 RD |
535 | return _resultobj; |
536 | } | |
537 | ||
f6bcfd97 BP |
538 | #define wxListItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) |
539 | static PyObject *_wrap_wxListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 540 | PyObject * _resultobj; |
f6bcfd97 BP |
541 | wxFont * _result; |
542 | wxListItemAttr * _arg0; | |
1d99702e | 543 | PyObject * _argo0 = 0; |
efc5f224 | 544 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 545 | char _ptemp[128]; |
8ab979d7 RD |
546 | |
547 | self = self; | |
f6bcfd97 | 548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 549 | return NULL; |
1d99702e RD |
550 | if (_argo0) { |
551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetFont. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
554 | return NULL; |
555 | } | |
556 | } | |
cf694132 | 557 | { |
4268f798 | 558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 559 | _result = new wxFont (wxListItemAttr_GetFont(_arg0)); |
cf694132 | 560 | |
4268f798 | 561 | wxPyEndAllowThreads(__tstate); |
493f1553 | 562 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
563 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
564 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
565 | return _resultobj; |
566 | } | |
567 | ||
9416aa89 RD |
568 | static void *SwigwxListItemTowxObject(void *ptr) { |
569 | wxListItem *src; | |
570 | wxObject *dest; | |
571 | src = (wxListItem *) ptr; | |
572 | dest = (wxObject *) src; | |
573 | return (void *) dest; | |
574 | } | |
575 | ||
f6bcfd97 BP |
576 | #define new_wxListItem() (new wxListItem()) |
577 | static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 578 | PyObject * _resultobj; |
f6bcfd97 BP |
579 | wxListItem * _result; |
580 | char *_kwnames[] = { NULL }; | |
581 | char _ptemp[128]; | |
af309447 RD |
582 | |
583 | self = self; | |
f6bcfd97 | 584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames)) |
af309447 | 585 | return NULL; |
af309447 | 586 | { |
4268f798 | 587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 588 | _result = (wxListItem *)new_wxListItem(); |
cf694132 | 589 | |
4268f798 | 590 | wxPyEndAllowThreads(__tstate); |
493f1553 | 591 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
592 | } if (_result) { |
593 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
594 | _resultobj = Py_BuildValue("s",_ptemp); | |
595 | } else { | |
596 | Py_INCREF(Py_None); | |
597 | _resultobj = Py_None; | |
598 | } | |
af309447 RD |
599 | return _resultobj; |
600 | } | |
601 | ||
f6bcfd97 BP |
602 | #define delete_wxListItem(_swigobj) (delete _swigobj) |
603 | static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 604 | PyObject * _resultobj; |
8ab979d7 | 605 | wxListItem * _arg0; |
1d99702e | 606 | PyObject * _argo0 = 0; |
efc5f224 | 607 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
608 | |
609 | self = self; | |
f6bcfd97 | 610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0)) |
8ab979d7 | 611 | return NULL; |
1d99702e RD |
612 | if (_argo0) { |
613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p."); |
8ab979d7 RD |
616 | return NULL; |
617 | } | |
618 | } | |
8ab979d7 | 619 | { |
4268f798 | 620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 621 | delete_wxListItem(_arg0); |
cf694132 | 622 | |
4268f798 | 623 | wxPyEndAllowThreads(__tstate); |
493f1553 | 624 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
625 | } Py_INCREF(Py_None); |
626 | _resultobj = Py_None; | |
8ab979d7 RD |
627 | return _resultobj; |
628 | } | |
629 | ||
f6bcfd97 BP |
630 | #define wxListItem_Clear(_swigobj) (_swigobj->Clear()) |
631 | static PyObject *_wrap_wxListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 632 | PyObject * _resultobj; |
af309447 | 633 | wxListItem * _arg0; |
1d99702e | 634 | PyObject * _argo0 = 0; |
f6bcfd97 | 635 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
636 | |
637 | self = self; | |
f6bcfd97 | 638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_Clear",_kwnames,&_argo0)) |
af309447 | 639 | return NULL; |
1d99702e RD |
640 | if (_argo0) { |
641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_Clear. Expected _wxListItem_p."); |
af309447 RD |
644 | return NULL; |
645 | } | |
646 | } | |
cf694132 | 647 | { |
4268f798 | 648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 649 | wxListItem_Clear(_arg0); |
cf694132 | 650 | |
4268f798 | 651 | wxPyEndAllowThreads(__tstate); |
493f1553 | 652 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
653 | } Py_INCREF(Py_None); |
654 | _resultobj = Py_None; | |
af309447 RD |
655 | return _resultobj; |
656 | } | |
657 | ||
f6bcfd97 BP |
658 | #define wxListItem_ClearAttributes(_swigobj) (_swigobj->ClearAttributes()) |
659 | static PyObject *_wrap_wxListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 660 | PyObject * _resultobj; |
8ab979d7 | 661 | wxListItem * _arg0; |
1d99702e | 662 | PyObject * _argo0 = 0; |
efc5f224 | 663 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
664 | |
665 | self = self; | |
f6bcfd97 | 666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_ClearAttributes",_kwnames,&_argo0)) |
8ab979d7 | 667 | return NULL; |
1d99702e RD |
668 | if (_argo0) { |
669 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
670 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_ClearAttributes. Expected _wxListItem_p."); |
8ab979d7 RD |
672 | return NULL; |
673 | } | |
674 | } | |
cf694132 | 675 | { |
4268f798 | 676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 677 | wxListItem_ClearAttributes(_arg0); |
cf694132 | 678 | |
4268f798 | 679 | wxPyEndAllowThreads(__tstate); |
493f1553 | 680 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
681 | } Py_INCREF(Py_None); |
682 | _resultobj = Py_None; | |
683 | return _resultobj; | |
684 | } | |
685 | ||
686 | #define wxListItem_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
687 | static PyObject *_wrap_wxListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
688 | PyObject * _resultobj; | |
689 | wxListItem * _arg0; | |
690 | long _arg1; | |
691 | PyObject * _argo0 = 0; | |
692 | char *_kwnames[] = { "self","mask", NULL }; | |
693 | ||
694 | self = self; | |
695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetMask",_kwnames,&_argo0,&_arg1)) | |
696 | return NULL; | |
697 | if (_argo0) { | |
698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetMask. Expected _wxListItem_p."); | |
701 | return NULL; | |
702 | } | |
703 | } | |
704 | { | |
4268f798 | 705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 706 | wxListItem_SetMask(_arg0,_arg1); |
f6bcfd97 | 707 | |
4268f798 | 708 | wxPyEndAllowThreads(__tstate); |
493f1553 | 709 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
710 | } Py_INCREF(Py_None); |
711 | _resultobj = Py_None; | |
712 | return _resultobj; | |
713 | } | |
714 | ||
715 | #define wxListItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
716 | static PyObject *_wrap_wxListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
717 | PyObject * _resultobj; | |
718 | wxListItem * _arg0; | |
719 | long _arg1; | |
720 | PyObject * _argo0 = 0; | |
721 | char *_kwnames[] = { "self","id", NULL }; | |
722 | ||
723 | self = self; | |
724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetId",_kwnames,&_argo0,&_arg1)) | |
725 | return NULL; | |
726 | if (_argo0) { | |
727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetId. Expected _wxListItem_p."); | |
730 | return NULL; | |
731 | } | |
732 | } | |
733 | { | |
4268f798 | 734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 735 | wxListItem_SetId(_arg0,_arg1); |
f6bcfd97 | 736 | |
4268f798 | 737 | wxPyEndAllowThreads(__tstate); |
493f1553 | 738 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
739 | } Py_INCREF(Py_None); |
740 | _resultobj = Py_None; | |
741 | return _resultobj; | |
742 | } | |
743 | ||
744 | #define wxListItem_SetColumn(_swigobj,_swigarg0) (_swigobj->SetColumn(_swigarg0)) | |
745 | static PyObject *_wrap_wxListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
746 | PyObject * _resultobj; | |
747 | wxListItem * _arg0; | |
748 | int _arg1; | |
749 | PyObject * _argo0 = 0; | |
750 | char *_kwnames[] = { "self","col", NULL }; | |
751 | ||
752 | self = self; | |
753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetColumn",_kwnames,&_argo0,&_arg1)) | |
754 | return NULL; | |
755 | if (_argo0) { | |
756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetColumn. Expected _wxListItem_p."); | |
759 | return NULL; | |
760 | } | |
761 | } | |
762 | { | |
4268f798 | 763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 764 | wxListItem_SetColumn(_arg0,_arg1); |
f6bcfd97 | 765 | |
4268f798 | 766 | wxPyEndAllowThreads(__tstate); |
493f1553 | 767 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
768 | } Py_INCREF(Py_None); |
769 | _resultobj = Py_None; | |
770 | return _resultobj; | |
771 | } | |
772 | ||
773 | #define wxListItem_SetState(_swigobj,_swigarg0) (_swigobj->SetState(_swigarg0)) | |
774 | static PyObject *_wrap_wxListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
775 | PyObject * _resultobj; | |
776 | wxListItem * _arg0; | |
777 | long _arg1; | |
778 | PyObject * _argo0 = 0; | |
779 | char *_kwnames[] = { "self","state", NULL }; | |
780 | ||
781 | self = self; | |
782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetState",_kwnames,&_argo0,&_arg1)) | |
783 | return NULL; | |
784 | if (_argo0) { | |
785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetState. Expected _wxListItem_p."); | |
788 | return NULL; | |
789 | } | |
790 | } | |
791 | { | |
4268f798 | 792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 793 | wxListItem_SetState(_arg0,_arg1); |
f6bcfd97 | 794 | |
4268f798 | 795 | wxPyEndAllowThreads(__tstate); |
493f1553 | 796 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
797 | } Py_INCREF(Py_None); |
798 | _resultobj = Py_None; | |
799 | return _resultobj; | |
800 | } | |
801 | ||
802 | #define wxListItem_SetStateMask(_swigobj,_swigarg0) (_swigobj->SetStateMask(_swigarg0)) | |
803 | static PyObject *_wrap_wxListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
804 | PyObject * _resultobj; | |
805 | wxListItem * _arg0; | |
806 | long _arg1; | |
807 | PyObject * _argo0 = 0; | |
808 | char *_kwnames[] = { "self","stateMask", NULL }; | |
809 | ||
810 | self = self; | |
811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetStateMask",_kwnames,&_argo0,&_arg1)) | |
812 | return NULL; | |
813 | if (_argo0) { | |
814 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
815 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
816 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetStateMask. Expected _wxListItem_p."); | |
817 | return NULL; | |
818 | } | |
819 | } | |
820 | { | |
4268f798 | 821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 822 | wxListItem_SetStateMask(_arg0,_arg1); |
f6bcfd97 | 823 | |
4268f798 | 824 | wxPyEndAllowThreads(__tstate); |
493f1553 | 825 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
826 | } Py_INCREF(Py_None); |
827 | _resultobj = Py_None; | |
828 | return _resultobj; | |
829 | } | |
830 | ||
831 | #define wxListItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
832 | static PyObject *_wrap_wxListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
833 | PyObject * _resultobj; | |
834 | wxListItem * _arg0; | |
835 | wxString * _arg1; | |
836 | PyObject * _argo0 = 0; | |
837 | PyObject * _obj1 = 0; | |
838 | char *_kwnames[] = { "self","text", NULL }; | |
839 | ||
840 | self = self; | |
841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetText",_kwnames,&_argo0,&_obj1)) | |
842 | return NULL; | |
843 | if (_argo0) { | |
844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetText. Expected _wxListItem_p."); | |
847 | return NULL; | |
848 | } | |
849 | } | |
850 | { | |
c8bc7bb8 RD |
851 | _arg1 = wxString_in_helper(_obj1); |
852 | if (_arg1 == NULL) | |
f6bcfd97 | 853 | return NULL; |
f6bcfd97 BP |
854 | } |
855 | { | |
4268f798 | 856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 857 | wxListItem_SetText(_arg0,*_arg1); |
f6bcfd97 | 858 | |
4268f798 | 859 | wxPyEndAllowThreads(__tstate); |
493f1553 | 860 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
861 | } Py_INCREF(Py_None); |
862 | _resultobj = Py_None; | |
863 | { | |
864 | if (_obj1) | |
865 | delete _arg1; | |
866 | } | |
867 | return _resultobj; | |
868 | } | |
869 | ||
870 | #define wxListItem_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0)) | |
871 | static PyObject *_wrap_wxListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
872 | PyObject * _resultobj; | |
873 | wxListItem * _arg0; | |
874 | int _arg1; | |
875 | PyObject * _argo0 = 0; | |
876 | char *_kwnames[] = { "self","image", NULL }; | |
877 | ||
878 | self = self; | |
879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetImage",_kwnames,&_argo0,&_arg1)) | |
880 | return NULL; | |
881 | if (_argo0) { | |
882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetImage. Expected _wxListItem_p."); | |
885 | return NULL; | |
886 | } | |
887 | } | |
888 | { | |
4268f798 | 889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 890 | wxListItem_SetImage(_arg0,_arg1); |
f6bcfd97 | 891 | |
4268f798 | 892 | wxPyEndAllowThreads(__tstate); |
493f1553 | 893 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
894 | } Py_INCREF(Py_None); |
895 | _resultobj = Py_None; | |
896 | return _resultobj; | |
897 | } | |
898 | ||
899 | #define wxListItem_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
900 | static PyObject *_wrap_wxListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
901 | PyObject * _resultobj; | |
902 | wxListItem * _arg0; | |
903 | long _arg1; | |
904 | PyObject * _argo0 = 0; | |
905 | char *_kwnames[] = { "self","data", NULL }; | |
906 | ||
907 | self = self; | |
908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetData",_kwnames,&_argo0,&_arg1)) | |
909 | return NULL; | |
910 | if (_argo0) { | |
911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetData. Expected _wxListItem_p."); | |
914 | return NULL; | |
915 | } | |
916 | } | |
917 | { | |
4268f798 | 918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 919 | wxListItem_SetData(_arg0,_arg1); |
f6bcfd97 | 920 | |
4268f798 | 921 | wxPyEndAllowThreads(__tstate); |
493f1553 | 922 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
923 | } Py_INCREF(Py_None); |
924 | _resultobj = Py_None; | |
925 | return _resultobj; | |
926 | } | |
927 | ||
928 | #define wxListItem_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
929 | static PyObject *_wrap_wxListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
930 | PyObject * _resultobj; | |
931 | wxListItem * _arg0; | |
932 | int _arg1; | |
933 | PyObject * _argo0 = 0; | |
934 | char *_kwnames[] = { "self","width", NULL }; | |
935 | ||
936 | self = self; | |
937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetWidth",_kwnames,&_argo0,&_arg1)) | |
938 | return NULL; | |
939 | if (_argo0) { | |
940 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
941 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetWidth. Expected _wxListItem_p."); | |
943 | return NULL; | |
944 | } | |
945 | } | |
946 | { | |
4268f798 | 947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 948 | wxListItem_SetWidth(_arg0,_arg1); |
f6bcfd97 | 949 | |
4268f798 | 950 | wxPyEndAllowThreads(__tstate); |
493f1553 | 951 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
952 | } Py_INCREF(Py_None); |
953 | _resultobj = Py_None; | |
954 | return _resultobj; | |
955 | } | |
956 | ||
957 | #define wxListItem_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0)) | |
958 | static PyObject *_wrap_wxListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
959 | PyObject * _resultobj; | |
960 | wxListItem * _arg0; | |
961 | wxListColumnFormat _arg1; | |
962 | PyObject * _argo0 = 0; | |
963 | char *_kwnames[] = { "self","align", NULL }; | |
964 | ||
965 | self = self; | |
966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetAlign",_kwnames,&_argo0,&_arg1)) | |
967 | return NULL; | |
968 | if (_argo0) { | |
969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetAlign. Expected _wxListItem_p."); | |
972 | return NULL; | |
973 | } | |
974 | } | |
975 | { | |
4268f798 | 976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 977 | wxListItem_SetAlign(_arg0,_arg1); |
f6bcfd97 | 978 | |
4268f798 | 979 | wxPyEndAllowThreads(__tstate); |
493f1553 | 980 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
981 | } Py_INCREF(Py_None); |
982 | _resultobj = Py_None; | |
983 | return _resultobj; | |
984 | } | |
985 | ||
986 | #define wxListItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
987 | static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
988 | PyObject * _resultobj; | |
989 | wxListItem * _arg0; | |
990 | wxColour * _arg1; | |
991 | PyObject * _argo0 = 0; | |
992 | wxColour temp; | |
993 | PyObject * _obj1 = 0; | |
994 | char *_kwnames[] = { "self","colText", NULL }; | |
995 | ||
996 | self = self; | |
997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
998 | return NULL; | |
999 | if (_argo0) { | |
1000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetTextColour. Expected _wxListItem_p."); | |
1003 | return NULL; | |
1004 | } | |
1005 | } | |
1006 | { | |
1007 | _arg1 = &temp; | |
1008 | if (! wxColour_helper(_obj1, &_arg1)) | |
1009 | return NULL; | |
1010 | } | |
1011 | { | |
4268f798 | 1012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1013 | wxListItem_SetTextColour(_arg0,*_arg1); |
f6bcfd97 | 1014 | |
4268f798 | 1015 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1016 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1017 | } Py_INCREF(Py_None); |
1018 | _resultobj = Py_None; | |
1019 | return _resultobj; | |
1020 | } | |
1021 | ||
1022 | #define wxListItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
1023 | static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1024 | PyObject * _resultobj; | |
1025 | wxListItem * _arg0; | |
1026 | wxColour * _arg1; | |
1027 | PyObject * _argo0 = 0; | |
1028 | wxColour temp; | |
1029 | PyObject * _obj1 = 0; | |
1030 | char *_kwnames[] = { "self","colBack", NULL }; | |
1031 | ||
1032 | self = self; | |
1033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
1034 | return NULL; | |
1035 | if (_argo0) { | |
1036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetBackgroundColour. Expected _wxListItem_p."); | |
1039 | return NULL; | |
1040 | } | |
1041 | } | |
1042 | { | |
1043 | _arg1 = &temp; | |
1044 | if (! wxColour_helper(_obj1, &_arg1)) | |
1045 | return NULL; | |
1046 | } | |
1047 | { | |
4268f798 | 1048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1049 | wxListItem_SetBackgroundColour(_arg0,*_arg1); |
f6bcfd97 | 1050 | |
4268f798 | 1051 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1052 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1053 | } Py_INCREF(Py_None); |
1054 | _resultobj = Py_None; | |
1055 | return _resultobj; | |
1056 | } | |
1057 | ||
1058 | #define wxListItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1059 | static PyObject *_wrap_wxListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1060 | PyObject * _resultobj; | |
1061 | wxListItem * _arg0; | |
1062 | wxFont * _arg1; | |
1063 | PyObject * _argo0 = 0; | |
1064 | PyObject * _argo1 = 0; | |
1065 | char *_kwnames[] = { "self","font", NULL }; | |
1066 | ||
1067 | self = self; | |
1068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
1069 | return NULL; | |
1070 | if (_argo0) { | |
1071 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1072 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetFont. Expected _wxListItem_p."); | |
1074 | return NULL; | |
1075 | } | |
1076 | } | |
1077 | if (_argo1) { | |
1078 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1079 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
1080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetFont. Expected _wxFont_p."); | |
1081 | return NULL; | |
1082 | } | |
1083 | } | |
1084 | { | |
4268f798 | 1085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1086 | wxListItem_SetFont(_arg0,*_arg1); |
f6bcfd97 | 1087 | |
4268f798 | 1088 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1089 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1090 | } Py_INCREF(Py_None); |
1091 | _resultobj = Py_None; | |
1092 | return _resultobj; | |
1093 | } | |
1094 | ||
1095 | #define wxListItem_GetMask(_swigobj) (_swigobj->GetMask()) | |
1096 | static PyObject *_wrap_wxListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1097 | PyObject * _resultobj; | |
1098 | long _result; | |
1099 | wxListItem * _arg0; | |
1100 | PyObject * _argo0 = 0; | |
1101 | char *_kwnames[] = { "self", NULL }; | |
1102 | ||
1103 | self = self; | |
1104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetMask",_kwnames,&_argo0)) | |
1105 | return NULL; | |
1106 | if (_argo0) { | |
1107 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1108 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetMask. Expected _wxListItem_p."); | |
1110 | return NULL; | |
1111 | } | |
1112 | } | |
1113 | { | |
4268f798 | 1114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1115 | _result = (long )wxListItem_GetMask(_arg0); |
f6bcfd97 | 1116 | |
4268f798 | 1117 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1118 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1119 | } _resultobj = Py_BuildValue("l",_result); |
1120 | return _resultobj; | |
1121 | } | |
1122 | ||
1123 | #define wxListItem_GetId(_swigobj) (_swigobj->GetId()) | |
1124 | static PyObject *_wrap_wxListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1125 | PyObject * _resultobj; | |
1126 | long _result; | |
1127 | wxListItem * _arg0; | |
1128 | PyObject * _argo0 = 0; | |
1129 | char *_kwnames[] = { "self", NULL }; | |
1130 | ||
1131 | self = self; | |
1132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetId",_kwnames,&_argo0)) | |
1133 | return NULL; | |
1134 | if (_argo0) { | |
1135 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1136 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetId. Expected _wxListItem_p."); | |
1138 | return NULL; | |
1139 | } | |
1140 | } | |
1141 | { | |
4268f798 | 1142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1143 | _result = (long )wxListItem_GetId(_arg0); |
f6bcfd97 | 1144 | |
4268f798 | 1145 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1146 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1147 | } _resultobj = Py_BuildValue("l",_result); |
1148 | return _resultobj; | |
1149 | } | |
1150 | ||
1151 | #define wxListItem_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
1152 | static PyObject *_wrap_wxListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1153 | PyObject * _resultobj; | |
1154 | int _result; | |
1155 | wxListItem * _arg0; | |
1156 | PyObject * _argo0 = 0; | |
1157 | char *_kwnames[] = { "self", NULL }; | |
1158 | ||
1159 | self = self; | |
1160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetColumn",_kwnames,&_argo0)) | |
1161 | return NULL; | |
1162 | if (_argo0) { | |
1163 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1164 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetColumn. Expected _wxListItem_p."); | |
1166 | return NULL; | |
1167 | } | |
1168 | } | |
1169 | { | |
4268f798 | 1170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1171 | _result = (int )wxListItem_GetColumn(_arg0); |
f6bcfd97 | 1172 | |
4268f798 | 1173 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1174 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1175 | } _resultobj = Py_BuildValue("i",_result); |
1176 | return _resultobj; | |
1177 | } | |
1178 | ||
1179 | #define wxListItem_GetState(_swigobj) (_swigobj->GetState()) | |
1180 | static PyObject *_wrap_wxListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1181 | PyObject * _resultobj; | |
1182 | long _result; | |
1183 | wxListItem * _arg0; | |
1184 | PyObject * _argo0 = 0; | |
1185 | char *_kwnames[] = { "self", NULL }; | |
1186 | ||
1187 | self = self; | |
1188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetState",_kwnames,&_argo0)) | |
1189 | return NULL; | |
1190 | if (_argo0) { | |
1191 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1192 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetState. Expected _wxListItem_p."); | |
1194 | return NULL; | |
1195 | } | |
1196 | } | |
1197 | { | |
4268f798 | 1198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1199 | _result = (long )wxListItem_GetState(_arg0); |
f6bcfd97 | 1200 | |
4268f798 | 1201 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1202 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1203 | } _resultobj = Py_BuildValue("l",_result); |
1204 | return _resultobj; | |
1205 | } | |
1206 | ||
1207 | #define wxListItem_GetText(_swigobj) (_swigobj->GetText()) | |
1208 | static PyObject *_wrap_wxListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1209 | PyObject * _resultobj; | |
1210 | wxString * _result; | |
1211 | wxListItem * _arg0; | |
1212 | PyObject * _argo0 = 0; | |
1213 | char *_kwnames[] = { "self", NULL }; | |
1214 | ||
1215 | self = self; | |
1216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetText",_kwnames,&_argo0)) | |
1217 | return NULL; | |
1218 | if (_argo0) { | |
1219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetText. Expected _wxListItem_p."); | |
1222 | return NULL; | |
1223 | } | |
1224 | } | |
1225 | { | |
4268f798 | 1226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1227 | const wxString & _result_ref = wxListItem_GetText(_arg0); |
f6bcfd97 BP |
1228 | _result = (wxString *) &_result_ref; |
1229 | ||
4268f798 | 1230 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1231 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1232 | }{ |
c8bc7bb8 RD |
1233 | #if wxUSE_UNICODE |
1234 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1235 | #else | |
f6bcfd97 | 1236 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1237 | #endif |
f6bcfd97 BP |
1238 | } |
1239 | return _resultobj; | |
1240 | } | |
1241 | ||
1242 | #define wxListItem_GetImage(_swigobj) (_swigobj->GetImage()) | |
1243 | static PyObject *_wrap_wxListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1244 | PyObject * _resultobj; | |
1245 | int _result; | |
1246 | wxListItem * _arg0; | |
1247 | PyObject * _argo0 = 0; | |
1248 | char *_kwnames[] = { "self", NULL }; | |
1249 | ||
1250 | self = self; | |
1251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetImage",_kwnames,&_argo0)) | |
1252 | return NULL; | |
1253 | if (_argo0) { | |
1254 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1255 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetImage. Expected _wxListItem_p."); | |
1257 | return NULL; | |
1258 | } | |
1259 | } | |
1260 | { | |
4268f798 | 1261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1262 | _result = (int )wxListItem_GetImage(_arg0); |
f6bcfd97 | 1263 | |
4268f798 | 1264 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1265 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1266 | } _resultobj = Py_BuildValue("i",_result); |
1267 | return _resultobj; | |
1268 | } | |
1269 | ||
1270 | #define wxListItem_GetData(_swigobj) (_swigobj->GetData()) | |
1271 | static PyObject *_wrap_wxListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1272 | PyObject * _resultobj; | |
1273 | long _result; | |
1274 | wxListItem * _arg0; | |
1275 | PyObject * _argo0 = 0; | |
1276 | char *_kwnames[] = { "self", NULL }; | |
1277 | ||
1278 | self = self; | |
1279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetData",_kwnames,&_argo0)) | |
1280 | return NULL; | |
1281 | if (_argo0) { | |
1282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetData. Expected _wxListItem_p."); | |
1285 | return NULL; | |
1286 | } | |
1287 | } | |
1288 | { | |
4268f798 | 1289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1290 | _result = (long )wxListItem_GetData(_arg0); |
f6bcfd97 | 1291 | |
4268f798 | 1292 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1293 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1294 | } _resultobj = Py_BuildValue("l",_result); |
1295 | return _resultobj; | |
1296 | } | |
1297 | ||
1298 | #define wxListItem_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1299 | static PyObject *_wrap_wxListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1300 | PyObject * _resultobj; | |
1301 | int _result; | |
1302 | wxListItem * _arg0; | |
1303 | PyObject * _argo0 = 0; | |
1304 | char *_kwnames[] = { "self", NULL }; | |
1305 | ||
1306 | self = self; | |
1307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetWidth",_kwnames,&_argo0)) | |
1308 | return NULL; | |
1309 | if (_argo0) { | |
1310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetWidth. Expected _wxListItem_p."); | |
1313 | return NULL; | |
1314 | } | |
1315 | } | |
1316 | { | |
4268f798 | 1317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1318 | _result = (int )wxListItem_GetWidth(_arg0); |
f6bcfd97 | 1319 | |
4268f798 | 1320 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1321 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1322 | } _resultobj = Py_BuildValue("i",_result); |
1323 | return _resultobj; | |
1324 | } | |
1325 | ||
1326 | #define wxListItem_GetAlign(_swigobj) (_swigobj->GetAlign()) | |
1327 | static PyObject *_wrap_wxListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1328 | PyObject * _resultobj; | |
1329 | wxListColumnFormat _result; | |
1330 | wxListItem * _arg0; | |
1331 | PyObject * _argo0 = 0; | |
1332 | char *_kwnames[] = { "self", NULL }; | |
1333 | ||
1334 | self = self; | |
1335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAlign",_kwnames,&_argo0)) | |
1336 | return NULL; | |
1337 | if (_argo0) { | |
1338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAlign. Expected _wxListItem_p."); | |
1341 | return NULL; | |
1342 | } | |
1343 | } | |
1344 | { | |
4268f798 | 1345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1346 | _result = (wxListColumnFormat )wxListItem_GetAlign(_arg0); |
f6bcfd97 | 1347 | |
4268f798 | 1348 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1349 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1350 | } _resultobj = Py_BuildValue("i",_result); |
1351 | return _resultobj; | |
1352 | } | |
1353 | ||
1354 | #define wxListItem_GetAttributes(_swigobj) (_swigobj->GetAttributes()) | |
1355 | static PyObject *_wrap_wxListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1356 | PyObject * _resultobj; | |
1357 | wxListItemAttr * _result; | |
1358 | wxListItem * _arg0; | |
1359 | PyObject * _argo0 = 0; | |
1360 | char *_kwnames[] = { "self", NULL }; | |
1361 | char _ptemp[128]; | |
1362 | ||
1363 | self = self; | |
1364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAttributes",_kwnames,&_argo0)) | |
1365 | return NULL; | |
1366 | if (_argo0) { | |
1367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAttributes. Expected _wxListItem_p."); | |
1370 | return NULL; | |
1371 | } | |
1372 | } | |
1373 | { | |
4268f798 | 1374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1375 | _result = (wxListItemAttr *)wxListItem_GetAttributes(_arg0); |
f6bcfd97 | 1376 | |
4268f798 | 1377 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1378 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1379 | } if (_result) { |
1380 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
1381 | _resultobj = Py_BuildValue("s",_ptemp); | |
1382 | } else { | |
1383 | Py_INCREF(Py_None); | |
1384 | _resultobj = Py_None; | |
1385 | } | |
1386 | return _resultobj; | |
1387 | } | |
1388 | ||
1389 | #define wxListItem_HasAttributes(_swigobj) (_swigobj->HasAttributes()) | |
1390 | static PyObject *_wrap_wxListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1391 | PyObject * _resultobj; | |
1392 | bool _result; | |
1393 | wxListItem * _arg0; | |
1394 | PyObject * _argo0 = 0; | |
1395 | char *_kwnames[] = { "self", NULL }; | |
1396 | ||
1397 | self = self; | |
1398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_HasAttributes",_kwnames,&_argo0)) | |
1399 | return NULL; | |
1400 | if (_argo0) { | |
1401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_HasAttributes. Expected _wxListItem_p."); | |
1404 | return NULL; | |
1405 | } | |
1406 | } | |
1407 | { | |
4268f798 | 1408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1409 | _result = (bool )wxListItem_HasAttributes(_arg0); |
f6bcfd97 | 1410 | |
4268f798 | 1411 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1412 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1413 | } _resultobj = Py_BuildValue("i",_result); |
1414 | return _resultobj; | |
1415 | } | |
1416 | ||
1417 | #define wxListItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
1418 | static PyObject *_wrap_wxListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1419 | PyObject * _resultobj; | |
1420 | wxColour * _result; | |
1421 | wxListItem * _arg0; | |
1422 | PyObject * _argo0 = 0; | |
1423 | char *_kwnames[] = { "self", NULL }; | |
1424 | char _ptemp[128]; | |
1425 | ||
1426 | self = self; | |
1427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetTextColour",_kwnames,&_argo0)) | |
1428 | return NULL; | |
1429 | if (_argo0) { | |
1430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetTextColour. Expected _wxListItem_p."); | |
1433 | return NULL; | |
1434 | } | |
1435 | } | |
1436 | { | |
4268f798 | 1437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1438 | _result = new wxColour (wxListItem_GetTextColour(_arg0)); |
f6bcfd97 | 1439 | |
4268f798 | 1440 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1441 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1442 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1443 | _resultobj = Py_BuildValue("s",_ptemp); | |
1444 | return _resultobj; | |
1445 | } | |
1446 | ||
1447 | #define wxListItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1448 | static PyObject *_wrap_wxListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1449 | PyObject * _resultobj; | |
1450 | wxColour * _result; | |
1451 | wxListItem * _arg0; | |
1452 | PyObject * _argo0 = 0; | |
1453 | char *_kwnames[] = { "self", NULL }; | |
1454 | char _ptemp[128]; | |
1455 | ||
1456 | self = self; | |
1457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetBackgroundColour",_kwnames,&_argo0)) | |
1458 | return NULL; | |
1459 | if (_argo0) { | |
1460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetBackgroundColour. Expected _wxListItem_p."); | |
1463 | return NULL; | |
1464 | } | |
1465 | } | |
1466 | { | |
4268f798 | 1467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1468 | _result = new wxColour (wxListItem_GetBackgroundColour(_arg0)); |
f6bcfd97 | 1469 | |
4268f798 | 1470 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1471 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1472 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1473 | _resultobj = Py_BuildValue("s",_ptemp); | |
1474 | return _resultobj; | |
1475 | } | |
1476 | ||
1477 | #define wxListItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
1478 | static PyObject *_wrap_wxListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1479 | PyObject * _resultobj; | |
1480 | wxFont * _result; | |
1481 | wxListItem * _arg0; | |
1482 | PyObject * _argo0 = 0; | |
1483 | char *_kwnames[] = { "self", NULL }; | |
1484 | char _ptemp[128]; | |
1485 | ||
1486 | self = self; | |
1487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetFont",_kwnames,&_argo0)) | |
1488 | return NULL; | |
1489 | if (_argo0) { | |
1490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetFont. Expected _wxListItem_p."); | |
1493 | return NULL; | |
1494 | } | |
1495 | } | |
1496 | { | |
4268f798 | 1497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1498 | _result = new wxFont (wxListItem_GetFont(_arg0)); |
f6bcfd97 | 1499 | |
4268f798 | 1500 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1501 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1502 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
1503 | _resultobj = Py_BuildValue("s",_ptemp); | |
1504 | return _resultobj; | |
1505 | } | |
1506 | ||
1507 | #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval) | |
1508 | static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1509 | PyObject * _resultobj; | |
1510 | long _result; | |
1511 | wxListItem * _arg0; | |
1512 | long _arg1; | |
1513 | PyObject * _argo0 = 0; | |
1514 | char *_kwnames[] = { "self","m_mask", NULL }; | |
1515 | ||
1516 | self = self; | |
1517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1)) | |
1518 | return NULL; | |
1519 | if (_argo0) { | |
1520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p."); | |
1523 | return NULL; | |
1524 | } | |
1525 | } | |
1526 | { | |
4268f798 | 1527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1528 | _result = (long )wxListItem_m_mask_set(_arg0,_arg1); |
f6bcfd97 | 1529 | |
4268f798 | 1530 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1531 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1532 | } _resultobj = Py_BuildValue("l",_result); |
1533 | return _resultobj; | |
1534 | } | |
1535 | ||
1536 | #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask) | |
1537 | static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1538 | PyObject * _resultobj; | |
1539 | long _result; | |
1540 | wxListItem * _arg0; | |
1541 | PyObject * _argo0 = 0; | |
1542 | char *_kwnames[] = { "self", NULL }; | |
1543 | ||
1544 | self = self; | |
1545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0)) | |
1546 | return NULL; | |
1547 | if (_argo0) { | |
1548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p."); | |
1551 | return NULL; | |
1552 | } | |
1553 | } | |
1554 | { | |
4268f798 | 1555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1556 | _result = (long )wxListItem_m_mask_get(_arg0); |
f6bcfd97 | 1557 | |
4268f798 | 1558 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1559 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1560 | } _resultobj = Py_BuildValue("l",_result); |
1561 | return _resultobj; | |
1562 | } | |
1563 | ||
1564 | #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval) | |
1565 | static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1566 | PyObject * _resultobj; | |
1567 | long _result; | |
1568 | wxListItem * _arg0; | |
1569 | long _arg1; | |
1570 | PyObject * _argo0 = 0; | |
1571 | char *_kwnames[] = { "self","m_itemId", NULL }; | |
1572 | ||
1573 | self = self; | |
1574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1)) | |
1575 | return NULL; | |
1576 | if (_argo0) { | |
1577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p."); | |
1580 | return NULL; | |
1581 | } | |
1582 | } | |
1583 | { | |
4268f798 | 1584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1585 | _result = (long )wxListItem_m_itemId_set(_arg0,_arg1); |
f6bcfd97 | 1586 | |
4268f798 | 1587 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1588 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1589 | } _resultobj = Py_BuildValue("l",_result); |
1590 | return _resultobj; | |
1591 | } | |
1592 | ||
1593 | #define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId) | |
1594 | static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1595 | PyObject * _resultobj; | |
1596 | long _result; | |
1597 | wxListItem * _arg0; | |
1598 | PyObject * _argo0 = 0; | |
1599 | char *_kwnames[] = { "self", NULL }; | |
1600 | ||
1601 | self = self; | |
1602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0)) | |
1603 | return NULL; | |
1604 | if (_argo0) { | |
1605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p."); | |
1608 | return NULL; | |
1609 | } | |
1610 | } | |
1611 | { | |
4268f798 | 1612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1613 | _result = (long )wxListItem_m_itemId_get(_arg0); |
f6bcfd97 | 1614 | |
4268f798 | 1615 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1616 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1617 | } _resultobj = Py_BuildValue("l",_result); |
1618 | return _resultobj; | |
1619 | } | |
1620 | ||
1621 | #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
1622 | static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1623 | PyObject * _resultobj; | |
1624 | int _result; | |
1625 | wxListItem * _arg0; | |
1626 | int _arg1; | |
1627 | PyObject * _argo0 = 0; | |
1628 | char *_kwnames[] = { "self","m_col", NULL }; | |
1629 | ||
1630 | self = self; | |
1631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1)) | |
1632 | return NULL; | |
1633 | if (_argo0) { | |
1634 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1635 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p."); | |
1637 | return NULL; | |
1638 | } | |
1639 | } | |
1640 | { | |
4268f798 | 1641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1642 | _result = (int )wxListItem_m_col_set(_arg0,_arg1); |
f6bcfd97 | 1643 | |
4268f798 | 1644 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1645 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1646 | } _resultobj = Py_BuildValue("i",_result); |
1647 | return _resultobj; | |
1648 | } | |
1649 | ||
1650 | #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
1651 | static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1652 | PyObject * _resultobj; | |
1653 | int _result; | |
1654 | wxListItem * _arg0; | |
1655 | PyObject * _argo0 = 0; | |
1656 | char *_kwnames[] = { "self", NULL }; | |
1657 | ||
1658 | self = self; | |
1659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0)) | |
1660 | return NULL; | |
1661 | if (_argo0) { | |
1662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p."); | |
1665 | return NULL; | |
1666 | } | |
1667 | } | |
1668 | { | |
4268f798 | 1669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1670 | _result = (int )wxListItem_m_col_get(_arg0); |
f6bcfd97 | 1671 | |
4268f798 | 1672 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1673 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1674 | } _resultobj = Py_BuildValue("i",_result); |
1675 | return _resultobj; | |
1676 | } | |
1677 | ||
1678 | #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval) | |
1679 | static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1680 | PyObject * _resultobj; | |
1681 | long _result; | |
1682 | wxListItem * _arg0; | |
1683 | long _arg1; | |
1684 | PyObject * _argo0 = 0; | |
1685 | char *_kwnames[] = { "self","m_state", NULL }; | |
1686 | ||
1687 | self = self; | |
1688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1)) | |
1689 | return NULL; | |
1690 | if (_argo0) { | |
1691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p."); | |
1694 | return NULL; | |
1695 | } | |
1696 | } | |
1697 | { | |
4268f798 | 1698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1699 | _result = (long )wxListItem_m_state_set(_arg0,_arg1); |
f6bcfd97 | 1700 | |
4268f798 | 1701 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1702 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1703 | } _resultobj = Py_BuildValue("l",_result); |
1704 | return _resultobj; | |
1705 | } | |
1706 | ||
1707 | #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state) | |
1708 | static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1709 | PyObject * _resultobj; | |
1710 | long _result; | |
1711 | wxListItem * _arg0; | |
1712 | PyObject * _argo0 = 0; | |
1713 | char *_kwnames[] = { "self", NULL }; | |
1714 | ||
1715 | self = self; | |
1716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0)) | |
1717 | return NULL; | |
1718 | if (_argo0) { | |
1719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p."); | |
1722 | return NULL; | |
1723 | } | |
1724 | } | |
1725 | { | |
4268f798 | 1726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1727 | _result = (long )wxListItem_m_state_get(_arg0); |
f6bcfd97 | 1728 | |
4268f798 | 1729 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1730 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1731 | } _resultobj = Py_BuildValue("l",_result); |
1732 | return _resultobj; | |
1733 | } | |
1734 | ||
1735 | #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval) | |
1736 | static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1737 | PyObject * _resultobj; | |
1738 | long _result; | |
1739 | wxListItem * _arg0; | |
1740 | long _arg1; | |
1741 | PyObject * _argo0 = 0; | |
1742 | char *_kwnames[] = { "self","m_stateMask", NULL }; | |
1743 | ||
1744 | self = self; | |
1745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1)) | |
1746 | return NULL; | |
1747 | if (_argo0) { | |
1748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p."); | |
1751 | return NULL; | |
1752 | } | |
1753 | } | |
1754 | { | |
4268f798 | 1755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1756 | _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1); |
f6bcfd97 | 1757 | |
4268f798 | 1758 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1759 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1760 | } _resultobj = Py_BuildValue("l",_result); |
1761 | return _resultobj; | |
1762 | } | |
1763 | ||
1764 | #define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask) | |
1765 | static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1766 | PyObject * _resultobj; | |
1767 | long _result; | |
1768 | wxListItem * _arg0; | |
1769 | PyObject * _argo0 = 0; | |
1770 | char *_kwnames[] = { "self", NULL }; | |
1771 | ||
1772 | self = self; | |
1773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0)) | |
1774 | return NULL; | |
1775 | if (_argo0) { | |
1776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p."); | |
1779 | return NULL; | |
1780 | } | |
1781 | } | |
1782 | { | |
4268f798 | 1783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1784 | _result = (long )wxListItem_m_stateMask_get(_arg0); |
f6bcfd97 | 1785 | |
4268f798 | 1786 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1787 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1788 | } _resultobj = Py_BuildValue("l",_result); |
1789 | return _resultobj; | |
1790 | } | |
1791 | ||
1792 | #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval) | |
1793 | static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1794 | PyObject * _resultobj; | |
1795 | wxString * _result; | |
1796 | wxListItem * _arg0; | |
1797 | wxString * _arg1; | |
1798 | PyObject * _argo0 = 0; | |
1799 | PyObject * _obj1 = 0; | |
1800 | char *_kwnames[] = { "self","m_text", NULL }; | |
1801 | ||
1802 | self = self; | |
1803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1)) | |
1804 | return NULL; | |
1805 | if (_argo0) { | |
1806 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1807 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p."); | |
1809 | return NULL; | |
1810 | } | |
1811 | } | |
1812 | { | |
c8bc7bb8 RD |
1813 | _arg1 = wxString_in_helper(_obj1); |
1814 | if (_arg1 == NULL) | |
f6bcfd97 | 1815 | return NULL; |
f6bcfd97 BP |
1816 | } |
1817 | { | |
4268f798 | 1818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1819 | _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1); |
f6bcfd97 | 1820 | |
4268f798 | 1821 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1822 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1823 | }{ |
c8bc7bb8 RD |
1824 | #if wxUSE_UNICODE |
1825 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1826 | #else | |
f6bcfd97 | 1827 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1828 | #endif |
f6bcfd97 BP |
1829 | } |
1830 | { | |
1831 | if (_obj1) | |
1832 | delete _arg1; | |
1833 | } | |
1834 | return _resultobj; | |
1835 | } | |
1836 | ||
1837 | #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text) | |
1838 | static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1839 | PyObject * _resultobj; | |
1840 | wxString * _result; | |
1841 | wxListItem * _arg0; | |
1842 | PyObject * _argo0 = 0; | |
1843 | char *_kwnames[] = { "self", NULL }; | |
1844 | ||
1845 | self = self; | |
1846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0)) | |
1847 | return NULL; | |
1848 | if (_argo0) { | |
1849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p."); | |
1852 | return NULL; | |
1853 | } | |
1854 | } | |
1855 | { | |
4268f798 | 1856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1857 | _result = (wxString *)wxListItem_m_text_get(_arg0); |
f6bcfd97 | 1858 | |
4268f798 | 1859 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1860 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1861 | }{ |
c8bc7bb8 RD |
1862 | #if wxUSE_UNICODE |
1863 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1864 | #else | |
f6bcfd97 | 1865 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1866 | #endif |
f6bcfd97 BP |
1867 | } |
1868 | return _resultobj; | |
1869 | } | |
1870 | ||
1871 | #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval) | |
1872 | static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1873 | PyObject * _resultobj; | |
1874 | int _result; | |
1875 | wxListItem * _arg0; | |
1876 | int _arg1; | |
1877 | PyObject * _argo0 = 0; | |
1878 | char *_kwnames[] = { "self","m_image", NULL }; | |
1879 | ||
1880 | self = self; | |
1881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1)) | |
1882 | return NULL; | |
1883 | if (_argo0) { | |
1884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p."); | |
1887 | return NULL; | |
1888 | } | |
1889 | } | |
1890 | { | |
4268f798 | 1891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1892 | _result = (int )wxListItem_m_image_set(_arg0,_arg1); |
f6bcfd97 | 1893 | |
4268f798 | 1894 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1895 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1896 | } _resultobj = Py_BuildValue("i",_result); |
1897 | return _resultobj; | |
1898 | } | |
1899 | ||
1900 | #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image) | |
1901 | static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1902 | PyObject * _resultobj; | |
1903 | int _result; | |
1904 | wxListItem * _arg0; | |
1905 | PyObject * _argo0 = 0; | |
1906 | char *_kwnames[] = { "self", NULL }; | |
1907 | ||
1908 | self = self; | |
1909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0)) | |
1910 | return NULL; | |
1911 | if (_argo0) { | |
1912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p."); | |
1915 | return NULL; | |
1916 | } | |
1917 | } | |
1918 | { | |
4268f798 | 1919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1920 | _result = (int )wxListItem_m_image_get(_arg0); |
f6bcfd97 | 1921 | |
4268f798 | 1922 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1923 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1924 | } _resultobj = Py_BuildValue("i",_result); |
1925 | return _resultobj; | |
1926 | } | |
1927 | ||
1928 | #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval) | |
1929 | static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1930 | PyObject * _resultobj; | |
1931 | long _result; | |
1932 | wxListItem * _arg0; | |
1933 | long _arg1; | |
1934 | PyObject * _argo0 = 0; | |
1935 | char *_kwnames[] = { "self","m_data", NULL }; | |
1936 | ||
1937 | self = self; | |
1938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1)) | |
1939 | return NULL; | |
1940 | if (_argo0) { | |
1941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p."); | |
1944 | return NULL; | |
1945 | } | |
1946 | } | |
1947 | { | |
4268f798 | 1948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1949 | _result = (long )wxListItem_m_data_set(_arg0,_arg1); |
f6bcfd97 | 1950 | |
4268f798 | 1951 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1952 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1953 | } _resultobj = Py_BuildValue("l",_result); |
1954 | return _resultobj; | |
1955 | } | |
1956 | ||
1957 | #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data) | |
1958 | static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1959 | PyObject * _resultobj; | |
1960 | long _result; | |
1961 | wxListItem * _arg0; | |
1962 | PyObject * _argo0 = 0; | |
1963 | char *_kwnames[] = { "self", NULL }; | |
1964 | ||
1965 | self = self; | |
1966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0)) | |
1967 | return NULL; | |
1968 | if (_argo0) { | |
1969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p."); | |
1972 | return NULL; | |
1973 | } | |
1974 | } | |
1975 | { | |
4268f798 | 1976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1977 | _result = (long )wxListItem_m_data_get(_arg0); |
f6bcfd97 | 1978 | |
4268f798 | 1979 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1980 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1981 | } _resultobj = Py_BuildValue("l",_result); |
1982 | return _resultobj; | |
1983 | } | |
1984 | ||
1985 | #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval) | |
1986 | static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1987 | PyObject * _resultobj; | |
1988 | int _result; | |
1989 | wxListItem * _arg0; | |
1990 | int _arg1; | |
1991 | PyObject * _argo0 = 0; | |
1992 | char *_kwnames[] = { "self","m_format", NULL }; | |
1993 | ||
1994 | self = self; | |
1995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1)) | |
1996 | return NULL; | |
1997 | if (_argo0) { | |
1998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
2000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p."); | |
2001 | return NULL; | |
2002 | } | |
2003 | } | |
2004 | { | |
4268f798 | 2005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2006 | _result = (int )wxListItem_m_format_set(_arg0,_arg1); |
f6bcfd97 | 2007 | |
4268f798 | 2008 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2009 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2010 | } _resultobj = Py_BuildValue("i",_result); |
2011 | return _resultobj; | |
2012 | } | |
2013 | ||
2014 | #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format) | |
2015 | static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2016 | PyObject * _resultobj; | |
2017 | int _result; | |
2018 | wxListItem * _arg0; | |
2019 | PyObject * _argo0 = 0; | |
2020 | char *_kwnames[] = { "self", NULL }; | |
2021 | ||
2022 | self = self; | |
2023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0)) | |
2024 | return NULL; | |
2025 | if (_argo0) { | |
2026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
2028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p."); | |
2029 | return NULL; | |
2030 | } | |
2031 | } | |
2032 | { | |
4268f798 | 2033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2034 | _result = (int )wxListItem_m_format_get(_arg0); |
f6bcfd97 | 2035 | |
4268f798 | 2036 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2037 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2038 | } _resultobj = Py_BuildValue("i",_result); |
2039 | return _resultobj; | |
8ab979d7 RD |
2040 | } |
2041 | ||
f6bcfd97 BP |
2042 | #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval) |
2043 | static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2044 | PyObject * _resultobj; |
f6bcfd97 | 2045 | int _result; |
af309447 | 2046 | wxListItem * _arg0; |
f6bcfd97 | 2047 | int _arg1; |
1d99702e | 2048 | PyObject * _argo0 = 0; |
f6bcfd97 | 2049 | char *_kwnames[] = { "self","m_width", NULL }; |
af309447 RD |
2050 | |
2051 | self = self; | |
f6bcfd97 | 2052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2053 | return NULL; |
1d99702e RD |
2054 | if (_argo0) { |
2055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p."); |
af309447 RD |
2058 | return NULL; |
2059 | } | |
2060 | } | |
cf694132 | 2061 | { |
4268f798 | 2062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2063 | _result = (int )wxListItem_m_width_set(_arg0,_arg1); |
cf694132 | 2064 | |
4268f798 | 2065 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2066 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2067 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2068 | return _resultobj; |
2069 | } | |
2070 | ||
f6bcfd97 BP |
2071 | #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width) |
2072 | static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2073 | PyObject * _resultobj; |
f6bcfd97 | 2074 | int _result; |
8ab979d7 | 2075 | wxListItem * _arg0; |
1d99702e | 2076 | PyObject * _argo0 = 0; |
efc5f224 | 2077 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2078 | |
2079 | self = self; | |
f6bcfd97 | 2080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0)) |
8ab979d7 | 2081 | return NULL; |
1d99702e RD |
2082 | if (_argo0) { |
2083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 BP |
2085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p."); |
2086 | return NULL; | |
2087 | } | |
2088 | } | |
2089 | { | |
4268f798 | 2090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2091 | _result = (int )wxListItem_m_width_get(_arg0); |
f6bcfd97 | 2092 | |
4268f798 | 2093 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2094 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2095 | } _resultobj = Py_BuildValue("i",_result); |
2096 | return _resultobj; | |
2097 | } | |
2098 | ||
c368d904 RD |
2099 | static void *SwigwxListEventTowxNotifyEvent(void *ptr) { |
2100 | wxListEvent *src; | |
2101 | wxNotifyEvent *dest; | |
2102 | src = (wxListEvent *) ptr; | |
2103 | dest = (wxNotifyEvent *) src; | |
2104 | return (void *) dest; | |
2105 | } | |
2106 | ||
f6bcfd97 BP |
2107 | static void *SwigwxListEventTowxCommandEvent(void *ptr) { |
2108 | wxListEvent *src; | |
2109 | wxCommandEvent *dest; | |
2110 | src = (wxListEvent *) ptr; | |
2111 | dest = (wxCommandEvent *) src; | |
2112 | return (void *) dest; | |
2113 | } | |
2114 | ||
2115 | static void *SwigwxListEventTowxEvent(void *ptr) { | |
2116 | wxListEvent *src; | |
2117 | wxEvent *dest; | |
2118 | src = (wxListEvent *) ptr; | |
2119 | dest = (wxEvent *) src; | |
2120 | return (void *) dest; | |
2121 | } | |
2122 | ||
9416aa89 RD |
2123 | static void *SwigwxListEventTowxObject(void *ptr) { |
2124 | wxListEvent *src; | |
2125 | wxObject *dest; | |
2126 | src = (wxListEvent *) ptr; | |
2127 | dest = (wxObject *) src; | |
2128 | return (void *) dest; | |
2129 | } | |
2130 | ||
6d19860f RD |
2131 | #define new_wxListEvent(_swigarg0,_swigarg1) (new wxListEvent(_swigarg0,_swigarg1)) |
2132 | static PyObject *_wrap_new_wxListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2133 | PyObject * _resultobj; | |
2134 | wxListEvent * _result; | |
2135 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
2136 | int _arg1 = (int ) 0; | |
2137 | char *_kwnames[] = { "commandType","id", NULL }; | |
2138 | char _ptemp[128]; | |
2139 | ||
2140 | self = self; | |
2141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxListEvent",_kwnames,&_arg0,&_arg1)) | |
2142 | return NULL; | |
2143 | { | |
4268f798 | 2144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2145 | _result = (wxListEvent *)new_wxListEvent(_arg0,_arg1); |
6d19860f | 2146 | |
4268f798 | 2147 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
2148 | if (PyErr_Occurred()) return NULL; |
2149 | } if (_result) { | |
2150 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListEvent_p"); | |
2151 | _resultobj = Py_BuildValue("s",_ptemp); | |
2152 | } else { | |
2153 | Py_INCREF(Py_None); | |
2154 | _resultobj = Py_None; | |
2155 | } | |
2156 | return _resultobj; | |
2157 | } | |
2158 | ||
f6bcfd97 BP |
2159 | #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code) |
2160 | static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2161 | PyObject * _resultobj; | |
2162 | int _result; | |
2163 | wxListEvent * _arg0; | |
2164 | PyObject * _argo0 = 0; | |
2165 | char *_kwnames[] = { "self", NULL }; | |
2166 | ||
2167 | self = self; | |
2168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0)) | |
2169 | return NULL; | |
2170 | if (_argo0) { | |
2171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_get. Expected _wxListEvent_p."); | |
2174 | return NULL; | |
2175 | } | |
2176 | } | |
2177 | { | |
4268f798 | 2178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2179 | _result = (int )wxListEvent_m_code_get(_arg0); |
f6bcfd97 | 2180 | |
4268f798 | 2181 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2182 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2183 | } _resultobj = Py_BuildValue("i",_result); |
2184 | return _resultobj; | |
2185 | } | |
2186 | ||
ebf4302c RD |
2187 | #define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex) |
2188 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 BP |
2189 | PyObject * _resultobj; |
2190 | long _result; | |
2191 | wxListEvent * _arg0; | |
2192 | PyObject * _argo0 = 0; | |
2193 | char *_kwnames[] = { "self", NULL }; | |
2194 | ||
2195 | self = self; | |
ebf4302c | 2196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0)) |
f6bcfd97 BP |
2197 | return NULL; |
2198 | if (_argo0) { | |
2199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
ebf4302c | 2201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p."); |
f6bcfd97 BP |
2202 | return NULL; |
2203 | } | |
2204 | } | |
2205 | { | |
4268f798 | 2206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2207 | _result = (long )wxListEvent_m_oldItemIndex_get(_arg0); |
f6bcfd97 | 2208 | |
4268f798 | 2209 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2210 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2211 | } _resultobj = Py_BuildValue("l",_result); |
2212 | return _resultobj; | |
2213 | } | |
2214 | ||
ebf4302c RD |
2215 | #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex) |
2216 | static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2217 | PyObject * _resultobj; |
ebf4302c | 2218 | long _result; |
f6bcfd97 | 2219 | wxListEvent * _arg0; |
1d99702e | 2220 | PyObject * _argo0 = 0; |
f6bcfd97 | 2221 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2222 | |
2223 | self = self; | |
ebf4302c | 2224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0)) |
af309447 | 2225 | return NULL; |
1d99702e RD |
2226 | if (_argo0) { |
2227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
ebf4302c | 2229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p."); |
af309447 RD |
2230 | return NULL; |
2231 | } | |
2232 | } | |
cf694132 | 2233 | { |
4268f798 | 2234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2235 | _result = (long )wxListEvent_m_itemIndex_get(_arg0); |
cf694132 | 2236 | |
4268f798 | 2237 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2238 | if (PyErr_Occurred()) return NULL; |
ebf4302c | 2239 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2240 | return _resultobj; |
2241 | } | |
2242 | ||
ebf4302c RD |
2243 | #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col) |
2244 | static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2245 | PyObject * _resultobj; |
ebf4302c | 2246 | int _result; |
f6bcfd97 | 2247 | wxListEvent * _arg0; |
1d99702e | 2248 | PyObject * _argo0 = 0; |
f6bcfd97 | 2249 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2250 | |
2251 | self = self; | |
ebf4302c | 2252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0)) |
af309447 | 2253 | return NULL; |
1d99702e RD |
2254 | if (_argo0) { |
2255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
ebf4302c | 2257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p."); |
af309447 RD |
2258 | return NULL; |
2259 | } | |
2260 | } | |
cf694132 | 2261 | { |
4268f798 | 2262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2263 | _result = (int )wxListEvent_m_col_get(_arg0); |
cf694132 | 2264 | |
4268f798 | 2265 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2266 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2267 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2268 | return _resultobj; |
2269 | } | |
2270 | ||
f6bcfd97 BP |
2271 | #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag) |
2272 | static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2273 | PyObject * _resultobj; |
f6bcfd97 BP |
2274 | wxPoint * _result; |
2275 | wxListEvent * _arg0; | |
2276 | PyObject * _argo0 = 0; | |
2277 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
2278 | char _ptemp[128]; |
2279 | ||
2280 | self = self; | |
f6bcfd97 BP |
2281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0)) |
2282 | return NULL; | |
2283 | if (_argo0) { | |
2284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p."); | |
8ab979d7 | 2287 | return NULL; |
f6bcfd97 BP |
2288 | } |
2289 | } | |
cf694132 | 2290 | { |
4268f798 | 2291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2292 | _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0); |
cf694132 | 2293 | |
4268f798 | 2294 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2295 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2296 | } if (_result) { |
f6bcfd97 | 2297 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); |
1d99702e RD |
2298 | _resultobj = Py_BuildValue("s",_ptemp); |
2299 | } else { | |
2300 | Py_INCREF(Py_None); | |
2301 | _resultobj = Py_None; | |
2302 | } | |
8ab979d7 RD |
2303 | return _resultobj; |
2304 | } | |
2305 | ||
f6bcfd97 BP |
2306 | #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item) |
2307 | static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2308 | PyObject * _resultobj; |
f6bcfd97 | 2309 | wxListItem * _result; |
af309447 | 2310 | wxListEvent * _arg0; |
1d99702e | 2311 | PyObject * _argo0 = 0; |
f6bcfd97 | 2312 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2313 | |
2314 | self = self; | |
f6bcfd97 | 2315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0)) |
af309447 | 2316 | return NULL; |
1d99702e RD |
2317 | if (_argo0) { |
2318 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2319 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p."); |
af309447 RD |
2321 | return NULL; |
2322 | } | |
2323 | } | |
cf694132 | 2324 | { |
4268f798 | 2325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2326 | _result = (wxListItem *)wxListEvent_m_item_get(_arg0); |
cf694132 | 2327 | |
4268f798 | 2328 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2329 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2330 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
2331 | return _resultobj; |
2332 | } | |
2333 | ||
f6bcfd97 BP |
2334 | #define wxListEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
2335 | static PyObject *_wrap_wxListEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2336 | PyObject * _resultobj; |
2337 | int _result; | |
2338 | wxListEvent * _arg0; | |
1d99702e | 2339 | PyObject * _argo0 = 0; |
efc5f224 | 2340 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2341 | |
2342 | self = self; | |
f6bcfd97 | 2343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 2344 | return NULL; |
1d99702e RD |
2345 | if (_argo0) { |
2346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCode. Expected _wxListEvent_p."); |
8ab979d7 RD |
2349 | return NULL; |
2350 | } | |
2351 | } | |
cf694132 | 2352 | { |
4268f798 | 2353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2354 | _result = (int )wxListEvent_GetCode(_arg0); |
cf694132 | 2355 | |
4268f798 | 2356 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2357 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2358 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2359 | return _resultobj; |
2360 | } | |
2361 | ||
f6bcfd97 BP |
2362 | #define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex()) |
2363 | static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2364 | PyObject * _resultobj; |
2365 | long _result; | |
2366 | wxListEvent * _arg0; | |
1d99702e | 2367 | PyObject * _argo0 = 0; |
f6bcfd97 | 2368 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2369 | |
2370 | self = self; | |
f6bcfd97 | 2371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0)) |
af309447 | 2372 | return NULL; |
1d99702e RD |
2373 | if (_argo0) { |
2374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p."); |
af309447 RD |
2377 | return NULL; |
2378 | } | |
2379 | } | |
cf694132 | 2380 | { |
4268f798 | 2381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2382 | _result = (long )wxListEvent_GetIndex(_arg0); |
cf694132 | 2383 | |
4268f798 | 2384 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2385 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2386 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2387 | return _resultobj; |
2388 | } | |
2389 | ||
f6bcfd97 BP |
2390 | #define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn()) |
2391 | static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2392 | PyObject * _resultobj; |
f6bcfd97 | 2393 | int _result; |
8ab979d7 | 2394 | wxListEvent * _arg0; |
1d99702e | 2395 | PyObject * _argo0 = 0; |
efc5f224 | 2396 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2397 | |
2398 | self = self; | |
f6bcfd97 | 2399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0)) |
8ab979d7 | 2400 | return NULL; |
1d99702e RD |
2401 | if (_argo0) { |
2402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p."); |
8ab979d7 RD |
2405 | return NULL; |
2406 | } | |
2407 | } | |
cf694132 | 2408 | { |
4268f798 | 2409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2410 | _result = (int )wxListEvent_GetColumn(_arg0); |
cf694132 | 2411 | |
4268f798 | 2412 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2413 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2414 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2415 | return _resultobj; |
2416 | } | |
2417 | ||
f6bcfd97 BP |
2418 | #define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
2419 | static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2420 | PyObject * _resultobj; |
f6bcfd97 | 2421 | wxPoint * _result; |
8ab979d7 | 2422 | wxListEvent * _arg0; |
1d99702e | 2423 | PyObject * _argo0 = 0; |
efc5f224 | 2424 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2425 | char _ptemp[128]; |
8ab979d7 RD |
2426 | |
2427 | self = self; | |
f6bcfd97 | 2428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 2429 | return NULL; |
1d99702e RD |
2430 | if (_argo0) { |
2431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetPoint. Expected _wxListEvent_p."); |
8ab979d7 RD |
2434 | return NULL; |
2435 | } | |
2436 | } | |
cf694132 | 2437 | { |
4268f798 | 2438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2439 | _result = new wxPoint (wxListEvent_GetPoint(_arg0)); |
cf694132 | 2440 | |
4268f798 | 2441 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2442 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2443 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2444 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
2445 | return _resultobj; |
2446 | } | |
2447 | ||
f6bcfd97 BP |
2448 | #define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
2449 | static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2450 | PyObject * _resultobj; |
f6bcfd97 | 2451 | wxString * _result; |
af309447 | 2452 | wxListEvent * _arg0; |
1d99702e | 2453 | PyObject * _argo0 = 0; |
f6bcfd97 | 2454 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2455 | |
2456 | self = self; | |
f6bcfd97 | 2457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetLabel",_kwnames,&_argo0)) |
af309447 | 2458 | return NULL; |
1d99702e RD |
2459 | if (_argo0) { |
2460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetLabel. Expected _wxListEvent_p."); |
af309447 RD |
2463 | return NULL; |
2464 | } | |
2465 | } | |
cf694132 | 2466 | { |
4268f798 | 2467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2468 | const wxString & _result_ref = wxListEvent_GetLabel(_arg0); |
f6bcfd97 | 2469 | _result = (wxString *) &_result_ref; |
cf694132 | 2470 | |
4268f798 | 2471 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2472 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2473 | }{ |
c8bc7bb8 RD |
2474 | #if wxUSE_UNICODE |
2475 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2476 | #else | |
f6bcfd97 | 2477 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2478 | #endif |
f6bcfd97 | 2479 | } |
af309447 RD |
2480 | return _resultobj; |
2481 | } | |
2482 | ||
f6bcfd97 BP |
2483 | #define wxListEvent_GetText(_swigobj) (_swigobj->GetText()) |
2484 | static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2485 | PyObject * _resultobj; |
f6bcfd97 | 2486 | wxString * _result; |
8ab979d7 | 2487 | wxListEvent * _arg0; |
1d99702e | 2488 | PyObject * _argo0 = 0; |
efc5f224 | 2489 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2490 | |
2491 | self = self; | |
f6bcfd97 | 2492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0)) |
8ab979d7 | 2493 | return NULL; |
1d99702e RD |
2494 | if (_argo0) { |
2495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p."); |
8ab979d7 RD |
2498 | return NULL; |
2499 | } | |
2500 | } | |
cf694132 | 2501 | { |
4268f798 | 2502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2503 | const wxString & _result_ref = wxListEvent_GetText(_arg0); |
f6bcfd97 | 2504 | _result = (wxString *) &_result_ref; |
cf694132 | 2505 | |
4268f798 | 2506 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2507 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2508 | }{ |
c8bc7bb8 RD |
2509 | #if wxUSE_UNICODE |
2510 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2511 | #else | |
f6bcfd97 | 2512 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2513 | #endif |
f6bcfd97 | 2514 | } |
8ab979d7 RD |
2515 | return _resultobj; |
2516 | } | |
2517 | ||
f6bcfd97 BP |
2518 | #define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage()) |
2519 | static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2520 | PyObject * _resultobj; |
f6bcfd97 | 2521 | int _result; |
af309447 | 2522 | wxListEvent * _arg0; |
1d99702e | 2523 | PyObject * _argo0 = 0; |
f6bcfd97 | 2524 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2525 | |
2526 | self = self; | |
f6bcfd97 | 2527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0)) |
af309447 | 2528 | return NULL; |
1d99702e RD |
2529 | if (_argo0) { |
2530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p."); |
af309447 RD |
2533 | return NULL; |
2534 | } | |
2535 | } | |
cf694132 | 2536 | { |
4268f798 | 2537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2538 | _result = (int )wxListEvent_GetImage(_arg0); |
cf694132 | 2539 | |
4268f798 | 2540 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2541 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2542 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2543 | return _resultobj; |
2544 | } | |
2545 | ||
f6bcfd97 BP |
2546 | #define wxListEvent_GetData(_swigobj) (_swigobj->GetData()) |
2547 | static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2548 | PyObject * _resultobj; |
f6bcfd97 | 2549 | long _result; |
8ab979d7 | 2550 | wxListEvent * _arg0; |
1d99702e | 2551 | PyObject * _argo0 = 0; |
efc5f224 | 2552 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2553 | |
2554 | self = self; | |
f6bcfd97 | 2555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0)) |
8ab979d7 | 2556 | return NULL; |
1d99702e RD |
2557 | if (_argo0) { |
2558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p."); |
8ab979d7 RD |
2561 | return NULL; |
2562 | } | |
2563 | } | |
cf694132 | 2564 | { |
4268f798 | 2565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2566 | _result = (long )wxListEvent_GetData(_arg0); |
cf694132 | 2567 | |
4268f798 | 2568 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2569 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2570 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2571 | return _resultobj; |
2572 | } | |
2573 | ||
f6bcfd97 BP |
2574 | #define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask()) |
2575 | static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2576 | PyObject * _resultobj; |
f6bcfd97 | 2577 | long _result; |
af309447 | 2578 | wxListEvent * _arg0; |
1d99702e | 2579 | PyObject * _argo0 = 0; |
f6bcfd97 | 2580 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2581 | |
2582 | self = self; | |
f6bcfd97 | 2583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetMask",_kwnames,&_argo0)) |
af309447 | 2584 | return NULL; |
1d99702e RD |
2585 | if (_argo0) { |
2586 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2587 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetMask. Expected _wxListEvent_p."); |
af309447 RD |
2589 | return NULL; |
2590 | } | |
2591 | } | |
cf694132 | 2592 | { |
4268f798 | 2593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2594 | _result = (long )wxListEvent_GetMask(_arg0); |
cf694132 | 2595 | |
4268f798 | 2596 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2597 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2598 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2599 | return _resultobj; |
2600 | } | |
2601 | ||
f6bcfd97 BP |
2602 | #define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
2603 | static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2604 | PyObject * _resultobj; |
2605 | wxListItem * _result; | |
2606 | wxListEvent * _arg0; | |
1d99702e | 2607 | PyObject * _argo0 = 0; |
efc5f224 | 2608 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2609 | |
2610 | self = self; | |
f6bcfd97 | 2611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 2612 | return NULL; |
1d99702e RD |
2613 | if (_argo0) { |
2614 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p."); |
8ab979d7 RD |
2617 | return NULL; |
2618 | } | |
2619 | } | |
cf694132 | 2620 | { |
4268f798 | 2621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2622 | const wxListItem & _result_ref = wxListEvent_GetItem(_arg0); |
f6bcfd97 | 2623 | _result = (wxListItem *) &_result_ref; |
cf694132 | 2624 | |
4268f798 | 2625 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2626 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2627 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2628 | return _resultobj; |
2629 | } | |
2630 | ||
6d19860f RD |
2631 | #define wxListEvent_GetCacheFrom(_swigobj) (_swigobj->GetCacheFrom()) |
2632 | static PyObject *_wrap_wxListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2633 | PyObject * _resultobj; | |
2634 | long _result; | |
2635 | wxListEvent * _arg0; | |
2636 | PyObject * _argo0 = 0; | |
2637 | char *_kwnames[] = { "self", NULL }; | |
2638 | ||
2639 | self = self; | |
2640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheFrom",_kwnames,&_argo0)) | |
2641 | return NULL; | |
2642 | if (_argo0) { | |
2643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheFrom. Expected _wxListEvent_p."); | |
2646 | return NULL; | |
2647 | } | |
2648 | } | |
2649 | { | |
4268f798 | 2650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2651 | _result = (long )wxListEvent_GetCacheFrom(_arg0); |
6d19860f | 2652 | |
4268f798 | 2653 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
2654 | if (PyErr_Occurred()) return NULL; |
2655 | } _resultobj = Py_BuildValue("l",_result); | |
2656 | return _resultobj; | |
2657 | } | |
2658 | ||
2659 | #define wxListEvent_GetCacheTo(_swigobj) (_swigobj->GetCacheTo()) | |
2660 | static PyObject *_wrap_wxListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2661 | PyObject * _resultobj; | |
2662 | long _result; | |
2663 | wxListEvent * _arg0; | |
2664 | PyObject * _argo0 = 0; | |
2665 | char *_kwnames[] = { "self", NULL }; | |
2666 | ||
2667 | self = self; | |
2668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheTo",_kwnames,&_argo0)) | |
2669 | return NULL; | |
2670 | if (_argo0) { | |
2671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheTo. Expected _wxListEvent_p."); | |
2674 | return NULL; | |
2675 | } | |
2676 | } | |
2677 | { | |
4268f798 | 2678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2679 | _result = (long )wxListEvent_GetCacheTo(_arg0); |
6d19860f | 2680 | |
4268f798 | 2681 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
2682 | if (PyErr_Occurred()) return NULL; |
2683 | } _resultobj = Py_BuildValue("l",_result); | |
2684 | return _resultobj; | |
2685 | } | |
2686 | ||
c7e7022c RD |
2687 | static void *SwigwxPyListCtrlTowxControl(void *ptr) { |
2688 | wxPyListCtrl *src; | |
8ab979d7 | 2689 | wxControl *dest; |
c7e7022c | 2690 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2691 | dest = (wxControl *) src; |
2692 | return (void *) dest; | |
2693 | } | |
2694 | ||
c7e7022c RD |
2695 | static void *SwigwxPyListCtrlTowxWindow(void *ptr) { |
2696 | wxPyListCtrl *src; | |
8ab979d7 | 2697 | wxWindow *dest; |
c7e7022c | 2698 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2699 | dest = (wxWindow *) src; |
2700 | return (void *) dest; | |
2701 | } | |
2702 | ||
c7e7022c RD |
2703 | static void *SwigwxPyListCtrlTowxEvtHandler(void *ptr) { |
2704 | wxPyListCtrl *src; | |
8ab979d7 | 2705 | wxEvtHandler *dest; |
c7e7022c | 2706 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2707 | dest = (wxEvtHandler *) src; |
2708 | return (void *) dest; | |
2709 | } | |
2710 | ||
c7e7022c RD |
2711 | static void *SwigwxPyListCtrlTowxObject(void *ptr) { |
2712 | wxPyListCtrl *src; | |
9416aa89 | 2713 | wxObject *dest; |
c7e7022c | 2714 | src = (wxPyListCtrl *) ptr; |
9416aa89 RD |
2715 | dest = (wxObject *) src; |
2716 | return (void *) dest; | |
2717 | } | |
2718 | ||
c7e7022c | 2719 | #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 2720 | static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 2721 | PyObject * _resultobj; |
c7e7022c | 2722 | wxPyListCtrl * _result; |
8ab979d7 | 2723 | wxWindow * _arg0; |
c7e7022c | 2724 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
2725 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
2726 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
0adbc166 | 2727 | long _arg4 = (long ) (wxLC_ICON); |
e508a2b6 | 2728 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
137b5242 | 2729 | wxString * _arg6 = (wxString *) &wxPyListCtrlNameStr; |
1d99702e | 2730 | PyObject * _argo0 = 0; |
2f90df85 RD |
2731 | wxPoint temp; |
2732 | PyObject * _obj2 = 0; | |
2733 | wxSize temp0; | |
2734 | PyObject * _obj3 = 0; | |
1d99702e | 2735 | PyObject * _argo5 = 0; |
137b5242 | 2736 | PyObject * _obj6 = 0; |
efc5f224 | 2737 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
2738 | char _ptemp[128]; |
2739 | ||
2740 | self = self; | |
137b5242 | 2741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) |
8ab979d7 | 2742 | return NULL; |
1d99702e RD |
2743 | if (_argo0) { |
2744 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p."); |
2747 | return NULL; | |
2748 | } | |
2749 | } | |
2f90df85 RD |
2750 | if (_obj2) |
2751 | { | |
2752 | _arg2 = &temp; | |
2753 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 2754 | return NULL; |
2f90df85 RD |
2755 | } |
2756 | if (_obj3) | |
2757 | { | |
2758 | _arg3 = &temp0; | |
2759 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 2760 | return NULL; |
2f90df85 | 2761 | } |
1d99702e RD |
2762 | if (_argo5) { |
2763 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
2764 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
2765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p."); |
2766 | return NULL; | |
2767 | } | |
2768 | } | |
137b5242 RD |
2769 | if (_obj6) |
2770 | { | |
2771 | _arg6 = wxString_in_helper(_obj6); | |
2772 | if (_arg6 == NULL) | |
2773 | return NULL; | |
2774 | } | |
cf694132 | 2775 | { |
4268f798 | 2776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 2777 | _result = (wxPyListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
cf694132 | 2778 | |
4268f798 | 2779 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2780 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2781 | } if (_result) { |
c7e7022c | 2782 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); |
1d99702e RD |
2783 | _resultobj = Py_BuildValue("s",_ptemp); |
2784 | } else { | |
2785 | Py_INCREF(Py_None); | |
2786 | _resultobj = Py_None; | |
2787 | } | |
137b5242 RD |
2788 | { |
2789 | if (_obj6) | |
2790 | delete _arg6; | |
2791 | } | |
8ab979d7 RD |
2792 | return _resultobj; |
2793 | } | |
2794 | ||
09f3d4e6 RD |
2795 | #define new_wxPreListCtrl() (new wxPyListCtrl()) |
2796 | static PyObject *_wrap_new_wxPreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2797 | PyObject * _resultobj; | |
2798 | wxPyListCtrl * _result; | |
2799 | char *_kwnames[] = { NULL }; | |
2800 | char _ptemp[128]; | |
2801 | ||
2802 | self = self; | |
2803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListCtrl",_kwnames)) | |
2804 | return NULL; | |
2805 | { | |
4268f798 | 2806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2807 | _result = (wxPyListCtrl *)new_wxPreListCtrl(); |
09f3d4e6 | 2808 | |
4268f798 | 2809 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
2810 | if (PyErr_Occurred()) return NULL; |
2811 | } if (_result) { | |
2812 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); | |
2813 | _resultobj = Py_BuildValue("s",_ptemp); | |
2814 | } else { | |
2815 | Py_INCREF(Py_None); | |
2816 | _resultobj = Py_None; | |
2817 | } | |
2818 | return _resultobj; | |
2819 | } | |
2820 | ||
2821 | #define wxListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
2822 | static PyObject *_wrap_wxListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2823 | PyObject * _resultobj; | |
2824 | bool _result; | |
2825 | wxPyListCtrl * _arg0; | |
2826 | wxWindow * _arg1; | |
2827 | wxWindowID _arg2 = (wxWindowID ) -1; | |
2828 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
2829 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2830 | long _arg5 = (long ) (wxLC_ICON); | |
2831 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 2832 | wxString * _arg7 = (wxString *) &wxPyListCtrlNameStr; |
09f3d4e6 RD |
2833 | PyObject * _argo0 = 0; |
2834 | PyObject * _argo1 = 0; | |
2835 | wxPoint temp; | |
2836 | PyObject * _obj3 = 0; | |
2837 | wxSize temp0; | |
2838 | PyObject * _obj4 = 0; | |
2839 | PyObject * _argo6 = 0; | |
137b5242 | 2840 | PyObject * _obj7 = 0; |
09f3d4e6 RD |
2841 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; |
2842 | ||
2843 | self = self; | |
137b5242 | 2844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
09f3d4e6 RD |
2845 | return NULL; |
2846 | if (_argo0) { | |
2847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
2849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Create. Expected _wxPyListCtrl_p."); | |
2850 | return NULL; | |
2851 | } | |
2852 | } | |
2853 | if (_argo1) { | |
2854 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2855 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_Create. Expected _wxWindow_p."); | |
2857 | return NULL; | |
2858 | } | |
2859 | } | |
2860 | if (_obj3) | |
2861 | { | |
2862 | _arg3 = &temp; | |
2863 | if (! wxPoint_helper(_obj3, &_arg3)) | |
2864 | return NULL; | |
2865 | } | |
2866 | if (_obj4) | |
2867 | { | |
2868 | _arg4 = &temp0; | |
2869 | if (! wxSize_helper(_obj4, &_arg4)) | |
2870 | return NULL; | |
2871 | } | |
2872 | if (_argo6) { | |
2873 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2874 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
2875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListCtrl_Create. Expected _wxValidator_p."); | |
2876 | return NULL; | |
2877 | } | |
2878 | } | |
137b5242 RD |
2879 | if (_obj7) |
2880 | { | |
2881 | _arg7 = wxString_in_helper(_obj7); | |
2882 | if (_arg7 == NULL) | |
2883 | return NULL; | |
2884 | } | |
09f3d4e6 | 2885 | { |
4268f798 | 2886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 2887 | _result = (bool )wxListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
09f3d4e6 | 2888 | |
4268f798 | 2889 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
2890 | if (PyErr_Occurred()) return NULL; |
2891 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
2892 | { |
2893 | if (_obj7) | |
2894 | delete _arg7; | |
2895 | } | |
09f3d4e6 RD |
2896 | return _resultobj; |
2897 | } | |
2898 | ||
0122b7e3 RD |
2899 | #define wxListCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
2900 | static PyObject *_wrap_wxListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2901 | PyObject * _resultobj; |
c7e7022c RD |
2902 | wxPyListCtrl * _arg0; |
2903 | PyObject * _arg1; | |
2904 | PyObject * _arg2; | |
1d99702e | 2905 | PyObject * _argo0 = 0; |
c7e7022c RD |
2906 | PyObject * _obj1 = 0; |
2907 | PyObject * _obj2 = 0; | |
2908 | char *_kwnames[] = { "self","self","_class", NULL }; | |
8ab979d7 RD |
2909 | |
2910 | self = self; | |
0122b7e3 | 2911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxListCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 2912 | return NULL; |
1d99702e RD |
2913 | if (_argo0) { |
2914 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c | 2915 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
0122b7e3 | 2916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl__setCallbackInfo. Expected _wxPyListCtrl_p."); |
8ab979d7 RD |
2917 | return NULL; |
2918 | } | |
2919 | } | |
c7e7022c RD |
2920 | { |
2921 | _arg1 = _obj1; | |
2922 | } | |
2923 | { | |
2924 | _arg2 = _obj2; | |
2925 | } | |
cf694132 | 2926 | { |
4268f798 | 2927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2928 | wxListCtrl__setCallbackInfo(_arg0,_arg1,_arg2); |
cf694132 | 2929 | |
4268f798 | 2930 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2931 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
2932 | } Py_INCREF(Py_None); |
2933 | _resultobj = Py_None; | |
8ab979d7 RD |
2934 | return _resultobj; |
2935 | } | |
2936 | ||
c7e7022c RD |
2937 | #define wxListCtrl_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) |
2938 | static PyObject *_wrap_wxListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1b62f00d | 2939 | PyObject * _resultobj; |
c7e7022c RD |
2940 | bool _result; |
2941 | wxPyListCtrl * _arg0; | |
2942 | wxColour * _arg1; | |
1b62f00d | 2943 | PyObject * _argo0 = 0; |
c7e7022c RD |
2944 | wxColour temp; |
2945 | PyObject * _obj1 = 0; | |
2946 | char *_kwnames[] = { "self","col", NULL }; | |
1b62f00d RD |
2947 | |
2948 | self = self; | |
c7e7022c | 2949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
1b62f00d RD |
2950 | return NULL; |
2951 | if (_argo0) { | |
2952 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
2953 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
2954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetForegroundColour. Expected _wxPyListCtrl_p."); | |
1b62f00d RD |
2955 | return NULL; |
2956 | } | |
2957 | } | |
c7e7022c RD |
2958 | { |
2959 | _arg1 = &temp; | |
2960 | if (! wxColour_helper(_obj1, &_arg1)) | |
1b62f00d | 2961 | return NULL; |
c7e7022c | 2962 | } |
1b62f00d | 2963 | { |
4268f798 | 2964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2965 | _result = (bool )wxListCtrl_SetForegroundColour(_arg0,*_arg1); |
1b62f00d | 2966 | |
4268f798 | 2967 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2968 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 2969 | } _resultobj = Py_BuildValue("i",_result); |
1b62f00d RD |
2970 | return _resultobj; |
2971 | } | |
2972 | ||
c7e7022c RD |
2973 | #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
2974 | static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2975 | PyObject * _resultobj; |
2976 | bool _result; | |
c7e7022c RD |
2977 | wxPyListCtrl * _arg0; |
2978 | wxColour * _arg1; | |
1d99702e | 2979 | PyObject * _argo0 = 0; |
c7e7022c RD |
2980 | wxColour temp; |
2981 | PyObject * _obj1 = 0; | |
2982 | char *_kwnames[] = { "self","col", NULL }; | |
8ab979d7 RD |
2983 | |
2984 | self = self; | |
c7e7022c | 2985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2986 | return NULL; |
1d99702e RD |
2987 | if (_argo0) { |
2988 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
2989 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
2990 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
2991 | return NULL; |
2992 | } | |
2993 | } | |
c7e7022c RD |
2994 | { |
2995 | _arg1 = &temp; | |
2996 | if (! wxColour_helper(_obj1, &_arg1)) | |
2997 | return NULL; | |
2998 | } | |
cf694132 | 2999 | { |
4268f798 | 3000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3001 | _result = (bool )wxListCtrl_SetBackgroundColour(_arg0,*_arg1); |
cf694132 | 3002 | |
4268f798 | 3003 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3004 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3005 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3006 | return _resultobj; |
3007 | } | |
3008 | ||
14afa2cb RD |
3009 | static wxListItem * wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col) { |
3010 | wxListItem item; | |
3011 | if (self->GetColumn(col, item)) | |
3012 | return new wxListItem(item); | |
3013 | else | |
3014 | return NULL; | |
3015 | } | |
c7e7022c | 3016 | static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3017 | PyObject * _resultobj; |
14afa2cb | 3018 | wxListItem * _result; |
c7e7022c RD |
3019 | wxPyListCtrl * _arg0; |
3020 | int _arg1; | |
1d99702e | 3021 | PyObject * _argo0 = 0; |
14afa2cb | 3022 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3023 | |
3024 | self = self; | |
14afa2cb | 3025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3026 | return NULL; |
1d99702e RD |
3027 | if (_argo0) { |
3028 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3029 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3030 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxPyListCtrl_p."); | |
3031 | return NULL; | |
3032 | } | |
3033 | } | |
cf694132 | 3034 | { |
4268f798 | 3035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3036 | _result = (wxListItem *)wxPyListCtrl_GetColumn(_arg0,_arg1); |
cf694132 | 3037 | |
4268f798 | 3038 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3039 | if (PyErr_Occurred()) return NULL; |
14afa2cb | 3040 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
3041 | return _resultobj; |
3042 | } | |
3043 | ||
c7e7022c RD |
3044 | #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1)) |
3045 | static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3046 | PyObject * _resultobj; |
3047 | bool _result; | |
c7e7022c | 3048 | wxPyListCtrl * _arg0; |
8ab979d7 | 3049 | int _arg1; |
c7e7022c | 3050 | wxListItem * _arg2; |
1d99702e | 3051 | PyObject * _argo0 = 0; |
c7e7022c RD |
3052 | PyObject * _argo2 = 0; |
3053 | char *_kwnames[] = { "self","col","item", NULL }; | |
8ab979d7 RD |
3054 | |
3055 | self = self; | |
c7e7022c | 3056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3057 | return NULL; |
1d99702e RD |
3058 | if (_argo0) { |
3059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxPyListCtrl_p."); | |
3062 | return NULL; | |
3063 | } | |
3064 | } | |
3065 | if (_argo2) { | |
3066 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3067 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
3068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p."); | |
8ab979d7 RD |
3069 | return NULL; |
3070 | } | |
3071 | } | |
cf694132 | 3072 | { |
4268f798 | 3073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3074 | _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2); |
cf694132 | 3075 | |
4268f798 | 3076 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3077 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3078 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3079 | return _resultobj; |
3080 | } | |
3081 | ||
c7e7022c RD |
3082 | #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0)) |
3083 | static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3084 | PyObject * _resultobj; |
c7e7022c RD |
3085 | int _result; |
3086 | wxPyListCtrl * _arg0; | |
3087 | int _arg1; | |
1d99702e | 3088 | PyObject * _argo0 = 0; |
c7e7022c | 3089 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3090 | |
3091 | self = self; | |
c7e7022c | 3092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3093 | return NULL; |
1d99702e RD |
3094 | if (_argo0) { |
3095 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3096 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3097 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3098 | return NULL; |
3099 | } | |
3100 | } | |
cf694132 | 3101 | { |
4268f798 | 3102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3103 | _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1); |
cf694132 | 3104 | |
4268f798 | 3105 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3106 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3107 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3108 | return _resultobj; |
3109 | } | |
3110 | ||
c7e7022c RD |
3111 | #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1)) |
3112 | static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3113 | PyObject * _resultobj; |
c7e7022c RD |
3114 | bool _result; |
3115 | wxPyListCtrl * _arg0; | |
3116 | int _arg1; | |
3117 | int _arg2; | |
1d99702e | 3118 | PyObject * _argo0 = 0; |
c7e7022c | 3119 | char *_kwnames[] = { "self","col","width", NULL }; |
8ab979d7 RD |
3120 | |
3121 | self = self; | |
c7e7022c | 3122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3123 | return NULL; |
1d99702e RD |
3124 | if (_argo0) { |
3125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3128 | return NULL; |
3129 | } | |
3130 | } | |
cf694132 | 3131 | { |
4268f798 | 3132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3133 | _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2); |
cf694132 | 3134 | |
4268f798 | 3135 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3136 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3137 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3138 | return _resultobj; |
3139 | } | |
3140 | ||
c7e7022c RD |
3141 | #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage()) |
3142 | static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3143 | PyObject * _resultobj; |
c7e7022c RD |
3144 | int _result; |
3145 | wxPyListCtrl * _arg0; | |
1d99702e | 3146 | PyObject * _argo0 = 0; |
c7e7022c | 3147 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3148 | |
3149 | self = self; | |
c7e7022c | 3150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0)) |
8ab979d7 | 3151 | return NULL; |
1d99702e RD |
3152 | if (_argo0) { |
3153 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3154 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3156 | return NULL; |
3157 | } | |
3158 | } | |
cf694132 | 3159 | { |
4268f798 | 3160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3161 | _result = (int )wxListCtrl_GetCountPerPage(_arg0); |
cf694132 | 3162 | |
4268f798 | 3163 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3164 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3165 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3166 | return _resultobj; |
3167 | } | |
3168 | ||
c7e7022c RD |
3169 | #define wxListCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) |
3170 | static PyObject *_wrap_wxListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3171 | PyObject * _resultobj; |
c7e7022c RD |
3172 | wxTextCtrl * _result; |
3173 | wxPyListCtrl * _arg0; | |
1d99702e | 3174 | PyObject * _argo0 = 0; |
c7e7022c | 3175 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3176 | |
3177 | self = self; | |
c7e7022c | 3178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetEditControl",_kwnames,&_argo0)) |
8ab979d7 | 3179 | return NULL; |
1d99702e RD |
3180 | if (_argo0) { |
3181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetEditControl. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3184 | return NULL; |
3185 | } | |
3186 | } | |
cf694132 | 3187 | { |
4268f798 | 3188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3189 | _result = (wxTextCtrl *)wxListCtrl_GetEditControl(_arg0); |
cf694132 | 3190 | |
4268f798 | 3191 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3192 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3193 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
3194 | return _resultobj; |
3195 | } | |
3196 | ||
c7e7022c RD |
3197 | static wxListItem * wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col) { |
3198 | wxListItem* info = new wxListItem; | |
3199 | info->m_itemId = itemId; | |
3200 | info->m_col = col; | |
3201 | info->m_mask = 0xFFFF; | |
3202 | self->GetItem(*info); | |
3203 | return info; | |
3204 | } | |
3205 | static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 3206 | PyObject * _resultobj; |
c7e7022c RD |
3207 | wxListItem * _result; |
3208 | wxPyListCtrl * _arg0; | |
3209 | long _arg1; | |
3210 | int _arg2 = (int ) 0; | |
1d99702e | 3211 | PyObject * _argo0 = 0; |
c7e7022c | 3212 | char *_kwnames[] = { "self","itemId","col", NULL }; |
be4d9c1f RD |
3213 | |
3214 | self = self; | |
c7e7022c | 3215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
be4d9c1f | 3216 | return NULL; |
1d99702e RD |
3217 | if (_argo0) { |
3218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxPyListCtrl_p."); | |
be4d9c1f RD |
3221 | return NULL; |
3222 | } | |
3223 | } | |
cf694132 | 3224 | { |
4268f798 | 3225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3226 | _result = (wxListItem *)wxPyListCtrl_GetItem(_arg0,_arg1,_arg2); |
cf694132 | 3227 | |
4268f798 | 3228 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3229 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 3230 | }{ _resultobj = wxPyMake_wxObject(_result); } |
be4d9c1f RD |
3231 | return _resultobj; |
3232 | } | |
3233 | ||
c7e7022c RD |
3234 | #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) |
3235 | static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3236 | PyObject * _resultobj; |
3237 | bool _result; | |
c7e7022c RD |
3238 | wxPyListCtrl * _arg0; |
3239 | wxListItem * _arg1; | |
1d99702e | 3240 | PyObject * _argo0 = 0; |
c7e7022c RD |
3241 | PyObject * _argo1 = 0; |
3242 | char *_kwnames[] = { "self","info", NULL }; | |
8ab979d7 RD |
3243 | |
3244 | self = self; | |
c7e7022c | 3245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3246 | return NULL; |
1d99702e RD |
3247 | if (_argo0) { |
3248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxPyListCtrl_p."); | |
3251 | return NULL; | |
3252 | } | |
3253 | } | |
3254 | if (_argo1) { | |
3255 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3256 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
3257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p."); | |
8ab979d7 RD |
3258 | return NULL; |
3259 | } | |
3260 | } | |
cf694132 | 3261 | { |
4268f798 | 3262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3263 | _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1); |
cf694132 | 3264 | |
4268f798 | 3265 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3266 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3267 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3268 | return _resultobj; |
3269 | } | |
3270 | ||
c7e7022c RD |
3271 | #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3272 | static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3273 | PyObject * _resultobj; |
3274 | long _result; | |
c7e7022c | 3275 | wxPyListCtrl * _arg0; |
8ab979d7 | 3276 | long _arg1; |
c7e7022c RD |
3277 | int _arg2; |
3278 | wxString * _arg3; | |
3279 | int _arg4 = (int ) -1; | |
1d99702e | 3280 | PyObject * _argo0 = 0; |
c7e7022c RD |
3281 | PyObject * _obj3 = 0; |
3282 | char *_kwnames[] = { "self","index","col","label","imageId", NULL }; | |
8ab979d7 RD |
3283 | |
3284 | self = self; | |
c7e7022c | 3285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
8ab979d7 | 3286 | return NULL; |
1d99702e RD |
3287 | if (_argo0) { |
3288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3291 | return NULL; |
3292 | } | |
3293 | } | |
3294 | { | |
c8bc7bb8 RD |
3295 | _arg3 = wxString_in_helper(_obj3); |
3296 | if (_arg3 == NULL) | |
185d7c3e | 3297 | return NULL; |
8ab979d7 | 3298 | } |
cf694132 | 3299 | { |
4268f798 | 3300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3301 | _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4); |
cf694132 | 3302 | |
4268f798 | 3303 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3304 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3305 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 3306 | { |
c7e7022c RD |
3307 | if (_obj3) |
3308 | delete _arg3; | |
8ab979d7 RD |
3309 | } |
3310 | return _resultobj; | |
3311 | } | |
3312 | ||
c7e7022c RD |
3313 | #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1)) |
3314 | static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3315 | PyObject * _resultobj; |
c7e7022c RD |
3316 | int _result; |
3317 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
3318 | long _arg1; |
3319 | long _arg2; | |
1d99702e | 3320 | PyObject * _argo0 = 0; |
c7e7022c | 3321 | char *_kwnames[] = { "self","item","stateMask", NULL }; |
8ab979d7 RD |
3322 | |
3323 | self = self; | |
c7e7022c | 3324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3325 | return NULL; |
1d99702e RD |
3326 | if (_argo0) { |
3327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3330 | return NULL; |
3331 | } | |
3332 | } | |
cf694132 | 3333 | { |
4268f798 | 3334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3335 | _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2); |
cf694132 | 3336 | |
4268f798 | 3337 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3338 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3339 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3340 | return _resultobj; |
3341 | } | |
3342 | ||
c7e7022c RD |
3343 | #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2)) |
3344 | static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3345 | PyObject * _resultobj; |
c7e7022c RD |
3346 | bool _result; |
3347 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3348 | long _arg1; |
c7e7022c RD |
3349 | long _arg2; |
3350 | long _arg3; | |
1d99702e | 3351 | PyObject * _argo0 = 0; |
c7e7022c | 3352 | char *_kwnames[] = { "self","item","state","stateMask", NULL }; |
8ab979d7 RD |
3353 | |
3354 | self = self; | |
c7e7022c | 3355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3356 | return NULL; |
1d99702e RD |
3357 | if (_argo0) { |
3358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3361 | return NULL; |
3362 | } | |
3363 | } | |
cf694132 | 3364 | { |
4268f798 | 3365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3366 | _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3367 | |
4268f798 | 3368 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3369 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3370 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3371 | return _resultobj; |
3372 | } | |
3373 | ||
c7e7022c RD |
3374 | #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
3375 | static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3376 | PyObject * _resultobj; |
3377 | bool _result; | |
c7e7022c RD |
3378 | wxPyListCtrl * _arg0; |
3379 | long _arg1; | |
3380 | int _arg2; | |
3381 | int _arg3; | |
1d99702e | 3382 | PyObject * _argo0 = 0; |
c7e7022c | 3383 | char *_kwnames[] = { "self","item","image","selImage", NULL }; |
8ab979d7 RD |
3384 | |
3385 | self = self; | |
c7e7022c | 3386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3387 | return NULL; |
1d99702e RD |
3388 | if (_argo0) { |
3389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3392 | return NULL; |
3393 | } | |
3394 | } | |
cf694132 | 3395 | { |
4268f798 | 3396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3397 | _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3398 | |
4268f798 | 3399 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3400 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3401 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3402 | return _resultobj; |
3403 | } | |
3404 | ||
c7e7022c RD |
3405 | #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
3406 | static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3407 | PyObject * _resultobj; |
c7e7022c RD |
3408 | wxString * _result; |
3409 | wxPyListCtrl * _arg0; | |
3410 | long _arg1; | |
1d99702e | 3411 | PyObject * _argo0 = 0; |
c7e7022c | 3412 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3413 | |
3414 | self = self; | |
c7e7022c | 3415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3416 | return NULL; |
1d99702e RD |
3417 | if (_argo0) { |
3418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3421 | return NULL; |
3422 | } | |
3423 | } | |
cf694132 | 3424 | { |
4268f798 | 3425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3426 | _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1)); |
cf694132 | 3427 | |
4268f798 | 3428 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3429 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3430 | }{ |
c8bc7bb8 RD |
3431 | #if wxUSE_UNICODE |
3432 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3433 | #else | |
c7e7022c | 3434 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3435 | #endif |
c7e7022c RD |
3436 | } |
3437 | { | |
3438 | delete _result; | |
3439 | } | |
8ab979d7 RD |
3440 | return _resultobj; |
3441 | } | |
3442 | ||
c7e7022c RD |
3443 | #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
3444 | static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3445 | PyObject * _resultobj; |
c7e7022c RD |
3446 | wxPyListCtrl * _arg0; |
3447 | long _arg1; | |
3448 | wxString * _arg2; | |
1d99702e | 3449 | PyObject * _argo0 = 0; |
c7e7022c RD |
3450 | PyObject * _obj2 = 0; |
3451 | char *_kwnames[] = { "self","item","str", NULL }; | |
8ab979d7 RD |
3452 | |
3453 | self = self; | |
c7e7022c | 3454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3455 | return NULL; |
1d99702e RD |
3456 | if (_argo0) { |
3457 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3458 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3460 | return NULL; |
3461 | } | |
3462 | } | |
cf694132 | 3463 | { |
c8bc7bb8 RD |
3464 | _arg2 = wxString_in_helper(_obj2); |
3465 | if (_arg2 == NULL) | |
8ab979d7 | 3466 | return NULL; |
c7e7022c | 3467 | } |
cf694132 | 3468 | { |
4268f798 | 3469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3470 | wxListCtrl_SetItemText(_arg0,_arg1,*_arg2); |
cf694132 | 3471 | |
4268f798 | 3472 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3473 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
3474 | } Py_INCREF(Py_None); |
3475 | _resultobj = Py_None; | |
3476 | { | |
3477 | if (_obj2) | |
3478 | delete _arg2; | |
3479 | } | |
8ab979d7 RD |
3480 | return _resultobj; |
3481 | } | |
3482 | ||
3483 | #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0)) | |
efc5f224 | 3484 | static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3485 | PyObject * _resultobj; |
3486 | long _result; | |
c7e7022c | 3487 | wxPyListCtrl * _arg0; |
8ab979d7 | 3488 | long _arg1; |
1d99702e | 3489 | PyObject * _argo0 = 0; |
efc5f224 | 3490 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3491 | |
3492 | self = self; | |
efc5f224 | 3493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3494 | return NULL; |
1d99702e RD |
3495 | if (_argo0) { |
3496 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3497 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3499 | return NULL; |
3500 | } | |
3501 | } | |
cf694132 | 3502 | { |
4268f798 | 3503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3504 | _result = (long )wxListCtrl_GetItemData(_arg0,_arg1); |
cf694132 | 3505 | |
4268f798 | 3506 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3507 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3508 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
3509 | return _resultobj; |
3510 | } | |
3511 | ||
c7e7022c RD |
3512 | #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1)) |
3513 | static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3514 | PyObject * _resultobj; |
c7e7022c RD |
3515 | bool _result; |
3516 | wxPyListCtrl * _arg0; | |
0699c864 | 3517 | long _arg1; |
c7e7022c | 3518 | long _arg2; |
1d99702e | 3519 | PyObject * _argo0 = 0; |
c7e7022c | 3520 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
3521 | |
3522 | self = self; | |
c7e7022c | 3523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3524 | return NULL; |
1d99702e RD |
3525 | if (_argo0) { |
3526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3529 | return NULL; |
3530 | } | |
3531 | } | |
cf694132 | 3532 | { |
4268f798 | 3533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3534 | _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2); |
cf694132 | 3535 | |
4268f798 | 3536 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3537 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3538 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3539 | return _resultobj; |
3540 | } | |
3541 | ||
c7e7022c | 3542 | static wxPoint * wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item) { |
8ab979d7 RD |
3543 | wxPoint* pos = new wxPoint; |
3544 | self->GetItemPosition(item, *pos); | |
3545 | return pos; | |
3546 | } | |
efc5f224 | 3547 | static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3548 | PyObject * _resultobj; |
3549 | wxPoint * _result; | |
c7e7022c | 3550 | wxPyListCtrl * _arg0; |
8ab979d7 | 3551 | long _arg1; |
1d99702e | 3552 | PyObject * _argo0 = 0; |
efc5f224 | 3553 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3554 | char _ptemp[128]; |
3555 | ||
3556 | self = self; | |
efc5f224 | 3557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3558 | return NULL; |
1d99702e RD |
3559 | if (_argo0) { |
3560 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3561 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3563 | return NULL; |
3564 | } | |
3565 | } | |
cf694132 | 3566 | { |
4268f798 | 3567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3568 | _result = (wxPoint *)wxPyListCtrl_GetItemPosition(_arg0,_arg1); |
cf694132 | 3569 | |
4268f798 | 3570 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3571 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3572 | } if (_result) { |
3573 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
3574 | _resultobj = Py_BuildValue("s",_ptemp); | |
3575 | } else { | |
3576 | Py_INCREF(Py_None); | |
3577 | _resultobj = Py_None; | |
3578 | } | |
8ab979d7 RD |
3579 | return _resultobj; |
3580 | } | |
3581 | ||
c7e7022c | 3582 | static wxRect * wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code) { |
8ab979d7 RD |
3583 | wxRect* rect= new wxRect; |
3584 | self->GetItemRect(item, *rect, code); | |
3585 | return rect; | |
3586 | } | |
efc5f224 | 3587 | static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3588 | PyObject * _resultobj; |
3589 | wxRect * _result; | |
c7e7022c | 3590 | wxPyListCtrl * _arg0; |
8ab979d7 | 3591 | long _arg1; |
1d99702e RD |
3592 | int _arg2 = (int ) (wxLIST_RECT_BOUNDS); |
3593 | PyObject * _argo0 = 0; | |
efc5f224 | 3594 | char *_kwnames[] = { "self","item","code", NULL }; |
8ab979d7 RD |
3595 | char _ptemp[128]; |
3596 | ||
3597 | self = self; | |
efc5f224 | 3598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3599 | return NULL; |
1d99702e RD |
3600 | if (_argo0) { |
3601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3604 | return NULL; |
3605 | } | |
3606 | } | |
cf694132 | 3607 | { |
4268f798 | 3608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3609 | _result = (wxRect *)wxPyListCtrl_GetItemRect(_arg0,_arg1,_arg2); |
cf694132 | 3610 | |
4268f798 | 3611 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3612 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3613 | } if (_result) { |
3614 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
3615 | _resultobj = Py_BuildValue("s",_ptemp); | |
3616 | } else { | |
3617 | Py_INCREF(Py_None); | |
3618 | _resultobj = Py_None; | |
3619 | } | |
8ab979d7 RD |
3620 | return _resultobj; |
3621 | } | |
3622 | ||
c7e7022c RD |
3623 | #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1)) |
3624 | static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3625 | PyObject * _resultobj; |
c7e7022c RD |
3626 | bool _result; |
3627 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3628 | long _arg1; |
c7e7022c | 3629 | wxPoint * _arg2; |
1d99702e | 3630 | PyObject * _argo0 = 0; |
c7e7022c RD |
3631 | wxPoint temp; |
3632 | PyObject * _obj2 = 0; | |
3633 | char *_kwnames[] = { "self","item","pos", NULL }; | |
8ab979d7 RD |
3634 | |
3635 | self = self; | |
c7e7022c | 3636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3637 | return NULL; |
1d99702e RD |
3638 | if (_argo0) { |
3639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3642 | return NULL; |
3643 | } | |
3644 | } | |
c7e7022c RD |
3645 | { |
3646 | _arg2 = &temp; | |
3647 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3648 | return NULL; | |
3649 | } | |
cf694132 | 3650 | { |
4268f798 | 3651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3652 | _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2); |
cf694132 | 3653 | |
4268f798 | 3654 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3655 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3656 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3657 | return _resultobj; |
3658 | } | |
3659 | ||
3660 | #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
efc5f224 | 3661 | static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3662 | PyObject * _resultobj; |
3663 | int _result; | |
c7e7022c | 3664 | wxPyListCtrl * _arg0; |
1d99702e | 3665 | PyObject * _argo0 = 0; |
efc5f224 | 3666 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3667 | |
3668 | self = self; | |
efc5f224 | 3669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3670 | return NULL; |
1d99702e RD |
3671 | if (_argo0) { |
3672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3675 | return NULL; |
3676 | } | |
3677 | } | |
cf694132 | 3678 | { |
4268f798 | 3679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3680 | _result = (int )wxListCtrl_GetItemCount(_arg0); |
cf694132 | 3681 | |
4268f798 | 3682 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3683 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3684 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3685 | return _resultobj; |
3686 | } | |
3687 | ||
c7e7022c RD |
3688 | #define wxListCtrl_GetColumnCount(_swigobj) (_swigobj->GetColumnCount()) |
3689 | static PyObject *_wrap_wxListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3690 | PyObject * _resultobj; |
3691 | int _result; | |
c7e7022c | 3692 | wxPyListCtrl * _arg0; |
1d99702e | 3693 | PyObject * _argo0 = 0; |
c7e7022c | 3694 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3695 | |
3696 | self = self; | |
c7e7022c | 3697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetColumnCount",_kwnames,&_argo0)) |
8ab979d7 | 3698 | return NULL; |
1d99702e RD |
3699 | if (_argo0) { |
3700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3703 | return NULL; |
3704 | } | |
3705 | } | |
cf694132 | 3706 | { |
4268f798 | 3707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3708 | _result = (int )wxListCtrl_GetColumnCount(_arg0); |
cf694132 | 3709 | |
4268f798 | 3710 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3711 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3712 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3713 | return _resultobj; |
3714 | } | |
3715 | ||
c7e7022c RD |
3716 | #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0)) |
3717 | static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3718 | PyObject * _resultobj; |
c7e7022c RD |
3719 | int _result; |
3720 | wxPyListCtrl * _arg0; | |
3721 | bool _arg1; | |
1d99702e | 3722 | PyObject * _argo0 = 0; |
c7e7022c RD |
3723 | int tempbool1; |
3724 | char *_kwnames[] = { "self","isSmall", NULL }; | |
8ab979d7 RD |
3725 | |
3726 | self = self; | |
c7e7022c | 3727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3728 | return NULL; |
1d99702e RD |
3729 | if (_argo0) { |
3730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3733 | return NULL; |
3734 | } | |
3735 | } | |
c7e7022c | 3736 | _arg1 = (bool ) tempbool1; |
8ab979d7 | 3737 | { |
4268f798 | 3738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3739 | _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1); |
cf694132 | 3740 | |
4268f798 | 3741 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3742 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3743 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3744 | return _resultobj; |
3745 | } | |
3746 | ||
c7e7022c RD |
3747 | #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount()) |
3748 | static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3749 | PyObject * _resultobj; |
c7e7022c RD |
3750 | int _result; |
3751 | wxPyListCtrl * _arg0; | |
1d99702e | 3752 | PyObject * _argo0 = 0; |
c7e7022c | 3753 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3754 | |
3755 | self = self; | |
c7e7022c | 3756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3757 | return NULL; |
1d99702e RD |
3758 | if (_argo0) { |
3759 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3762 | return NULL; |
3763 | } | |
3764 | } | |
cf694132 | 3765 | { |
4268f798 | 3766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3767 | _result = (int )wxListCtrl_GetSelectedItemCount(_arg0); |
cf694132 | 3768 | |
4268f798 | 3769 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3770 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3771 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3772 | return _resultobj; |
3773 | } | |
3774 | ||
c7e7022c RD |
3775 | #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
3776 | static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3777 | PyObject * _resultobj; |
c7e7022c RD |
3778 | wxColour * _result; |
3779 | wxPyListCtrl * _arg0; | |
1d99702e | 3780 | PyObject * _argo0 = 0; |
efc5f224 | 3781 | char *_kwnames[] = { "self", NULL }; |
c7e7022c | 3782 | char _ptemp[128]; |
8ab979d7 RD |
3783 | |
3784 | self = self; | |
c7e7022c | 3785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 3786 | return NULL; |
1d99702e RD |
3787 | if (_argo0) { |
3788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3791 | return NULL; |
3792 | } | |
3793 | } | |
cf694132 | 3794 | { |
4268f798 | 3795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3796 | _result = new wxColour (wxListCtrl_GetTextColour(_arg0)); |
cf694132 | 3797 | |
4268f798 | 3798 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3799 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3800 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
3801 | _resultobj = Py_BuildValue("s",_ptemp); |
3802 | return _resultobj; | |
3803 | } | |
3804 | ||
be4d9c1f | 3805 | #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
efc5f224 | 3806 | static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
be4d9c1f | 3807 | PyObject * _resultobj; |
c7e7022c | 3808 | wxPyListCtrl * _arg0; |
be4d9c1f | 3809 | wxColour * _arg1; |
1d99702e | 3810 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3811 | wxColour temp; |
3812 | PyObject * _obj1 = 0; | |
efc5f224 | 3813 | char *_kwnames[] = { "self","col", NULL }; |
be4d9c1f RD |
3814 | |
3815 | self = self; | |
f6bcfd97 | 3816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1)) |
be4d9c1f | 3817 | return NULL; |
1d99702e RD |
3818 | if (_argo0) { |
3819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxPyListCtrl_p."); | |
be4d9c1f RD |
3822 | return NULL; |
3823 | } | |
3824 | } | |
f6bcfd97 BP |
3825 | { |
3826 | _arg1 = &temp; | |
3827 | if (! wxColour_helper(_obj1, &_arg1)) | |
be4d9c1f | 3828 | return NULL; |
f6bcfd97 | 3829 | } |
cf694132 | 3830 | { |
4268f798 | 3831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3832 | wxListCtrl_SetTextColour(_arg0,*_arg1); |
cf694132 | 3833 | |
4268f798 | 3834 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3835 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3836 | } Py_INCREF(Py_None); |
be4d9c1f RD |
3837 | _resultobj = Py_None; |
3838 | return _resultobj; | |
3839 | } | |
3840 | ||
8ab979d7 | 3841 | #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem()) |
efc5f224 | 3842 | static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3843 | PyObject * _resultobj; |
3844 | long _result; | |
c7e7022c | 3845 | wxPyListCtrl * _arg0; |
1d99702e | 3846 | PyObject * _argo0 = 0; |
efc5f224 | 3847 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3848 | |
3849 | self = self; | |
efc5f224 | 3850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0)) |
8ab979d7 | 3851 | return NULL; |
1d99702e RD |
3852 | if (_argo0) { |
3853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3856 | return NULL; |
3857 | } | |
3858 | } | |
cf694132 | 3859 | { |
4268f798 | 3860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3861 | _result = (long )wxListCtrl_GetTopItem(_arg0); |
cf694132 | 3862 | |
4268f798 | 3863 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3864 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3865 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
3866 | return _resultobj; |
3867 | } | |
3868 | ||
c7e7022c RD |
3869 | #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1)) |
3870 | static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3871 | PyObject * _resultobj; |
c7e7022c RD |
3872 | wxPyListCtrl * _arg0; |
3873 | long _arg1; | |
3874 | bool _arg2 = (bool ) TRUE; | |
1d99702e | 3875 | PyObject * _argo0 = 0; |
c7e7022c RD |
3876 | int tempbool2 = (int) TRUE; |
3877 | char *_kwnames[] = { "self","style","add", NULL }; | |
8ab979d7 RD |
3878 | |
3879 | self = self; | |
c7e7022c | 3880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 3881 | return NULL; |
1d99702e RD |
3882 | if (_argo0) { |
3883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3886 | return NULL; |
3887 | } | |
3888 | } | |
c7e7022c | 3889 | _arg2 = (bool ) tempbool2; |
cf694132 | 3890 | { |
4268f798 | 3891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3892 | wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2); |
cf694132 | 3893 | |
4268f798 | 3894 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3895 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
3896 | } Py_INCREF(Py_None); |
3897 | _resultobj = Py_None; | |
8ab979d7 RD |
3898 | return _resultobj; |
3899 | } | |
3900 | ||
c7e7022c RD |
3901 | #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
3902 | static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3903 | PyObject * _resultobj; |
c7e7022c | 3904 | wxPyListCtrl * _arg0; |
8ab979d7 | 3905 | long _arg1; |
1d99702e | 3906 | PyObject * _argo0 = 0; |
c7e7022c | 3907 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
3908 | |
3909 | self = self; | |
c7e7022c | 3910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3911 | return NULL; |
1d99702e RD |
3912 | if (_argo0) { |
3913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3916 | return NULL; |
3917 | } | |
3918 | } | |
cf694132 | 3919 | { |
4268f798 | 3920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3921 | wxListCtrl_SetWindowStyleFlag(_arg0,_arg1); |
cf694132 | 3922 | |
4268f798 | 3923 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3924 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
3925 | } Py_INCREF(Py_None); |
3926 | _resultobj = Py_None; | |
8ab979d7 RD |
3927 | return _resultobj; |
3928 | } | |
3929 | ||
c7e7022c RD |
3930 | #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2)) |
3931 | static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3932 | PyObject * _resultobj; |
3933 | long _result; | |
c7e7022c | 3934 | wxPyListCtrl * _arg0; |
8ab979d7 | 3935 | long _arg1; |
c7e7022c RD |
3936 | int _arg2 = (int ) (wxLIST_NEXT_ALL); |
3937 | int _arg3 = (int ) (wxLIST_STATE_DONTCARE); | |
1d99702e | 3938 | PyObject * _argo0 = 0; |
c7e7022c | 3939 | char *_kwnames[] = { "self","item","geometry","state", NULL }; |
8ab979d7 RD |
3940 | |
3941 | self = self; | |
c7e7022c | 3942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3943 | return NULL; |
1d99702e RD |
3944 | if (_argo0) { |
3945 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3946 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3948 | return NULL; |
3949 | } | |
3950 | } | |
3951 | { | |
4268f798 | 3952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3953 | _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3); |
c7e7022c | 3954 | |
4268f798 | 3955 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
3956 | if (PyErr_Occurred()) return NULL; |
3957 | } _resultobj = Py_BuildValue("l",_result); | |
3958 | return _resultobj; | |
3959 | } | |
3960 | ||
3961 | #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0)) | |
3962 | static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3963 | PyObject * _resultobj; | |
3964 | wxImageList * _result; | |
3965 | wxPyListCtrl * _arg0; | |
3966 | int _arg1; | |
3967 | PyObject * _argo0 = 0; | |
3968 | char *_kwnames[] = { "self","which", NULL }; | |
3969 | ||
3970 | self = self; | |
3971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1)) | |
185d7c3e | 3972 | return NULL; |
c7e7022c RD |
3973 | if (_argo0) { |
3974 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3975 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3976 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 | 3977 | return NULL; |
c7e7022c | 3978 | } |
8ab979d7 | 3979 | } |
cf694132 | 3980 | { |
4268f798 | 3981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3982 | _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1); |
cf694132 | 3983 | |
4268f798 | 3984 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3985 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3986 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
3987 | return _resultobj; |
3988 | } | |
3989 | ||
c7e7022c RD |
3990 | #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1)) |
3991 | static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3992 | PyObject * _resultobj; |
c7e7022c RD |
3993 | wxPyListCtrl * _arg0; |
3994 | wxImageList * _arg1; | |
3995 | int _arg2; | |
1d99702e RD |
3996 | PyObject * _argo0 = 0; |
3997 | PyObject * _argo1 = 0; | |
c7e7022c | 3998 | char *_kwnames[] = { "self","imageList","which", NULL }; |
8ab979d7 RD |
3999 | |
4000 | self = self; | |
c7e7022c | 4001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4002 | return NULL; |
1d99702e RD |
4003 | if (_argo0) { |
4004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4007 | return NULL; |
4008 | } | |
4009 | } | |
1d99702e RD |
4010 | if (_argo1) { |
4011 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
c7e7022c RD |
4012 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { |
4013 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p."); | |
8ab979d7 RD |
4014 | return NULL; |
4015 | } | |
4016 | } | |
cf694132 | 4017 | { |
4268f798 | 4018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4019 | wxListCtrl_SetImageList(_arg0,_arg1,_arg2); |
cf694132 | 4020 | |
4268f798 | 4021 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4022 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4023 | } Py_INCREF(Py_None); |
4024 | _resultobj = Py_None; | |
8ab979d7 RD |
4025 | return _resultobj; |
4026 | } | |
4027 | ||
c7e7022c RD |
4028 | #define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1)) |
4029 | static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4030 | PyObject * _resultobj; |
c7e7022c RD |
4031 | wxPyListCtrl * _arg0; |
4032 | wxImageList * _arg1; | |
4033 | int _arg2; | |
1d99702e | 4034 | PyObject * _argo0 = 0; |
c7e7022c RD |
4035 | PyObject * _argo1 = 0; |
4036 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
8ab979d7 RD |
4037 | |
4038 | self = self; | |
c7e7022c | 4039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4040 | return NULL; |
1d99702e RD |
4041 | if (_argo0) { |
4042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4045 | return NULL; |
4046 | } | |
4047 | } | |
c7e7022c RD |
4048 | if (_argo1) { |
4049 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4050 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p."); | |
8ab979d7 | 4052 | return NULL; |
c7e7022c | 4053 | } |
8ab979d7 | 4054 | } |
cf694132 | 4055 | { |
4268f798 | 4056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4057 | wxListCtrl_AssignImageList(_arg0,_arg1,_arg2); |
cf694132 | 4058 | |
4268f798 | 4059 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4060 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4061 | } Py_INCREF(Py_None); |
4062 | _resultobj = Py_None; | |
8ab979d7 RD |
4063 | return _resultobj; |
4064 | } | |
4065 | ||
c7e7022c RD |
4066 | #define wxListCtrl_IsVirtual(_swigobj) (_swigobj->IsVirtual()) |
4067 | static PyObject *_wrap_wxListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4068 | PyObject * _resultobj; |
c7e7022c RD |
4069 | bool _result; |
4070 | wxPyListCtrl * _arg0; | |
1d99702e | 4071 | PyObject * _argo0 = 0; |
c7e7022c | 4072 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4073 | |
4074 | self = self; | |
c7e7022c | 4075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_IsVirtual",_kwnames,&_argo0)) |
8ab979d7 | 4076 | return NULL; |
1d99702e RD |
4077 | if (_argo0) { |
4078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_IsVirtual. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4081 | return NULL; |
4082 | } | |
4083 | } | |
cf694132 | 4084 | { |
4268f798 | 4085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4086 | _result = (bool )wxListCtrl_IsVirtual(_arg0); |
cf694132 | 4087 | |
4268f798 | 4088 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4089 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4090 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4091 | return _resultobj; |
4092 | } | |
4093 | ||
c7e7022c RD |
4094 | #define wxListCtrl_RefreshItem(_swigobj,_swigarg0) (_swigobj->RefreshItem(_swigarg0)) |
4095 | static PyObject *_wrap_wxListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4096 | PyObject * _resultobj; |
c7e7022c | 4097 | wxPyListCtrl * _arg0; |
8ab979d7 | 4098 | long _arg1; |
1d99702e | 4099 | PyObject * _argo0 = 0; |
c7e7022c | 4100 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4101 | |
4102 | self = self; | |
c7e7022c | 4103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_RefreshItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4104 | return NULL; |
1d99702e RD |
4105 | if (_argo0) { |
4106 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4107 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4109 | return NULL; |
4110 | } | |
4111 | } | |
cf694132 | 4112 | { |
4268f798 | 4113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4114 | wxListCtrl_RefreshItem(_arg0,_arg1); |
cf694132 | 4115 | |
4268f798 | 4116 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4117 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4118 | } Py_INCREF(Py_None); |
4119 | _resultobj = Py_None; | |
8ab979d7 RD |
4120 | return _resultobj; |
4121 | } | |
4122 | ||
c7e7022c RD |
4123 | #define wxListCtrl_RefreshItems(_swigobj,_swigarg0,_swigarg1) (_swigobj->RefreshItems(_swigarg0,_swigarg1)) |
4124 | static PyObject *_wrap_wxListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4125 | PyObject * _resultobj; |
c7e7022c RD |
4126 | wxPyListCtrl * _arg0; |
4127 | long _arg1; | |
4128 | long _arg2; | |
1d99702e | 4129 | PyObject * _argo0 = 0; |
c7e7022c | 4130 | char *_kwnames[] = { "self","itemFrom","itemTo", NULL }; |
8ab979d7 RD |
4131 | |
4132 | self = self; | |
c7e7022c | 4133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_RefreshItems",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4134 | return NULL; |
1d99702e RD |
4135 | if (_argo0) { |
4136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItems. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4139 | return NULL; |
4140 | } | |
4141 | } | |
cf694132 | 4142 | { |
4268f798 | 4143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4144 | wxListCtrl_RefreshItems(_arg0,_arg1,_arg2); |
cf694132 | 4145 | |
4268f798 | 4146 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4147 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4148 | } Py_INCREF(Py_None); |
4149 | _resultobj = Py_None; | |
8ab979d7 RD |
4150 | return _resultobj; |
4151 | } | |
4152 | ||
c7e7022c RD |
4153 | #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0)) |
4154 | static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4155 | PyObject * _resultobj; |
c7e7022c RD |
4156 | bool _result; |
4157 | wxPyListCtrl * _arg0; | |
4158 | int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT); | |
1d99702e | 4159 | PyObject * _argo0 = 0; |
c7e7022c | 4160 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
4161 | |
4162 | self = self; | |
c7e7022c | 4163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4164 | return NULL; |
1d99702e RD |
4165 | if (_argo0) { |
4166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4169 | return NULL; |
4170 | } | |
4171 | } | |
cf694132 | 4172 | { |
4268f798 | 4173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4174 | _result = (bool )wxListCtrl_Arrange(_arg0,_arg1); |
cf694132 | 4175 | |
4268f798 | 4176 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4177 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4178 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4179 | return _resultobj; |
4180 | } | |
4181 | ||
c7e7022c RD |
4182 | #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0)) |
4183 | static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4184 | PyObject * _resultobj; |
4185 | bool _result; | |
c7e7022c RD |
4186 | wxPyListCtrl * _arg0; |
4187 | long _arg1; | |
1d99702e | 4188 | PyObject * _argo0 = 0; |
c7e7022c | 4189 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4190 | |
4191 | self = self; | |
c7e7022c | 4192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4193 | return NULL; |
1d99702e RD |
4194 | if (_argo0) { |
4195 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4196 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4198 | return NULL; |
4199 | } | |
4200 | } | |
c7e7022c | 4201 | { |
4268f798 | 4202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4203 | _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1); |
c7e7022c | 4204 | |
4268f798 | 4205 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4206 | if (PyErr_Occurred()) return NULL; |
4207 | } _resultobj = Py_BuildValue("i",_result); | |
4208 | return _resultobj; | |
4209 | } | |
4210 | ||
4211 | #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
4212 | static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4213 | PyObject * _resultobj; | |
4214 | bool _result; | |
4215 | wxPyListCtrl * _arg0; | |
4216 | PyObject * _argo0 = 0; | |
4217 | char *_kwnames[] = { "self", NULL }; | |
4218 | ||
4219 | self = self; | |
4220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0)) | |
4221 | return NULL; | |
4222 | if (_argo0) { | |
4223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4226 | return NULL; |
4227 | } | |
4228 | } | |
cf694132 | 4229 | { |
4268f798 | 4230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4231 | _result = (bool )wxListCtrl_DeleteAllItems(_arg0); |
cf694132 | 4232 | |
4268f798 | 4233 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4234 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4235 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4236 | return _resultobj; |
4237 | } | |
4238 | ||
c7e7022c RD |
4239 | #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0)) |
4240 | static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4241 | PyObject * _resultobj; |
4242 | bool _result; | |
c7e7022c | 4243 | wxPyListCtrl * _arg0; |
8ab979d7 | 4244 | int _arg1; |
1d99702e | 4245 | PyObject * _argo0 = 0; |
c7e7022c | 4246 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
4247 | |
4248 | self = self; | |
c7e7022c | 4249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4250 | return NULL; |
1d99702e RD |
4251 | if (_argo0) { |
4252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4255 | return NULL; |
4256 | } | |
4257 | } | |
cf694132 | 4258 | { |
4268f798 | 4259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4260 | _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1); |
cf694132 | 4261 | |
4268f798 | 4262 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4263 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4264 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4265 | return _resultobj; |
4266 | } | |
4267 | ||
c7e7022c RD |
4268 | #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns()) |
4269 | static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4270 | PyObject * _resultobj; |
c7e7022c RD |
4271 | bool _result; |
4272 | wxPyListCtrl * _arg0; | |
1d99702e | 4273 | PyObject * _argo0 = 0; |
c7e7022c | 4274 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4275 | |
4276 | self = self; | |
c7e7022c | 4277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0)) |
8ab979d7 | 4278 | return NULL; |
1d99702e RD |
4279 | if (_argo0) { |
4280 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4281 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4282 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4283 | return NULL; |
4284 | } | |
4285 | } | |
c7e7022c | 4286 | { |
4268f798 | 4287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4288 | _result = (bool )wxListCtrl_DeleteAllColumns(_arg0); |
c7e7022c | 4289 | |
4268f798 | 4290 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4291 | if (PyErr_Occurred()) return NULL; |
4292 | } _resultobj = Py_BuildValue("i",_result); | |
4293 | return _resultobj; | |
4294 | } | |
4295 | ||
4296 | #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll()) | |
4297 | static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4298 | PyObject * _resultobj; | |
4299 | wxPyListCtrl * _arg0; | |
4300 | PyObject * _argo0 = 0; | |
4301 | char *_kwnames[] = { "self", NULL }; | |
4302 | ||
4303 | self = self; | |
4304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0)) | |
4305 | return NULL; | |
4306 | if (_argo0) { | |
4307 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4308 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4310 | return NULL; |
4311 | } | |
4312 | } | |
cf694132 | 4313 | { |
4268f798 | 4314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4315 | wxListCtrl_ClearAll(_arg0); |
cf694132 | 4316 | |
4268f798 | 4317 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4318 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4319 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4320 | _resultobj = Py_None; |
4321 | return _resultobj; | |
4322 | } | |
4323 | ||
c7e7022c RD |
4324 | #define wxListCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) |
4325 | static PyObject *_wrap_wxListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4326 | PyObject * _resultobj; | |
4327 | wxTextCtrl * _result; | |
4328 | wxPyListCtrl * _arg0; | |
4329 | long _arg1; | |
4330 | PyObject * _argo0 = 0; | |
4331 | char *_kwnames[] = { "self","item", NULL }; | |
4332 | ||
4333 | self = self; | |
4334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EditLabel",_kwnames,&_argo0,&_arg1)) | |
4335 | return NULL; | |
4336 | if (_argo0) { | |
4337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EditLabel. Expected _wxPyListCtrl_p."); | |
4340 | return NULL; | |
4341 | } | |
4342 | } | |
4343 | { | |
4268f798 | 4344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4345 | _result = (wxTextCtrl *)wxListCtrl_EditLabel(_arg0,_arg1); |
c7e7022c | 4346 | |
4268f798 | 4347 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4348 | if (PyErr_Occurred()) return NULL; |
4349 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
4350 | return _resultobj; | |
4351 | } | |
4352 | ||
4353 | #define wxListCtrl_EndEditLabel(_swigobj,_swigarg0) (_swigobj->EndEditLabel(_swigarg0)) | |
4354 | static PyObject *_wrap_wxListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4355 | PyObject * _resultobj; |
4356 | bool _result; | |
c7e7022c RD |
4357 | wxPyListCtrl * _arg0; |
4358 | bool _arg1; | |
1d99702e | 4359 | PyObject * _argo0 = 0; |
c7e7022c RD |
4360 | int tempbool1; |
4361 | char *_kwnames[] = { "self","cancel", NULL }; | |
8ab979d7 RD |
4362 | |
4363 | self = self; | |
c7e7022c | 4364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_EndEditLabel",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4365 | return NULL; |
1d99702e RD |
4366 | if (_argo0) { |
4367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EndEditLabel. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4370 | return NULL; |
4371 | } | |
4372 | } | |
c7e7022c RD |
4373 | _arg1 = (bool ) tempbool1; |
4374 | { | |
4268f798 | 4375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4376 | _result = (bool )wxListCtrl_EndEditLabel(_arg0,_arg1); |
c7e7022c | 4377 | |
4268f798 | 4378 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4379 | if (PyErr_Occurred()) return NULL; |
4380 | } _resultobj = Py_BuildValue("i",_result); | |
4381 | return _resultobj; | |
4382 | } | |
4383 | ||
4384 | #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
4385 | static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4386 | PyObject * _resultobj; | |
4387 | bool _result; | |
4388 | wxPyListCtrl * _arg0; | |
4389 | long _arg1; | |
4390 | PyObject * _argo0 = 0; | |
4391 | char *_kwnames[] = { "self","item", NULL }; | |
4392 | ||
4393 | self = self; | |
4394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1)) | |
4395 | return NULL; | |
4396 | if (_argo0) { | |
4397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4400 | return NULL; |
4401 | } | |
4402 | } | |
cf694132 | 4403 | { |
4268f798 | 4404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4405 | _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1); |
cf694132 | 4406 | |
4268f798 | 4407 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4408 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4409 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4410 | return _resultobj; |
4411 | } | |
4412 | ||
c7e7022c RD |
4413 | #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4414 | static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4415 | PyObject * _resultobj; |
4416 | long _result; | |
c7e7022c | 4417 | wxPyListCtrl * _arg0; |
8ab979d7 | 4418 | long _arg1; |
c7e7022c RD |
4419 | wxString * _arg2; |
4420 | bool _arg3 = (bool ) FALSE; | |
1d99702e | 4421 | PyObject * _argo0 = 0; |
c7e7022c RD |
4422 | PyObject * _obj2 = 0; |
4423 | int tempbool3 = (int) FALSE; | |
4424 | char *_kwnames[] = { "self","start","str","partial", NULL }; | |
8ab979d7 RD |
4425 | |
4426 | self = self; | |
c7e7022c | 4427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
8ab979d7 | 4428 | return NULL; |
1d99702e RD |
4429 | if (_argo0) { |
4430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4433 | return NULL; |
4434 | } | |
4435 | } | |
4436 | { | |
c8bc7bb8 RD |
4437 | _arg2 = wxString_in_helper(_obj2); |
4438 | if (_arg2 == NULL) | |
8ab979d7 | 4439 | return NULL; |
8ab979d7 | 4440 | } |
c7e7022c | 4441 | _arg3 = (bool ) tempbool3; |
cf694132 | 4442 | { |
4268f798 | 4443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4444 | _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4445 | |
4268f798 | 4446 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4447 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4448 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 4449 | { |
c7e7022c RD |
4450 | if (_obj2) |
4451 | delete _arg2; | |
8ab979d7 RD |
4452 | } |
4453 | return _resultobj; | |
4454 | } | |
4455 | ||
c7e7022c RD |
4456 | #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1)) |
4457 | static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4458 | PyObject * _resultobj; |
c7e7022c RD |
4459 | long _result; |
4460 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4461 | long _arg1; |
4462 | long _arg2; | |
1d99702e | 4463 | PyObject * _argo0 = 0; |
c7e7022c | 4464 | char *_kwnames[] = { "self","start","data", NULL }; |
8ab979d7 RD |
4465 | |
4466 | self = self; | |
c7e7022c | 4467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4468 | return NULL; |
1d99702e RD |
4469 | if (_argo0) { |
4470 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4471 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4473 | return NULL; |
4474 | } | |
4475 | } | |
cf694132 | 4476 | { |
4268f798 | 4477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4478 | _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2); |
cf694132 | 4479 | |
4268f798 | 4480 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4481 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4482 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4483 | return _resultobj; |
4484 | } | |
4485 | ||
c7e7022c RD |
4486 | #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4487 | static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4488 | PyObject * _resultobj; |
c7e7022c RD |
4489 | long _result; |
4490 | wxPyListCtrl * _arg0; | |
4491 | long _arg1; | |
4492 | wxPoint * _arg2; | |
4493 | int _arg3; | |
4494 | PyObject * _argo0 = 0; | |
4495 | wxPoint temp; | |
4496 | PyObject * _obj2 = 0; | |
4497 | char *_kwnames[] = { "self","start","pt","direction", NULL }; | |
4498 | ||
4499 | self = self; | |
4500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) | |
4501 | return NULL; | |
4502 | if (_argo0) { | |
4503 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4504 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxPyListCtrl_p."); | |
4506 | return NULL; | |
4507 | } | |
4508 | } | |
4509 | { | |
4510 | _arg2 = &temp; | |
4511 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4512 | return NULL; | |
4513 | } | |
4514 | { | |
4268f798 | 4515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4516 | _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3); |
c7e7022c | 4517 | |
4268f798 | 4518 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4519 | if (PyErr_Occurred()) return NULL; |
4520 | } _resultobj = Py_BuildValue("l",_result); | |
4521 | return _resultobj; | |
4522 | } | |
4523 | ||
4524 | #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) | |
4525 | static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4526 | PyObject * _resultobj; | |
4527 | long _result; | |
4528 | wxPyListCtrl * _arg0; | |
4529 | wxPoint * _arg1; | |
4530 | int * _arg2; | |
4531 | int temp; | |
4532 | PyObject * _argo0 = 0; | |
4533 | wxPoint temp0; | |
4534 | PyObject * _obj1 = 0; | |
4535 | char *_kwnames[] = { "self","point", NULL }; | |
4536 | ||
4537 | self = self; | |
4538 | { | |
4539 | _arg2 = &temp; | |
4540 | } | |
4541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1)) | |
4542 | return NULL; | |
4543 | if (_argo0) { | |
4544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxPyListCtrl_p."); | |
4547 | return NULL; | |
4548 | } | |
4549 | } | |
4550 | { | |
4551 | _arg1 = &temp0; | |
4552 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4553 | return NULL; | |
4554 | } | |
4555 | { | |
4268f798 | 4556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4557 | _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2); |
c7e7022c | 4558 | |
4268f798 | 4559 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4560 | if (PyErr_Occurred()) return NULL; |
4561 | } _resultobj = Py_BuildValue("l",_result); | |
4562 | { | |
4563 | PyObject *o; | |
4564 | o = PyInt_FromLong((long) (*_arg2)); | |
4565 | _resultobj = t_output_helper(_resultobj, o); | |
4566 | } | |
4567 | return _resultobj; | |
4568 | } | |
4569 | ||
4570 | #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0)) | |
4571 | static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4572 | PyObject * _resultobj; | |
4573 | long _result; | |
4574 | wxPyListCtrl * _arg0; | |
4575 | wxListItem * _arg1; | |
4576 | PyObject * _argo0 = 0; | |
4577 | PyObject * _argo1 = 0; | |
4578 | char *_kwnames[] = { "self","info", NULL }; | |
4579 | ||
4580 | self = self; | |
4581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1)) | |
4582 | return NULL; | |
4583 | if (_argo0) { | |
4584 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4585 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxPyListCtrl_p."); | |
4587 | return NULL; | |
4588 | } | |
4589 | } | |
4590 | if (_argo1) { | |
4591 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4592 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
4593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p."); | |
4594 | return NULL; | |
4595 | } | |
4596 | } | |
4597 | { | |
4268f798 | 4598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4599 | _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1); |
c7e7022c | 4600 | |
4268f798 | 4601 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4602 | if (PyErr_Occurred()) return NULL; |
4603 | } _resultobj = Py_BuildValue("l",_result); | |
4604 | return _resultobj; | |
4605 | } | |
4606 | ||
4607 | #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
4608 | static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4609 | PyObject * _resultobj; | |
4610 | long _result; | |
4611 | wxPyListCtrl * _arg0; | |
4612 | long _arg1; | |
4613 | wxString * _arg2; | |
4614 | PyObject * _argo0 = 0; | |
4615 | PyObject * _obj2 = 0; | |
4616 | char *_kwnames[] = { "self","index","label", NULL }; | |
4617 | ||
4618 | self = self; | |
4619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4620 | return NULL; | |
4621 | if (_argo0) { | |
4622 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4623 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4624 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxPyListCtrl_p."); | |
4625 | return NULL; | |
4626 | } | |
4627 | } | |
4628 | { | |
c8bc7bb8 RD |
4629 | _arg2 = wxString_in_helper(_obj2); |
4630 | if (_arg2 == NULL) | |
c7e7022c | 4631 | return NULL; |
c7e7022c RD |
4632 | } |
4633 | { | |
4268f798 | 4634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4635 | _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2); |
c7e7022c | 4636 | |
4268f798 | 4637 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4638 | if (PyErr_Occurred()) return NULL; |
4639 | } _resultobj = Py_BuildValue("l",_result); | |
4640 | { | |
4641 | if (_obj2) | |
4642 | delete _arg2; | |
4643 | } | |
4644 | return _resultobj; | |
4645 | } | |
4646 | ||
4647 | #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
4648 | static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4649 | PyObject * _resultobj; | |
4650 | long _result; | |
4651 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4652 | long _arg1; |
4653 | int _arg2; | |
1d99702e | 4654 | PyObject * _argo0 = 0; |
c7e7022c | 4655 | char *_kwnames[] = { "self","index","imageIndex", NULL }; |
8ab979d7 RD |
4656 | |
4657 | self = self; | |
c7e7022c | 4658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4659 | return NULL; |
1d99702e RD |
4660 | if (_argo0) { |
4661 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4662 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4664 | return NULL; |
4665 | } | |
4666 | } | |
cf694132 | 4667 | { |
4268f798 | 4668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4669 | _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2); |
cf694132 | 4670 | |
4268f798 | 4671 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4672 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4673 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4674 | return _resultobj; |
4675 | } | |
4676 | ||
c7e7022c RD |
4677 | #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2)) |
4678 | static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4679 | PyObject * _resultobj; |
c7e7022c RD |
4680 | long _result; |
4681 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4682 | long _arg1; |
c7e7022c RD |
4683 | wxString * _arg2; |
4684 | int _arg3; | |
1d99702e | 4685 | PyObject * _argo0 = 0; |
2f90df85 | 4686 | PyObject * _obj2 = 0; |
c7e7022c | 4687 | char *_kwnames[] = { "self","index","label","imageIndex", NULL }; |
8ab979d7 RD |
4688 | |
4689 | self = self; | |
c7e7022c | 4690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4691 | return NULL; |
1d99702e RD |
4692 | if (_argo0) { |
4693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4696 | return NULL; |
4697 | } | |
4698 | } | |
2f90df85 | 4699 | { |
c8bc7bb8 RD |
4700 | _arg2 = wxString_in_helper(_obj2); |
4701 | if (_arg2 == NULL) | |
8ab979d7 | 4702 | return NULL; |
2f90df85 | 4703 | } |
cf694132 | 4704 | { |
4268f798 | 4705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4706 | _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4707 | |
4268f798 | 4708 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4709 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4710 | } _resultobj = Py_BuildValue("l",_result); |
4711 | { | |
4712 | if (_obj2) | |
4713 | delete _arg2; | |
4714 | } | |
8ab979d7 RD |
4715 | return _resultobj; |
4716 | } | |
4717 | ||
c7e7022c RD |
4718 | #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) |
4719 | static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4720 | PyObject * _resultobj; |
c7e7022c RD |
4721 | long _result; |
4722 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4723 | long _arg1; |
c7e7022c | 4724 | wxListItem * _arg2; |
1d99702e | 4725 | PyObject * _argo0 = 0; |
c7e7022c RD |
4726 | PyObject * _argo2 = 0; |
4727 | char *_kwnames[] = { "self","col","info", NULL }; | |
8ab979d7 RD |
4728 | |
4729 | self = self; | |
c7e7022c | 4730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 4731 | return NULL; |
1d99702e RD |
4732 | if (_argo0) { |
4733 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4734 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxPyListCtrl_p."); | |
4736 | return NULL; | |
4737 | } | |
4738 | } | |
4739 | if (_argo2) { | |
4740 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4741 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
4742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p."); | |
8ab979d7 RD |
4743 | return NULL; |
4744 | } | |
4745 | } | |
cf694132 | 4746 | { |
4268f798 | 4747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4748 | _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2); |
cf694132 | 4749 | |
4268f798 | 4750 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4751 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4752 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4753 | return _resultobj; |
4754 | } | |
4755 | ||
c7e7022c RD |
4756 | #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4757 | static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4758 | PyObject * _resultobj; |
c7e7022c RD |
4759 | long _result; |
4760 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4761 | long _arg1; |
4762 | wxString * _arg2; | |
c7e7022c RD |
4763 | int _arg3 = (int ) (wxLIST_FORMAT_LEFT); |
4764 | int _arg4 = (int ) -1; | |
1d99702e | 4765 | PyObject * _argo0 = 0; |
8ab979d7 | 4766 | PyObject * _obj2 = 0; |
c7e7022c | 4767 | char *_kwnames[] = { "self","col","heading","format","width", NULL }; |
8ab979d7 RD |
4768 | |
4769 | self = self; | |
c7e7022c | 4770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 4771 | return NULL; |
1d99702e RD |
4772 | if (_argo0) { |
4773 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4774 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4776 | return NULL; |
4777 | } | |
4778 | } | |
4779 | { | |
c8bc7bb8 RD |
4780 | _arg2 = wxString_in_helper(_obj2); |
4781 | if (_arg2 == NULL) | |
8ab979d7 | 4782 | return NULL; |
8ab979d7 | 4783 | } |
cf694132 | 4784 | { |
4268f798 | 4785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4786 | _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4); |
cf694132 | 4787 | |
4268f798 | 4788 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4789 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4790 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4791 | { |
4792 | if (_obj2) | |
4793 | delete _arg2; | |
4794 | } | |
4795 | return _resultobj; | |
4796 | } | |
4797 | ||
c7e7022c RD |
4798 | #define wxListCtrl_SetItemCount(_swigobj,_swigarg0) (_swigobj->SetItemCount(_swigarg0)) |
4799 | static PyObject *_wrap_wxListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4800 | PyObject * _resultobj; |
c7e7022c | 4801 | wxPyListCtrl * _arg0; |
8ab979d7 | 4802 | long _arg1; |
1d99702e | 4803 | PyObject * _argo0 = 0; |
c7e7022c | 4804 | char *_kwnames[] = { "self","count", NULL }; |
8ab979d7 RD |
4805 | |
4806 | self = self; | |
c7e7022c | 4807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetItemCount",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4808 | return NULL; |
1d99702e RD |
4809 | if (_argo0) { |
4810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4813 | return NULL; |
4814 | } | |
4815 | } | |
cf694132 | 4816 | { |
4268f798 | 4817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4818 | wxListCtrl_SetItemCount(_arg0,_arg1); |
cf694132 | 4819 | |
4268f798 | 4820 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4821 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4822 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4823 | _resultobj = Py_None; |
4824 | return _resultobj; | |
4825 | } | |
4826 | ||
c7e7022c RD |
4827 | #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1)) |
4828 | static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4829 | PyObject * _resultobj; |
c7e7022c RD |
4830 | bool _result; |
4831 | wxPyListCtrl * _arg0; | |
4832 | int _arg1; | |
4833 | int _arg2; | |
1d99702e | 4834 | PyObject * _argo0 = 0; |
c7e7022c | 4835 | char *_kwnames[] = { "self","dx","dy", NULL }; |
8ab979d7 RD |
4836 | |
4837 | self = self; | |
c7e7022c | 4838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4839 | return NULL; |
1d99702e RD |
4840 | if (_argo0) { |
4841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4844 | return NULL; |
4845 | } | |
4846 | } | |
cf694132 | 4847 | { |
4268f798 | 4848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4849 | _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2); |
cf694132 | 4850 | |
4268f798 | 4851 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4852 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4853 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4854 | return _resultobj; |
4855 | } | |
4856 | ||
3bd1e033 RD |
4857 | #define wxListCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
4858 | static PyObject *_wrap_wxListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4859 | PyObject * _resultobj; | |
4860 | wxPyListCtrl * _arg0; | |
4861 | long _arg1; | |
4862 | wxColour * _arg2; | |
4863 | PyObject * _argo0 = 0; | |
4864 | wxColour temp; | |
4865 | PyObject * _obj2 = 0; | |
4866 | char *_kwnames[] = { "self","item","col", NULL }; | |
4867 | ||
4868 | self = self; | |
4869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemTextColour",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4870 | return NULL; | |
4871 | if (_argo0) { | |
4872 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4873 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemTextColour. Expected _wxPyListCtrl_p."); | |
4875 | return NULL; | |
4876 | } | |
4877 | } | |
4878 | { | |
4879 | _arg2 = &temp; | |
4880 | if (! wxColour_helper(_obj2, &_arg2)) | |
4881 | return NULL; | |
4882 | } | |
4883 | { | |
4884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4885 | wxListCtrl_SetItemTextColour(_arg0,_arg1,*_arg2); | |
4886 | ||
4887 | wxPyEndAllowThreads(__tstate); | |
4888 | if (PyErr_Occurred()) return NULL; | |
4889 | } Py_INCREF(Py_None); | |
4890 | _resultobj = Py_None; | |
4891 | return _resultobj; | |
4892 | } | |
4893 | ||
4894 | #define wxListCtrl_GetItemTextColour(_swigobj,_swigarg0) (_swigobj->GetItemTextColour(_swigarg0)) | |
4895 | static PyObject *_wrap_wxListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4896 | PyObject * _resultobj; | |
4897 | wxColour * _result; | |
4898 | wxPyListCtrl * _arg0; | |
4899 | long _arg1; | |
4900 | PyObject * _argo0 = 0; | |
4901 | char *_kwnames[] = { "self","item", NULL }; | |
4902 | char _ptemp[128]; | |
4903 | ||
4904 | self = self; | |
4905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemTextColour",_kwnames,&_argo0,&_arg1)) | |
4906 | return NULL; | |
4907 | if (_argo0) { | |
4908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemTextColour. Expected _wxPyListCtrl_p."); | |
4911 | return NULL; | |
4912 | } | |
4913 | } | |
4914 | { | |
4915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4916 | _result = new wxColour (wxListCtrl_GetItemTextColour(_arg0,_arg1)); | |
4917 | ||
4918 | wxPyEndAllowThreads(__tstate); | |
4919 | if (PyErr_Occurred()) return NULL; | |
4920 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
4921 | _resultobj = Py_BuildValue("s",_ptemp); | |
4922 | return _resultobj; | |
4923 | } | |
4924 | ||
4925 | #define wxListCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
4926 | static PyObject *_wrap_wxListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4927 | PyObject * _resultobj; | |
4928 | wxPyListCtrl * _arg0; | |
4929 | long _arg1; | |
4930 | wxColour * _arg2; | |
4931 | PyObject * _argo0 = 0; | |
4932 | wxColour temp; | |
4933 | PyObject * _obj2 = 0; | |
4934 | char *_kwnames[] = { "self","item","col", NULL }; | |
4935 | ||
4936 | self = self; | |
4937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4938 | return NULL; | |
4939 | if (_argo0) { | |
4940 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4941 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemBackgroundColour. Expected _wxPyListCtrl_p."); | |
4943 | return NULL; | |
4944 | } | |
4945 | } | |
4946 | { | |
4947 | _arg2 = &temp; | |
4948 | if (! wxColour_helper(_obj2, &_arg2)) | |
4949 | return NULL; | |
4950 | } | |
4951 | { | |
4952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4953 | wxListCtrl_SetItemBackgroundColour(_arg0,_arg1,*_arg2); | |
4954 | ||
4955 | wxPyEndAllowThreads(__tstate); | |
4956 | if (PyErr_Occurred()) return NULL; | |
4957 | } Py_INCREF(Py_None); | |
4958 | _resultobj = Py_None; | |
4959 | return _resultobj; | |
4960 | } | |
4961 | ||
4962 | #define wxListCtrl_GetItemBackgroundColour(_swigobj,_swigarg0) (_swigobj->GetItemBackgroundColour(_swigarg0)) | |
4963 | static PyObject *_wrap_wxListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4964 | PyObject * _resultobj; | |
4965 | wxColour * _result; | |
4966 | wxPyListCtrl * _arg0; | |
4967 | long _arg1; | |
4968 | PyObject * _argo0 = 0; | |
4969 | char *_kwnames[] = { "self","item", NULL }; | |
4970 | char _ptemp[128]; | |
4971 | ||
4972 | self = self; | |
4973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemBackgroundColour",_kwnames,&_argo0,&_arg1)) | |
4974 | return NULL; | |
4975 | if (_argo0) { | |
4976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemBackgroundColour. Expected _wxPyListCtrl_p."); | |
4979 | return NULL; | |
4980 | } | |
4981 | } | |
4982 | { | |
4983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4984 | _result = new wxColour (wxListCtrl_GetItemBackgroundColour(_arg0,_arg1)); | |
4985 | ||
4986 | wxPyEndAllowThreads(__tstate); | |
4987 | if (PyErr_Occurred()) return NULL; | |
4988 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
4989 | _resultobj = Py_BuildValue("s",_ptemp); | |
4990 | return _resultobj; | |
4991 | } | |
4992 | ||
c7e7022c | 4993 | static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject * func) { |
dcd38683 RD |
4994 | if (!PyCallable_Check(func)) |
4995 | return FALSE; | |
f6bcfd97 | 4996 | return self->SortItems(wxPyListCtrl_SortItems, (long)func); |
dcd38683 RD |
4997 | } |
4998 | static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4999 | PyObject * _resultobj; | |
5000 | bool _result; | |
c7e7022c | 5001 | wxPyListCtrl * _arg0; |
dcd38683 RD |
5002 | PyObject * _arg1; |
5003 | PyObject * _argo0 = 0; | |
5004 | PyObject * _obj1 = 0; | |
5005 | char *_kwnames[] = { "self","func", NULL }; | |
5006 | ||
5007 | self = self; | |
5008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1)) | |
5009 | return NULL; | |
5010 | if (_argo0) { | |
5011 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
5012 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5013 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxPyListCtrl_p."); | |
dcd38683 RD |
5014 | return NULL; |
5015 | } | |
5016 | } | |
5017 | { | |
5018 | _arg1 = _obj1; | |
5019 | } | |
5020 | { | |
4268f798 | 5021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5022 | _result = (bool )wxPyListCtrl_SortItems(_arg0,_arg1); |
dcd38683 | 5023 | |
4268f798 | 5024 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5025 | if (PyErr_Occurred()) return NULL; |
dcd38683 RD |
5026 | } _resultobj = Py_BuildValue("i",_result); |
5027 | return _resultobj; | |
5028 | } | |
5029 | ||
6d19860f RD |
5030 | static void *SwigwxListViewTowxPyListCtrl(void *ptr) { |
5031 | wxListView *src; | |
5032 | wxPyListCtrl *dest; | |
5033 | src = (wxListView *) ptr; | |
5034 | dest = (wxPyListCtrl *) src; | |
5035 | return (void *) dest; | |
5036 | } | |
5037 | ||
5038 | static void *SwigwxListViewTowxControl(void *ptr) { | |
5039 | wxListView *src; | |
5040 | wxControl *dest; | |
5041 | src = (wxListView *) ptr; | |
5042 | dest = (wxControl *) src; | |
5043 | return (void *) dest; | |
5044 | } | |
5045 | ||
5046 | static void *SwigwxListViewTowxWindow(void *ptr) { | |
5047 | wxListView *src; | |
5048 | wxWindow *dest; | |
5049 | src = (wxListView *) ptr; | |
5050 | dest = (wxWindow *) src; | |
5051 | return (void *) dest; | |
5052 | } | |
5053 | ||
5054 | static void *SwigwxListViewTowxEvtHandler(void *ptr) { | |
5055 | wxListView *src; | |
5056 | wxEvtHandler *dest; | |
5057 | src = (wxListView *) ptr; | |
5058 | dest = (wxEvtHandler *) src; | |
5059 | return (void *) dest; | |
5060 | } | |
5061 | ||
5062 | static void *SwigwxListViewTowxObject(void *ptr) { | |
5063 | wxListView *src; | |
5064 | wxObject *dest; | |
5065 | src = (wxListView *) ptr; | |
5066 | dest = (wxObject *) src; | |
5067 | return (void *) dest; | |
5068 | } | |
5069 | ||
5070 | #define new_wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5071 | static PyObject *_wrap_new_wxListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5072 | PyObject * _resultobj; | |
5073 | wxListView * _result; | |
5074 | wxWindow * _arg0; | |
5075 | wxWindowID _arg1 = (wxWindowID ) -1; | |
5076 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
5077 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5078 | long _arg4 = (long ) (wxLC_REPORT); | |
5079 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 5080 | wxString * _arg6 = (wxString *) &wxPyListCtrlNameStr; |
6d19860f RD |
5081 | PyObject * _argo0 = 0; |
5082 | wxPoint temp; | |
5083 | PyObject * _obj2 = 0; | |
5084 | wxSize temp0; | |
5085 | PyObject * _obj3 = 0; | |
5086 | PyObject * _argo5 = 0; | |
5087 | PyObject * _obj6 = 0; | |
5088 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
5089 | char _ptemp[128]; | |
5090 | ||
5091 | self = self; | |
5092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListView",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) | |
5093 | return NULL; | |
5094 | if (_argo0) { | |
5095 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5096 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5097 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListView. Expected _wxWindow_p."); | |
5098 | return NULL; | |
5099 | } | |
5100 | } | |
5101 | if (_obj2) | |
5102 | { | |
5103 | _arg2 = &temp; | |
5104 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5105 | return NULL; | |
5106 | } | |
5107 | if (_obj3) | |
5108 | { | |
5109 | _arg3 = &temp0; | |
5110 | if (! wxSize_helper(_obj3, &_arg3)) | |
5111 | return NULL; | |
5112 | } | |
5113 | if (_argo5) { | |
5114 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5115 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
5116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListView. Expected _wxValidator_p."); | |
5117 | return NULL; | |
5118 | } | |
5119 | } | |
5120 | if (_obj6) | |
5121 | { | |
c8bc7bb8 RD |
5122 | _arg6 = wxString_in_helper(_obj6); |
5123 | if (_arg6 == NULL) | |
6d19860f | 5124 | return NULL; |
6d19860f RD |
5125 | } |
5126 | { | |
4268f798 | 5127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5128 | _result = (wxListView *)new_wxListView(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
6d19860f | 5129 | |
4268f798 | 5130 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5131 | if (PyErr_Occurred()) return NULL; |
5132 | } if (_result) { | |
5133 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5134 | _resultobj = Py_BuildValue("s",_ptemp); | |
5135 | } else { | |
5136 | Py_INCREF(Py_None); | |
5137 | _resultobj = Py_None; | |
5138 | } | |
5139 | { | |
5140 | if (_obj6) | |
5141 | delete _arg6; | |
5142 | } | |
5143 | return _resultobj; | |
5144 | } | |
5145 | ||
5146 | #define new_wxPreListView() (new wxListView()) | |
5147 | static PyObject *_wrap_new_wxPreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5148 | PyObject * _resultobj; | |
5149 | wxListView * _result; | |
5150 | char *_kwnames[] = { NULL }; | |
5151 | char _ptemp[128]; | |
5152 | ||
5153 | self = self; | |
5154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListView",_kwnames)) | |
5155 | return NULL; | |
5156 | { | |
4268f798 | 5157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5158 | _result = (wxListView *)new_wxPreListView(); |
6d19860f | 5159 | |
4268f798 | 5160 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5161 | if (PyErr_Occurred()) return NULL; |
5162 | } if (_result) { | |
5163 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5164 | _resultobj = Py_BuildValue("s",_ptemp); | |
5165 | } else { | |
5166 | Py_INCREF(Py_None); | |
5167 | _resultobj = Py_None; | |
5168 | } | |
5169 | return _resultobj; | |
5170 | } | |
5171 | ||
5172 | #define wxListView_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5173 | static PyObject *_wrap_wxListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5174 | PyObject * _resultobj; | |
5175 | bool _result; | |
5176 | wxListView * _arg0; | |
5177 | wxWindow * _arg1; | |
5178 | wxWindowID _arg2 = (wxWindowID ) -1; | |
5179 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5180 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5181 | long _arg5 = (long ) (wxLC_REPORT); | |
5182 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 5183 | wxString * _arg7 = (wxString *) &wxPyListCtrlNameStr; |
6d19860f RD |
5184 | PyObject * _argo0 = 0; |
5185 | PyObject * _argo1 = 0; | |
5186 | wxPoint temp; | |
5187 | PyObject * _obj3 = 0; | |
5188 | wxSize temp0; | |
5189 | PyObject * _obj4 = 0; | |
5190 | PyObject * _argo6 = 0; | |
5191 | PyObject * _obj7 = 0; | |
5192 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
5193 | ||
5194 | self = self; | |
5195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListView_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
5196 | return NULL; | |
5197 | if (_argo0) { | |
5198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Create. Expected _wxListView_p."); | |
5201 | return NULL; | |
5202 | } | |
5203 | } | |
5204 | if (_argo1) { | |
5205 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5206 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListView_Create. Expected _wxWindow_p."); | |
5208 | return NULL; | |
5209 | } | |
5210 | } | |
5211 | if (_obj3) | |
5212 | { | |
5213 | _arg3 = &temp; | |
5214 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5215 | return NULL; | |
5216 | } | |
5217 | if (_obj4) | |
5218 | { | |
5219 | _arg4 = &temp0; | |
5220 | if (! wxSize_helper(_obj4, &_arg4)) | |
5221 | return NULL; | |
5222 | } | |
5223 | if (_argo6) { | |
5224 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
5225 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
5226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListView_Create. Expected _wxValidator_p."); | |
5227 | return NULL; | |
5228 | } | |
5229 | } | |
5230 | if (_obj7) | |
5231 | { | |
c8bc7bb8 RD |
5232 | _arg7 = wxString_in_helper(_obj7); |
5233 | if (_arg7 == NULL) | |
6d19860f | 5234 | return NULL; |
6d19860f RD |
5235 | } |
5236 | { | |
4268f798 | 5237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5238 | _result = (bool )wxListView_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
6d19860f | 5239 | |
4268f798 | 5240 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5241 | if (PyErr_Occurred()) return NULL; |
5242 | } _resultobj = Py_BuildValue("i",_result); | |
5243 | { | |
5244 | if (_obj7) | |
5245 | delete _arg7; | |
5246 | } | |
5247 | return _resultobj; | |
5248 | } | |
5249 | ||
5250 | #define wxListView_Select(_swigobj,_swigarg0,_swigarg1) (_swigobj->Select(_swigarg0,_swigarg1)) | |
5251 | static PyObject *_wrap_wxListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5252 | PyObject * _resultobj; | |
5253 | wxListView * _arg0; | |
5254 | long _arg1; | |
5255 | bool _arg2 = (bool ) TRUE; | |
5256 | PyObject * _argo0 = 0; | |
5257 | int tempbool2 = (int) TRUE; | |
5258 | char *_kwnames[] = { "self","n","on", NULL }; | |
5259 | ||
5260 | self = self; | |
5261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListView_Select",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
5262 | return NULL; | |
5263 | if (_argo0) { | |
5264 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5265 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Select. Expected _wxListView_p."); | |
5267 | return NULL; | |
5268 | } | |
5269 | } | |
5270 | _arg2 = (bool ) tempbool2; | |
5271 | { | |
4268f798 | 5272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5273 | wxListView_Select(_arg0,_arg1,_arg2); |
6d19860f | 5274 | |
4268f798 | 5275 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5276 | if (PyErr_Occurred()) return NULL; |
5277 | } Py_INCREF(Py_None); | |
5278 | _resultobj = Py_None; | |
5279 | return _resultobj; | |
5280 | } | |
5281 | ||
5282 | #define wxListView_Focus(_swigobj,_swigarg0) (_swigobj->Focus(_swigarg0)) | |
5283 | static PyObject *_wrap_wxListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5284 | PyObject * _resultobj; | |
5285 | wxListView * _arg0; | |
5286 | long _arg1; | |
5287 | PyObject * _argo0 = 0; | |
5288 | char *_kwnames[] = { "self","index", NULL }; | |
5289 | ||
5290 | self = self; | |
5291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_Focus",_kwnames,&_argo0,&_arg1)) | |
5292 | return NULL; | |
5293 | if (_argo0) { | |
5294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Focus. Expected _wxListView_p."); | |
5297 | return NULL; | |
5298 | } | |
5299 | } | |
5300 | { | |
4268f798 | 5301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5302 | wxListView_Focus(_arg0,_arg1); |
6d19860f | 5303 | |
4268f798 | 5304 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5305 | if (PyErr_Occurred()) return NULL; |
5306 | } Py_INCREF(Py_None); | |
5307 | _resultobj = Py_None; | |
5308 | return _resultobj; | |
5309 | } | |
5310 | ||
5311 | #define wxListView_GetFocusedItem(_swigobj) (_swigobj->GetFocusedItem()) | |
5312 | static PyObject *_wrap_wxListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5313 | PyObject * _resultobj; | |
5314 | long _result; | |
5315 | wxListView * _arg0; | |
5316 | PyObject * _argo0 = 0; | |
5317 | char *_kwnames[] = { "self", NULL }; | |
5318 | ||
5319 | self = self; | |
5320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFocusedItem",_kwnames,&_argo0)) | |
5321 | return NULL; | |
5322 | if (_argo0) { | |
5323 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5324 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFocusedItem. Expected _wxListView_p."); | |
5326 | return NULL; | |
5327 | } | |
5328 | } | |
5329 | { | |
4268f798 | 5330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5331 | _result = (long )wxListView_GetFocusedItem(_arg0); |
6d19860f | 5332 | |
4268f798 | 5333 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5334 | if (PyErr_Occurred()) return NULL; |
5335 | } _resultobj = Py_BuildValue("l",_result); | |
5336 | return _resultobj; | |
5337 | } | |
5338 | ||
5339 | #define wxListView_GetNextSelected(_swigobj,_swigarg0) (_swigobj->GetNextSelected(_swigarg0)) | |
5340 | static PyObject *_wrap_wxListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5341 | PyObject * _resultobj; | |
5342 | long _result; | |
5343 | wxListView * _arg0; | |
5344 | long _arg1; | |
5345 | PyObject * _argo0 = 0; | |
5346 | char *_kwnames[] = { "self","item", NULL }; | |
5347 | ||
5348 | self = self; | |
5349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_GetNextSelected",_kwnames,&_argo0,&_arg1)) | |
5350 | return NULL; | |
5351 | if (_argo0) { | |
5352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetNextSelected. Expected _wxListView_p."); | |
5355 | return NULL; | |
5356 | } | |
5357 | } | |
5358 | { | |
4268f798 | 5359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5360 | _result = (long )wxListView_GetNextSelected(_arg0,_arg1); |
6d19860f | 5361 | |
4268f798 | 5362 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5363 | if (PyErr_Occurred()) return NULL; |
5364 | } _resultobj = Py_BuildValue("l",_result); | |
5365 | return _resultobj; | |
5366 | } | |
5367 | ||
5368 | #define wxListView_GetFirstSelected(_swigobj) (_swigobj->GetFirstSelected()) | |
5369 | static PyObject *_wrap_wxListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5370 | PyObject * _resultobj; | |
5371 | long _result; | |
5372 | wxListView * _arg0; | |
5373 | PyObject * _argo0 = 0; | |
5374 | char *_kwnames[] = { "self", NULL }; | |
5375 | ||
5376 | self = self; | |
5377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFirstSelected",_kwnames,&_argo0)) | |
5378 | return NULL; | |
5379 | if (_argo0) { | |
5380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFirstSelected. Expected _wxListView_p."); | |
5383 | return NULL; | |
5384 | } | |
5385 | } | |
5386 | { | |
4268f798 | 5387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5388 | _result = (long )wxListView_GetFirstSelected(_arg0); |
6d19860f | 5389 | |
4268f798 | 5390 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5391 | if (PyErr_Occurred()) return NULL; |
5392 | } _resultobj = Py_BuildValue("l",_result); | |
5393 | return _resultobj; | |
5394 | } | |
5395 | ||
5396 | #define wxListView_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) | |
5397 | static PyObject *_wrap_wxListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5398 | PyObject * _resultobj; | |
5399 | bool _result; | |
5400 | wxListView * _arg0; | |
5401 | long _arg1; | |
5402 | PyObject * _argo0 = 0; | |
5403 | char *_kwnames[] = { "self","index", NULL }; | |
5404 | ||
5405 | self = self; | |
5406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_IsSelected",_kwnames,&_argo0,&_arg1)) | |
5407 | return NULL; | |
5408 | if (_argo0) { | |
5409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_IsSelected. Expected _wxListView_p."); | |
5412 | return NULL; | |
5413 | } | |
5414 | } | |
5415 | { | |
4268f798 | 5416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5417 | _result = (bool )wxListView_IsSelected(_arg0,_arg1); |
6d19860f | 5418 | |
4268f798 | 5419 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5420 | if (PyErr_Occurred()) return NULL; |
5421 | } _resultobj = Py_BuildValue("i",_result); | |
5422 | return _resultobj; | |
5423 | } | |
5424 | ||
5425 | #define wxListView_SetColumnImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnImage(_swigarg0,_swigarg1)) | |
5426 | static PyObject *_wrap_wxListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5427 | PyObject * _resultobj; | |
5428 | wxListView * _arg0; | |
5429 | int _arg1; | |
5430 | int _arg2; | |
5431 | PyObject * _argo0 = 0; | |
5432 | char *_kwnames[] = { "self","col","image", NULL }; | |
5433 | ||
5434 | self = self; | |
5435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListView_SetColumnImage",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5436 | return NULL; | |
5437 | if (_argo0) { | |
5438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_SetColumnImage. Expected _wxListView_p."); | |
5441 | return NULL; | |
5442 | } | |
5443 | } | |
5444 | { | |
4268f798 | 5445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5446 | wxListView_SetColumnImage(_arg0,_arg1,_arg2); |
6d19860f | 5447 | |
4268f798 | 5448 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5449 | if (PyErr_Occurred()) return NULL; |
5450 | } Py_INCREF(Py_None); | |
5451 | _resultobj = Py_None; | |
5452 | return _resultobj; | |
5453 | } | |
5454 | ||
5455 | #define wxListView_ClearColumnImage(_swigobj,_swigarg0) (_swigobj->ClearColumnImage(_swigarg0)) | |
5456 | static PyObject *_wrap_wxListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5457 | PyObject * _resultobj; | |
5458 | wxListView * _arg0; | |
5459 | int _arg1; | |
5460 | PyObject * _argo0 = 0; | |
5461 | char *_kwnames[] = { "self","col", NULL }; | |
5462 | ||
5463 | self = self; | |
5464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListView_ClearColumnImage",_kwnames,&_argo0,&_arg1)) | |
5465 | return NULL; | |
5466 | if (_argo0) { | |
5467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_ClearColumnImage. Expected _wxListView_p."); | |
5470 | return NULL; | |
5471 | } | |
5472 | } | |
5473 | { | |
4268f798 | 5474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5475 | wxListView_ClearColumnImage(_arg0,_arg1); |
6d19860f | 5476 | |
4268f798 | 5477 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5478 | if (PyErr_Occurred()) return NULL; |
5479 | } Py_INCREF(Py_None); | |
5480 | _resultobj = Py_None; | |
5481 | return _resultobj; | |
5482 | } | |
5483 | ||
00b6c4e3 RD |
5484 | #define new_wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
5485 | static PyObject *_wrap_new_wxTreeItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5486 | PyObject * _resultobj; | |
5487 | wxTreeItemAttr * _result; | |
5488 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5489 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5490 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5491 | wxColour temp; | |
5492 | PyObject * _obj0 = 0; | |
5493 | wxColour temp0; | |
5494 | PyObject * _obj1 = 0; | |
5495 | PyObject * _argo2 = 0; | |
5496 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
5497 | char _ptemp[128]; | |
5498 | ||
5499 | self = self; | |
5500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTreeItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) | |
5501 | return NULL; | |
5502 | if (_obj0) | |
5503 | { | |
5504 | _arg0 = &temp; | |
5505 | if (! wxColour_helper(_obj0, &_arg0)) | |
5506 | return NULL; | |
5507 | } | |
5508 | if (_obj1) | |
5509 | { | |
5510 | _arg1 = &temp0; | |
5511 | if (! wxColour_helper(_obj1, &_arg1)) | |
5512 | return NULL; | |
5513 | } | |
5514 | if (_argo2) { | |
5515 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5516 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
5517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTreeItemAttr. Expected _wxFont_p."); | |
5518 | return NULL; | |
5519 | } | |
5520 | } | |
5521 | { | |
4268f798 | 5522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5523 | _result = (wxTreeItemAttr *)new_wxTreeItemAttr(*_arg0,*_arg1,*_arg2); |
00b6c4e3 | 5524 | |
4268f798 | 5525 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5526 | if (PyErr_Occurred()) return NULL; |
5527 | } if (_result) { | |
5528 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemAttr_p"); | |
5529 | _resultobj = Py_BuildValue("s",_ptemp); | |
5530 | } else { | |
5531 | Py_INCREF(Py_None); | |
5532 | _resultobj = Py_None; | |
5533 | } | |
5534 | return _resultobj; | |
5535 | } | |
5536 | ||
5537 | #define wxTreeItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
5538 | static PyObject *_wrap_wxTreeItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5539 | PyObject * _resultobj; | |
5540 | wxTreeItemAttr * _arg0; | |
5541 | wxColour * _arg1; | |
5542 | PyObject * _argo0 = 0; | |
5543 | wxColour temp; | |
5544 | PyObject * _obj1 = 0; | |
5545 | char *_kwnames[] = { "self","colText", NULL }; | |
5546 | ||
5547 | self = self; | |
5548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
5549 | return NULL; | |
5550 | if (_argo0) { | |
5551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetTextColour. Expected _wxTreeItemAttr_p."); | |
5554 | return NULL; | |
5555 | } | |
5556 | } | |
5557 | { | |
5558 | _arg1 = &temp; | |
5559 | if (! wxColour_helper(_obj1, &_arg1)) | |
5560 | return NULL; | |
5561 | } | |
5562 | { | |
4268f798 | 5563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5564 | wxTreeItemAttr_SetTextColour(_arg0,*_arg1); |
00b6c4e3 | 5565 | |
4268f798 | 5566 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5567 | if (PyErr_Occurred()) return NULL; |
5568 | } Py_INCREF(Py_None); | |
5569 | _resultobj = Py_None; | |
5570 | return _resultobj; | |
5571 | } | |
5572 | ||
5573 | #define wxTreeItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
5574 | static PyObject *_wrap_wxTreeItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5575 | PyObject * _resultobj; | |
5576 | wxTreeItemAttr * _arg0; | |
5577 | wxColour * _arg1; | |
5578 | PyObject * _argo0 = 0; | |
5579 | wxColour temp; | |
5580 | PyObject * _obj1 = 0; | |
5581 | char *_kwnames[] = { "self","colBack", NULL }; | |
5582 | ||
5583 | self = self; | |
5584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
5585 | return NULL; | |
5586 | if (_argo0) { | |
5587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5590 | return NULL; | |
5591 | } | |
5592 | } | |
5593 | { | |
5594 | _arg1 = &temp; | |
5595 | if (! wxColour_helper(_obj1, &_arg1)) | |
5596 | return NULL; | |
5597 | } | |
5598 | { | |
4268f798 | 5599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5600 | wxTreeItemAttr_SetBackgroundColour(_arg0,*_arg1); |
00b6c4e3 | 5601 | |
4268f798 | 5602 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5603 | if (PyErr_Occurred()) return NULL; |
5604 | } Py_INCREF(Py_None); | |
5605 | _resultobj = Py_None; | |
5606 | return _resultobj; | |
5607 | } | |
5608 | ||
5609 | #define wxTreeItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
5610 | static PyObject *_wrap_wxTreeItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5611 | PyObject * _resultobj; | |
5612 | wxTreeItemAttr * _arg0; | |
5613 | wxFont * _arg1; | |
5614 | PyObject * _argo0 = 0; | |
5615 | PyObject * _argo1 = 0; | |
5616 | char *_kwnames[] = { "self","font", NULL }; | |
5617 | ||
5618 | self = self; | |
5619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
5620 | return NULL; | |
5621 | if (_argo0) { | |
5622 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5623 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5624 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetFont. Expected _wxTreeItemAttr_p."); | |
5625 | return NULL; | |
5626 | } | |
5627 | } | |
5628 | if (_argo1) { | |
5629 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5630 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
5631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemAttr_SetFont. Expected _wxFont_p."); | |
5632 | return NULL; | |
5633 | } | |
5634 | } | |
5635 | { | |
4268f798 | 5636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5637 | wxTreeItemAttr_SetFont(_arg0,*_arg1); |
00b6c4e3 | 5638 | |
4268f798 | 5639 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5640 | if (PyErr_Occurred()) return NULL; |
5641 | } Py_INCREF(Py_None); | |
5642 | _resultobj = Py_None; | |
5643 | return _resultobj; | |
5644 | } | |
5645 | ||
5646 | #define wxTreeItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
5647 | static PyObject *_wrap_wxTreeItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5648 | PyObject * _resultobj; | |
5649 | bool _result; | |
5650 | wxTreeItemAttr * _arg0; | |
5651 | PyObject * _argo0 = 0; | |
5652 | char *_kwnames[] = { "self", NULL }; | |
5653 | ||
5654 | self = self; | |
5655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasTextColour",_kwnames,&_argo0)) | |
5656 | return NULL; | |
5657 | if (_argo0) { | |
5658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasTextColour. Expected _wxTreeItemAttr_p."); | |
5661 | return NULL; | |
5662 | } | |
5663 | } | |
5664 | { | |
4268f798 | 5665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5666 | _result = (bool )wxTreeItemAttr_HasTextColour(_arg0); |
00b6c4e3 | 5667 | |
4268f798 | 5668 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5669 | if (PyErr_Occurred()) return NULL; |
5670 | } _resultobj = Py_BuildValue("i",_result); | |
5671 | return _resultobj; | |
5672 | } | |
5673 | ||
5674 | #define wxTreeItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
5675 | static PyObject *_wrap_wxTreeItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5676 | PyObject * _resultobj; | |
5677 | bool _result; | |
5678 | wxTreeItemAttr * _arg0; | |
5679 | PyObject * _argo0 = 0; | |
5680 | char *_kwnames[] = { "self", NULL }; | |
5681 | ||
5682 | self = self; | |
5683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
5684 | return NULL; | |
5685 | if (_argo0) { | |
5686 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5687 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5689 | return NULL; | |
5690 | } | |
5691 | } | |
5692 | { | |
4268f798 | 5693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5694 | _result = (bool )wxTreeItemAttr_HasBackgroundColour(_arg0); |
00b6c4e3 | 5695 | |
4268f798 | 5696 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5697 | if (PyErr_Occurred()) return NULL; |
5698 | } _resultobj = Py_BuildValue("i",_result); | |
5699 | return _resultobj; | |
5700 | } | |
5701 | ||
5702 | #define wxTreeItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
5703 | static PyObject *_wrap_wxTreeItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5704 | PyObject * _resultobj; | |
5705 | bool _result; | |
5706 | wxTreeItemAttr * _arg0; | |
5707 | PyObject * _argo0 = 0; | |
5708 | char *_kwnames[] = { "self", NULL }; | |
5709 | ||
5710 | self = self; | |
5711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasFont",_kwnames,&_argo0)) | |
5712 | return NULL; | |
5713 | if (_argo0) { | |
5714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasFont. Expected _wxTreeItemAttr_p."); | |
5717 | return NULL; | |
5718 | } | |
5719 | } | |
5720 | { | |
4268f798 | 5721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5722 | _result = (bool )wxTreeItemAttr_HasFont(_arg0); |
00b6c4e3 | 5723 | |
4268f798 | 5724 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5725 | if (PyErr_Occurred()) return NULL; |
5726 | } _resultobj = Py_BuildValue("i",_result); | |
5727 | return _resultobj; | |
5728 | } | |
5729 | ||
5730 | #define wxTreeItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
5731 | static PyObject *_wrap_wxTreeItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5732 | PyObject * _resultobj; | |
5733 | wxColour * _result; | |
5734 | wxTreeItemAttr * _arg0; | |
5735 | PyObject * _argo0 = 0; | |
5736 | char *_kwnames[] = { "self", NULL }; | |
5737 | char _ptemp[128]; | |
5738 | ||
5739 | self = self; | |
5740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetTextColour",_kwnames,&_argo0)) | |
5741 | return NULL; | |
5742 | if (_argo0) { | |
5743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetTextColour. Expected _wxTreeItemAttr_p."); | |
5746 | return NULL; | |
5747 | } | |
5748 | } | |
5749 | { | |
4268f798 | 5750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5751 | _result = new wxColour (wxTreeItemAttr_GetTextColour(_arg0)); |
00b6c4e3 | 5752 | |
4268f798 | 5753 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 | 5754 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
5755 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5756 | _resultobj = Py_BuildValue("s",_ptemp); | |
00b6c4e3 RD |
5757 | return _resultobj; |
5758 | } | |
5759 | ||
5760 | #define wxTreeItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
5761 | static PyObject *_wrap_wxTreeItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5762 | PyObject * _resultobj; | |
5763 | wxColour * _result; | |
5764 | wxTreeItemAttr * _arg0; | |
5765 | PyObject * _argo0 = 0; | |
5766 | char *_kwnames[] = { "self", NULL }; | |
5767 | char _ptemp[128]; | |
5768 | ||
5769 | self = self; | |
5770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
5771 | return NULL; | |
5772 | if (_argo0) { | |
5773 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5774 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5776 | return NULL; | |
5777 | } | |
5778 | } | |
5779 | { | |
4268f798 | 5780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5781 | _result = new wxColour (wxTreeItemAttr_GetBackgroundColour(_arg0)); |
00b6c4e3 | 5782 | |
4268f798 | 5783 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 | 5784 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
5785 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5786 | _resultobj = Py_BuildValue("s",_ptemp); | |
00b6c4e3 RD |
5787 | return _resultobj; |
5788 | } | |
5789 | ||
5790 | #define wxTreeItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
5791 | static PyObject *_wrap_wxTreeItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5792 | PyObject * _resultobj; | |
5793 | wxFont * _result; | |
5794 | wxTreeItemAttr * _arg0; | |
5795 | PyObject * _argo0 = 0; | |
5796 | char *_kwnames[] = { "self", NULL }; | |
5797 | char _ptemp[128]; | |
5798 | ||
5799 | self = self; | |
5800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetFont",_kwnames,&_argo0)) | |
5801 | return NULL; | |
5802 | if (_argo0) { | |
5803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetFont. Expected _wxTreeItemAttr_p."); | |
5806 | return NULL; | |
5807 | } | |
5808 | } | |
5809 | { | |
4268f798 | 5810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5811 | _result = new wxFont (wxTreeItemAttr_GetFont(_arg0)); |
00b6c4e3 | 5812 | |
4268f798 | 5813 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 | 5814 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
5815 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
5816 | _resultobj = Py_BuildValue("s",_ptemp); | |
00b6c4e3 RD |
5817 | return _resultobj; |
5818 | } | |
5819 | ||
d5c9047a | 5820 | #define new_wxTreeItemId() (new wxTreeItemId()) |
efc5f224 | 5821 | static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5822 | PyObject * _resultobj; |
d5c9047a | 5823 | wxTreeItemId * _result; |
efc5f224 | 5824 | char *_kwnames[] = { NULL }; |
d5c9047a | 5825 | char _ptemp[128]; |
8ab979d7 RD |
5826 | |
5827 | self = self; | |
efc5f224 | 5828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames)) |
8ab979d7 | 5829 | return NULL; |
cf694132 | 5830 | { |
4268f798 | 5831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5832 | _result = (wxTreeItemId *)new_wxTreeItemId(); |
cf694132 | 5833 | |
4268f798 | 5834 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5835 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5836 | } if (_result) { |
5837 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
5838 | _resultobj = Py_BuildValue("s",_ptemp); | |
5839 | } else { | |
5840 | Py_INCREF(Py_None); | |
5841 | _resultobj = Py_None; | |
5842 | } | |
8ab979d7 RD |
5843 | return _resultobj; |
5844 | } | |
5845 | ||
d5c9047a | 5846 | #define delete_wxTreeItemId(_swigobj) (delete _swigobj) |
efc5f224 | 5847 | static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5848 | PyObject * _resultobj; |
d5c9047a | 5849 | wxTreeItemId * _arg0; |
1d99702e | 5850 | PyObject * _argo0 = 0; |
efc5f224 | 5851 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5852 | |
5853 | self = self; | |
efc5f224 | 5854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0)) |
8ab979d7 | 5855 | return NULL; |
1d99702e RD |
5856 | if (_argo0) { |
5857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 5859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
5860 | return NULL; |
5861 | } | |
5862 | } | |
cf694132 | 5863 | { |
4268f798 | 5864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5865 | delete_wxTreeItemId(_arg0); |
cf694132 | 5866 | |
4268f798 | 5867 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5868 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5869 | } Py_INCREF(Py_None); |
d5c9047a | 5870 | _resultobj = Py_None; |
8ab979d7 RD |
5871 | return _resultobj; |
5872 | } | |
5873 | ||
d5c9047a | 5874 | #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk()) |
efc5f224 | 5875 | static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5876 | PyObject * _resultobj; |
d5c9047a RD |
5877 | bool _result; |
5878 | wxTreeItemId * _arg0; | |
1d99702e | 5879 | PyObject * _argo0 = 0; |
efc5f224 | 5880 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5881 | |
5882 | self = self; | |
efc5f224 | 5883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0)) |
8ab979d7 | 5884 | return NULL; |
1d99702e RD |
5885 | if (_argo0) { |
5886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 5888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
5889 | return NULL; |
5890 | } | |
5891 | } | |
cf694132 | 5892 | { |
4268f798 | 5893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5894 | _result = (bool )wxTreeItemId_IsOk(_arg0); |
cf694132 | 5895 | |
4268f798 | 5896 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5897 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5898 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5899 | return _resultobj; |
5900 | } | |
5901 | ||
f6bcfd97 | 5902 | static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) { |
c368d904 | 5903 | if (! other) return -1; |
f6bcfd97 BP |
5904 | return *self != *other; |
5905 | } | |
5906 | static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5907 | PyObject * _resultobj; | |
5908 | int _result; | |
5909 | wxTreeItemId * _arg0; | |
5910 | wxTreeItemId * _arg1; | |
5911 | PyObject * _argo0 = 0; | |
5912 | PyObject * _argo1 = 0; | |
5913 | char *_kwnames[] = { "self","other", NULL }; | |
5914 | ||
5915 | self = self; | |
5916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1)) | |
5917 | return NULL; | |
5918 | if (_argo0) { | |
5919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5922 | return NULL; | |
5923 | } | |
5924 | } | |
5925 | if (_argo1) { | |
5926 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5927 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
5928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5929 | return NULL; | |
5930 | } | |
5931 | } | |
5932 | { | |
4268f798 | 5933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5934 | _result = (int )wxTreeItemId___cmp__(_arg0,_arg1); |
f6bcfd97 | 5935 | |
4268f798 | 5936 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5937 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5938 | } _resultobj = Py_BuildValue("i",_result); |
5939 | return _resultobj; | |
5940 | } | |
5941 | ||
9416aa89 RD |
5942 | static void *SwigwxPyTreeItemDataTowxObject(void *ptr) { |
5943 | wxPyTreeItemData *src; | |
5944 | wxObject *dest; | |
5945 | src = (wxPyTreeItemData *) ptr; | |
5946 | dest = (wxObject *) src; | |
5947 | return (void *) dest; | |
5948 | } | |
5949 | ||
cf694132 | 5950 | #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) |
efc5f224 | 5951 | static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5952 | PyObject * _resultobj; |
cf694132 | 5953 | wxPyTreeItemData * _result; |
1d99702e | 5954 | PyObject * _arg0 = (PyObject *) NULL; |
cf694132 | 5955 | PyObject * _obj0 = 0; |
efc5f224 | 5956 | char *_kwnames[] = { "obj", NULL }; |
d5c9047a | 5957 | char _ptemp[128]; |
8ab979d7 RD |
5958 | |
5959 | self = self; | |
efc5f224 | 5960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0)) |
8ab979d7 | 5961 | return NULL; |
cf694132 RD |
5962 | if (_obj0) |
5963 | { | |
5964 | _arg0 = _obj0; | |
5965 | } | |
5966 | { | |
4268f798 | 5967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5968 | _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0); |
cf694132 | 5969 | |
4268f798 | 5970 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5971 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5972 | } if (_result) { |
5973 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
5974 | _resultobj = Py_BuildValue("s",_ptemp); | |
5975 | } else { | |
5976 | Py_INCREF(Py_None); | |
5977 | _resultobj = Py_None; | |
5978 | } | |
8ab979d7 RD |
5979 | return _resultobj; |
5980 | } | |
5981 | ||
cf694132 | 5982 | #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData()) |
efc5f224 | 5983 | static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
5984 | PyObject * _resultobj; |
5985 | PyObject * _result; | |
5986 | wxPyTreeItemData * _arg0; | |
1d99702e | 5987 | PyObject * _argo0 = 0; |
efc5f224 | 5988 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
5989 | |
5990 | self = self; | |
efc5f224 | 5991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0)) |
cf694132 | 5992 | return NULL; |
1d99702e RD |
5993 | if (_argo0) { |
5994 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5995 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 RD |
5996 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p."); |
5997 | return NULL; | |
5998 | } | |
5999 | } | |
6000 | { | |
4268f798 | 6001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6002 | _result = (PyObject *)wxTreeItemData_GetData(_arg0); |
cf694132 | 6003 | |
4268f798 | 6004 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6005 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
6006 | }{ |
6007 | _resultobj = _result; | |
6008 | } | |
6009 | return _resultobj; | |
6010 | } | |
6011 | ||
6012 | #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
efc5f224 | 6013 | static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6014 | PyObject * _resultobj; |
cf694132 RD |
6015 | wxPyTreeItemData * _arg0; |
6016 | PyObject * _arg1; | |
1d99702e | 6017 | PyObject * _argo0 = 0; |
cf694132 | 6018 | PyObject * _obj1 = 0; |
efc5f224 | 6019 | char *_kwnames[] = { "self","obj", NULL }; |
8ab979d7 RD |
6020 | |
6021 | self = self; | |
efc5f224 | 6022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6023 | return NULL; |
1d99702e RD |
6024 | if (_argo0) { |
6025 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6026 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 6027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
6028 | return NULL; |
6029 | } | |
6030 | } | |
cf694132 RD |
6031 | { |
6032 | _arg1 = _obj1; | |
6033 | } | |
6034 | { | |
4268f798 | 6035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6036 | wxTreeItemData_SetData(_arg0,_arg1); |
cf694132 | 6037 | |
4268f798 | 6038 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6039 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6040 | } Py_INCREF(Py_None); |
d5c9047a | 6041 | _resultobj = Py_None; |
8ab979d7 RD |
6042 | return _resultobj; |
6043 | } | |
6044 | ||
630d84f2 | 6045 | #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 6046 | static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6047 | PyObject * _resultobj; |
d5c9047a | 6048 | wxTreeItemId * _result; |
cf694132 | 6049 | wxPyTreeItemData * _arg0; |
1d99702e | 6050 | PyObject * _argo0 = 0; |
efc5f224 | 6051 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6052 | char _ptemp[128]; |
6053 | ||
6054 | self = self; | |
efc5f224 | 6055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0)) |
8ab979d7 | 6056 | return NULL; |
1d99702e RD |
6057 | if (_argo0) { |
6058 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6059 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 6060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
6061 | return NULL; |
6062 | } | |
6063 | } | |
cf694132 | 6064 | { |
4268f798 | 6065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6066 | const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0); |
d5c9047a | 6067 | _result = (wxTreeItemId *) &_result_ref; |
cf694132 | 6068 | |
4268f798 | 6069 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6070 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6071 | } if (_result) { |
6072 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
6073 | _resultobj = Py_BuildValue("s",_ptemp); | |
6074 | } else { | |
6075 | Py_INCREF(Py_None); | |
6076 | _resultobj = Py_None; | |
6077 | } | |
8ab979d7 RD |
6078 | return _resultobj; |
6079 | } | |
6080 | ||
630d84f2 | 6081 | #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
efc5f224 | 6082 | static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
630d84f2 | 6083 | PyObject * _resultobj; |
cf694132 | 6084 | wxPyTreeItemData * _arg0; |
630d84f2 | 6085 | wxTreeItemId * _arg1; |
1d99702e RD |
6086 | PyObject * _argo0 = 0; |
6087 | PyObject * _argo1 = 0; | |
efc5f224 | 6088 | char *_kwnames[] = { "self","id", NULL }; |
630d84f2 RD |
6089 | |
6090 | self = self; | |
efc5f224 | 6091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1)) |
630d84f2 | 6092 | return NULL; |
1d99702e RD |
6093 | if (_argo0) { |
6094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 6096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p."); |
630d84f2 RD |
6097 | return NULL; |
6098 | } | |
6099 | } | |
1d99702e RD |
6100 | if (_argo1) { |
6101 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6102 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
630d84f2 RD |
6103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p."); |
6104 | return NULL; | |
6105 | } | |
6106 | } | |
cf694132 | 6107 | { |
4268f798 | 6108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6109 | wxTreeItemData_SetId(_arg0,*_arg1); |
cf694132 | 6110 | |
4268f798 | 6111 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6112 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6113 | } Py_INCREF(Py_None); |
630d84f2 RD |
6114 | _resultobj = Py_None; |
6115 | return _resultobj; | |
6116 | } | |
6117 | ||
8bf5d46e RD |
6118 | static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) { |
6119 | wxTreeEvent *src; | |
6120 | wxNotifyEvent *dest; | |
6121 | src = (wxTreeEvent *) ptr; | |
6122 | dest = (wxNotifyEvent *) src; | |
6123 | return (void *) dest; | |
6124 | } | |
6125 | ||
8ab979d7 RD |
6126 | static void *SwigwxTreeEventTowxCommandEvent(void *ptr) { |
6127 | wxTreeEvent *src; | |
6128 | wxCommandEvent *dest; | |
6129 | src = (wxTreeEvent *) ptr; | |
6130 | dest = (wxCommandEvent *) src; | |
6131 | return (void *) dest; | |
6132 | } | |
6133 | ||
6134 | static void *SwigwxTreeEventTowxEvent(void *ptr) { | |
6135 | wxTreeEvent *src; | |
6136 | wxEvent *dest; | |
6137 | src = (wxTreeEvent *) ptr; | |
6138 | dest = (wxEvent *) src; | |
6139 | return (void *) dest; | |
6140 | } | |
6141 | ||
9416aa89 RD |
6142 | static void *SwigwxTreeEventTowxObject(void *ptr) { |
6143 | wxTreeEvent *src; | |
6144 | wxObject *dest; | |
6145 | src = (wxTreeEvent *) ptr; | |
6146 | dest = (wxObject *) src; | |
6147 | return (void *) dest; | |
6148 | } | |
6149 | ||
00b6c4e3 RD |
6150 | #define new_wxTreeEvent(_swigarg0,_swigarg1) (new wxTreeEvent(_swigarg0,_swigarg1)) |
6151 | static PyObject *_wrap_new_wxTreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6152 | PyObject * _resultobj; | |
6153 | wxTreeEvent * _result; | |
6154 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
6155 | int _arg1 = (int ) 0; | |
6156 | char *_kwnames[] = { "commandType","id", NULL }; | |
6157 | char _ptemp[128]; | |
6158 | ||
6159 | self = self; | |
6160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxTreeEvent",_kwnames,&_arg0,&_arg1)) | |
6161 | return NULL; | |
6162 | { | |
4268f798 | 6163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6164 | _result = (wxTreeEvent *)new_wxTreeEvent(_arg0,_arg1); |
00b6c4e3 | 6165 | |
4268f798 | 6166 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
6167 | if (PyErr_Occurred()) return NULL; |
6168 | } if (_result) { | |
6169 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeEvent_p"); | |
6170 | _resultobj = Py_BuildValue("s",_ptemp); | |
6171 | } else { | |
6172 | Py_INCREF(Py_None); | |
6173 | _resultobj = Py_None; | |
6174 | } | |
6175 | return _resultobj; | |
6176 | } | |
6177 | ||
d5c9047a | 6178 | #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
efc5f224 | 6179 | static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6180 | PyObject * _resultobj; |
d5c9047a | 6181 | wxTreeItemId * _result; |
8ab979d7 | 6182 | wxTreeEvent * _arg0; |
1d99702e | 6183 | PyObject * _argo0 = 0; |
efc5f224 | 6184 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6185 | char _ptemp[128]; |
8ab979d7 RD |
6186 | |
6187 | self = self; | |
efc5f224 | 6188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 6189 | return NULL; |
1d99702e RD |
6190 | if (_argo0) { |
6191 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6192 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6194 | return NULL; |
6195 | } | |
6196 | } | |
cf694132 | 6197 | { |
4268f798 | 6198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6199 | _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0)); |
cf694132 | 6200 | |
4268f798 | 6201 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6202 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6203 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 6204 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6205 | return _resultobj; |
6206 | } | |
6207 | ||
d5c9047a | 6208 | #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
efc5f224 | 6209 | static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6210 | PyObject * _resultobj; |
d5c9047a | 6211 | wxTreeItemId * _result; |
8ab979d7 | 6212 | wxTreeEvent * _arg0; |
1d99702e | 6213 | PyObject * _argo0 = 0; |
efc5f224 | 6214 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6215 | char _ptemp[128]; |
6216 | ||
6217 | self = self; | |
efc5f224 | 6218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0)) |
8ab979d7 | 6219 | return NULL; |
1d99702e RD |
6220 | if (_argo0) { |
6221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6224 | return NULL; |
6225 | } | |
6226 | } | |
cf694132 | 6227 | { |
4268f798 | 6228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6229 | _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0)); |
cf694132 | 6230 | |
4268f798 | 6231 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6232 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6233 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8ab979d7 RD |
6234 | _resultobj = Py_BuildValue("s",_ptemp); |
6235 | return _resultobj; | |
6236 | } | |
6237 | ||
d5c9047a | 6238 | #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
efc5f224 | 6239 | static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6240 | PyObject * _resultobj; |
d5c9047a | 6241 | wxPoint * _result; |
8ab979d7 | 6242 | wxTreeEvent * _arg0; |
1d99702e | 6243 | PyObject * _argo0 = 0; |
efc5f224 | 6244 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6245 | char _ptemp[128]; |
8ab979d7 RD |
6246 | |
6247 | self = self; | |
efc5f224 | 6248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 6249 | return NULL; |
1d99702e RD |
6250 | if (_argo0) { |
6251 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6252 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6254 | return NULL; |
6255 | } | |
6256 | } | |
cf694132 | 6257 | { |
4268f798 | 6258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6259 | _result = new wxPoint (wxTreeEvent_GetPoint(_arg0)); |
cf694132 | 6260 | |
4268f798 | 6261 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6262 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6263 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
d5c9047a | 6264 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6265 | return _resultobj; |
6266 | } | |
6267 | ||
ecc08ead RD |
6268 | #define wxTreeEvent_GetKeyEvent(_swigobj) (_swigobj->GetKeyEvent()) |
6269 | static PyObject *_wrap_wxTreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6270 | PyObject * _resultobj; | |
6271 | wxKeyEvent * _result; | |
6272 | wxTreeEvent * _arg0; | |
6273 | PyObject * _argo0 = 0; | |
6274 | char *_kwnames[] = { "self", NULL }; | |
6275 | char _ptemp[128]; | |
6276 | ||
6277 | self = self; | |
6278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetKeyEvent",_kwnames,&_argo0)) | |
6279 | return NULL; | |
6280 | if (_argo0) { | |
6281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetKeyEvent. Expected _wxTreeEvent_p."); | |
6284 | return NULL; | |
6285 | } | |
6286 | } | |
6287 | { | |
4268f798 | 6288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6289 | const wxKeyEvent & _result_ref = wxTreeEvent_GetKeyEvent(_arg0); |
ecc08ead RD |
6290 | _result = (wxKeyEvent *) &_result_ref; |
6291 | ||
4268f798 | 6292 | wxPyEndAllowThreads(__tstate); |
ecc08ead RD |
6293 | if (PyErr_Occurred()) return NULL; |
6294 | } if (_result) { | |
6295 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxKeyEvent_p"); | |
6296 | _resultobj = Py_BuildValue("s",_ptemp); | |
6297 | } else { | |
6298 | Py_INCREF(Py_None); | |
6299 | _resultobj = Py_None; | |
6300 | } | |
6301 | return _resultobj; | |
6302 | } | |
6303 | ||
d5c9047a | 6304 | #define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
efc5f224 | 6305 | static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6306 | PyObject * _resultobj; |
d5c9047a | 6307 | int _result; |
8ab979d7 | 6308 | wxTreeEvent * _arg0; |
1d99702e | 6309 | PyObject * _argo0 = 0; |
efc5f224 | 6310 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6311 | |
6312 | self = self; | |
efc5f224 | 6313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 6314 | return NULL; |
1d99702e RD |
6315 | if (_argo0) { |
6316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6319 | return NULL; |
6320 | } | |
6321 | } | |
cf694132 | 6322 | { |
4268f798 | 6323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6324 | _result = (int )wxTreeEvent_GetCode(_arg0); |
cf694132 | 6325 | |
4268f798 | 6326 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6327 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6328 | } _resultobj = Py_BuildValue("i",_result); |
d5c9047a RD |
6329 | return _resultobj; |
6330 | } | |
6331 | ||
8bf5d46e | 6332 | #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 6333 | static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 6334 | PyObject * _resultobj; |
8bf5d46e | 6335 | wxString * _result; |
d5c9047a | 6336 | wxTreeEvent * _arg0; |
1d99702e | 6337 | PyObject * _argo0 = 0; |
efc5f224 | 6338 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
6339 | |
6340 | self = self; | |
efc5f224 | 6341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0)) |
d5c9047a | 6342 | return NULL; |
1d99702e RD |
6343 | if (_argo0) { |
6344 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6345 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
8bf5d46e | 6346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p."); |
d5c9047a RD |
6347 | return NULL; |
6348 | } | |
6349 | } | |
cf694132 | 6350 | { |
4268f798 | 6351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6352 | const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0); |
8bf5d46e | 6353 | _result = (wxString *) &_result_ref; |
cf694132 | 6354 | |
4268f798 | 6355 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6356 | if (PyErr_Occurred()) return NULL; |
8bf5d46e | 6357 | }{ |
c8bc7bb8 RD |
6358 | #if wxUSE_UNICODE |
6359 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6360 | #else | |
eec92d76 | 6361 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6362 | #endif |
8bf5d46e | 6363 | } |
8ab979d7 RD |
6364 | return _resultobj; |
6365 | } | |
6366 | ||
f6bcfd97 BP |
6367 | static void *SwigwxPyTreeCtrlTowxControl(void *ptr) { |
6368 | wxPyTreeCtrl *src; | |
8ab979d7 | 6369 | wxControl *dest; |
f6bcfd97 | 6370 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6371 | dest = (wxControl *) src; |
6372 | return (void *) dest; | |
6373 | } | |
6374 | ||
f6bcfd97 BP |
6375 | static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) { |
6376 | wxPyTreeCtrl *src; | |
8ab979d7 | 6377 | wxWindow *dest; |
f6bcfd97 | 6378 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6379 | dest = (wxWindow *) src; |
6380 | return (void *) dest; | |
6381 | } | |
6382 | ||
f6bcfd97 BP |
6383 | static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) { |
6384 | wxPyTreeCtrl *src; | |
8ab979d7 | 6385 | wxEvtHandler *dest; |
f6bcfd97 | 6386 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6387 | dest = (wxEvtHandler *) src; |
6388 | return (void *) dest; | |
6389 | } | |
6390 | ||
9416aa89 RD |
6391 | static void *SwigwxPyTreeCtrlTowxObject(void *ptr) { |
6392 | wxPyTreeCtrl *src; | |
6393 | wxObject *dest; | |
6394 | src = (wxPyTreeCtrl *) ptr; | |
6395 | dest = (wxObject *) src; | |
6396 | return (void *) dest; | |
6397 | } | |
6398 | ||
f6bcfd97 | 6399 | #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6400 | static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6401 | PyObject * _resultobj; |
f6bcfd97 | 6402 | wxPyTreeCtrl * _result; |
8ab979d7 | 6403 | wxWindow * _arg0; |
1d99702e | 6404 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
6405 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6406 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
00b6c4e3 | 6407 | long _arg4 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); |
e508a2b6 | 6408 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
137b5242 | 6409 | wxString * _arg6 = (wxString *) &wxPy_TreeCtrlNameStr; |
1d99702e | 6410 | PyObject * _argo0 = 0; |
2f90df85 RD |
6411 | wxPoint temp; |
6412 | PyObject * _obj2 = 0; | |
6413 | wxSize temp0; | |
6414 | PyObject * _obj3 = 0; | |
1d99702e | 6415 | PyObject * _argo5 = 0; |
137b5242 | 6416 | PyObject * _obj6 = 0; |
efc5f224 | 6417 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
6418 | char _ptemp[128]; |
6419 | ||
6420 | self = self; | |
137b5242 | 6421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) |
8ab979d7 | 6422 | return NULL; |
1d99702e RD |
6423 | if (_argo0) { |
6424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p."); |
6427 | return NULL; | |
6428 | } | |
6429 | } | |
2f90df85 RD |
6430 | if (_obj2) |
6431 | { | |
6432 | _arg2 = &temp; | |
6433 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6434 | return NULL; |
2f90df85 RD |
6435 | } |
6436 | if (_obj3) | |
6437 | { | |
6438 | _arg3 = &temp0; | |
6439 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6440 | return NULL; |
2f90df85 | 6441 | } |
1d99702e RD |
6442 | if (_argo5) { |
6443 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6444 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
6445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p."); |
6446 | return NULL; | |
6447 | } | |
6448 | } | |
137b5242 RD |
6449 | if (_obj6) |
6450 | { | |
6451 | _arg6 = wxString_in_helper(_obj6); | |
6452 | if (_arg6 == NULL) | |
6453 | return NULL; | |
6454 | } | |
cf694132 | 6455 | { |
4268f798 | 6456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 6457 | _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
cf694132 | 6458 | |
4268f798 | 6459 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6460 | if (PyErr_Occurred()) return NULL; |
1d99702e | 6461 | } if (_result) { |
f6bcfd97 | 6462 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); |
1d99702e RD |
6463 | _resultobj = Py_BuildValue("s",_ptemp); |
6464 | } else { | |
6465 | Py_INCREF(Py_None); | |
6466 | _resultobj = Py_None; | |
6467 | } | |
137b5242 RD |
6468 | { |
6469 | if (_obj6) | |
6470 | delete _arg6; | |
6471 | } | |
8ab979d7 RD |
6472 | return _resultobj; |
6473 | } | |
6474 | ||
09f3d4e6 RD |
6475 | #define new_wxPreTreeCtrl() (new wxPyTreeCtrl()) |
6476 | static PyObject *_wrap_new_wxPreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6477 | PyObject * _resultobj; | |
6478 | wxPyTreeCtrl * _result; | |
6479 | char *_kwnames[] = { NULL }; | |
6480 | char _ptemp[128]; | |
6481 | ||
6482 | self = self; | |
6483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTreeCtrl",_kwnames)) | |
6484 | return NULL; | |
6485 | { | |
4268f798 | 6486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6487 | _result = (wxPyTreeCtrl *)new_wxPreTreeCtrl(); |
09f3d4e6 | 6488 | |
4268f798 | 6489 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6490 | if (PyErr_Occurred()) return NULL; |
6491 | } if (_result) { | |
6492 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); | |
6493 | _resultobj = Py_BuildValue("s",_ptemp); | |
6494 | } else { | |
6495 | Py_INCREF(Py_None); | |
6496 | _resultobj = Py_None; | |
6497 | } | |
6498 | return _resultobj; | |
6499 | } | |
6500 | ||
6501 | #define wxTreeCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
6502 | static PyObject *_wrap_wxTreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6503 | PyObject * _resultobj; | |
6504 | bool _result; | |
6505 | wxPyTreeCtrl * _arg0; | |
6506 | wxWindow * _arg1; | |
6507 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6508 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6509 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6510 | long _arg5 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); | |
6511 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 6512 | wxString * _arg7 = (wxString *) &wxPy_TreeCtrlNameStr; |
09f3d4e6 RD |
6513 | PyObject * _argo0 = 0; |
6514 | PyObject * _argo1 = 0; | |
6515 | wxPoint temp; | |
6516 | PyObject * _obj3 = 0; | |
6517 | wxSize temp0; | |
6518 | PyObject * _obj4 = 0; | |
6519 | PyObject * _argo6 = 0; | |
137b5242 | 6520 | PyObject * _obj7 = 0; |
09f3d4e6 RD |
6521 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; |
6522 | ||
6523 | self = self; | |
137b5242 | 6524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxTreeCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
09f3d4e6 RD |
6525 | return NULL; |
6526 | if (_argo0) { | |
6527 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6528 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6529 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Create. Expected _wxPyTreeCtrl_p."); | |
6530 | return NULL; | |
6531 | } | |
6532 | } | |
6533 | if (_argo1) { | |
6534 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6535 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Create. Expected _wxWindow_p."); | |
6537 | return NULL; | |
6538 | } | |
6539 | } | |
6540 | if (_obj3) | |
6541 | { | |
6542 | _arg3 = &temp; | |
6543 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6544 | return NULL; | |
6545 | } | |
6546 | if (_obj4) | |
6547 | { | |
6548 | _arg4 = &temp0; | |
6549 | if (! wxSize_helper(_obj4, &_arg4)) | |
6550 | return NULL; | |
6551 | } | |
6552 | if (_argo6) { | |
6553 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6554 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
6555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_Create. Expected _wxValidator_p."); | |
6556 | return NULL; | |
6557 | } | |
6558 | } | |
137b5242 RD |
6559 | if (_obj7) |
6560 | { | |
6561 | _arg7 = wxString_in_helper(_obj7); | |
6562 | if (_arg7 == NULL) | |
6563 | return NULL; | |
6564 | } | |
09f3d4e6 | 6565 | { |
4268f798 | 6566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 6567 | _result = (bool )wxTreeCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
09f3d4e6 | 6568 | |
4268f798 | 6569 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6570 | if (PyErr_Occurred()) return NULL; |
6571 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
6572 | { |
6573 | if (_obj7) | |
6574 | delete _arg7; | |
6575 | } | |
09f3d4e6 RD |
6576 | return _resultobj; |
6577 | } | |
6578 | ||
0122b7e3 RD |
6579 | #define wxTreeCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
6580 | static PyObject *_wrap_wxTreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 BP |
6581 | PyObject * _resultobj; |
6582 | wxPyTreeCtrl * _arg0; | |
6583 | PyObject * _arg1; | |
6584 | PyObject * _arg2; | |
6585 | PyObject * _argo0 = 0; | |
6586 | PyObject * _obj1 = 0; | |
6587 | PyObject * _obj2 = 0; | |
6588 | char *_kwnames[] = { "self","self","_class", NULL }; | |
6589 | ||
6590 | self = self; | |
0122b7e3 | 6591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
f6bcfd97 BP |
6592 | return NULL; |
6593 | if (_argo0) { | |
6594 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6595 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
0122b7e3 | 6596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setCallbackInfo. Expected _wxPyTreeCtrl_p."); |
f6bcfd97 BP |
6597 | return NULL; |
6598 | } | |
6599 | } | |
6600 | { | |
6601 | _arg1 = _obj1; | |
6602 | } | |
6603 | { | |
6604 | _arg2 = _obj2; | |
6605 | } | |
6606 | { | |
4268f798 | 6607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6608 | wxTreeCtrl__setCallbackInfo(_arg0,_arg1,_arg2); |
f6bcfd97 | 6609 | |
4268f798 | 6610 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6611 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6612 | } Py_INCREF(Py_None); |
6613 | _resultobj = Py_None; | |
6614 | return _resultobj; | |
6615 | } | |
6616 | ||
d5c9047a | 6617 | #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount()) |
efc5f224 | 6618 | static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6619 | PyObject * _resultobj; |
c127177f | 6620 | size_t _result; |
f6bcfd97 | 6621 | wxPyTreeCtrl * _arg0; |
1d99702e | 6622 | PyObject * _argo0 = 0; |
efc5f224 | 6623 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6624 | |
6625 | self = self; | |
efc5f224 | 6626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0)) |
8ab979d7 | 6627 | return NULL; |
1d99702e RD |
6628 | if (_argo0) { |
6629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6632 | return NULL; |
6633 | } | |
6634 | } | |
cf694132 | 6635 | { |
4268f798 | 6636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6637 | _result = (size_t )wxTreeCtrl_GetCount(_arg0); |
cf694132 | 6638 | |
4268f798 | 6639 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6640 | if (PyErr_Occurred()) return NULL; |
c127177f | 6641 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6642 | return _resultobj; |
6643 | } | |
6644 | ||
d5c9047a | 6645 | #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) |
efc5f224 | 6646 | static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6647 | PyObject * _resultobj; |
d5c9047a | 6648 | unsigned int _result; |
f6bcfd97 | 6649 | wxPyTreeCtrl * _arg0; |
1d99702e | 6650 | PyObject * _argo0 = 0; |
efc5f224 | 6651 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6652 | |
6653 | self = self; | |
efc5f224 | 6654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0)) |
8ab979d7 | 6655 | return NULL; |
1d99702e RD |
6656 | if (_argo0) { |
6657 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6658 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6660 | return NULL; |
6661 | } | |
6662 | } | |
cf694132 | 6663 | { |
4268f798 | 6664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6665 | _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0); |
cf694132 | 6666 | |
4268f798 | 6667 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6668 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6669 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6670 | return _resultobj; |
6671 | } | |
6672 | ||
d5c9047a | 6673 | #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) |
efc5f224 | 6674 | static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6675 | PyObject * _resultobj; |
f6bcfd97 | 6676 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6677 | unsigned int _arg1; |
1d99702e | 6678 | PyObject * _argo0 = 0; |
efc5f224 | 6679 | char *_kwnames[] = { "self","indent", NULL }; |
8ab979d7 RD |
6680 | |
6681 | self = self; | |
efc5f224 | 6682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6683 | return NULL; |
1d99702e RD |
6684 | if (_argo0) { |
6685 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6686 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6688 | return NULL; |
6689 | } | |
6690 | } | |
cf694132 | 6691 | { |
4268f798 | 6692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6693 | wxTreeCtrl_SetIndent(_arg0,_arg1); |
cf694132 | 6694 | |
4268f798 | 6695 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6696 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6697 | } Py_INCREF(Py_None); |
d5c9047a | 6698 | _resultobj = Py_None; |
8ab979d7 RD |
6699 | return _resultobj; |
6700 | } | |
6701 | ||
d5c9047a | 6702 | #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList()) |
efc5f224 | 6703 | static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6704 | PyObject * _resultobj; |
d5c9047a | 6705 | wxImageList * _result; |
f6bcfd97 | 6706 | wxPyTreeCtrl * _arg0; |
1d99702e | 6707 | PyObject * _argo0 = 0; |
efc5f224 | 6708 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6709 | |
6710 | self = self; | |
efc5f224 | 6711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0)) |
8ab979d7 | 6712 | return NULL; |
1d99702e RD |
6713 | if (_argo0) { |
6714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6717 | return NULL; |
6718 | } | |
6719 | } | |
cf694132 | 6720 | { |
4268f798 | 6721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6722 | _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0); |
cf694132 | 6723 | |
4268f798 | 6724 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6725 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 6726 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
6727 | return _resultobj; |
6728 | } | |
6729 | ||
d5c9047a | 6730 | #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList()) |
efc5f224 | 6731 | static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6732 | PyObject * _resultobj; |
d5c9047a | 6733 | wxImageList * _result; |
f6bcfd97 | 6734 | wxPyTreeCtrl * _arg0; |
1d99702e | 6735 | PyObject * _argo0 = 0; |
efc5f224 | 6736 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6737 | |
6738 | self = self; | |
efc5f224 | 6739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0)) |
8ab979d7 | 6740 | return NULL; |
1d99702e RD |
6741 | if (_argo0) { |
6742 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6743 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6745 | return NULL; |
6746 | } | |
6747 | } | |
cf694132 | 6748 | { |
4268f798 | 6749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6750 | _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0); |
cf694132 | 6751 | |
4268f798 | 6752 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6753 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 6754 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
6755 | return _resultobj; |
6756 | } | |
6757 | ||
d5c9047a | 6758 | #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) |
efc5f224 | 6759 | static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6760 | PyObject * _resultobj; |
f6bcfd97 | 6761 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6762 | wxImageList * _arg1; |
1d99702e RD |
6763 | PyObject * _argo0 = 0; |
6764 | PyObject * _argo1 = 0; | |
efc5f224 | 6765 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
6766 | |
6767 | self = self; | |
efc5f224 | 6768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6769 | return NULL; |
1d99702e RD |
6770 | if (_argo0) { |
6771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6774 | return NULL; |
6775 | } | |
6776 | } | |
1d99702e RD |
6777 | if (_argo1) { |
6778 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6779 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
6780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p."); |
6781 | return NULL; | |
6782 | } | |
6783 | } | |
cf694132 | 6784 | { |
4268f798 | 6785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6786 | wxTreeCtrl_SetImageList(_arg0,_arg1); |
cf694132 | 6787 | |
4268f798 | 6788 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6789 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6790 | } Py_INCREF(Py_None); |
d5c9047a | 6791 | _resultobj = Py_None; |
8ab979d7 RD |
6792 | return _resultobj; |
6793 | } | |
6794 | ||
d5c9047a | 6795 | #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0)) |
efc5f224 | 6796 | static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6797 | PyObject * _resultobj; |
f6bcfd97 | 6798 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6799 | wxImageList * _arg1; |
1d99702e RD |
6800 | PyObject * _argo0 = 0; |
6801 | PyObject * _argo1 = 0; | |
efc5f224 | 6802 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
6803 | |
6804 | self = self; | |
efc5f224 | 6805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6806 | return NULL; |
1d99702e RD |
6807 | if (_argo0) { |
6808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6811 | return NULL; |
6812 | } | |
6813 | } | |
1d99702e RD |
6814 | if (_argo1) { |
6815 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6816 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
6817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p."); |
6818 | return NULL; | |
6819 | } | |
6820 | } | |
cf694132 | 6821 | { |
4268f798 | 6822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6823 | wxTreeCtrl_SetStateImageList(_arg0,_arg1); |
cf694132 | 6824 | |
4268f798 | 6825 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6826 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6827 | } Py_INCREF(Py_None); |
d5c9047a | 6828 | _resultobj = Py_None; |
8ab979d7 RD |
6829 | return _resultobj; |
6830 | } | |
6831 | ||
00b6c4e3 RD |
6832 | #define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0)) |
6833 | static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6834 | PyObject * _resultobj; | |
6835 | wxPyTreeCtrl * _arg0; | |
6836 | wxImageList * _arg1; | |
6837 | PyObject * _argo0 = 0; | |
6838 | PyObject * _argo1 = 0; | |
6839 | char *_kwnames[] = { "self","imageList", NULL }; | |
6840 | ||
6841 | self = self; | |
6842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1)) | |
6843 | return NULL; | |
6844 | if (_argo0) { | |
6845 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6846 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6847 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p."); | |
6848 | return NULL; | |
6849 | } | |
6850 | } | |
6851 | if (_argo1) { | |
6852 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6853 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p."); | |
6855 | return NULL; | |
6856 | } | |
6857 | } | |
6858 | { | |
4268f798 | 6859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6860 | wxTreeCtrl_AssignImageList(_arg0,_arg1); |
00b6c4e3 | 6861 | |
4268f798 | 6862 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
6863 | if (PyErr_Occurred()) return NULL; |
6864 | } Py_INCREF(Py_None); | |
6865 | _resultobj = Py_None; | |
6866 | return _resultobj; | |
6867 | } | |
6868 | ||
6869 | #define wxTreeCtrl_AssignStateImageList(_swigobj,_swigarg0) (_swigobj->AssignStateImageList(_swigarg0)) | |
6870 | static PyObject *_wrap_wxTreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6871 | PyObject * _resultobj; | |
6872 | wxPyTreeCtrl * _arg0; | |
6873 | wxImageList * _arg1; | |
6874 | PyObject * _argo0 = 0; | |
6875 | PyObject * _argo1 = 0; | |
6876 | char *_kwnames[] = { "self","imageList", NULL }; | |
6877 | ||
6878 | self = self; | |
6879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignStateImageList",_kwnames,&_argo0,&_argo1)) | |
6880 | return NULL; | |
6881 | if (_argo0) { | |
6882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignStateImageList. Expected _wxPyTreeCtrl_p."); | |
6885 | return NULL; | |
6886 | } | |
6887 | } | |
6888 | if (_argo1) { | |
6889 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6890 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignStateImageList. Expected _wxImageList_p."); | |
6892 | return NULL; | |
6893 | } | |
6894 | } | |
6895 | { | |
4268f798 | 6896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6897 | wxTreeCtrl_AssignStateImageList(_arg0,_arg1); |
00b6c4e3 | 6898 | |
4268f798 | 6899 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
6900 | if (PyErr_Occurred()) return NULL; |
6901 | } Py_INCREF(Py_None); | |
6902 | _resultobj = Py_None; | |
6903 | return _resultobj; | |
6904 | } | |
6905 | ||
b1462dfa RD |
6906 | #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing()) |
6907 | static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6908 | PyObject * _resultobj; | |
6909 | unsigned int _result; | |
f6bcfd97 | 6910 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
6911 | PyObject * _argo0 = 0; |
6912 | char *_kwnames[] = { "self", NULL }; | |
6913 | ||
6914 | self = self; | |
6915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0)) | |
6916 | return NULL; | |
6917 | if (_argo0) { | |
6918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
6921 | return NULL; |
6922 | } | |
6923 | } | |
6924 | { | |
4268f798 | 6925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6926 | _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0); |
b1462dfa | 6927 | |
4268f798 | 6928 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6929 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
6930 | } _resultobj = Py_BuildValue("i",_result); |
6931 | return _resultobj; | |
6932 | } | |
6933 | ||
6934 | #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0)) | |
6935 | static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6936 | PyObject * _resultobj; | |
f6bcfd97 | 6937 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
6938 | unsigned int _arg1; |
6939 | PyObject * _argo0 = 0; | |
6940 | char *_kwnames[] = { "self","spacing", NULL }; | |
6941 | ||
6942 | self = self; | |
6943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1)) | |
6944 | return NULL; | |
6945 | if (_argo0) { | |
6946 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6947 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
6949 | return NULL; |
6950 | } | |
6951 | } | |
6952 | { | |
4268f798 | 6953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6954 | wxTreeCtrl_SetSpacing(_arg0,_arg1); |
b1462dfa | 6955 | |
4268f798 | 6956 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6957 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
6958 | } Py_INCREF(Py_None); |
6959 | _resultobj = Py_None; | |
6960 | return _resultobj; | |
6961 | } | |
6962 | ||
d5c9047a | 6963 | #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
efc5f224 | 6964 | static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6965 | PyObject * _resultobj; |
d5c9047a | 6966 | wxString * _result; |
f6bcfd97 | 6967 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6968 | wxTreeItemId * _arg1; |
1d99702e RD |
6969 | PyObject * _argo0 = 0; |
6970 | PyObject * _argo1 = 0; | |
efc5f224 | 6971 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6972 | |
6973 | self = self; | |
efc5f224 | 6974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6975 | return NULL; |
1d99702e RD |
6976 | if (_argo0) { |
6977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6980 | return NULL; |
6981 | } | |
6982 | } | |
1d99702e RD |
6983 | if (_argo1) { |
6984 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6985 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p."); |
6987 | return NULL; | |
6988 | } | |
6989 | } | |
d5c9047a | 6990 | { |
4268f798 | 6991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6992 | _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1)); |
cf694132 | 6993 | |
4268f798 | 6994 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6995 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6996 | }{ |
c8bc7bb8 RD |
6997 | #if wxUSE_UNICODE |
6998 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6999 | #else | |
eec92d76 | 7000 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7001 | #endif |
d5c9047a RD |
7002 | } |
7003 | { | |
7004 | delete _result; | |
7005 | } | |
8ab979d7 RD |
7006 | return _resultobj; |
7007 | } | |
7008 | ||
694759cf | 7009 | #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1)) |
efc5f224 | 7010 | static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7011 | PyObject * _resultobj; |
d5c9047a | 7012 | int _result; |
f6bcfd97 | 7013 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7014 | wxTreeItemId * _arg1; |
694759cf | 7015 | wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
7016 | PyObject * _argo0 = 0; |
7017 | PyObject * _argo1 = 0; | |
694759cf | 7018 | char *_kwnames[] = { "self","item","which", NULL }; |
8ab979d7 RD |
7019 | |
7020 | self = self; | |
694759cf | 7021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 7022 | return NULL; |
1d99702e RD |
7023 | if (_argo0) { |
7024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7027 | return NULL; |
7028 | } | |
7029 | } | |
1d99702e RD |
7030 | if (_argo1) { |
7031 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7032 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p."); |
7034 | return NULL; | |
7035 | } | |
7036 | } | |
cf694132 | 7037 | { |
4268f798 | 7038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7039 | _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2); |
cf694132 | 7040 | |
4268f798 | 7041 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7042 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7043 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7044 | return _resultobj; |
7045 | } | |
7046 | ||
d5c9047a | 7047 | #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0)) |
efc5f224 | 7048 | static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7049 | PyObject * _resultobj; |
d5c9047a | 7050 | int _result; |
f6bcfd97 | 7051 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7052 | wxTreeItemId * _arg1; |
1d99702e RD |
7053 | PyObject * _argo0 = 0; |
7054 | PyObject * _argo1 = 0; | |
efc5f224 | 7055 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7056 | |
7057 | self = self; | |
efc5f224 | 7058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7059 | return NULL; |
1d99702e RD |
7060 | if (_argo0) { |
7061 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7062 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7064 | return NULL; |
7065 | } | |
7066 | } | |
1d99702e RD |
7067 | if (_argo1) { |
7068 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7069 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p."); |
7071 | return NULL; | |
7072 | } | |
7073 | } | |
cf694132 | 7074 | { |
4268f798 | 7075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7076 | _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1); |
8ab979d7 | 7077 | |
4268f798 | 7078 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7079 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7080 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7081 | return _resultobj; |
7082 | } | |
7083 | ||
d5c9047a | 7084 | #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
efc5f224 | 7085 | static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7086 | PyObject * _resultobj; |
f6bcfd97 | 7087 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7088 | wxTreeItemId * _arg1; |
7089 | wxString * _arg2; | |
1d99702e RD |
7090 | PyObject * _argo0 = 0; |
7091 | PyObject * _argo1 = 0; | |
d5c9047a | 7092 | PyObject * _obj2 = 0; |
efc5f224 | 7093 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
7094 | |
7095 | self = self; | |
efc5f224 | 7096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7097 | return NULL; |
1d99702e RD |
7098 | if (_argo0) { |
7099 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7100 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7102 | return NULL; |
7103 | } | |
7104 | } | |
1d99702e RD |
7105 | if (_argo1) { |
7106 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7107 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p."); |
7109 | return NULL; | |
7110 | } | |
7111 | } | |
7112 | { | |
c8bc7bb8 RD |
7113 | _arg2 = wxString_in_helper(_obj2); |
7114 | if (_arg2 == NULL) | |
185d7c3e | 7115 | return NULL; |
d5c9047a | 7116 | } |
cf694132 | 7117 | { |
4268f798 | 7118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7119 | wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2); |
cf694132 | 7120 | |
4268f798 | 7121 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7122 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7123 | } Py_INCREF(Py_None); |
d5c9047a RD |
7124 | _resultobj = Py_None; |
7125 | { | |
7126 | if (_obj2) | |
7127 | delete _arg2; | |
7128 | } | |
8ab979d7 RD |
7129 | return _resultobj; |
7130 | } | |
7131 | ||
694759cf | 7132 | #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 7133 | static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7134 | PyObject * _resultobj; |
f6bcfd97 | 7135 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7136 | wxTreeItemId * _arg1; |
7137 | int _arg2; | |
694759cf | 7138 | wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
7139 | PyObject * _argo0 = 0; |
7140 | PyObject * _argo1 = 0; | |
694759cf | 7141 | char *_kwnames[] = { "self","item","image","which", NULL }; |
8ab979d7 RD |
7142 | |
7143 | self = self; | |
694759cf | 7144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 7145 | return NULL; |
1d99702e RD |
7146 | if (_argo0) { |
7147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7150 | return NULL; |
7151 | } | |
7152 | } | |
1d99702e RD |
7153 | if (_argo1) { |
7154 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7155 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p."); |
7157 | return NULL; | |
7158 | } | |
7159 | } | |
cf694132 | 7160 | { |
4268f798 | 7161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7162 | wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 7163 | |
4268f798 | 7164 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7165 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7166 | } Py_INCREF(Py_None); |
d5c9047a | 7167 | _resultobj = Py_None; |
8ab979d7 RD |
7168 | return _resultobj; |
7169 | } | |
7170 | ||
d5c9047a | 7171 | #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1)) |
efc5f224 | 7172 | static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7173 | PyObject * _resultobj; |
f6bcfd97 | 7174 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7175 | wxTreeItemId * _arg1; |
7176 | int _arg2; | |
1d99702e RD |
7177 | PyObject * _argo0 = 0; |
7178 | PyObject * _argo1 = 0; | |
efc5f224 | 7179 | char *_kwnames[] = { "self","item","image", NULL }; |
8ab979d7 RD |
7180 | |
7181 | self = self; | |
efc5f224 | 7182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 7183 | return NULL; |
1d99702e RD |
7184 | if (_argo0) { |
7185 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7186 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7188 | return NULL; |
7189 | } | |
7190 | } | |
1d99702e RD |
7191 | if (_argo1) { |
7192 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7193 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p."); |
7195 | return NULL; | |
7196 | } | |
7197 | } | |
cf694132 | 7198 | { |
4268f798 | 7199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7200 | wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2); |
cf694132 | 7201 | |
4268f798 | 7202 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7203 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7204 | } Py_INCREF(Py_None); |
7205 | _resultobj = Py_None; | |
7206 | return _resultobj; | |
7207 | } | |
7208 | ||
7209 | #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1)) | |
efc5f224 | 7210 | static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7211 | PyObject * _resultobj; |
f6bcfd97 | 7212 | wxPyTreeCtrl * _arg0; |
cf694132 | 7213 | wxTreeItemId * _arg1; |
1d99702e RD |
7214 | bool _arg2 = (bool ) TRUE; |
7215 | PyObject * _argo0 = 0; | |
7216 | PyObject * _argo1 = 0; | |
7217 | int tempbool2 = (int) TRUE; | |
efc5f224 | 7218 | char *_kwnames[] = { "self","item","hasChildren", NULL }; |
cf694132 RD |
7219 | |
7220 | self = self; | |
efc5f224 | 7221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2)) |
cf694132 | 7222 | return NULL; |
1d99702e RD |
7223 | if (_argo0) { |
7224 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7225 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7227 | return NULL; |
7228 | } | |
7229 | } | |
1d99702e RD |
7230 | if (_argo1) { |
7231 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7232 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p."); |
7234 | return NULL; | |
7235 | } | |
7236 | } | |
7237 | _arg2 = (bool ) tempbool2; | |
7238 | { | |
4268f798 | 7239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7240 | wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2); |
cf694132 | 7241 | |
4268f798 | 7242 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7243 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7244 | } Py_INCREF(Py_None); |
d5c9047a | 7245 | _resultobj = Py_None; |
8ab979d7 RD |
7246 | return _resultobj; |
7247 | } | |
7248 | ||
f6bcfd97 | 7249 | static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7250 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7251 | if (data == NULL) { | |
7252 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7253 | data->SetId(item); // set the id |
cf694132 RD |
7254 | self->SetItemData(item, data); |
7255 | } | |
7256 | return data; | |
7257 | } | |
efc5f224 | 7258 | static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
7259 | PyObject * _resultobj; |
7260 | wxPyTreeItemData * _result; | |
f6bcfd97 | 7261 | wxPyTreeCtrl * _arg0; |
cf694132 | 7262 | wxTreeItemId * _arg1; |
1d99702e RD |
7263 | PyObject * _argo0 = 0; |
7264 | PyObject * _argo1 = 0; | |
efc5f224 | 7265 | char *_kwnames[] = { "self","item", NULL }; |
cf694132 RD |
7266 | char _ptemp[128]; |
7267 | ||
7268 | self = self; | |
efc5f224 | 7269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1)) |
cf694132 | 7270 | return NULL; |
1d99702e RD |
7271 | if (_argo0) { |
7272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7275 | return NULL; |
7276 | } | |
7277 | } | |
1d99702e RD |
7278 | if (_argo1) { |
7279 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7280 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p."); |
7282 | return NULL; | |
7283 | } | |
7284 | } | |
7285 | { | |
4268f798 | 7286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7287 | _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1); |
cf694132 | 7288 | |
4268f798 | 7289 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7290 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7291 | } if (_result) { |
7292 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
7293 | _resultobj = Py_BuildValue("s",_ptemp); | |
7294 | } else { | |
7295 | Py_INCREF(Py_None); | |
7296 | _resultobj = Py_None; | |
7297 | } | |
cf694132 RD |
7298 | return _resultobj; |
7299 | } | |
7300 | ||
f6bcfd97 BP |
7301 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) { |
7302 | data->SetId(item); // set the id | |
7303 | self->SetItemData(item, data); | |
c368d904 | 7304 | } |
efc5f224 | 7305 | static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7306 | PyObject * _resultobj; |
f6bcfd97 | 7307 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7308 | wxTreeItemId * _arg1; |
cf694132 | 7309 | wxPyTreeItemData * _arg2; |
1d99702e RD |
7310 | PyObject * _argo0 = 0; |
7311 | PyObject * _argo1 = 0; | |
7312 | PyObject * _argo2 = 0; | |
efc5f224 | 7313 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
7314 | |
7315 | self = self; | |
efc5f224 | 7316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2)) |
8ab979d7 | 7317 | return NULL; |
1d99702e RD |
7318 | if (_argo0) { |
7319 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7320 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7322 | return NULL; |
7323 | } | |
7324 | } | |
1d99702e RD |
7325 | if (_argo1) { |
7326 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7327 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p."); |
7329 | return NULL; | |
7330 | } | |
7331 | } | |
1d99702e RD |
7332 | if (_argo2) { |
7333 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7334 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) { | |
cf694132 | 7335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
7336 | return NULL; |
7337 | } | |
7338 | } | |
cf694132 | 7339 | { |
4268f798 | 7340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7341 | wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2); |
cf694132 | 7342 | |
4268f798 | 7343 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7344 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7345 | } Py_INCREF(Py_None); |
d5c9047a | 7346 | _resultobj = Py_None; |
8ab979d7 RD |
7347 | return _resultobj; |
7348 | } | |
7349 | ||
f6bcfd97 | 7350 | static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7351 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7352 | if (data == NULL) { | |
7353 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7354 | data->SetId(item); // set the id |
cf694132 RD |
7355 | self->SetItemData(item, data); |
7356 | } | |
7357 | return data->GetData(); | |
c368d904 | 7358 | } |
efc5f224 | 7359 | static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 7360 | PyObject * _resultobj; |
cf694132 | 7361 | PyObject * _result; |
f6bcfd97 | 7362 | wxPyTreeCtrl * _arg0; |
08127323 | 7363 | wxTreeItemId * _arg1; |
1d99702e RD |
7364 | PyObject * _argo0 = 0; |
7365 | PyObject * _argo1 = 0; | |
efc5f224 | 7366 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
7367 | |
7368 | self = self; | |
efc5f224 | 7369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1)) |
08127323 | 7370 | return NULL; |
1d99702e RD |
7371 | if (_argo0) { |
7372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
7375 | return NULL; |
7376 | } | |
7377 | } | |
1d99702e RD |
7378 | if (_argo1) { |
7379 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7380 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 | 7381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p."); |
08127323 RD |
7382 | return NULL; |
7383 | } | |
7384 | } | |
cf694132 | 7385 | { |
4268f798 | 7386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7387 | _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1); |
cf694132 | 7388 | |
4268f798 | 7389 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7390 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7391 | }{ |
7392 | _resultobj = _result; | |
7393 | } | |
7394 | return _resultobj; | |
7395 | } | |
7396 | ||
f6bcfd97 | 7397 | static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) { |
cf694132 RD |
7398 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7399 | if (data == NULL) { | |
7400 | data = new wxPyTreeItemData(obj); | |
f6bcfd97 | 7401 | data->SetId(item); // set the id |
cf694132 RD |
7402 | self->SetItemData(item, data); |
7403 | } else | |
7404 | data->SetData(obj); | |
c368d904 | 7405 | } |
efc5f224 | 7406 | static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7407 | PyObject * _resultobj; |
f6bcfd97 | 7408 | wxPyTreeCtrl * _arg0; |
cf694132 RD |
7409 | wxTreeItemId * _arg1; |
7410 | PyObject * _arg2; | |
1d99702e RD |
7411 | PyObject * _argo0 = 0; |
7412 | PyObject * _argo1 = 0; | |
cf694132 | 7413 | PyObject * _obj2 = 0; |
efc5f224 | 7414 | char *_kwnames[] = { "self","item","obj", NULL }; |
cf694132 RD |
7415 | |
7416 | self = self; | |
efc5f224 | 7417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2)) |
cf694132 | 7418 | return NULL; |
1d99702e RD |
7419 | if (_argo0) { |
7420 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7421 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7423 | return NULL; |
7424 | } | |
7425 | } | |
1d99702e RD |
7426 | if (_argo1) { |
7427 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7428 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p."); |
7430 | return NULL; | |
7431 | } | |
7432 | } | |
7433 | { | |
7434 | _arg2 = _obj2; | |
7435 | } | |
7436 | { | |
4268f798 | 7437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7438 | wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2); |
cf694132 | 7439 | |
4268f798 | 7440 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7441 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7442 | } Py_INCREF(Py_None); |
08127323 RD |
7443 | _resultobj = Py_None; |
7444 | return _resultobj; | |
7445 | } | |
7446 | ||
d5c9047a | 7447 | #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) |
efc5f224 | 7448 | static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7449 | PyObject * _resultobj; |
d5c9047a | 7450 | bool _result; |
f6bcfd97 | 7451 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7452 | wxTreeItemId * _arg1; |
1d99702e RD |
7453 | PyObject * _argo0 = 0; |
7454 | PyObject * _argo1 = 0; | |
efc5f224 | 7455 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7456 | |
7457 | self = self; | |
efc5f224 | 7458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7459 | return NULL; |
1d99702e RD |
7460 | if (_argo0) { |
7461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7464 | return NULL; |
7465 | } | |
7466 | } | |
1d99702e RD |
7467 | if (_argo1) { |
7468 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7469 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p."); |
7471 | return NULL; | |
7472 | } | |
7473 | } | |
cf694132 | 7474 | { |
4268f798 | 7475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7476 | _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1); |
cf694132 | 7477 | |
4268f798 | 7478 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7479 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7480 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7481 | return _resultobj; |
7482 | } | |
7483 | ||
d5c9047a | 7484 | #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0)) |
efc5f224 | 7485 | static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7486 | PyObject * _resultobj; |
d5c9047a | 7487 | bool _result; |
f6bcfd97 | 7488 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7489 | wxTreeItemId * _arg1; |
1d99702e RD |
7490 | PyObject * _argo0 = 0; |
7491 | PyObject * _argo1 = 0; | |
efc5f224 | 7492 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7493 | |
7494 | self = self; | |
efc5f224 | 7495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7496 | return NULL; |
1d99702e RD |
7497 | if (_argo0) { |
7498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7501 | return NULL; |
7502 | } | |
7503 | } | |
1d99702e RD |
7504 | if (_argo1) { |
7505 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7506 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p."); |
7508 | return NULL; | |
7509 | } | |
7510 | } | |
cf694132 | 7511 | { |
4268f798 | 7512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7513 | _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1); |
cf694132 | 7514 | |
4268f798 | 7515 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7516 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7517 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7518 | return _resultobj; |
7519 | } | |
7520 | ||
d5c9047a | 7521 | #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0)) |
efc5f224 | 7522 | static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7523 | PyObject * _resultobj; |
d5c9047a | 7524 | bool _result; |
f6bcfd97 | 7525 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7526 | wxTreeItemId * _arg1; |
1d99702e RD |
7527 | PyObject * _argo0 = 0; |
7528 | PyObject * _argo1 = 0; | |
efc5f224 | 7529 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7530 | |
7531 | self = self; | |
efc5f224 | 7532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7533 | return NULL; |
1d99702e RD |
7534 | if (_argo0) { |
7535 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7536 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7538 | return NULL; |
7539 | } | |
7540 | } | |
1d99702e RD |
7541 | if (_argo1) { |
7542 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7543 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p."); |
7545 | return NULL; | |
7546 | } | |
7547 | } | |
cf694132 | 7548 | { |
4268f798 | 7549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7550 | _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1); |
cf694132 | 7551 | |
4268f798 | 7552 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7553 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7554 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7555 | return _resultobj; |
7556 | } | |
7557 | ||
d5c9047a | 7558 | #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
efc5f224 | 7559 | static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7560 | PyObject * _resultobj; |
d5c9047a | 7561 | bool _result; |
f6bcfd97 | 7562 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7563 | wxTreeItemId * _arg1; |
1d99702e RD |
7564 | PyObject * _argo0 = 0; |
7565 | PyObject * _argo1 = 0; | |
efc5f224 | 7566 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7567 | |
7568 | self = self; | |
efc5f224 | 7569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7570 | return NULL; |
1d99702e RD |
7571 | if (_argo0) { |
7572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7575 | return NULL; |
7576 | } | |
7577 | } | |
1d99702e RD |
7578 | if (_argo1) { |
7579 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7580 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p."); |
7582 | return NULL; | |
7583 | } | |
7584 | } | |
cf694132 | 7585 | { |
4268f798 | 7586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7587 | _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1); |
cf694132 | 7588 | |
4268f798 | 7589 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7590 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7591 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7592 | return _resultobj; |
7593 | } | |
7594 | ||
7595 | #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem()) | |
efc5f224 | 7596 | static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7597 | PyObject * _resultobj; |
d5c9047a | 7598 | wxTreeItemId * _result; |
f6bcfd97 | 7599 | wxPyTreeCtrl * _arg0; |
1d99702e | 7600 | PyObject * _argo0 = 0; |
efc5f224 | 7601 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7602 | char _ptemp[128]; |
8ab979d7 RD |
7603 | |
7604 | self = self; | |
efc5f224 | 7605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0)) |
8ab979d7 | 7606 | return NULL; |
1d99702e RD |
7607 | if (_argo0) { |
7608 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7609 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7611 | return NULL; |
7612 | } | |
7613 | } | |
cf694132 | 7614 | { |
4268f798 | 7615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7616 | _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0)); |
cf694132 | 7617 | |
4268f798 | 7618 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7619 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7620 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7621 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7622 | return _resultobj; |
7623 | } | |
7624 | ||
7625 | #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 7626 | static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7627 | PyObject * _resultobj; |
d5c9047a | 7628 | wxTreeItemId * _result; |
f6bcfd97 | 7629 | wxPyTreeCtrl * _arg0; |
1d99702e | 7630 | PyObject * _argo0 = 0; |
efc5f224 | 7631 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7632 | char _ptemp[128]; |
8ab979d7 RD |
7633 | |
7634 | self = self; | |
efc5f224 | 7635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 7636 | return NULL; |
1d99702e RD |
7637 | if (_argo0) { |
7638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7641 | return NULL; |
7642 | } | |
7643 | } | |
cf694132 | 7644 | { |
4268f798 | 7645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7646 | _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0)); |
cf694132 | 7647 | |
4268f798 | 7648 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7649 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7650 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7651 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7652 | return _resultobj; |
7653 | } | |
7654 | ||
eb715945 RD |
7655 | #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0)) |
7656 | static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7657 | PyObject * _resultobj; |
d5c9047a | 7658 | wxTreeItemId * _result; |
f6bcfd97 | 7659 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7660 | wxTreeItemId * _arg1; |
1d99702e RD |
7661 | PyObject * _argo0 = 0; |
7662 | PyObject * _argo1 = 0; | |
efc5f224 | 7663 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7664 | char _ptemp[128]; |
8ab979d7 RD |
7665 | |
7666 | self = self; | |
eb715945 | 7667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7668 | return NULL; |
1d99702e RD |
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_GetItemParent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7673 | return NULL; |
7674 | } | |
7675 | } | |
1d99702e RD |
7676 | if (_argo1) { |
7677 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7678 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
eb715945 | 7679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7680 | return NULL; |
7681 | } | |
7682 | } | |
cf694132 | 7683 | { |
4268f798 | 7684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7685 | _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1)); |
cf694132 | 7686 | |
4268f798 | 7687 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7688 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7689 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7690 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7691 | return _resultobj; |
7692 | } | |
7693 | ||
f6bcfd97 | 7694 | static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) { |
4268f798 | 7695 | wxPyBeginBlockThreads(); |
d426c97e RD |
7696 | PyObject* rval = PyList_New(0); |
7697 | wxArrayTreeItemIds array; | |
7698 | size_t num, x; | |
7699 | num = self->GetSelections(array); | |
7700 | for (x=0; x < num; x++) { | |
c368d904 RD |
7701 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); |
7702 | PyObject* item = wxPyConstructObject((void*)tii, "wxTreeItemId", TRUE); | |
d426c97e RD |
7703 | PyList_Append(rval, item); |
7704 | } | |
4268f798 | 7705 | wxPyEndBlockThreads(); |
d426c97e RD |
7706 | return rval; |
7707 | } | |
7708 | static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7709 | PyObject * _resultobj; | |
7710 | PyObject * _result; | |
f6bcfd97 | 7711 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
7712 | PyObject * _argo0 = 0; |
7713 | char *_kwnames[] = { "self", NULL }; | |
7714 | ||
7715 | self = self; | |
7716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0)) | |
7717 | return NULL; | |
7718 | if (_argo0) { | |
7719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
7722 | return NULL; |
7723 | } | |
7724 | } | |
7725 | { | |
4268f798 | 7726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7727 | _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0); |
d426c97e | 7728 | |
4268f798 | 7729 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7730 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
7731 | }{ |
7732 | _resultobj = _result; | |
7733 | } | |
7734 | return _resultobj; | |
7735 | } | |
7736 | ||
bb0054cd | 7737 | #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1)) |
efc5f224 | 7738 | static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
7739 | PyObject * _resultobj; |
7740 | size_t _result; | |
f6bcfd97 | 7741 | wxPyTreeCtrl * _arg0; |
bb0054cd | 7742 | wxTreeItemId * _arg1; |
1d99702e RD |
7743 | bool _arg2 = (bool ) TRUE; |
7744 | PyObject * _argo0 = 0; | |
7745 | PyObject * _argo1 = 0; | |
7746 | int tempbool2 = (int) TRUE; | |
efc5f224 | 7747 | char *_kwnames[] = { "self","item","recursively", NULL }; |
bb0054cd RD |
7748 | |
7749 | self = self; | |
efc5f224 | 7750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2)) |
bb0054cd | 7751 | return NULL; |
1d99702e RD |
7752 | if (_argo0) { |
7753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p."); | |
bb0054cd RD |
7756 | return NULL; |
7757 | } | |
7758 | } | |
1d99702e RD |
7759 | if (_argo1) { |
7760 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7761 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
bb0054cd RD |
7762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p."); |
7763 | return NULL; | |
7764 | } | |
7765 | } | |
7766 | _arg2 = (bool ) tempbool2; | |
7767 | { | |
4268f798 | 7768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7769 | _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2); |
bb0054cd | 7770 | |
4268f798 | 7771 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7772 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
7773 | } _resultobj = Py_BuildValue("i",_result); |
7774 | return _resultobj; | |
7775 | } | |
7776 | ||
d5c9047a | 7777 | #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1)) |
efc5f224 | 7778 | static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7779 | PyObject * _resultobj; |
d5c9047a | 7780 | wxTreeItemId * _result; |
f6bcfd97 | 7781 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7782 | wxTreeItemId * _arg1; |
f87dfa06 | 7783 | long * _arg2 = (long *) &0; |
1d99702e RD |
7784 | PyObject * _argo0 = 0; |
7785 | PyObject * _argo1 = 0; | |
d5c9047a RD |
7786 | long temp; |
7787 | PyObject * _obj2 = 0; | |
efc5f224 | 7788 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 7789 | char _ptemp[128]; |
8ab979d7 RD |
7790 | |
7791 | self = self; | |
f87dfa06 | 7792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7793 | return NULL; |
1d99702e RD |
7794 | if (_argo0) { |
7795 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7796 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7798 | return NULL; |
7799 | } | |
7800 | } | |
1d99702e RD |
7801 | if (_argo1) { |
7802 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7803 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7805 | return NULL; |
7806 | } | |
7807 | } | |
f87dfa06 | 7808 | if (_obj2) |
d5c9047a RD |
7809 | { |
7810 | temp = (long) PyInt_AsLong(_obj2); | |
7811 | _arg2 = &temp; | |
7812 | } | |
cf694132 | 7813 | { |
4268f798 | 7814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7815 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); |
cf694132 | 7816 | |
4268f798 | 7817 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7818 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7819 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
7820 | _resultobj = Py_BuildValue("s",_ptemp); |
7821 | { | |
7822 | PyObject *o; | |
7823 | o = PyInt_FromLong((long) (*_arg2)); | |
7824 | _resultobj = t_output_helper(_resultobj, o); | |
7825 | } | |
8ab979d7 RD |
7826 | return _resultobj; |
7827 | } | |
7828 | ||
d5c9047a | 7829 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) |
efc5f224 | 7830 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7831 | PyObject * _resultobj; |
d5c9047a | 7832 | wxTreeItemId * _result; |
f6bcfd97 | 7833 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7834 | wxTreeItemId * _arg1; |
7835 | long * _arg2; | |
1d99702e RD |
7836 | PyObject * _argo0 = 0; |
7837 | PyObject * _argo1 = 0; | |
d5c9047a | 7838 | long temp; |
8ab979d7 | 7839 | PyObject * _obj2 = 0; |
efc5f224 | 7840 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 7841 | char _ptemp[128]; |
8ab979d7 RD |
7842 | |
7843 | self = self; | |
efc5f224 | 7844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7845 | return NULL; |
1d99702e RD |
7846 | if (_argo0) { |
7847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7850 | return NULL; |
7851 | } | |
7852 | } | |
1d99702e RD |
7853 | if (_argo1) { |
7854 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7855 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); |
8ab979d7 | 7857 | return NULL; |
d5c9047a | 7858 | } |
8ab979d7 | 7859 | } |
d5c9047a RD |
7860 | { |
7861 | temp = (long) PyInt_AsLong(_obj2); | |
7862 | _arg2 = &temp; | |
8ab979d7 | 7863 | } |
cf694132 | 7864 | { |
4268f798 | 7865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7866 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); |
cf694132 | 7867 | |
4268f798 | 7868 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7869 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7870 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7871 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 | 7872 | { |
d5c9047a RD |
7873 | PyObject *o; |
7874 | o = PyInt_FromLong((long) (*_arg2)); | |
7875 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
7876 | } |
7877 | return _resultobj; | |
7878 | } | |
7879 | ||
d5c9047a | 7880 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) |
efc5f224 | 7881 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7882 | PyObject * _resultobj; |
d5c9047a | 7883 | wxTreeItemId * _result; |
f6bcfd97 | 7884 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7885 | wxTreeItemId * _arg1; |
1d99702e RD |
7886 | PyObject * _argo0 = 0; |
7887 | PyObject * _argo1 = 0; | |
efc5f224 | 7888 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7889 | char _ptemp[128]; |
8ab979d7 RD |
7890 | |
7891 | self = self; | |
efc5f224 | 7892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7893 | return NULL; |
1d99702e RD |
7894 | if (_argo0) { |
7895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7898 | return NULL; |
7899 | } | |
7900 | } | |
1d99702e RD |
7901 | if (_argo1) { |
7902 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7903 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); |
7905 | return NULL; | |
7906 | } | |
7907 | } | |
cf694132 | 7908 | { |
4268f798 | 7909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7910 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); |
cf694132 | 7911 | |
4268f798 | 7912 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7913 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7914 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7915 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7916 | return _resultobj; |
7917 | } | |
7918 | ||
d5c9047a | 7919 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) |
efc5f224 | 7920 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7921 | PyObject * _resultobj; |
d5c9047a | 7922 | wxTreeItemId * _result; |
f6bcfd97 | 7923 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7924 | wxTreeItemId * _arg1; |
1d99702e RD |
7925 | PyObject * _argo0 = 0; |
7926 | PyObject * _argo1 = 0; | |
efc5f224 | 7927 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7928 | char _ptemp[128]; |
8ab979d7 RD |
7929 | |
7930 | self = self; | |
efc5f224 | 7931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7932 | return NULL; |
1d99702e RD |
7933 | if (_argo0) { |
7934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7937 | return NULL; |
7938 | } | |
7939 | } | |
1d99702e RD |
7940 | if (_argo1) { |
7941 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7942 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); |
7944 | return NULL; | |
7945 | } | |
7946 | } | |
cf694132 | 7947 | { |
4268f798 | 7948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7949 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); |
cf694132 | 7950 | |
4268f798 | 7951 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7952 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7953 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7954 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7955 | return _resultobj; |
7956 | } | |
7957 | ||
d5c9047a | 7958 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) |
efc5f224 | 7959 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7960 | PyObject * _resultobj; |
d5c9047a | 7961 | wxTreeItemId * _result; |
f6bcfd97 | 7962 | wxPyTreeCtrl * _arg0; |
1d99702e | 7963 | PyObject * _argo0 = 0; |
efc5f224 | 7964 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7965 | char _ptemp[128]; |
8ab979d7 RD |
7966 | |
7967 | self = self; | |
efc5f224 | 7968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) |
8ab979d7 | 7969 | return NULL; |
1d99702e RD |
7970 | if (_argo0) { |
7971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7974 | return NULL; |
7975 | } | |
7976 | } | |
cf694132 | 7977 | { |
4268f798 | 7978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7979 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); |
cf694132 | 7980 | |
4268f798 | 7981 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7982 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7983 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7984 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7985 | return _resultobj; |
7986 | } | |
7987 | ||
d5c9047a | 7988 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) |
efc5f224 | 7989 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7990 | PyObject * _resultobj; |
d5c9047a | 7991 | wxTreeItemId * _result; |
f6bcfd97 | 7992 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7993 | wxTreeItemId * _arg1; |
1d99702e RD |
7994 | PyObject * _argo0 = 0; |
7995 | PyObject * _argo1 = 0; | |
efc5f224 | 7996 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7997 | char _ptemp[128]; |
8ab979d7 RD |
7998 | |
7999 | self = self; | |
efc5f224 | 8000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8001 | return NULL; |
1d99702e RD |
8002 | if (_argo0) { |
8003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8006 | return NULL; |
8007 | } | |
8008 | } | |
1d99702e RD |
8009 | if (_argo1) { |
8010 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8011 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); |
8013 | return NULL; | |
8014 | } | |
8015 | } | |
cf694132 | 8016 | { |
4268f798 | 8017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8018 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); |
cf694132 | 8019 | |
4268f798 | 8020 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8021 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8022 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8023 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8024 | return _resultobj; |
8025 | } | |
8026 | ||
d5c9047a | 8027 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) |
efc5f224 | 8028 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8029 | PyObject * _resultobj; |
d5c9047a | 8030 | wxTreeItemId * _result; |
f6bcfd97 | 8031 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8032 | wxTreeItemId * _arg1; |
1d99702e RD |
8033 | PyObject * _argo0 = 0; |
8034 | PyObject * _argo1 = 0; | |
efc5f224 | 8035 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8036 | char _ptemp[128]; |
8ab979d7 RD |
8037 | |
8038 | self = self; | |
efc5f224 | 8039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8040 | return NULL; |
1d99702e RD |
8041 | if (_argo0) { |
8042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8045 | return NULL; |
8046 | } | |
8047 | } | |
1d99702e RD |
8048 | if (_argo1) { |
8049 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8050 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 8051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8052 | return NULL; |
8053 | } | |
8054 | } | |
cf694132 | 8055 | { |
4268f798 | 8056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8057 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); |
cf694132 | 8058 | |
4268f798 | 8059 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8060 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8061 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8062 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8063 | return _resultobj; |
8064 | } | |
8065 | ||
d426c97e RD |
8066 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) |
8067 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8068 | PyObject * _resultobj; | |
8069 | wxTreeItemId * _result; | |
f6bcfd97 | 8070 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8071 | wxTreeItemId * _arg1; |
8072 | PyObject * _argo0 = 0; | |
8073 | PyObject * _argo1 = 0; | |
8074 | char *_kwnames[] = { "self","item", NULL }; | |
8075 | char _ptemp[128]; | |
8076 | ||
8077 | self = self; | |
8078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
8079 | return NULL; | |
8080 | if (_argo0) { | |
8081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8084 | return NULL; |
8085 | } | |
8086 | } | |
8087 | if (_argo1) { | |
8088 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8089 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); | |
8091 | return NULL; | |
8092 | } | |
8093 | } | |
8094 | { | |
4268f798 | 8095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8096 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); |
d426c97e | 8097 | |
4268f798 | 8098 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8099 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8100 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8101 | _resultobj = Py_BuildValue("s",_ptemp); | |
8102 | return _resultobj; | |
8103 | } | |
8104 | ||
d5c9047a | 8105 | #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 8106 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8107 | PyObject * _resultobj; |
d5c9047a | 8108 | wxTreeItemId * _result; |
f6bcfd97 | 8109 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8110 | wxString * _arg1; |
1d99702e RD |
8111 | int _arg2 = (int ) -1; |
8112 | int _arg3 = (int ) -1; | |
8113 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
8114 | PyObject * _argo0 = 0; | |
d5c9047a | 8115 | PyObject * _obj1 = 0; |
1d99702e | 8116 | PyObject * _argo4 = 0; |
efc5f224 | 8117 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; |
d5c9047a | 8118 | char _ptemp[128]; |
8ab979d7 RD |
8119 | |
8120 | self = self; | |
efc5f224 | 8121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) |
8ab979d7 | 8122 | return NULL; |
1d99702e RD |
8123 | if (_argo0) { |
8124 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8125 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8126 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8127 | return NULL; |
8128 | } | |
8129 | } | |
d5c9047a | 8130 | { |
c8bc7bb8 RD |
8131 | _arg1 = wxString_in_helper(_obj1); |
8132 | if (_arg1 == NULL) | |
185d7c3e | 8133 | return NULL; |
d5c9047a | 8134 | } |
1d99702e RD |
8135 | if (_argo4) { |
8136 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
8137 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
cf694132 | 8138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
8139 | return NULL; |
8140 | } | |
8141 | } | |
cf694132 | 8142 | { |
4268f798 | 8143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8144 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); |
cf694132 | 8145 | |
4268f798 | 8146 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8147 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8148 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8149 | _resultobj = Py_BuildValue("s",_ptemp); |
8150 | { | |
8151 | if (_obj1) | |
8152 | delete _arg1; | |
8153 | } | |
8ab979d7 RD |
8154 | return _resultobj; |
8155 | } | |
8156 | ||
d5c9047a | 8157 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8158 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8159 | PyObject * _resultobj; |
d5c9047a | 8160 | wxTreeItemId * _result; |
f6bcfd97 | 8161 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8162 | wxTreeItemId * _arg1; |
8163 | wxString * _arg2; | |
1d99702e RD |
8164 | int _arg3 = (int ) -1; |
8165 | int _arg4 = (int ) -1; | |
8166 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8167 | PyObject * _argo0 = 0; | |
8168 | PyObject * _argo1 = 0; | |
d5c9047a | 8169 | PyObject * _obj2 = 0; |
1d99702e | 8170 | PyObject * _argo5 = 0; |
efc5f224 | 8171 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8172 | char _ptemp[128]; |
8ab979d7 RD |
8173 | |
8174 | self = self; | |
efc5f224 | 8175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8176 | return NULL; |
1d99702e RD |
8177 | if (_argo0) { |
8178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8181 | return NULL; |
8182 | } | |
8183 | } | |
1d99702e RD |
8184 | if (_argo1) { |
8185 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8186 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); |
8188 | return NULL; | |
8189 | } | |
8190 | } | |
8191 | { | |
c8bc7bb8 RD |
8192 | _arg2 = wxString_in_helper(_obj2); |
8193 | if (_arg2 == NULL) | |
185d7c3e | 8194 | return NULL; |
d5c9047a | 8195 | } |
1d99702e RD |
8196 | if (_argo5) { |
8197 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8198 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8200 | return NULL; |
8201 | } | |
8202 | } | |
cf694132 | 8203 | { |
4268f798 | 8204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8205 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); |
cf694132 | 8206 | |
4268f798 | 8207 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8208 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8209 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8210 | _resultobj = Py_BuildValue("s",_ptemp); |
8211 | { | |
8212 | if (_obj2) | |
8213 | delete _arg2; | |
8214 | } | |
8ab979d7 RD |
8215 | return _resultobj; |
8216 | } | |
8217 | ||
d5c9047a | 8218 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 8219 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8220 | PyObject * _resultobj; |
d5c9047a | 8221 | wxTreeItemId * _result; |
f6bcfd97 | 8222 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8223 | wxTreeItemId * _arg1; |
8224 | wxTreeItemId * _arg2; | |
8225 | wxString * _arg3; | |
1d99702e RD |
8226 | int _arg4 = (int ) -1; |
8227 | int _arg5 = (int ) -1; | |
8228 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
8229 | PyObject * _argo0 = 0; | |
8230 | PyObject * _argo1 = 0; | |
8231 | PyObject * _argo2 = 0; | |
d5c9047a | 8232 | PyObject * _obj3 = 0; |
1d99702e | 8233 | PyObject * _argo6 = 0; |
efc5f224 | 8234 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; |
d5c9047a | 8235 | char _ptemp[128]; |
8ab979d7 RD |
8236 | |
8237 | self = self; | |
efc5f224 | 8238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) |
8ab979d7 | 8239 | return NULL; |
1d99702e RD |
8240 | if (_argo0) { |
8241 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8242 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8244 | return NULL; |
8245 | } | |
8246 | } | |
1d99702e RD |
8247 | if (_argo1) { |
8248 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8249 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8251 | return NULL; | |
8252 | } | |
8253 | } | |
1d99702e RD |
8254 | if (_argo2) { |
8255 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8256 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8258 | return NULL; | |
8259 | } | |
8260 | } | |
8261 | { | |
c8bc7bb8 RD |
8262 | _arg3 = wxString_in_helper(_obj3); |
8263 | if (_arg3 == NULL) | |
185d7c3e | 8264 | return NULL; |
d5c9047a | 8265 | } |
1d99702e RD |
8266 | if (_argo6) { |
8267 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8268 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
cf694132 | 8269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8270 | return NULL; |
8271 | } | |
8272 | } | |
cf694132 | 8273 | { |
4268f798 | 8274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8275 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); |
cf694132 | 8276 | |
4268f798 | 8277 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8278 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8279 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8280 | _resultobj = Py_BuildValue("s",_ptemp); |
8281 | { | |
8282 | if (_obj3) | |
8283 | delete _arg3; | |
8284 | } | |
8ab979d7 RD |
8285 | return _resultobj; |
8286 | } | |
8287 | ||
f6bcfd97 BP |
8288 | #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
8289 | static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8290 | PyObject * _resultobj; | |
8291 | wxTreeItemId * _result; | |
8292 | wxPyTreeCtrl * _arg0; | |
8293 | wxTreeItemId * _arg1; | |
8294 | size_t _arg2; | |
8295 | wxString * _arg3; | |
8296 | int _arg4 = (int ) -1; | |
8297 | int _arg5 = (int ) -1; | |
3999941a | 8298 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; |
f6bcfd97 BP |
8299 | PyObject * _argo0 = 0; |
8300 | PyObject * _argo1 = 0; | |
8301 | PyObject * _obj3 = 0; | |
8302 | PyObject * _argo6 = 0; | |
8303 | char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL }; | |
8304 | char _ptemp[128]; | |
8305 | ||
8306 | self = self; | |
8307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
8308 | return NULL; | |
8309 | if (_argo0) { | |
8310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p."); | |
8313 | return NULL; | |
8314 | } | |
8315 | } | |
8316 | if (_argo1) { | |
8317 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8318 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p."); | |
8320 | return NULL; | |
8321 | } | |
8322 | } | |
8323 | { | |
c8bc7bb8 RD |
8324 | _arg3 = wxString_in_helper(_obj3); |
8325 | if (_arg3 == NULL) | |
185d7c3e | 8326 | return NULL; |
f6bcfd97 BP |
8327 | } |
8328 | if (_argo6) { | |
8329 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
3999941a RD |
8330 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { |
8331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeItemData_p."); | |
f6bcfd97 BP |
8332 | return NULL; |
8333 | } | |
8334 | } | |
8335 | { | |
4268f798 | 8336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8337 | _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6)); |
f6bcfd97 | 8338 | |
4268f798 | 8339 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8340 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
8341 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8342 | _resultobj = Py_BuildValue("s",_ptemp); | |
8343 | { | |
8344 | if (_obj3) | |
8345 | delete _arg3; | |
8346 | } | |
8347 | return _resultobj; | |
8348 | } | |
8349 | ||
d5c9047a | 8350 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8351 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8352 | PyObject * _resultobj; |
d5c9047a | 8353 | wxTreeItemId * _result; |
f6bcfd97 | 8354 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8355 | wxTreeItemId * _arg1; |
8ab979d7 | 8356 | wxString * _arg2; |
1d99702e RD |
8357 | int _arg3 = (int ) -1; |
8358 | int _arg4 = (int ) -1; | |
8359 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8360 | PyObject * _argo0 = 0; | |
8361 | PyObject * _argo1 = 0; | |
8ab979d7 | 8362 | PyObject * _obj2 = 0; |
1d99702e | 8363 | PyObject * _argo5 = 0; |
efc5f224 | 8364 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8365 | char _ptemp[128]; |
8ab979d7 RD |
8366 | |
8367 | self = self; | |
efc5f224 | 8368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8369 | return NULL; |
1d99702e RD |
8370 | if (_argo0) { |
8371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8374 | return NULL; |
8375 | } | |
8376 | } | |
1d99702e RD |
8377 | if (_argo1) { |
8378 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8379 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 8380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8381 | return NULL; |
8382 | } | |
8383 | } | |
8384 | { | |
c8bc7bb8 RD |
8385 | _arg2 = wxString_in_helper(_obj2); |
8386 | if (_arg2 == NULL) | |
185d7c3e | 8387 | return NULL; |
8ab979d7 | 8388 | } |
1d99702e RD |
8389 | if (_argo5) { |
8390 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8391 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8393 | return NULL; |
8394 | } | |
8395 | } | |
cf694132 | 8396 | { |
4268f798 | 8397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8398 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); |
cf694132 | 8399 | |
4268f798 | 8400 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8401 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8402 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8403 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8404 | { |
8405 | if (_obj2) | |
8406 | delete _arg2; | |
8407 | } | |
8408 | return _resultobj; | |
8409 | } | |
8410 | ||
d5c9047a | 8411 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
efc5f224 | 8412 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8413 | PyObject * _resultobj; |
f6bcfd97 | 8414 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8415 | wxTreeItemId * _arg1; |
1d99702e RD |
8416 | PyObject * _argo0 = 0; |
8417 | PyObject * _argo1 = 0; | |
efc5f224 | 8418 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
8419 | |
8420 | self = self; | |
efc5f224 | 8421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8422 | return NULL; |
1d99702e RD |
8423 | if (_argo0) { |
8424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8427 | return NULL; |
8428 | } | |
8429 | } | |
1d99702e RD |
8430 | if (_argo1) { |
8431 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8432 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); |
8434 | return NULL; | |
8435 | } | |
8436 | } | |
cf694132 | 8437 | { |
4268f798 | 8438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8439 | wxTreeCtrl_Delete(_arg0,*_arg1); |
cf694132 | 8440 | |
4268f798 | 8441 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8442 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8443 | } Py_INCREF(Py_None); |
d5c9047a RD |
8444 | _resultobj = Py_None; |
8445 | return _resultobj; | |
8446 | } | |
8447 | ||
08127323 | 8448 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) |
efc5f224 | 8449 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 8450 | PyObject * _resultobj; |
f6bcfd97 | 8451 | wxPyTreeCtrl * _arg0; |
08127323 | 8452 | wxTreeItemId * _arg1; |
1d99702e RD |
8453 | PyObject * _argo0 = 0; |
8454 | PyObject * _argo1 = 0; | |
efc5f224 | 8455 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
8456 | |
8457 | self = self; | |
efc5f224 | 8458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) |
08127323 | 8459 | return NULL; |
1d99702e RD |
8460 | if (_argo0) { |
8461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
8464 | return NULL; |
8465 | } | |
8466 | } | |
1d99702e RD |
8467 | if (_argo1) { |
8468 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8469 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
08127323 RD |
8470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); |
8471 | return NULL; | |
8472 | } | |
8473 | } | |
cf694132 | 8474 | { |
4268f798 | 8475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8476 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); |
cf694132 | 8477 | |
4268f798 | 8478 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8479 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8480 | } Py_INCREF(Py_None); |
08127323 RD |
8481 | _resultobj = Py_None; |
8482 | return _resultobj; | |
8483 | } | |
8484 | ||
d5c9047a | 8485 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) |
efc5f224 | 8486 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8487 | PyObject * _resultobj; |
f6bcfd97 | 8488 | wxPyTreeCtrl * _arg0; |
1d99702e | 8489 | PyObject * _argo0 = 0; |
efc5f224 | 8490 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8491 | |
8492 | self = self; | |
efc5f224 | 8493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) |
d5c9047a | 8494 | return NULL; |
1d99702e RD |
8495 | if (_argo0) { |
8496 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8497 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8499 | return NULL; |
8500 | } | |
8501 | } | |
cf694132 | 8502 | { |
4268f798 | 8503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8504 | wxTreeCtrl_DeleteAllItems(_arg0); |
cf694132 | 8505 | |
4268f798 | 8506 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8507 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8508 | } Py_INCREF(Py_None); |
d5c9047a RD |
8509 | _resultobj = Py_None; |
8510 | return _resultobj; | |
8511 | } | |
8512 | ||
8513 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
efc5f224 | 8514 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8515 | PyObject * _resultobj; |
f6bcfd97 | 8516 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8517 | wxTreeItemId * _arg1; |
1d99702e RD |
8518 | PyObject * _argo0 = 0; |
8519 | PyObject * _argo1 = 0; | |
efc5f224 | 8520 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8521 | |
8522 | self = self; | |
efc5f224 | 8523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8524 | return NULL; |
1d99702e RD |
8525 | if (_argo0) { |
8526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8529 | return NULL; |
8530 | } | |
8531 | } | |
1d99702e RD |
8532 | if (_argo1) { |
8533 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8534 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); |
8536 | return NULL; | |
8537 | } | |
8538 | } | |
cf694132 | 8539 | { |
4268f798 | 8540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8541 | wxTreeCtrl_Expand(_arg0,*_arg1); |
cf694132 | 8542 | |
4268f798 | 8543 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8544 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8545 | } Py_INCREF(Py_None); |
d5c9047a RD |
8546 | _resultobj = Py_None; |
8547 | return _resultobj; | |
8548 | } | |
8549 | ||
8550 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
efc5f224 | 8551 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8552 | PyObject * _resultobj; |
f6bcfd97 | 8553 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8554 | wxTreeItemId * _arg1; |
1d99702e RD |
8555 | PyObject * _argo0 = 0; |
8556 | PyObject * _argo1 = 0; | |
efc5f224 | 8557 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8558 | |
8559 | self = self; | |
efc5f224 | 8560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8561 | return NULL; |
1d99702e RD |
8562 | if (_argo0) { |
8563 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8564 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8566 | return NULL; |
8567 | } | |
8568 | } | |
1d99702e RD |
8569 | if (_argo1) { |
8570 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8571 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p."); |
8573 | return NULL; | |
8574 | } | |
8575 | } | |
cf694132 | 8576 | { |
4268f798 | 8577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8578 | wxTreeCtrl_Collapse(_arg0,*_arg1); |
cf694132 | 8579 | |
4268f798 | 8580 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8581 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8582 | } Py_INCREF(Py_None); |
d5c9047a RD |
8583 | _resultobj = Py_None; |
8584 | return _resultobj; | |
8585 | } | |
8586 | ||
8587 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
efc5f224 | 8588 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8589 | PyObject * _resultobj; |
f6bcfd97 | 8590 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8591 | wxTreeItemId * _arg1; |
1d99702e RD |
8592 | PyObject * _argo0 = 0; |
8593 | PyObject * _argo1 = 0; | |
efc5f224 | 8594 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8595 | |
8596 | self = self; | |
efc5f224 | 8597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8598 | return NULL; |
1d99702e RD |
8599 | if (_argo0) { |
8600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8603 | return NULL; |
8604 | } | |
8605 | } | |
1d99702e RD |
8606 | if (_argo1) { |
8607 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8608 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); |
8610 | return NULL; | |
8611 | } | |
8612 | } | |
cf694132 | 8613 | { |
4268f798 | 8614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8615 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); |
cf694132 | 8616 | |
4268f798 | 8617 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8618 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8619 | } Py_INCREF(Py_None); |
d5c9047a RD |
8620 | _resultobj = Py_None; |
8621 | return _resultobj; | |
8622 | } | |
8623 | ||
8624 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
efc5f224 | 8625 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8626 | PyObject * _resultobj; |
f6bcfd97 | 8627 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8628 | wxTreeItemId * _arg1; |
1d99702e RD |
8629 | PyObject * _argo0 = 0; |
8630 | PyObject * _argo1 = 0; | |
efc5f224 | 8631 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8632 | |
8633 | self = self; | |
efc5f224 | 8634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8635 | return NULL; |
1d99702e RD |
8636 | if (_argo0) { |
8637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8640 | return NULL; |
8641 | } | |
8642 | } | |
1d99702e RD |
8643 | if (_argo1) { |
8644 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8645 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); |
8647 | return NULL; | |
8648 | } | |
8649 | } | |
cf694132 | 8650 | { |
4268f798 | 8651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8652 | wxTreeCtrl_Toggle(_arg0,*_arg1); |
cf694132 | 8653 | |
4268f798 | 8654 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8655 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8656 | } Py_INCREF(Py_None); |
d5c9047a RD |
8657 | _resultobj = Py_None; |
8658 | return _resultobj; | |
8659 | } | |
8660 | ||
8661 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
efc5f224 | 8662 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8663 | PyObject * _resultobj; |
f6bcfd97 | 8664 | wxPyTreeCtrl * _arg0; |
1d99702e | 8665 | PyObject * _argo0 = 0; |
efc5f224 | 8666 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8667 | |
8668 | self = self; | |
efc5f224 | 8669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) |
d5c9047a | 8670 | return NULL; |
1d99702e RD |
8671 | if (_argo0) { |
8672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8675 | return NULL; |
8676 | } | |
8677 | } | |
cf694132 | 8678 | { |
4268f798 | 8679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8680 | wxTreeCtrl_Unselect(_arg0); |
cf694132 | 8681 | |
4268f798 | 8682 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8683 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8684 | } Py_INCREF(Py_None); |
d5c9047a RD |
8685 | _resultobj = Py_None; |
8686 | return _resultobj; | |
8687 | } | |
8688 | ||
8bf5d46e | 8689 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) |
efc5f224 | 8690 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e | 8691 | PyObject * _resultobj; |
f6bcfd97 | 8692 | wxPyTreeCtrl * _arg0; |
1d99702e | 8693 | PyObject * _argo0 = 0; |
efc5f224 | 8694 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
8695 | |
8696 | self = self; | |
efc5f224 | 8697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) |
8bf5d46e | 8698 | return NULL; |
1d99702e RD |
8699 | if (_argo0) { |
8700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p."); | |
8bf5d46e RD |
8703 | return NULL; |
8704 | } | |
8705 | } | |
8706 | { | |
4268f798 | 8707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8708 | wxTreeCtrl_UnselectAll(_arg0); |
8bf5d46e | 8709 | |
4268f798 | 8710 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8711 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
8712 | } Py_INCREF(Py_None); |
8713 | _resultobj = Py_None; | |
8714 | return _resultobj; | |
8715 | } | |
8716 | ||
d5c9047a | 8717 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) |
efc5f224 | 8718 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8719 | PyObject * _resultobj; |
f6bcfd97 | 8720 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8721 | wxTreeItemId * _arg1; |
1d99702e RD |
8722 | PyObject * _argo0 = 0; |
8723 | PyObject * _argo1 = 0; | |
efc5f224 | 8724 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8725 | |
8726 | self = self; | |
efc5f224 | 8727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8728 | return NULL; |
1d99702e RD |
8729 | if (_argo0) { |
8730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8733 | return NULL; |
8734 | } | |
8735 | } | |
1d99702e RD |
8736 | if (_argo1) { |
8737 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8738 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); |
8740 | return NULL; | |
8741 | } | |
8742 | } | |
cf694132 | 8743 | { |
4268f798 | 8744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8745 | wxTreeCtrl_SelectItem(_arg0,*_arg1); |
cf694132 | 8746 | |
4268f798 | 8747 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8748 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8749 | } Py_INCREF(Py_None); |
d5c9047a RD |
8750 | _resultobj = Py_None; |
8751 | return _resultobj; | |
8752 | } | |
8753 | ||
8754 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
efc5f224 | 8755 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8756 | PyObject * _resultobj; |
f6bcfd97 | 8757 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8758 | wxTreeItemId * _arg1; |
1d99702e RD |
8759 | PyObject * _argo0 = 0; |
8760 | PyObject * _argo1 = 0; | |
efc5f224 | 8761 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8762 | |
8763 | self = self; | |
efc5f224 | 8764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8765 | return NULL; |
1d99702e RD |
8766 | if (_argo0) { |
8767 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8768 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8770 | return NULL; |
8771 | } | |
8772 | } | |
1d99702e RD |
8773 | if (_argo1) { |
8774 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8775 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); |
8777 | return NULL; | |
8778 | } | |
8779 | } | |
cf694132 | 8780 | { |
4268f798 | 8781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8782 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); |
cf694132 | 8783 | |
4268f798 | 8784 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8785 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8786 | } Py_INCREF(Py_None); |
d5c9047a RD |
8787 | _resultobj = Py_None; |
8788 | return _resultobj; | |
8789 | } | |
8790 | ||
8791 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
efc5f224 | 8792 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8793 | PyObject * _resultobj; |
f6bcfd97 | 8794 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8795 | wxTreeItemId * _arg1; |
1d99702e RD |
8796 | PyObject * _argo0 = 0; |
8797 | PyObject * _argo1 = 0; | |
efc5f224 | 8798 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8799 | |
8800 | self = self; | |
efc5f224 | 8801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8802 | return NULL; |
1d99702e RD |
8803 | if (_argo0) { |
8804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8807 | return NULL; |
8808 | } | |
8809 | } | |
1d99702e RD |
8810 | if (_argo1) { |
8811 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8812 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); |
8814 | return NULL; | |
8815 | } | |
8816 | } | |
cf694132 | 8817 | { |
4268f798 | 8818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8819 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); |
cf694132 | 8820 | |
4268f798 | 8821 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8822 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8823 | } Py_INCREF(Py_None); |
d5c9047a RD |
8824 | _resultobj = Py_None; |
8825 | return _resultobj; | |
8826 | } | |
8827 | ||
8828 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
efc5f224 | 8829 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
8830 | PyObject * _resultobj; |
8831 | wxTextCtrl * _result; | |
f6bcfd97 | 8832 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8833 | wxTreeItemId * _arg1; |
1d99702e RD |
8834 | PyObject * _argo0 = 0; |
8835 | PyObject * _argo1 = 0; | |
efc5f224 | 8836 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8837 | |
8838 | self = self; | |
efc5f224 | 8839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8840 | return NULL; |
1d99702e RD |
8841 | if (_argo0) { |
8842 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8843 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8845 | return NULL; |
8846 | } | |
8847 | } | |
1d99702e RD |
8848 | if (_argo1) { |
8849 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8850 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); |
8852 | return NULL; | |
8853 | } | |
8854 | } | |
cf694132 | 8855 | { |
4268f798 | 8856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8857 | _result = (wxTextCtrl *)wxTreeCtrl_EditLabel(_arg0,*_arg1); |
cf694132 | 8858 | |
4268f798 | 8859 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8860 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8861 | }{ _resultobj = wxPyMake_wxObject(_result); } |
d5c9047a RD |
8862 | return _resultobj; |
8863 | } | |
8864 | ||
8865 | #define wxTreeCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) | |
efc5f224 | 8866 | static PyObject *_wrap_wxTreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
8867 | PyObject * _resultobj; |
8868 | wxTextCtrl * _result; | |
f6bcfd97 | 8869 | wxPyTreeCtrl * _arg0; |
1d99702e | 8870 | PyObject * _argo0 = 0; |
efc5f224 | 8871 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8872 | |
8873 | self = self; | |
efc5f224 | 8874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetEditControl",_kwnames,&_argo0)) |
d5c9047a | 8875 | return NULL; |
1d99702e RD |
8876 | if (_argo0) { |
8877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetEditControl. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8880 | return NULL; |
8881 | } | |
8882 | } | |
cf694132 | 8883 | { |
4268f798 | 8884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8885 | _result = (wxTextCtrl *)wxTreeCtrl_GetEditControl(_arg0); |
cf694132 | 8886 | |
4268f798 | 8887 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8888 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8889 | }{ _resultobj = wxPyMake_wxObject(_result); } |
d5c9047a RD |
8890 | return _resultobj; |
8891 | } | |
8892 | ||
8893 | #define wxTreeCtrl_EndEditLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->EndEditLabel(_swigarg0,_swigarg1)) | |
efc5f224 | 8894 | static PyObject *_wrap_wxTreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8895 | PyObject * _resultobj; |
f6bcfd97 | 8896 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8897 | wxTreeItemId * _arg1; |
b1462dfa | 8898 | int _arg2 = (int ) FALSE; |
1d99702e RD |
8899 | PyObject * _argo0 = 0; |
8900 | PyObject * _argo1 = 0; | |
efc5f224 | 8901 | char *_kwnames[] = { "self","item","discardChanges", NULL }; |
d5c9047a RD |
8902 | |
8903 | self = self; | |
b1462dfa | 8904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_EndEditLabel",_kwnames,&_argo0,&_argo1,&_arg2)) |
d5c9047a | 8905 | return NULL; |
1d99702e RD |
8906 | if (_argo0) { |
8907 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8908 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EndEditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8910 | return NULL; |
8911 | } | |
8912 | } | |
1d99702e RD |
8913 | if (_argo1) { |
8914 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8915 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EndEditLabel. Expected _wxTreeItemId_p."); |
8917 | return NULL; | |
8918 | } | |
8919 | } | |
cf694132 | 8920 | { |
4268f798 | 8921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8922 | wxTreeCtrl_EndEditLabel(_arg0,*_arg1,_arg2); |
cf694132 | 8923 | |
4268f798 | 8924 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8925 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8926 | } Py_INCREF(Py_None); |
d5c9047a | 8927 | _resultobj = Py_None; |
8ab979d7 RD |
8928 | return _resultobj; |
8929 | } | |
8930 | ||
d426c97e RD |
8931 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) |
8932 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8933 | PyObject * _resultobj; | |
f6bcfd97 | 8934 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8935 | wxTreeItemId * _arg1; |
8936 | PyObject * _argo0 = 0; | |
8937 | PyObject * _argo1 = 0; | |
8938 | char *_kwnames[] = { "self","item", NULL }; | |
8939 | ||
8940 | self = self; | |
8941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
8942 | return NULL; | |
8943 | if (_argo0) { | |
8944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8947 | return NULL; |
8948 | } | |
8949 | } | |
8950 | if (_argo1) { | |
8951 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8952 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); | |
8954 | return NULL; | |
8955 | } | |
8956 | } | |
8957 | { | |
4268f798 | 8958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8959 | wxTreeCtrl_SortChildren(_arg0,*_arg1); |
d426c97e | 8960 | |
4268f798 | 8961 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8962 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8963 | } Py_INCREF(Py_None); |
8964 | _resultobj = Py_None; | |
8965 | return _resultobj; | |
8966 | } | |
8967 | ||
b8b8dda7 | 8968 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) |
efc5f224 | 8969 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 | 8970 | PyObject * _resultobj; |
f6bcfd97 | 8971 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 8972 | wxTreeItemId * _arg1; |
b1462dfa | 8973 | int _arg2 = (int ) TRUE; |
1d99702e RD |
8974 | PyObject * _argo0 = 0; |
8975 | PyObject * _argo1 = 0; | |
efc5f224 | 8976 | char *_kwnames[] = { "self","item","bold", NULL }; |
b8b8dda7 RD |
8977 | |
8978 | self = self; | |
b1462dfa | 8979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) |
b8b8dda7 | 8980 | return NULL; |
1d99702e RD |
8981 | if (_argo0) { |
8982 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8983 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
8985 | return NULL; |
8986 | } | |
8987 | } | |
1d99702e RD |
8988 | if (_argo1) { |
8989 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8990 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
8991 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); |
8992 | return NULL; | |
8993 | } | |
8994 | } | |
cf694132 | 8995 | { |
4268f798 | 8996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8997 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); |
cf694132 | 8998 | |
4268f798 | 8999 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9000 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9001 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
9002 | _resultobj = Py_None; |
9003 | return _resultobj; | |
9004 | } | |
9005 | ||
9006 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
efc5f224 | 9007 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
9008 | PyObject * _resultobj; |
9009 | bool _result; | |
f6bcfd97 | 9010 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9011 | wxTreeItemId * _arg1; |
1d99702e RD |
9012 | PyObject * _argo0 = 0; |
9013 | PyObject * _argo1 = 0; | |
efc5f224 | 9014 | char *_kwnames[] = { "self","item", NULL }; |
b8b8dda7 RD |
9015 | |
9016 | self = self; | |
efc5f224 | 9017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 9018 | return NULL; |
1d99702e RD |
9019 | if (_argo0) { |
9020 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9021 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9022 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9023 | return NULL; |
9024 | } | |
9025 | } | |
1d99702e RD |
9026 | if (_argo1) { |
9027 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9028 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
9029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); |
9030 | return NULL; | |
9031 | } | |
9032 | } | |
cf694132 | 9033 | { |
4268f798 | 9034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9035 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); |
cf694132 | 9036 | |
4268f798 | 9037 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9038 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9039 | } _resultobj = Py_BuildValue("i",_result); |
b8b8dda7 RD |
9040 | return _resultobj; |
9041 | } | |
9042 | ||
164b735b | 9043 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
efc5f224 | 9044 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
9045 | PyObject * _resultobj; |
9046 | wxTreeItemId * _result; | |
f6bcfd97 | 9047 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9048 | wxPoint * _arg1; |
164b735b RD |
9049 | int * _arg2; |
9050 | int temp; | |
1d99702e | 9051 | PyObject * _argo0 = 0; |
164b735b | 9052 | wxPoint temp0; |
2f90df85 | 9053 | PyObject * _obj1 = 0; |
efc5f224 | 9054 | char *_kwnames[] = { "self","point", NULL }; |
b8b8dda7 RD |
9055 | char _ptemp[128]; |
9056 | ||
9057 | self = self; | |
164b735b RD |
9058 | { |
9059 | _arg2 = &temp; | |
9060 | } | |
2f90df85 | 9061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 9062 | return NULL; |
1d99702e RD |
9063 | if (_argo0) { |
9064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9067 | return NULL; |
9068 | } | |
9069 | } | |
2f90df85 | 9070 | { |
164b735b | 9071 | _arg1 = &temp0; |
2f90df85 | 9072 | if (! wxPoint_helper(_obj1, &_arg1)) |
b8b8dda7 | 9073 | return NULL; |
2f90df85 | 9074 | } |
cf694132 | 9075 | { |
4268f798 | 9076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9077 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); |
cf694132 | 9078 | |
4268f798 | 9079 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9080 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9081 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
b8b8dda7 | 9082 | _resultobj = Py_BuildValue("s",_ptemp); |
164b735b RD |
9083 | { |
9084 | PyObject *o; | |
9085 | o = PyInt_FromLong((long) (*_arg2)); | |
9086 | _resultobj = t_output_helper(_resultobj, o); | |
9087 | } | |
b8b8dda7 RD |
9088 | return _resultobj; |
9089 | } | |
9090 | ||
b7e72427 RD |
9091 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
9092 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9093 | PyObject * _resultobj; | |
f6bcfd97 | 9094 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9095 | wxTreeItemId * _arg1; |
9096 | wxColour * _arg2; | |
9097 | PyObject * _argo0 = 0; | |
9098 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9099 | wxColour temp; |
9100 | PyObject * _obj2 = 0; | |
b7e72427 RD |
9101 | char *_kwnames[] = { "self","item","col", NULL }; |
9102 | ||
9103 | self = self; | |
f6bcfd97 | 9104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9105 | return NULL; |
9106 | if (_argo0) { | |
9107 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9108 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9110 | return NULL; |
9111 | } | |
9112 | } | |
9113 | if (_argo1) { | |
9114 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9115 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); | |
9117 | return NULL; | |
9118 | } | |
9119 | } | |
f6bcfd97 BP |
9120 | { |
9121 | _arg2 = &temp; | |
9122 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9123 | return NULL; |
f6bcfd97 | 9124 | } |
b7e72427 | 9125 | { |
4268f798 | 9126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9127 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); |
b7e72427 | 9128 | |
4268f798 | 9129 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9130 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9131 | } Py_INCREF(Py_None); |
9132 | _resultobj = Py_None; | |
9133 | return _resultobj; | |
9134 | } | |
9135 | ||
9136 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
9137 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9138 | PyObject * _resultobj; | |
f6bcfd97 | 9139 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9140 | wxTreeItemId * _arg1; |
9141 | wxColour * _arg2; | |
9142 | PyObject * _argo0 = 0; | |
9143 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9144 | wxColour temp; |
9145 | PyObject * _obj2 = 0; | |
b7e72427 RD |
9146 | char *_kwnames[] = { "self","item","col", NULL }; |
9147 | ||
9148 | self = self; | |
f6bcfd97 | 9149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9150 | return NULL; |
9151 | if (_argo0) { | |
9152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9155 | return NULL; |
9156 | } | |
9157 | } | |
9158 | if (_argo1) { | |
9159 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9160 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
9162 | return NULL; | |
9163 | } | |
9164 | } | |
f6bcfd97 BP |
9165 | { |
9166 | _arg2 = &temp; | |
9167 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9168 | return NULL; |
f6bcfd97 | 9169 | } |
b7e72427 | 9170 | { |
4268f798 | 9171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9172 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); |
b7e72427 | 9173 | |
4268f798 | 9174 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9175 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9176 | } Py_INCREF(Py_None); |
9177 | _resultobj = Py_None; | |
9178 | return _resultobj; | |
9179 | } | |
9180 | ||
9181 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
9182 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9183 | PyObject * _resultobj; | |
f6bcfd97 | 9184 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9185 | wxTreeItemId * _arg1; |
9186 | wxFont * _arg2; | |
9187 | PyObject * _argo0 = 0; | |
9188 | PyObject * _argo1 = 0; | |
9189 | PyObject * _argo2 = 0; | |
9190 | char *_kwnames[] = { "self","item","font", NULL }; | |
9191 | ||
9192 | self = self; | |
9193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
9194 | return NULL; | |
9195 | if (_argo0) { | |
9196 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9197 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9199 | return NULL; |
9200 | } | |
9201 | } | |
9202 | if (_argo1) { | |
9203 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9204 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); | |
9206 | return NULL; | |
9207 | } | |
9208 | } | |
9209 | if (_argo2) { | |
9210 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9211 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
9212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); | |
9213 | return NULL; | |
9214 | } | |
9215 | } | |
9216 | { | |
4268f798 | 9217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9218 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); |
b7e72427 | 9219 | |
4268f798 | 9220 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9221 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9222 | } Py_INCREF(Py_None); |
9223 | _resultobj = Py_None; | |
9224 | return _resultobj; | |
9225 | } | |
9226 | ||
b1462dfa RD |
9227 | #define wxTreeCtrl_SetItemDropHighlight(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemDropHighlight(_swigarg0,_swigarg1)) |
9228 | static PyObject *_wrap_wxTreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9229 | PyObject * _resultobj; | |
f6bcfd97 | 9230 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
9231 | wxTreeItemId * _arg1; |
9232 | int _arg2 = (int ) TRUE; | |
9233 | PyObject * _argo0 = 0; | |
9234 | PyObject * _argo1 = 0; | |
9235 | char *_kwnames[] = { "self","item","highlight", NULL }; | |
9236 | ||
9237 | self = self; | |
9238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemDropHighlight",_kwnames,&_argo0,&_argo1,&_arg2)) | |
9239 | return NULL; | |
9240 | if (_argo0) { | |
9241 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9242 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemDropHighlight. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
9244 | return NULL; |
9245 | } | |
9246 | } | |
9247 | if (_argo1) { | |
9248 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9249 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemDropHighlight. Expected _wxTreeItemId_p."); | |
9251 | return NULL; | |
9252 | } | |
9253 | } | |
9254 | { | |
4268f798 | 9255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9256 | wxTreeCtrl_SetItemDropHighlight(_arg0,*_arg1,_arg2); |
b1462dfa | 9257 | |
4268f798 | 9258 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9259 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9260 | } Py_INCREF(Py_None); |
9261 | _resultobj = Py_None; | |
9262 | return _resultobj; | |
9263 | } | |
9264 | ||
f6bcfd97 | 9265 | static PyObject * wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,const wxTreeItemId & item,int textOnly) { |
d426c97e | 9266 | wxRect rect; |
164b735b | 9267 | if (self->GetBoundingRect(item, rect, textOnly)) { |
4268f798 | 9268 | wxPyBeginBlockThreads(); |
164b735b RD |
9269 | wxRect* r = new wxRect(rect); |
9270 | PyObject* val = wxPyConstructObject((void*)r, "wxRect"); | |
4268f798 | 9271 | wxPyEndBlockThreads(); |
164b735b RD |
9272 | return val; |
9273 | } | |
d426c97e RD |
9274 | else { |
9275 | Py_INCREF(Py_None); | |
9276 | return Py_None; | |
9277 | } | |
9278 | } | |
9279 | static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9280 | PyObject * _resultobj; | |
9281 | PyObject * _result; | |
f6bcfd97 | 9282 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
9283 | wxTreeItemId * _arg1; |
9284 | int _arg2 = (int ) FALSE; | |
9285 | PyObject * _argo0 = 0; | |
9286 | PyObject * _argo1 = 0; | |
9287 | char *_kwnames[] = { "self","item","textOnly", NULL }; | |
9288 | ||
9289 | self = self; | |
9290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&_arg2)) | |
9291 | return NULL; | |
9292 | if (_argo0) { | |
9293 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9294 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetBoundingRect. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
9296 | return NULL; |
9297 | } | |
9298 | } | |
9299 | if (_argo1) { | |
9300 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9301 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeItemId_p."); | |
9303 | return NULL; | |
9304 | } | |
9305 | } | |
9306 | { | |
4268f798 | 9307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9308 | _result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(_arg0,*_arg1,_arg2); |
d426c97e | 9309 | |
4268f798 | 9310 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9311 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
9312 | }{ |
9313 | _resultobj = _result; | |
9314 | } | |
9315 | return _resultobj; | |
9316 | } | |
9317 | ||
68320e40 RD |
9318 | static void *SwigwxDirItemDataTowxObject(void *ptr) { |
9319 | wxDirItemData *src; | |
9320 | wxObject *dest; | |
9321 | src = (wxDirItemData *) ptr; | |
9322 | dest = (wxObject *) src; | |
9323 | return (void *) dest; | |
9324 | } | |
9325 | ||
9326 | #define new_wxDirItemData(_swigarg0,_swigarg1,_swigarg2) (new wxDirItemData(_swigarg0,_swigarg1,_swigarg2)) | |
9327 | static PyObject *_wrap_new_wxDirItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9328 | PyObject * _resultobj; | |
9329 | wxDirItemData * _result; | |
9330 | wxString * _arg0; | |
9331 | wxString * _arg1; | |
9332 | bool _arg2; | |
9333 | PyObject * _obj0 = 0; | |
9334 | PyObject * _obj1 = 0; | |
9335 | int tempbool2; | |
9336 | char *_kwnames[] = { "path","name","isDir", NULL }; | |
9337 | char _ptemp[128]; | |
9338 | ||
9339 | self = self; | |
9340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:new_wxDirItemData",_kwnames,&_obj0,&_obj1,&tempbool2)) | |
9341 | return NULL; | |
9342 | { | |
c8bc7bb8 RD |
9343 | _arg0 = wxString_in_helper(_obj0); |
9344 | if (_arg0 == NULL) | |
68320e40 | 9345 | return NULL; |
68320e40 RD |
9346 | } |
9347 | { | |
c8bc7bb8 RD |
9348 | _arg1 = wxString_in_helper(_obj1); |
9349 | if (_arg1 == NULL) | |
68320e40 | 9350 | return NULL; |
68320e40 RD |
9351 | } |
9352 | _arg2 = (bool ) tempbool2; | |
9353 | { | |
9354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9355 | _result = (wxDirItemData *)new_wxDirItemData(*_arg0,*_arg1,_arg2); |
68320e40 RD |
9356 | |
9357 | wxPyEndAllowThreads(__tstate); | |
9358 | if (PyErr_Occurred()) return NULL; | |
9359 | } if (_result) { | |
9360 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirItemData_p"); | |
9361 | _resultobj = Py_BuildValue("s",_ptemp); | |
9362 | } else { | |
9363 | Py_INCREF(Py_None); | |
9364 | _resultobj = Py_None; | |
9365 | } | |
9366 | { | |
9367 | if (_obj0) | |
9368 | delete _arg0; | |
9369 | } | |
9370 | { | |
9371 | if (_obj1) | |
9372 | delete _arg1; | |
9373 | } | |
9374 | return _resultobj; | |
9375 | } | |
9376 | ||
9377 | #define wxDirItemData_SetNewDirName(_swigobj,_swigarg0) (_swigobj->SetNewDirName(_swigarg0)) | |
9378 | static PyObject *_wrap_wxDirItemData_SetNewDirName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9379 | PyObject * _resultobj; | |
9380 | wxDirItemData * _arg0; | |
9381 | wxString * _arg1; | |
9382 | PyObject * _argo0 = 0; | |
9383 | PyObject * _obj1 = 0; | |
9384 | char *_kwnames[] = { "self","path", NULL }; | |
9385 | ||
9386 | self = self; | |
9387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_SetNewDirName",_kwnames,&_argo0,&_obj1)) | |
9388 | return NULL; | |
9389 | if (_argo0) { | |
9390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_SetNewDirName. Expected _wxDirItemData_p."); | |
9393 | return NULL; | |
9394 | } | |
9395 | } | |
9396 | { | |
c8bc7bb8 RD |
9397 | _arg1 = wxString_in_helper(_obj1); |
9398 | if (_arg1 == NULL) | |
68320e40 | 9399 | return NULL; |
68320e40 RD |
9400 | } |
9401 | { | |
9402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9403 | wxDirItemData_SetNewDirName(_arg0,*_arg1); |
68320e40 RD |
9404 | |
9405 | wxPyEndAllowThreads(__tstate); | |
9406 | if (PyErr_Occurred()) return NULL; | |
9407 | } Py_INCREF(Py_None); | |
9408 | _resultobj = Py_None; | |
9409 | { | |
9410 | if (_obj1) | |
9411 | delete _arg1; | |
9412 | } | |
9413 | return _resultobj; | |
9414 | } | |
9415 | ||
9416 | #define wxDirItemData_m_path_set(_swigobj,_swigval) (_swigobj->m_path = *(_swigval),_swigval) | |
9417 | static PyObject *_wrap_wxDirItemData_m_path_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9418 | PyObject * _resultobj; | |
9419 | wxString * _result; | |
9420 | wxDirItemData * _arg0; | |
9421 | wxString * _arg1; | |
9422 | PyObject * _argo0 = 0; | |
9423 | PyObject * _obj1 = 0; | |
9424 | char *_kwnames[] = { "self","m_path", NULL }; | |
9425 | ||
9426 | self = self; | |
9427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_path_set",_kwnames,&_argo0,&_obj1)) | |
9428 | return NULL; | |
9429 | if (_argo0) { | |
9430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_set. Expected _wxDirItemData_p."); | |
9433 | return NULL; | |
9434 | } | |
9435 | } | |
9436 | { | |
c8bc7bb8 RD |
9437 | _arg1 = wxString_in_helper(_obj1); |
9438 | if (_arg1 == NULL) | |
68320e40 | 9439 | return NULL; |
68320e40 RD |
9440 | } |
9441 | { | |
9442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9443 | _result = (wxString *)wxDirItemData_m_path_set(_arg0,_arg1); |
68320e40 RD |
9444 | |
9445 | wxPyEndAllowThreads(__tstate); | |
9446 | if (PyErr_Occurred()) return NULL; | |
9447 | }{ | |
c8bc7bb8 RD |
9448 | #if wxUSE_UNICODE |
9449 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9450 | #else | |
68320e40 | 9451 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9452 | #endif |
68320e40 RD |
9453 | } |
9454 | { | |
9455 | if (_obj1) | |
9456 | delete _arg1; | |
9457 | } | |
9458 | return _resultobj; | |
9459 | } | |
9460 | ||
9461 | #define wxDirItemData_m_path_get(_swigobj) (&_swigobj->m_path) | |
9462 | static PyObject *_wrap_wxDirItemData_m_path_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9463 | PyObject * _resultobj; | |
9464 | wxString * _result; | |
9465 | wxDirItemData * _arg0; | |
9466 | PyObject * _argo0 = 0; | |
9467 | char *_kwnames[] = { "self", NULL }; | |
9468 | ||
9469 | self = self; | |
9470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_path_get",_kwnames,&_argo0)) | |
9471 | return NULL; | |
9472 | if (_argo0) { | |
9473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_get. Expected _wxDirItemData_p."); | |
9476 | return NULL; | |
9477 | } | |
9478 | } | |
9479 | { | |
9480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9481 | _result = (wxString *)wxDirItemData_m_path_get(_arg0); |
68320e40 RD |
9482 | |
9483 | wxPyEndAllowThreads(__tstate); | |
9484 | if (PyErr_Occurred()) return NULL; | |
9485 | }{ | |
c8bc7bb8 RD |
9486 | #if wxUSE_UNICODE |
9487 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9488 | #else | |
68320e40 | 9489 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9490 | #endif |
68320e40 RD |
9491 | } |
9492 | return _resultobj; | |
9493 | } | |
9494 | ||
9495 | #define wxDirItemData_m_name_set(_swigobj,_swigval) (_swigobj->m_name = *(_swigval),_swigval) | |
9496 | static PyObject *_wrap_wxDirItemData_m_name_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9497 | PyObject * _resultobj; | |
9498 | wxString * _result; | |
9499 | wxDirItemData * _arg0; | |
9500 | wxString * _arg1; | |
9501 | PyObject * _argo0 = 0; | |
9502 | PyObject * _obj1 = 0; | |
9503 | char *_kwnames[] = { "self","m_name", NULL }; | |
9504 | ||
9505 | self = self; | |
9506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_name_set",_kwnames,&_argo0,&_obj1)) | |
9507 | return NULL; | |
9508 | if (_argo0) { | |
9509 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9510 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_set. Expected _wxDirItemData_p."); | |
9512 | return NULL; | |
9513 | } | |
9514 | } | |
9515 | { | |
c8bc7bb8 RD |
9516 | _arg1 = wxString_in_helper(_obj1); |
9517 | if (_arg1 == NULL) | |
68320e40 | 9518 | return NULL; |
68320e40 RD |
9519 | } |
9520 | { | |
9521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9522 | _result = (wxString *)wxDirItemData_m_name_set(_arg0,_arg1); |
68320e40 RD |
9523 | |
9524 | wxPyEndAllowThreads(__tstate); | |
9525 | if (PyErr_Occurred()) return NULL; | |
9526 | }{ | |
c8bc7bb8 RD |
9527 | #if wxUSE_UNICODE |
9528 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9529 | #else | |
68320e40 | 9530 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9531 | #endif |
68320e40 RD |
9532 | } |
9533 | { | |
9534 | if (_obj1) | |
9535 | delete _arg1; | |
9536 | } | |
9537 | return _resultobj; | |
9538 | } | |
9539 | ||
9540 | #define wxDirItemData_m_name_get(_swigobj) (&_swigobj->m_name) | |
9541 | static PyObject *_wrap_wxDirItemData_m_name_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9542 | PyObject * _resultobj; | |
9543 | wxString * _result; | |
9544 | wxDirItemData * _arg0; | |
9545 | PyObject * _argo0 = 0; | |
9546 | char *_kwnames[] = { "self", NULL }; | |
9547 | ||
9548 | self = self; | |
9549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_name_get",_kwnames,&_argo0)) | |
9550 | return NULL; | |
9551 | if (_argo0) { | |
9552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_get. Expected _wxDirItemData_p."); | |
9555 | return NULL; | |
9556 | } | |
9557 | } | |
9558 | { | |
9559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9560 | _result = (wxString *)wxDirItemData_m_name_get(_arg0); |
68320e40 RD |
9561 | |
9562 | wxPyEndAllowThreads(__tstate); | |
9563 | if (PyErr_Occurred()) return NULL; | |
9564 | }{ | |
c8bc7bb8 RD |
9565 | #if wxUSE_UNICODE |
9566 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9567 | #else | |
68320e40 | 9568 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9569 | #endif |
68320e40 RD |
9570 | } |
9571 | return _resultobj; | |
9572 | } | |
9573 | ||
9574 | #define wxDirItemData_m_isHidden_set(_swigobj,_swigval) (_swigobj->m_isHidden = _swigval,_swigval) | |
9575 | static PyObject *_wrap_wxDirItemData_m_isHidden_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9576 | PyObject * _resultobj; | |
9577 | bool _result; | |
9578 | wxDirItemData * _arg0; | |
9579 | bool _arg1; | |
9580 | PyObject * _argo0 = 0; | |
9581 | int tempbool1; | |
9582 | char *_kwnames[] = { "self","m_isHidden", NULL }; | |
9583 | ||
9584 | self = self; | |
9585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isHidden_set",_kwnames,&_argo0,&tempbool1)) | |
9586 | return NULL; | |
9587 | if (_argo0) { | |
9588 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9589 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_set. Expected _wxDirItemData_p."); | |
9591 | return NULL; | |
9592 | } | |
9593 | } | |
9594 | _arg1 = (bool ) tempbool1; | |
9595 | { | |
9596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9597 | _result = (bool )wxDirItemData_m_isHidden_set(_arg0,_arg1); |
68320e40 RD |
9598 | |
9599 | wxPyEndAllowThreads(__tstate); | |
9600 | if (PyErr_Occurred()) return NULL; | |
9601 | } _resultobj = Py_BuildValue("i",_result); | |
9602 | return _resultobj; | |
9603 | } | |
9604 | ||
9605 | #define wxDirItemData_m_isHidden_get(_swigobj) ((bool ) _swigobj->m_isHidden) | |
9606 | static PyObject *_wrap_wxDirItemData_m_isHidden_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9607 | PyObject * _resultobj; | |
9608 | bool _result; | |
9609 | wxDirItemData * _arg0; | |
9610 | PyObject * _argo0 = 0; | |
9611 | char *_kwnames[] = { "self", NULL }; | |
9612 | ||
9613 | self = self; | |
9614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isHidden_get",_kwnames,&_argo0)) | |
9615 | return NULL; | |
9616 | if (_argo0) { | |
9617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_get. Expected _wxDirItemData_p."); | |
9620 | return NULL; | |
9621 | } | |
9622 | } | |
9623 | { | |
9624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9625 | _result = (bool )wxDirItemData_m_isHidden_get(_arg0); |
68320e40 RD |
9626 | |
9627 | wxPyEndAllowThreads(__tstate); | |
9628 | if (PyErr_Occurred()) return NULL; | |
9629 | } _resultobj = Py_BuildValue("i",_result); | |
9630 | return _resultobj; | |
9631 | } | |
9632 | ||
9633 | #define wxDirItemData_m_isExpanded_set(_swigobj,_swigval) (_swigobj->m_isExpanded = _swigval,_swigval) | |
9634 | static PyObject *_wrap_wxDirItemData_m_isExpanded_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9635 | PyObject * _resultobj; | |
9636 | bool _result; | |
9637 | wxDirItemData * _arg0; | |
9638 | bool _arg1; | |
9639 | PyObject * _argo0 = 0; | |
9640 | int tempbool1; | |
9641 | char *_kwnames[] = { "self","m_isExpanded", NULL }; | |
9642 | ||
9643 | self = self; | |
9644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isExpanded_set",_kwnames,&_argo0,&tempbool1)) | |
9645 | return NULL; | |
9646 | if (_argo0) { | |
9647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_set. Expected _wxDirItemData_p."); | |
9650 | return NULL; | |
9651 | } | |
9652 | } | |
9653 | _arg1 = (bool ) tempbool1; | |
9654 | { | |
9655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9656 | _result = (bool )wxDirItemData_m_isExpanded_set(_arg0,_arg1); |
68320e40 RD |
9657 | |
9658 | wxPyEndAllowThreads(__tstate); | |
9659 | if (PyErr_Occurred()) return NULL; | |
9660 | } _resultobj = Py_BuildValue("i",_result); | |
9661 | return _resultobj; | |
9662 | } | |
9663 | ||
9664 | #define wxDirItemData_m_isExpanded_get(_swigobj) ((bool ) _swigobj->m_isExpanded) | |
9665 | static PyObject *_wrap_wxDirItemData_m_isExpanded_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9666 | PyObject * _resultobj; | |
9667 | bool _result; | |
9668 | wxDirItemData * _arg0; | |
9669 | PyObject * _argo0 = 0; | |
9670 | char *_kwnames[] = { "self", NULL }; | |
9671 | ||
9672 | self = self; | |
9673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isExpanded_get",_kwnames,&_argo0)) | |
9674 | return NULL; | |
9675 | if (_argo0) { | |
9676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_get. Expected _wxDirItemData_p."); | |
9679 | return NULL; | |
9680 | } | |
9681 | } | |
9682 | { | |
9683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9684 | _result = (bool )wxDirItemData_m_isExpanded_get(_arg0); |
68320e40 RD |
9685 | |
9686 | wxPyEndAllowThreads(__tstate); | |
9687 | if (PyErr_Occurred()) return NULL; | |
9688 | } _resultobj = Py_BuildValue("i",_result); | |
9689 | return _resultobj; | |
9690 | } | |
9691 | ||
9692 | #define wxDirItemData_m_isDir_set(_swigobj,_swigval) (_swigobj->m_isDir = _swigval,_swigval) | |
9693 | static PyObject *_wrap_wxDirItemData_m_isDir_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9694 | PyObject * _resultobj; | |
9695 | bool _result; | |
9696 | wxDirItemData * _arg0; | |
9697 | bool _arg1; | |
9698 | PyObject * _argo0 = 0; | |
9699 | int tempbool1; | |
9700 | char *_kwnames[] = { "self","m_isDir", NULL }; | |
9701 | ||
9702 | self = self; | |
9703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isDir_set",_kwnames,&_argo0,&tempbool1)) | |
9704 | return NULL; | |
9705 | if (_argo0) { | |
9706 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9707 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_set. Expected _wxDirItemData_p."); | |
9709 | return NULL; | |
9710 | } | |
9711 | } | |
9712 | _arg1 = (bool ) tempbool1; | |
9713 | { | |
9714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9715 | _result = (bool )wxDirItemData_m_isDir_set(_arg0,_arg1); |
68320e40 RD |
9716 | |
9717 | wxPyEndAllowThreads(__tstate); | |
9718 | if (PyErr_Occurred()) return NULL; | |
9719 | } _resultobj = Py_BuildValue("i",_result); | |
9720 | return _resultobj; | |
9721 | } | |
9722 | ||
9723 | #define wxDirItemData_m_isDir_get(_swigobj) ((bool ) _swigobj->m_isDir) | |
9724 | static PyObject *_wrap_wxDirItemData_m_isDir_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9725 | PyObject * _resultobj; | |
9726 | bool _result; | |
9727 | wxDirItemData * _arg0; | |
9728 | PyObject * _argo0 = 0; | |
9729 | char *_kwnames[] = { "self", NULL }; | |
9730 | ||
9731 | self = self; | |
9732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isDir_get",_kwnames,&_argo0)) | |
9733 | return NULL; | |
9734 | if (_argo0) { | |
9735 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9736 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_get. Expected _wxDirItemData_p."); | |
9738 | return NULL; | |
9739 | } | |
9740 | } | |
9741 | { | |
9742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9743 | _result = (bool )wxDirItemData_m_isDir_get(_arg0); |
68320e40 RD |
9744 | |
9745 | wxPyEndAllowThreads(__tstate); | |
9746 | if (PyErr_Occurred()) return NULL; | |
9747 | } _resultobj = Py_BuildValue("i",_result); | |
9748 | return _resultobj; | |
9749 | } | |
9750 | ||
9751 | static void *SwigwxGenericDirCtrlTowxControl(void *ptr) { | |
9752 | wxGenericDirCtrl *src; | |
9753 | wxControl *dest; | |
9754 | src = (wxGenericDirCtrl *) ptr; | |
9755 | dest = (wxControl *) src; | |
9756 | return (void *) dest; | |
9757 | } | |
9758 | ||
9759 | static void *SwigwxGenericDirCtrlTowxWindow(void *ptr) { | |
9760 | wxGenericDirCtrl *src; | |
9761 | wxWindow *dest; | |
9762 | src = (wxGenericDirCtrl *) ptr; | |
9763 | dest = (wxWindow *) src; | |
9764 | return (void *) dest; | |
9765 | } | |
9766 | ||
9767 | static void *SwigwxGenericDirCtrlTowxEvtHandler(void *ptr) { | |
9768 | wxGenericDirCtrl *src; | |
9769 | wxEvtHandler *dest; | |
9770 | src = (wxGenericDirCtrl *) ptr; | |
9771 | dest = (wxEvtHandler *) src; | |
9772 | return (void *) dest; | |
9773 | } | |
9774 | ||
9775 | static void *SwigwxGenericDirCtrlTowxObject(void *ptr) { | |
9776 | wxGenericDirCtrl *src; | |
9777 | wxObject *dest; | |
9778 | src = (wxGenericDirCtrl *) ptr; | |
9779 | dest = (wxObject *) src; | |
9780 | return (void *) dest; | |
9781 | } | |
9782 | ||
9783 | #define new_wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
9784 | static PyObject *_wrap_new_wxGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9785 | PyObject * _resultobj; | |
9786 | wxGenericDirCtrl * _result; | |
9787 | wxWindow * _arg0; | |
9788 | wxWindowID _arg1 = (wxWindowID ) -1; | |
137b5242 | 9789 | wxString * _arg2 = (wxString *) &wxPyDirDialogDefaultFolderStr; |
68320e40 RD |
9790 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
9791 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
9792 | long _arg5 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
137b5242 | 9793 | wxString * _arg6 = (wxString *) &wxPyEmptyString; |
68320e40 | 9794 | int _arg7 = (int ) 0; |
137b5242 | 9795 | wxString * _arg8 = (wxString *) &wxPy_TreeCtrlNameStr; |
68320e40 | 9796 | PyObject * _argo0 = 0; |
137b5242 | 9797 | PyObject * _obj2 = 0; |
68320e40 RD |
9798 | wxPoint temp; |
9799 | PyObject * _obj3 = 0; | |
9800 | wxSize temp0; | |
9801 | PyObject * _obj4 = 0; | |
137b5242 RD |
9802 | PyObject * _obj6 = 0; |
9803 | PyObject * _obj8 = 0; | |
68320e40 RD |
9804 | char *_kwnames[] = { "parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; |
9805 | char _ptemp[128]; | |
9806 | ||
9807 | self = self; | |
137b5242 | 9808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOOlOiO:new_wxGenericDirCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6,&_arg7,&_obj8)) |
68320e40 RD |
9809 | return NULL; |
9810 | if (_argo0) { | |
9811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGenericDirCtrl. Expected _wxWindow_p."); | |
9814 | return NULL; | |
9815 | } | |
9816 | } | |
137b5242 RD |
9817 | if (_obj2) |
9818 | { | |
9819 | _arg2 = wxString_in_helper(_obj2); | |
9820 | if (_arg2 == NULL) | |
9821 | return NULL; | |
9822 | } | |
68320e40 RD |
9823 | if (_obj3) |
9824 | { | |
9825 | _arg3 = &temp; | |
9826 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9827 | return NULL; | |
9828 | } | |
9829 | if (_obj4) | |
9830 | { | |
9831 | _arg4 = &temp0; | |
9832 | if (! wxSize_helper(_obj4, &_arg4)) | |
9833 | return NULL; | |
137b5242 RD |
9834 | } |
9835 | if (_obj6) | |
9836 | { | |
9837 | _arg6 = wxString_in_helper(_obj6); | |
9838 | if (_arg6 == NULL) | |
9839 | return NULL; | |
9840 | } | |
9841 | if (_obj8) | |
9842 | { | |
9843 | _arg8 = wxString_in_helper(_obj8); | |
9844 | if (_arg8 == NULL) | |
9845 | return NULL; | |
68320e40 RD |
9846 | } |
9847 | { | |
9848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
137b5242 | 9849 | _result = (wxGenericDirCtrl *)new_wxGenericDirCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7,*_arg8); |
68320e40 RD |
9850 | |
9851 | wxPyEndAllowThreads(__tstate); | |
9852 | if (PyErr_Occurred()) return NULL; | |
9853 | } if (_result) { | |
9854 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
9855 | _resultobj = Py_BuildValue("s",_ptemp); | |
9856 | } else { | |
9857 | Py_INCREF(Py_None); | |
9858 | _resultobj = Py_None; | |
9859 | } | |
137b5242 RD |
9860 | { |
9861 | if (_obj2) | |
9862 | delete _arg2; | |
9863 | } | |
9864 | { | |
9865 | if (_obj6) | |
9866 | delete _arg6; | |
9867 | } | |
9868 | { | |
9869 | if (_obj8) | |
9870 | delete _arg8; | |
9871 | } | |
68320e40 RD |
9872 | return _resultobj; |
9873 | } | |
9874 | ||
9875 | #define new_wxPreGenericDirCtrl() (new wxGenericDirCtrl()) | |
9876 | static PyObject *_wrap_new_wxPreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9877 | PyObject * _resultobj; | |
9878 | wxGenericDirCtrl * _result; | |
9879 | char *_kwnames[] = { NULL }; | |
9880 | char _ptemp[128]; | |
9881 | ||
9882 | self = self; | |
9883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGenericDirCtrl",_kwnames)) | |
9884 | return NULL; | |
9885 | { | |
9886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9887 | _result = (wxGenericDirCtrl *)new_wxPreGenericDirCtrl(); |
68320e40 RD |
9888 | |
9889 | wxPyEndAllowThreads(__tstate); | |
9890 | if (PyErr_Occurred()) return NULL; | |
9891 | } if (_result) { | |
9892 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
9893 | _resultobj = Py_BuildValue("s",_ptemp); | |
9894 | } else { | |
9895 | Py_INCREF(Py_None); | |
9896 | _resultobj = Py_None; | |
9897 | } | |
9898 | return _resultobj; | |
9899 | } | |
9900 | ||
9901 | #define wxGenericDirCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
9902 | static PyObject *_wrap_wxGenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9903 | PyObject * _resultobj; | |
9904 | bool _result; | |
9905 | wxGenericDirCtrl * _arg0; | |
9906 | wxWindow * _arg1; | |
9907 | wxWindowID _arg2 = (wxWindowID ) -1; | |
137b5242 | 9908 | wxString * _arg3 = (wxString *) &wxPyDirDialogDefaultFolderStr; |
68320e40 RD |
9909 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
9910 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
9911 | long _arg6 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
137b5242 | 9912 | wxString * _arg7 = (wxString *) &wxPyEmptyString; |
68320e40 | 9913 | int _arg8 = (int ) 0; |
137b5242 | 9914 | wxString * _arg9 = (wxString *) &wxPy_TreeCtrlNameStr; |
68320e40 RD |
9915 | PyObject * _argo0 = 0; |
9916 | PyObject * _argo1 = 0; | |
137b5242 | 9917 | PyObject * _obj3 = 0; |
68320e40 RD |
9918 | wxPoint temp; |
9919 | PyObject * _obj4 = 0; | |
9920 | wxSize temp0; | |
9921 | PyObject * _obj5 = 0; | |
137b5242 RD |
9922 | PyObject * _obj7 = 0; |
9923 | PyObject * _obj9 = 0; | |
68320e40 RD |
9924 | char *_kwnames[] = { "self","parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; |
9925 | ||
9926 | self = self; | |
137b5242 | 9927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOOlOiO:wxGenericDirCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_obj7,&_arg8,&_obj9)) |
68320e40 RD |
9928 | return NULL; |
9929 | if (_argo0) { | |
9930 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9931 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
9932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
9933 | return NULL; | |
9934 | } | |
9935 | } | |
9936 | if (_argo1) { | |
9937 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9938 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9939 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGenericDirCtrl_Create. Expected _wxWindow_p."); | |
9940 | return NULL; | |
9941 | } | |
9942 | } | |
137b5242 RD |
9943 | if (_obj3) |
9944 | { | |
9945 | _arg3 = wxString_in_helper(_obj3); | |
9946 | if (_arg3 == NULL) | |
9947 | return NULL; | |
9948 | } | |
68320e40 RD |
9949 | if (_obj4) |
9950 | { | |
9951 | _arg4 = &temp; | |
9952 | if (! wxPoint_helper(_obj4, &_arg4)) | |
9953 | return NULL; | |
9954 | } | |
9955 | if (_obj5) | |
9956 | { | |
9957 | _arg5 = &temp0; | |
9958 | if (! wxSize_helper(_obj5, &_arg5)) | |
9959 | return NULL; | |
137b5242 RD |
9960 | } |
9961 | if (_obj7) | |
9962 | { | |
9963 | _arg7 = wxString_in_helper(_obj7); | |
9964 | if (_arg7 == NULL) | |
9965 | return NULL; | |
9966 | } | |
9967 | if (_obj9) | |
9968 | { | |
9969 | _arg9 = wxString_in_helper(_obj9); | |
9970 | if (_arg9 == NULL) | |
9971 | return NULL; | |
68320e40 RD |
9972 | } |
9973 | { | |
9974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
137b5242 | 9975 | _result = (bool )wxGenericDirCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8,*_arg9); |
68320e40 RD |
9976 | |
9977 | wxPyEndAllowThreads(__tstate); | |
9978 | if (PyErr_Occurred()) return NULL; | |
9979 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
9980 | { |
9981 | if (_obj3) | |
9982 | delete _arg3; | |
9983 | } | |
9984 | { | |
9985 | if (_obj7) | |
9986 | delete _arg7; | |
9987 | } | |
9988 | { | |
9989 | if (_obj9) | |
9990 | delete _arg9; | |
9991 | } | |
68320e40 RD |
9992 | return _resultobj; |
9993 | } | |
9994 | ||
9995 | #define wxGenericDirCtrl_ExpandPath(_swigobj,_swigarg0) (_swigobj->ExpandPath(_swigarg0)) | |
9996 | static PyObject *_wrap_wxGenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9997 | PyObject * _resultobj; | |
9998 | bool _result; | |
9999 | wxGenericDirCtrl * _arg0; | |
10000 | wxString * _arg1; | |
10001 | PyObject * _argo0 = 0; | |
10002 | PyObject * _obj1 = 0; | |
10003 | char *_kwnames[] = { "self","path", NULL }; | |
10004 | ||
10005 | self = self; | |
10006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_ExpandPath",_kwnames,&_argo0,&_obj1)) | |
10007 | return NULL; | |
10008 | if (_argo0) { | |
10009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ExpandPath. Expected _wxGenericDirCtrl_p."); | |
10012 | return NULL; | |
10013 | } | |
10014 | } | |
10015 | { | |
c8bc7bb8 RD |
10016 | _arg1 = wxString_in_helper(_obj1); |
10017 | if (_arg1 == NULL) | |
68320e40 | 10018 | return NULL; |
68320e40 RD |
10019 | } |
10020 | { | |
10021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10022 | _result = (bool )wxGenericDirCtrl_ExpandPath(_arg0,*_arg1); |
68320e40 RD |
10023 | |
10024 | wxPyEndAllowThreads(__tstate); | |
10025 | if (PyErr_Occurred()) return NULL; | |
10026 | } _resultobj = Py_BuildValue("i",_result); | |
10027 | { | |
10028 | if (_obj1) | |
10029 | delete _arg1; | |
10030 | } | |
10031 | return _resultobj; | |
10032 | } | |
10033 | ||
10034 | #define wxGenericDirCtrl_GetDefaultPath(_swigobj) (_swigobj->GetDefaultPath()) | |
10035 | static PyObject *_wrap_wxGenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10036 | PyObject * _resultobj; | |
10037 | wxString * _result; | |
10038 | wxGenericDirCtrl * _arg0; | |
10039 | PyObject * _argo0 = 0; | |
10040 | char *_kwnames[] = { "self", NULL }; | |
10041 | ||
10042 | self = self; | |
10043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetDefaultPath",_kwnames,&_argo0)) | |
10044 | return NULL; | |
10045 | if (_argo0) { | |
10046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
10049 | return NULL; | |
10050 | } | |
10051 | } | |
10052 | { | |
10053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10054 | _result = new wxString (wxGenericDirCtrl_GetDefaultPath(_arg0)); |
68320e40 RD |
10055 | |
10056 | wxPyEndAllowThreads(__tstate); | |
10057 | if (PyErr_Occurred()) return NULL; | |
10058 | }{ | |
c8bc7bb8 RD |
10059 | #if wxUSE_UNICODE |
10060 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10061 | #else | |
68320e40 | 10062 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10063 | #endif |
68320e40 RD |
10064 | } |
10065 | { | |
10066 | delete _result; | |
10067 | } | |
10068 | return _resultobj; | |
10069 | } | |
10070 | ||
10071 | #define wxGenericDirCtrl_SetDefaultPath(_swigobj,_swigarg0) (_swigobj->SetDefaultPath(_swigarg0)) | |
10072 | static PyObject *_wrap_wxGenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10073 | PyObject * _resultobj; | |
10074 | wxGenericDirCtrl * _arg0; | |
10075 | wxString * _arg1; | |
10076 | PyObject * _argo0 = 0; | |
10077 | PyObject * _obj1 = 0; | |
10078 | char *_kwnames[] = { "self","path", NULL }; | |
10079 | ||
10080 | self = self; | |
10081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetDefaultPath",_kwnames,&_argo0,&_obj1)) | |
10082 | return NULL; | |
10083 | if (_argo0) { | |
10084 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10085 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10086 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
10087 | return NULL; | |
10088 | } | |
10089 | } | |
10090 | { | |
c8bc7bb8 RD |
10091 | _arg1 = wxString_in_helper(_obj1); |
10092 | if (_arg1 == NULL) | |
68320e40 | 10093 | return NULL; |
68320e40 RD |
10094 | } |
10095 | { | |
10096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10097 | wxGenericDirCtrl_SetDefaultPath(_arg0,*_arg1); |
68320e40 RD |
10098 | |
10099 | wxPyEndAllowThreads(__tstate); | |
10100 | if (PyErr_Occurred()) return NULL; | |
10101 | } Py_INCREF(Py_None); | |
10102 | _resultobj = Py_None; | |
10103 | { | |
10104 | if (_obj1) | |
10105 | delete _arg1; | |
10106 | } | |
10107 | return _resultobj; | |
10108 | } | |
10109 | ||
10110 | #define wxGenericDirCtrl_GetPath(_swigobj) (_swigobj->GetPath()) | |
10111 | static PyObject *_wrap_wxGenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10112 | PyObject * _resultobj; | |
10113 | wxString * _result; | |
10114 | wxGenericDirCtrl * _arg0; | |
10115 | PyObject * _argo0 = 0; | |
10116 | char *_kwnames[] = { "self", NULL }; | |
10117 | ||
10118 | self = self; | |
10119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetPath",_kwnames,&_argo0)) | |
10120 | return NULL; | |
10121 | if (_argo0) { | |
10122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetPath. Expected _wxGenericDirCtrl_p."); | |
10125 | return NULL; | |
10126 | } | |
10127 | } | |
10128 | { | |
10129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10130 | _result = new wxString (wxGenericDirCtrl_GetPath(_arg0)); |
68320e40 RD |
10131 | |
10132 | wxPyEndAllowThreads(__tstate); | |
10133 | if (PyErr_Occurred()) return NULL; | |
10134 | }{ | |
c8bc7bb8 RD |
10135 | #if wxUSE_UNICODE |
10136 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10137 | #else | |
68320e40 | 10138 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10139 | #endif |
68320e40 RD |
10140 | } |
10141 | { | |
10142 | delete _result; | |
10143 | } | |
10144 | return _resultobj; | |
10145 | } | |
10146 | ||
10147 | #define wxGenericDirCtrl_GetFilePath(_swigobj) (_swigobj->GetFilePath()) | |
10148 | static PyObject *_wrap_wxGenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10149 | PyObject * _resultobj; | |
10150 | wxString * _result; | |
10151 | wxGenericDirCtrl * _arg0; | |
10152 | PyObject * _argo0 = 0; | |
10153 | char *_kwnames[] = { "self", NULL }; | |
10154 | ||
10155 | self = self; | |
10156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilePath",_kwnames,&_argo0)) | |
10157 | return NULL; | |
10158 | if (_argo0) { | |
10159 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10160 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilePath. Expected _wxGenericDirCtrl_p."); | |
10162 | return NULL; | |
10163 | } | |
10164 | } | |
10165 | { | |
10166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10167 | _result = new wxString (wxGenericDirCtrl_GetFilePath(_arg0)); |
68320e40 RD |
10168 | |
10169 | wxPyEndAllowThreads(__tstate); | |
10170 | if (PyErr_Occurred()) return NULL; | |
10171 | }{ | |
c8bc7bb8 RD |
10172 | #if wxUSE_UNICODE |
10173 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10174 | #else | |
68320e40 | 10175 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10176 | #endif |
68320e40 RD |
10177 | } |
10178 | { | |
10179 | delete _result; | |
10180 | } | |
10181 | return _resultobj; | |
10182 | } | |
10183 | ||
10184 | #define wxGenericDirCtrl_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0)) | |
10185 | static PyObject *_wrap_wxGenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10186 | PyObject * _resultobj; | |
10187 | wxGenericDirCtrl * _arg0; | |
10188 | wxString * _arg1; | |
10189 | PyObject * _argo0 = 0; | |
10190 | PyObject * _obj1 = 0; | |
10191 | char *_kwnames[] = { "self","path", NULL }; | |
10192 | ||
10193 | self = self; | |
10194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetPath",_kwnames,&_argo0,&_obj1)) | |
10195 | return NULL; | |
10196 | if (_argo0) { | |
10197 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10198 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetPath. Expected _wxGenericDirCtrl_p."); | |
10200 | return NULL; | |
10201 | } | |
10202 | } | |
10203 | { | |
c8bc7bb8 RD |
10204 | _arg1 = wxString_in_helper(_obj1); |
10205 | if (_arg1 == NULL) | |
68320e40 | 10206 | return NULL; |
68320e40 RD |
10207 | } |
10208 | { | |
10209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10210 | wxGenericDirCtrl_SetPath(_arg0,*_arg1); |
68320e40 RD |
10211 | |
10212 | wxPyEndAllowThreads(__tstate); | |
10213 | if (PyErr_Occurred()) return NULL; | |
10214 | } Py_INCREF(Py_None); | |
10215 | _resultobj = Py_None; | |
10216 | { | |
10217 | if (_obj1) | |
10218 | delete _arg1; | |
10219 | } | |
10220 | return _resultobj; | |
10221 | } | |
10222 | ||
10223 | #define wxGenericDirCtrl_ShowHidden(_swigobj,_swigarg0) (_swigobj->ShowHidden(_swigarg0)) | |
10224 | static PyObject *_wrap_wxGenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10225 | PyObject * _resultobj; | |
10226 | wxGenericDirCtrl * _arg0; | |
10227 | bool _arg1; | |
10228 | PyObject * _argo0 = 0; | |
10229 | int tempbool1; | |
10230 | char *_kwnames[] = { "self","show", NULL }; | |
10231 | ||
10232 | self = self; | |
10233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_ShowHidden",_kwnames,&_argo0,&tempbool1)) | |
10234 | return NULL; | |
10235 | if (_argo0) { | |
10236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ShowHidden. Expected _wxGenericDirCtrl_p."); | |
10239 | return NULL; | |
10240 | } | |
10241 | } | |
10242 | _arg1 = (bool ) tempbool1; | |
10243 | { | |
10244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10245 | wxGenericDirCtrl_ShowHidden(_arg0,_arg1); |
68320e40 RD |
10246 | |
10247 | wxPyEndAllowThreads(__tstate); | |
10248 | if (PyErr_Occurred()) return NULL; | |
10249 | } Py_INCREF(Py_None); | |
10250 | _resultobj = Py_None; | |
10251 | return _resultobj; | |
10252 | } | |
10253 | ||
10254 | #define wxGenericDirCtrl_GetShowHidden(_swigobj) (_swigobj->GetShowHidden()) | |
10255 | static PyObject *_wrap_wxGenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10256 | PyObject * _resultobj; | |
10257 | bool _result; | |
10258 | wxGenericDirCtrl * _arg0; | |
10259 | PyObject * _argo0 = 0; | |
10260 | char *_kwnames[] = { "self", NULL }; | |
10261 | ||
10262 | self = self; | |
10263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetShowHidden",_kwnames,&_argo0)) | |
10264 | return NULL; | |
10265 | if (_argo0) { | |
10266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetShowHidden. Expected _wxGenericDirCtrl_p."); | |
10269 | return NULL; | |
10270 | } | |
10271 | } | |
10272 | { | |
10273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10274 | _result = (bool )wxGenericDirCtrl_GetShowHidden(_arg0); |
68320e40 RD |
10275 | |
10276 | wxPyEndAllowThreads(__tstate); | |
10277 | if (PyErr_Occurred()) return NULL; | |
10278 | } _resultobj = Py_BuildValue("i",_result); | |
10279 | return _resultobj; | |
10280 | } | |
10281 | ||
10282 | #define wxGenericDirCtrl_GetFilter(_swigobj) (_swigobj->GetFilter()) | |
10283 | static PyObject *_wrap_wxGenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10284 | PyObject * _resultobj; | |
10285 | wxString * _result; | |
10286 | wxGenericDirCtrl * _arg0; | |
10287 | PyObject * _argo0 = 0; | |
10288 | char *_kwnames[] = { "self", NULL }; | |
10289 | ||
10290 | self = self; | |
10291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilter",_kwnames,&_argo0)) | |
10292 | return NULL; | |
10293 | if (_argo0) { | |
10294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilter. Expected _wxGenericDirCtrl_p."); | |
10297 | return NULL; | |
10298 | } | |
10299 | } | |
10300 | { | |
10301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10302 | _result = new wxString (wxGenericDirCtrl_GetFilter(_arg0)); |
68320e40 RD |
10303 | |
10304 | wxPyEndAllowThreads(__tstate); | |
10305 | if (PyErr_Occurred()) return NULL; | |
10306 | }{ | |
c8bc7bb8 RD |
10307 | #if wxUSE_UNICODE |
10308 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10309 | #else | |
68320e40 | 10310 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10311 | #endif |
68320e40 RD |
10312 | } |
10313 | { | |
10314 | delete _result; | |
10315 | } | |
10316 | return _resultobj; | |
10317 | } | |
10318 | ||
10319 | #define wxGenericDirCtrl_SetFilter(_swigobj,_swigarg0) (_swigobj->SetFilter(_swigarg0)) | |
10320 | static PyObject *_wrap_wxGenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10321 | PyObject * _resultobj; | |
10322 | wxGenericDirCtrl * _arg0; | |
10323 | wxString * _arg1; | |
10324 | PyObject * _argo0 = 0; | |
10325 | PyObject * _obj1 = 0; | |
10326 | char *_kwnames[] = { "self","filter", NULL }; | |
10327 | ||
10328 | self = self; | |
10329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetFilter",_kwnames,&_argo0,&_obj1)) | |
10330 | return NULL; | |
10331 | if (_argo0) { | |
10332 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10333 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilter. Expected _wxGenericDirCtrl_p."); | |
10335 | return NULL; | |
10336 | } | |
10337 | } | |
10338 | { | |
c8bc7bb8 RD |
10339 | _arg1 = wxString_in_helper(_obj1); |
10340 | if (_arg1 == NULL) | |
68320e40 | 10341 | return NULL; |
68320e40 RD |
10342 | } |
10343 | { | |
10344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10345 | wxGenericDirCtrl_SetFilter(_arg0,*_arg1); |
68320e40 RD |
10346 | |
10347 | wxPyEndAllowThreads(__tstate); | |
10348 | if (PyErr_Occurred()) return NULL; | |
10349 | } Py_INCREF(Py_None); | |
10350 | _resultobj = Py_None; | |
10351 | { | |
10352 | if (_obj1) | |
10353 | delete _arg1; | |
10354 | } | |
10355 | return _resultobj; | |
10356 | } | |
10357 | ||
10358 | #define wxGenericDirCtrl_GetFilterIndex(_swigobj) (_swigobj->GetFilterIndex()) | |
10359 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10360 | PyObject * _resultobj; | |
10361 | int _result; | |
10362 | wxGenericDirCtrl * _arg0; | |
10363 | PyObject * _argo0 = 0; | |
10364 | char *_kwnames[] = { "self", NULL }; | |
10365 | ||
10366 | self = self; | |
10367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterIndex",_kwnames,&_argo0)) | |
10368 | return NULL; | |
10369 | if (_argo0) { | |
10370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10373 | return NULL; | |
10374 | } | |
10375 | } | |
10376 | { | |
10377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10378 | _result = (int )wxGenericDirCtrl_GetFilterIndex(_arg0); |
68320e40 RD |
10379 | |
10380 | wxPyEndAllowThreads(__tstate); | |
10381 | if (PyErr_Occurred()) return NULL; | |
10382 | } _resultobj = Py_BuildValue("i",_result); | |
10383 | return _resultobj; | |
10384 | } | |
10385 | ||
10386 | #define wxGenericDirCtrl_SetFilterIndex(_swigobj,_swigarg0) (_swigobj->SetFilterIndex(_swigarg0)) | |
10387 | static PyObject *_wrap_wxGenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10388 | PyObject * _resultobj; | |
10389 | wxGenericDirCtrl * _arg0; | |
10390 | int _arg1; | |
10391 | PyObject * _argo0 = 0; | |
10392 | char *_kwnames[] = { "self","n", NULL }; | |
10393 | ||
10394 | self = self; | |
10395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_SetFilterIndex",_kwnames,&_argo0,&_arg1)) | |
10396 | return NULL; | |
10397 | if (_argo0) { | |
10398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10401 | return NULL; | |
10402 | } | |
10403 | } | |
10404 | { | |
10405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10406 | wxGenericDirCtrl_SetFilterIndex(_arg0,_arg1); |
68320e40 RD |
10407 | |
10408 | wxPyEndAllowThreads(__tstate); | |
10409 | if (PyErr_Occurred()) return NULL; | |
10410 | } Py_INCREF(Py_None); | |
10411 | _resultobj = Py_None; | |
10412 | return _resultobj; | |
10413 | } | |
10414 | ||
10415 | #define wxGenericDirCtrl_GetRootId(_swigobj) (_swigobj->GetRootId()) | |
10416 | static PyObject *_wrap_wxGenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10417 | PyObject * _resultobj; | |
10418 | wxTreeItemId * _result; | |
10419 | wxGenericDirCtrl * _arg0; | |
10420 | PyObject * _argo0 = 0; | |
10421 | char *_kwnames[] = { "self", NULL }; | |
10422 | char _ptemp[128]; | |
10423 | ||
10424 | self = self; | |
10425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetRootId",_kwnames,&_argo0)) | |
10426 | return NULL; | |
10427 | if (_argo0) { | |
10428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetRootId. Expected _wxGenericDirCtrl_p."); | |
10431 | return NULL; | |
10432 | } | |
10433 | } | |
10434 | { | |
10435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10436 | _result = new wxTreeItemId (wxGenericDirCtrl_GetRootId(_arg0)); |
68320e40 RD |
10437 | |
10438 | wxPyEndAllowThreads(__tstate); | |
10439 | if (PyErr_Occurred()) return NULL; | |
10440 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
10441 | _resultobj = Py_BuildValue("s",_ptemp); | |
10442 | return _resultobj; | |
10443 | } | |
10444 | ||
10445 | #define wxGenericDirCtrl_GetTreeCtrl(_swigobj) (_swigobj->GetTreeCtrl()) | |
10446 | static PyObject *_wrap_wxGenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10447 | PyObject * _resultobj; | |
10448 | wxTreeCtrl * _result; | |
10449 | wxGenericDirCtrl * _arg0; | |
10450 | PyObject * _argo0 = 0; | |
10451 | char *_kwnames[] = { "self", NULL }; | |
68320e40 RD |
10452 | |
10453 | self = self; | |
10454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetTreeCtrl",_kwnames,&_argo0)) | |
10455 | return NULL; | |
10456 | if (_argo0) { | |
10457 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10458 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetTreeCtrl. Expected _wxGenericDirCtrl_p."); | |
10460 | return NULL; | |
10461 | } | |
10462 | } | |
10463 | { | |
10464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10465 | _result = (wxTreeCtrl *)wxGenericDirCtrl_GetTreeCtrl(_arg0); |
68320e40 RD |
10466 | |
10467 | wxPyEndAllowThreads(__tstate); | |
10468 | if (PyErr_Occurred()) return NULL; | |
9398120d | 10469 | }{ _resultobj = wxPyMake_wxObject(_result); } |
68320e40 RD |
10470 | return _resultobj; |
10471 | } | |
10472 | ||
10473 | #define wxGenericDirCtrl_GetFilterListCtrl(_swigobj) (_swigobj->GetFilterListCtrl()) | |
10474 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10475 | PyObject * _resultobj; | |
10476 | wxDirFilterListCtrl * _result; | |
10477 | wxGenericDirCtrl * _arg0; | |
10478 | PyObject * _argo0 = 0; | |
10479 | char *_kwnames[] = { "self", NULL }; | |
10480 | char _ptemp[128]; | |
10481 | ||
10482 | self = self; | |
10483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterListCtrl",_kwnames,&_argo0)) | |
10484 | return NULL; | |
10485 | if (_argo0) { | |
10486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10489 | return NULL; | |
10490 | } | |
10491 | } | |
10492 | { | |
10493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10494 | _result = (wxDirFilterListCtrl *)wxGenericDirCtrl_GetFilterListCtrl(_arg0); |
68320e40 RD |
10495 | |
10496 | wxPyEndAllowThreads(__tstate); | |
10497 | if (PyErr_Occurred()) return NULL; | |
10498 | } if (_result) { | |
10499 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10500 | _resultobj = Py_BuildValue("s",_ptemp); | |
10501 | } else { | |
10502 | Py_INCREF(Py_None); | |
10503 | _resultobj = Py_None; | |
10504 | } | |
10505 | return _resultobj; | |
10506 | } | |
10507 | ||
10508 | static void *SwigwxDirFilterListCtrlTowxChoice(void *ptr) { | |
10509 | wxDirFilterListCtrl *src; | |
10510 | wxChoice *dest; | |
10511 | src = (wxDirFilterListCtrl *) ptr; | |
10512 | dest = (wxChoice *) src; | |
10513 | return (void *) dest; | |
10514 | } | |
10515 | ||
10516 | static void *SwigwxDirFilterListCtrlTowxControlWithItems(void *ptr) { | |
10517 | wxDirFilterListCtrl *src; | |
10518 | wxControlWithItems *dest; | |
10519 | src = (wxDirFilterListCtrl *) ptr; | |
10520 | dest = (wxControlWithItems *) src; | |
10521 | return (void *) dest; | |
10522 | } | |
10523 | ||
10524 | static void *SwigwxDirFilterListCtrlTowxControl(void *ptr) { | |
10525 | wxDirFilterListCtrl *src; | |
10526 | wxControl *dest; | |
10527 | src = (wxDirFilterListCtrl *) ptr; | |
10528 | dest = (wxControl *) src; | |
10529 | return (void *) dest; | |
10530 | } | |
10531 | ||
10532 | static void *SwigwxDirFilterListCtrlTowxWindow(void *ptr) { | |
10533 | wxDirFilterListCtrl *src; | |
10534 | wxWindow *dest; | |
10535 | src = (wxDirFilterListCtrl *) ptr; | |
10536 | dest = (wxWindow *) src; | |
10537 | return (void *) dest; | |
10538 | } | |
10539 | ||
10540 | static void *SwigwxDirFilterListCtrlTowxEvtHandler(void *ptr) { | |
10541 | wxDirFilterListCtrl *src; | |
10542 | wxEvtHandler *dest; | |
10543 | src = (wxDirFilterListCtrl *) ptr; | |
10544 | dest = (wxEvtHandler *) src; | |
10545 | return (void *) dest; | |
10546 | } | |
10547 | ||
10548 | static void *SwigwxDirFilterListCtrlTowxObject(void *ptr) { | |
10549 | wxDirFilterListCtrl *src; | |
10550 | wxObject *dest; | |
10551 | src = (wxDirFilterListCtrl *) ptr; | |
10552 | dest = (wxObject *) src; | |
10553 | return (void *) dest; | |
10554 | } | |
10555 | ||
10556 | #define new_wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10557 | static PyObject *_wrap_new_wxDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10558 | PyObject * _resultobj; | |
10559 | wxDirFilterListCtrl * _result; | |
10560 | wxGenericDirCtrl * _arg0; | |
10561 | wxWindowID _arg1 = (wxWindowID ) -1; | |
10562 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
10563 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
10564 | long _arg4 = (long ) 0; | |
10565 | PyObject * _argo0 = 0; | |
10566 | wxPoint temp; | |
10567 | PyObject * _obj2 = 0; | |
10568 | wxSize temp0; | |
10569 | PyObject * _obj3 = 0; | |
10570 | char *_kwnames[] = { "parent","id","pos","size","style", NULL }; | |
10571 | char _ptemp[128]; | |
10572 | ||
10573 | self = self; | |
10574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxDirFilterListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
10575 | return NULL; | |
10576 | if (_argo0) { | |
10577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDirFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10580 | return NULL; | |
10581 | } | |
10582 | } | |
10583 | if (_obj2) | |
10584 | { | |
10585 | _arg2 = &temp; | |
10586 | if (! wxPoint_helper(_obj2, &_arg2)) | |
10587 | return NULL; | |
10588 | } | |
10589 | if (_obj3) | |
10590 | { | |
10591 | _arg3 = &temp0; | |
10592 | if (! wxSize_helper(_obj3, &_arg3)) | |
10593 | return NULL; | |
10594 | } | |
10595 | { | |
10596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10597 | _result = (wxDirFilterListCtrl *)new_wxDirFilterListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
68320e40 RD |
10598 | |
10599 | wxPyEndAllowThreads(__tstate); | |
10600 | if (PyErr_Occurred()) return NULL; | |
10601 | } if (_result) { | |
10602 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10603 | _resultobj = Py_BuildValue("s",_ptemp); | |
10604 | } else { | |
10605 | Py_INCREF(Py_None); | |
10606 | _resultobj = Py_None; | |
10607 | } | |
10608 | return _resultobj; | |
10609 | } | |
10610 | ||
10611 | #define new_wxPreDirFilterListCtrl() (new wxDirFilterListCtrl()) | |
10612 | static PyObject *_wrap_new_wxPreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10613 | PyObject * _resultobj; | |
10614 | wxDirFilterListCtrl * _result; | |
10615 | char *_kwnames[] = { NULL }; | |
10616 | char _ptemp[128]; | |
10617 | ||
10618 | self = self; | |
10619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreDirFilterListCtrl",_kwnames)) | |
10620 | return NULL; | |
10621 | { | |
10622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10623 | _result = (wxDirFilterListCtrl *)new_wxPreDirFilterListCtrl(); |
68320e40 RD |
10624 | |
10625 | wxPyEndAllowThreads(__tstate); | |
10626 | if (PyErr_Occurred()) return NULL; | |
10627 | } if (_result) { | |
10628 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10629 | _resultobj = Py_BuildValue("s",_ptemp); | |
10630 | } else { | |
10631 | Py_INCREF(Py_None); | |
10632 | _resultobj = Py_None; | |
10633 | } | |
10634 | return _resultobj; | |
10635 | } | |
10636 | ||
10637 | #define wxDirFilterListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10638 | static PyObject *_wrap_wxDirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10639 | PyObject * _resultobj; | |
10640 | bool _result; | |
10641 | wxDirFilterListCtrl * _arg0; | |
10642 | wxGenericDirCtrl * _arg1; | |
10643 | wxWindowID _arg2 = (wxWindowID ) -1; | |
10644 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
10645 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
10646 | long _arg5 = (long ) 0; | |
10647 | PyObject * _argo0 = 0; | |
10648 | PyObject * _argo1 = 0; | |
10649 | wxPoint temp; | |
10650 | PyObject * _obj3 = 0; | |
10651 | wxSize temp0; | |
10652 | PyObject * _obj4 = 0; | |
10653 | char *_kwnames[] = { "self","parent","id","pos","size","style", NULL }; | |
10654 | ||
10655 | self = self; | |
10656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOl:wxDirFilterListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5)) | |
10657 | return NULL; | |
10658 | if (_argo0) { | |
10659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
10661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_Create. Expected _wxDirFilterListCtrl_p."); | |
10662 | return NULL; | |
10663 | } | |
10664 | } | |
10665 | if (_argo1) { | |
10666 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10667 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxGenericDirCtrl_p")) { | |
10668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDirFilterListCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
10669 | return NULL; | |
10670 | } | |
10671 | } | |
10672 | if (_obj3) | |
10673 | { | |
10674 | _arg3 = &temp; | |
10675 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10676 | return NULL; | |
10677 | } | |
10678 | if (_obj4) | |
10679 | { | |
10680 | _arg4 = &temp0; | |
10681 | if (! wxSize_helper(_obj4, &_arg4)) | |
10682 | return NULL; | |
10683 | } | |
10684 | { | |
10685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10686 | _result = (bool )wxDirFilterListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5); |
68320e40 RD |
10687 | |
10688 | wxPyEndAllowThreads(__tstate); | |
10689 | if (PyErr_Occurred()) return NULL; | |
10690 | } _resultobj = Py_BuildValue("i",_result); | |
10691 | return _resultobj; | |
10692 | } | |
10693 | ||
10694 | #define wxDirFilterListCtrl_FillFilterList(_swigobj,_swigarg0,_swigarg1) (_swigobj->FillFilterList(_swigarg0,_swigarg1)) | |
10695 | static PyObject *_wrap_wxDirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10696 | PyObject * _resultobj; | |
10697 | wxDirFilterListCtrl * _arg0; | |
10698 | wxString * _arg1; | |
10699 | int _arg2; | |
10700 | PyObject * _argo0 = 0; | |
10701 | PyObject * _obj1 = 0; | |
10702 | char *_kwnames[] = { "self","filter","defaultFilter", NULL }; | |
10703 | ||
10704 | self = self; | |
10705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxDirFilterListCtrl_FillFilterList",_kwnames,&_argo0,&_obj1,&_arg2)) | |
10706 | return NULL; | |
10707 | if (_argo0) { | |
10708 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10709 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
10710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_FillFilterList. Expected _wxDirFilterListCtrl_p."); | |
10711 | return NULL; | |
10712 | } | |
10713 | } | |
10714 | { | |
c8bc7bb8 RD |
10715 | _arg1 = wxString_in_helper(_obj1); |
10716 | if (_arg1 == NULL) | |
68320e40 | 10717 | return NULL; |
68320e40 RD |
10718 | } |
10719 | { | |
10720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10721 | wxDirFilterListCtrl_FillFilterList(_arg0,*_arg1,_arg2); |
68320e40 RD |
10722 | |
10723 | wxPyEndAllowThreads(__tstate); | |
10724 | if (PyErr_Occurred()) return NULL; | |
10725 | } Py_INCREF(Py_None); | |
10726 | _resultobj = Py_None; | |
10727 | { | |
10728 | if (_obj1) | |
10729 | delete _arg1; | |
10730 | } | |
10731 | return _resultobj; | |
10732 | } | |
10733 | ||
8ab979d7 | 10734 | static PyMethodDef controls2cMethods[] = { |
68320e40 RD |
10735 | { "wxDirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_wxDirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, |
10736 | { "wxDirFilterListCtrl_Create", (PyCFunction) _wrap_wxDirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10737 | { "new_wxPreDirFilterListCtrl", (PyCFunction) _wrap_new_wxPreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10738 | { "new_wxDirFilterListCtrl", (PyCFunction) _wrap_new_wxDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10739 | { "wxGenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10740 | { "wxGenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10741 | { "wxGenericDirCtrl_GetRootId", (PyCFunction) _wrap_wxGenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
10742 | { "wxGenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
10743 | { "wxGenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
10744 | { "wxGenericDirCtrl_SetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
10745 | { "wxGenericDirCtrl_GetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
10746 | { "wxGenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
10747 | { "wxGenericDirCtrl_ShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
10748 | { "wxGenericDirCtrl_SetPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
10749 | { "wxGenericDirCtrl_GetFilePath", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
10750 | { "wxGenericDirCtrl_GetPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
10751 | { "wxGenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
10752 | { "wxGenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
10753 | { "wxGenericDirCtrl_ExpandPath", (PyCFunction) _wrap_wxGenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
10754 | { "wxGenericDirCtrl_Create", (PyCFunction) _wrap_wxGenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10755 | { "new_wxPreGenericDirCtrl", (PyCFunction) _wrap_new_wxPreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10756 | { "new_wxGenericDirCtrl", (PyCFunction) _wrap_new_wxGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10757 | { "wxDirItemData_m_isDir_get", (PyCFunction) _wrap_wxDirItemData_m_isDir_get, METH_VARARGS | METH_KEYWORDS }, | |
10758 | { "wxDirItemData_m_isDir_set", (PyCFunction) _wrap_wxDirItemData_m_isDir_set, METH_VARARGS | METH_KEYWORDS }, | |
10759 | { "wxDirItemData_m_isExpanded_get", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_get, METH_VARARGS | METH_KEYWORDS }, | |
10760 | { "wxDirItemData_m_isExpanded_set", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_set, METH_VARARGS | METH_KEYWORDS }, | |
10761 | { "wxDirItemData_m_isHidden_get", (PyCFunction) _wrap_wxDirItemData_m_isHidden_get, METH_VARARGS | METH_KEYWORDS }, | |
10762 | { "wxDirItemData_m_isHidden_set", (PyCFunction) _wrap_wxDirItemData_m_isHidden_set, METH_VARARGS | METH_KEYWORDS }, | |
10763 | { "wxDirItemData_m_name_get", (PyCFunction) _wrap_wxDirItemData_m_name_get, METH_VARARGS | METH_KEYWORDS }, | |
10764 | { "wxDirItemData_m_name_set", (PyCFunction) _wrap_wxDirItemData_m_name_set, METH_VARARGS | METH_KEYWORDS }, | |
10765 | { "wxDirItemData_m_path_get", (PyCFunction) _wrap_wxDirItemData_m_path_get, METH_VARARGS | METH_KEYWORDS }, | |
10766 | { "wxDirItemData_m_path_set", (PyCFunction) _wrap_wxDirItemData_m_path_set, METH_VARARGS | METH_KEYWORDS }, | |
10767 | { "wxDirItemData_SetNewDirName", (PyCFunction) _wrap_wxDirItemData_SetNewDirName, METH_VARARGS | METH_KEYWORDS }, | |
10768 | { "new_wxDirItemData", (PyCFunction) _wrap_new_wxDirItemData, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10769 | { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10770 | { "wxTreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_wxTreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 RD |
10771 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, |
10772 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10773 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10774 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
10775 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
10776 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10777 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10778 | { "wxTreeCtrl_EndEditLabel", (PyCFunction) _wrap_wxTreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, |
10779 | { "wxTreeCtrl_GetEditControl", (PyCFunction) _wrap_wxTreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
10780 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
10781 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
10782 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
10783 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
10784 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
10785 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
10786 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
10787 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
10788 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
10789 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
10790 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
10791 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
10792 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
10793 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10794 | { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10795 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, |
10796 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
10797 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10798 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10799 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, |
10800 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
10801 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
10802 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
10803 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
10804 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
10805 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
10806 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10807 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 10808 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10809 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
10810 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
10811 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
10812 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
10813 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
10814 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
10815 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, | |
10816 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
10817 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10818 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10819 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
10820 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
10821 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10822 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10823 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
10824 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10825 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
10826 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, |
10827 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
00b6c4e3 RD |
10828 | { "wxTreeCtrl_AssignStateImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, |
10829 | { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10830 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, |
10831 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10832 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
10833 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10834 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
10835 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
10836 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 10837 | { "wxTreeCtrl__setCallbackInfo", (PyCFunction) _wrap_wxTreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
10838 | { "wxTreeCtrl_Create", (PyCFunction) _wrap_wxTreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
10839 | { "new_wxPreTreeCtrl", (PyCFunction) _wrap_new_wxPreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10840 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, |
10841 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10842 | { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
ecc08ead | 10843 | { "wxTreeEvent_GetKeyEvent", (PyCFunction) _wrap_wxTreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10844 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, |
10845 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
10846 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
00b6c4e3 | 10847 | { "new_wxTreeEvent", (PyCFunction) _wrap_new_wxTreeEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10848 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, |
10849 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
10850 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
10851 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10852 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10853 | { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10854 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, |
10855 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
10856 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
00b6c4e3 RD |
10857 | { "wxTreeItemAttr_GetFont", (PyCFunction) _wrap_wxTreeItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, |
10858 | { "wxTreeItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10859 | { "wxTreeItemAttr_GetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10860 | { "wxTreeItemAttr_HasFont", (PyCFunction) _wrap_wxTreeItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
10861 | { "wxTreeItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10862 | { "wxTreeItemAttr_HasTextColour", (PyCFunction) _wrap_wxTreeItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10863 | { "wxTreeItemAttr_SetFont", (PyCFunction) _wrap_wxTreeItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10864 | { "wxTreeItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10865 | { "wxTreeItemAttr_SetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10866 | { "new_wxTreeItemAttr", (PyCFunction) _wrap_new_wxTreeItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
6d19860f RD |
10867 | { "wxListView_ClearColumnImage", (PyCFunction) _wrap_wxListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, |
10868 | { "wxListView_SetColumnImage", (PyCFunction) _wrap_wxListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
10869 | { "wxListView_IsSelected", (PyCFunction) _wrap_wxListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
10870 | { "wxListView_GetFirstSelected", (PyCFunction) _wrap_wxListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
10871 | { "wxListView_GetNextSelected", (PyCFunction) _wrap_wxListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
10872 | { "wxListView_GetFocusedItem", (PyCFunction) _wrap_wxListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
10873 | { "wxListView_Focus", (PyCFunction) _wrap_wxListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
10874 | { "wxListView_Select", (PyCFunction) _wrap_wxListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
10875 | { "wxListView_Create", (PyCFunction) _wrap_wxListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
10876 | { "new_wxPreListView", (PyCFunction) _wrap_new_wxPreListView, METH_VARARGS | METH_KEYWORDS }, | |
10877 | { "new_wxListView", (PyCFunction) _wrap_new_wxListView, METH_VARARGS | METH_KEYWORDS }, | |
dcd38683 | 10878 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, |
3bd1e033 RD |
10879 | { "wxListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_wxListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
10880 | { "wxListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10881 | { "wxListCtrl_GetItemTextColour", (PyCFunction) _wrap_wxListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10882 | { "wxListCtrl_SetItemTextColour", (PyCFunction) _wrap_wxListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10883 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, |
c7e7022c RD |
10884 | { "wxListCtrl_SetItemCount", (PyCFunction) _wrap_wxListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, |
10885 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
10886 | { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10887 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, |
10888 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
10889 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
10890 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10891 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10892 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, |
10893 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
10894 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
10895 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10896 | { "wxListCtrl_EndEditLabel", (PyCFunction) _wrap_wxListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, |
10897 | { "wxListCtrl_EditLabel", (PyCFunction) _wrap_wxListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
10898 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
10899 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
10900 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
10901 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
10902 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
10903 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
c7e7022c RD |
10904 | { "wxListCtrl_RefreshItems", (PyCFunction) _wrap_wxListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, |
10905 | { "wxListCtrl_RefreshItem", (PyCFunction) _wrap_wxListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
10906 | { "wxListCtrl_IsVirtual", (PyCFunction) _wrap_wxListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
10907 | { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
10908 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10909 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10910 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
10911 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
10912 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
10913 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
10914 | { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10915 | { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10916 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10917 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
10918 | { "wxListCtrl_GetColumnCount", (PyCFunction) _wrap_wxListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
10919 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10920 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
10921 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
10922 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
10923 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10924 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10925 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10926 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10927 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10928 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
10929 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
10930 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
10931 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
10932 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
10933 | { "wxListCtrl_GetEditControl", (PyCFunction) _wrap_wxListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
10934 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
10935 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
10936 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
10937 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10938 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10939 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10940 | { "wxListCtrl_SetForegroundColour", (PyCFunction) _wrap_wxListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 10941 | { "wxListCtrl__setCallbackInfo", (PyCFunction) _wrap_wxListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
10942 | { "wxListCtrl_Create", (PyCFunction) _wrap_wxListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
10943 | { "new_wxPreListCtrl", (PyCFunction) _wrap_new_wxPreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10944 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, |
6d19860f RD |
10945 | { "wxListEvent_GetCacheTo", (PyCFunction) _wrap_wxListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, |
10946 | { "wxListEvent_GetCacheFrom", (PyCFunction) _wrap_wxListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10947 | { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, |
10948 | { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
10949 | { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10950 | { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
10951 | { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10952 | { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10953 | { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10954 | { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
10955 | { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, |
10956 | { "wxListEvent_GetCode", (PyCFunction) _wrap_wxListEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10957 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10958 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10959 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10960 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
ebf4302c | 10961 | { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10962 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, |
6d19860f | 10963 | { "new_wxListEvent", (PyCFunction) _wrap_new_wxListEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10964 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, |
10965 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
10966 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
10967 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
10968 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
10969 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
10970 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
10971 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
10972 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
10973 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
10974 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
10975 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
10976 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
10977 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
10978 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
10979 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
10980 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
10981 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
10982 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
10983 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10984 | { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, |
10985 | { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10986 | { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10987 | { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
10988 | { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
10989 | { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
10990 | { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10991 | { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10992 | { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
10993 | { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10994 | { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
10995 | { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10996 | { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
10997 | { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
10998 | { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10999 | { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11000 | { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11001 | { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
11002 | { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11003 | { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
11004 | { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
11005 | { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
11006 | { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
11007 | { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
11008 | { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
11009 | { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
11010 | { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
11011 | { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
11012 | { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11013 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
11014 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
11015 | { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11016 | { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11017 | { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11018 | { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
11019 | { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11020 | { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11021 | { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11022 | { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11023 | { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11024 | { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
11025 | { NULL, NULL } |
11026 | }; | |
1d99702e RD |
11027 | #ifdef __cplusplus |
11028 | } | |
11029 | #endif | |
11030 | /* | |
11031 | * This table is used by the pointer type-checker | |
11032 | */ | |
11033 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 11034 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, |
1d99702e | 11035 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, |
1d99702e | 11036 | { "_signed_long","_long",0}, |
b1462dfa | 11037 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
11038 | { "_wxPrintQuality","_int",0}, |
11039 | { "_wxPrintQuality","_signed_int",0}, | |
11040 | { "_wxPrintQuality","_unsigned_int",0}, | |
11041 | { "_wxPrintQuality","_wxWindowID",0}, | |
11042 | { "_wxPrintQuality","_uint",0}, | |
11043 | { "_wxPrintQuality","_EBool",0}, | |
11044 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11045 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 11046 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, |
c368d904 | 11047 | { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
1d99702e | 11048 | { "_byte","_unsigned_char",0}, |
68320e40 | 11049 | { "_wxChoice","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxChoice}, |
1d99702e RD |
11050 | { "_long","_unsigned_long",0}, |
11051 | { "_long","_signed_long",0}, | |
b1462dfa | 11052 | { "_size_t","_wxCoord",0}, |
1d99702e | 11053 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11054 | { "_size_t","_time_t",0}, |
1d99702e RD |
11055 | { "_size_t","_unsigned_int",0}, |
11056 | { "_size_t","_int",0}, | |
11057 | { "_size_t","_wxWindowID",0}, | |
11058 | { "_size_t","_uint",0}, | |
b1462dfa | 11059 | { "_uint","_wxCoord",0}, |
1d99702e | 11060 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11061 | { "_uint","_time_t",0}, |
1d99702e RD |
11062 | { "_uint","_size_t",0}, |
11063 | { "_uint","_unsigned_int",0}, | |
11064 | { "_uint","_int",0}, | |
11065 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11066 | { "_wxChar","_char",0}, |
1d99702e | 11067 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, |
1d99702e | 11068 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, |
f6bcfd97 | 11069 | { "_char","_wxChar",0}, |
cdf14688 | 11070 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 11071 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
11072 | { "_EBool","_wxPrintQuality",0}, |
11073 | { "_EBool","_signed_int",0}, | |
11074 | { "_EBool","_int",0}, | |
11075 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 11076 | { "_unsigned_long","_long",0}, |
cdf14688 | 11077 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 11078 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
11079 | { "_signed_int","_wxPrintQuality",0}, |
11080 | { "_signed_int","_EBool",0}, | |
11081 | { "_signed_int","_wxWindowID",0}, | |
11082 | { "_signed_int","_int",0}, | |
1d99702e RD |
11083 | { "_WXTYPE","_short",0}, |
11084 | { "_WXTYPE","_signed_short",0}, | |
11085 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
11086 | { "_unsigned_short","_WXTYPE",0}, |
11087 | { "_unsigned_short","_short",0}, | |
68320e40 RD |
11088 | { "_wxObject","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxObject}, |
11089 | { "_wxObject","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxObject}, | |
11090 | { "_wxObject","_wxDirItemData",SwigwxDirItemDataTowxObject}, | |
9416aa89 | 11091 | { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, |
9416aa89 | 11092 | { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject}, |
9416aa89 | 11093 | { "_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, |
6d19860f | 11094 | { "_wxObject","_wxListView",SwigwxListViewTowxObject}, |
c7e7022c | 11095 | { "_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, |
9416aa89 | 11096 | { "_wxObject","_wxListEvent",SwigwxListEventTowxObject}, |
9416aa89 | 11097 | { "_wxObject","_wxListItem",SwigwxListItemTowxObject}, |
1d99702e RD |
11098 | { "_signed_short","_WXTYPE",0}, |
11099 | { "_signed_short","_short",0}, | |
1d99702e | 11100 | { "_unsigned_char","_byte",0}, |
68320e40 RD |
11101 | { "_wxControl","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControl}, |
11102 | { "_wxControl","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxControl}, | |
f6bcfd97 | 11103 | { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
6d19860f | 11104 | { "_wxControl","_wxListView",SwigwxListViewTowxControl}, |
c7e7022c | 11105 | { "_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, |
b1462dfa | 11106 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 11107 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 11108 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
11109 | { "_unsigned_int","_size_t",0}, |
11110 | { "_unsigned_int","_uint",0}, | |
11111 | { "_unsigned_int","_wxWindowID",0}, | |
11112 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
11113 | { "_short","_WXTYPE",0}, |
11114 | { "_short","_unsigned_short",0}, | |
11115 | { "_short","_signed_short",0}, | |
68320e40 | 11116 | { "_wxControlWithItems","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControlWithItems}, |
b1462dfa | 11117 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 11118 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 11119 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
11120 | { "_wxWindowID","_size_t",0}, |
11121 | { "_wxWindowID","_EBool",0}, | |
11122 | { "_wxWindowID","_uint",0}, | |
11123 | { "_wxWindowID","_int",0}, | |
11124 | { "_wxWindowID","_signed_int",0}, | |
11125 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 11126 | { "_int","_wxCoord",0}, |
1d99702e | 11127 | { "_int","_wxPrintQuality",0}, |
c368d904 | 11128 | { "_int","_time_t",0}, |
1d99702e RD |
11129 | { "_int","_size_t",0}, |
11130 | { "_int","_EBool",0}, | |
11131 | { "_int","_uint",0}, | |
11132 | { "_int","_wxWindowID",0}, | |
11133 | { "_int","_unsigned_int",0}, | |
11134 | { "_int","_signed_int",0}, | |
c368d904 RD |
11135 | { "_time_t","_wxCoord",0}, |
11136 | { "_time_t","_wxPrintQuality",0}, | |
11137 | { "_time_t","_unsigned_int",0}, | |
11138 | { "_time_t","_int",0}, | |
11139 | { "_time_t","_wxWindowID",0}, | |
11140 | { "_time_t","_uint",0}, | |
11141 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
11142 | { "_wxCoord","_int",0}, |
11143 | { "_wxCoord","_signed_int",0}, | |
11144 | { "_wxCoord","_unsigned_int",0}, | |
11145 | { "_wxCoord","_wxWindowID",0}, | |
11146 | { "_wxCoord","_uint",0}, | |
11147 | { "_wxCoord","_EBool",0}, | |
11148 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11149 | { "_wxCoord","_time_t",0}, |
b1462dfa | 11150 | { "_wxCoord","_wxPrintQuality",0}, |
6d19860f | 11151 | { "_wxPyListCtrl","_wxListView",SwigwxListViewTowxPyListCtrl}, |
68320e40 RD |
11152 | { "_wxEvtHandler","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxEvtHandler}, |
11153 | { "_wxEvtHandler","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxEvtHandler}, | |
f6bcfd97 | 11154 | { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
6d19860f | 11155 | { "_wxEvtHandler","_wxListView",SwigwxListViewTowxEvtHandler}, |
c7e7022c | 11156 | { "_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, |
68320e40 RD |
11157 | { "_wxWindow","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxWindow}, |
11158 | { "_wxWindow","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxWindow}, | |
f6bcfd97 | 11159 | { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
6d19860f | 11160 | { "_wxWindow","_wxListView",SwigwxListViewTowxWindow}, |
c7e7022c | 11161 | { "_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, |
1d99702e RD |
11162 | {0,0,0}}; |
11163 | ||
8ab979d7 RD |
11164 | static PyObject *SWIG_globals; |
11165 | #ifdef __cplusplus | |
11166 | extern "C" | |
11167 | #endif | |
1d99702e | 11168 | SWIGEXPORT(void) initcontrols2c() { |
8ab979d7 RD |
11169 | PyObject *m, *d; |
11170 | SWIG_globals = SWIG_newvarlink(); | |
11171 | m = Py_InitModule("controls2c", controls2cMethods); | |
11172 | d = PyModule_GetDict(m); | |
c7e7022c RD |
11173 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
11174 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
11175 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
11176 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
11177 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
11178 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
11179 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO)); | |
11180 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO)); | |
11181 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
11182 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
11183 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN)); | |
11184 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
11185 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK)); | |
11186 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
11187 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
11188 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
11189 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_CACHE_HINT)); | |
6d19860f RD |
11190 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); |
11191 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
11192 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
11193 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
d8200036 | 11194 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_FOCUSED)); |
c7e7022c RD |
11195 | PyDict_SetItemString(d,"wxLC_VRULES", PyInt_FromLong((long) wxLC_VRULES)); |
11196 | PyDict_SetItemString(d,"wxLC_HRULES", PyInt_FromLong((long) wxLC_HRULES)); | |
11197 | PyDict_SetItemString(d,"wxLC_ICON", PyInt_FromLong((long) wxLC_ICON)); | |
11198 | PyDict_SetItemString(d,"wxLC_SMALL_ICON", PyInt_FromLong((long) wxLC_SMALL_ICON)); | |
11199 | PyDict_SetItemString(d,"wxLC_LIST", PyInt_FromLong((long) wxLC_LIST)); | |
11200 | PyDict_SetItemString(d,"wxLC_REPORT", PyInt_FromLong((long) wxLC_REPORT)); | |
11201 | PyDict_SetItemString(d,"wxLC_ALIGN_TOP", PyInt_FromLong((long) wxLC_ALIGN_TOP)); | |
11202 | PyDict_SetItemString(d,"wxLC_ALIGN_LEFT", PyInt_FromLong((long) wxLC_ALIGN_LEFT)); | |
11203 | PyDict_SetItemString(d,"wxLC_AUTOARRANGE", PyInt_FromLong((long) wxLC_AUTOARRANGE)); | |
11204 | PyDict_SetItemString(d,"wxLC_VIRTUAL", PyInt_FromLong((long) wxLC_VIRTUAL)); | |
11205 | PyDict_SetItemString(d,"wxLC_EDIT_LABELS", PyInt_FromLong((long) wxLC_EDIT_LABELS)); | |
11206 | PyDict_SetItemString(d,"wxLC_NO_HEADER", PyInt_FromLong((long) wxLC_NO_HEADER)); | |
11207 | PyDict_SetItemString(d,"wxLC_NO_SORT_HEADER", PyInt_FromLong((long) wxLC_NO_SORT_HEADER)); | |
11208 | PyDict_SetItemString(d,"wxLC_SINGLE_SEL", PyInt_FromLong((long) wxLC_SINGLE_SEL)); | |
11209 | PyDict_SetItemString(d,"wxLC_SORT_ASCENDING", PyInt_FromLong((long) wxLC_SORT_ASCENDING)); | |
11210 | PyDict_SetItemString(d,"wxLC_SORT_DESCENDING", PyInt_FromLong((long) wxLC_SORT_DESCENDING)); | |
11211 | PyDict_SetItemString(d,"wxLC_MASK_TYPE", PyInt_FromLong((long) wxLC_MASK_TYPE)); | |
11212 | PyDict_SetItemString(d,"wxLC_MASK_ALIGN", PyInt_FromLong((long) wxLC_MASK_ALIGN)); | |
11213 | PyDict_SetItemString(d,"wxLC_MASK_SORT", PyInt_FromLong((long) wxLC_MASK_SORT)); | |
6d19860f | 11214 | PyDict_SetItemString(d,"wxLC_USER_TEXT", PyInt_FromLong((long) wxLC_USER_TEXT)); |
c7e7022c | 11215 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); |
af309447 RD |
11216 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); |
11217 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
11218 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
c7e7022c | 11219 | PyDict_SetItemString(d,"wxLIST_SET_ITEM", PyInt_FromLong((long) wxLIST_SET_ITEM)); |
af309447 RD |
11220 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); |
11221 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
11222 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); | |
11223 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
11224 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
11225 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
11226 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
11227 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
11228 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
11229 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
11230 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
11231 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
11232 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
11233 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
11234 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
11235 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
11236 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
11237 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
11238 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
11239 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
11240 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
11241 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
11242 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
11243 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
11244 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
11245 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
af309447 RD |
11246 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); |
11247 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
11248 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
11249 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
11250 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
11251 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
11252 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
11253 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
11254 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
f6bcfd97 BP |
11255 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); |
11256 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
11257 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
11258 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
00b6c4e3 RD |
11259 | PyDict_SetItemString(d,"wxTR_NO_BUTTONS", PyInt_FromLong((long) wxTR_NO_BUTTONS)); |
11260 | PyDict_SetItemString(d,"wxTR_HAS_BUTTONS", PyInt_FromLong((long) wxTR_HAS_BUTTONS)); | |
11261 | PyDict_SetItemString(d,"wxTR_TWIST_BUTTONS", PyInt_FromLong((long) wxTR_TWIST_BUTTONS)); | |
11262 | PyDict_SetItemString(d,"wxTR_NO_LINES", PyInt_FromLong((long) wxTR_NO_LINES)); | |
11263 | PyDict_SetItemString(d,"wxTR_MAC_BUTTONS", PyInt_FromLong((long) wxTR_MAC_BUTTONS)); | |
b5a5d647 | 11264 | PyDict_SetItemString(d,"wxTR_AQUA_BUTTONS", PyInt_FromLong((long) wxTR_AQUA_BUTTONS)); |
00b6c4e3 RD |
11265 | PyDict_SetItemString(d,"wxTR_SINGLE", PyInt_FromLong((long) wxTR_SINGLE)); |
11266 | PyDict_SetItemString(d,"wxTR_MULTIPLE", PyInt_FromLong((long) wxTR_MULTIPLE)); | |
11267 | PyDict_SetItemString(d,"wxTR_EXTENDED", PyInt_FromLong((long) wxTR_EXTENDED)); | |
b5a5d647 | 11268 | PyDict_SetItemString(d,"wxTR_FULL_ROW_HIGHLIGHT", PyInt_FromLong((long) wxTR_FULL_ROW_HIGHLIGHT)); |
00b6c4e3 RD |
11269 | PyDict_SetItemString(d,"wxTR_EDIT_LABELS", PyInt_FromLong((long) wxTR_EDIT_LABELS)); |
11270 | PyDict_SetItemString(d,"wxTR_LINES_AT_ROOT", PyInt_FromLong((long) wxTR_LINES_AT_ROOT)); | |
11271 | PyDict_SetItemString(d,"wxTR_HIDE_ROOT", PyInt_FromLong((long) wxTR_HIDE_ROOT)); | |
11272 | PyDict_SetItemString(d,"wxTR_ROW_LINES", PyInt_FromLong((long) wxTR_ROW_LINES)); | |
11273 | PyDict_SetItemString(d,"wxTR_HAS_VARIABLE_ROW_HEIGHT", PyInt_FromLong((long) wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
11274 | PyDict_SetItemString(d,"wxTR_DEFAULT_STYLE", PyInt_FromLong((long) wxTR_DEFAULT_STYLE)); | |
694759cf RD |
11275 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); |
11276 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
11277 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
11278 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
11279 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
164b735b RD |
11280 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); |
11281 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
11282 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
11283 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
11284 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
11285 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
11286 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
11287 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
11288 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
11289 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
11290 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
11291 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
11292 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
11293 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
1b62f00d RD |
11294 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
11295 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
11296 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
11297 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
11298 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
11299 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO)); | |
11300 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO)); | |
11301 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
11302 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
11303 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
11304 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
11305 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
11306 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
11307 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN)); | |
11308 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
11309 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
11310 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
d1679124 | 11311 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG)); |
68320e40 RD |
11312 | PyDict_SetItemString(d,"wxDIRCTRL_DIR_ONLY", PyInt_FromLong((long) wxDIRCTRL_DIR_ONLY)); |
11313 | PyDict_SetItemString(d,"wxDIRCTRL_SELECT_FIRST", PyInt_FromLong((long) wxDIRCTRL_SELECT_FIRST)); | |
11314 | PyDict_SetItemString(d,"wxDIRCTRL_SHOW_FILTERS", PyInt_FromLong((long) wxDIRCTRL_SHOW_FILTERS)); | |
11315 | PyDict_SetItemString(d,"wxDIRCTRL_3D_INTERNAL", PyInt_FromLong((long) wxDIRCTRL_3D_INTERNAL)); | |
7cdaed0b | 11316 | PyDict_SetItemString(d,"wxDIRCTRL_EDIT_LABELS", PyInt_FromLong((long) wxDIRCTRL_EDIT_LABELS)); |
db0ff83e RD |
11317 | PyDict_SetItemString(d,"wxID_TREECTRL", PyInt_FromLong((long) wxID_TREECTRL)); |
11318 | PyDict_SetItemString(d,"wxID_FILTERLISTCTRL", PyInt_FromLong((long) wxID_FILTERLISTCTRL)); | |
9416aa89 | 11319 | |
a3fbed81 | 11320 | // Map renamed classes back to their common name for OOR |
9416aa89 RD |
11321 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); |
11322 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
a3fbed81 | 11323 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); |
1d99702e RD |
11324 | { |
11325 | int i; | |
11326 | for (i = 0; _swig_mapping[i].n1; i++) | |
11327 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11328 | } | |
8ab979d7 | 11329 | } |