]>
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 RD |
7782 | wxTreeItemId * _arg1; |
7783 | long * _arg2; | |
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; | |
efc5f224 | 7792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO: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 | } | |
d5c9047a RD |
7808 | { |
7809 | temp = (long) PyInt_AsLong(_obj2); | |
7810 | _arg2 = &temp; | |
7811 | } | |
cf694132 | 7812 | { |
4268f798 | 7813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7814 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); |
cf694132 | 7815 | |
4268f798 | 7816 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7817 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7818 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
7819 | _resultobj = Py_BuildValue("s",_ptemp); |
7820 | { | |
7821 | PyObject *o; | |
7822 | o = PyInt_FromLong((long) (*_arg2)); | |
7823 | _resultobj = t_output_helper(_resultobj, o); | |
7824 | } | |
8ab979d7 RD |
7825 | return _resultobj; |
7826 | } | |
7827 | ||
d5c9047a | 7828 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) |
efc5f224 | 7829 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7830 | PyObject * _resultobj; |
d5c9047a | 7831 | wxTreeItemId * _result; |
f6bcfd97 | 7832 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7833 | wxTreeItemId * _arg1; |
7834 | long * _arg2; | |
1d99702e RD |
7835 | PyObject * _argo0 = 0; |
7836 | PyObject * _argo1 = 0; | |
d5c9047a | 7837 | long temp; |
8ab979d7 | 7838 | PyObject * _obj2 = 0; |
efc5f224 | 7839 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 7840 | char _ptemp[128]; |
8ab979d7 RD |
7841 | |
7842 | self = self; | |
efc5f224 | 7843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7844 | return NULL; |
1d99702e RD |
7845 | if (_argo0) { |
7846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7849 | return NULL; |
7850 | } | |
7851 | } | |
1d99702e RD |
7852 | if (_argo1) { |
7853 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7854 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); |
8ab979d7 | 7856 | return NULL; |
d5c9047a | 7857 | } |
8ab979d7 | 7858 | } |
d5c9047a RD |
7859 | { |
7860 | temp = (long) PyInt_AsLong(_obj2); | |
7861 | _arg2 = &temp; | |
8ab979d7 | 7862 | } |
cf694132 | 7863 | { |
4268f798 | 7864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7865 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); |
cf694132 | 7866 | |
4268f798 | 7867 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7868 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7869 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7870 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 | 7871 | { |
d5c9047a RD |
7872 | PyObject *o; |
7873 | o = PyInt_FromLong((long) (*_arg2)); | |
7874 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
7875 | } |
7876 | return _resultobj; | |
7877 | } | |
7878 | ||
d5c9047a | 7879 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) |
efc5f224 | 7880 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7881 | PyObject * _resultobj; |
d5c9047a | 7882 | wxTreeItemId * _result; |
f6bcfd97 | 7883 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7884 | wxTreeItemId * _arg1; |
1d99702e RD |
7885 | PyObject * _argo0 = 0; |
7886 | PyObject * _argo1 = 0; | |
efc5f224 | 7887 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7888 | char _ptemp[128]; |
8ab979d7 RD |
7889 | |
7890 | self = self; | |
efc5f224 | 7891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7892 | return NULL; |
1d99702e RD |
7893 | if (_argo0) { |
7894 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7895 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7897 | return NULL; |
7898 | } | |
7899 | } | |
1d99702e RD |
7900 | if (_argo1) { |
7901 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7902 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); |
7904 | return NULL; | |
7905 | } | |
7906 | } | |
cf694132 | 7907 | { |
4268f798 | 7908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7909 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); |
cf694132 | 7910 | |
4268f798 | 7911 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7912 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7913 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7914 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7915 | return _resultobj; |
7916 | } | |
7917 | ||
d5c9047a | 7918 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) |
efc5f224 | 7919 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7920 | PyObject * _resultobj; |
d5c9047a | 7921 | wxTreeItemId * _result; |
f6bcfd97 | 7922 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7923 | wxTreeItemId * _arg1; |
1d99702e RD |
7924 | PyObject * _argo0 = 0; |
7925 | PyObject * _argo1 = 0; | |
efc5f224 | 7926 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7927 | char _ptemp[128]; |
8ab979d7 RD |
7928 | |
7929 | self = self; | |
efc5f224 | 7930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7931 | return NULL; |
1d99702e RD |
7932 | if (_argo0) { |
7933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7936 | return NULL; |
7937 | } | |
7938 | } | |
1d99702e RD |
7939 | if (_argo1) { |
7940 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7941 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); |
7943 | return NULL; | |
7944 | } | |
7945 | } | |
cf694132 | 7946 | { |
4268f798 | 7947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7948 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); |
cf694132 | 7949 | |
4268f798 | 7950 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7951 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7952 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7953 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7954 | return _resultobj; |
7955 | } | |
7956 | ||
d5c9047a | 7957 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) |
efc5f224 | 7958 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7959 | PyObject * _resultobj; |
d5c9047a | 7960 | wxTreeItemId * _result; |
f6bcfd97 | 7961 | wxPyTreeCtrl * _arg0; |
1d99702e | 7962 | PyObject * _argo0 = 0; |
efc5f224 | 7963 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7964 | char _ptemp[128]; |
8ab979d7 RD |
7965 | |
7966 | self = self; | |
efc5f224 | 7967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) |
8ab979d7 | 7968 | return NULL; |
1d99702e RD |
7969 | if (_argo0) { |
7970 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7971 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7973 | return NULL; |
7974 | } | |
7975 | } | |
cf694132 | 7976 | { |
4268f798 | 7977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7978 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); |
cf694132 | 7979 | |
4268f798 | 7980 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7981 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7982 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7983 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7984 | return _resultobj; |
7985 | } | |
7986 | ||
d5c9047a | 7987 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) |
efc5f224 | 7988 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7989 | PyObject * _resultobj; |
d5c9047a | 7990 | wxTreeItemId * _result; |
f6bcfd97 | 7991 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7992 | wxTreeItemId * _arg1; |
1d99702e RD |
7993 | PyObject * _argo0 = 0; |
7994 | PyObject * _argo1 = 0; | |
efc5f224 | 7995 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7996 | char _ptemp[128]; |
8ab979d7 RD |
7997 | |
7998 | self = self; | |
efc5f224 | 7999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8000 | return NULL; |
1d99702e RD |
8001 | if (_argo0) { |
8002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8005 | return NULL; |
8006 | } | |
8007 | } | |
1d99702e RD |
8008 | if (_argo1) { |
8009 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8010 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); |
8012 | return NULL; | |
8013 | } | |
8014 | } | |
cf694132 | 8015 | { |
4268f798 | 8016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8017 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); |
cf694132 | 8018 | |
4268f798 | 8019 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8020 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8021 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8022 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8023 | return _resultobj; |
8024 | } | |
8025 | ||
d5c9047a | 8026 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) |
efc5f224 | 8027 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8028 | PyObject * _resultobj; |
d5c9047a | 8029 | wxTreeItemId * _result; |
f6bcfd97 | 8030 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8031 | wxTreeItemId * _arg1; |
1d99702e RD |
8032 | PyObject * _argo0 = 0; |
8033 | PyObject * _argo1 = 0; | |
efc5f224 | 8034 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8035 | char _ptemp[128]; |
8ab979d7 RD |
8036 | |
8037 | self = self; | |
efc5f224 | 8038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8039 | return NULL; |
1d99702e RD |
8040 | if (_argo0) { |
8041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8044 | return NULL; |
8045 | } | |
8046 | } | |
1d99702e RD |
8047 | if (_argo1) { |
8048 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8049 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 8050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8051 | return NULL; |
8052 | } | |
8053 | } | |
cf694132 | 8054 | { |
4268f798 | 8055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8056 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); |
cf694132 | 8057 | |
4268f798 | 8058 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8059 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8060 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8061 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8062 | return _resultobj; |
8063 | } | |
8064 | ||
d426c97e RD |
8065 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) |
8066 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8067 | PyObject * _resultobj; | |
8068 | wxTreeItemId * _result; | |
f6bcfd97 | 8069 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8070 | wxTreeItemId * _arg1; |
8071 | PyObject * _argo0 = 0; | |
8072 | PyObject * _argo1 = 0; | |
8073 | char *_kwnames[] = { "self","item", NULL }; | |
8074 | char _ptemp[128]; | |
8075 | ||
8076 | self = self; | |
8077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
8078 | return NULL; | |
8079 | if (_argo0) { | |
8080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8083 | return NULL; |
8084 | } | |
8085 | } | |
8086 | if (_argo1) { | |
8087 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8088 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); | |
8090 | return NULL; | |
8091 | } | |
8092 | } | |
8093 | { | |
4268f798 | 8094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8095 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); |
d426c97e | 8096 | |
4268f798 | 8097 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8098 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8099 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8100 | _resultobj = Py_BuildValue("s",_ptemp); | |
8101 | return _resultobj; | |
8102 | } | |
8103 | ||
d5c9047a | 8104 | #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 8105 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8106 | PyObject * _resultobj; |
d5c9047a | 8107 | wxTreeItemId * _result; |
f6bcfd97 | 8108 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8109 | wxString * _arg1; |
1d99702e RD |
8110 | int _arg2 = (int ) -1; |
8111 | int _arg3 = (int ) -1; | |
8112 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
8113 | PyObject * _argo0 = 0; | |
d5c9047a | 8114 | PyObject * _obj1 = 0; |
1d99702e | 8115 | PyObject * _argo4 = 0; |
efc5f224 | 8116 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; |
d5c9047a | 8117 | char _ptemp[128]; |
8ab979d7 RD |
8118 | |
8119 | self = self; | |
efc5f224 | 8120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) |
8ab979d7 | 8121 | return NULL; |
1d99702e RD |
8122 | if (_argo0) { |
8123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8126 | return NULL; |
8127 | } | |
8128 | } | |
d5c9047a | 8129 | { |
c8bc7bb8 RD |
8130 | _arg1 = wxString_in_helper(_obj1); |
8131 | if (_arg1 == NULL) | |
185d7c3e | 8132 | return NULL; |
d5c9047a | 8133 | } |
1d99702e RD |
8134 | if (_argo4) { |
8135 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
8136 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
cf694132 | 8137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
8138 | return NULL; |
8139 | } | |
8140 | } | |
cf694132 | 8141 | { |
4268f798 | 8142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8143 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); |
cf694132 | 8144 | |
4268f798 | 8145 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8146 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8147 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8148 | _resultobj = Py_BuildValue("s",_ptemp); |
8149 | { | |
8150 | if (_obj1) | |
8151 | delete _arg1; | |
8152 | } | |
8ab979d7 RD |
8153 | return _resultobj; |
8154 | } | |
8155 | ||
d5c9047a | 8156 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8157 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8158 | PyObject * _resultobj; |
d5c9047a | 8159 | wxTreeItemId * _result; |
f6bcfd97 | 8160 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8161 | wxTreeItemId * _arg1; |
8162 | wxString * _arg2; | |
1d99702e RD |
8163 | int _arg3 = (int ) -1; |
8164 | int _arg4 = (int ) -1; | |
8165 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8166 | PyObject * _argo0 = 0; | |
8167 | PyObject * _argo1 = 0; | |
d5c9047a | 8168 | PyObject * _obj2 = 0; |
1d99702e | 8169 | PyObject * _argo5 = 0; |
efc5f224 | 8170 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8171 | char _ptemp[128]; |
8ab979d7 RD |
8172 | |
8173 | self = self; | |
efc5f224 | 8174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8175 | return NULL; |
1d99702e RD |
8176 | if (_argo0) { |
8177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8180 | return NULL; |
8181 | } | |
8182 | } | |
1d99702e RD |
8183 | if (_argo1) { |
8184 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8185 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); |
8187 | return NULL; | |
8188 | } | |
8189 | } | |
8190 | { | |
c8bc7bb8 RD |
8191 | _arg2 = wxString_in_helper(_obj2); |
8192 | if (_arg2 == NULL) | |
185d7c3e | 8193 | return NULL; |
d5c9047a | 8194 | } |
1d99702e RD |
8195 | if (_argo5) { |
8196 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8197 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8199 | return NULL; |
8200 | } | |
8201 | } | |
cf694132 | 8202 | { |
4268f798 | 8203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8204 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); |
cf694132 | 8205 | |
4268f798 | 8206 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8207 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8208 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8209 | _resultobj = Py_BuildValue("s",_ptemp); |
8210 | { | |
8211 | if (_obj2) | |
8212 | delete _arg2; | |
8213 | } | |
8ab979d7 RD |
8214 | return _resultobj; |
8215 | } | |
8216 | ||
d5c9047a | 8217 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 8218 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8219 | PyObject * _resultobj; |
d5c9047a | 8220 | wxTreeItemId * _result; |
f6bcfd97 | 8221 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8222 | wxTreeItemId * _arg1; |
8223 | wxTreeItemId * _arg2; | |
8224 | wxString * _arg3; | |
1d99702e RD |
8225 | int _arg4 = (int ) -1; |
8226 | int _arg5 = (int ) -1; | |
8227 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
8228 | PyObject * _argo0 = 0; | |
8229 | PyObject * _argo1 = 0; | |
8230 | PyObject * _argo2 = 0; | |
d5c9047a | 8231 | PyObject * _obj3 = 0; |
1d99702e | 8232 | PyObject * _argo6 = 0; |
efc5f224 | 8233 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; |
d5c9047a | 8234 | char _ptemp[128]; |
8ab979d7 RD |
8235 | |
8236 | self = self; | |
efc5f224 | 8237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) |
8ab979d7 | 8238 | return NULL; |
1d99702e RD |
8239 | if (_argo0) { |
8240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8243 | return NULL; |
8244 | } | |
8245 | } | |
1d99702e RD |
8246 | if (_argo1) { |
8247 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8248 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8250 | return NULL; | |
8251 | } | |
8252 | } | |
1d99702e RD |
8253 | if (_argo2) { |
8254 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8255 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8257 | return NULL; | |
8258 | } | |
8259 | } | |
8260 | { | |
c8bc7bb8 RD |
8261 | _arg3 = wxString_in_helper(_obj3); |
8262 | if (_arg3 == NULL) | |
185d7c3e | 8263 | return NULL; |
d5c9047a | 8264 | } |
1d99702e RD |
8265 | if (_argo6) { |
8266 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8267 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
cf694132 | 8268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8269 | return NULL; |
8270 | } | |
8271 | } | |
cf694132 | 8272 | { |
4268f798 | 8273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8274 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); |
cf694132 | 8275 | |
4268f798 | 8276 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8277 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8278 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8279 | _resultobj = Py_BuildValue("s",_ptemp); |
8280 | { | |
8281 | if (_obj3) | |
8282 | delete _arg3; | |
8283 | } | |
8ab979d7 RD |
8284 | return _resultobj; |
8285 | } | |
8286 | ||
f6bcfd97 BP |
8287 | #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
8288 | static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8289 | PyObject * _resultobj; | |
8290 | wxTreeItemId * _result; | |
8291 | wxPyTreeCtrl * _arg0; | |
8292 | wxTreeItemId * _arg1; | |
8293 | size_t _arg2; | |
8294 | wxString * _arg3; | |
8295 | int _arg4 = (int ) -1; | |
8296 | int _arg5 = (int ) -1; | |
3999941a | 8297 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; |
f6bcfd97 BP |
8298 | PyObject * _argo0 = 0; |
8299 | PyObject * _argo1 = 0; | |
8300 | PyObject * _obj3 = 0; | |
8301 | PyObject * _argo6 = 0; | |
8302 | char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL }; | |
8303 | char _ptemp[128]; | |
8304 | ||
8305 | self = self; | |
8306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
8307 | return NULL; | |
8308 | if (_argo0) { | |
8309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p."); | |
8312 | return NULL; | |
8313 | } | |
8314 | } | |
8315 | if (_argo1) { | |
8316 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8317 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p."); | |
8319 | return NULL; | |
8320 | } | |
8321 | } | |
8322 | { | |
c8bc7bb8 RD |
8323 | _arg3 = wxString_in_helper(_obj3); |
8324 | if (_arg3 == NULL) | |
185d7c3e | 8325 | return NULL; |
f6bcfd97 BP |
8326 | } |
8327 | if (_argo6) { | |
8328 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
3999941a RD |
8329 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { |
8330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeItemData_p."); | |
f6bcfd97 BP |
8331 | return NULL; |
8332 | } | |
8333 | } | |
8334 | { | |
4268f798 | 8335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8336 | _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6)); |
f6bcfd97 | 8337 | |
4268f798 | 8338 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8339 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
8340 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8341 | _resultobj = Py_BuildValue("s",_ptemp); | |
8342 | { | |
8343 | if (_obj3) | |
8344 | delete _arg3; | |
8345 | } | |
8346 | return _resultobj; | |
8347 | } | |
8348 | ||
d5c9047a | 8349 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8350 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8351 | PyObject * _resultobj; |
d5c9047a | 8352 | wxTreeItemId * _result; |
f6bcfd97 | 8353 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8354 | wxTreeItemId * _arg1; |
8ab979d7 | 8355 | wxString * _arg2; |
1d99702e RD |
8356 | int _arg3 = (int ) -1; |
8357 | int _arg4 = (int ) -1; | |
8358 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8359 | PyObject * _argo0 = 0; | |
8360 | PyObject * _argo1 = 0; | |
8ab979d7 | 8361 | PyObject * _obj2 = 0; |
1d99702e | 8362 | PyObject * _argo5 = 0; |
efc5f224 | 8363 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8364 | char _ptemp[128]; |
8ab979d7 RD |
8365 | |
8366 | self = self; | |
efc5f224 | 8367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8368 | return NULL; |
1d99702e RD |
8369 | if (_argo0) { |
8370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8373 | return NULL; |
8374 | } | |
8375 | } | |
1d99702e RD |
8376 | if (_argo1) { |
8377 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8378 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 8379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8380 | return NULL; |
8381 | } | |
8382 | } | |
8383 | { | |
c8bc7bb8 RD |
8384 | _arg2 = wxString_in_helper(_obj2); |
8385 | if (_arg2 == NULL) | |
185d7c3e | 8386 | return NULL; |
8ab979d7 | 8387 | } |
1d99702e RD |
8388 | if (_argo5) { |
8389 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8390 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8392 | return NULL; |
8393 | } | |
8394 | } | |
cf694132 | 8395 | { |
4268f798 | 8396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8397 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); |
cf694132 | 8398 | |
4268f798 | 8399 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8400 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8401 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8402 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8403 | { |
8404 | if (_obj2) | |
8405 | delete _arg2; | |
8406 | } | |
8407 | return _resultobj; | |
8408 | } | |
8409 | ||
d5c9047a | 8410 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
efc5f224 | 8411 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8412 | PyObject * _resultobj; |
f6bcfd97 | 8413 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8414 | wxTreeItemId * _arg1; |
1d99702e RD |
8415 | PyObject * _argo0 = 0; |
8416 | PyObject * _argo1 = 0; | |
efc5f224 | 8417 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
8418 | |
8419 | self = self; | |
efc5f224 | 8420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8421 | return NULL; |
1d99702e RD |
8422 | if (_argo0) { |
8423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8426 | return NULL; |
8427 | } | |
8428 | } | |
1d99702e RD |
8429 | if (_argo1) { |
8430 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8431 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); |
8433 | return NULL; | |
8434 | } | |
8435 | } | |
cf694132 | 8436 | { |
4268f798 | 8437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8438 | wxTreeCtrl_Delete(_arg0,*_arg1); |
cf694132 | 8439 | |
4268f798 | 8440 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8441 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8442 | } Py_INCREF(Py_None); |
d5c9047a RD |
8443 | _resultobj = Py_None; |
8444 | return _resultobj; | |
8445 | } | |
8446 | ||
08127323 | 8447 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) |
efc5f224 | 8448 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 8449 | PyObject * _resultobj; |
f6bcfd97 | 8450 | wxPyTreeCtrl * _arg0; |
08127323 | 8451 | wxTreeItemId * _arg1; |
1d99702e RD |
8452 | PyObject * _argo0 = 0; |
8453 | PyObject * _argo1 = 0; | |
efc5f224 | 8454 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
8455 | |
8456 | self = self; | |
efc5f224 | 8457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) |
08127323 | 8458 | return NULL; |
1d99702e RD |
8459 | if (_argo0) { |
8460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
8463 | return NULL; |
8464 | } | |
8465 | } | |
1d99702e RD |
8466 | if (_argo1) { |
8467 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8468 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
08127323 RD |
8469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); |
8470 | return NULL; | |
8471 | } | |
8472 | } | |
cf694132 | 8473 | { |
4268f798 | 8474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8475 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); |
cf694132 | 8476 | |
4268f798 | 8477 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8478 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8479 | } Py_INCREF(Py_None); |
08127323 RD |
8480 | _resultobj = Py_None; |
8481 | return _resultobj; | |
8482 | } | |
8483 | ||
d5c9047a | 8484 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) |
efc5f224 | 8485 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8486 | PyObject * _resultobj; |
f6bcfd97 | 8487 | wxPyTreeCtrl * _arg0; |
1d99702e | 8488 | PyObject * _argo0 = 0; |
efc5f224 | 8489 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8490 | |
8491 | self = self; | |
efc5f224 | 8492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) |
d5c9047a | 8493 | return NULL; |
1d99702e RD |
8494 | if (_argo0) { |
8495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8498 | return NULL; |
8499 | } | |
8500 | } | |
cf694132 | 8501 | { |
4268f798 | 8502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8503 | wxTreeCtrl_DeleteAllItems(_arg0); |
cf694132 | 8504 | |
4268f798 | 8505 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8506 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8507 | } Py_INCREF(Py_None); |
d5c9047a RD |
8508 | _resultobj = Py_None; |
8509 | return _resultobj; | |
8510 | } | |
8511 | ||
8512 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
efc5f224 | 8513 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8514 | PyObject * _resultobj; |
f6bcfd97 | 8515 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8516 | wxTreeItemId * _arg1; |
1d99702e RD |
8517 | PyObject * _argo0 = 0; |
8518 | PyObject * _argo1 = 0; | |
efc5f224 | 8519 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8520 | |
8521 | self = self; | |
efc5f224 | 8522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8523 | return NULL; |
1d99702e RD |
8524 | if (_argo0) { |
8525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8528 | return NULL; |
8529 | } | |
8530 | } | |
1d99702e RD |
8531 | if (_argo1) { |
8532 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8533 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); |
8535 | return NULL; | |
8536 | } | |
8537 | } | |
cf694132 | 8538 | { |
4268f798 | 8539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8540 | wxTreeCtrl_Expand(_arg0,*_arg1); |
cf694132 | 8541 | |
4268f798 | 8542 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8543 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8544 | } Py_INCREF(Py_None); |
d5c9047a RD |
8545 | _resultobj = Py_None; |
8546 | return _resultobj; | |
8547 | } | |
8548 | ||
8549 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
efc5f224 | 8550 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8551 | PyObject * _resultobj; |
f6bcfd97 | 8552 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8553 | wxTreeItemId * _arg1; |
1d99702e RD |
8554 | PyObject * _argo0 = 0; |
8555 | PyObject * _argo1 = 0; | |
efc5f224 | 8556 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8557 | |
8558 | self = self; | |
efc5f224 | 8559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8560 | return NULL; |
1d99702e RD |
8561 | if (_argo0) { |
8562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8565 | return NULL; |
8566 | } | |
8567 | } | |
1d99702e RD |
8568 | if (_argo1) { |
8569 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8570 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p."); |
8572 | return NULL; | |
8573 | } | |
8574 | } | |
cf694132 | 8575 | { |
4268f798 | 8576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8577 | wxTreeCtrl_Collapse(_arg0,*_arg1); |
cf694132 | 8578 | |
4268f798 | 8579 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8580 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8581 | } Py_INCREF(Py_None); |
d5c9047a RD |
8582 | _resultobj = Py_None; |
8583 | return _resultobj; | |
8584 | } | |
8585 | ||
8586 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
efc5f224 | 8587 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8588 | PyObject * _resultobj; |
f6bcfd97 | 8589 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8590 | wxTreeItemId * _arg1; |
1d99702e RD |
8591 | PyObject * _argo0 = 0; |
8592 | PyObject * _argo1 = 0; | |
efc5f224 | 8593 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8594 | |
8595 | self = self; | |
efc5f224 | 8596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8597 | return NULL; |
1d99702e RD |
8598 | if (_argo0) { |
8599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8602 | return NULL; |
8603 | } | |
8604 | } | |
1d99702e RD |
8605 | if (_argo1) { |
8606 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8607 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); |
8609 | return NULL; | |
8610 | } | |
8611 | } | |
cf694132 | 8612 | { |
4268f798 | 8613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8614 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); |
cf694132 | 8615 | |
4268f798 | 8616 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8617 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8618 | } Py_INCREF(Py_None); |
d5c9047a RD |
8619 | _resultobj = Py_None; |
8620 | return _resultobj; | |
8621 | } | |
8622 | ||
8623 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
efc5f224 | 8624 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8625 | PyObject * _resultobj; |
f6bcfd97 | 8626 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8627 | wxTreeItemId * _arg1; |
1d99702e RD |
8628 | PyObject * _argo0 = 0; |
8629 | PyObject * _argo1 = 0; | |
efc5f224 | 8630 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8631 | |
8632 | self = self; | |
efc5f224 | 8633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8634 | return NULL; |
1d99702e RD |
8635 | if (_argo0) { |
8636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8639 | return NULL; |
8640 | } | |
8641 | } | |
1d99702e RD |
8642 | if (_argo1) { |
8643 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8644 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); |
8646 | return NULL; | |
8647 | } | |
8648 | } | |
cf694132 | 8649 | { |
4268f798 | 8650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8651 | wxTreeCtrl_Toggle(_arg0,*_arg1); |
cf694132 | 8652 | |
4268f798 | 8653 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8654 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8655 | } Py_INCREF(Py_None); |
d5c9047a RD |
8656 | _resultobj = Py_None; |
8657 | return _resultobj; | |
8658 | } | |
8659 | ||
8660 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
efc5f224 | 8661 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8662 | PyObject * _resultobj; |
f6bcfd97 | 8663 | wxPyTreeCtrl * _arg0; |
1d99702e | 8664 | PyObject * _argo0 = 0; |
efc5f224 | 8665 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8666 | |
8667 | self = self; | |
efc5f224 | 8668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) |
d5c9047a | 8669 | return NULL; |
1d99702e RD |
8670 | if (_argo0) { |
8671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8674 | return NULL; |
8675 | } | |
8676 | } | |
cf694132 | 8677 | { |
4268f798 | 8678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8679 | wxTreeCtrl_Unselect(_arg0); |
cf694132 | 8680 | |
4268f798 | 8681 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8682 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8683 | } Py_INCREF(Py_None); |
d5c9047a RD |
8684 | _resultobj = Py_None; |
8685 | return _resultobj; | |
8686 | } | |
8687 | ||
8bf5d46e | 8688 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) |
efc5f224 | 8689 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e | 8690 | PyObject * _resultobj; |
f6bcfd97 | 8691 | wxPyTreeCtrl * _arg0; |
1d99702e | 8692 | PyObject * _argo0 = 0; |
efc5f224 | 8693 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
8694 | |
8695 | self = self; | |
efc5f224 | 8696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) |
8bf5d46e | 8697 | return NULL; |
1d99702e RD |
8698 | if (_argo0) { |
8699 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8700 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p."); | |
8bf5d46e RD |
8702 | return NULL; |
8703 | } | |
8704 | } | |
8705 | { | |
4268f798 | 8706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8707 | wxTreeCtrl_UnselectAll(_arg0); |
8bf5d46e | 8708 | |
4268f798 | 8709 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8710 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
8711 | } Py_INCREF(Py_None); |
8712 | _resultobj = Py_None; | |
8713 | return _resultobj; | |
8714 | } | |
8715 | ||
d5c9047a | 8716 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) |
efc5f224 | 8717 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8718 | PyObject * _resultobj; |
f6bcfd97 | 8719 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8720 | wxTreeItemId * _arg1; |
1d99702e RD |
8721 | PyObject * _argo0 = 0; |
8722 | PyObject * _argo1 = 0; | |
efc5f224 | 8723 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8724 | |
8725 | self = self; | |
efc5f224 | 8726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8727 | return NULL; |
1d99702e RD |
8728 | if (_argo0) { |
8729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8732 | return NULL; |
8733 | } | |
8734 | } | |
1d99702e RD |
8735 | if (_argo1) { |
8736 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8737 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); |
8739 | return NULL; | |
8740 | } | |
8741 | } | |
cf694132 | 8742 | { |
4268f798 | 8743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8744 | wxTreeCtrl_SelectItem(_arg0,*_arg1); |
cf694132 | 8745 | |
4268f798 | 8746 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8747 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8748 | } Py_INCREF(Py_None); |
d5c9047a RD |
8749 | _resultobj = Py_None; |
8750 | return _resultobj; | |
8751 | } | |
8752 | ||
8753 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
efc5f224 | 8754 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8755 | PyObject * _resultobj; |
f6bcfd97 | 8756 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8757 | wxTreeItemId * _arg1; |
1d99702e RD |
8758 | PyObject * _argo0 = 0; |
8759 | PyObject * _argo1 = 0; | |
efc5f224 | 8760 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8761 | |
8762 | self = self; | |
efc5f224 | 8763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8764 | return NULL; |
1d99702e RD |
8765 | if (_argo0) { |
8766 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8767 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8769 | return NULL; |
8770 | } | |
8771 | } | |
1d99702e RD |
8772 | if (_argo1) { |
8773 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8774 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); |
8776 | return NULL; | |
8777 | } | |
8778 | } | |
cf694132 | 8779 | { |
4268f798 | 8780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8781 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); |
cf694132 | 8782 | |
4268f798 | 8783 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8784 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8785 | } Py_INCREF(Py_None); |
d5c9047a RD |
8786 | _resultobj = Py_None; |
8787 | return _resultobj; | |
8788 | } | |
8789 | ||
8790 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
efc5f224 | 8791 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8792 | PyObject * _resultobj; |
f6bcfd97 | 8793 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8794 | wxTreeItemId * _arg1; |
1d99702e RD |
8795 | PyObject * _argo0 = 0; |
8796 | PyObject * _argo1 = 0; | |
efc5f224 | 8797 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8798 | |
8799 | self = self; | |
efc5f224 | 8800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8801 | return NULL; |
1d99702e RD |
8802 | if (_argo0) { |
8803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8806 | return NULL; |
8807 | } | |
8808 | } | |
1d99702e RD |
8809 | if (_argo1) { |
8810 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8811 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); |
8813 | return NULL; | |
8814 | } | |
8815 | } | |
cf694132 | 8816 | { |
4268f798 | 8817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8818 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); |
cf694132 | 8819 | |
4268f798 | 8820 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8821 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8822 | } Py_INCREF(Py_None); |
d5c9047a RD |
8823 | _resultobj = Py_None; |
8824 | return _resultobj; | |
8825 | } | |
8826 | ||
8827 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
efc5f224 | 8828 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
8829 | PyObject * _resultobj; |
8830 | wxTextCtrl * _result; | |
f6bcfd97 | 8831 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8832 | wxTreeItemId * _arg1; |
1d99702e RD |
8833 | PyObject * _argo0 = 0; |
8834 | PyObject * _argo1 = 0; | |
efc5f224 | 8835 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8836 | |
8837 | self = self; | |
efc5f224 | 8838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8839 | return NULL; |
1d99702e RD |
8840 | if (_argo0) { |
8841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8844 | return NULL; |
8845 | } | |
8846 | } | |
1d99702e RD |
8847 | if (_argo1) { |
8848 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8849 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); |
8851 | return NULL; | |
8852 | } | |
8853 | } | |
cf694132 | 8854 | { |
4268f798 | 8855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8856 | _result = (wxTextCtrl *)wxTreeCtrl_EditLabel(_arg0,*_arg1); |
cf694132 | 8857 | |
4268f798 | 8858 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8859 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8860 | }{ _resultobj = wxPyMake_wxObject(_result); } |
d5c9047a RD |
8861 | return _resultobj; |
8862 | } | |
8863 | ||
8864 | #define wxTreeCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) | |
efc5f224 | 8865 | static PyObject *_wrap_wxTreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
8866 | PyObject * _resultobj; |
8867 | wxTextCtrl * _result; | |
f6bcfd97 | 8868 | wxPyTreeCtrl * _arg0; |
1d99702e | 8869 | PyObject * _argo0 = 0; |
efc5f224 | 8870 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8871 | |
8872 | self = self; | |
efc5f224 | 8873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetEditControl",_kwnames,&_argo0)) |
d5c9047a | 8874 | return NULL; |
1d99702e RD |
8875 | if (_argo0) { |
8876 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8877 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetEditControl. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8879 | return NULL; |
8880 | } | |
8881 | } | |
cf694132 | 8882 | { |
4268f798 | 8883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8884 | _result = (wxTextCtrl *)wxTreeCtrl_GetEditControl(_arg0); |
cf694132 | 8885 | |
4268f798 | 8886 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8887 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8888 | }{ _resultobj = wxPyMake_wxObject(_result); } |
d5c9047a RD |
8889 | return _resultobj; |
8890 | } | |
8891 | ||
8892 | #define wxTreeCtrl_EndEditLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->EndEditLabel(_swigarg0,_swigarg1)) | |
efc5f224 | 8893 | static PyObject *_wrap_wxTreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8894 | PyObject * _resultobj; |
f6bcfd97 | 8895 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8896 | wxTreeItemId * _arg1; |
b1462dfa | 8897 | int _arg2 = (int ) FALSE; |
1d99702e RD |
8898 | PyObject * _argo0 = 0; |
8899 | PyObject * _argo1 = 0; | |
efc5f224 | 8900 | char *_kwnames[] = { "self","item","discardChanges", NULL }; |
d5c9047a RD |
8901 | |
8902 | self = self; | |
b1462dfa | 8903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_EndEditLabel",_kwnames,&_argo0,&_argo1,&_arg2)) |
d5c9047a | 8904 | return NULL; |
1d99702e RD |
8905 | if (_argo0) { |
8906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EndEditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8909 | return NULL; |
8910 | } | |
8911 | } | |
1d99702e RD |
8912 | if (_argo1) { |
8913 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8914 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EndEditLabel. Expected _wxTreeItemId_p."); |
8916 | return NULL; | |
8917 | } | |
8918 | } | |
cf694132 | 8919 | { |
4268f798 | 8920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8921 | wxTreeCtrl_EndEditLabel(_arg0,*_arg1,_arg2); |
cf694132 | 8922 | |
4268f798 | 8923 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8924 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8925 | } Py_INCREF(Py_None); |
d5c9047a | 8926 | _resultobj = Py_None; |
8ab979d7 RD |
8927 | return _resultobj; |
8928 | } | |
8929 | ||
d426c97e RD |
8930 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) |
8931 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8932 | PyObject * _resultobj; | |
f6bcfd97 | 8933 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8934 | wxTreeItemId * _arg1; |
8935 | PyObject * _argo0 = 0; | |
8936 | PyObject * _argo1 = 0; | |
8937 | char *_kwnames[] = { "self","item", NULL }; | |
8938 | ||
8939 | self = self; | |
8940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
8941 | return NULL; | |
8942 | if (_argo0) { | |
8943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8946 | return NULL; |
8947 | } | |
8948 | } | |
8949 | if (_argo1) { | |
8950 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8951 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); | |
8953 | return NULL; | |
8954 | } | |
8955 | } | |
8956 | { | |
4268f798 | 8957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8958 | wxTreeCtrl_SortChildren(_arg0,*_arg1); |
d426c97e | 8959 | |
4268f798 | 8960 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8961 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8962 | } Py_INCREF(Py_None); |
8963 | _resultobj = Py_None; | |
8964 | return _resultobj; | |
8965 | } | |
8966 | ||
b8b8dda7 | 8967 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) |
efc5f224 | 8968 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 | 8969 | PyObject * _resultobj; |
f6bcfd97 | 8970 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 8971 | wxTreeItemId * _arg1; |
b1462dfa | 8972 | int _arg2 = (int ) TRUE; |
1d99702e RD |
8973 | PyObject * _argo0 = 0; |
8974 | PyObject * _argo1 = 0; | |
efc5f224 | 8975 | char *_kwnames[] = { "self","item","bold", NULL }; |
b8b8dda7 RD |
8976 | |
8977 | self = self; | |
b1462dfa | 8978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) |
b8b8dda7 | 8979 | return NULL; |
1d99702e RD |
8980 | if (_argo0) { |
8981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
8984 | return NULL; |
8985 | } | |
8986 | } | |
1d99702e RD |
8987 | if (_argo1) { |
8988 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8989 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
8990 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); |
8991 | return NULL; | |
8992 | } | |
8993 | } | |
cf694132 | 8994 | { |
4268f798 | 8995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8996 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); |
cf694132 | 8997 | |
4268f798 | 8998 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8999 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9000 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
9001 | _resultobj = Py_None; |
9002 | return _resultobj; | |
9003 | } | |
9004 | ||
9005 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
efc5f224 | 9006 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
9007 | PyObject * _resultobj; |
9008 | bool _result; | |
f6bcfd97 | 9009 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9010 | wxTreeItemId * _arg1; |
1d99702e RD |
9011 | PyObject * _argo0 = 0; |
9012 | PyObject * _argo1 = 0; | |
efc5f224 | 9013 | char *_kwnames[] = { "self","item", NULL }; |
b8b8dda7 RD |
9014 | |
9015 | self = self; | |
efc5f224 | 9016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 9017 | return NULL; |
1d99702e RD |
9018 | if (_argo0) { |
9019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9022 | return NULL; |
9023 | } | |
9024 | } | |
1d99702e RD |
9025 | if (_argo1) { |
9026 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9027 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
9028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); |
9029 | return NULL; | |
9030 | } | |
9031 | } | |
cf694132 | 9032 | { |
4268f798 | 9033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9034 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); |
cf694132 | 9035 | |
4268f798 | 9036 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9037 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9038 | } _resultobj = Py_BuildValue("i",_result); |
b8b8dda7 RD |
9039 | return _resultobj; |
9040 | } | |
9041 | ||
164b735b | 9042 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
efc5f224 | 9043 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
9044 | PyObject * _resultobj; |
9045 | wxTreeItemId * _result; | |
f6bcfd97 | 9046 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9047 | wxPoint * _arg1; |
164b735b RD |
9048 | int * _arg2; |
9049 | int temp; | |
1d99702e | 9050 | PyObject * _argo0 = 0; |
164b735b | 9051 | wxPoint temp0; |
2f90df85 | 9052 | PyObject * _obj1 = 0; |
efc5f224 | 9053 | char *_kwnames[] = { "self","point", NULL }; |
b8b8dda7 RD |
9054 | char _ptemp[128]; |
9055 | ||
9056 | self = self; | |
164b735b RD |
9057 | { |
9058 | _arg2 = &temp; | |
9059 | } | |
2f90df85 | 9060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 9061 | return NULL; |
1d99702e RD |
9062 | if (_argo0) { |
9063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9066 | return NULL; |
9067 | } | |
9068 | } | |
2f90df85 | 9069 | { |
164b735b | 9070 | _arg1 = &temp0; |
2f90df85 | 9071 | if (! wxPoint_helper(_obj1, &_arg1)) |
b8b8dda7 | 9072 | return NULL; |
2f90df85 | 9073 | } |
cf694132 | 9074 | { |
4268f798 | 9075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9076 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); |
cf694132 | 9077 | |
4268f798 | 9078 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9079 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9080 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
b8b8dda7 | 9081 | _resultobj = Py_BuildValue("s",_ptemp); |
164b735b RD |
9082 | { |
9083 | PyObject *o; | |
9084 | o = PyInt_FromLong((long) (*_arg2)); | |
9085 | _resultobj = t_output_helper(_resultobj, o); | |
9086 | } | |
b8b8dda7 RD |
9087 | return _resultobj; |
9088 | } | |
9089 | ||
b7e72427 RD |
9090 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
9091 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9092 | PyObject * _resultobj; | |
f6bcfd97 | 9093 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9094 | wxTreeItemId * _arg1; |
9095 | wxColour * _arg2; | |
9096 | PyObject * _argo0 = 0; | |
9097 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9098 | wxColour temp; |
9099 | PyObject * _obj2 = 0; | |
b7e72427 RD |
9100 | char *_kwnames[] = { "self","item","col", NULL }; |
9101 | ||
9102 | self = self; | |
f6bcfd97 | 9103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9104 | return NULL; |
9105 | if (_argo0) { | |
9106 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9107 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9109 | return NULL; |
9110 | } | |
9111 | } | |
9112 | if (_argo1) { | |
9113 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9114 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); | |
9116 | return NULL; | |
9117 | } | |
9118 | } | |
f6bcfd97 BP |
9119 | { |
9120 | _arg2 = &temp; | |
9121 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9122 | return NULL; |
f6bcfd97 | 9123 | } |
b7e72427 | 9124 | { |
4268f798 | 9125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9126 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); |
b7e72427 | 9127 | |
4268f798 | 9128 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9129 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9130 | } Py_INCREF(Py_None); |
9131 | _resultobj = Py_None; | |
9132 | return _resultobj; | |
9133 | } | |
9134 | ||
9135 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
9136 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9137 | PyObject * _resultobj; | |
f6bcfd97 | 9138 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9139 | wxTreeItemId * _arg1; |
9140 | wxColour * _arg2; | |
9141 | PyObject * _argo0 = 0; | |
9142 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9143 | wxColour temp; |
9144 | PyObject * _obj2 = 0; | |
b7e72427 RD |
9145 | char *_kwnames[] = { "self","item","col", NULL }; |
9146 | ||
9147 | self = self; | |
f6bcfd97 | 9148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9149 | return NULL; |
9150 | if (_argo0) { | |
9151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9154 | return NULL; |
9155 | } | |
9156 | } | |
9157 | if (_argo1) { | |
9158 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9159 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
9161 | return NULL; | |
9162 | } | |
9163 | } | |
f6bcfd97 BP |
9164 | { |
9165 | _arg2 = &temp; | |
9166 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9167 | return NULL; |
f6bcfd97 | 9168 | } |
b7e72427 | 9169 | { |
4268f798 | 9170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9171 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); |
b7e72427 | 9172 | |
4268f798 | 9173 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9174 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9175 | } Py_INCREF(Py_None); |
9176 | _resultobj = Py_None; | |
9177 | return _resultobj; | |
9178 | } | |
9179 | ||
9180 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
9181 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9182 | PyObject * _resultobj; | |
f6bcfd97 | 9183 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9184 | wxTreeItemId * _arg1; |
9185 | wxFont * _arg2; | |
9186 | PyObject * _argo0 = 0; | |
9187 | PyObject * _argo1 = 0; | |
9188 | PyObject * _argo2 = 0; | |
9189 | char *_kwnames[] = { "self","item","font", NULL }; | |
9190 | ||
9191 | self = self; | |
9192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
9193 | return NULL; | |
9194 | if (_argo0) { | |
9195 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9196 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9198 | return NULL; |
9199 | } | |
9200 | } | |
9201 | if (_argo1) { | |
9202 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9203 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); | |
9205 | return NULL; | |
9206 | } | |
9207 | } | |
9208 | if (_argo2) { | |
9209 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9210 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
9211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); | |
9212 | return NULL; | |
9213 | } | |
9214 | } | |
9215 | { | |
4268f798 | 9216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9217 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); |
b7e72427 | 9218 | |
4268f798 | 9219 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9220 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9221 | } Py_INCREF(Py_None); |
9222 | _resultobj = Py_None; | |
9223 | return _resultobj; | |
9224 | } | |
9225 | ||
b1462dfa RD |
9226 | #define wxTreeCtrl_SetItemDropHighlight(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemDropHighlight(_swigarg0,_swigarg1)) |
9227 | static PyObject *_wrap_wxTreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9228 | PyObject * _resultobj; | |
f6bcfd97 | 9229 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
9230 | wxTreeItemId * _arg1; |
9231 | int _arg2 = (int ) TRUE; | |
9232 | PyObject * _argo0 = 0; | |
9233 | PyObject * _argo1 = 0; | |
9234 | char *_kwnames[] = { "self","item","highlight", NULL }; | |
9235 | ||
9236 | self = self; | |
9237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemDropHighlight",_kwnames,&_argo0,&_argo1,&_arg2)) | |
9238 | return NULL; | |
9239 | if (_argo0) { | |
9240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemDropHighlight. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
9243 | return NULL; |
9244 | } | |
9245 | } | |
9246 | if (_argo1) { | |
9247 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9248 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemDropHighlight. Expected _wxTreeItemId_p."); | |
9250 | return NULL; | |
9251 | } | |
9252 | } | |
9253 | { | |
4268f798 | 9254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9255 | wxTreeCtrl_SetItemDropHighlight(_arg0,*_arg1,_arg2); |
b1462dfa | 9256 | |
4268f798 | 9257 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9258 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9259 | } Py_INCREF(Py_None); |
9260 | _resultobj = Py_None; | |
9261 | return _resultobj; | |
9262 | } | |
9263 | ||
f6bcfd97 | 9264 | static PyObject * wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,const wxTreeItemId & item,int textOnly) { |
d426c97e | 9265 | wxRect rect; |
164b735b | 9266 | if (self->GetBoundingRect(item, rect, textOnly)) { |
4268f798 | 9267 | wxPyBeginBlockThreads(); |
164b735b RD |
9268 | wxRect* r = new wxRect(rect); |
9269 | PyObject* val = wxPyConstructObject((void*)r, "wxRect"); | |
4268f798 | 9270 | wxPyEndBlockThreads(); |
164b735b RD |
9271 | return val; |
9272 | } | |
d426c97e RD |
9273 | else { |
9274 | Py_INCREF(Py_None); | |
9275 | return Py_None; | |
9276 | } | |
9277 | } | |
9278 | static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9279 | PyObject * _resultobj; | |
9280 | PyObject * _result; | |
f6bcfd97 | 9281 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
9282 | wxTreeItemId * _arg1; |
9283 | int _arg2 = (int ) FALSE; | |
9284 | PyObject * _argo0 = 0; | |
9285 | PyObject * _argo1 = 0; | |
9286 | char *_kwnames[] = { "self","item","textOnly", NULL }; | |
9287 | ||
9288 | self = self; | |
9289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&_arg2)) | |
9290 | return NULL; | |
9291 | if (_argo0) { | |
9292 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9293 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetBoundingRect. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
9295 | return NULL; |
9296 | } | |
9297 | } | |
9298 | if (_argo1) { | |
9299 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9300 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeItemId_p."); | |
9302 | return NULL; | |
9303 | } | |
9304 | } | |
9305 | { | |
4268f798 | 9306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9307 | _result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(_arg0,*_arg1,_arg2); |
d426c97e | 9308 | |
4268f798 | 9309 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9310 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
9311 | }{ |
9312 | _resultobj = _result; | |
9313 | } | |
9314 | return _resultobj; | |
9315 | } | |
9316 | ||
68320e40 RD |
9317 | static void *SwigwxDirItemDataTowxObject(void *ptr) { |
9318 | wxDirItemData *src; | |
9319 | wxObject *dest; | |
9320 | src = (wxDirItemData *) ptr; | |
9321 | dest = (wxObject *) src; | |
9322 | return (void *) dest; | |
9323 | } | |
9324 | ||
9325 | #define new_wxDirItemData(_swigarg0,_swigarg1,_swigarg2) (new wxDirItemData(_swigarg0,_swigarg1,_swigarg2)) | |
9326 | static PyObject *_wrap_new_wxDirItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9327 | PyObject * _resultobj; | |
9328 | wxDirItemData * _result; | |
9329 | wxString * _arg0; | |
9330 | wxString * _arg1; | |
9331 | bool _arg2; | |
9332 | PyObject * _obj0 = 0; | |
9333 | PyObject * _obj1 = 0; | |
9334 | int tempbool2; | |
9335 | char *_kwnames[] = { "path","name","isDir", NULL }; | |
9336 | char _ptemp[128]; | |
9337 | ||
9338 | self = self; | |
9339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:new_wxDirItemData",_kwnames,&_obj0,&_obj1,&tempbool2)) | |
9340 | return NULL; | |
9341 | { | |
c8bc7bb8 RD |
9342 | _arg0 = wxString_in_helper(_obj0); |
9343 | if (_arg0 == NULL) | |
68320e40 | 9344 | return NULL; |
68320e40 RD |
9345 | } |
9346 | { | |
c8bc7bb8 RD |
9347 | _arg1 = wxString_in_helper(_obj1); |
9348 | if (_arg1 == NULL) | |
68320e40 | 9349 | return NULL; |
68320e40 RD |
9350 | } |
9351 | _arg2 = (bool ) tempbool2; | |
9352 | { | |
9353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9354 | _result = (wxDirItemData *)new_wxDirItemData(*_arg0,*_arg1,_arg2); |
68320e40 RD |
9355 | |
9356 | wxPyEndAllowThreads(__tstate); | |
9357 | if (PyErr_Occurred()) return NULL; | |
9358 | } if (_result) { | |
9359 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirItemData_p"); | |
9360 | _resultobj = Py_BuildValue("s",_ptemp); | |
9361 | } else { | |
9362 | Py_INCREF(Py_None); | |
9363 | _resultobj = Py_None; | |
9364 | } | |
9365 | { | |
9366 | if (_obj0) | |
9367 | delete _arg0; | |
9368 | } | |
9369 | { | |
9370 | if (_obj1) | |
9371 | delete _arg1; | |
9372 | } | |
9373 | return _resultobj; | |
9374 | } | |
9375 | ||
9376 | #define wxDirItemData_SetNewDirName(_swigobj,_swigarg0) (_swigobj->SetNewDirName(_swigarg0)) | |
9377 | static PyObject *_wrap_wxDirItemData_SetNewDirName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9378 | PyObject * _resultobj; | |
9379 | wxDirItemData * _arg0; | |
9380 | wxString * _arg1; | |
9381 | PyObject * _argo0 = 0; | |
9382 | PyObject * _obj1 = 0; | |
9383 | char *_kwnames[] = { "self","path", NULL }; | |
9384 | ||
9385 | self = self; | |
9386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_SetNewDirName",_kwnames,&_argo0,&_obj1)) | |
9387 | return NULL; | |
9388 | if (_argo0) { | |
9389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_SetNewDirName. Expected _wxDirItemData_p."); | |
9392 | return NULL; | |
9393 | } | |
9394 | } | |
9395 | { | |
c8bc7bb8 RD |
9396 | _arg1 = wxString_in_helper(_obj1); |
9397 | if (_arg1 == NULL) | |
68320e40 | 9398 | return NULL; |
68320e40 RD |
9399 | } |
9400 | { | |
9401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9402 | wxDirItemData_SetNewDirName(_arg0,*_arg1); |
68320e40 RD |
9403 | |
9404 | wxPyEndAllowThreads(__tstate); | |
9405 | if (PyErr_Occurred()) return NULL; | |
9406 | } Py_INCREF(Py_None); | |
9407 | _resultobj = Py_None; | |
9408 | { | |
9409 | if (_obj1) | |
9410 | delete _arg1; | |
9411 | } | |
9412 | return _resultobj; | |
9413 | } | |
9414 | ||
9415 | #define wxDirItemData_m_path_set(_swigobj,_swigval) (_swigobj->m_path = *(_swigval),_swigval) | |
9416 | static PyObject *_wrap_wxDirItemData_m_path_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9417 | PyObject * _resultobj; | |
9418 | wxString * _result; | |
9419 | wxDirItemData * _arg0; | |
9420 | wxString * _arg1; | |
9421 | PyObject * _argo0 = 0; | |
9422 | PyObject * _obj1 = 0; | |
9423 | char *_kwnames[] = { "self","m_path", NULL }; | |
9424 | ||
9425 | self = self; | |
9426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_path_set",_kwnames,&_argo0,&_obj1)) | |
9427 | return NULL; | |
9428 | if (_argo0) { | |
9429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_set. Expected _wxDirItemData_p."); | |
9432 | return NULL; | |
9433 | } | |
9434 | } | |
9435 | { | |
c8bc7bb8 RD |
9436 | _arg1 = wxString_in_helper(_obj1); |
9437 | if (_arg1 == NULL) | |
68320e40 | 9438 | return NULL; |
68320e40 RD |
9439 | } |
9440 | { | |
9441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9442 | _result = (wxString *)wxDirItemData_m_path_set(_arg0,_arg1); |
68320e40 RD |
9443 | |
9444 | wxPyEndAllowThreads(__tstate); | |
9445 | if (PyErr_Occurred()) return NULL; | |
9446 | }{ | |
c8bc7bb8 RD |
9447 | #if wxUSE_UNICODE |
9448 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9449 | #else | |
68320e40 | 9450 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9451 | #endif |
68320e40 RD |
9452 | } |
9453 | { | |
9454 | if (_obj1) | |
9455 | delete _arg1; | |
9456 | } | |
9457 | return _resultobj; | |
9458 | } | |
9459 | ||
9460 | #define wxDirItemData_m_path_get(_swigobj) (&_swigobj->m_path) | |
9461 | static PyObject *_wrap_wxDirItemData_m_path_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9462 | PyObject * _resultobj; | |
9463 | wxString * _result; | |
9464 | wxDirItemData * _arg0; | |
9465 | PyObject * _argo0 = 0; | |
9466 | char *_kwnames[] = { "self", NULL }; | |
9467 | ||
9468 | self = self; | |
9469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_path_get",_kwnames,&_argo0)) | |
9470 | return NULL; | |
9471 | if (_argo0) { | |
9472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_get. Expected _wxDirItemData_p."); | |
9475 | return NULL; | |
9476 | } | |
9477 | } | |
9478 | { | |
9479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9480 | _result = (wxString *)wxDirItemData_m_path_get(_arg0); |
68320e40 RD |
9481 | |
9482 | wxPyEndAllowThreads(__tstate); | |
9483 | if (PyErr_Occurred()) return NULL; | |
9484 | }{ | |
c8bc7bb8 RD |
9485 | #if wxUSE_UNICODE |
9486 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9487 | #else | |
68320e40 | 9488 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9489 | #endif |
68320e40 RD |
9490 | } |
9491 | return _resultobj; | |
9492 | } | |
9493 | ||
9494 | #define wxDirItemData_m_name_set(_swigobj,_swigval) (_swigobj->m_name = *(_swigval),_swigval) | |
9495 | static PyObject *_wrap_wxDirItemData_m_name_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9496 | PyObject * _resultobj; | |
9497 | wxString * _result; | |
9498 | wxDirItemData * _arg0; | |
9499 | wxString * _arg1; | |
9500 | PyObject * _argo0 = 0; | |
9501 | PyObject * _obj1 = 0; | |
9502 | char *_kwnames[] = { "self","m_name", NULL }; | |
9503 | ||
9504 | self = self; | |
9505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_name_set",_kwnames,&_argo0,&_obj1)) | |
9506 | return NULL; | |
9507 | if (_argo0) { | |
9508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_set. Expected _wxDirItemData_p."); | |
9511 | return NULL; | |
9512 | } | |
9513 | } | |
9514 | { | |
c8bc7bb8 RD |
9515 | _arg1 = wxString_in_helper(_obj1); |
9516 | if (_arg1 == NULL) | |
68320e40 | 9517 | return NULL; |
68320e40 RD |
9518 | } |
9519 | { | |
9520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9521 | _result = (wxString *)wxDirItemData_m_name_set(_arg0,_arg1); |
68320e40 RD |
9522 | |
9523 | wxPyEndAllowThreads(__tstate); | |
9524 | if (PyErr_Occurred()) return NULL; | |
9525 | }{ | |
c8bc7bb8 RD |
9526 | #if wxUSE_UNICODE |
9527 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9528 | #else | |
68320e40 | 9529 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9530 | #endif |
68320e40 RD |
9531 | } |
9532 | { | |
9533 | if (_obj1) | |
9534 | delete _arg1; | |
9535 | } | |
9536 | return _resultobj; | |
9537 | } | |
9538 | ||
9539 | #define wxDirItemData_m_name_get(_swigobj) (&_swigobj->m_name) | |
9540 | static PyObject *_wrap_wxDirItemData_m_name_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9541 | PyObject * _resultobj; | |
9542 | wxString * _result; | |
9543 | wxDirItemData * _arg0; | |
9544 | PyObject * _argo0 = 0; | |
9545 | char *_kwnames[] = { "self", NULL }; | |
9546 | ||
9547 | self = self; | |
9548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_name_get",_kwnames,&_argo0)) | |
9549 | return NULL; | |
9550 | if (_argo0) { | |
9551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_get. Expected _wxDirItemData_p."); | |
9554 | return NULL; | |
9555 | } | |
9556 | } | |
9557 | { | |
9558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9559 | _result = (wxString *)wxDirItemData_m_name_get(_arg0); |
68320e40 RD |
9560 | |
9561 | wxPyEndAllowThreads(__tstate); | |
9562 | if (PyErr_Occurred()) return NULL; | |
9563 | }{ | |
c8bc7bb8 RD |
9564 | #if wxUSE_UNICODE |
9565 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9566 | #else | |
68320e40 | 9567 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9568 | #endif |
68320e40 RD |
9569 | } |
9570 | return _resultobj; | |
9571 | } | |
9572 | ||
9573 | #define wxDirItemData_m_isHidden_set(_swigobj,_swigval) (_swigobj->m_isHidden = _swigval,_swigval) | |
9574 | static PyObject *_wrap_wxDirItemData_m_isHidden_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9575 | PyObject * _resultobj; | |
9576 | bool _result; | |
9577 | wxDirItemData * _arg0; | |
9578 | bool _arg1; | |
9579 | PyObject * _argo0 = 0; | |
9580 | int tempbool1; | |
9581 | char *_kwnames[] = { "self","m_isHidden", NULL }; | |
9582 | ||
9583 | self = self; | |
9584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isHidden_set",_kwnames,&_argo0,&tempbool1)) | |
9585 | return NULL; | |
9586 | if (_argo0) { | |
9587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_set. Expected _wxDirItemData_p."); | |
9590 | return NULL; | |
9591 | } | |
9592 | } | |
9593 | _arg1 = (bool ) tempbool1; | |
9594 | { | |
9595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9596 | _result = (bool )wxDirItemData_m_isHidden_set(_arg0,_arg1); |
68320e40 RD |
9597 | |
9598 | wxPyEndAllowThreads(__tstate); | |
9599 | if (PyErr_Occurred()) return NULL; | |
9600 | } _resultobj = Py_BuildValue("i",_result); | |
9601 | return _resultobj; | |
9602 | } | |
9603 | ||
9604 | #define wxDirItemData_m_isHidden_get(_swigobj) ((bool ) _swigobj->m_isHidden) | |
9605 | static PyObject *_wrap_wxDirItemData_m_isHidden_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9606 | PyObject * _resultobj; | |
9607 | bool _result; | |
9608 | wxDirItemData * _arg0; | |
9609 | PyObject * _argo0 = 0; | |
9610 | char *_kwnames[] = { "self", NULL }; | |
9611 | ||
9612 | self = self; | |
9613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isHidden_get",_kwnames,&_argo0)) | |
9614 | return NULL; | |
9615 | if (_argo0) { | |
9616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_get. Expected _wxDirItemData_p."); | |
9619 | return NULL; | |
9620 | } | |
9621 | } | |
9622 | { | |
9623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9624 | _result = (bool )wxDirItemData_m_isHidden_get(_arg0); |
68320e40 RD |
9625 | |
9626 | wxPyEndAllowThreads(__tstate); | |
9627 | if (PyErr_Occurred()) return NULL; | |
9628 | } _resultobj = Py_BuildValue("i",_result); | |
9629 | return _resultobj; | |
9630 | } | |
9631 | ||
9632 | #define wxDirItemData_m_isExpanded_set(_swigobj,_swigval) (_swigobj->m_isExpanded = _swigval,_swigval) | |
9633 | static PyObject *_wrap_wxDirItemData_m_isExpanded_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9634 | PyObject * _resultobj; | |
9635 | bool _result; | |
9636 | wxDirItemData * _arg0; | |
9637 | bool _arg1; | |
9638 | PyObject * _argo0 = 0; | |
9639 | int tempbool1; | |
9640 | char *_kwnames[] = { "self","m_isExpanded", NULL }; | |
9641 | ||
9642 | self = self; | |
9643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isExpanded_set",_kwnames,&_argo0,&tempbool1)) | |
9644 | return NULL; | |
9645 | if (_argo0) { | |
9646 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9647 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_set. Expected _wxDirItemData_p."); | |
9649 | return NULL; | |
9650 | } | |
9651 | } | |
9652 | _arg1 = (bool ) tempbool1; | |
9653 | { | |
9654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9655 | _result = (bool )wxDirItemData_m_isExpanded_set(_arg0,_arg1); |
68320e40 RD |
9656 | |
9657 | wxPyEndAllowThreads(__tstate); | |
9658 | if (PyErr_Occurred()) return NULL; | |
9659 | } _resultobj = Py_BuildValue("i",_result); | |
9660 | return _resultobj; | |
9661 | } | |
9662 | ||
9663 | #define wxDirItemData_m_isExpanded_get(_swigobj) ((bool ) _swigobj->m_isExpanded) | |
9664 | static PyObject *_wrap_wxDirItemData_m_isExpanded_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9665 | PyObject * _resultobj; | |
9666 | bool _result; | |
9667 | wxDirItemData * _arg0; | |
9668 | PyObject * _argo0 = 0; | |
9669 | char *_kwnames[] = { "self", NULL }; | |
9670 | ||
9671 | self = self; | |
9672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isExpanded_get",_kwnames,&_argo0)) | |
9673 | return NULL; | |
9674 | if (_argo0) { | |
9675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_get. Expected _wxDirItemData_p."); | |
9678 | return NULL; | |
9679 | } | |
9680 | } | |
9681 | { | |
9682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9683 | _result = (bool )wxDirItemData_m_isExpanded_get(_arg0); |
68320e40 RD |
9684 | |
9685 | wxPyEndAllowThreads(__tstate); | |
9686 | if (PyErr_Occurred()) return NULL; | |
9687 | } _resultobj = Py_BuildValue("i",_result); | |
9688 | return _resultobj; | |
9689 | } | |
9690 | ||
9691 | #define wxDirItemData_m_isDir_set(_swigobj,_swigval) (_swigobj->m_isDir = _swigval,_swigval) | |
9692 | static PyObject *_wrap_wxDirItemData_m_isDir_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9693 | PyObject * _resultobj; | |
9694 | bool _result; | |
9695 | wxDirItemData * _arg0; | |
9696 | bool _arg1; | |
9697 | PyObject * _argo0 = 0; | |
9698 | int tempbool1; | |
9699 | char *_kwnames[] = { "self","m_isDir", NULL }; | |
9700 | ||
9701 | self = self; | |
9702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isDir_set",_kwnames,&_argo0,&tempbool1)) | |
9703 | return NULL; | |
9704 | if (_argo0) { | |
9705 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9706 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_set. Expected _wxDirItemData_p."); | |
9708 | return NULL; | |
9709 | } | |
9710 | } | |
9711 | _arg1 = (bool ) tempbool1; | |
9712 | { | |
9713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9714 | _result = (bool )wxDirItemData_m_isDir_set(_arg0,_arg1); |
68320e40 RD |
9715 | |
9716 | wxPyEndAllowThreads(__tstate); | |
9717 | if (PyErr_Occurred()) return NULL; | |
9718 | } _resultobj = Py_BuildValue("i",_result); | |
9719 | return _resultobj; | |
9720 | } | |
9721 | ||
9722 | #define wxDirItemData_m_isDir_get(_swigobj) ((bool ) _swigobj->m_isDir) | |
9723 | static PyObject *_wrap_wxDirItemData_m_isDir_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9724 | PyObject * _resultobj; | |
9725 | bool _result; | |
9726 | wxDirItemData * _arg0; | |
9727 | PyObject * _argo0 = 0; | |
9728 | char *_kwnames[] = { "self", NULL }; | |
9729 | ||
9730 | self = self; | |
9731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isDir_get",_kwnames,&_argo0)) | |
9732 | return NULL; | |
9733 | if (_argo0) { | |
9734 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9735 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9736 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_get. Expected _wxDirItemData_p."); | |
9737 | return NULL; | |
9738 | } | |
9739 | } | |
9740 | { | |
9741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9742 | _result = (bool )wxDirItemData_m_isDir_get(_arg0); |
68320e40 RD |
9743 | |
9744 | wxPyEndAllowThreads(__tstate); | |
9745 | if (PyErr_Occurred()) return NULL; | |
9746 | } _resultobj = Py_BuildValue("i",_result); | |
9747 | return _resultobj; | |
9748 | } | |
9749 | ||
9750 | static void *SwigwxGenericDirCtrlTowxControl(void *ptr) { | |
9751 | wxGenericDirCtrl *src; | |
9752 | wxControl *dest; | |
9753 | src = (wxGenericDirCtrl *) ptr; | |
9754 | dest = (wxControl *) src; | |
9755 | return (void *) dest; | |
9756 | } | |
9757 | ||
9758 | static void *SwigwxGenericDirCtrlTowxWindow(void *ptr) { | |
9759 | wxGenericDirCtrl *src; | |
9760 | wxWindow *dest; | |
9761 | src = (wxGenericDirCtrl *) ptr; | |
9762 | dest = (wxWindow *) src; | |
9763 | return (void *) dest; | |
9764 | } | |
9765 | ||
9766 | static void *SwigwxGenericDirCtrlTowxEvtHandler(void *ptr) { | |
9767 | wxGenericDirCtrl *src; | |
9768 | wxEvtHandler *dest; | |
9769 | src = (wxGenericDirCtrl *) ptr; | |
9770 | dest = (wxEvtHandler *) src; | |
9771 | return (void *) dest; | |
9772 | } | |
9773 | ||
9774 | static void *SwigwxGenericDirCtrlTowxObject(void *ptr) { | |
9775 | wxGenericDirCtrl *src; | |
9776 | wxObject *dest; | |
9777 | src = (wxGenericDirCtrl *) ptr; | |
9778 | dest = (wxObject *) src; | |
9779 | return (void *) dest; | |
9780 | } | |
9781 | ||
9782 | #define new_wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
9783 | static PyObject *_wrap_new_wxGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9784 | PyObject * _resultobj; | |
9785 | wxGenericDirCtrl * _result; | |
9786 | wxWindow * _arg0; | |
9787 | wxWindowID _arg1 = (wxWindowID ) -1; | |
137b5242 | 9788 | wxString * _arg2 = (wxString *) &wxPyDirDialogDefaultFolderStr; |
68320e40 RD |
9789 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
9790 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
9791 | long _arg5 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
137b5242 | 9792 | wxString * _arg6 = (wxString *) &wxPyEmptyString; |
68320e40 | 9793 | int _arg7 = (int ) 0; |
137b5242 | 9794 | wxString * _arg8 = (wxString *) &wxPy_TreeCtrlNameStr; |
68320e40 | 9795 | PyObject * _argo0 = 0; |
137b5242 | 9796 | PyObject * _obj2 = 0; |
68320e40 RD |
9797 | wxPoint temp; |
9798 | PyObject * _obj3 = 0; | |
9799 | wxSize temp0; | |
9800 | PyObject * _obj4 = 0; | |
137b5242 RD |
9801 | PyObject * _obj6 = 0; |
9802 | PyObject * _obj8 = 0; | |
68320e40 RD |
9803 | char *_kwnames[] = { "parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; |
9804 | char _ptemp[128]; | |
9805 | ||
9806 | self = self; | |
137b5242 | 9807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOOlOiO:new_wxGenericDirCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6,&_arg7,&_obj8)) |
68320e40 RD |
9808 | return NULL; |
9809 | if (_argo0) { | |
9810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGenericDirCtrl. Expected _wxWindow_p."); | |
9813 | return NULL; | |
9814 | } | |
9815 | } | |
137b5242 RD |
9816 | if (_obj2) |
9817 | { | |
9818 | _arg2 = wxString_in_helper(_obj2); | |
9819 | if (_arg2 == NULL) | |
9820 | return NULL; | |
9821 | } | |
68320e40 RD |
9822 | if (_obj3) |
9823 | { | |
9824 | _arg3 = &temp; | |
9825 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9826 | return NULL; | |
9827 | } | |
9828 | if (_obj4) | |
9829 | { | |
9830 | _arg4 = &temp0; | |
9831 | if (! wxSize_helper(_obj4, &_arg4)) | |
9832 | return NULL; | |
137b5242 RD |
9833 | } |
9834 | if (_obj6) | |
9835 | { | |
9836 | _arg6 = wxString_in_helper(_obj6); | |
9837 | if (_arg6 == NULL) | |
9838 | return NULL; | |
9839 | } | |
9840 | if (_obj8) | |
9841 | { | |
9842 | _arg8 = wxString_in_helper(_obj8); | |
9843 | if (_arg8 == NULL) | |
9844 | return NULL; | |
68320e40 RD |
9845 | } |
9846 | { | |
9847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
137b5242 | 9848 | _result = (wxGenericDirCtrl *)new_wxGenericDirCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7,*_arg8); |
68320e40 RD |
9849 | |
9850 | wxPyEndAllowThreads(__tstate); | |
9851 | if (PyErr_Occurred()) return NULL; | |
9852 | } if (_result) { | |
9853 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
9854 | _resultobj = Py_BuildValue("s",_ptemp); | |
9855 | } else { | |
9856 | Py_INCREF(Py_None); | |
9857 | _resultobj = Py_None; | |
9858 | } | |
137b5242 RD |
9859 | { |
9860 | if (_obj2) | |
9861 | delete _arg2; | |
9862 | } | |
9863 | { | |
9864 | if (_obj6) | |
9865 | delete _arg6; | |
9866 | } | |
9867 | { | |
9868 | if (_obj8) | |
9869 | delete _arg8; | |
9870 | } | |
68320e40 RD |
9871 | return _resultobj; |
9872 | } | |
9873 | ||
9874 | #define new_wxPreGenericDirCtrl() (new wxGenericDirCtrl()) | |
9875 | static PyObject *_wrap_new_wxPreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9876 | PyObject * _resultobj; | |
9877 | wxGenericDirCtrl * _result; | |
9878 | char *_kwnames[] = { NULL }; | |
9879 | char _ptemp[128]; | |
9880 | ||
9881 | self = self; | |
9882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGenericDirCtrl",_kwnames)) | |
9883 | return NULL; | |
9884 | { | |
9885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9886 | _result = (wxGenericDirCtrl *)new_wxPreGenericDirCtrl(); |
68320e40 RD |
9887 | |
9888 | wxPyEndAllowThreads(__tstate); | |
9889 | if (PyErr_Occurred()) return NULL; | |
9890 | } if (_result) { | |
9891 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
9892 | _resultobj = Py_BuildValue("s",_ptemp); | |
9893 | } else { | |
9894 | Py_INCREF(Py_None); | |
9895 | _resultobj = Py_None; | |
9896 | } | |
9897 | return _resultobj; | |
9898 | } | |
9899 | ||
9900 | #define wxGenericDirCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
9901 | static PyObject *_wrap_wxGenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9902 | PyObject * _resultobj; | |
9903 | bool _result; | |
9904 | wxGenericDirCtrl * _arg0; | |
9905 | wxWindow * _arg1; | |
9906 | wxWindowID _arg2 = (wxWindowID ) -1; | |
137b5242 | 9907 | wxString * _arg3 = (wxString *) &wxPyDirDialogDefaultFolderStr; |
68320e40 RD |
9908 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
9909 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
9910 | long _arg6 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
137b5242 | 9911 | wxString * _arg7 = (wxString *) &wxPyEmptyString; |
68320e40 | 9912 | int _arg8 = (int ) 0; |
137b5242 | 9913 | wxString * _arg9 = (wxString *) &wxPy_TreeCtrlNameStr; |
68320e40 RD |
9914 | PyObject * _argo0 = 0; |
9915 | PyObject * _argo1 = 0; | |
137b5242 | 9916 | PyObject * _obj3 = 0; |
68320e40 RD |
9917 | wxPoint temp; |
9918 | PyObject * _obj4 = 0; | |
9919 | wxSize temp0; | |
9920 | PyObject * _obj5 = 0; | |
137b5242 RD |
9921 | PyObject * _obj7 = 0; |
9922 | PyObject * _obj9 = 0; | |
68320e40 RD |
9923 | char *_kwnames[] = { "self","parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; |
9924 | ||
9925 | self = self; | |
137b5242 | 9926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOOlOiO:wxGenericDirCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_obj7,&_arg8,&_obj9)) |
68320e40 RD |
9927 | return NULL; |
9928 | if (_argo0) { | |
9929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
9931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
9932 | return NULL; | |
9933 | } | |
9934 | } | |
9935 | if (_argo1) { | |
9936 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9937 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGenericDirCtrl_Create. Expected _wxWindow_p."); | |
9939 | return NULL; | |
9940 | } | |
9941 | } | |
137b5242 RD |
9942 | if (_obj3) |
9943 | { | |
9944 | _arg3 = wxString_in_helper(_obj3); | |
9945 | if (_arg3 == NULL) | |
9946 | return NULL; | |
9947 | } | |
68320e40 RD |
9948 | if (_obj4) |
9949 | { | |
9950 | _arg4 = &temp; | |
9951 | if (! wxPoint_helper(_obj4, &_arg4)) | |
9952 | return NULL; | |
9953 | } | |
9954 | if (_obj5) | |
9955 | { | |
9956 | _arg5 = &temp0; | |
9957 | if (! wxSize_helper(_obj5, &_arg5)) | |
9958 | return NULL; | |
137b5242 RD |
9959 | } |
9960 | if (_obj7) | |
9961 | { | |
9962 | _arg7 = wxString_in_helper(_obj7); | |
9963 | if (_arg7 == NULL) | |
9964 | return NULL; | |
9965 | } | |
9966 | if (_obj9) | |
9967 | { | |
9968 | _arg9 = wxString_in_helper(_obj9); | |
9969 | if (_arg9 == NULL) | |
9970 | return NULL; | |
68320e40 RD |
9971 | } |
9972 | { | |
9973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
137b5242 | 9974 | _result = (bool )wxGenericDirCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8,*_arg9); |
68320e40 RD |
9975 | |
9976 | wxPyEndAllowThreads(__tstate); | |
9977 | if (PyErr_Occurred()) return NULL; | |
9978 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
9979 | { |
9980 | if (_obj3) | |
9981 | delete _arg3; | |
9982 | } | |
9983 | { | |
9984 | if (_obj7) | |
9985 | delete _arg7; | |
9986 | } | |
9987 | { | |
9988 | if (_obj9) | |
9989 | delete _arg9; | |
9990 | } | |
68320e40 RD |
9991 | return _resultobj; |
9992 | } | |
9993 | ||
9994 | #define wxGenericDirCtrl_ExpandPath(_swigobj,_swigarg0) (_swigobj->ExpandPath(_swigarg0)) | |
9995 | static PyObject *_wrap_wxGenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9996 | PyObject * _resultobj; | |
9997 | bool _result; | |
9998 | wxGenericDirCtrl * _arg0; | |
9999 | wxString * _arg1; | |
10000 | PyObject * _argo0 = 0; | |
10001 | PyObject * _obj1 = 0; | |
10002 | char *_kwnames[] = { "self","path", NULL }; | |
10003 | ||
10004 | self = self; | |
10005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_ExpandPath",_kwnames,&_argo0,&_obj1)) | |
10006 | return NULL; | |
10007 | if (_argo0) { | |
10008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ExpandPath. Expected _wxGenericDirCtrl_p."); | |
10011 | return NULL; | |
10012 | } | |
10013 | } | |
10014 | { | |
c8bc7bb8 RD |
10015 | _arg1 = wxString_in_helper(_obj1); |
10016 | if (_arg1 == NULL) | |
68320e40 | 10017 | return NULL; |
68320e40 RD |
10018 | } |
10019 | { | |
10020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10021 | _result = (bool )wxGenericDirCtrl_ExpandPath(_arg0,*_arg1); |
68320e40 RD |
10022 | |
10023 | wxPyEndAllowThreads(__tstate); | |
10024 | if (PyErr_Occurred()) return NULL; | |
10025 | } _resultobj = Py_BuildValue("i",_result); | |
10026 | { | |
10027 | if (_obj1) | |
10028 | delete _arg1; | |
10029 | } | |
10030 | return _resultobj; | |
10031 | } | |
10032 | ||
10033 | #define wxGenericDirCtrl_GetDefaultPath(_swigobj) (_swigobj->GetDefaultPath()) | |
10034 | static PyObject *_wrap_wxGenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10035 | PyObject * _resultobj; | |
10036 | wxString * _result; | |
10037 | wxGenericDirCtrl * _arg0; | |
10038 | PyObject * _argo0 = 0; | |
10039 | char *_kwnames[] = { "self", NULL }; | |
10040 | ||
10041 | self = self; | |
10042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetDefaultPath",_kwnames,&_argo0)) | |
10043 | return NULL; | |
10044 | if (_argo0) { | |
10045 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10046 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
10048 | return NULL; | |
10049 | } | |
10050 | } | |
10051 | { | |
10052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10053 | _result = new wxString (wxGenericDirCtrl_GetDefaultPath(_arg0)); |
68320e40 RD |
10054 | |
10055 | wxPyEndAllowThreads(__tstate); | |
10056 | if (PyErr_Occurred()) return NULL; | |
10057 | }{ | |
c8bc7bb8 RD |
10058 | #if wxUSE_UNICODE |
10059 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10060 | #else | |
68320e40 | 10061 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10062 | #endif |
68320e40 RD |
10063 | } |
10064 | { | |
10065 | delete _result; | |
10066 | } | |
10067 | return _resultobj; | |
10068 | } | |
10069 | ||
10070 | #define wxGenericDirCtrl_SetDefaultPath(_swigobj,_swigarg0) (_swigobj->SetDefaultPath(_swigarg0)) | |
10071 | static PyObject *_wrap_wxGenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10072 | PyObject * _resultobj; | |
10073 | wxGenericDirCtrl * _arg0; | |
10074 | wxString * _arg1; | |
10075 | PyObject * _argo0 = 0; | |
10076 | PyObject * _obj1 = 0; | |
10077 | char *_kwnames[] = { "self","path", NULL }; | |
10078 | ||
10079 | self = self; | |
10080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetDefaultPath",_kwnames,&_argo0,&_obj1)) | |
10081 | return NULL; | |
10082 | if (_argo0) { | |
10083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
10086 | return NULL; | |
10087 | } | |
10088 | } | |
10089 | { | |
c8bc7bb8 RD |
10090 | _arg1 = wxString_in_helper(_obj1); |
10091 | if (_arg1 == NULL) | |
68320e40 | 10092 | return NULL; |
68320e40 RD |
10093 | } |
10094 | { | |
10095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10096 | wxGenericDirCtrl_SetDefaultPath(_arg0,*_arg1); |
68320e40 RD |
10097 | |
10098 | wxPyEndAllowThreads(__tstate); | |
10099 | if (PyErr_Occurred()) return NULL; | |
10100 | } Py_INCREF(Py_None); | |
10101 | _resultobj = Py_None; | |
10102 | { | |
10103 | if (_obj1) | |
10104 | delete _arg1; | |
10105 | } | |
10106 | return _resultobj; | |
10107 | } | |
10108 | ||
10109 | #define wxGenericDirCtrl_GetPath(_swigobj) (_swigobj->GetPath()) | |
10110 | static PyObject *_wrap_wxGenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10111 | PyObject * _resultobj; | |
10112 | wxString * _result; | |
10113 | wxGenericDirCtrl * _arg0; | |
10114 | PyObject * _argo0 = 0; | |
10115 | char *_kwnames[] = { "self", NULL }; | |
10116 | ||
10117 | self = self; | |
10118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetPath",_kwnames,&_argo0)) | |
10119 | return NULL; | |
10120 | if (_argo0) { | |
10121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetPath. Expected _wxGenericDirCtrl_p."); | |
10124 | return NULL; | |
10125 | } | |
10126 | } | |
10127 | { | |
10128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10129 | _result = new wxString (wxGenericDirCtrl_GetPath(_arg0)); |
68320e40 RD |
10130 | |
10131 | wxPyEndAllowThreads(__tstate); | |
10132 | if (PyErr_Occurred()) return NULL; | |
10133 | }{ | |
c8bc7bb8 RD |
10134 | #if wxUSE_UNICODE |
10135 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10136 | #else | |
68320e40 | 10137 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10138 | #endif |
68320e40 RD |
10139 | } |
10140 | { | |
10141 | delete _result; | |
10142 | } | |
10143 | return _resultobj; | |
10144 | } | |
10145 | ||
10146 | #define wxGenericDirCtrl_GetFilePath(_swigobj) (_swigobj->GetFilePath()) | |
10147 | static PyObject *_wrap_wxGenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10148 | PyObject * _resultobj; | |
10149 | wxString * _result; | |
10150 | wxGenericDirCtrl * _arg0; | |
10151 | PyObject * _argo0 = 0; | |
10152 | char *_kwnames[] = { "self", NULL }; | |
10153 | ||
10154 | self = self; | |
10155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilePath",_kwnames,&_argo0)) | |
10156 | return NULL; | |
10157 | if (_argo0) { | |
10158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilePath. Expected _wxGenericDirCtrl_p."); | |
10161 | return NULL; | |
10162 | } | |
10163 | } | |
10164 | { | |
10165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10166 | _result = new wxString (wxGenericDirCtrl_GetFilePath(_arg0)); |
68320e40 RD |
10167 | |
10168 | wxPyEndAllowThreads(__tstate); | |
10169 | if (PyErr_Occurred()) return NULL; | |
10170 | }{ | |
c8bc7bb8 RD |
10171 | #if wxUSE_UNICODE |
10172 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10173 | #else | |
68320e40 | 10174 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10175 | #endif |
68320e40 RD |
10176 | } |
10177 | { | |
10178 | delete _result; | |
10179 | } | |
10180 | return _resultobj; | |
10181 | } | |
10182 | ||
10183 | #define wxGenericDirCtrl_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0)) | |
10184 | static PyObject *_wrap_wxGenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10185 | PyObject * _resultobj; | |
10186 | wxGenericDirCtrl * _arg0; | |
10187 | wxString * _arg1; | |
10188 | PyObject * _argo0 = 0; | |
10189 | PyObject * _obj1 = 0; | |
10190 | char *_kwnames[] = { "self","path", NULL }; | |
10191 | ||
10192 | self = self; | |
10193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetPath",_kwnames,&_argo0,&_obj1)) | |
10194 | return NULL; | |
10195 | if (_argo0) { | |
10196 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10197 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetPath. Expected _wxGenericDirCtrl_p."); | |
10199 | return NULL; | |
10200 | } | |
10201 | } | |
10202 | { | |
c8bc7bb8 RD |
10203 | _arg1 = wxString_in_helper(_obj1); |
10204 | if (_arg1 == NULL) | |
68320e40 | 10205 | return NULL; |
68320e40 RD |
10206 | } |
10207 | { | |
10208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10209 | wxGenericDirCtrl_SetPath(_arg0,*_arg1); |
68320e40 RD |
10210 | |
10211 | wxPyEndAllowThreads(__tstate); | |
10212 | if (PyErr_Occurred()) return NULL; | |
10213 | } Py_INCREF(Py_None); | |
10214 | _resultobj = Py_None; | |
10215 | { | |
10216 | if (_obj1) | |
10217 | delete _arg1; | |
10218 | } | |
10219 | return _resultobj; | |
10220 | } | |
10221 | ||
10222 | #define wxGenericDirCtrl_ShowHidden(_swigobj,_swigarg0) (_swigobj->ShowHidden(_swigarg0)) | |
10223 | static PyObject *_wrap_wxGenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10224 | PyObject * _resultobj; | |
10225 | wxGenericDirCtrl * _arg0; | |
10226 | bool _arg1; | |
10227 | PyObject * _argo0 = 0; | |
10228 | int tempbool1; | |
10229 | char *_kwnames[] = { "self","show", NULL }; | |
10230 | ||
10231 | self = self; | |
10232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_ShowHidden",_kwnames,&_argo0,&tempbool1)) | |
10233 | return NULL; | |
10234 | if (_argo0) { | |
10235 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10236 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ShowHidden. Expected _wxGenericDirCtrl_p."); | |
10238 | return NULL; | |
10239 | } | |
10240 | } | |
10241 | _arg1 = (bool ) tempbool1; | |
10242 | { | |
10243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10244 | wxGenericDirCtrl_ShowHidden(_arg0,_arg1); |
68320e40 RD |
10245 | |
10246 | wxPyEndAllowThreads(__tstate); | |
10247 | if (PyErr_Occurred()) return NULL; | |
10248 | } Py_INCREF(Py_None); | |
10249 | _resultobj = Py_None; | |
10250 | return _resultobj; | |
10251 | } | |
10252 | ||
10253 | #define wxGenericDirCtrl_GetShowHidden(_swigobj) (_swigobj->GetShowHidden()) | |
10254 | static PyObject *_wrap_wxGenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10255 | PyObject * _resultobj; | |
10256 | bool _result; | |
10257 | wxGenericDirCtrl * _arg0; | |
10258 | PyObject * _argo0 = 0; | |
10259 | char *_kwnames[] = { "self", NULL }; | |
10260 | ||
10261 | self = self; | |
10262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetShowHidden",_kwnames,&_argo0)) | |
10263 | return NULL; | |
10264 | if (_argo0) { | |
10265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetShowHidden. Expected _wxGenericDirCtrl_p."); | |
10268 | return NULL; | |
10269 | } | |
10270 | } | |
10271 | { | |
10272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10273 | _result = (bool )wxGenericDirCtrl_GetShowHidden(_arg0); |
68320e40 RD |
10274 | |
10275 | wxPyEndAllowThreads(__tstate); | |
10276 | if (PyErr_Occurred()) return NULL; | |
10277 | } _resultobj = Py_BuildValue("i",_result); | |
10278 | return _resultobj; | |
10279 | } | |
10280 | ||
10281 | #define wxGenericDirCtrl_GetFilter(_swigobj) (_swigobj->GetFilter()) | |
10282 | static PyObject *_wrap_wxGenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10283 | PyObject * _resultobj; | |
10284 | wxString * _result; | |
10285 | wxGenericDirCtrl * _arg0; | |
10286 | PyObject * _argo0 = 0; | |
10287 | char *_kwnames[] = { "self", NULL }; | |
10288 | ||
10289 | self = self; | |
10290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilter",_kwnames,&_argo0)) | |
10291 | return NULL; | |
10292 | if (_argo0) { | |
10293 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10294 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilter. Expected _wxGenericDirCtrl_p."); | |
10296 | return NULL; | |
10297 | } | |
10298 | } | |
10299 | { | |
10300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10301 | _result = new wxString (wxGenericDirCtrl_GetFilter(_arg0)); |
68320e40 RD |
10302 | |
10303 | wxPyEndAllowThreads(__tstate); | |
10304 | if (PyErr_Occurred()) return NULL; | |
10305 | }{ | |
c8bc7bb8 RD |
10306 | #if wxUSE_UNICODE |
10307 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10308 | #else | |
68320e40 | 10309 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10310 | #endif |
68320e40 RD |
10311 | } |
10312 | { | |
10313 | delete _result; | |
10314 | } | |
10315 | return _resultobj; | |
10316 | } | |
10317 | ||
10318 | #define wxGenericDirCtrl_SetFilter(_swigobj,_swigarg0) (_swigobj->SetFilter(_swigarg0)) | |
10319 | static PyObject *_wrap_wxGenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10320 | PyObject * _resultobj; | |
10321 | wxGenericDirCtrl * _arg0; | |
10322 | wxString * _arg1; | |
10323 | PyObject * _argo0 = 0; | |
10324 | PyObject * _obj1 = 0; | |
10325 | char *_kwnames[] = { "self","filter", NULL }; | |
10326 | ||
10327 | self = self; | |
10328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetFilter",_kwnames,&_argo0,&_obj1)) | |
10329 | return NULL; | |
10330 | if (_argo0) { | |
10331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilter. Expected _wxGenericDirCtrl_p."); | |
10334 | return NULL; | |
10335 | } | |
10336 | } | |
10337 | { | |
c8bc7bb8 RD |
10338 | _arg1 = wxString_in_helper(_obj1); |
10339 | if (_arg1 == NULL) | |
68320e40 | 10340 | return NULL; |
68320e40 RD |
10341 | } |
10342 | { | |
10343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10344 | wxGenericDirCtrl_SetFilter(_arg0,*_arg1); |
68320e40 RD |
10345 | |
10346 | wxPyEndAllowThreads(__tstate); | |
10347 | if (PyErr_Occurred()) return NULL; | |
10348 | } Py_INCREF(Py_None); | |
10349 | _resultobj = Py_None; | |
10350 | { | |
10351 | if (_obj1) | |
10352 | delete _arg1; | |
10353 | } | |
10354 | return _resultobj; | |
10355 | } | |
10356 | ||
10357 | #define wxGenericDirCtrl_GetFilterIndex(_swigobj) (_swigobj->GetFilterIndex()) | |
10358 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10359 | PyObject * _resultobj; | |
10360 | int _result; | |
10361 | wxGenericDirCtrl * _arg0; | |
10362 | PyObject * _argo0 = 0; | |
10363 | char *_kwnames[] = { "self", NULL }; | |
10364 | ||
10365 | self = self; | |
10366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterIndex",_kwnames,&_argo0)) | |
10367 | return NULL; | |
10368 | if (_argo0) { | |
10369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10372 | return NULL; | |
10373 | } | |
10374 | } | |
10375 | { | |
10376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10377 | _result = (int )wxGenericDirCtrl_GetFilterIndex(_arg0); |
68320e40 RD |
10378 | |
10379 | wxPyEndAllowThreads(__tstate); | |
10380 | if (PyErr_Occurred()) return NULL; | |
10381 | } _resultobj = Py_BuildValue("i",_result); | |
10382 | return _resultobj; | |
10383 | } | |
10384 | ||
10385 | #define wxGenericDirCtrl_SetFilterIndex(_swigobj,_swigarg0) (_swigobj->SetFilterIndex(_swigarg0)) | |
10386 | static PyObject *_wrap_wxGenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10387 | PyObject * _resultobj; | |
10388 | wxGenericDirCtrl * _arg0; | |
10389 | int _arg1; | |
10390 | PyObject * _argo0 = 0; | |
10391 | char *_kwnames[] = { "self","n", NULL }; | |
10392 | ||
10393 | self = self; | |
10394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_SetFilterIndex",_kwnames,&_argo0,&_arg1)) | |
10395 | return NULL; | |
10396 | if (_argo0) { | |
10397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10400 | return NULL; | |
10401 | } | |
10402 | } | |
10403 | { | |
10404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10405 | wxGenericDirCtrl_SetFilterIndex(_arg0,_arg1); |
68320e40 RD |
10406 | |
10407 | wxPyEndAllowThreads(__tstate); | |
10408 | if (PyErr_Occurred()) return NULL; | |
10409 | } Py_INCREF(Py_None); | |
10410 | _resultobj = Py_None; | |
10411 | return _resultobj; | |
10412 | } | |
10413 | ||
10414 | #define wxGenericDirCtrl_GetRootId(_swigobj) (_swigobj->GetRootId()) | |
10415 | static PyObject *_wrap_wxGenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10416 | PyObject * _resultobj; | |
10417 | wxTreeItemId * _result; | |
10418 | wxGenericDirCtrl * _arg0; | |
10419 | PyObject * _argo0 = 0; | |
10420 | char *_kwnames[] = { "self", NULL }; | |
10421 | char _ptemp[128]; | |
10422 | ||
10423 | self = self; | |
10424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetRootId",_kwnames,&_argo0)) | |
10425 | return NULL; | |
10426 | if (_argo0) { | |
10427 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10428 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetRootId. Expected _wxGenericDirCtrl_p."); | |
10430 | return NULL; | |
10431 | } | |
10432 | } | |
10433 | { | |
10434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10435 | _result = new wxTreeItemId (wxGenericDirCtrl_GetRootId(_arg0)); |
68320e40 RD |
10436 | |
10437 | wxPyEndAllowThreads(__tstate); | |
10438 | if (PyErr_Occurred()) return NULL; | |
10439 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
10440 | _resultobj = Py_BuildValue("s",_ptemp); | |
10441 | return _resultobj; | |
10442 | } | |
10443 | ||
10444 | #define wxGenericDirCtrl_GetTreeCtrl(_swigobj) (_swigobj->GetTreeCtrl()) | |
10445 | static PyObject *_wrap_wxGenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10446 | PyObject * _resultobj; | |
10447 | wxTreeCtrl * _result; | |
10448 | wxGenericDirCtrl * _arg0; | |
10449 | PyObject * _argo0 = 0; | |
10450 | char *_kwnames[] = { "self", NULL }; | |
68320e40 RD |
10451 | |
10452 | self = self; | |
10453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetTreeCtrl",_kwnames,&_argo0)) | |
10454 | return NULL; | |
10455 | if (_argo0) { | |
10456 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10457 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetTreeCtrl. Expected _wxGenericDirCtrl_p."); | |
10459 | return NULL; | |
10460 | } | |
10461 | } | |
10462 | { | |
10463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10464 | _result = (wxTreeCtrl *)wxGenericDirCtrl_GetTreeCtrl(_arg0); |
68320e40 RD |
10465 | |
10466 | wxPyEndAllowThreads(__tstate); | |
10467 | if (PyErr_Occurred()) return NULL; | |
9398120d | 10468 | }{ _resultobj = wxPyMake_wxObject(_result); } |
68320e40 RD |
10469 | return _resultobj; |
10470 | } | |
10471 | ||
10472 | #define wxGenericDirCtrl_GetFilterListCtrl(_swigobj) (_swigobj->GetFilterListCtrl()) | |
10473 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10474 | PyObject * _resultobj; | |
10475 | wxDirFilterListCtrl * _result; | |
10476 | wxGenericDirCtrl * _arg0; | |
10477 | PyObject * _argo0 = 0; | |
10478 | char *_kwnames[] = { "self", NULL }; | |
10479 | char _ptemp[128]; | |
10480 | ||
10481 | self = self; | |
10482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterListCtrl",_kwnames,&_argo0)) | |
10483 | return NULL; | |
10484 | if (_argo0) { | |
10485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10488 | return NULL; | |
10489 | } | |
10490 | } | |
10491 | { | |
10492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10493 | _result = (wxDirFilterListCtrl *)wxGenericDirCtrl_GetFilterListCtrl(_arg0); |
68320e40 RD |
10494 | |
10495 | wxPyEndAllowThreads(__tstate); | |
10496 | if (PyErr_Occurred()) return NULL; | |
10497 | } if (_result) { | |
10498 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10499 | _resultobj = Py_BuildValue("s",_ptemp); | |
10500 | } else { | |
10501 | Py_INCREF(Py_None); | |
10502 | _resultobj = Py_None; | |
10503 | } | |
10504 | return _resultobj; | |
10505 | } | |
10506 | ||
10507 | static void *SwigwxDirFilterListCtrlTowxChoice(void *ptr) { | |
10508 | wxDirFilterListCtrl *src; | |
10509 | wxChoice *dest; | |
10510 | src = (wxDirFilterListCtrl *) ptr; | |
10511 | dest = (wxChoice *) src; | |
10512 | return (void *) dest; | |
10513 | } | |
10514 | ||
10515 | static void *SwigwxDirFilterListCtrlTowxControlWithItems(void *ptr) { | |
10516 | wxDirFilterListCtrl *src; | |
10517 | wxControlWithItems *dest; | |
10518 | src = (wxDirFilterListCtrl *) ptr; | |
10519 | dest = (wxControlWithItems *) src; | |
10520 | return (void *) dest; | |
10521 | } | |
10522 | ||
10523 | static void *SwigwxDirFilterListCtrlTowxControl(void *ptr) { | |
10524 | wxDirFilterListCtrl *src; | |
10525 | wxControl *dest; | |
10526 | src = (wxDirFilterListCtrl *) ptr; | |
10527 | dest = (wxControl *) src; | |
10528 | return (void *) dest; | |
10529 | } | |
10530 | ||
10531 | static void *SwigwxDirFilterListCtrlTowxWindow(void *ptr) { | |
10532 | wxDirFilterListCtrl *src; | |
10533 | wxWindow *dest; | |
10534 | src = (wxDirFilterListCtrl *) ptr; | |
10535 | dest = (wxWindow *) src; | |
10536 | return (void *) dest; | |
10537 | } | |
10538 | ||
10539 | static void *SwigwxDirFilterListCtrlTowxEvtHandler(void *ptr) { | |
10540 | wxDirFilterListCtrl *src; | |
10541 | wxEvtHandler *dest; | |
10542 | src = (wxDirFilterListCtrl *) ptr; | |
10543 | dest = (wxEvtHandler *) src; | |
10544 | return (void *) dest; | |
10545 | } | |
10546 | ||
10547 | static void *SwigwxDirFilterListCtrlTowxObject(void *ptr) { | |
10548 | wxDirFilterListCtrl *src; | |
10549 | wxObject *dest; | |
10550 | src = (wxDirFilterListCtrl *) ptr; | |
10551 | dest = (wxObject *) src; | |
10552 | return (void *) dest; | |
10553 | } | |
10554 | ||
10555 | #define new_wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10556 | static PyObject *_wrap_new_wxDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10557 | PyObject * _resultobj; | |
10558 | wxDirFilterListCtrl * _result; | |
10559 | wxGenericDirCtrl * _arg0; | |
10560 | wxWindowID _arg1 = (wxWindowID ) -1; | |
10561 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
10562 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
10563 | long _arg4 = (long ) 0; | |
10564 | PyObject * _argo0 = 0; | |
10565 | wxPoint temp; | |
10566 | PyObject * _obj2 = 0; | |
10567 | wxSize temp0; | |
10568 | PyObject * _obj3 = 0; | |
10569 | char *_kwnames[] = { "parent","id","pos","size","style", NULL }; | |
10570 | char _ptemp[128]; | |
10571 | ||
10572 | self = self; | |
10573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxDirFilterListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
10574 | return NULL; | |
10575 | if (_argo0) { | |
10576 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10577 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDirFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10579 | return NULL; | |
10580 | } | |
10581 | } | |
10582 | if (_obj2) | |
10583 | { | |
10584 | _arg2 = &temp; | |
10585 | if (! wxPoint_helper(_obj2, &_arg2)) | |
10586 | return NULL; | |
10587 | } | |
10588 | if (_obj3) | |
10589 | { | |
10590 | _arg3 = &temp0; | |
10591 | if (! wxSize_helper(_obj3, &_arg3)) | |
10592 | return NULL; | |
10593 | } | |
10594 | { | |
10595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10596 | _result = (wxDirFilterListCtrl *)new_wxDirFilterListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
68320e40 RD |
10597 | |
10598 | wxPyEndAllowThreads(__tstate); | |
10599 | if (PyErr_Occurred()) return NULL; | |
10600 | } if (_result) { | |
10601 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10602 | _resultobj = Py_BuildValue("s",_ptemp); | |
10603 | } else { | |
10604 | Py_INCREF(Py_None); | |
10605 | _resultobj = Py_None; | |
10606 | } | |
10607 | return _resultobj; | |
10608 | } | |
10609 | ||
10610 | #define new_wxPreDirFilterListCtrl() (new wxDirFilterListCtrl()) | |
10611 | static PyObject *_wrap_new_wxPreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10612 | PyObject * _resultobj; | |
10613 | wxDirFilterListCtrl * _result; | |
10614 | char *_kwnames[] = { NULL }; | |
10615 | char _ptemp[128]; | |
10616 | ||
10617 | self = self; | |
10618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreDirFilterListCtrl",_kwnames)) | |
10619 | return NULL; | |
10620 | { | |
10621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10622 | _result = (wxDirFilterListCtrl *)new_wxPreDirFilterListCtrl(); |
68320e40 RD |
10623 | |
10624 | wxPyEndAllowThreads(__tstate); | |
10625 | if (PyErr_Occurred()) return NULL; | |
10626 | } if (_result) { | |
10627 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10628 | _resultobj = Py_BuildValue("s",_ptemp); | |
10629 | } else { | |
10630 | Py_INCREF(Py_None); | |
10631 | _resultobj = Py_None; | |
10632 | } | |
10633 | return _resultobj; | |
10634 | } | |
10635 | ||
10636 | #define wxDirFilterListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10637 | static PyObject *_wrap_wxDirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10638 | PyObject * _resultobj; | |
10639 | bool _result; | |
10640 | wxDirFilterListCtrl * _arg0; | |
10641 | wxGenericDirCtrl * _arg1; | |
10642 | wxWindowID _arg2 = (wxWindowID ) -1; | |
10643 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
10644 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
10645 | long _arg5 = (long ) 0; | |
10646 | PyObject * _argo0 = 0; | |
10647 | PyObject * _argo1 = 0; | |
10648 | wxPoint temp; | |
10649 | PyObject * _obj3 = 0; | |
10650 | wxSize temp0; | |
10651 | PyObject * _obj4 = 0; | |
10652 | char *_kwnames[] = { "self","parent","id","pos","size","style", NULL }; | |
10653 | ||
10654 | self = self; | |
10655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOl:wxDirFilterListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5)) | |
10656 | return NULL; | |
10657 | if (_argo0) { | |
10658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
10660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_Create. Expected _wxDirFilterListCtrl_p."); | |
10661 | return NULL; | |
10662 | } | |
10663 | } | |
10664 | if (_argo1) { | |
10665 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10666 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxGenericDirCtrl_p")) { | |
10667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDirFilterListCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
10668 | return NULL; | |
10669 | } | |
10670 | } | |
10671 | if (_obj3) | |
10672 | { | |
10673 | _arg3 = &temp; | |
10674 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10675 | return NULL; | |
10676 | } | |
10677 | if (_obj4) | |
10678 | { | |
10679 | _arg4 = &temp0; | |
10680 | if (! wxSize_helper(_obj4, &_arg4)) | |
10681 | return NULL; | |
10682 | } | |
10683 | { | |
10684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10685 | _result = (bool )wxDirFilterListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5); |
68320e40 RD |
10686 | |
10687 | wxPyEndAllowThreads(__tstate); | |
10688 | if (PyErr_Occurred()) return NULL; | |
10689 | } _resultobj = Py_BuildValue("i",_result); | |
10690 | return _resultobj; | |
10691 | } | |
10692 | ||
10693 | #define wxDirFilterListCtrl_FillFilterList(_swigobj,_swigarg0,_swigarg1) (_swigobj->FillFilterList(_swigarg0,_swigarg1)) | |
10694 | static PyObject *_wrap_wxDirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10695 | PyObject * _resultobj; | |
10696 | wxDirFilterListCtrl * _arg0; | |
10697 | wxString * _arg1; | |
10698 | int _arg2; | |
10699 | PyObject * _argo0 = 0; | |
10700 | PyObject * _obj1 = 0; | |
10701 | char *_kwnames[] = { "self","filter","defaultFilter", NULL }; | |
10702 | ||
10703 | self = self; | |
10704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxDirFilterListCtrl_FillFilterList",_kwnames,&_argo0,&_obj1,&_arg2)) | |
10705 | return NULL; | |
10706 | if (_argo0) { | |
10707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
10709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_FillFilterList. Expected _wxDirFilterListCtrl_p."); | |
10710 | return NULL; | |
10711 | } | |
10712 | } | |
10713 | { | |
c8bc7bb8 RD |
10714 | _arg1 = wxString_in_helper(_obj1); |
10715 | if (_arg1 == NULL) | |
68320e40 | 10716 | return NULL; |
68320e40 RD |
10717 | } |
10718 | { | |
10719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10720 | wxDirFilterListCtrl_FillFilterList(_arg0,*_arg1,_arg2); |
68320e40 RD |
10721 | |
10722 | wxPyEndAllowThreads(__tstate); | |
10723 | if (PyErr_Occurred()) return NULL; | |
10724 | } Py_INCREF(Py_None); | |
10725 | _resultobj = Py_None; | |
10726 | { | |
10727 | if (_obj1) | |
10728 | delete _arg1; | |
10729 | } | |
10730 | return _resultobj; | |
10731 | } | |
10732 | ||
8ab979d7 | 10733 | static PyMethodDef controls2cMethods[] = { |
68320e40 RD |
10734 | { "wxDirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_wxDirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, |
10735 | { "wxDirFilterListCtrl_Create", (PyCFunction) _wrap_wxDirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10736 | { "new_wxPreDirFilterListCtrl", (PyCFunction) _wrap_new_wxPreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10737 | { "new_wxDirFilterListCtrl", (PyCFunction) _wrap_new_wxDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10738 | { "wxGenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10739 | { "wxGenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10740 | { "wxGenericDirCtrl_GetRootId", (PyCFunction) _wrap_wxGenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
10741 | { "wxGenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
10742 | { "wxGenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
10743 | { "wxGenericDirCtrl_SetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
10744 | { "wxGenericDirCtrl_GetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
10745 | { "wxGenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
10746 | { "wxGenericDirCtrl_ShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
10747 | { "wxGenericDirCtrl_SetPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
10748 | { "wxGenericDirCtrl_GetFilePath", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
10749 | { "wxGenericDirCtrl_GetPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
10750 | { "wxGenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
10751 | { "wxGenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
10752 | { "wxGenericDirCtrl_ExpandPath", (PyCFunction) _wrap_wxGenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
10753 | { "wxGenericDirCtrl_Create", (PyCFunction) _wrap_wxGenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10754 | { "new_wxPreGenericDirCtrl", (PyCFunction) _wrap_new_wxPreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10755 | { "new_wxGenericDirCtrl", (PyCFunction) _wrap_new_wxGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10756 | { "wxDirItemData_m_isDir_get", (PyCFunction) _wrap_wxDirItemData_m_isDir_get, METH_VARARGS | METH_KEYWORDS }, | |
10757 | { "wxDirItemData_m_isDir_set", (PyCFunction) _wrap_wxDirItemData_m_isDir_set, METH_VARARGS | METH_KEYWORDS }, | |
10758 | { "wxDirItemData_m_isExpanded_get", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_get, METH_VARARGS | METH_KEYWORDS }, | |
10759 | { "wxDirItemData_m_isExpanded_set", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_set, METH_VARARGS | METH_KEYWORDS }, | |
10760 | { "wxDirItemData_m_isHidden_get", (PyCFunction) _wrap_wxDirItemData_m_isHidden_get, METH_VARARGS | METH_KEYWORDS }, | |
10761 | { "wxDirItemData_m_isHidden_set", (PyCFunction) _wrap_wxDirItemData_m_isHidden_set, METH_VARARGS | METH_KEYWORDS }, | |
10762 | { "wxDirItemData_m_name_get", (PyCFunction) _wrap_wxDirItemData_m_name_get, METH_VARARGS | METH_KEYWORDS }, | |
10763 | { "wxDirItemData_m_name_set", (PyCFunction) _wrap_wxDirItemData_m_name_set, METH_VARARGS | METH_KEYWORDS }, | |
10764 | { "wxDirItemData_m_path_get", (PyCFunction) _wrap_wxDirItemData_m_path_get, METH_VARARGS | METH_KEYWORDS }, | |
10765 | { "wxDirItemData_m_path_set", (PyCFunction) _wrap_wxDirItemData_m_path_set, METH_VARARGS | METH_KEYWORDS }, | |
10766 | { "wxDirItemData_SetNewDirName", (PyCFunction) _wrap_wxDirItemData_SetNewDirName, METH_VARARGS | METH_KEYWORDS }, | |
10767 | { "new_wxDirItemData", (PyCFunction) _wrap_new_wxDirItemData, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10768 | { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10769 | { "wxTreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_wxTreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 RD |
10770 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, |
10771 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10772 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10773 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
10774 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
10775 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10776 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10777 | { "wxTreeCtrl_EndEditLabel", (PyCFunction) _wrap_wxTreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, |
10778 | { "wxTreeCtrl_GetEditControl", (PyCFunction) _wrap_wxTreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
10779 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
10780 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
10781 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
10782 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
10783 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
10784 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
10785 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
10786 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
10787 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
10788 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
10789 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
10790 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
10791 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
10792 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10793 | { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10794 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, |
10795 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
10796 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10797 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10798 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, |
10799 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
10800 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
10801 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
10802 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
10803 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
10804 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
10805 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10806 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 10807 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10808 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
10809 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
10810 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
10811 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
10812 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
10813 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
10814 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, | |
10815 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
10816 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10817 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10818 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
10819 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
10820 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10821 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10822 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
10823 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10824 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
10825 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, |
10826 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
00b6c4e3 RD |
10827 | { "wxTreeCtrl_AssignStateImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, |
10828 | { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10829 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, |
10830 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10831 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
10832 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10833 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
10834 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
10835 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 10836 | { "wxTreeCtrl__setCallbackInfo", (PyCFunction) _wrap_wxTreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
10837 | { "wxTreeCtrl_Create", (PyCFunction) _wrap_wxTreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
10838 | { "new_wxPreTreeCtrl", (PyCFunction) _wrap_new_wxPreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10839 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, |
10840 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10841 | { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
ecc08ead | 10842 | { "wxTreeEvent_GetKeyEvent", (PyCFunction) _wrap_wxTreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10843 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, |
10844 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
10845 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
00b6c4e3 | 10846 | { "new_wxTreeEvent", (PyCFunction) _wrap_new_wxTreeEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10847 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, |
10848 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
10849 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
10850 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10851 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10852 | { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10853 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, |
10854 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
10855 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
00b6c4e3 RD |
10856 | { "wxTreeItemAttr_GetFont", (PyCFunction) _wrap_wxTreeItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, |
10857 | { "wxTreeItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10858 | { "wxTreeItemAttr_GetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10859 | { "wxTreeItemAttr_HasFont", (PyCFunction) _wrap_wxTreeItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
10860 | { "wxTreeItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10861 | { "wxTreeItemAttr_HasTextColour", (PyCFunction) _wrap_wxTreeItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10862 | { "wxTreeItemAttr_SetFont", (PyCFunction) _wrap_wxTreeItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10863 | { "wxTreeItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10864 | { "wxTreeItemAttr_SetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10865 | { "new_wxTreeItemAttr", (PyCFunction) _wrap_new_wxTreeItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
6d19860f RD |
10866 | { "wxListView_ClearColumnImage", (PyCFunction) _wrap_wxListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, |
10867 | { "wxListView_SetColumnImage", (PyCFunction) _wrap_wxListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
10868 | { "wxListView_IsSelected", (PyCFunction) _wrap_wxListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
10869 | { "wxListView_GetFirstSelected", (PyCFunction) _wrap_wxListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
10870 | { "wxListView_GetNextSelected", (PyCFunction) _wrap_wxListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
10871 | { "wxListView_GetFocusedItem", (PyCFunction) _wrap_wxListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
10872 | { "wxListView_Focus", (PyCFunction) _wrap_wxListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
10873 | { "wxListView_Select", (PyCFunction) _wrap_wxListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
10874 | { "wxListView_Create", (PyCFunction) _wrap_wxListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
10875 | { "new_wxPreListView", (PyCFunction) _wrap_new_wxPreListView, METH_VARARGS | METH_KEYWORDS }, | |
10876 | { "new_wxListView", (PyCFunction) _wrap_new_wxListView, METH_VARARGS | METH_KEYWORDS }, | |
dcd38683 | 10877 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, |
3bd1e033 RD |
10878 | { "wxListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_wxListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
10879 | { "wxListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10880 | { "wxListCtrl_GetItemTextColour", (PyCFunction) _wrap_wxListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10881 | { "wxListCtrl_SetItemTextColour", (PyCFunction) _wrap_wxListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10882 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, |
c7e7022c RD |
10883 | { "wxListCtrl_SetItemCount", (PyCFunction) _wrap_wxListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, |
10884 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
10885 | { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10886 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, |
10887 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
10888 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
10889 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10890 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10891 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, |
10892 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
10893 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
10894 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10895 | { "wxListCtrl_EndEditLabel", (PyCFunction) _wrap_wxListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, |
10896 | { "wxListCtrl_EditLabel", (PyCFunction) _wrap_wxListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
10897 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
10898 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
10899 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
10900 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
10901 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
10902 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
c7e7022c RD |
10903 | { "wxListCtrl_RefreshItems", (PyCFunction) _wrap_wxListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, |
10904 | { "wxListCtrl_RefreshItem", (PyCFunction) _wrap_wxListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
10905 | { "wxListCtrl_IsVirtual", (PyCFunction) _wrap_wxListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
10906 | { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
10907 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10908 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10909 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
10910 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
10911 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
10912 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
10913 | { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10914 | { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10915 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10916 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
10917 | { "wxListCtrl_GetColumnCount", (PyCFunction) _wrap_wxListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
10918 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10919 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
10920 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
10921 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
10922 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10923 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10924 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10925 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10926 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10927 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
10928 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
10929 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
10930 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
10931 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
10932 | { "wxListCtrl_GetEditControl", (PyCFunction) _wrap_wxListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
10933 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
10934 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
10935 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
10936 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10937 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10938 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10939 | { "wxListCtrl_SetForegroundColour", (PyCFunction) _wrap_wxListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 10940 | { "wxListCtrl__setCallbackInfo", (PyCFunction) _wrap_wxListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
10941 | { "wxListCtrl_Create", (PyCFunction) _wrap_wxListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
10942 | { "new_wxPreListCtrl", (PyCFunction) _wrap_new_wxPreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10943 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, |
6d19860f RD |
10944 | { "wxListEvent_GetCacheTo", (PyCFunction) _wrap_wxListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, |
10945 | { "wxListEvent_GetCacheFrom", (PyCFunction) _wrap_wxListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10946 | { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, |
10947 | { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
10948 | { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10949 | { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
10950 | { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10951 | { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10952 | { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10953 | { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
10954 | { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, |
10955 | { "wxListEvent_GetCode", (PyCFunction) _wrap_wxListEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10956 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10957 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10958 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10959 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
ebf4302c | 10960 | { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10961 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, |
6d19860f | 10962 | { "new_wxListEvent", (PyCFunction) _wrap_new_wxListEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10963 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, |
10964 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
10965 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
10966 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
10967 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
10968 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
10969 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
10970 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
10971 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
10972 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
10973 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
10974 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
10975 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
10976 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
10977 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
10978 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
10979 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
10980 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
10981 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
10982 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10983 | { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, |
10984 | { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10985 | { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10986 | { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
10987 | { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
10988 | { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
10989 | { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10990 | { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10991 | { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
10992 | { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10993 | { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
10994 | { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10995 | { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
10996 | { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
10997 | { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10998 | { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10999 | { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11000 | { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
11001 | { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11002 | { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
11003 | { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
11004 | { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
11005 | { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
11006 | { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
11007 | { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
11008 | { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
11009 | { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
11010 | { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
11011 | { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11012 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
11013 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
11014 | { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11015 | { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11016 | { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11017 | { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
11018 | { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11019 | { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11020 | { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11021 | { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11022 | { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11023 | { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
11024 | { NULL, NULL } |
11025 | }; | |
1d99702e RD |
11026 | #ifdef __cplusplus |
11027 | } | |
11028 | #endif | |
11029 | /* | |
11030 | * This table is used by the pointer type-checker | |
11031 | */ | |
11032 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 11033 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, |
1d99702e | 11034 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, |
1d99702e | 11035 | { "_signed_long","_long",0}, |
b1462dfa | 11036 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
11037 | { "_wxPrintQuality","_int",0}, |
11038 | { "_wxPrintQuality","_signed_int",0}, | |
11039 | { "_wxPrintQuality","_unsigned_int",0}, | |
11040 | { "_wxPrintQuality","_wxWindowID",0}, | |
11041 | { "_wxPrintQuality","_uint",0}, | |
11042 | { "_wxPrintQuality","_EBool",0}, | |
11043 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11044 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 11045 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, |
c368d904 | 11046 | { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
1d99702e | 11047 | { "_byte","_unsigned_char",0}, |
68320e40 | 11048 | { "_wxChoice","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxChoice}, |
1d99702e RD |
11049 | { "_long","_unsigned_long",0}, |
11050 | { "_long","_signed_long",0}, | |
b1462dfa | 11051 | { "_size_t","_wxCoord",0}, |
1d99702e | 11052 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11053 | { "_size_t","_time_t",0}, |
1d99702e RD |
11054 | { "_size_t","_unsigned_int",0}, |
11055 | { "_size_t","_int",0}, | |
11056 | { "_size_t","_wxWindowID",0}, | |
11057 | { "_size_t","_uint",0}, | |
b1462dfa | 11058 | { "_uint","_wxCoord",0}, |
1d99702e | 11059 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11060 | { "_uint","_time_t",0}, |
1d99702e RD |
11061 | { "_uint","_size_t",0}, |
11062 | { "_uint","_unsigned_int",0}, | |
11063 | { "_uint","_int",0}, | |
11064 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11065 | { "_wxChar","_char",0}, |
1d99702e | 11066 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, |
1d99702e | 11067 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, |
f6bcfd97 | 11068 | { "_char","_wxChar",0}, |
cdf14688 | 11069 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 11070 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
11071 | { "_EBool","_wxPrintQuality",0}, |
11072 | { "_EBool","_signed_int",0}, | |
11073 | { "_EBool","_int",0}, | |
11074 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 11075 | { "_unsigned_long","_long",0}, |
cdf14688 | 11076 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 11077 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
11078 | { "_signed_int","_wxPrintQuality",0}, |
11079 | { "_signed_int","_EBool",0}, | |
11080 | { "_signed_int","_wxWindowID",0}, | |
11081 | { "_signed_int","_int",0}, | |
1d99702e RD |
11082 | { "_WXTYPE","_short",0}, |
11083 | { "_WXTYPE","_signed_short",0}, | |
11084 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
11085 | { "_unsigned_short","_WXTYPE",0}, |
11086 | { "_unsigned_short","_short",0}, | |
68320e40 RD |
11087 | { "_wxObject","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxObject}, |
11088 | { "_wxObject","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxObject}, | |
11089 | { "_wxObject","_wxDirItemData",SwigwxDirItemDataTowxObject}, | |
9416aa89 | 11090 | { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, |
9416aa89 | 11091 | { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject}, |
9416aa89 | 11092 | { "_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, |
6d19860f | 11093 | { "_wxObject","_wxListView",SwigwxListViewTowxObject}, |
c7e7022c | 11094 | { "_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, |
9416aa89 | 11095 | { "_wxObject","_wxListEvent",SwigwxListEventTowxObject}, |
9416aa89 | 11096 | { "_wxObject","_wxListItem",SwigwxListItemTowxObject}, |
1d99702e RD |
11097 | { "_signed_short","_WXTYPE",0}, |
11098 | { "_signed_short","_short",0}, | |
1d99702e | 11099 | { "_unsigned_char","_byte",0}, |
68320e40 RD |
11100 | { "_wxControl","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControl}, |
11101 | { "_wxControl","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxControl}, | |
f6bcfd97 | 11102 | { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
6d19860f | 11103 | { "_wxControl","_wxListView",SwigwxListViewTowxControl}, |
c7e7022c | 11104 | { "_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, |
b1462dfa | 11105 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 11106 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 11107 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
11108 | { "_unsigned_int","_size_t",0}, |
11109 | { "_unsigned_int","_uint",0}, | |
11110 | { "_unsigned_int","_wxWindowID",0}, | |
11111 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
11112 | { "_short","_WXTYPE",0}, |
11113 | { "_short","_unsigned_short",0}, | |
11114 | { "_short","_signed_short",0}, | |
68320e40 | 11115 | { "_wxControlWithItems","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControlWithItems}, |
b1462dfa | 11116 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 11117 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 11118 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
11119 | { "_wxWindowID","_size_t",0}, |
11120 | { "_wxWindowID","_EBool",0}, | |
11121 | { "_wxWindowID","_uint",0}, | |
11122 | { "_wxWindowID","_int",0}, | |
11123 | { "_wxWindowID","_signed_int",0}, | |
11124 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 11125 | { "_int","_wxCoord",0}, |
1d99702e | 11126 | { "_int","_wxPrintQuality",0}, |
c368d904 | 11127 | { "_int","_time_t",0}, |
1d99702e RD |
11128 | { "_int","_size_t",0}, |
11129 | { "_int","_EBool",0}, | |
11130 | { "_int","_uint",0}, | |
11131 | { "_int","_wxWindowID",0}, | |
11132 | { "_int","_unsigned_int",0}, | |
11133 | { "_int","_signed_int",0}, | |
c368d904 RD |
11134 | { "_time_t","_wxCoord",0}, |
11135 | { "_time_t","_wxPrintQuality",0}, | |
11136 | { "_time_t","_unsigned_int",0}, | |
11137 | { "_time_t","_int",0}, | |
11138 | { "_time_t","_wxWindowID",0}, | |
11139 | { "_time_t","_uint",0}, | |
11140 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
11141 | { "_wxCoord","_int",0}, |
11142 | { "_wxCoord","_signed_int",0}, | |
11143 | { "_wxCoord","_unsigned_int",0}, | |
11144 | { "_wxCoord","_wxWindowID",0}, | |
11145 | { "_wxCoord","_uint",0}, | |
11146 | { "_wxCoord","_EBool",0}, | |
11147 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11148 | { "_wxCoord","_time_t",0}, |
b1462dfa | 11149 | { "_wxCoord","_wxPrintQuality",0}, |
6d19860f | 11150 | { "_wxPyListCtrl","_wxListView",SwigwxListViewTowxPyListCtrl}, |
68320e40 RD |
11151 | { "_wxEvtHandler","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxEvtHandler}, |
11152 | { "_wxEvtHandler","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxEvtHandler}, | |
f6bcfd97 | 11153 | { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
6d19860f | 11154 | { "_wxEvtHandler","_wxListView",SwigwxListViewTowxEvtHandler}, |
c7e7022c | 11155 | { "_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, |
68320e40 RD |
11156 | { "_wxWindow","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxWindow}, |
11157 | { "_wxWindow","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxWindow}, | |
f6bcfd97 | 11158 | { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
6d19860f | 11159 | { "_wxWindow","_wxListView",SwigwxListViewTowxWindow}, |
c7e7022c | 11160 | { "_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, |
1d99702e RD |
11161 | {0,0,0}}; |
11162 | ||
8ab979d7 RD |
11163 | static PyObject *SWIG_globals; |
11164 | #ifdef __cplusplus | |
11165 | extern "C" | |
11166 | #endif | |
1d99702e | 11167 | SWIGEXPORT(void) initcontrols2c() { |
8ab979d7 RD |
11168 | PyObject *m, *d; |
11169 | SWIG_globals = SWIG_newvarlink(); | |
11170 | m = Py_InitModule("controls2c", controls2cMethods); | |
11171 | d = PyModule_GetDict(m); | |
c7e7022c RD |
11172 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
11173 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
11174 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
11175 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
11176 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
11177 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
11178 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO)); | |
11179 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO)); | |
11180 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
11181 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
11182 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN)); | |
11183 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
11184 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK)); | |
11185 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
11186 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
11187 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
11188 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_CACHE_HINT)); | |
6d19860f RD |
11189 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); |
11190 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
11191 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
11192 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
d8200036 | 11193 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_FOCUSED)); |
c7e7022c RD |
11194 | PyDict_SetItemString(d,"wxLC_VRULES", PyInt_FromLong((long) wxLC_VRULES)); |
11195 | PyDict_SetItemString(d,"wxLC_HRULES", PyInt_FromLong((long) wxLC_HRULES)); | |
11196 | PyDict_SetItemString(d,"wxLC_ICON", PyInt_FromLong((long) wxLC_ICON)); | |
11197 | PyDict_SetItemString(d,"wxLC_SMALL_ICON", PyInt_FromLong((long) wxLC_SMALL_ICON)); | |
11198 | PyDict_SetItemString(d,"wxLC_LIST", PyInt_FromLong((long) wxLC_LIST)); | |
11199 | PyDict_SetItemString(d,"wxLC_REPORT", PyInt_FromLong((long) wxLC_REPORT)); | |
11200 | PyDict_SetItemString(d,"wxLC_ALIGN_TOP", PyInt_FromLong((long) wxLC_ALIGN_TOP)); | |
11201 | PyDict_SetItemString(d,"wxLC_ALIGN_LEFT", PyInt_FromLong((long) wxLC_ALIGN_LEFT)); | |
11202 | PyDict_SetItemString(d,"wxLC_AUTOARRANGE", PyInt_FromLong((long) wxLC_AUTOARRANGE)); | |
11203 | PyDict_SetItemString(d,"wxLC_VIRTUAL", PyInt_FromLong((long) wxLC_VIRTUAL)); | |
11204 | PyDict_SetItemString(d,"wxLC_EDIT_LABELS", PyInt_FromLong((long) wxLC_EDIT_LABELS)); | |
11205 | PyDict_SetItemString(d,"wxLC_NO_HEADER", PyInt_FromLong((long) wxLC_NO_HEADER)); | |
11206 | PyDict_SetItemString(d,"wxLC_NO_SORT_HEADER", PyInt_FromLong((long) wxLC_NO_SORT_HEADER)); | |
11207 | PyDict_SetItemString(d,"wxLC_SINGLE_SEL", PyInt_FromLong((long) wxLC_SINGLE_SEL)); | |
11208 | PyDict_SetItemString(d,"wxLC_SORT_ASCENDING", PyInt_FromLong((long) wxLC_SORT_ASCENDING)); | |
11209 | PyDict_SetItemString(d,"wxLC_SORT_DESCENDING", PyInt_FromLong((long) wxLC_SORT_DESCENDING)); | |
11210 | PyDict_SetItemString(d,"wxLC_MASK_TYPE", PyInt_FromLong((long) wxLC_MASK_TYPE)); | |
11211 | PyDict_SetItemString(d,"wxLC_MASK_ALIGN", PyInt_FromLong((long) wxLC_MASK_ALIGN)); | |
11212 | PyDict_SetItemString(d,"wxLC_MASK_SORT", PyInt_FromLong((long) wxLC_MASK_SORT)); | |
6d19860f | 11213 | PyDict_SetItemString(d,"wxLC_USER_TEXT", PyInt_FromLong((long) wxLC_USER_TEXT)); |
c7e7022c | 11214 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); |
af309447 RD |
11215 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); |
11216 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
11217 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
c7e7022c | 11218 | PyDict_SetItemString(d,"wxLIST_SET_ITEM", PyInt_FromLong((long) wxLIST_SET_ITEM)); |
af309447 RD |
11219 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); |
11220 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
11221 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); | |
11222 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
11223 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
11224 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
11225 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
11226 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
11227 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
11228 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
11229 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
11230 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
11231 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
11232 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
11233 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
11234 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
11235 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
11236 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
11237 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
11238 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
11239 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
11240 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
11241 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
11242 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
11243 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
11244 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
af309447 RD |
11245 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); |
11246 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
11247 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
11248 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
11249 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
11250 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
11251 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
11252 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
11253 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
f6bcfd97 BP |
11254 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); |
11255 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
11256 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
11257 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
00b6c4e3 RD |
11258 | PyDict_SetItemString(d,"wxTR_NO_BUTTONS", PyInt_FromLong((long) wxTR_NO_BUTTONS)); |
11259 | PyDict_SetItemString(d,"wxTR_HAS_BUTTONS", PyInt_FromLong((long) wxTR_HAS_BUTTONS)); | |
11260 | PyDict_SetItemString(d,"wxTR_TWIST_BUTTONS", PyInt_FromLong((long) wxTR_TWIST_BUTTONS)); | |
11261 | PyDict_SetItemString(d,"wxTR_NO_LINES", PyInt_FromLong((long) wxTR_NO_LINES)); | |
11262 | PyDict_SetItemString(d,"wxTR_MAC_BUTTONS", PyInt_FromLong((long) wxTR_MAC_BUTTONS)); | |
b5a5d647 | 11263 | PyDict_SetItemString(d,"wxTR_AQUA_BUTTONS", PyInt_FromLong((long) wxTR_AQUA_BUTTONS)); |
00b6c4e3 RD |
11264 | PyDict_SetItemString(d,"wxTR_SINGLE", PyInt_FromLong((long) wxTR_SINGLE)); |
11265 | PyDict_SetItemString(d,"wxTR_MULTIPLE", PyInt_FromLong((long) wxTR_MULTIPLE)); | |
11266 | PyDict_SetItemString(d,"wxTR_EXTENDED", PyInt_FromLong((long) wxTR_EXTENDED)); | |
b5a5d647 | 11267 | PyDict_SetItemString(d,"wxTR_FULL_ROW_HIGHLIGHT", PyInt_FromLong((long) wxTR_FULL_ROW_HIGHLIGHT)); |
00b6c4e3 RD |
11268 | PyDict_SetItemString(d,"wxTR_EDIT_LABELS", PyInt_FromLong((long) wxTR_EDIT_LABELS)); |
11269 | PyDict_SetItemString(d,"wxTR_LINES_AT_ROOT", PyInt_FromLong((long) wxTR_LINES_AT_ROOT)); | |
11270 | PyDict_SetItemString(d,"wxTR_HIDE_ROOT", PyInt_FromLong((long) wxTR_HIDE_ROOT)); | |
11271 | PyDict_SetItemString(d,"wxTR_ROW_LINES", PyInt_FromLong((long) wxTR_ROW_LINES)); | |
11272 | PyDict_SetItemString(d,"wxTR_HAS_VARIABLE_ROW_HEIGHT", PyInt_FromLong((long) wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
11273 | PyDict_SetItemString(d,"wxTR_DEFAULT_STYLE", PyInt_FromLong((long) wxTR_DEFAULT_STYLE)); | |
694759cf RD |
11274 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); |
11275 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
11276 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
11277 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
11278 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
164b735b RD |
11279 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); |
11280 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
11281 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
11282 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
11283 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
11284 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
11285 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
11286 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
11287 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
11288 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
11289 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
11290 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
11291 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
11292 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
1b62f00d RD |
11293 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
11294 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
11295 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
11296 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
11297 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
11298 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO)); | |
11299 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO)); | |
11300 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
11301 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
11302 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
11303 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
11304 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
11305 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
11306 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN)); | |
11307 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
11308 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
11309 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
d1679124 | 11310 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG)); |
68320e40 RD |
11311 | PyDict_SetItemString(d,"wxDIRCTRL_DIR_ONLY", PyInt_FromLong((long) wxDIRCTRL_DIR_ONLY)); |
11312 | PyDict_SetItemString(d,"wxDIRCTRL_SELECT_FIRST", PyInt_FromLong((long) wxDIRCTRL_SELECT_FIRST)); | |
11313 | PyDict_SetItemString(d,"wxDIRCTRL_SHOW_FILTERS", PyInt_FromLong((long) wxDIRCTRL_SHOW_FILTERS)); | |
11314 | PyDict_SetItemString(d,"wxDIRCTRL_3D_INTERNAL", PyInt_FromLong((long) wxDIRCTRL_3D_INTERNAL)); | |
7cdaed0b | 11315 | PyDict_SetItemString(d,"wxDIRCTRL_EDIT_LABELS", PyInt_FromLong((long) wxDIRCTRL_EDIT_LABELS)); |
db0ff83e RD |
11316 | PyDict_SetItemString(d,"wxID_TREECTRL", PyInt_FromLong((long) wxID_TREECTRL)); |
11317 | PyDict_SetItemString(d,"wxID_FILTERLISTCTRL", PyInt_FromLong((long) wxID_FILTERLISTCTRL)); | |
9416aa89 | 11318 | |
a3fbed81 | 11319 | // Map renamed classes back to their common name for OOR |
9416aa89 RD |
11320 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); |
11321 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
a3fbed81 | 11322 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); |
1d99702e RD |
11323 | { |
11324 | int i; | |
11325 | for (i = 0; _swig_mapping[i].n1; i++) | |
11326 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11327 | } | |
8ab979d7 | 11328 | } |