]>
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("")); | |
0815db26 RD |
103 | |
104 | static const long longzero = 0; | |
09f3d4e6 | 105 | // C++ Version of a Python aware class |
c7e7022c RD |
106 | class wxPyListCtrl : public wxListCtrl { |
107 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
108 | public: | |
09f3d4e6 | 109 | wxPyListCtrl() : wxListCtrl() {} |
c7e7022c RD |
110 | wxPyListCtrl(wxWindow* parent, wxWindowID id, |
111 | const wxPoint& pos, | |
112 | const wxSize& size, | |
113 | long style, | |
114 | const wxValidator& validator, | |
137b5242 | 115 | const wxString& name) : |
c7e7022c RD |
116 | wxListCtrl(parent, id, pos, size, style, validator, name) {} |
117 | ||
09f3d4e6 RD |
118 | bool Create(wxWindow* parent, wxWindowID id, |
119 | const wxPoint& pos, | |
120 | const wxSize& size, | |
121 | long style, | |
122 | const wxValidator& validator, | |
137b5242 | 123 | const wxString& name) { |
09f3d4e6 RD |
124 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); |
125 | } | |
126 | ||
c7e7022c RD |
127 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); |
128 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
129 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
130 | ||
131 | PYPRIVATE; | |
132 | }; | |
133 | ||
134 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
135 | ||
136 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
137 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
138 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
6d19860f | 139 | // Python aware sorting function for wxPyListCtrl |
f6bcfd97 | 140 | int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { |
dcd38683 RD |
141 | int retval = 0; |
142 | PyObject* func = (PyObject*)funcPtr; | |
4268f798 | 143 | wxPyBeginBlockThreads(); |
dcd38683 RD |
144 | |
145 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
146 | PyObject* result = PyEval_CallObject(func, args); | |
147 | Py_DECREF(args); | |
148 | if (result) { | |
149 | retval = PyInt_AsLong(result); | |
150 | Py_DECREF(result); | |
151 | } | |
152 | ||
4268f798 | 153 | wxPyEndBlockThreads(); |
dcd38683 RD |
154 | return retval; |
155 | } | |
156 | ||
157 | ||
cf694132 RD |
158 | class wxPyTreeItemData : public wxTreeItemData { |
159 | public: | |
160 | wxPyTreeItemData(PyObject* obj = NULL) { | |
c368d904 | 161 | if (obj == NULL) |
cf694132 | 162 | obj = Py_None; |
c368d904 RD |
163 | Py_INCREF(obj); |
164 | m_obj = obj; | |
cf694132 RD |
165 | } |
166 | ||
167 | ~wxPyTreeItemData() { | |
4268f798 | 168 | wxPyBeginBlockThreads(); |
c368d904 | 169 | Py_DECREF(m_obj); |
4268f798 | 170 | wxPyEndBlockThreads(); |
cf694132 RD |
171 | } |
172 | ||
173 | PyObject* GetData() { | |
174 | Py_INCREF(m_obj); | |
175 | return m_obj; | |
176 | } | |
177 | ||
178 | void SetData(PyObject* obj) { | |
4268f798 | 179 | wxPyBeginBlockThreads(); |
cf694132 | 180 | Py_DECREF(m_obj); |
4268f798 | 181 | wxPyEndBlockThreads(); |
cf694132 RD |
182 | m_obj = obj; |
183 | Py_INCREF(obj); | |
184 | } | |
185 | ||
186 | PyObject* m_obj; | |
187 | }; | |
09f3d4e6 | 188 | // C++ version of Python aware wxTreeCtrl |
f6bcfd97 | 189 | class wxPyTreeCtrl : public wxTreeCtrl { |
3b36695d | 190 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); |
f6bcfd97 | 191 | public: |
09f3d4e6 | 192 | wxPyTreeCtrl() : wxTreeCtrl() {} |
f6bcfd97 BP |
193 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, |
194 | const wxPoint& pos, | |
195 | const wxSize& size, | |
196 | long style, | |
197 | const wxValidator& validator, | |
137b5242 | 198 | const wxString& name) : |
f6bcfd97 BP |
199 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} |
200 | ||
09f3d4e6 RD |
201 | bool Create(wxWindow *parent, wxWindowID id, |
202 | const wxPoint& pos, | |
203 | const wxSize& size, | |
204 | long style, | |
205 | const wxValidator& validator, | |
137b5242 | 206 | const wxString& name) { |
09f3d4e6 RD |
207 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); |
208 | } | |
209 | ||
210 | ||
f6bcfd97 BP |
211 | int OnCompareItems(const wxTreeItemId& item1, |
212 | const wxTreeItemId& item2) { | |
213 | int rval = 0; | |
19a97bd6 | 214 | bool found; |
4268f798 | 215 | wxPyBeginBlockThreads(); |
a66212dc RD |
216 | if ((found = m_myInst.findCallback("OnCompareItems"))) { |
217 | PyObject *o1 = wxPyConstructObject((void*)&item1, "wxTreeItemId"); | |
218 | PyObject *o2 = wxPyConstructObject((void*)&item2, "wxTreeItemId"); | |
219 | rval = m_myInst.callCallback(Py_BuildValue("(OO)",o1,o2)); | |
220 | Py_DECREF(o1); | |
221 | Py_DECREF(o2); | |
222 | } | |
4268f798 | 223 | wxPyEndBlockThreads(); |
19a97bd6 | 224 | if (! found) |
f6bcfd97 | 225 | rval = wxTreeCtrl::OnCompareItems(item1, item2); |
f6bcfd97 BP |
226 | return rval; |
227 | } | |
228 | PYPRIVATE; | |
229 | }; | |
230 | ||
3b36695d RD |
231 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); |
232 | ||
1d99702e RD |
233 | #ifdef __cplusplus |
234 | extern "C" { | |
235 | #endif | |
c7e7022c | 236 | #define new_wxListItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxListItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
f6bcfd97 | 237 | static PyObject *_wrap_new_wxListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 | 238 | PyObject * _resultobj; |
f6bcfd97 | 239 | wxListItemAttr * _result; |
c7e7022c RD |
240 | wxColour * _arg0 = (wxColour *) &wxNullColour; |
241 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
242 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
243 | wxColour temp; | |
244 | PyObject * _obj0 = 0; | |
245 | wxColour temp0; | |
246 | PyObject * _obj1 = 0; | |
247 | PyObject * _argo2 = 0; | |
248 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
f6bcfd97 | 249 | char _ptemp[128]; |
af309447 RD |
250 | |
251 | self = self; | |
c7e7022c RD |
252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxListItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) |
253 | return NULL; | |
254 | if (_obj0) | |
255 | { | |
256 | _arg0 = &temp; | |
257 | if (! wxColour_helper(_obj0, &_arg0)) | |
258 | return NULL; | |
259 | } | |
260 | if (_obj1) | |
261 | { | |
262 | _arg1 = &temp0; | |
263 | if (! wxColour_helper(_obj1, &_arg1)) | |
264 | return NULL; | |
265 | } | |
266 | if (_argo2) { | |
267 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
268 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxListItemAttr. Expected _wxFont_p."); | |
af309447 | 270 | return NULL; |
c7e7022c RD |
271 | } |
272 | } | |
cf694132 | 273 | { |
4268f798 | 274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 275 | _result = (wxListItemAttr *)new_wxListItemAttr(*_arg0,*_arg1,*_arg2); |
cf694132 | 276 | |
4268f798 | 277 | wxPyEndAllowThreads(__tstate); |
493f1553 | 278 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
279 | } if (_result) { |
280 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
281 | _resultobj = Py_BuildValue("s",_ptemp); | |
282 | } else { | |
283 | Py_INCREF(Py_None); | |
284 | _resultobj = Py_None; | |
285 | } | |
af309447 RD |
286 | return _resultobj; |
287 | } | |
288 | ||
f6bcfd97 BP |
289 | #define wxListItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
290 | static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 291 | PyObject * _resultobj; |
f6bcfd97 BP |
292 | wxListItemAttr * _arg0; |
293 | wxColour * _arg1; | |
1d99702e | 294 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
295 | wxColour temp; |
296 | PyObject * _obj1 = 0; | |
297 | char *_kwnames[] = { "self","colText", NULL }; | |
8ab979d7 RD |
298 | |
299 | self = self; | |
f6bcfd97 | 300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 301 | return NULL; |
1d99702e RD |
302 | if (_argo0) { |
303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetTextColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
306 | return NULL; |
307 | } | |
308 | } | |
f6bcfd97 BP |
309 | { |
310 | _arg1 = &temp; | |
311 | if (! wxColour_helper(_obj1, &_arg1)) | |
312 | return NULL; | |
313 | } | |
cf694132 | 314 | { |
4268f798 | 315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 316 | wxListItemAttr_SetTextColour(_arg0,*_arg1); |
cf694132 | 317 | |
4268f798 | 318 | wxPyEndAllowThreads(__tstate); |
493f1553 | 319 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
320 | } Py_INCREF(Py_None); |
321 | _resultobj = Py_None; | |
8ab979d7 RD |
322 | return _resultobj; |
323 | } | |
324 | ||
f6bcfd97 BP |
325 | #define wxListItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
326 | static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 327 | PyObject * _resultobj; |
f6bcfd97 BP |
328 | wxListItemAttr * _arg0; |
329 | wxColour * _arg1; | |
1d99702e | 330 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
331 | wxColour temp; |
332 | PyObject * _obj1 = 0; | |
333 | char *_kwnames[] = { "self","colBack", NULL }; | |
af309447 RD |
334 | |
335 | self = self; | |
f6bcfd97 | 336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
af309447 | 337 | return NULL; |
1d99702e RD |
338 | if (_argo0) { |
339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetBackgroundColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
342 | return NULL; |
343 | } | |
344 | } | |
f6bcfd97 BP |
345 | { |
346 | _arg1 = &temp; | |
347 | if (! wxColour_helper(_obj1, &_arg1)) | |
348 | return NULL; | |
349 | } | |
cf694132 | 350 | { |
4268f798 | 351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 352 | wxListItemAttr_SetBackgroundColour(_arg0,*_arg1); |
cf694132 | 353 | |
4268f798 | 354 | wxPyEndAllowThreads(__tstate); |
493f1553 | 355 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
356 | } Py_INCREF(Py_None); |
357 | _resultobj = Py_None; | |
af309447 RD |
358 | return _resultobj; |
359 | } | |
360 | ||
f6bcfd97 BP |
361 | #define wxListItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
362 | static PyObject *_wrap_wxListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 363 | PyObject * _resultobj; |
f6bcfd97 BP |
364 | wxListItemAttr * _arg0; |
365 | wxFont * _arg1; | |
1d99702e | 366 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
367 | PyObject * _argo1 = 0; |
368 | char *_kwnames[] = { "self","font", NULL }; | |
8ab979d7 RD |
369 | |
370 | self = self; | |
f6bcfd97 | 371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 372 | return NULL; |
1d99702e RD |
373 | if (_argo0) { |
374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetFont. Expected _wxListItemAttr_p."); | |
377 | return NULL; | |
378 | } | |
379 | } | |
380 | if (_argo1) { | |
381 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
382 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetFont. Expected _wxFont_p."); | |
8ab979d7 RD |
384 | return NULL; |
385 | } | |
386 | } | |
cf694132 | 387 | { |
4268f798 | 388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 389 | wxListItemAttr_SetFont(_arg0,*_arg1); |
cf694132 | 390 | |
4268f798 | 391 | wxPyEndAllowThreads(__tstate); |
493f1553 | 392 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
393 | } Py_INCREF(Py_None); |
394 | _resultobj = Py_None; | |
8ab979d7 RD |
395 | return _resultobj; |
396 | } | |
397 | ||
f6bcfd97 BP |
398 | #define wxListItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) |
399 | static PyObject *_wrap_wxListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 400 | PyObject * _resultobj; |
f6bcfd97 BP |
401 | bool _result; |
402 | wxListItemAttr * _arg0; | |
1d99702e | 403 | PyObject * _argo0 = 0; |
f6bcfd97 | 404 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
405 | |
406 | self = self; | |
f6bcfd97 | 407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasTextColour",_kwnames,&_argo0)) |
af309447 | 408 | return NULL; |
1d99702e RD |
409 | if (_argo0) { |
410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasTextColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
413 | return NULL; |
414 | } | |
415 | } | |
cf694132 | 416 | { |
4268f798 | 417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 418 | _result = (bool )wxListItemAttr_HasTextColour(_arg0); |
cf694132 | 419 | |
4268f798 | 420 | wxPyEndAllowThreads(__tstate); |
493f1553 | 421 | if (PyErr_Occurred()) return NULL; |
cf694132 | 422 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
423 | return _resultobj; |
424 | } | |
425 | ||
f6bcfd97 BP |
426 | #define wxListItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) |
427 | static PyObject *_wrap_wxListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 428 | PyObject * _resultobj; |
f6bcfd97 BP |
429 | bool _result; |
430 | wxListItemAttr * _arg0; | |
1d99702e | 431 | PyObject * _argo0 = 0; |
efc5f224 | 432 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
433 | |
434 | self = self; | |
f6bcfd97 | 435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 436 | return NULL; |
1d99702e RD |
437 | if (_argo0) { |
438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasBackgroundColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
441 | return NULL; |
442 | } | |
443 | } | |
cf694132 | 444 | { |
4268f798 | 445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 446 | _result = (bool )wxListItemAttr_HasBackgroundColour(_arg0); |
cf694132 | 447 | |
4268f798 | 448 | wxPyEndAllowThreads(__tstate); |
493f1553 | 449 | if (PyErr_Occurred()) return NULL; |
cf694132 | 450 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
451 | return _resultobj; |
452 | } | |
453 | ||
f6bcfd97 BP |
454 | #define wxListItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) |
455 | static PyObject *_wrap_wxListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 456 | PyObject * _resultobj; |
f6bcfd97 BP |
457 | bool _result; |
458 | wxListItemAttr * _arg0; | |
1d99702e | 459 | PyObject * _argo0 = 0; |
f6bcfd97 | 460 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
461 | |
462 | self = self; | |
f6bcfd97 | 463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasFont",_kwnames,&_argo0)) |
af309447 | 464 | return NULL; |
1d99702e RD |
465 | if (_argo0) { |
466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasFont. Expected _wxListItemAttr_p."); | |
af309447 RD |
469 | return NULL; |
470 | } | |
471 | } | |
cf694132 | 472 | { |
4268f798 | 473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 474 | _result = (bool )wxListItemAttr_HasFont(_arg0); |
cf694132 | 475 | |
4268f798 | 476 | wxPyEndAllowThreads(__tstate); |
493f1553 | 477 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 478 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
479 | return _resultobj; |
480 | } | |
481 | ||
f6bcfd97 BP |
482 | #define wxListItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
483 | static PyObject *_wrap_wxListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 484 | PyObject * _resultobj; |
f6bcfd97 BP |
485 | wxColour * _result; |
486 | wxListItemAttr * _arg0; | |
1d99702e | 487 | PyObject * _argo0 = 0; |
efc5f224 | 488 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 489 | char _ptemp[128]; |
8ab979d7 RD |
490 | |
491 | self = self; | |
f6bcfd97 | 492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 493 | return NULL; |
1d99702e RD |
494 | if (_argo0) { |
495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetTextColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
498 | return NULL; |
499 | } | |
500 | } | |
cf694132 | 501 | { |
4268f798 | 502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 503 | _result = new wxColour (wxListItemAttr_GetTextColour(_arg0)); |
cf694132 | 504 | |
4268f798 | 505 | wxPyEndAllowThreads(__tstate); |
493f1553 | 506 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
507 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
508 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
509 | return _resultobj; |
510 | } | |
511 | ||
f6bcfd97 BP |
512 | #define wxListItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) |
513 | static PyObject *_wrap_wxListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 514 | PyObject * _resultobj; |
f6bcfd97 BP |
515 | wxColour * _result; |
516 | wxListItemAttr * _arg0; | |
1d99702e | 517 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
518 | char *_kwnames[] = { "self", NULL }; |
519 | char _ptemp[128]; | |
af309447 RD |
520 | |
521 | self = self; | |
f6bcfd97 | 522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetBackgroundColour",_kwnames,&_argo0)) |
af309447 | 523 | return NULL; |
1d99702e RD |
524 | if (_argo0) { |
525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetBackgroundColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
528 | return NULL; |
529 | } | |
530 | } | |
cf694132 | 531 | { |
4268f798 | 532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 533 | _result = new wxColour (wxListItemAttr_GetBackgroundColour(_arg0)); |
cf694132 | 534 | |
4268f798 | 535 | wxPyEndAllowThreads(__tstate); |
493f1553 | 536 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
537 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
538 | _resultobj = Py_BuildValue("s",_ptemp); | |
af309447 RD |
539 | return _resultobj; |
540 | } | |
541 | ||
f6bcfd97 BP |
542 | #define wxListItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) |
543 | static PyObject *_wrap_wxListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 544 | PyObject * _resultobj; |
f6bcfd97 BP |
545 | wxFont * _result; |
546 | wxListItemAttr * _arg0; | |
1d99702e | 547 | PyObject * _argo0 = 0; |
efc5f224 | 548 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 549 | char _ptemp[128]; |
8ab979d7 RD |
550 | |
551 | self = self; | |
f6bcfd97 | 552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 553 | return NULL; |
1d99702e RD |
554 | if (_argo0) { |
555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetFont. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
558 | return NULL; |
559 | } | |
560 | } | |
cf694132 | 561 | { |
4268f798 | 562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 563 | _result = new wxFont (wxListItemAttr_GetFont(_arg0)); |
cf694132 | 564 | |
4268f798 | 565 | wxPyEndAllowThreads(__tstate); |
493f1553 | 566 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
567 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
568 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
569 | return _resultobj; |
570 | } | |
571 | ||
9416aa89 RD |
572 | static void *SwigwxListItemTowxObject(void *ptr) { |
573 | wxListItem *src; | |
574 | wxObject *dest; | |
575 | src = (wxListItem *) ptr; | |
576 | dest = (wxObject *) src; | |
577 | return (void *) dest; | |
578 | } | |
579 | ||
f6bcfd97 BP |
580 | #define new_wxListItem() (new wxListItem()) |
581 | static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 582 | PyObject * _resultobj; |
f6bcfd97 BP |
583 | wxListItem * _result; |
584 | char *_kwnames[] = { NULL }; | |
585 | char _ptemp[128]; | |
af309447 RD |
586 | |
587 | self = self; | |
f6bcfd97 | 588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames)) |
af309447 | 589 | return NULL; |
af309447 | 590 | { |
4268f798 | 591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 592 | _result = (wxListItem *)new_wxListItem(); |
cf694132 | 593 | |
4268f798 | 594 | wxPyEndAllowThreads(__tstate); |
493f1553 | 595 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
596 | } if (_result) { |
597 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
598 | _resultobj = Py_BuildValue("s",_ptemp); | |
599 | } else { | |
600 | Py_INCREF(Py_None); | |
601 | _resultobj = Py_None; | |
602 | } | |
af309447 RD |
603 | return _resultobj; |
604 | } | |
605 | ||
f6bcfd97 BP |
606 | #define delete_wxListItem(_swigobj) (delete _swigobj) |
607 | static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 608 | PyObject * _resultobj; |
8ab979d7 | 609 | wxListItem * _arg0; |
1d99702e | 610 | PyObject * _argo0 = 0; |
efc5f224 | 611 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
612 | |
613 | self = self; | |
f6bcfd97 | 614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0)) |
8ab979d7 | 615 | return NULL; |
1d99702e RD |
616 | if (_argo0) { |
617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p."); |
8ab979d7 RD |
620 | return NULL; |
621 | } | |
622 | } | |
8ab979d7 | 623 | { |
4268f798 | 624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 625 | delete_wxListItem(_arg0); |
cf694132 | 626 | |
4268f798 | 627 | wxPyEndAllowThreads(__tstate); |
493f1553 | 628 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
629 | } Py_INCREF(Py_None); |
630 | _resultobj = Py_None; | |
8ab979d7 RD |
631 | return _resultobj; |
632 | } | |
633 | ||
f6bcfd97 BP |
634 | #define wxListItem_Clear(_swigobj) (_swigobj->Clear()) |
635 | static PyObject *_wrap_wxListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 636 | PyObject * _resultobj; |
af309447 | 637 | wxListItem * _arg0; |
1d99702e | 638 | PyObject * _argo0 = 0; |
f6bcfd97 | 639 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
640 | |
641 | self = self; | |
f6bcfd97 | 642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_Clear",_kwnames,&_argo0)) |
af309447 | 643 | return NULL; |
1d99702e RD |
644 | if (_argo0) { |
645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_Clear. Expected _wxListItem_p."); |
af309447 RD |
648 | return NULL; |
649 | } | |
650 | } | |
cf694132 | 651 | { |
4268f798 | 652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 653 | wxListItem_Clear(_arg0); |
cf694132 | 654 | |
4268f798 | 655 | wxPyEndAllowThreads(__tstate); |
493f1553 | 656 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
657 | } Py_INCREF(Py_None); |
658 | _resultobj = Py_None; | |
af309447 RD |
659 | return _resultobj; |
660 | } | |
661 | ||
f6bcfd97 BP |
662 | #define wxListItem_ClearAttributes(_swigobj) (_swigobj->ClearAttributes()) |
663 | static PyObject *_wrap_wxListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 664 | PyObject * _resultobj; |
8ab979d7 | 665 | wxListItem * _arg0; |
1d99702e | 666 | PyObject * _argo0 = 0; |
efc5f224 | 667 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
668 | |
669 | self = self; | |
f6bcfd97 | 670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_ClearAttributes",_kwnames,&_argo0)) |
8ab979d7 | 671 | return NULL; |
1d99702e RD |
672 | if (_argo0) { |
673 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
674 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_ClearAttributes. Expected _wxListItem_p."); |
8ab979d7 RD |
676 | return NULL; |
677 | } | |
678 | } | |
cf694132 | 679 | { |
4268f798 | 680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 681 | wxListItem_ClearAttributes(_arg0); |
cf694132 | 682 | |
4268f798 | 683 | wxPyEndAllowThreads(__tstate); |
493f1553 | 684 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
685 | } Py_INCREF(Py_None); |
686 | _resultobj = Py_None; | |
687 | return _resultobj; | |
688 | } | |
689 | ||
690 | #define wxListItem_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
691 | static PyObject *_wrap_wxListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
692 | PyObject * _resultobj; | |
693 | wxListItem * _arg0; | |
694 | long _arg1; | |
695 | PyObject * _argo0 = 0; | |
696 | char *_kwnames[] = { "self","mask", NULL }; | |
697 | ||
698 | self = self; | |
699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetMask",_kwnames,&_argo0,&_arg1)) | |
700 | return NULL; | |
701 | if (_argo0) { | |
702 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
703 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetMask. Expected _wxListItem_p."); | |
705 | return NULL; | |
706 | } | |
707 | } | |
708 | { | |
4268f798 | 709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 710 | wxListItem_SetMask(_arg0,_arg1); |
f6bcfd97 | 711 | |
4268f798 | 712 | wxPyEndAllowThreads(__tstate); |
493f1553 | 713 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
714 | } Py_INCREF(Py_None); |
715 | _resultobj = Py_None; | |
716 | return _resultobj; | |
717 | } | |
718 | ||
719 | #define wxListItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
720 | static PyObject *_wrap_wxListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
721 | PyObject * _resultobj; | |
722 | wxListItem * _arg0; | |
723 | long _arg1; | |
724 | PyObject * _argo0 = 0; | |
725 | char *_kwnames[] = { "self","id", NULL }; | |
726 | ||
727 | self = self; | |
728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetId",_kwnames,&_argo0,&_arg1)) | |
729 | return NULL; | |
730 | if (_argo0) { | |
731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetId. Expected _wxListItem_p."); | |
734 | return NULL; | |
735 | } | |
736 | } | |
737 | { | |
4268f798 | 738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 739 | wxListItem_SetId(_arg0,_arg1); |
f6bcfd97 | 740 | |
4268f798 | 741 | wxPyEndAllowThreads(__tstate); |
493f1553 | 742 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
743 | } Py_INCREF(Py_None); |
744 | _resultobj = Py_None; | |
745 | return _resultobj; | |
746 | } | |
747 | ||
748 | #define wxListItem_SetColumn(_swigobj,_swigarg0) (_swigobj->SetColumn(_swigarg0)) | |
749 | static PyObject *_wrap_wxListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
750 | PyObject * _resultobj; | |
751 | wxListItem * _arg0; | |
752 | int _arg1; | |
753 | PyObject * _argo0 = 0; | |
754 | char *_kwnames[] = { "self","col", NULL }; | |
755 | ||
756 | self = self; | |
757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetColumn",_kwnames,&_argo0,&_arg1)) | |
758 | return NULL; | |
759 | if (_argo0) { | |
760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetColumn. Expected _wxListItem_p."); | |
763 | return NULL; | |
764 | } | |
765 | } | |
766 | { | |
4268f798 | 767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 768 | wxListItem_SetColumn(_arg0,_arg1); |
f6bcfd97 | 769 | |
4268f798 | 770 | wxPyEndAllowThreads(__tstate); |
493f1553 | 771 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
772 | } Py_INCREF(Py_None); |
773 | _resultobj = Py_None; | |
774 | return _resultobj; | |
775 | } | |
776 | ||
777 | #define wxListItem_SetState(_swigobj,_swigarg0) (_swigobj->SetState(_swigarg0)) | |
778 | static PyObject *_wrap_wxListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
779 | PyObject * _resultobj; | |
780 | wxListItem * _arg0; | |
781 | long _arg1; | |
782 | PyObject * _argo0 = 0; | |
783 | char *_kwnames[] = { "self","state", NULL }; | |
784 | ||
785 | self = self; | |
786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetState",_kwnames,&_argo0,&_arg1)) | |
787 | return NULL; | |
788 | if (_argo0) { | |
789 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
790 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetState. Expected _wxListItem_p."); | |
792 | return NULL; | |
793 | } | |
794 | } | |
795 | { | |
4268f798 | 796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 797 | wxListItem_SetState(_arg0,_arg1); |
f6bcfd97 | 798 | |
4268f798 | 799 | wxPyEndAllowThreads(__tstate); |
493f1553 | 800 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
801 | } Py_INCREF(Py_None); |
802 | _resultobj = Py_None; | |
803 | return _resultobj; | |
804 | } | |
805 | ||
806 | #define wxListItem_SetStateMask(_swigobj,_swigarg0) (_swigobj->SetStateMask(_swigarg0)) | |
807 | static PyObject *_wrap_wxListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
808 | PyObject * _resultobj; | |
809 | wxListItem * _arg0; | |
810 | long _arg1; | |
811 | PyObject * _argo0 = 0; | |
812 | char *_kwnames[] = { "self","stateMask", NULL }; | |
813 | ||
814 | self = self; | |
815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetStateMask",_kwnames,&_argo0,&_arg1)) | |
816 | return NULL; | |
817 | if (_argo0) { | |
818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetStateMask. Expected _wxListItem_p."); | |
821 | return NULL; | |
822 | } | |
823 | } | |
824 | { | |
4268f798 | 825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 826 | wxListItem_SetStateMask(_arg0,_arg1); |
f6bcfd97 | 827 | |
4268f798 | 828 | wxPyEndAllowThreads(__tstate); |
493f1553 | 829 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
830 | } Py_INCREF(Py_None); |
831 | _resultobj = Py_None; | |
832 | return _resultobj; | |
833 | } | |
834 | ||
835 | #define wxListItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
836 | static PyObject *_wrap_wxListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
837 | PyObject * _resultobj; | |
838 | wxListItem * _arg0; | |
839 | wxString * _arg1; | |
840 | PyObject * _argo0 = 0; | |
841 | PyObject * _obj1 = 0; | |
842 | char *_kwnames[] = { "self","text", NULL }; | |
843 | ||
844 | self = self; | |
845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetText",_kwnames,&_argo0,&_obj1)) | |
846 | return NULL; | |
847 | if (_argo0) { | |
848 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
849 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetText. Expected _wxListItem_p."); | |
851 | return NULL; | |
852 | } | |
853 | } | |
854 | { | |
c8bc7bb8 RD |
855 | _arg1 = wxString_in_helper(_obj1); |
856 | if (_arg1 == NULL) | |
f6bcfd97 | 857 | return NULL; |
f6bcfd97 BP |
858 | } |
859 | { | |
4268f798 | 860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 861 | wxListItem_SetText(_arg0,*_arg1); |
f6bcfd97 | 862 | |
4268f798 | 863 | wxPyEndAllowThreads(__tstate); |
493f1553 | 864 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
865 | } Py_INCREF(Py_None); |
866 | _resultobj = Py_None; | |
867 | { | |
868 | if (_obj1) | |
869 | delete _arg1; | |
870 | } | |
871 | return _resultobj; | |
872 | } | |
873 | ||
874 | #define wxListItem_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0)) | |
875 | static PyObject *_wrap_wxListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
876 | PyObject * _resultobj; | |
877 | wxListItem * _arg0; | |
878 | int _arg1; | |
879 | PyObject * _argo0 = 0; | |
880 | char *_kwnames[] = { "self","image", NULL }; | |
881 | ||
882 | self = self; | |
883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetImage",_kwnames,&_argo0,&_arg1)) | |
884 | return NULL; | |
885 | if (_argo0) { | |
886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetImage. Expected _wxListItem_p."); | |
889 | return NULL; | |
890 | } | |
891 | } | |
892 | { | |
4268f798 | 893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 894 | wxListItem_SetImage(_arg0,_arg1); |
f6bcfd97 | 895 | |
4268f798 | 896 | wxPyEndAllowThreads(__tstate); |
493f1553 | 897 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
898 | } Py_INCREF(Py_None); |
899 | _resultobj = Py_None; | |
900 | return _resultobj; | |
901 | } | |
902 | ||
903 | #define wxListItem_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
904 | static PyObject *_wrap_wxListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
905 | PyObject * _resultobj; | |
906 | wxListItem * _arg0; | |
907 | long _arg1; | |
908 | PyObject * _argo0 = 0; | |
909 | char *_kwnames[] = { "self","data", NULL }; | |
910 | ||
911 | self = self; | |
912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetData",_kwnames,&_argo0,&_arg1)) | |
913 | return NULL; | |
914 | if (_argo0) { | |
915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetData. Expected _wxListItem_p."); | |
918 | return NULL; | |
919 | } | |
920 | } | |
921 | { | |
4268f798 | 922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 923 | wxListItem_SetData(_arg0,_arg1); |
f6bcfd97 | 924 | |
4268f798 | 925 | wxPyEndAllowThreads(__tstate); |
493f1553 | 926 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
927 | } Py_INCREF(Py_None); |
928 | _resultobj = Py_None; | |
929 | return _resultobj; | |
930 | } | |
931 | ||
932 | #define wxListItem_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
933 | static PyObject *_wrap_wxListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
934 | PyObject * _resultobj; | |
935 | wxListItem * _arg0; | |
936 | int _arg1; | |
937 | PyObject * _argo0 = 0; | |
938 | char *_kwnames[] = { "self","width", NULL }; | |
939 | ||
940 | self = self; | |
941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetWidth",_kwnames,&_argo0,&_arg1)) | |
942 | return NULL; | |
943 | if (_argo0) { | |
944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetWidth. Expected _wxListItem_p."); | |
947 | return NULL; | |
948 | } | |
949 | } | |
950 | { | |
4268f798 | 951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 952 | wxListItem_SetWidth(_arg0,_arg1); |
f6bcfd97 | 953 | |
4268f798 | 954 | wxPyEndAllowThreads(__tstate); |
493f1553 | 955 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
956 | } Py_INCREF(Py_None); |
957 | _resultobj = Py_None; | |
958 | return _resultobj; | |
959 | } | |
960 | ||
961 | #define wxListItem_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0)) | |
962 | static PyObject *_wrap_wxListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
963 | PyObject * _resultobj; | |
964 | wxListItem * _arg0; | |
965 | wxListColumnFormat _arg1; | |
966 | PyObject * _argo0 = 0; | |
967 | char *_kwnames[] = { "self","align", NULL }; | |
968 | ||
969 | self = self; | |
970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetAlign",_kwnames,&_argo0,&_arg1)) | |
971 | return NULL; | |
972 | if (_argo0) { | |
973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetAlign. Expected _wxListItem_p."); | |
976 | return NULL; | |
977 | } | |
978 | } | |
979 | { | |
4268f798 | 980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 981 | wxListItem_SetAlign(_arg0,_arg1); |
f6bcfd97 | 982 | |
4268f798 | 983 | wxPyEndAllowThreads(__tstate); |
493f1553 | 984 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
985 | } Py_INCREF(Py_None); |
986 | _resultobj = Py_None; | |
987 | return _resultobj; | |
988 | } | |
989 | ||
990 | #define wxListItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
991 | static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
992 | PyObject * _resultobj; | |
993 | wxListItem * _arg0; | |
994 | wxColour * _arg1; | |
995 | PyObject * _argo0 = 0; | |
996 | wxColour temp; | |
997 | PyObject * _obj1 = 0; | |
998 | char *_kwnames[] = { "self","colText", NULL }; | |
999 | ||
1000 | self = self; | |
1001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
1002 | return NULL; | |
1003 | if (_argo0) { | |
1004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetTextColour. Expected _wxListItem_p."); | |
1007 | return NULL; | |
1008 | } | |
1009 | } | |
1010 | { | |
1011 | _arg1 = &temp; | |
1012 | if (! wxColour_helper(_obj1, &_arg1)) | |
1013 | return NULL; | |
1014 | } | |
1015 | { | |
4268f798 | 1016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1017 | wxListItem_SetTextColour(_arg0,*_arg1); |
f6bcfd97 | 1018 | |
4268f798 | 1019 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1020 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1021 | } Py_INCREF(Py_None); |
1022 | _resultobj = Py_None; | |
1023 | return _resultobj; | |
1024 | } | |
1025 | ||
1026 | #define wxListItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
1027 | static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1028 | PyObject * _resultobj; | |
1029 | wxListItem * _arg0; | |
1030 | wxColour * _arg1; | |
1031 | PyObject * _argo0 = 0; | |
1032 | wxColour temp; | |
1033 | PyObject * _obj1 = 0; | |
1034 | char *_kwnames[] = { "self","colBack", NULL }; | |
1035 | ||
1036 | self = self; | |
1037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
1038 | return NULL; | |
1039 | if (_argo0) { | |
1040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetBackgroundColour. Expected _wxListItem_p."); | |
1043 | return NULL; | |
1044 | } | |
1045 | } | |
1046 | { | |
1047 | _arg1 = &temp; | |
1048 | if (! wxColour_helper(_obj1, &_arg1)) | |
1049 | return NULL; | |
1050 | } | |
1051 | { | |
4268f798 | 1052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1053 | wxListItem_SetBackgroundColour(_arg0,*_arg1); |
f6bcfd97 | 1054 | |
4268f798 | 1055 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1056 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1057 | } Py_INCREF(Py_None); |
1058 | _resultobj = Py_None; | |
1059 | return _resultobj; | |
1060 | } | |
1061 | ||
1062 | #define wxListItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1063 | static PyObject *_wrap_wxListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1064 | PyObject * _resultobj; | |
1065 | wxListItem * _arg0; | |
1066 | wxFont * _arg1; | |
1067 | PyObject * _argo0 = 0; | |
1068 | PyObject * _argo1 = 0; | |
1069 | char *_kwnames[] = { "self","font", NULL }; | |
1070 | ||
1071 | self = self; | |
1072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
1073 | return NULL; | |
1074 | if (_argo0) { | |
1075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetFont. Expected _wxListItem_p."); | |
1078 | return NULL; | |
1079 | } | |
1080 | } | |
1081 | if (_argo1) { | |
1082 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1083 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
1084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetFont. Expected _wxFont_p."); | |
1085 | return NULL; | |
1086 | } | |
1087 | } | |
1088 | { | |
4268f798 | 1089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1090 | wxListItem_SetFont(_arg0,*_arg1); |
f6bcfd97 | 1091 | |
4268f798 | 1092 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1093 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1094 | } Py_INCREF(Py_None); |
1095 | _resultobj = Py_None; | |
1096 | return _resultobj; | |
1097 | } | |
1098 | ||
1099 | #define wxListItem_GetMask(_swigobj) (_swigobj->GetMask()) | |
1100 | static PyObject *_wrap_wxListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1101 | PyObject * _resultobj; | |
1102 | long _result; | |
1103 | wxListItem * _arg0; | |
1104 | PyObject * _argo0 = 0; | |
1105 | char *_kwnames[] = { "self", NULL }; | |
1106 | ||
1107 | self = self; | |
1108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetMask",_kwnames,&_argo0)) | |
1109 | return NULL; | |
1110 | if (_argo0) { | |
1111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetMask. Expected _wxListItem_p."); | |
1114 | return NULL; | |
1115 | } | |
1116 | } | |
1117 | { | |
4268f798 | 1118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1119 | _result = (long )wxListItem_GetMask(_arg0); |
f6bcfd97 | 1120 | |
4268f798 | 1121 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1122 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1123 | } _resultobj = Py_BuildValue("l",_result); |
1124 | return _resultobj; | |
1125 | } | |
1126 | ||
1127 | #define wxListItem_GetId(_swigobj) (_swigobj->GetId()) | |
1128 | static PyObject *_wrap_wxListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1129 | PyObject * _resultobj; | |
1130 | long _result; | |
1131 | wxListItem * _arg0; | |
1132 | PyObject * _argo0 = 0; | |
1133 | char *_kwnames[] = { "self", NULL }; | |
1134 | ||
1135 | self = self; | |
1136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetId",_kwnames,&_argo0)) | |
1137 | return NULL; | |
1138 | if (_argo0) { | |
1139 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1140 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetId. Expected _wxListItem_p."); | |
1142 | return NULL; | |
1143 | } | |
1144 | } | |
1145 | { | |
4268f798 | 1146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1147 | _result = (long )wxListItem_GetId(_arg0); |
f6bcfd97 | 1148 | |
4268f798 | 1149 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1150 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1151 | } _resultobj = Py_BuildValue("l",_result); |
1152 | return _resultobj; | |
1153 | } | |
1154 | ||
1155 | #define wxListItem_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
1156 | static PyObject *_wrap_wxListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1157 | PyObject * _resultobj; | |
1158 | int _result; | |
1159 | wxListItem * _arg0; | |
1160 | PyObject * _argo0 = 0; | |
1161 | char *_kwnames[] = { "self", NULL }; | |
1162 | ||
1163 | self = self; | |
1164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetColumn",_kwnames,&_argo0)) | |
1165 | return NULL; | |
1166 | if (_argo0) { | |
1167 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1168 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetColumn. Expected _wxListItem_p."); | |
1170 | return NULL; | |
1171 | } | |
1172 | } | |
1173 | { | |
4268f798 | 1174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1175 | _result = (int )wxListItem_GetColumn(_arg0); |
f6bcfd97 | 1176 | |
4268f798 | 1177 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1178 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1179 | } _resultobj = Py_BuildValue("i",_result); |
1180 | return _resultobj; | |
1181 | } | |
1182 | ||
1183 | #define wxListItem_GetState(_swigobj) (_swigobj->GetState()) | |
1184 | static PyObject *_wrap_wxListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1185 | PyObject * _resultobj; | |
1186 | long _result; | |
1187 | wxListItem * _arg0; | |
1188 | PyObject * _argo0 = 0; | |
1189 | char *_kwnames[] = { "self", NULL }; | |
1190 | ||
1191 | self = self; | |
1192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetState",_kwnames,&_argo0)) | |
1193 | return NULL; | |
1194 | if (_argo0) { | |
1195 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1196 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetState. Expected _wxListItem_p."); | |
1198 | return NULL; | |
1199 | } | |
1200 | } | |
1201 | { | |
4268f798 | 1202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1203 | _result = (long )wxListItem_GetState(_arg0); |
f6bcfd97 | 1204 | |
4268f798 | 1205 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1206 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1207 | } _resultobj = Py_BuildValue("l",_result); |
1208 | return _resultobj; | |
1209 | } | |
1210 | ||
1211 | #define wxListItem_GetText(_swigobj) (_swigobj->GetText()) | |
1212 | static PyObject *_wrap_wxListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1213 | PyObject * _resultobj; | |
1214 | wxString * _result; | |
1215 | wxListItem * _arg0; | |
1216 | PyObject * _argo0 = 0; | |
1217 | char *_kwnames[] = { "self", NULL }; | |
1218 | ||
1219 | self = self; | |
1220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetText",_kwnames,&_argo0)) | |
1221 | return NULL; | |
1222 | if (_argo0) { | |
1223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetText. Expected _wxListItem_p."); | |
1226 | return NULL; | |
1227 | } | |
1228 | } | |
1229 | { | |
4268f798 | 1230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1231 | const wxString & _result_ref = wxListItem_GetText(_arg0); |
f6bcfd97 BP |
1232 | _result = (wxString *) &_result_ref; |
1233 | ||
4268f798 | 1234 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1235 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1236 | }{ |
c8bc7bb8 RD |
1237 | #if wxUSE_UNICODE |
1238 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1239 | #else | |
f6bcfd97 | 1240 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1241 | #endif |
f6bcfd97 BP |
1242 | } |
1243 | return _resultobj; | |
1244 | } | |
1245 | ||
1246 | #define wxListItem_GetImage(_swigobj) (_swigobj->GetImage()) | |
1247 | static PyObject *_wrap_wxListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1248 | PyObject * _resultobj; | |
1249 | int _result; | |
1250 | wxListItem * _arg0; | |
1251 | PyObject * _argo0 = 0; | |
1252 | char *_kwnames[] = { "self", NULL }; | |
1253 | ||
1254 | self = self; | |
1255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetImage",_kwnames,&_argo0)) | |
1256 | return NULL; | |
1257 | if (_argo0) { | |
1258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetImage. Expected _wxListItem_p."); | |
1261 | return NULL; | |
1262 | } | |
1263 | } | |
1264 | { | |
4268f798 | 1265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1266 | _result = (int )wxListItem_GetImage(_arg0); |
f6bcfd97 | 1267 | |
4268f798 | 1268 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1269 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1270 | } _resultobj = Py_BuildValue("i",_result); |
1271 | return _resultobj; | |
1272 | } | |
1273 | ||
1274 | #define wxListItem_GetData(_swigobj) (_swigobj->GetData()) | |
1275 | static PyObject *_wrap_wxListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1276 | PyObject * _resultobj; | |
1277 | long _result; | |
1278 | wxListItem * _arg0; | |
1279 | PyObject * _argo0 = 0; | |
1280 | char *_kwnames[] = { "self", NULL }; | |
1281 | ||
1282 | self = self; | |
1283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetData",_kwnames,&_argo0)) | |
1284 | return NULL; | |
1285 | if (_argo0) { | |
1286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetData. Expected _wxListItem_p."); | |
1289 | return NULL; | |
1290 | } | |
1291 | } | |
1292 | { | |
4268f798 | 1293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1294 | _result = (long )wxListItem_GetData(_arg0); |
f6bcfd97 | 1295 | |
4268f798 | 1296 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1297 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1298 | } _resultobj = Py_BuildValue("l",_result); |
1299 | return _resultobj; | |
1300 | } | |
1301 | ||
1302 | #define wxListItem_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1303 | static PyObject *_wrap_wxListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1304 | PyObject * _resultobj; | |
1305 | int _result; | |
1306 | wxListItem * _arg0; | |
1307 | PyObject * _argo0 = 0; | |
1308 | char *_kwnames[] = { "self", NULL }; | |
1309 | ||
1310 | self = self; | |
1311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetWidth",_kwnames,&_argo0)) | |
1312 | return NULL; | |
1313 | if (_argo0) { | |
1314 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1315 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetWidth. Expected _wxListItem_p."); | |
1317 | return NULL; | |
1318 | } | |
1319 | } | |
1320 | { | |
4268f798 | 1321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1322 | _result = (int )wxListItem_GetWidth(_arg0); |
f6bcfd97 | 1323 | |
4268f798 | 1324 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1325 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1326 | } _resultobj = Py_BuildValue("i",_result); |
1327 | return _resultobj; | |
1328 | } | |
1329 | ||
1330 | #define wxListItem_GetAlign(_swigobj) (_swigobj->GetAlign()) | |
1331 | static PyObject *_wrap_wxListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1332 | PyObject * _resultobj; | |
1333 | wxListColumnFormat _result; | |
1334 | wxListItem * _arg0; | |
1335 | PyObject * _argo0 = 0; | |
1336 | char *_kwnames[] = { "self", NULL }; | |
1337 | ||
1338 | self = self; | |
1339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAlign",_kwnames,&_argo0)) | |
1340 | return NULL; | |
1341 | if (_argo0) { | |
1342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAlign. Expected _wxListItem_p."); | |
1345 | return NULL; | |
1346 | } | |
1347 | } | |
1348 | { | |
4268f798 | 1349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1350 | _result = (wxListColumnFormat )wxListItem_GetAlign(_arg0); |
f6bcfd97 | 1351 | |
4268f798 | 1352 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1353 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1354 | } _resultobj = Py_BuildValue("i",_result); |
1355 | return _resultobj; | |
1356 | } | |
1357 | ||
1358 | #define wxListItem_GetAttributes(_swigobj) (_swigobj->GetAttributes()) | |
1359 | static PyObject *_wrap_wxListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1360 | PyObject * _resultobj; | |
1361 | wxListItemAttr * _result; | |
1362 | wxListItem * _arg0; | |
1363 | PyObject * _argo0 = 0; | |
1364 | char *_kwnames[] = { "self", NULL }; | |
1365 | char _ptemp[128]; | |
1366 | ||
1367 | self = self; | |
1368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAttributes",_kwnames,&_argo0)) | |
1369 | return NULL; | |
1370 | if (_argo0) { | |
1371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAttributes. Expected _wxListItem_p."); | |
1374 | return NULL; | |
1375 | } | |
1376 | } | |
1377 | { | |
4268f798 | 1378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1379 | _result = (wxListItemAttr *)wxListItem_GetAttributes(_arg0); |
f6bcfd97 | 1380 | |
4268f798 | 1381 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1382 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1383 | } if (_result) { |
1384 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
1385 | _resultobj = Py_BuildValue("s",_ptemp); | |
1386 | } else { | |
1387 | Py_INCREF(Py_None); | |
1388 | _resultobj = Py_None; | |
1389 | } | |
1390 | return _resultobj; | |
1391 | } | |
1392 | ||
1393 | #define wxListItem_HasAttributes(_swigobj) (_swigobj->HasAttributes()) | |
1394 | static PyObject *_wrap_wxListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1395 | PyObject * _resultobj; | |
1396 | bool _result; | |
1397 | wxListItem * _arg0; | |
1398 | PyObject * _argo0 = 0; | |
1399 | char *_kwnames[] = { "self", NULL }; | |
1400 | ||
1401 | self = self; | |
1402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_HasAttributes",_kwnames,&_argo0)) | |
1403 | return NULL; | |
1404 | if (_argo0) { | |
1405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_HasAttributes. Expected _wxListItem_p."); | |
1408 | return NULL; | |
1409 | } | |
1410 | } | |
1411 | { | |
4268f798 | 1412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1413 | _result = (bool )wxListItem_HasAttributes(_arg0); |
f6bcfd97 | 1414 | |
4268f798 | 1415 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1416 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1417 | } _resultobj = Py_BuildValue("i",_result); |
1418 | return _resultobj; | |
1419 | } | |
1420 | ||
1421 | #define wxListItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
1422 | static PyObject *_wrap_wxListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1423 | PyObject * _resultobj; | |
1424 | wxColour * _result; | |
1425 | wxListItem * _arg0; | |
1426 | PyObject * _argo0 = 0; | |
1427 | char *_kwnames[] = { "self", NULL }; | |
1428 | char _ptemp[128]; | |
1429 | ||
1430 | self = self; | |
1431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetTextColour",_kwnames,&_argo0)) | |
1432 | return NULL; | |
1433 | if (_argo0) { | |
1434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetTextColour. Expected _wxListItem_p."); | |
1437 | return NULL; | |
1438 | } | |
1439 | } | |
1440 | { | |
4268f798 | 1441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1442 | _result = new wxColour (wxListItem_GetTextColour(_arg0)); |
f6bcfd97 | 1443 | |
4268f798 | 1444 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1445 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1446 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1447 | _resultobj = Py_BuildValue("s",_ptemp); | |
1448 | return _resultobj; | |
1449 | } | |
1450 | ||
1451 | #define wxListItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1452 | static PyObject *_wrap_wxListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1453 | PyObject * _resultobj; | |
1454 | wxColour * _result; | |
1455 | wxListItem * _arg0; | |
1456 | PyObject * _argo0 = 0; | |
1457 | char *_kwnames[] = { "self", NULL }; | |
1458 | char _ptemp[128]; | |
1459 | ||
1460 | self = self; | |
1461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetBackgroundColour",_kwnames,&_argo0)) | |
1462 | return NULL; | |
1463 | if (_argo0) { | |
1464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetBackgroundColour. Expected _wxListItem_p."); | |
1467 | return NULL; | |
1468 | } | |
1469 | } | |
1470 | { | |
4268f798 | 1471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1472 | _result = new wxColour (wxListItem_GetBackgroundColour(_arg0)); |
f6bcfd97 | 1473 | |
4268f798 | 1474 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1475 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1476 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1477 | _resultobj = Py_BuildValue("s",_ptemp); | |
1478 | return _resultobj; | |
1479 | } | |
1480 | ||
1481 | #define wxListItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
1482 | static PyObject *_wrap_wxListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1483 | PyObject * _resultobj; | |
1484 | wxFont * _result; | |
1485 | wxListItem * _arg0; | |
1486 | PyObject * _argo0 = 0; | |
1487 | char *_kwnames[] = { "self", NULL }; | |
1488 | char _ptemp[128]; | |
1489 | ||
1490 | self = self; | |
1491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetFont",_kwnames,&_argo0)) | |
1492 | return NULL; | |
1493 | if (_argo0) { | |
1494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetFont. Expected _wxListItem_p."); | |
1497 | return NULL; | |
1498 | } | |
1499 | } | |
1500 | { | |
4268f798 | 1501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1502 | _result = new wxFont (wxListItem_GetFont(_arg0)); |
f6bcfd97 | 1503 | |
4268f798 | 1504 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1505 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1506 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
1507 | _resultobj = Py_BuildValue("s",_ptemp); | |
1508 | return _resultobj; | |
1509 | } | |
1510 | ||
1511 | #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval) | |
1512 | static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1513 | PyObject * _resultobj; | |
1514 | long _result; | |
1515 | wxListItem * _arg0; | |
1516 | long _arg1; | |
1517 | PyObject * _argo0 = 0; | |
1518 | char *_kwnames[] = { "self","m_mask", NULL }; | |
1519 | ||
1520 | self = self; | |
1521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1)) | |
1522 | return NULL; | |
1523 | if (_argo0) { | |
1524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p."); | |
1527 | return NULL; | |
1528 | } | |
1529 | } | |
1530 | { | |
4268f798 | 1531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1532 | _result = (long )wxListItem_m_mask_set(_arg0,_arg1); |
f6bcfd97 | 1533 | |
4268f798 | 1534 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1535 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1536 | } _resultobj = Py_BuildValue("l",_result); |
1537 | return _resultobj; | |
1538 | } | |
1539 | ||
1540 | #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask) | |
1541 | static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1542 | PyObject * _resultobj; | |
1543 | long _result; | |
1544 | wxListItem * _arg0; | |
1545 | PyObject * _argo0 = 0; | |
1546 | char *_kwnames[] = { "self", NULL }; | |
1547 | ||
1548 | self = self; | |
1549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0)) | |
1550 | return NULL; | |
1551 | if (_argo0) { | |
1552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p."); | |
1555 | return NULL; | |
1556 | } | |
1557 | } | |
1558 | { | |
4268f798 | 1559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1560 | _result = (long )wxListItem_m_mask_get(_arg0); |
f6bcfd97 | 1561 | |
4268f798 | 1562 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1563 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1564 | } _resultobj = Py_BuildValue("l",_result); |
1565 | return _resultobj; | |
1566 | } | |
1567 | ||
1568 | #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval) | |
1569 | static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1570 | PyObject * _resultobj; | |
1571 | long _result; | |
1572 | wxListItem * _arg0; | |
1573 | long _arg1; | |
1574 | PyObject * _argo0 = 0; | |
1575 | char *_kwnames[] = { "self","m_itemId", NULL }; | |
1576 | ||
1577 | self = self; | |
1578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1)) | |
1579 | return NULL; | |
1580 | if (_argo0) { | |
1581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p."); | |
1584 | return NULL; | |
1585 | } | |
1586 | } | |
1587 | { | |
4268f798 | 1588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1589 | _result = (long )wxListItem_m_itemId_set(_arg0,_arg1); |
f6bcfd97 | 1590 | |
4268f798 | 1591 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1592 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1593 | } _resultobj = Py_BuildValue("l",_result); |
1594 | return _resultobj; | |
1595 | } | |
1596 | ||
1597 | #define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId) | |
1598 | static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1599 | PyObject * _resultobj; | |
1600 | long _result; | |
1601 | wxListItem * _arg0; | |
1602 | PyObject * _argo0 = 0; | |
1603 | char *_kwnames[] = { "self", NULL }; | |
1604 | ||
1605 | self = self; | |
1606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0)) | |
1607 | return NULL; | |
1608 | if (_argo0) { | |
1609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p."); | |
1612 | return NULL; | |
1613 | } | |
1614 | } | |
1615 | { | |
4268f798 | 1616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1617 | _result = (long )wxListItem_m_itemId_get(_arg0); |
f6bcfd97 | 1618 | |
4268f798 | 1619 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1620 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1621 | } _resultobj = Py_BuildValue("l",_result); |
1622 | return _resultobj; | |
1623 | } | |
1624 | ||
1625 | #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
1626 | static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1627 | PyObject * _resultobj; | |
1628 | int _result; | |
1629 | wxListItem * _arg0; | |
1630 | int _arg1; | |
1631 | PyObject * _argo0 = 0; | |
1632 | char *_kwnames[] = { "self","m_col", NULL }; | |
1633 | ||
1634 | self = self; | |
1635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1)) | |
1636 | return NULL; | |
1637 | if (_argo0) { | |
1638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p."); | |
1641 | return NULL; | |
1642 | } | |
1643 | } | |
1644 | { | |
4268f798 | 1645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1646 | _result = (int )wxListItem_m_col_set(_arg0,_arg1); |
f6bcfd97 | 1647 | |
4268f798 | 1648 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1649 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1650 | } _resultobj = Py_BuildValue("i",_result); |
1651 | return _resultobj; | |
1652 | } | |
1653 | ||
1654 | #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
1655 | static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1656 | PyObject * _resultobj; | |
1657 | int _result; | |
1658 | wxListItem * _arg0; | |
1659 | PyObject * _argo0 = 0; | |
1660 | char *_kwnames[] = { "self", NULL }; | |
1661 | ||
1662 | self = self; | |
1663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0)) | |
1664 | return NULL; | |
1665 | if (_argo0) { | |
1666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p."); | |
1669 | return NULL; | |
1670 | } | |
1671 | } | |
1672 | { | |
4268f798 | 1673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1674 | _result = (int )wxListItem_m_col_get(_arg0); |
f6bcfd97 | 1675 | |
4268f798 | 1676 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1677 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1678 | } _resultobj = Py_BuildValue("i",_result); |
1679 | return _resultobj; | |
1680 | } | |
1681 | ||
1682 | #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval) | |
1683 | static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1684 | PyObject * _resultobj; | |
1685 | long _result; | |
1686 | wxListItem * _arg0; | |
1687 | long _arg1; | |
1688 | PyObject * _argo0 = 0; | |
1689 | char *_kwnames[] = { "self","m_state", NULL }; | |
1690 | ||
1691 | self = self; | |
1692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1)) | |
1693 | return NULL; | |
1694 | if (_argo0) { | |
1695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p."); | |
1698 | return NULL; | |
1699 | } | |
1700 | } | |
1701 | { | |
4268f798 | 1702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1703 | _result = (long )wxListItem_m_state_set(_arg0,_arg1); |
f6bcfd97 | 1704 | |
4268f798 | 1705 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1706 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1707 | } _resultobj = Py_BuildValue("l",_result); |
1708 | return _resultobj; | |
1709 | } | |
1710 | ||
1711 | #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state) | |
1712 | static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1713 | PyObject * _resultobj; | |
1714 | long _result; | |
1715 | wxListItem * _arg0; | |
1716 | PyObject * _argo0 = 0; | |
1717 | char *_kwnames[] = { "self", NULL }; | |
1718 | ||
1719 | self = self; | |
1720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0)) | |
1721 | return NULL; | |
1722 | if (_argo0) { | |
1723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p."); | |
1726 | return NULL; | |
1727 | } | |
1728 | } | |
1729 | { | |
4268f798 | 1730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1731 | _result = (long )wxListItem_m_state_get(_arg0); |
f6bcfd97 | 1732 | |
4268f798 | 1733 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1734 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1735 | } _resultobj = Py_BuildValue("l",_result); |
1736 | return _resultobj; | |
1737 | } | |
1738 | ||
1739 | #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval) | |
1740 | static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1741 | PyObject * _resultobj; | |
1742 | long _result; | |
1743 | wxListItem * _arg0; | |
1744 | long _arg1; | |
1745 | PyObject * _argo0 = 0; | |
1746 | char *_kwnames[] = { "self","m_stateMask", NULL }; | |
1747 | ||
1748 | self = self; | |
1749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1)) | |
1750 | return NULL; | |
1751 | if (_argo0) { | |
1752 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1753 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p."); | |
1755 | return NULL; | |
1756 | } | |
1757 | } | |
1758 | { | |
4268f798 | 1759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1760 | _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1); |
f6bcfd97 | 1761 | |
4268f798 | 1762 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1763 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1764 | } _resultobj = Py_BuildValue("l",_result); |
1765 | return _resultobj; | |
1766 | } | |
1767 | ||
1768 | #define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask) | |
1769 | static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1770 | PyObject * _resultobj; | |
1771 | long _result; | |
1772 | wxListItem * _arg0; | |
1773 | PyObject * _argo0 = 0; | |
1774 | char *_kwnames[] = { "self", NULL }; | |
1775 | ||
1776 | self = self; | |
1777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0)) | |
1778 | return NULL; | |
1779 | if (_argo0) { | |
1780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p."); | |
1783 | return NULL; | |
1784 | } | |
1785 | } | |
1786 | { | |
4268f798 | 1787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1788 | _result = (long )wxListItem_m_stateMask_get(_arg0); |
f6bcfd97 | 1789 | |
4268f798 | 1790 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1791 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1792 | } _resultobj = Py_BuildValue("l",_result); |
1793 | return _resultobj; | |
1794 | } | |
1795 | ||
1796 | #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval) | |
1797 | static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1798 | PyObject * _resultobj; | |
1799 | wxString * _result; | |
1800 | wxListItem * _arg0; | |
1801 | wxString * _arg1; | |
1802 | PyObject * _argo0 = 0; | |
1803 | PyObject * _obj1 = 0; | |
1804 | char *_kwnames[] = { "self","m_text", NULL }; | |
1805 | ||
1806 | self = self; | |
1807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1)) | |
1808 | return NULL; | |
1809 | if (_argo0) { | |
1810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p."); | |
1813 | return NULL; | |
1814 | } | |
1815 | } | |
1816 | { | |
c8bc7bb8 RD |
1817 | _arg1 = wxString_in_helper(_obj1); |
1818 | if (_arg1 == NULL) | |
f6bcfd97 | 1819 | return NULL; |
f6bcfd97 BP |
1820 | } |
1821 | { | |
4268f798 | 1822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1823 | _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1); |
f6bcfd97 | 1824 | |
4268f798 | 1825 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1826 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1827 | }{ |
c8bc7bb8 RD |
1828 | #if wxUSE_UNICODE |
1829 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1830 | #else | |
f6bcfd97 | 1831 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1832 | #endif |
f6bcfd97 BP |
1833 | } |
1834 | { | |
1835 | if (_obj1) | |
1836 | delete _arg1; | |
1837 | } | |
1838 | return _resultobj; | |
1839 | } | |
1840 | ||
1841 | #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text) | |
1842 | static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1843 | PyObject * _resultobj; | |
1844 | wxString * _result; | |
1845 | wxListItem * _arg0; | |
1846 | PyObject * _argo0 = 0; | |
1847 | char *_kwnames[] = { "self", NULL }; | |
1848 | ||
1849 | self = self; | |
1850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0)) | |
1851 | return NULL; | |
1852 | if (_argo0) { | |
1853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p."); | |
1856 | return NULL; | |
1857 | } | |
1858 | } | |
1859 | { | |
4268f798 | 1860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1861 | _result = (wxString *)wxListItem_m_text_get(_arg0); |
f6bcfd97 | 1862 | |
4268f798 | 1863 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1864 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1865 | }{ |
c8bc7bb8 RD |
1866 | #if wxUSE_UNICODE |
1867 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1868 | #else | |
f6bcfd97 | 1869 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1870 | #endif |
f6bcfd97 BP |
1871 | } |
1872 | return _resultobj; | |
1873 | } | |
1874 | ||
1875 | #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval) | |
1876 | static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1877 | PyObject * _resultobj; | |
1878 | int _result; | |
1879 | wxListItem * _arg0; | |
1880 | int _arg1; | |
1881 | PyObject * _argo0 = 0; | |
1882 | char *_kwnames[] = { "self","m_image", NULL }; | |
1883 | ||
1884 | self = self; | |
1885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1)) | |
1886 | return NULL; | |
1887 | if (_argo0) { | |
1888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p."); | |
1891 | return NULL; | |
1892 | } | |
1893 | } | |
1894 | { | |
4268f798 | 1895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1896 | _result = (int )wxListItem_m_image_set(_arg0,_arg1); |
f6bcfd97 | 1897 | |
4268f798 | 1898 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1899 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1900 | } _resultobj = Py_BuildValue("i",_result); |
1901 | return _resultobj; | |
1902 | } | |
1903 | ||
1904 | #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image) | |
1905 | static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1906 | PyObject * _resultobj; | |
1907 | int _result; | |
1908 | wxListItem * _arg0; | |
1909 | PyObject * _argo0 = 0; | |
1910 | char *_kwnames[] = { "self", NULL }; | |
1911 | ||
1912 | self = self; | |
1913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0)) | |
1914 | return NULL; | |
1915 | if (_argo0) { | |
1916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p."); | |
1919 | return NULL; | |
1920 | } | |
1921 | } | |
1922 | { | |
4268f798 | 1923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1924 | _result = (int )wxListItem_m_image_get(_arg0); |
f6bcfd97 | 1925 | |
4268f798 | 1926 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1927 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1928 | } _resultobj = Py_BuildValue("i",_result); |
1929 | return _resultobj; | |
1930 | } | |
1931 | ||
1932 | #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval) | |
1933 | static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1934 | PyObject * _resultobj; | |
1935 | long _result; | |
1936 | wxListItem * _arg0; | |
1937 | long _arg1; | |
1938 | PyObject * _argo0 = 0; | |
1939 | char *_kwnames[] = { "self","m_data", NULL }; | |
1940 | ||
1941 | self = self; | |
1942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1)) | |
1943 | return NULL; | |
1944 | if (_argo0) { | |
1945 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1946 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p."); | |
1948 | return NULL; | |
1949 | } | |
1950 | } | |
1951 | { | |
4268f798 | 1952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1953 | _result = (long )wxListItem_m_data_set(_arg0,_arg1); |
f6bcfd97 | 1954 | |
4268f798 | 1955 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1956 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1957 | } _resultobj = Py_BuildValue("l",_result); |
1958 | return _resultobj; | |
1959 | } | |
1960 | ||
1961 | #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data) | |
1962 | static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1963 | PyObject * _resultobj; | |
1964 | long _result; | |
1965 | wxListItem * _arg0; | |
1966 | PyObject * _argo0 = 0; | |
1967 | char *_kwnames[] = { "self", NULL }; | |
1968 | ||
1969 | self = self; | |
1970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0)) | |
1971 | return NULL; | |
1972 | if (_argo0) { | |
1973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p."); | |
1976 | return NULL; | |
1977 | } | |
1978 | } | |
1979 | { | |
4268f798 | 1980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1981 | _result = (long )wxListItem_m_data_get(_arg0); |
f6bcfd97 | 1982 | |
4268f798 | 1983 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1984 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1985 | } _resultobj = Py_BuildValue("l",_result); |
1986 | return _resultobj; | |
1987 | } | |
1988 | ||
1989 | #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval) | |
1990 | static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1991 | PyObject * _resultobj; | |
1992 | int _result; | |
1993 | wxListItem * _arg0; | |
1994 | int _arg1; | |
1995 | PyObject * _argo0 = 0; | |
1996 | char *_kwnames[] = { "self","m_format", NULL }; | |
1997 | ||
1998 | self = self; | |
1999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1)) | |
2000 | return NULL; | |
2001 | if (_argo0) { | |
2002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
2004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p."); | |
2005 | return NULL; | |
2006 | } | |
2007 | } | |
2008 | { | |
4268f798 | 2009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2010 | _result = (int )wxListItem_m_format_set(_arg0,_arg1); |
f6bcfd97 | 2011 | |
4268f798 | 2012 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2013 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2014 | } _resultobj = Py_BuildValue("i",_result); |
2015 | return _resultobj; | |
2016 | } | |
2017 | ||
2018 | #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format) | |
2019 | static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2020 | PyObject * _resultobj; | |
2021 | int _result; | |
2022 | wxListItem * _arg0; | |
2023 | PyObject * _argo0 = 0; | |
2024 | char *_kwnames[] = { "self", NULL }; | |
2025 | ||
2026 | self = self; | |
2027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0)) | |
2028 | return NULL; | |
2029 | if (_argo0) { | |
2030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
2032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p."); | |
2033 | return NULL; | |
2034 | } | |
2035 | } | |
2036 | { | |
4268f798 | 2037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2038 | _result = (int )wxListItem_m_format_get(_arg0); |
f6bcfd97 | 2039 | |
4268f798 | 2040 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2041 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2042 | } _resultobj = Py_BuildValue("i",_result); |
2043 | return _resultobj; | |
8ab979d7 RD |
2044 | } |
2045 | ||
f6bcfd97 BP |
2046 | #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval) |
2047 | static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2048 | PyObject * _resultobj; |
f6bcfd97 | 2049 | int _result; |
af309447 | 2050 | wxListItem * _arg0; |
f6bcfd97 | 2051 | int _arg1; |
1d99702e | 2052 | PyObject * _argo0 = 0; |
f6bcfd97 | 2053 | char *_kwnames[] = { "self","m_width", NULL }; |
af309447 RD |
2054 | |
2055 | self = self; | |
f6bcfd97 | 2056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2057 | return NULL; |
1d99702e RD |
2058 | if (_argo0) { |
2059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p."); |
af309447 RD |
2062 | return NULL; |
2063 | } | |
2064 | } | |
cf694132 | 2065 | { |
4268f798 | 2066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2067 | _result = (int )wxListItem_m_width_set(_arg0,_arg1); |
cf694132 | 2068 | |
4268f798 | 2069 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2070 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2071 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2072 | return _resultobj; |
2073 | } | |
2074 | ||
f6bcfd97 BP |
2075 | #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width) |
2076 | static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2077 | PyObject * _resultobj; |
f6bcfd97 | 2078 | int _result; |
8ab979d7 | 2079 | wxListItem * _arg0; |
1d99702e | 2080 | PyObject * _argo0 = 0; |
efc5f224 | 2081 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2082 | |
2083 | self = self; | |
f6bcfd97 | 2084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0)) |
8ab979d7 | 2085 | return NULL; |
1d99702e RD |
2086 | if (_argo0) { |
2087 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2088 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 BP |
2089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p."); |
2090 | return NULL; | |
2091 | } | |
2092 | } | |
2093 | { | |
4268f798 | 2094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2095 | _result = (int )wxListItem_m_width_get(_arg0); |
f6bcfd97 | 2096 | |
4268f798 | 2097 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2098 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2099 | } _resultobj = Py_BuildValue("i",_result); |
2100 | return _resultobj; | |
2101 | } | |
2102 | ||
c368d904 RD |
2103 | static void *SwigwxListEventTowxNotifyEvent(void *ptr) { |
2104 | wxListEvent *src; | |
2105 | wxNotifyEvent *dest; | |
2106 | src = (wxListEvent *) ptr; | |
2107 | dest = (wxNotifyEvent *) src; | |
2108 | return (void *) dest; | |
2109 | } | |
2110 | ||
f6bcfd97 BP |
2111 | static void *SwigwxListEventTowxCommandEvent(void *ptr) { |
2112 | wxListEvent *src; | |
2113 | wxCommandEvent *dest; | |
2114 | src = (wxListEvent *) ptr; | |
2115 | dest = (wxCommandEvent *) src; | |
2116 | return (void *) dest; | |
2117 | } | |
2118 | ||
2119 | static void *SwigwxListEventTowxEvent(void *ptr) { | |
2120 | wxListEvent *src; | |
2121 | wxEvent *dest; | |
2122 | src = (wxListEvent *) ptr; | |
2123 | dest = (wxEvent *) src; | |
2124 | return (void *) dest; | |
2125 | } | |
2126 | ||
9416aa89 RD |
2127 | static void *SwigwxListEventTowxObject(void *ptr) { |
2128 | wxListEvent *src; | |
2129 | wxObject *dest; | |
2130 | src = (wxListEvent *) ptr; | |
2131 | dest = (wxObject *) src; | |
2132 | return (void *) dest; | |
2133 | } | |
2134 | ||
6d19860f RD |
2135 | #define new_wxListEvent(_swigarg0,_swigarg1) (new wxListEvent(_swigarg0,_swigarg1)) |
2136 | static PyObject *_wrap_new_wxListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2137 | PyObject * _resultobj; | |
2138 | wxListEvent * _result; | |
2139 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
2140 | int _arg1 = (int ) 0; | |
2141 | char *_kwnames[] = { "commandType","id", NULL }; | |
2142 | char _ptemp[128]; | |
2143 | ||
2144 | self = self; | |
2145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxListEvent",_kwnames,&_arg0,&_arg1)) | |
2146 | return NULL; | |
2147 | { | |
4268f798 | 2148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2149 | _result = (wxListEvent *)new_wxListEvent(_arg0,_arg1); |
6d19860f | 2150 | |
4268f798 | 2151 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
2152 | if (PyErr_Occurred()) return NULL; |
2153 | } if (_result) { | |
2154 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListEvent_p"); | |
2155 | _resultobj = Py_BuildValue("s",_ptemp); | |
2156 | } else { | |
2157 | Py_INCREF(Py_None); | |
2158 | _resultobj = Py_None; | |
2159 | } | |
2160 | return _resultobj; | |
2161 | } | |
2162 | ||
f6bcfd97 BP |
2163 | #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code) |
2164 | static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2165 | PyObject * _resultobj; | |
2166 | int _result; | |
2167 | wxListEvent * _arg0; | |
2168 | PyObject * _argo0 = 0; | |
2169 | char *_kwnames[] = { "self", NULL }; | |
2170 | ||
2171 | self = self; | |
2172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0)) | |
2173 | return NULL; | |
2174 | if (_argo0) { | |
2175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_get. Expected _wxListEvent_p."); | |
2178 | return NULL; | |
2179 | } | |
2180 | } | |
2181 | { | |
4268f798 | 2182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2183 | _result = (int )wxListEvent_m_code_get(_arg0); |
f6bcfd97 | 2184 | |
4268f798 | 2185 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2186 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2187 | } _resultobj = Py_BuildValue("i",_result); |
2188 | return _resultobj; | |
2189 | } | |
2190 | ||
ebf4302c RD |
2191 | #define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex) |
2192 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 BP |
2193 | PyObject * _resultobj; |
2194 | long _result; | |
2195 | wxListEvent * _arg0; | |
2196 | PyObject * _argo0 = 0; | |
2197 | char *_kwnames[] = { "self", NULL }; | |
2198 | ||
2199 | self = self; | |
ebf4302c | 2200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0)) |
f6bcfd97 BP |
2201 | return NULL; |
2202 | if (_argo0) { | |
2203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
ebf4302c | 2205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p."); |
f6bcfd97 BP |
2206 | return NULL; |
2207 | } | |
2208 | } | |
2209 | { | |
4268f798 | 2210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2211 | _result = (long )wxListEvent_m_oldItemIndex_get(_arg0); |
f6bcfd97 | 2212 | |
4268f798 | 2213 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2214 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2215 | } _resultobj = Py_BuildValue("l",_result); |
2216 | return _resultobj; | |
2217 | } | |
2218 | ||
ebf4302c RD |
2219 | #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex) |
2220 | static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2221 | PyObject * _resultobj; |
ebf4302c | 2222 | long _result; |
f6bcfd97 | 2223 | wxListEvent * _arg0; |
1d99702e | 2224 | PyObject * _argo0 = 0; |
f6bcfd97 | 2225 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2226 | |
2227 | self = self; | |
ebf4302c | 2228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0)) |
af309447 | 2229 | return NULL; |
1d99702e RD |
2230 | if (_argo0) { |
2231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
ebf4302c | 2233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p."); |
af309447 RD |
2234 | return NULL; |
2235 | } | |
2236 | } | |
cf694132 | 2237 | { |
4268f798 | 2238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2239 | _result = (long )wxListEvent_m_itemIndex_get(_arg0); |
cf694132 | 2240 | |
4268f798 | 2241 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2242 | if (PyErr_Occurred()) return NULL; |
ebf4302c | 2243 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2244 | return _resultobj; |
2245 | } | |
2246 | ||
ebf4302c RD |
2247 | #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col) |
2248 | static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2249 | PyObject * _resultobj; |
ebf4302c | 2250 | int _result; |
f6bcfd97 | 2251 | wxListEvent * _arg0; |
1d99702e | 2252 | PyObject * _argo0 = 0; |
f6bcfd97 | 2253 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2254 | |
2255 | self = self; | |
ebf4302c | 2256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0)) |
af309447 | 2257 | return NULL; |
1d99702e RD |
2258 | if (_argo0) { |
2259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
ebf4302c | 2261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p."); |
af309447 RD |
2262 | return NULL; |
2263 | } | |
2264 | } | |
cf694132 | 2265 | { |
4268f798 | 2266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2267 | _result = (int )wxListEvent_m_col_get(_arg0); |
cf694132 | 2268 | |
4268f798 | 2269 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2270 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2271 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2272 | return _resultobj; |
2273 | } | |
2274 | ||
f6bcfd97 BP |
2275 | #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag) |
2276 | static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2277 | PyObject * _resultobj; |
f6bcfd97 BP |
2278 | wxPoint * _result; |
2279 | wxListEvent * _arg0; | |
2280 | PyObject * _argo0 = 0; | |
2281 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
2282 | char _ptemp[128]; |
2283 | ||
2284 | self = self; | |
f6bcfd97 BP |
2285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0)) |
2286 | return NULL; | |
2287 | if (_argo0) { | |
2288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p."); | |
8ab979d7 | 2291 | return NULL; |
f6bcfd97 BP |
2292 | } |
2293 | } | |
cf694132 | 2294 | { |
4268f798 | 2295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2296 | _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0); |
cf694132 | 2297 | |
4268f798 | 2298 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2299 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2300 | } if (_result) { |
f6bcfd97 | 2301 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); |
1d99702e RD |
2302 | _resultobj = Py_BuildValue("s",_ptemp); |
2303 | } else { | |
2304 | Py_INCREF(Py_None); | |
2305 | _resultobj = Py_None; | |
2306 | } | |
8ab979d7 RD |
2307 | return _resultobj; |
2308 | } | |
2309 | ||
f6bcfd97 BP |
2310 | #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item) |
2311 | static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2312 | PyObject * _resultobj; |
f6bcfd97 | 2313 | wxListItem * _result; |
af309447 | 2314 | wxListEvent * _arg0; |
1d99702e | 2315 | PyObject * _argo0 = 0; |
f6bcfd97 | 2316 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2317 | |
2318 | self = self; | |
f6bcfd97 | 2319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0)) |
af309447 | 2320 | return NULL; |
1d99702e RD |
2321 | if (_argo0) { |
2322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p."); |
af309447 RD |
2325 | return NULL; |
2326 | } | |
2327 | } | |
cf694132 | 2328 | { |
4268f798 | 2329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2330 | _result = (wxListItem *)wxListEvent_m_item_get(_arg0); |
cf694132 | 2331 | |
4268f798 | 2332 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2333 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2334 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
2335 | return _resultobj; |
2336 | } | |
2337 | ||
f6bcfd97 BP |
2338 | #define wxListEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
2339 | static PyObject *_wrap_wxListEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2340 | PyObject * _resultobj; |
2341 | int _result; | |
2342 | wxListEvent * _arg0; | |
1d99702e | 2343 | PyObject * _argo0 = 0; |
efc5f224 | 2344 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2345 | |
2346 | self = self; | |
f6bcfd97 | 2347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 2348 | return NULL; |
1d99702e RD |
2349 | if (_argo0) { |
2350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCode. Expected _wxListEvent_p."); |
8ab979d7 RD |
2353 | return NULL; |
2354 | } | |
2355 | } | |
cf694132 | 2356 | { |
4268f798 | 2357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2358 | _result = (int )wxListEvent_GetCode(_arg0); |
cf694132 | 2359 | |
4268f798 | 2360 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2361 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2362 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2363 | return _resultobj; |
2364 | } | |
2365 | ||
f6bcfd97 BP |
2366 | #define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex()) |
2367 | static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2368 | PyObject * _resultobj; |
2369 | long _result; | |
2370 | wxListEvent * _arg0; | |
1d99702e | 2371 | PyObject * _argo0 = 0; |
f6bcfd97 | 2372 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2373 | |
2374 | self = self; | |
f6bcfd97 | 2375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0)) |
af309447 | 2376 | return NULL; |
1d99702e RD |
2377 | if (_argo0) { |
2378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p."); |
af309447 RD |
2381 | return NULL; |
2382 | } | |
2383 | } | |
cf694132 | 2384 | { |
4268f798 | 2385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2386 | _result = (long )wxListEvent_GetIndex(_arg0); |
cf694132 | 2387 | |
4268f798 | 2388 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2389 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2390 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2391 | return _resultobj; |
2392 | } | |
2393 | ||
f6bcfd97 BP |
2394 | #define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn()) |
2395 | static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2396 | PyObject * _resultobj; |
f6bcfd97 | 2397 | int _result; |
8ab979d7 | 2398 | wxListEvent * _arg0; |
1d99702e | 2399 | PyObject * _argo0 = 0; |
efc5f224 | 2400 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2401 | |
2402 | self = self; | |
f6bcfd97 | 2403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0)) |
8ab979d7 | 2404 | return NULL; |
1d99702e RD |
2405 | if (_argo0) { |
2406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p."); |
8ab979d7 RD |
2409 | return NULL; |
2410 | } | |
2411 | } | |
cf694132 | 2412 | { |
4268f798 | 2413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2414 | _result = (int )wxListEvent_GetColumn(_arg0); |
cf694132 | 2415 | |
4268f798 | 2416 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2417 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2418 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2419 | return _resultobj; |
2420 | } | |
2421 | ||
f6bcfd97 BP |
2422 | #define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
2423 | static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2424 | PyObject * _resultobj; |
f6bcfd97 | 2425 | wxPoint * _result; |
8ab979d7 | 2426 | wxListEvent * _arg0; |
1d99702e | 2427 | PyObject * _argo0 = 0; |
efc5f224 | 2428 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2429 | char _ptemp[128]; |
8ab979d7 RD |
2430 | |
2431 | self = self; | |
f6bcfd97 | 2432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 2433 | return NULL; |
1d99702e RD |
2434 | if (_argo0) { |
2435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetPoint. Expected _wxListEvent_p."); |
8ab979d7 RD |
2438 | return NULL; |
2439 | } | |
2440 | } | |
cf694132 | 2441 | { |
4268f798 | 2442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2443 | _result = new wxPoint (wxListEvent_GetPoint(_arg0)); |
cf694132 | 2444 | |
4268f798 | 2445 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2446 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2447 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2448 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
2449 | return _resultobj; |
2450 | } | |
2451 | ||
f6bcfd97 BP |
2452 | #define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
2453 | static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2454 | PyObject * _resultobj; |
f6bcfd97 | 2455 | wxString * _result; |
af309447 | 2456 | wxListEvent * _arg0; |
1d99702e | 2457 | PyObject * _argo0 = 0; |
f6bcfd97 | 2458 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2459 | |
2460 | self = self; | |
f6bcfd97 | 2461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetLabel",_kwnames,&_argo0)) |
af309447 | 2462 | return NULL; |
1d99702e RD |
2463 | if (_argo0) { |
2464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetLabel. Expected _wxListEvent_p."); |
af309447 RD |
2467 | return NULL; |
2468 | } | |
2469 | } | |
cf694132 | 2470 | { |
4268f798 | 2471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2472 | const wxString & _result_ref = wxListEvent_GetLabel(_arg0); |
f6bcfd97 | 2473 | _result = (wxString *) &_result_ref; |
cf694132 | 2474 | |
4268f798 | 2475 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2476 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2477 | }{ |
c8bc7bb8 RD |
2478 | #if wxUSE_UNICODE |
2479 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2480 | #else | |
f6bcfd97 | 2481 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2482 | #endif |
f6bcfd97 | 2483 | } |
af309447 RD |
2484 | return _resultobj; |
2485 | } | |
2486 | ||
f6bcfd97 BP |
2487 | #define wxListEvent_GetText(_swigobj) (_swigobj->GetText()) |
2488 | static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2489 | PyObject * _resultobj; |
f6bcfd97 | 2490 | wxString * _result; |
8ab979d7 | 2491 | wxListEvent * _arg0; |
1d99702e | 2492 | PyObject * _argo0 = 0; |
efc5f224 | 2493 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2494 | |
2495 | self = self; | |
f6bcfd97 | 2496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0)) |
8ab979d7 | 2497 | return NULL; |
1d99702e RD |
2498 | if (_argo0) { |
2499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p."); |
8ab979d7 RD |
2502 | return NULL; |
2503 | } | |
2504 | } | |
cf694132 | 2505 | { |
4268f798 | 2506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2507 | const wxString & _result_ref = wxListEvent_GetText(_arg0); |
f6bcfd97 | 2508 | _result = (wxString *) &_result_ref; |
cf694132 | 2509 | |
4268f798 | 2510 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2511 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2512 | }{ |
c8bc7bb8 RD |
2513 | #if wxUSE_UNICODE |
2514 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2515 | #else | |
f6bcfd97 | 2516 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2517 | #endif |
f6bcfd97 | 2518 | } |
8ab979d7 RD |
2519 | return _resultobj; |
2520 | } | |
2521 | ||
f6bcfd97 BP |
2522 | #define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage()) |
2523 | static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2524 | PyObject * _resultobj; |
f6bcfd97 | 2525 | int _result; |
af309447 | 2526 | wxListEvent * _arg0; |
1d99702e | 2527 | PyObject * _argo0 = 0; |
f6bcfd97 | 2528 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2529 | |
2530 | self = self; | |
f6bcfd97 | 2531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0)) |
af309447 | 2532 | return NULL; |
1d99702e RD |
2533 | if (_argo0) { |
2534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p."); |
af309447 RD |
2537 | return NULL; |
2538 | } | |
2539 | } | |
cf694132 | 2540 | { |
4268f798 | 2541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2542 | _result = (int )wxListEvent_GetImage(_arg0); |
cf694132 | 2543 | |
4268f798 | 2544 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2545 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2546 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2547 | return _resultobj; |
2548 | } | |
2549 | ||
f6bcfd97 BP |
2550 | #define wxListEvent_GetData(_swigobj) (_swigobj->GetData()) |
2551 | static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2552 | PyObject * _resultobj; |
f6bcfd97 | 2553 | long _result; |
8ab979d7 | 2554 | wxListEvent * _arg0; |
1d99702e | 2555 | PyObject * _argo0 = 0; |
efc5f224 | 2556 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2557 | |
2558 | self = self; | |
f6bcfd97 | 2559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0)) |
8ab979d7 | 2560 | return NULL; |
1d99702e RD |
2561 | if (_argo0) { |
2562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p."); |
8ab979d7 RD |
2565 | return NULL; |
2566 | } | |
2567 | } | |
cf694132 | 2568 | { |
4268f798 | 2569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2570 | _result = (long )wxListEvent_GetData(_arg0); |
cf694132 | 2571 | |
4268f798 | 2572 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2573 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2574 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2575 | return _resultobj; |
2576 | } | |
2577 | ||
f6bcfd97 BP |
2578 | #define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask()) |
2579 | static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2580 | PyObject * _resultobj; |
f6bcfd97 | 2581 | long _result; |
af309447 | 2582 | wxListEvent * _arg0; |
1d99702e | 2583 | PyObject * _argo0 = 0; |
f6bcfd97 | 2584 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2585 | |
2586 | self = self; | |
f6bcfd97 | 2587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetMask",_kwnames,&_argo0)) |
af309447 | 2588 | return NULL; |
1d99702e RD |
2589 | if (_argo0) { |
2590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetMask. Expected _wxListEvent_p."); |
af309447 RD |
2593 | return NULL; |
2594 | } | |
2595 | } | |
cf694132 | 2596 | { |
4268f798 | 2597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2598 | _result = (long )wxListEvent_GetMask(_arg0); |
cf694132 | 2599 | |
4268f798 | 2600 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2601 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2602 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2603 | return _resultobj; |
2604 | } | |
2605 | ||
f6bcfd97 BP |
2606 | #define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
2607 | static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2608 | PyObject * _resultobj; |
2609 | wxListItem * _result; | |
2610 | wxListEvent * _arg0; | |
1d99702e | 2611 | PyObject * _argo0 = 0; |
efc5f224 | 2612 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2613 | |
2614 | self = self; | |
f6bcfd97 | 2615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 2616 | return NULL; |
1d99702e RD |
2617 | if (_argo0) { |
2618 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2619 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p."); |
8ab979d7 RD |
2621 | return NULL; |
2622 | } | |
2623 | } | |
cf694132 | 2624 | { |
4268f798 | 2625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2626 | const wxListItem & _result_ref = wxListEvent_GetItem(_arg0); |
f6bcfd97 | 2627 | _result = (wxListItem *) &_result_ref; |
cf694132 | 2628 | |
4268f798 | 2629 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2630 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2631 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2632 | return _resultobj; |
2633 | } | |
2634 | ||
6d19860f RD |
2635 | #define wxListEvent_GetCacheFrom(_swigobj) (_swigobj->GetCacheFrom()) |
2636 | static PyObject *_wrap_wxListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2637 | PyObject * _resultobj; | |
2638 | long _result; | |
2639 | wxListEvent * _arg0; | |
2640 | PyObject * _argo0 = 0; | |
2641 | char *_kwnames[] = { "self", NULL }; | |
2642 | ||
2643 | self = self; | |
2644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheFrom",_kwnames,&_argo0)) | |
2645 | return NULL; | |
2646 | if (_argo0) { | |
2647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheFrom. Expected _wxListEvent_p."); | |
2650 | return NULL; | |
2651 | } | |
2652 | } | |
2653 | { | |
4268f798 | 2654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2655 | _result = (long )wxListEvent_GetCacheFrom(_arg0); |
6d19860f | 2656 | |
4268f798 | 2657 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
2658 | if (PyErr_Occurred()) return NULL; |
2659 | } _resultobj = Py_BuildValue("l",_result); | |
2660 | return _resultobj; | |
2661 | } | |
2662 | ||
2663 | #define wxListEvent_GetCacheTo(_swigobj) (_swigobj->GetCacheTo()) | |
2664 | static PyObject *_wrap_wxListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2665 | PyObject * _resultobj; | |
2666 | long _result; | |
2667 | wxListEvent * _arg0; | |
2668 | PyObject * _argo0 = 0; | |
2669 | char *_kwnames[] = { "self", NULL }; | |
2670 | ||
2671 | self = self; | |
2672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheTo",_kwnames,&_argo0)) | |
2673 | return NULL; | |
2674 | if (_argo0) { | |
2675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheTo. Expected _wxListEvent_p."); | |
2678 | return NULL; | |
2679 | } | |
2680 | } | |
2681 | { | |
4268f798 | 2682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2683 | _result = (long )wxListEvent_GetCacheTo(_arg0); |
6d19860f | 2684 | |
4268f798 | 2685 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
2686 | if (PyErr_Occurred()) return NULL; |
2687 | } _resultobj = Py_BuildValue("l",_result); | |
2688 | return _resultobj; | |
2689 | } | |
2690 | ||
c7e7022c RD |
2691 | static void *SwigwxPyListCtrlTowxControl(void *ptr) { |
2692 | wxPyListCtrl *src; | |
8ab979d7 | 2693 | wxControl *dest; |
c7e7022c | 2694 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2695 | dest = (wxControl *) src; |
2696 | return (void *) dest; | |
2697 | } | |
2698 | ||
c7e7022c RD |
2699 | static void *SwigwxPyListCtrlTowxWindow(void *ptr) { |
2700 | wxPyListCtrl *src; | |
8ab979d7 | 2701 | wxWindow *dest; |
c7e7022c | 2702 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2703 | dest = (wxWindow *) src; |
2704 | return (void *) dest; | |
2705 | } | |
2706 | ||
c7e7022c RD |
2707 | static void *SwigwxPyListCtrlTowxEvtHandler(void *ptr) { |
2708 | wxPyListCtrl *src; | |
8ab979d7 | 2709 | wxEvtHandler *dest; |
c7e7022c | 2710 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2711 | dest = (wxEvtHandler *) src; |
2712 | return (void *) dest; | |
2713 | } | |
2714 | ||
c7e7022c RD |
2715 | static void *SwigwxPyListCtrlTowxObject(void *ptr) { |
2716 | wxPyListCtrl *src; | |
9416aa89 | 2717 | wxObject *dest; |
c7e7022c | 2718 | src = (wxPyListCtrl *) ptr; |
9416aa89 RD |
2719 | dest = (wxObject *) src; |
2720 | return (void *) dest; | |
2721 | } | |
2722 | ||
c7e7022c | 2723 | #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 2724 | static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 2725 | PyObject * _resultobj; |
c7e7022c | 2726 | wxPyListCtrl * _result; |
8ab979d7 | 2727 | wxWindow * _arg0; |
c7e7022c | 2728 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
2729 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
2730 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
0adbc166 | 2731 | long _arg4 = (long ) (wxLC_ICON); |
e508a2b6 | 2732 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
137b5242 | 2733 | wxString * _arg6 = (wxString *) &wxPyListCtrlNameStr; |
1d99702e | 2734 | PyObject * _argo0 = 0; |
2f90df85 RD |
2735 | wxPoint temp; |
2736 | PyObject * _obj2 = 0; | |
2737 | wxSize temp0; | |
2738 | PyObject * _obj3 = 0; | |
1d99702e | 2739 | PyObject * _argo5 = 0; |
137b5242 | 2740 | PyObject * _obj6 = 0; |
efc5f224 | 2741 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
2742 | char _ptemp[128]; |
2743 | ||
2744 | self = self; | |
137b5242 | 2745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) |
8ab979d7 | 2746 | return NULL; |
1d99702e RD |
2747 | if (_argo0) { |
2748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p."); |
2751 | return NULL; | |
2752 | } | |
2753 | } | |
2f90df85 RD |
2754 | if (_obj2) |
2755 | { | |
2756 | _arg2 = &temp; | |
2757 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 2758 | return NULL; |
2f90df85 RD |
2759 | } |
2760 | if (_obj3) | |
2761 | { | |
2762 | _arg3 = &temp0; | |
2763 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 2764 | return NULL; |
2f90df85 | 2765 | } |
1d99702e RD |
2766 | if (_argo5) { |
2767 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
2768 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
2769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p."); |
2770 | return NULL; | |
2771 | } | |
2772 | } | |
137b5242 RD |
2773 | if (_obj6) |
2774 | { | |
2775 | _arg6 = wxString_in_helper(_obj6); | |
2776 | if (_arg6 == NULL) | |
2777 | return NULL; | |
2778 | } | |
cf694132 | 2779 | { |
4268f798 | 2780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 2781 | _result = (wxPyListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
cf694132 | 2782 | |
4268f798 | 2783 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2784 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2785 | } if (_result) { |
c7e7022c | 2786 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); |
1d99702e RD |
2787 | _resultobj = Py_BuildValue("s",_ptemp); |
2788 | } else { | |
2789 | Py_INCREF(Py_None); | |
2790 | _resultobj = Py_None; | |
2791 | } | |
137b5242 RD |
2792 | { |
2793 | if (_obj6) | |
2794 | delete _arg6; | |
2795 | } | |
8ab979d7 RD |
2796 | return _resultobj; |
2797 | } | |
2798 | ||
09f3d4e6 RD |
2799 | #define new_wxPreListCtrl() (new wxPyListCtrl()) |
2800 | static PyObject *_wrap_new_wxPreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2801 | PyObject * _resultobj; | |
2802 | wxPyListCtrl * _result; | |
2803 | char *_kwnames[] = { NULL }; | |
2804 | char _ptemp[128]; | |
2805 | ||
2806 | self = self; | |
2807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListCtrl",_kwnames)) | |
2808 | return NULL; | |
2809 | { | |
4268f798 | 2810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2811 | _result = (wxPyListCtrl *)new_wxPreListCtrl(); |
09f3d4e6 | 2812 | |
4268f798 | 2813 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
2814 | if (PyErr_Occurred()) return NULL; |
2815 | } if (_result) { | |
2816 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); | |
2817 | _resultobj = Py_BuildValue("s",_ptemp); | |
2818 | } else { | |
2819 | Py_INCREF(Py_None); | |
2820 | _resultobj = Py_None; | |
2821 | } | |
2822 | return _resultobj; | |
2823 | } | |
2824 | ||
2825 | #define wxListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
2826 | static PyObject *_wrap_wxListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2827 | PyObject * _resultobj; | |
2828 | bool _result; | |
2829 | wxPyListCtrl * _arg0; | |
2830 | wxWindow * _arg1; | |
2831 | wxWindowID _arg2 = (wxWindowID ) -1; | |
2832 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
2833 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2834 | long _arg5 = (long ) (wxLC_ICON); | |
2835 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 2836 | wxString * _arg7 = (wxString *) &wxPyListCtrlNameStr; |
09f3d4e6 RD |
2837 | PyObject * _argo0 = 0; |
2838 | PyObject * _argo1 = 0; | |
2839 | wxPoint temp; | |
2840 | PyObject * _obj3 = 0; | |
2841 | wxSize temp0; | |
2842 | PyObject * _obj4 = 0; | |
2843 | PyObject * _argo6 = 0; | |
137b5242 | 2844 | PyObject * _obj7 = 0; |
09f3d4e6 RD |
2845 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; |
2846 | ||
2847 | self = self; | |
137b5242 | 2848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
09f3d4e6 RD |
2849 | return NULL; |
2850 | if (_argo0) { | |
2851 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2852 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
2853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Create. Expected _wxPyListCtrl_p."); | |
2854 | return NULL; | |
2855 | } | |
2856 | } | |
2857 | if (_argo1) { | |
2858 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2859 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_Create. Expected _wxWindow_p."); | |
2861 | return NULL; | |
2862 | } | |
2863 | } | |
2864 | if (_obj3) | |
2865 | { | |
2866 | _arg3 = &temp; | |
2867 | if (! wxPoint_helper(_obj3, &_arg3)) | |
2868 | return NULL; | |
2869 | } | |
2870 | if (_obj4) | |
2871 | { | |
2872 | _arg4 = &temp0; | |
2873 | if (! wxSize_helper(_obj4, &_arg4)) | |
2874 | return NULL; | |
2875 | } | |
2876 | if (_argo6) { | |
2877 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2878 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
2879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListCtrl_Create. Expected _wxValidator_p."); | |
2880 | return NULL; | |
2881 | } | |
2882 | } | |
137b5242 RD |
2883 | if (_obj7) |
2884 | { | |
2885 | _arg7 = wxString_in_helper(_obj7); | |
2886 | if (_arg7 == NULL) | |
2887 | return NULL; | |
2888 | } | |
09f3d4e6 | 2889 | { |
4268f798 | 2890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 2891 | _result = (bool )wxListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
09f3d4e6 | 2892 | |
4268f798 | 2893 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
2894 | if (PyErr_Occurred()) return NULL; |
2895 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
2896 | { |
2897 | if (_obj7) | |
2898 | delete _arg7; | |
2899 | } | |
09f3d4e6 RD |
2900 | return _resultobj; |
2901 | } | |
2902 | ||
0122b7e3 RD |
2903 | #define wxListCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
2904 | static PyObject *_wrap_wxListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2905 | PyObject * _resultobj; |
c7e7022c RD |
2906 | wxPyListCtrl * _arg0; |
2907 | PyObject * _arg1; | |
2908 | PyObject * _arg2; | |
1d99702e | 2909 | PyObject * _argo0 = 0; |
c7e7022c RD |
2910 | PyObject * _obj1 = 0; |
2911 | PyObject * _obj2 = 0; | |
2912 | char *_kwnames[] = { "self","self","_class", NULL }; | |
8ab979d7 RD |
2913 | |
2914 | self = self; | |
0122b7e3 | 2915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxListCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 2916 | return NULL; |
1d99702e RD |
2917 | if (_argo0) { |
2918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c | 2919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
0122b7e3 | 2920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl__setCallbackInfo. Expected _wxPyListCtrl_p."); |
8ab979d7 RD |
2921 | return NULL; |
2922 | } | |
2923 | } | |
c7e7022c RD |
2924 | { |
2925 | _arg1 = _obj1; | |
2926 | } | |
2927 | { | |
2928 | _arg2 = _obj2; | |
2929 | } | |
cf694132 | 2930 | { |
4268f798 | 2931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2932 | wxListCtrl__setCallbackInfo(_arg0,_arg1,_arg2); |
cf694132 | 2933 | |
4268f798 | 2934 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2935 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
2936 | } Py_INCREF(Py_None); |
2937 | _resultobj = Py_None; | |
8ab979d7 RD |
2938 | return _resultobj; |
2939 | } | |
2940 | ||
c7e7022c RD |
2941 | #define wxListCtrl_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) |
2942 | static PyObject *_wrap_wxListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1b62f00d | 2943 | PyObject * _resultobj; |
c7e7022c RD |
2944 | bool _result; |
2945 | wxPyListCtrl * _arg0; | |
2946 | wxColour * _arg1; | |
1b62f00d | 2947 | PyObject * _argo0 = 0; |
c7e7022c RD |
2948 | wxColour temp; |
2949 | PyObject * _obj1 = 0; | |
2950 | char *_kwnames[] = { "self","col", NULL }; | |
1b62f00d RD |
2951 | |
2952 | self = self; | |
c7e7022c | 2953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
1b62f00d RD |
2954 | return NULL; |
2955 | if (_argo0) { | |
2956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
2957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
2958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetForegroundColour. Expected _wxPyListCtrl_p."); | |
1b62f00d RD |
2959 | return NULL; |
2960 | } | |
2961 | } | |
c7e7022c RD |
2962 | { |
2963 | _arg1 = &temp; | |
2964 | if (! wxColour_helper(_obj1, &_arg1)) | |
1b62f00d | 2965 | return NULL; |
c7e7022c | 2966 | } |
1b62f00d | 2967 | { |
4268f798 | 2968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2969 | _result = (bool )wxListCtrl_SetForegroundColour(_arg0,*_arg1); |
1b62f00d | 2970 | |
4268f798 | 2971 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2972 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 2973 | } _resultobj = Py_BuildValue("i",_result); |
1b62f00d RD |
2974 | return _resultobj; |
2975 | } | |
2976 | ||
c7e7022c RD |
2977 | #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
2978 | static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2979 | PyObject * _resultobj; |
2980 | bool _result; | |
c7e7022c RD |
2981 | wxPyListCtrl * _arg0; |
2982 | wxColour * _arg1; | |
1d99702e | 2983 | PyObject * _argo0 = 0; |
c7e7022c RD |
2984 | wxColour temp; |
2985 | PyObject * _obj1 = 0; | |
2986 | char *_kwnames[] = { "self","col", NULL }; | |
8ab979d7 RD |
2987 | |
2988 | self = self; | |
c7e7022c | 2989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2990 | return NULL; |
1d99702e RD |
2991 | if (_argo0) { |
2992 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
2993 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
2994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
2995 | return NULL; |
2996 | } | |
2997 | } | |
c7e7022c RD |
2998 | { |
2999 | _arg1 = &temp; | |
3000 | if (! wxColour_helper(_obj1, &_arg1)) | |
3001 | return NULL; | |
3002 | } | |
cf694132 | 3003 | { |
4268f798 | 3004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3005 | _result = (bool )wxListCtrl_SetBackgroundColour(_arg0,*_arg1); |
cf694132 | 3006 | |
4268f798 | 3007 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3008 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3009 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3010 | return _resultobj; |
3011 | } | |
3012 | ||
14afa2cb RD |
3013 | static wxListItem * wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col) { |
3014 | wxListItem item; | |
be13a6af | 3015 | item.SetMask(0xFFFF); |
14afa2cb RD |
3016 | if (self->GetColumn(col, item)) |
3017 | return new wxListItem(item); | |
3018 | else | |
3019 | return NULL; | |
3020 | } | |
c7e7022c | 3021 | static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3022 | PyObject * _resultobj; |
14afa2cb | 3023 | wxListItem * _result; |
c7e7022c RD |
3024 | wxPyListCtrl * _arg0; |
3025 | int _arg1; | |
1d99702e | 3026 | PyObject * _argo0 = 0; |
14afa2cb | 3027 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3028 | |
3029 | self = self; | |
14afa2cb | 3030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3031 | return NULL; |
1d99702e RD |
3032 | if (_argo0) { |
3033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxPyListCtrl_p."); | |
3036 | return NULL; | |
3037 | } | |
3038 | } | |
cf694132 | 3039 | { |
4268f798 | 3040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3041 | _result = (wxListItem *)wxPyListCtrl_GetColumn(_arg0,_arg1); |
cf694132 | 3042 | |
4268f798 | 3043 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3044 | if (PyErr_Occurred()) return NULL; |
14afa2cb | 3045 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
3046 | return _resultobj; |
3047 | } | |
3048 | ||
c7e7022c RD |
3049 | #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1)) |
3050 | static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3051 | PyObject * _resultobj; |
3052 | bool _result; | |
c7e7022c | 3053 | wxPyListCtrl * _arg0; |
8ab979d7 | 3054 | int _arg1; |
c7e7022c | 3055 | wxListItem * _arg2; |
1d99702e | 3056 | PyObject * _argo0 = 0; |
c7e7022c RD |
3057 | PyObject * _argo2 = 0; |
3058 | char *_kwnames[] = { "self","col","item", NULL }; | |
8ab979d7 RD |
3059 | |
3060 | self = self; | |
c7e7022c | 3061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3062 | return NULL; |
1d99702e RD |
3063 | if (_argo0) { |
3064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxPyListCtrl_p."); | |
3067 | return NULL; | |
3068 | } | |
3069 | } | |
3070 | if (_argo2) { | |
3071 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3072 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
3073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p."); | |
8ab979d7 RD |
3074 | return NULL; |
3075 | } | |
3076 | } | |
cf694132 | 3077 | { |
4268f798 | 3078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3079 | _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2); |
cf694132 | 3080 | |
4268f798 | 3081 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3082 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3083 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3084 | return _resultobj; |
3085 | } | |
3086 | ||
c7e7022c RD |
3087 | #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0)) |
3088 | static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3089 | PyObject * _resultobj; |
c7e7022c RD |
3090 | int _result; |
3091 | wxPyListCtrl * _arg0; | |
3092 | int _arg1; | |
1d99702e | 3093 | PyObject * _argo0 = 0; |
c7e7022c | 3094 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3095 | |
3096 | self = self; | |
c7e7022c | 3097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3098 | return NULL; |
1d99702e RD |
3099 | if (_argo0) { |
3100 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3101 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3102 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3103 | return NULL; |
3104 | } | |
3105 | } | |
cf694132 | 3106 | { |
4268f798 | 3107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3108 | _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1); |
cf694132 | 3109 | |
4268f798 | 3110 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3111 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3112 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3113 | return _resultobj; |
3114 | } | |
3115 | ||
c7e7022c RD |
3116 | #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1)) |
3117 | static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3118 | PyObject * _resultobj; |
c7e7022c RD |
3119 | bool _result; |
3120 | wxPyListCtrl * _arg0; | |
3121 | int _arg1; | |
3122 | int _arg2; | |
1d99702e | 3123 | PyObject * _argo0 = 0; |
c7e7022c | 3124 | char *_kwnames[] = { "self","col","width", NULL }; |
8ab979d7 RD |
3125 | |
3126 | self = self; | |
c7e7022c | 3127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3128 | return NULL; |
1d99702e RD |
3129 | if (_argo0) { |
3130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3133 | return NULL; |
3134 | } | |
3135 | } | |
cf694132 | 3136 | { |
4268f798 | 3137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3138 | _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2); |
cf694132 | 3139 | |
4268f798 | 3140 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3141 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3142 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3143 | return _resultobj; |
3144 | } | |
3145 | ||
c7e7022c RD |
3146 | #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage()) |
3147 | static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3148 | PyObject * _resultobj; |
c7e7022c RD |
3149 | int _result; |
3150 | wxPyListCtrl * _arg0; | |
1d99702e | 3151 | PyObject * _argo0 = 0; |
c7e7022c | 3152 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3153 | |
3154 | self = self; | |
c7e7022c | 3155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0)) |
8ab979d7 | 3156 | return NULL; |
1d99702e RD |
3157 | if (_argo0) { |
3158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3161 | return NULL; |
3162 | } | |
3163 | } | |
cf694132 | 3164 | { |
4268f798 | 3165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3166 | _result = (int )wxListCtrl_GetCountPerPage(_arg0); |
cf694132 | 3167 | |
4268f798 | 3168 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3169 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3170 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3171 | return _resultobj; |
3172 | } | |
3173 | ||
c7e7022c RD |
3174 | #define wxListCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) |
3175 | static PyObject *_wrap_wxListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3176 | PyObject * _resultobj; |
c7e7022c RD |
3177 | wxTextCtrl * _result; |
3178 | wxPyListCtrl * _arg0; | |
1d99702e | 3179 | PyObject * _argo0 = 0; |
c7e7022c | 3180 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3181 | |
3182 | self = self; | |
c7e7022c | 3183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetEditControl",_kwnames,&_argo0)) |
8ab979d7 | 3184 | return NULL; |
1d99702e RD |
3185 | if (_argo0) { |
3186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetEditControl. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3189 | return NULL; |
3190 | } | |
3191 | } | |
cf694132 | 3192 | { |
4268f798 | 3193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3194 | _result = (wxTextCtrl *)wxListCtrl_GetEditControl(_arg0); |
cf694132 | 3195 | |
4268f798 | 3196 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3197 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3198 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
3199 | return _resultobj; |
3200 | } | |
3201 | ||
c7e7022c RD |
3202 | static wxListItem * wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col) { |
3203 | wxListItem* info = new wxListItem; | |
3204 | info->m_itemId = itemId; | |
3205 | info->m_col = col; | |
3206 | info->m_mask = 0xFFFF; | |
3207 | self->GetItem(*info); | |
3208 | return info; | |
3209 | } | |
3210 | static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 3211 | PyObject * _resultobj; |
c7e7022c RD |
3212 | wxListItem * _result; |
3213 | wxPyListCtrl * _arg0; | |
3214 | long _arg1; | |
3215 | int _arg2 = (int ) 0; | |
1d99702e | 3216 | PyObject * _argo0 = 0; |
c7e7022c | 3217 | char *_kwnames[] = { "self","itemId","col", NULL }; |
be4d9c1f RD |
3218 | |
3219 | self = self; | |
c7e7022c | 3220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
be4d9c1f | 3221 | return NULL; |
1d99702e RD |
3222 | if (_argo0) { |
3223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxPyListCtrl_p."); | |
be4d9c1f RD |
3226 | return NULL; |
3227 | } | |
3228 | } | |
cf694132 | 3229 | { |
4268f798 | 3230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3231 | _result = (wxListItem *)wxPyListCtrl_GetItem(_arg0,_arg1,_arg2); |
cf694132 | 3232 | |
4268f798 | 3233 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3234 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 3235 | }{ _resultobj = wxPyMake_wxObject(_result); } |
be4d9c1f RD |
3236 | return _resultobj; |
3237 | } | |
3238 | ||
c7e7022c RD |
3239 | #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) |
3240 | static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3241 | PyObject * _resultobj; |
3242 | bool _result; | |
c7e7022c RD |
3243 | wxPyListCtrl * _arg0; |
3244 | wxListItem * _arg1; | |
1d99702e | 3245 | PyObject * _argo0 = 0; |
c7e7022c RD |
3246 | PyObject * _argo1 = 0; |
3247 | char *_kwnames[] = { "self","info", NULL }; | |
8ab979d7 RD |
3248 | |
3249 | self = self; | |
c7e7022c | 3250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3251 | return NULL; |
1d99702e RD |
3252 | if (_argo0) { |
3253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxPyListCtrl_p."); | |
3256 | return NULL; | |
3257 | } | |
3258 | } | |
3259 | if (_argo1) { | |
3260 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3261 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
3262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p."); | |
8ab979d7 RD |
3263 | return NULL; |
3264 | } | |
3265 | } | |
cf694132 | 3266 | { |
4268f798 | 3267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3268 | _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1); |
cf694132 | 3269 | |
4268f798 | 3270 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3271 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3272 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3273 | return _resultobj; |
3274 | } | |
3275 | ||
c7e7022c RD |
3276 | #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3277 | static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3278 | PyObject * _resultobj; |
3279 | long _result; | |
c7e7022c | 3280 | wxPyListCtrl * _arg0; |
8ab979d7 | 3281 | long _arg1; |
c7e7022c RD |
3282 | int _arg2; |
3283 | wxString * _arg3; | |
3284 | int _arg4 = (int ) -1; | |
1d99702e | 3285 | PyObject * _argo0 = 0; |
c7e7022c RD |
3286 | PyObject * _obj3 = 0; |
3287 | char *_kwnames[] = { "self","index","col","label","imageId", NULL }; | |
8ab979d7 RD |
3288 | |
3289 | self = self; | |
c7e7022c | 3290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
8ab979d7 | 3291 | return NULL; |
1d99702e RD |
3292 | if (_argo0) { |
3293 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3294 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3296 | return NULL; |
3297 | } | |
3298 | } | |
3299 | { | |
c8bc7bb8 RD |
3300 | _arg3 = wxString_in_helper(_obj3); |
3301 | if (_arg3 == NULL) | |
185d7c3e | 3302 | return NULL; |
8ab979d7 | 3303 | } |
cf694132 | 3304 | { |
4268f798 | 3305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3306 | _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4); |
cf694132 | 3307 | |
4268f798 | 3308 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3309 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3310 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 3311 | { |
c7e7022c RD |
3312 | if (_obj3) |
3313 | delete _arg3; | |
8ab979d7 RD |
3314 | } |
3315 | return _resultobj; | |
3316 | } | |
3317 | ||
c7e7022c RD |
3318 | #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1)) |
3319 | static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3320 | PyObject * _resultobj; |
c7e7022c RD |
3321 | int _result; |
3322 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
3323 | long _arg1; |
3324 | long _arg2; | |
1d99702e | 3325 | PyObject * _argo0 = 0; |
c7e7022c | 3326 | char *_kwnames[] = { "self","item","stateMask", NULL }; |
8ab979d7 RD |
3327 | |
3328 | self = self; | |
c7e7022c | 3329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3330 | return NULL; |
1d99702e RD |
3331 | if (_argo0) { |
3332 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3333 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3335 | return NULL; |
3336 | } | |
3337 | } | |
cf694132 | 3338 | { |
4268f798 | 3339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3340 | _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2); |
cf694132 | 3341 | |
4268f798 | 3342 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3343 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3344 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3345 | return _resultobj; |
3346 | } | |
3347 | ||
c7e7022c RD |
3348 | #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2)) |
3349 | static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3350 | PyObject * _resultobj; |
c7e7022c RD |
3351 | bool _result; |
3352 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3353 | long _arg1; |
c7e7022c RD |
3354 | long _arg2; |
3355 | long _arg3; | |
1d99702e | 3356 | PyObject * _argo0 = 0; |
c7e7022c | 3357 | char *_kwnames[] = { "self","item","state","stateMask", NULL }; |
8ab979d7 RD |
3358 | |
3359 | self = self; | |
c7e7022c | 3360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3361 | return NULL; |
1d99702e RD |
3362 | if (_argo0) { |
3363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3366 | return NULL; |
3367 | } | |
3368 | } | |
cf694132 | 3369 | { |
4268f798 | 3370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3371 | _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3372 | |
4268f798 | 3373 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3374 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3375 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3376 | return _resultobj; |
3377 | } | |
3378 | ||
c7e7022c RD |
3379 | #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
3380 | static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3381 | PyObject * _resultobj; |
3382 | bool _result; | |
c7e7022c RD |
3383 | wxPyListCtrl * _arg0; |
3384 | long _arg1; | |
3385 | int _arg2; | |
3386 | int _arg3; | |
1d99702e | 3387 | PyObject * _argo0 = 0; |
c7e7022c | 3388 | char *_kwnames[] = { "self","item","image","selImage", NULL }; |
8ab979d7 RD |
3389 | |
3390 | self = self; | |
c7e7022c | 3391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3392 | return NULL; |
1d99702e RD |
3393 | if (_argo0) { |
3394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3397 | return NULL; |
3398 | } | |
3399 | } | |
cf694132 | 3400 | { |
4268f798 | 3401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3402 | _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3403 | |
4268f798 | 3404 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3405 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3406 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3407 | return _resultobj; |
3408 | } | |
3409 | ||
c7e7022c RD |
3410 | #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
3411 | static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3412 | PyObject * _resultobj; |
c7e7022c RD |
3413 | wxString * _result; |
3414 | wxPyListCtrl * _arg0; | |
3415 | long _arg1; | |
1d99702e | 3416 | PyObject * _argo0 = 0; |
c7e7022c | 3417 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3418 | |
3419 | self = self; | |
c7e7022c | 3420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3421 | return NULL; |
1d99702e RD |
3422 | if (_argo0) { |
3423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3426 | return NULL; |
3427 | } | |
3428 | } | |
cf694132 | 3429 | { |
4268f798 | 3430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3431 | _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1)); |
cf694132 | 3432 | |
4268f798 | 3433 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3434 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3435 | }{ |
c8bc7bb8 RD |
3436 | #if wxUSE_UNICODE |
3437 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3438 | #else | |
c7e7022c | 3439 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3440 | #endif |
c7e7022c RD |
3441 | } |
3442 | { | |
3443 | delete _result; | |
3444 | } | |
8ab979d7 RD |
3445 | return _resultobj; |
3446 | } | |
3447 | ||
c7e7022c RD |
3448 | #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
3449 | static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3450 | PyObject * _resultobj; |
c7e7022c RD |
3451 | wxPyListCtrl * _arg0; |
3452 | long _arg1; | |
3453 | wxString * _arg2; | |
1d99702e | 3454 | PyObject * _argo0 = 0; |
c7e7022c RD |
3455 | PyObject * _obj2 = 0; |
3456 | char *_kwnames[] = { "self","item","str", NULL }; | |
8ab979d7 RD |
3457 | |
3458 | self = self; | |
c7e7022c | 3459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3460 | return NULL; |
1d99702e RD |
3461 | if (_argo0) { |
3462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3465 | return NULL; |
3466 | } | |
3467 | } | |
cf694132 | 3468 | { |
c8bc7bb8 RD |
3469 | _arg2 = wxString_in_helper(_obj2); |
3470 | if (_arg2 == NULL) | |
8ab979d7 | 3471 | return NULL; |
c7e7022c | 3472 | } |
cf694132 | 3473 | { |
4268f798 | 3474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3475 | wxListCtrl_SetItemText(_arg0,_arg1,*_arg2); |
cf694132 | 3476 | |
4268f798 | 3477 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3478 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
3479 | } Py_INCREF(Py_None); |
3480 | _resultobj = Py_None; | |
3481 | { | |
3482 | if (_obj2) | |
3483 | delete _arg2; | |
3484 | } | |
8ab979d7 RD |
3485 | return _resultobj; |
3486 | } | |
3487 | ||
3488 | #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0)) | |
efc5f224 | 3489 | static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3490 | PyObject * _resultobj; |
3491 | long _result; | |
c7e7022c | 3492 | wxPyListCtrl * _arg0; |
8ab979d7 | 3493 | long _arg1; |
1d99702e | 3494 | PyObject * _argo0 = 0; |
efc5f224 | 3495 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3496 | |
3497 | self = self; | |
efc5f224 | 3498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3499 | return NULL; |
1d99702e RD |
3500 | if (_argo0) { |
3501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3504 | return NULL; |
3505 | } | |
3506 | } | |
cf694132 | 3507 | { |
4268f798 | 3508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3509 | _result = (long )wxListCtrl_GetItemData(_arg0,_arg1); |
cf694132 | 3510 | |
4268f798 | 3511 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3512 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3513 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
3514 | return _resultobj; |
3515 | } | |
3516 | ||
c7e7022c RD |
3517 | #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1)) |
3518 | static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3519 | PyObject * _resultobj; |
c7e7022c RD |
3520 | bool _result; |
3521 | wxPyListCtrl * _arg0; | |
0699c864 | 3522 | long _arg1; |
c7e7022c | 3523 | long _arg2; |
1d99702e | 3524 | PyObject * _argo0 = 0; |
c7e7022c | 3525 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
3526 | |
3527 | self = self; | |
c7e7022c | 3528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3529 | return NULL; |
1d99702e RD |
3530 | if (_argo0) { |
3531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3534 | return NULL; |
3535 | } | |
3536 | } | |
cf694132 | 3537 | { |
4268f798 | 3538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3539 | _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2); |
cf694132 | 3540 | |
4268f798 | 3541 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3542 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3543 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3544 | return _resultobj; |
3545 | } | |
3546 | ||
c7e7022c | 3547 | static wxPoint * wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item) { |
8ab979d7 RD |
3548 | wxPoint* pos = new wxPoint; |
3549 | self->GetItemPosition(item, *pos); | |
3550 | return pos; | |
3551 | } | |
efc5f224 | 3552 | static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3553 | PyObject * _resultobj; |
3554 | wxPoint * _result; | |
c7e7022c | 3555 | wxPyListCtrl * _arg0; |
8ab979d7 | 3556 | long _arg1; |
1d99702e | 3557 | PyObject * _argo0 = 0; |
efc5f224 | 3558 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3559 | char _ptemp[128]; |
3560 | ||
3561 | self = self; | |
efc5f224 | 3562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3563 | return NULL; |
1d99702e RD |
3564 | if (_argo0) { |
3565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3568 | return NULL; |
3569 | } | |
3570 | } | |
cf694132 | 3571 | { |
4268f798 | 3572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3573 | _result = (wxPoint *)wxPyListCtrl_GetItemPosition(_arg0,_arg1); |
cf694132 | 3574 | |
4268f798 | 3575 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3576 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3577 | } if (_result) { |
3578 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
3579 | _resultobj = Py_BuildValue("s",_ptemp); | |
3580 | } else { | |
3581 | Py_INCREF(Py_None); | |
3582 | _resultobj = Py_None; | |
3583 | } | |
8ab979d7 RD |
3584 | return _resultobj; |
3585 | } | |
3586 | ||
c7e7022c | 3587 | static wxRect * wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code) { |
8ab979d7 RD |
3588 | wxRect* rect= new wxRect; |
3589 | self->GetItemRect(item, *rect, code); | |
3590 | return rect; | |
3591 | } | |
efc5f224 | 3592 | static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3593 | PyObject * _resultobj; |
3594 | wxRect * _result; | |
c7e7022c | 3595 | wxPyListCtrl * _arg0; |
8ab979d7 | 3596 | long _arg1; |
1d99702e RD |
3597 | int _arg2 = (int ) (wxLIST_RECT_BOUNDS); |
3598 | PyObject * _argo0 = 0; | |
efc5f224 | 3599 | char *_kwnames[] = { "self","item","code", NULL }; |
8ab979d7 RD |
3600 | char _ptemp[128]; |
3601 | ||
3602 | self = self; | |
efc5f224 | 3603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3604 | return NULL; |
1d99702e RD |
3605 | if (_argo0) { |
3606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3609 | return NULL; |
3610 | } | |
3611 | } | |
cf694132 | 3612 | { |
4268f798 | 3613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3614 | _result = (wxRect *)wxPyListCtrl_GetItemRect(_arg0,_arg1,_arg2); |
cf694132 | 3615 | |
4268f798 | 3616 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3617 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3618 | } if (_result) { |
3619 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
3620 | _resultobj = Py_BuildValue("s",_ptemp); | |
3621 | } else { | |
3622 | Py_INCREF(Py_None); | |
3623 | _resultobj = Py_None; | |
3624 | } | |
8ab979d7 RD |
3625 | return _resultobj; |
3626 | } | |
3627 | ||
c7e7022c RD |
3628 | #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1)) |
3629 | static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3630 | PyObject * _resultobj; |
c7e7022c RD |
3631 | bool _result; |
3632 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3633 | long _arg1; |
c7e7022c | 3634 | wxPoint * _arg2; |
1d99702e | 3635 | PyObject * _argo0 = 0; |
c7e7022c RD |
3636 | wxPoint temp; |
3637 | PyObject * _obj2 = 0; | |
3638 | char *_kwnames[] = { "self","item","pos", NULL }; | |
8ab979d7 RD |
3639 | |
3640 | self = self; | |
c7e7022c | 3641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3642 | return NULL; |
1d99702e RD |
3643 | if (_argo0) { |
3644 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3645 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3647 | return NULL; |
3648 | } | |
3649 | } | |
c7e7022c RD |
3650 | { |
3651 | _arg2 = &temp; | |
3652 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3653 | return NULL; | |
3654 | } | |
cf694132 | 3655 | { |
4268f798 | 3656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3657 | _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2); |
cf694132 | 3658 | |
4268f798 | 3659 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3660 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3661 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3662 | return _resultobj; |
3663 | } | |
3664 | ||
3665 | #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
efc5f224 | 3666 | static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3667 | PyObject * _resultobj; |
3668 | int _result; | |
c7e7022c | 3669 | wxPyListCtrl * _arg0; |
1d99702e | 3670 | PyObject * _argo0 = 0; |
efc5f224 | 3671 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3672 | |
3673 | self = self; | |
efc5f224 | 3674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3675 | return NULL; |
1d99702e RD |
3676 | if (_argo0) { |
3677 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3678 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3680 | return NULL; |
3681 | } | |
3682 | } | |
cf694132 | 3683 | { |
4268f798 | 3684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3685 | _result = (int )wxListCtrl_GetItemCount(_arg0); |
cf694132 | 3686 | |
4268f798 | 3687 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3688 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3689 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3690 | return _resultobj; |
3691 | } | |
3692 | ||
c7e7022c RD |
3693 | #define wxListCtrl_GetColumnCount(_swigobj) (_swigobj->GetColumnCount()) |
3694 | static PyObject *_wrap_wxListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3695 | PyObject * _resultobj; |
3696 | int _result; | |
c7e7022c | 3697 | wxPyListCtrl * _arg0; |
1d99702e | 3698 | PyObject * _argo0 = 0; |
c7e7022c | 3699 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3700 | |
3701 | self = self; | |
c7e7022c | 3702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetColumnCount",_kwnames,&_argo0)) |
8ab979d7 | 3703 | return NULL; |
1d99702e RD |
3704 | if (_argo0) { |
3705 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3706 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3708 | return NULL; |
3709 | } | |
3710 | } | |
cf694132 | 3711 | { |
4268f798 | 3712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3713 | _result = (int )wxListCtrl_GetColumnCount(_arg0); |
cf694132 | 3714 | |
4268f798 | 3715 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3716 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3717 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3718 | return _resultobj; |
3719 | } | |
3720 | ||
c7e7022c RD |
3721 | #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0)) |
3722 | static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3723 | PyObject * _resultobj; |
c7e7022c RD |
3724 | int _result; |
3725 | wxPyListCtrl * _arg0; | |
3726 | bool _arg1; | |
1d99702e | 3727 | PyObject * _argo0 = 0; |
c7e7022c RD |
3728 | int tempbool1; |
3729 | char *_kwnames[] = { "self","isSmall", NULL }; | |
8ab979d7 RD |
3730 | |
3731 | self = self; | |
c7e7022c | 3732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3733 | return NULL; |
1d99702e RD |
3734 | if (_argo0) { |
3735 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3736 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3738 | return NULL; |
3739 | } | |
3740 | } | |
c7e7022c | 3741 | _arg1 = (bool ) tempbool1; |
8ab979d7 | 3742 | { |
4268f798 | 3743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3744 | _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1); |
cf694132 | 3745 | |
4268f798 | 3746 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3747 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3748 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3749 | return _resultobj; |
3750 | } | |
3751 | ||
c7e7022c RD |
3752 | #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount()) |
3753 | static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3754 | PyObject * _resultobj; |
c7e7022c RD |
3755 | int _result; |
3756 | wxPyListCtrl * _arg0; | |
1d99702e | 3757 | PyObject * _argo0 = 0; |
c7e7022c | 3758 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3759 | |
3760 | self = self; | |
c7e7022c | 3761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3762 | return NULL; |
1d99702e RD |
3763 | if (_argo0) { |
3764 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3765 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3766 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3767 | return NULL; |
3768 | } | |
3769 | } | |
cf694132 | 3770 | { |
4268f798 | 3771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3772 | _result = (int )wxListCtrl_GetSelectedItemCount(_arg0); |
cf694132 | 3773 | |
4268f798 | 3774 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3775 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3776 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3777 | return _resultobj; |
3778 | } | |
3779 | ||
c7e7022c RD |
3780 | #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
3781 | static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3782 | PyObject * _resultobj; |
c7e7022c RD |
3783 | wxColour * _result; |
3784 | wxPyListCtrl * _arg0; | |
1d99702e | 3785 | PyObject * _argo0 = 0; |
efc5f224 | 3786 | char *_kwnames[] = { "self", NULL }; |
c7e7022c | 3787 | char _ptemp[128]; |
8ab979d7 RD |
3788 | |
3789 | self = self; | |
c7e7022c | 3790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 3791 | return NULL; |
1d99702e RD |
3792 | if (_argo0) { |
3793 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3794 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3796 | return NULL; |
3797 | } | |
3798 | } | |
cf694132 | 3799 | { |
4268f798 | 3800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3801 | _result = new wxColour (wxListCtrl_GetTextColour(_arg0)); |
cf694132 | 3802 | |
4268f798 | 3803 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3804 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3805 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
3806 | _resultobj = Py_BuildValue("s",_ptemp); |
3807 | return _resultobj; | |
3808 | } | |
3809 | ||
be4d9c1f | 3810 | #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
efc5f224 | 3811 | static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
be4d9c1f | 3812 | PyObject * _resultobj; |
c7e7022c | 3813 | wxPyListCtrl * _arg0; |
be4d9c1f | 3814 | wxColour * _arg1; |
1d99702e | 3815 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3816 | wxColour temp; |
3817 | PyObject * _obj1 = 0; | |
efc5f224 | 3818 | char *_kwnames[] = { "self","col", NULL }; |
be4d9c1f RD |
3819 | |
3820 | self = self; | |
f6bcfd97 | 3821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1)) |
be4d9c1f | 3822 | return NULL; |
1d99702e RD |
3823 | if (_argo0) { |
3824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxPyListCtrl_p."); | |
be4d9c1f RD |
3827 | return NULL; |
3828 | } | |
3829 | } | |
f6bcfd97 BP |
3830 | { |
3831 | _arg1 = &temp; | |
3832 | if (! wxColour_helper(_obj1, &_arg1)) | |
be4d9c1f | 3833 | return NULL; |
f6bcfd97 | 3834 | } |
cf694132 | 3835 | { |
4268f798 | 3836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3837 | wxListCtrl_SetTextColour(_arg0,*_arg1); |
cf694132 | 3838 | |
4268f798 | 3839 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3840 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3841 | } Py_INCREF(Py_None); |
be4d9c1f RD |
3842 | _resultobj = Py_None; |
3843 | return _resultobj; | |
3844 | } | |
3845 | ||
8ab979d7 | 3846 | #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem()) |
efc5f224 | 3847 | static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3848 | PyObject * _resultobj; |
3849 | long _result; | |
c7e7022c | 3850 | wxPyListCtrl * _arg0; |
1d99702e | 3851 | PyObject * _argo0 = 0; |
efc5f224 | 3852 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3853 | |
3854 | self = self; | |
efc5f224 | 3855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0)) |
8ab979d7 | 3856 | return NULL; |
1d99702e RD |
3857 | if (_argo0) { |
3858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3861 | return NULL; |
3862 | } | |
3863 | } | |
cf694132 | 3864 | { |
4268f798 | 3865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3866 | _result = (long )wxListCtrl_GetTopItem(_arg0); |
cf694132 | 3867 | |
4268f798 | 3868 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3869 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3870 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
3871 | return _resultobj; |
3872 | } | |
3873 | ||
c7e7022c RD |
3874 | #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1)) |
3875 | static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3876 | PyObject * _resultobj; |
c7e7022c RD |
3877 | wxPyListCtrl * _arg0; |
3878 | long _arg1; | |
3879 | bool _arg2 = (bool ) TRUE; | |
1d99702e | 3880 | PyObject * _argo0 = 0; |
c7e7022c RD |
3881 | int tempbool2 = (int) TRUE; |
3882 | char *_kwnames[] = { "self","style","add", NULL }; | |
8ab979d7 RD |
3883 | |
3884 | self = self; | |
c7e7022c | 3885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 3886 | return NULL; |
1d99702e RD |
3887 | if (_argo0) { |
3888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3891 | return NULL; |
3892 | } | |
3893 | } | |
c7e7022c | 3894 | _arg2 = (bool ) tempbool2; |
cf694132 | 3895 | { |
4268f798 | 3896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3897 | wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2); |
cf694132 | 3898 | |
4268f798 | 3899 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3900 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
3901 | } Py_INCREF(Py_None); |
3902 | _resultobj = Py_None; | |
8ab979d7 RD |
3903 | return _resultobj; |
3904 | } | |
3905 | ||
c7e7022c RD |
3906 | #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
3907 | static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3908 | PyObject * _resultobj; |
c7e7022c | 3909 | wxPyListCtrl * _arg0; |
8ab979d7 | 3910 | long _arg1; |
1d99702e | 3911 | PyObject * _argo0 = 0; |
c7e7022c | 3912 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
3913 | |
3914 | self = self; | |
c7e7022c | 3915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3916 | return NULL; |
1d99702e RD |
3917 | if (_argo0) { |
3918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3921 | return NULL; |
3922 | } | |
3923 | } | |
cf694132 | 3924 | { |
4268f798 | 3925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3926 | wxListCtrl_SetWindowStyleFlag(_arg0,_arg1); |
cf694132 | 3927 | |
4268f798 | 3928 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3929 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
3930 | } Py_INCREF(Py_None); |
3931 | _resultobj = Py_None; | |
8ab979d7 RD |
3932 | return _resultobj; |
3933 | } | |
3934 | ||
c7e7022c RD |
3935 | #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2)) |
3936 | static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3937 | PyObject * _resultobj; |
3938 | long _result; | |
c7e7022c | 3939 | wxPyListCtrl * _arg0; |
8ab979d7 | 3940 | long _arg1; |
c7e7022c RD |
3941 | int _arg2 = (int ) (wxLIST_NEXT_ALL); |
3942 | int _arg3 = (int ) (wxLIST_STATE_DONTCARE); | |
1d99702e | 3943 | PyObject * _argo0 = 0; |
c7e7022c | 3944 | char *_kwnames[] = { "self","item","geometry","state", NULL }; |
8ab979d7 RD |
3945 | |
3946 | self = self; | |
c7e7022c | 3947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3948 | return NULL; |
1d99702e RD |
3949 | if (_argo0) { |
3950 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3953 | return NULL; |
3954 | } | |
3955 | } | |
3956 | { | |
4268f798 | 3957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3958 | _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3); |
c7e7022c | 3959 | |
4268f798 | 3960 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
3961 | if (PyErr_Occurred()) return NULL; |
3962 | } _resultobj = Py_BuildValue("l",_result); | |
3963 | return _resultobj; | |
3964 | } | |
3965 | ||
3966 | #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0)) | |
3967 | static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3968 | PyObject * _resultobj; | |
3969 | wxImageList * _result; | |
3970 | wxPyListCtrl * _arg0; | |
3971 | int _arg1; | |
3972 | PyObject * _argo0 = 0; | |
3973 | char *_kwnames[] = { "self","which", NULL }; | |
3974 | ||
3975 | self = self; | |
3976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1)) | |
185d7c3e | 3977 | return NULL; |
c7e7022c RD |
3978 | if (_argo0) { |
3979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 | 3982 | return NULL; |
c7e7022c | 3983 | } |
8ab979d7 | 3984 | } |
cf694132 | 3985 | { |
4268f798 | 3986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3987 | _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1); |
cf694132 | 3988 | |
4268f798 | 3989 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3990 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3991 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
3992 | return _resultobj; |
3993 | } | |
3994 | ||
c7e7022c RD |
3995 | #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1)) |
3996 | static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3997 | PyObject * _resultobj; |
c7e7022c RD |
3998 | wxPyListCtrl * _arg0; |
3999 | wxImageList * _arg1; | |
4000 | int _arg2; | |
1d99702e RD |
4001 | PyObject * _argo0 = 0; |
4002 | PyObject * _argo1 = 0; | |
c7e7022c | 4003 | char *_kwnames[] = { "self","imageList","which", NULL }; |
8ab979d7 RD |
4004 | |
4005 | self = self; | |
c7e7022c | 4006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4007 | return NULL; |
1d99702e RD |
4008 | if (_argo0) { |
4009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4012 | return NULL; |
4013 | } | |
4014 | } | |
1d99702e RD |
4015 | if (_argo1) { |
4016 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
c7e7022c RD |
4017 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { |
4018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p."); | |
8ab979d7 RD |
4019 | return NULL; |
4020 | } | |
4021 | } | |
cf694132 | 4022 | { |
4268f798 | 4023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4024 | wxListCtrl_SetImageList(_arg0,_arg1,_arg2); |
cf694132 | 4025 | |
4268f798 | 4026 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4027 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4028 | } Py_INCREF(Py_None); |
4029 | _resultobj = Py_None; | |
8ab979d7 RD |
4030 | return _resultobj; |
4031 | } | |
4032 | ||
c7e7022c RD |
4033 | #define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1)) |
4034 | static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4035 | PyObject * _resultobj; |
c7e7022c RD |
4036 | wxPyListCtrl * _arg0; |
4037 | wxImageList * _arg1; | |
4038 | int _arg2; | |
1d99702e | 4039 | PyObject * _argo0 = 0; |
c7e7022c RD |
4040 | PyObject * _argo1 = 0; |
4041 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
8ab979d7 RD |
4042 | |
4043 | self = self; | |
c7e7022c | 4044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4045 | return NULL; |
1d99702e RD |
4046 | if (_argo0) { |
4047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4050 | return NULL; |
4051 | } | |
4052 | } | |
c7e7022c RD |
4053 | if (_argo1) { |
4054 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4055 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p."); | |
8ab979d7 | 4057 | return NULL; |
c7e7022c | 4058 | } |
8ab979d7 | 4059 | } |
cf694132 | 4060 | { |
4268f798 | 4061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4062 | wxListCtrl_AssignImageList(_arg0,_arg1,_arg2); |
cf694132 | 4063 | |
4268f798 | 4064 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4065 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4066 | } Py_INCREF(Py_None); |
4067 | _resultobj = Py_None; | |
8ab979d7 RD |
4068 | return _resultobj; |
4069 | } | |
4070 | ||
c7e7022c RD |
4071 | #define wxListCtrl_IsVirtual(_swigobj) (_swigobj->IsVirtual()) |
4072 | static PyObject *_wrap_wxListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4073 | PyObject * _resultobj; |
c7e7022c RD |
4074 | bool _result; |
4075 | wxPyListCtrl * _arg0; | |
1d99702e | 4076 | PyObject * _argo0 = 0; |
c7e7022c | 4077 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4078 | |
4079 | self = self; | |
c7e7022c | 4080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_IsVirtual",_kwnames,&_argo0)) |
8ab979d7 | 4081 | return NULL; |
1d99702e RD |
4082 | if (_argo0) { |
4083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_IsVirtual. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4086 | return NULL; |
4087 | } | |
4088 | } | |
cf694132 | 4089 | { |
4268f798 | 4090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4091 | _result = (bool )wxListCtrl_IsVirtual(_arg0); |
cf694132 | 4092 | |
4268f798 | 4093 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4094 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4095 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4096 | return _resultobj; |
4097 | } | |
4098 | ||
c7e7022c RD |
4099 | #define wxListCtrl_RefreshItem(_swigobj,_swigarg0) (_swigobj->RefreshItem(_swigarg0)) |
4100 | static PyObject *_wrap_wxListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4101 | PyObject * _resultobj; |
c7e7022c | 4102 | wxPyListCtrl * _arg0; |
8ab979d7 | 4103 | long _arg1; |
1d99702e | 4104 | PyObject * _argo0 = 0; |
c7e7022c | 4105 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4106 | |
4107 | self = self; | |
c7e7022c | 4108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_RefreshItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4109 | return NULL; |
1d99702e RD |
4110 | if (_argo0) { |
4111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4114 | return NULL; |
4115 | } | |
4116 | } | |
cf694132 | 4117 | { |
4268f798 | 4118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4119 | wxListCtrl_RefreshItem(_arg0,_arg1); |
cf694132 | 4120 | |
4268f798 | 4121 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4122 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4123 | } Py_INCREF(Py_None); |
4124 | _resultobj = Py_None; | |
8ab979d7 RD |
4125 | return _resultobj; |
4126 | } | |
4127 | ||
c7e7022c RD |
4128 | #define wxListCtrl_RefreshItems(_swigobj,_swigarg0,_swigarg1) (_swigobj->RefreshItems(_swigarg0,_swigarg1)) |
4129 | static PyObject *_wrap_wxListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4130 | PyObject * _resultobj; |
c7e7022c RD |
4131 | wxPyListCtrl * _arg0; |
4132 | long _arg1; | |
4133 | long _arg2; | |
1d99702e | 4134 | PyObject * _argo0 = 0; |
c7e7022c | 4135 | char *_kwnames[] = { "self","itemFrom","itemTo", NULL }; |
8ab979d7 RD |
4136 | |
4137 | self = self; | |
c7e7022c | 4138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_RefreshItems",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4139 | return NULL; |
1d99702e RD |
4140 | if (_argo0) { |
4141 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4142 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItems. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4144 | return NULL; |
4145 | } | |
4146 | } | |
cf694132 | 4147 | { |
4268f798 | 4148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4149 | wxListCtrl_RefreshItems(_arg0,_arg1,_arg2); |
cf694132 | 4150 | |
4268f798 | 4151 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4152 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4153 | } Py_INCREF(Py_None); |
4154 | _resultobj = Py_None; | |
8ab979d7 RD |
4155 | return _resultobj; |
4156 | } | |
4157 | ||
c7e7022c RD |
4158 | #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0)) |
4159 | static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4160 | PyObject * _resultobj; |
c7e7022c RD |
4161 | bool _result; |
4162 | wxPyListCtrl * _arg0; | |
4163 | int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT); | |
1d99702e | 4164 | PyObject * _argo0 = 0; |
c7e7022c | 4165 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
4166 | |
4167 | self = self; | |
c7e7022c | 4168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4169 | return NULL; |
1d99702e RD |
4170 | if (_argo0) { |
4171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4174 | return NULL; |
4175 | } | |
4176 | } | |
cf694132 | 4177 | { |
4268f798 | 4178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4179 | _result = (bool )wxListCtrl_Arrange(_arg0,_arg1); |
cf694132 | 4180 | |
4268f798 | 4181 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4182 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4183 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4184 | return _resultobj; |
4185 | } | |
4186 | ||
c7e7022c RD |
4187 | #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0)) |
4188 | static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4189 | PyObject * _resultobj; |
4190 | bool _result; | |
c7e7022c RD |
4191 | wxPyListCtrl * _arg0; |
4192 | long _arg1; | |
1d99702e | 4193 | PyObject * _argo0 = 0; |
c7e7022c | 4194 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4195 | |
4196 | self = self; | |
c7e7022c | 4197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4198 | return NULL; |
1d99702e RD |
4199 | if (_argo0) { |
4200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4203 | return NULL; |
4204 | } | |
4205 | } | |
c7e7022c | 4206 | { |
4268f798 | 4207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4208 | _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1); |
c7e7022c | 4209 | |
4268f798 | 4210 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4211 | if (PyErr_Occurred()) return NULL; |
4212 | } _resultobj = Py_BuildValue("i",_result); | |
4213 | return _resultobj; | |
4214 | } | |
4215 | ||
4216 | #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
4217 | static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4218 | PyObject * _resultobj; | |
4219 | bool _result; | |
4220 | wxPyListCtrl * _arg0; | |
4221 | PyObject * _argo0 = 0; | |
4222 | char *_kwnames[] = { "self", NULL }; | |
4223 | ||
4224 | self = self; | |
4225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0)) | |
4226 | return NULL; | |
4227 | if (_argo0) { | |
4228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4231 | return NULL; |
4232 | } | |
4233 | } | |
cf694132 | 4234 | { |
4268f798 | 4235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4236 | _result = (bool )wxListCtrl_DeleteAllItems(_arg0); |
cf694132 | 4237 | |
4268f798 | 4238 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4239 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4240 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4241 | return _resultobj; |
4242 | } | |
4243 | ||
c7e7022c RD |
4244 | #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0)) |
4245 | static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4246 | PyObject * _resultobj; |
4247 | bool _result; | |
c7e7022c | 4248 | wxPyListCtrl * _arg0; |
8ab979d7 | 4249 | int _arg1; |
1d99702e | 4250 | PyObject * _argo0 = 0; |
c7e7022c | 4251 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
4252 | |
4253 | self = self; | |
c7e7022c | 4254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4255 | return NULL; |
1d99702e RD |
4256 | if (_argo0) { |
4257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4260 | return NULL; |
4261 | } | |
4262 | } | |
cf694132 | 4263 | { |
4268f798 | 4264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4265 | _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1); |
cf694132 | 4266 | |
4268f798 | 4267 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4268 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4269 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4270 | return _resultobj; |
4271 | } | |
4272 | ||
c7e7022c RD |
4273 | #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns()) |
4274 | static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4275 | PyObject * _resultobj; |
c7e7022c RD |
4276 | bool _result; |
4277 | wxPyListCtrl * _arg0; | |
1d99702e | 4278 | PyObject * _argo0 = 0; |
c7e7022c | 4279 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4280 | |
4281 | self = self; | |
c7e7022c | 4282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0)) |
8ab979d7 | 4283 | return NULL; |
1d99702e RD |
4284 | if (_argo0) { |
4285 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4286 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4287 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4288 | return NULL; |
4289 | } | |
4290 | } | |
c7e7022c | 4291 | { |
4268f798 | 4292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4293 | _result = (bool )wxListCtrl_DeleteAllColumns(_arg0); |
c7e7022c | 4294 | |
4268f798 | 4295 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4296 | if (PyErr_Occurred()) return NULL; |
4297 | } _resultobj = Py_BuildValue("i",_result); | |
4298 | return _resultobj; | |
4299 | } | |
4300 | ||
4301 | #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll()) | |
4302 | static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4303 | PyObject * _resultobj; | |
4304 | wxPyListCtrl * _arg0; | |
4305 | PyObject * _argo0 = 0; | |
4306 | char *_kwnames[] = { "self", NULL }; | |
4307 | ||
4308 | self = self; | |
4309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0)) | |
4310 | return NULL; | |
4311 | if (_argo0) { | |
4312 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4313 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4314 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4315 | return NULL; |
4316 | } | |
4317 | } | |
cf694132 | 4318 | { |
4268f798 | 4319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4320 | wxListCtrl_ClearAll(_arg0); |
cf694132 | 4321 | |
4268f798 | 4322 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4323 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4324 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4325 | _resultobj = Py_None; |
4326 | return _resultobj; | |
4327 | } | |
4328 | ||
c7e7022c RD |
4329 | #define wxListCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) |
4330 | static PyObject *_wrap_wxListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4331 | PyObject * _resultobj; | |
4332 | wxTextCtrl * _result; | |
4333 | wxPyListCtrl * _arg0; | |
4334 | long _arg1; | |
4335 | PyObject * _argo0 = 0; | |
4336 | char *_kwnames[] = { "self","item", NULL }; | |
4337 | ||
4338 | self = self; | |
4339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EditLabel",_kwnames,&_argo0,&_arg1)) | |
4340 | return NULL; | |
4341 | if (_argo0) { | |
4342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EditLabel. Expected _wxPyListCtrl_p."); | |
4345 | return NULL; | |
4346 | } | |
4347 | } | |
4348 | { | |
4268f798 | 4349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4350 | _result = (wxTextCtrl *)wxListCtrl_EditLabel(_arg0,_arg1); |
c7e7022c | 4351 | |
4268f798 | 4352 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4353 | if (PyErr_Occurred()) return NULL; |
4354 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
4355 | return _resultobj; | |
4356 | } | |
4357 | ||
4358 | #define wxListCtrl_EndEditLabel(_swigobj,_swigarg0) (_swigobj->EndEditLabel(_swigarg0)) | |
4359 | static PyObject *_wrap_wxListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4360 | PyObject * _resultobj; |
4361 | bool _result; | |
c7e7022c RD |
4362 | wxPyListCtrl * _arg0; |
4363 | bool _arg1; | |
1d99702e | 4364 | PyObject * _argo0 = 0; |
c7e7022c RD |
4365 | int tempbool1; |
4366 | char *_kwnames[] = { "self","cancel", NULL }; | |
8ab979d7 RD |
4367 | |
4368 | self = self; | |
c7e7022c | 4369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_EndEditLabel",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4370 | return NULL; |
1d99702e RD |
4371 | if (_argo0) { |
4372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EndEditLabel. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4375 | return NULL; |
4376 | } | |
4377 | } | |
c7e7022c RD |
4378 | _arg1 = (bool ) tempbool1; |
4379 | { | |
4268f798 | 4380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4381 | _result = (bool )wxListCtrl_EndEditLabel(_arg0,_arg1); |
c7e7022c | 4382 | |
4268f798 | 4383 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4384 | if (PyErr_Occurred()) return NULL; |
4385 | } _resultobj = Py_BuildValue("i",_result); | |
4386 | return _resultobj; | |
4387 | } | |
4388 | ||
4389 | #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
4390 | static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4391 | PyObject * _resultobj; | |
4392 | bool _result; | |
4393 | wxPyListCtrl * _arg0; | |
4394 | long _arg1; | |
4395 | PyObject * _argo0 = 0; | |
4396 | char *_kwnames[] = { "self","item", NULL }; | |
4397 | ||
4398 | self = self; | |
4399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1)) | |
4400 | return NULL; | |
4401 | if (_argo0) { | |
4402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4405 | return NULL; |
4406 | } | |
4407 | } | |
cf694132 | 4408 | { |
4268f798 | 4409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4410 | _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1); |
cf694132 | 4411 | |
4268f798 | 4412 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4413 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4414 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4415 | return _resultobj; |
4416 | } | |
4417 | ||
c7e7022c RD |
4418 | #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4419 | static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4420 | PyObject * _resultobj; |
4421 | long _result; | |
c7e7022c | 4422 | wxPyListCtrl * _arg0; |
8ab979d7 | 4423 | long _arg1; |
c7e7022c RD |
4424 | wxString * _arg2; |
4425 | bool _arg3 = (bool ) FALSE; | |
1d99702e | 4426 | PyObject * _argo0 = 0; |
c7e7022c RD |
4427 | PyObject * _obj2 = 0; |
4428 | int tempbool3 = (int) FALSE; | |
4429 | char *_kwnames[] = { "self","start","str","partial", NULL }; | |
8ab979d7 RD |
4430 | |
4431 | self = self; | |
c7e7022c | 4432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
8ab979d7 | 4433 | return NULL; |
1d99702e RD |
4434 | if (_argo0) { |
4435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4438 | return NULL; |
4439 | } | |
4440 | } | |
4441 | { | |
c8bc7bb8 RD |
4442 | _arg2 = wxString_in_helper(_obj2); |
4443 | if (_arg2 == NULL) | |
8ab979d7 | 4444 | return NULL; |
8ab979d7 | 4445 | } |
c7e7022c | 4446 | _arg3 = (bool ) tempbool3; |
cf694132 | 4447 | { |
4268f798 | 4448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4449 | _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4450 | |
4268f798 | 4451 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4452 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4453 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 4454 | { |
c7e7022c RD |
4455 | if (_obj2) |
4456 | delete _arg2; | |
8ab979d7 RD |
4457 | } |
4458 | return _resultobj; | |
4459 | } | |
4460 | ||
c7e7022c RD |
4461 | #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1)) |
4462 | static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4463 | PyObject * _resultobj; |
c7e7022c RD |
4464 | long _result; |
4465 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4466 | long _arg1; |
4467 | long _arg2; | |
1d99702e | 4468 | PyObject * _argo0 = 0; |
c7e7022c | 4469 | char *_kwnames[] = { "self","start","data", NULL }; |
8ab979d7 RD |
4470 | |
4471 | self = self; | |
c7e7022c | 4472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4473 | return NULL; |
1d99702e RD |
4474 | if (_argo0) { |
4475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4478 | return NULL; |
4479 | } | |
4480 | } | |
cf694132 | 4481 | { |
4268f798 | 4482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4483 | _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2); |
cf694132 | 4484 | |
4268f798 | 4485 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4486 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4487 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4488 | return _resultobj; |
4489 | } | |
4490 | ||
c7e7022c RD |
4491 | #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4492 | static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4493 | PyObject * _resultobj; |
c7e7022c RD |
4494 | long _result; |
4495 | wxPyListCtrl * _arg0; | |
4496 | long _arg1; | |
4497 | wxPoint * _arg2; | |
4498 | int _arg3; | |
4499 | PyObject * _argo0 = 0; | |
4500 | wxPoint temp; | |
4501 | PyObject * _obj2 = 0; | |
4502 | char *_kwnames[] = { "self","start","pt","direction", NULL }; | |
4503 | ||
4504 | self = self; | |
4505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) | |
4506 | return NULL; | |
4507 | if (_argo0) { | |
4508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxPyListCtrl_p."); | |
4511 | return NULL; | |
4512 | } | |
4513 | } | |
4514 | { | |
4515 | _arg2 = &temp; | |
4516 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4517 | return NULL; | |
4518 | } | |
4519 | { | |
4268f798 | 4520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4521 | _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3); |
c7e7022c | 4522 | |
4268f798 | 4523 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4524 | if (PyErr_Occurred()) return NULL; |
4525 | } _resultobj = Py_BuildValue("l",_result); | |
4526 | return _resultobj; | |
4527 | } | |
4528 | ||
4529 | #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) | |
4530 | static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4531 | PyObject * _resultobj; | |
4532 | long _result; | |
4533 | wxPyListCtrl * _arg0; | |
4534 | wxPoint * _arg1; | |
4535 | int * _arg2; | |
4536 | int temp; | |
4537 | PyObject * _argo0 = 0; | |
4538 | wxPoint temp0; | |
4539 | PyObject * _obj1 = 0; | |
4540 | char *_kwnames[] = { "self","point", NULL }; | |
4541 | ||
4542 | self = self; | |
4543 | { | |
4544 | _arg2 = &temp; | |
4545 | } | |
4546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1)) | |
4547 | return NULL; | |
4548 | if (_argo0) { | |
4549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxPyListCtrl_p."); | |
4552 | return NULL; | |
4553 | } | |
4554 | } | |
4555 | { | |
4556 | _arg1 = &temp0; | |
4557 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4558 | return NULL; | |
4559 | } | |
4560 | { | |
4268f798 | 4561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4562 | _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2); |
c7e7022c | 4563 | |
4268f798 | 4564 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4565 | if (PyErr_Occurred()) return NULL; |
4566 | } _resultobj = Py_BuildValue("l",_result); | |
4567 | { | |
4568 | PyObject *o; | |
4569 | o = PyInt_FromLong((long) (*_arg2)); | |
4570 | _resultobj = t_output_helper(_resultobj, o); | |
4571 | } | |
4572 | return _resultobj; | |
4573 | } | |
4574 | ||
4575 | #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0)) | |
4576 | static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4577 | PyObject * _resultobj; | |
4578 | long _result; | |
4579 | wxPyListCtrl * _arg0; | |
4580 | wxListItem * _arg1; | |
4581 | PyObject * _argo0 = 0; | |
4582 | PyObject * _argo1 = 0; | |
4583 | char *_kwnames[] = { "self","info", NULL }; | |
4584 | ||
4585 | self = self; | |
4586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1)) | |
4587 | return NULL; | |
4588 | if (_argo0) { | |
4589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxPyListCtrl_p."); | |
4592 | return NULL; | |
4593 | } | |
4594 | } | |
4595 | if (_argo1) { | |
4596 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4597 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
4598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p."); | |
4599 | return NULL; | |
4600 | } | |
4601 | } | |
4602 | { | |
4268f798 | 4603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4604 | _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1); |
c7e7022c | 4605 | |
4268f798 | 4606 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4607 | if (PyErr_Occurred()) return NULL; |
4608 | } _resultobj = Py_BuildValue("l",_result); | |
4609 | return _resultobj; | |
4610 | } | |
4611 | ||
4612 | #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
4613 | static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4614 | PyObject * _resultobj; | |
4615 | long _result; | |
4616 | wxPyListCtrl * _arg0; | |
4617 | long _arg1; | |
4618 | wxString * _arg2; | |
4619 | PyObject * _argo0 = 0; | |
4620 | PyObject * _obj2 = 0; | |
4621 | char *_kwnames[] = { "self","index","label", NULL }; | |
4622 | ||
4623 | self = self; | |
4624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4625 | return NULL; | |
4626 | if (_argo0) { | |
4627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxPyListCtrl_p."); | |
4630 | return NULL; | |
4631 | } | |
4632 | } | |
4633 | { | |
c8bc7bb8 RD |
4634 | _arg2 = wxString_in_helper(_obj2); |
4635 | if (_arg2 == NULL) | |
c7e7022c | 4636 | return NULL; |
c7e7022c RD |
4637 | } |
4638 | { | |
4268f798 | 4639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4640 | _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2); |
c7e7022c | 4641 | |
4268f798 | 4642 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4643 | if (PyErr_Occurred()) return NULL; |
4644 | } _resultobj = Py_BuildValue("l",_result); | |
4645 | { | |
4646 | if (_obj2) | |
4647 | delete _arg2; | |
4648 | } | |
4649 | return _resultobj; | |
4650 | } | |
4651 | ||
4652 | #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
4653 | static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4654 | PyObject * _resultobj; | |
4655 | long _result; | |
4656 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4657 | long _arg1; |
4658 | int _arg2; | |
1d99702e | 4659 | PyObject * _argo0 = 0; |
c7e7022c | 4660 | char *_kwnames[] = { "self","index","imageIndex", NULL }; |
8ab979d7 RD |
4661 | |
4662 | self = self; | |
c7e7022c | 4663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4664 | return NULL; |
1d99702e RD |
4665 | if (_argo0) { |
4666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4669 | return NULL; |
4670 | } | |
4671 | } | |
cf694132 | 4672 | { |
4268f798 | 4673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4674 | _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2); |
cf694132 | 4675 | |
4268f798 | 4676 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4677 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4678 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4679 | return _resultobj; |
4680 | } | |
4681 | ||
c7e7022c RD |
4682 | #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2)) |
4683 | static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4684 | PyObject * _resultobj; |
c7e7022c RD |
4685 | long _result; |
4686 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4687 | long _arg1; |
c7e7022c RD |
4688 | wxString * _arg2; |
4689 | int _arg3; | |
1d99702e | 4690 | PyObject * _argo0 = 0; |
2f90df85 | 4691 | PyObject * _obj2 = 0; |
c7e7022c | 4692 | char *_kwnames[] = { "self","index","label","imageIndex", NULL }; |
8ab979d7 RD |
4693 | |
4694 | self = self; | |
c7e7022c | 4695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4696 | return NULL; |
1d99702e RD |
4697 | if (_argo0) { |
4698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4701 | return NULL; |
4702 | } | |
4703 | } | |
2f90df85 | 4704 | { |
c8bc7bb8 RD |
4705 | _arg2 = wxString_in_helper(_obj2); |
4706 | if (_arg2 == NULL) | |
8ab979d7 | 4707 | return NULL; |
2f90df85 | 4708 | } |
cf694132 | 4709 | { |
4268f798 | 4710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4711 | _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4712 | |
4268f798 | 4713 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4714 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4715 | } _resultobj = Py_BuildValue("l",_result); |
4716 | { | |
4717 | if (_obj2) | |
4718 | delete _arg2; | |
4719 | } | |
8ab979d7 RD |
4720 | return _resultobj; |
4721 | } | |
4722 | ||
c7e7022c RD |
4723 | #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) |
4724 | static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4725 | PyObject * _resultobj; |
c7e7022c RD |
4726 | long _result; |
4727 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4728 | long _arg1; |
c7e7022c | 4729 | wxListItem * _arg2; |
1d99702e | 4730 | PyObject * _argo0 = 0; |
c7e7022c RD |
4731 | PyObject * _argo2 = 0; |
4732 | char *_kwnames[] = { "self","col","info", NULL }; | |
8ab979d7 RD |
4733 | |
4734 | self = self; | |
c7e7022c | 4735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 4736 | return NULL; |
1d99702e RD |
4737 | if (_argo0) { |
4738 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4739 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4740 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxPyListCtrl_p."); | |
4741 | return NULL; | |
4742 | } | |
4743 | } | |
4744 | if (_argo2) { | |
4745 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4746 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
4747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p."); | |
8ab979d7 RD |
4748 | return NULL; |
4749 | } | |
4750 | } | |
cf694132 | 4751 | { |
4268f798 | 4752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4753 | _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2); |
cf694132 | 4754 | |
4268f798 | 4755 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4756 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4757 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4758 | return _resultobj; |
4759 | } | |
4760 | ||
c7e7022c RD |
4761 | #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4762 | static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4763 | PyObject * _resultobj; |
c7e7022c RD |
4764 | long _result; |
4765 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4766 | long _arg1; |
4767 | wxString * _arg2; | |
c7e7022c RD |
4768 | int _arg3 = (int ) (wxLIST_FORMAT_LEFT); |
4769 | int _arg4 = (int ) -1; | |
1d99702e | 4770 | PyObject * _argo0 = 0; |
8ab979d7 | 4771 | PyObject * _obj2 = 0; |
c7e7022c | 4772 | char *_kwnames[] = { "self","col","heading","format","width", NULL }; |
8ab979d7 RD |
4773 | |
4774 | self = self; | |
c7e7022c | 4775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 4776 | return NULL; |
1d99702e RD |
4777 | if (_argo0) { |
4778 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4779 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4781 | return NULL; |
4782 | } | |
4783 | } | |
4784 | { | |
c8bc7bb8 RD |
4785 | _arg2 = wxString_in_helper(_obj2); |
4786 | if (_arg2 == NULL) | |
8ab979d7 | 4787 | return NULL; |
8ab979d7 | 4788 | } |
cf694132 | 4789 | { |
4268f798 | 4790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4791 | _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4); |
cf694132 | 4792 | |
4268f798 | 4793 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4794 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4795 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4796 | { |
4797 | if (_obj2) | |
4798 | delete _arg2; | |
4799 | } | |
4800 | return _resultobj; | |
4801 | } | |
4802 | ||
c7e7022c RD |
4803 | #define wxListCtrl_SetItemCount(_swigobj,_swigarg0) (_swigobj->SetItemCount(_swigarg0)) |
4804 | static PyObject *_wrap_wxListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4805 | PyObject * _resultobj; |
c7e7022c | 4806 | wxPyListCtrl * _arg0; |
8ab979d7 | 4807 | long _arg1; |
1d99702e | 4808 | PyObject * _argo0 = 0; |
c7e7022c | 4809 | char *_kwnames[] = { "self","count", NULL }; |
8ab979d7 RD |
4810 | |
4811 | self = self; | |
c7e7022c | 4812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetItemCount",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4813 | return NULL; |
1d99702e RD |
4814 | if (_argo0) { |
4815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4818 | return NULL; |
4819 | } | |
4820 | } | |
cf694132 | 4821 | { |
4268f798 | 4822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4823 | wxListCtrl_SetItemCount(_arg0,_arg1); |
cf694132 | 4824 | |
4268f798 | 4825 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4826 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4827 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4828 | _resultobj = Py_None; |
4829 | return _resultobj; | |
4830 | } | |
4831 | ||
c7e7022c RD |
4832 | #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1)) |
4833 | static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4834 | PyObject * _resultobj; |
c7e7022c RD |
4835 | bool _result; |
4836 | wxPyListCtrl * _arg0; | |
4837 | int _arg1; | |
4838 | int _arg2; | |
1d99702e | 4839 | PyObject * _argo0 = 0; |
c7e7022c | 4840 | char *_kwnames[] = { "self","dx","dy", NULL }; |
8ab979d7 RD |
4841 | |
4842 | self = self; | |
c7e7022c | 4843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4844 | return NULL; |
1d99702e RD |
4845 | if (_argo0) { |
4846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4849 | return NULL; |
4850 | } | |
4851 | } | |
cf694132 | 4852 | { |
4268f798 | 4853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4854 | _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2); |
cf694132 | 4855 | |
4268f798 | 4856 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4857 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4858 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4859 | return _resultobj; |
4860 | } | |
4861 | ||
3bd1e033 RD |
4862 | #define wxListCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
4863 | static PyObject *_wrap_wxListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4864 | PyObject * _resultobj; | |
4865 | wxPyListCtrl * _arg0; | |
4866 | long _arg1; | |
4867 | wxColour * _arg2; | |
4868 | PyObject * _argo0 = 0; | |
4869 | wxColour temp; | |
4870 | PyObject * _obj2 = 0; | |
4871 | char *_kwnames[] = { "self","item","col", NULL }; | |
4872 | ||
4873 | self = self; | |
4874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemTextColour",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4875 | return NULL; | |
4876 | if (_argo0) { | |
4877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemTextColour. Expected _wxPyListCtrl_p."); | |
4880 | return NULL; | |
4881 | } | |
4882 | } | |
4883 | { | |
4884 | _arg2 = &temp; | |
4885 | if (! wxColour_helper(_obj2, &_arg2)) | |
4886 | return NULL; | |
4887 | } | |
4888 | { | |
4889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4890 | wxListCtrl_SetItemTextColour(_arg0,_arg1,*_arg2); | |
4891 | ||
4892 | wxPyEndAllowThreads(__tstate); | |
4893 | if (PyErr_Occurred()) return NULL; | |
4894 | } Py_INCREF(Py_None); | |
4895 | _resultobj = Py_None; | |
4896 | return _resultobj; | |
4897 | } | |
4898 | ||
4899 | #define wxListCtrl_GetItemTextColour(_swigobj,_swigarg0) (_swigobj->GetItemTextColour(_swigarg0)) | |
4900 | static PyObject *_wrap_wxListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4901 | PyObject * _resultobj; | |
4902 | wxColour * _result; | |
4903 | wxPyListCtrl * _arg0; | |
4904 | long _arg1; | |
4905 | PyObject * _argo0 = 0; | |
4906 | char *_kwnames[] = { "self","item", NULL }; | |
4907 | char _ptemp[128]; | |
4908 | ||
4909 | self = self; | |
4910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemTextColour",_kwnames,&_argo0,&_arg1)) | |
4911 | return NULL; | |
4912 | if (_argo0) { | |
4913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemTextColour. Expected _wxPyListCtrl_p."); | |
4916 | return NULL; | |
4917 | } | |
4918 | } | |
4919 | { | |
4920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4921 | _result = new wxColour (wxListCtrl_GetItemTextColour(_arg0,_arg1)); | |
4922 | ||
4923 | wxPyEndAllowThreads(__tstate); | |
4924 | if (PyErr_Occurred()) return NULL; | |
4925 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
4926 | _resultobj = Py_BuildValue("s",_ptemp); | |
4927 | return _resultobj; | |
4928 | } | |
4929 | ||
4930 | #define wxListCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
4931 | static PyObject *_wrap_wxListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4932 | PyObject * _resultobj; | |
4933 | wxPyListCtrl * _arg0; | |
4934 | long _arg1; | |
4935 | wxColour * _arg2; | |
4936 | PyObject * _argo0 = 0; | |
4937 | wxColour temp; | |
4938 | PyObject * _obj2 = 0; | |
4939 | char *_kwnames[] = { "self","item","col", NULL }; | |
4940 | ||
4941 | self = self; | |
4942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4943 | return NULL; | |
4944 | if (_argo0) { | |
4945 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4946 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemBackgroundColour. Expected _wxPyListCtrl_p."); | |
4948 | return NULL; | |
4949 | } | |
4950 | } | |
4951 | { | |
4952 | _arg2 = &temp; | |
4953 | if (! wxColour_helper(_obj2, &_arg2)) | |
4954 | return NULL; | |
4955 | } | |
4956 | { | |
4957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4958 | wxListCtrl_SetItemBackgroundColour(_arg0,_arg1,*_arg2); | |
4959 | ||
4960 | wxPyEndAllowThreads(__tstate); | |
4961 | if (PyErr_Occurred()) return NULL; | |
4962 | } Py_INCREF(Py_None); | |
4963 | _resultobj = Py_None; | |
4964 | return _resultobj; | |
4965 | } | |
4966 | ||
4967 | #define wxListCtrl_GetItemBackgroundColour(_swigobj,_swigarg0) (_swigobj->GetItemBackgroundColour(_swigarg0)) | |
4968 | static PyObject *_wrap_wxListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4969 | PyObject * _resultobj; | |
4970 | wxColour * _result; | |
4971 | wxPyListCtrl * _arg0; | |
4972 | long _arg1; | |
4973 | PyObject * _argo0 = 0; | |
4974 | char *_kwnames[] = { "self","item", NULL }; | |
4975 | char _ptemp[128]; | |
4976 | ||
4977 | self = self; | |
4978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemBackgroundColour",_kwnames,&_argo0,&_arg1)) | |
4979 | return NULL; | |
4980 | if (_argo0) { | |
4981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemBackgroundColour. Expected _wxPyListCtrl_p."); | |
4984 | return NULL; | |
4985 | } | |
4986 | } | |
4987 | { | |
4988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4989 | _result = new wxColour (wxListCtrl_GetItemBackgroundColour(_arg0,_arg1)); | |
4990 | ||
4991 | wxPyEndAllowThreads(__tstate); | |
4992 | if (PyErr_Occurred()) return NULL; | |
4993 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
4994 | _resultobj = Py_BuildValue("s",_ptemp); | |
4995 | return _resultobj; | |
4996 | } | |
4997 | ||
c7e7022c | 4998 | static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject * func) { |
dcd38683 RD |
4999 | if (!PyCallable_Check(func)) |
5000 | return FALSE; | |
f6bcfd97 | 5001 | return self->SortItems(wxPyListCtrl_SortItems, (long)func); |
dcd38683 RD |
5002 | } |
5003 | static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5004 | PyObject * _resultobj; | |
5005 | bool _result; | |
c7e7022c | 5006 | wxPyListCtrl * _arg0; |
dcd38683 RD |
5007 | PyObject * _arg1; |
5008 | PyObject * _argo0 = 0; | |
5009 | PyObject * _obj1 = 0; | |
5010 | char *_kwnames[] = { "self","func", NULL }; | |
5011 | ||
5012 | self = self; | |
5013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1)) | |
5014 | return NULL; | |
5015 | if (_argo0) { | |
5016 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
5017 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxPyListCtrl_p."); | |
dcd38683 RD |
5019 | return NULL; |
5020 | } | |
5021 | } | |
5022 | { | |
5023 | _arg1 = _obj1; | |
5024 | } | |
5025 | { | |
4268f798 | 5026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5027 | _result = (bool )wxPyListCtrl_SortItems(_arg0,_arg1); |
dcd38683 | 5028 | |
4268f798 | 5029 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5030 | if (PyErr_Occurred()) return NULL; |
dcd38683 RD |
5031 | } _resultobj = Py_BuildValue("i",_result); |
5032 | return _resultobj; | |
5033 | } | |
5034 | ||
6d19860f RD |
5035 | static void *SwigwxListViewTowxPyListCtrl(void *ptr) { |
5036 | wxListView *src; | |
5037 | wxPyListCtrl *dest; | |
5038 | src = (wxListView *) ptr; | |
5039 | dest = (wxPyListCtrl *) src; | |
5040 | return (void *) dest; | |
5041 | } | |
5042 | ||
5043 | static void *SwigwxListViewTowxControl(void *ptr) { | |
5044 | wxListView *src; | |
5045 | wxControl *dest; | |
5046 | src = (wxListView *) ptr; | |
5047 | dest = (wxControl *) src; | |
5048 | return (void *) dest; | |
5049 | } | |
5050 | ||
5051 | static void *SwigwxListViewTowxWindow(void *ptr) { | |
5052 | wxListView *src; | |
5053 | wxWindow *dest; | |
5054 | src = (wxListView *) ptr; | |
5055 | dest = (wxWindow *) src; | |
5056 | return (void *) dest; | |
5057 | } | |
5058 | ||
5059 | static void *SwigwxListViewTowxEvtHandler(void *ptr) { | |
5060 | wxListView *src; | |
5061 | wxEvtHandler *dest; | |
5062 | src = (wxListView *) ptr; | |
5063 | dest = (wxEvtHandler *) src; | |
5064 | return (void *) dest; | |
5065 | } | |
5066 | ||
5067 | static void *SwigwxListViewTowxObject(void *ptr) { | |
5068 | wxListView *src; | |
5069 | wxObject *dest; | |
5070 | src = (wxListView *) ptr; | |
5071 | dest = (wxObject *) src; | |
5072 | return (void *) dest; | |
5073 | } | |
5074 | ||
5075 | #define new_wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5076 | static PyObject *_wrap_new_wxListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5077 | PyObject * _resultobj; | |
5078 | wxListView * _result; | |
5079 | wxWindow * _arg0; | |
5080 | wxWindowID _arg1 = (wxWindowID ) -1; | |
5081 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
5082 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5083 | long _arg4 = (long ) (wxLC_REPORT); | |
5084 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 5085 | wxString * _arg6 = (wxString *) &wxPyListCtrlNameStr; |
6d19860f RD |
5086 | PyObject * _argo0 = 0; |
5087 | wxPoint temp; | |
5088 | PyObject * _obj2 = 0; | |
5089 | wxSize temp0; | |
5090 | PyObject * _obj3 = 0; | |
5091 | PyObject * _argo5 = 0; | |
5092 | PyObject * _obj6 = 0; | |
5093 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
5094 | char _ptemp[128]; | |
5095 | ||
5096 | self = self; | |
5097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListView",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) | |
5098 | return NULL; | |
5099 | if (_argo0) { | |
5100 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5101 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5102 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListView. Expected _wxWindow_p."); | |
5103 | return NULL; | |
5104 | } | |
5105 | } | |
5106 | if (_obj2) | |
5107 | { | |
5108 | _arg2 = &temp; | |
5109 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5110 | return NULL; | |
5111 | } | |
5112 | if (_obj3) | |
5113 | { | |
5114 | _arg3 = &temp0; | |
5115 | if (! wxSize_helper(_obj3, &_arg3)) | |
5116 | return NULL; | |
5117 | } | |
5118 | if (_argo5) { | |
5119 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5120 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
5121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListView. Expected _wxValidator_p."); | |
5122 | return NULL; | |
5123 | } | |
5124 | } | |
5125 | if (_obj6) | |
5126 | { | |
c8bc7bb8 RD |
5127 | _arg6 = wxString_in_helper(_obj6); |
5128 | if (_arg6 == NULL) | |
6d19860f | 5129 | return NULL; |
6d19860f RD |
5130 | } |
5131 | { | |
4268f798 | 5132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5133 | _result = (wxListView *)new_wxListView(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
6d19860f | 5134 | |
4268f798 | 5135 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5136 | if (PyErr_Occurred()) return NULL; |
5137 | } if (_result) { | |
5138 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5139 | _resultobj = Py_BuildValue("s",_ptemp); | |
5140 | } else { | |
5141 | Py_INCREF(Py_None); | |
5142 | _resultobj = Py_None; | |
5143 | } | |
5144 | { | |
5145 | if (_obj6) | |
5146 | delete _arg6; | |
5147 | } | |
5148 | return _resultobj; | |
5149 | } | |
5150 | ||
5151 | #define new_wxPreListView() (new wxListView()) | |
5152 | static PyObject *_wrap_new_wxPreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5153 | PyObject * _resultobj; | |
5154 | wxListView * _result; | |
5155 | char *_kwnames[] = { NULL }; | |
5156 | char _ptemp[128]; | |
5157 | ||
5158 | self = self; | |
5159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListView",_kwnames)) | |
5160 | return NULL; | |
5161 | { | |
4268f798 | 5162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5163 | _result = (wxListView *)new_wxPreListView(); |
6d19860f | 5164 | |
4268f798 | 5165 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5166 | if (PyErr_Occurred()) return NULL; |
5167 | } if (_result) { | |
5168 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5169 | _resultobj = Py_BuildValue("s",_ptemp); | |
5170 | } else { | |
5171 | Py_INCREF(Py_None); | |
5172 | _resultobj = Py_None; | |
5173 | } | |
5174 | return _resultobj; | |
5175 | } | |
5176 | ||
5177 | #define wxListView_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5178 | static PyObject *_wrap_wxListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5179 | PyObject * _resultobj; | |
5180 | bool _result; | |
5181 | wxListView * _arg0; | |
5182 | wxWindow * _arg1; | |
5183 | wxWindowID _arg2 = (wxWindowID ) -1; | |
5184 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5185 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5186 | long _arg5 = (long ) (wxLC_REPORT); | |
5187 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 5188 | wxString * _arg7 = (wxString *) &wxPyListCtrlNameStr; |
6d19860f RD |
5189 | PyObject * _argo0 = 0; |
5190 | PyObject * _argo1 = 0; | |
5191 | wxPoint temp; | |
5192 | PyObject * _obj3 = 0; | |
5193 | wxSize temp0; | |
5194 | PyObject * _obj4 = 0; | |
5195 | PyObject * _argo6 = 0; | |
5196 | PyObject * _obj7 = 0; | |
5197 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
5198 | ||
5199 | self = self; | |
5200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListView_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
5201 | return NULL; | |
5202 | if (_argo0) { | |
5203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Create. Expected _wxListView_p."); | |
5206 | return NULL; | |
5207 | } | |
5208 | } | |
5209 | if (_argo1) { | |
5210 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5211 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListView_Create. Expected _wxWindow_p."); | |
5213 | return NULL; | |
5214 | } | |
5215 | } | |
5216 | if (_obj3) | |
5217 | { | |
5218 | _arg3 = &temp; | |
5219 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5220 | return NULL; | |
5221 | } | |
5222 | if (_obj4) | |
5223 | { | |
5224 | _arg4 = &temp0; | |
5225 | if (! wxSize_helper(_obj4, &_arg4)) | |
5226 | return NULL; | |
5227 | } | |
5228 | if (_argo6) { | |
5229 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
5230 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
5231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListView_Create. Expected _wxValidator_p."); | |
5232 | return NULL; | |
5233 | } | |
5234 | } | |
5235 | if (_obj7) | |
5236 | { | |
c8bc7bb8 RD |
5237 | _arg7 = wxString_in_helper(_obj7); |
5238 | if (_arg7 == NULL) | |
6d19860f | 5239 | return NULL; |
6d19860f RD |
5240 | } |
5241 | { | |
4268f798 | 5242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5243 | _result = (bool )wxListView_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
6d19860f | 5244 | |
4268f798 | 5245 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5246 | if (PyErr_Occurred()) return NULL; |
5247 | } _resultobj = Py_BuildValue("i",_result); | |
5248 | { | |
5249 | if (_obj7) | |
5250 | delete _arg7; | |
5251 | } | |
5252 | return _resultobj; | |
5253 | } | |
5254 | ||
5255 | #define wxListView_Select(_swigobj,_swigarg0,_swigarg1) (_swigobj->Select(_swigarg0,_swigarg1)) | |
5256 | static PyObject *_wrap_wxListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5257 | PyObject * _resultobj; | |
5258 | wxListView * _arg0; | |
5259 | long _arg1; | |
5260 | bool _arg2 = (bool ) TRUE; | |
5261 | PyObject * _argo0 = 0; | |
5262 | int tempbool2 = (int) TRUE; | |
5263 | char *_kwnames[] = { "self","n","on", NULL }; | |
5264 | ||
5265 | self = self; | |
5266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListView_Select",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
5267 | return NULL; | |
5268 | if (_argo0) { | |
5269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Select. Expected _wxListView_p."); | |
5272 | return NULL; | |
5273 | } | |
5274 | } | |
5275 | _arg2 = (bool ) tempbool2; | |
5276 | { | |
4268f798 | 5277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5278 | wxListView_Select(_arg0,_arg1,_arg2); |
6d19860f | 5279 | |
4268f798 | 5280 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5281 | if (PyErr_Occurred()) return NULL; |
5282 | } Py_INCREF(Py_None); | |
5283 | _resultobj = Py_None; | |
5284 | return _resultobj; | |
5285 | } | |
5286 | ||
5287 | #define wxListView_Focus(_swigobj,_swigarg0) (_swigobj->Focus(_swigarg0)) | |
5288 | static PyObject *_wrap_wxListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5289 | PyObject * _resultobj; | |
5290 | wxListView * _arg0; | |
5291 | long _arg1; | |
5292 | PyObject * _argo0 = 0; | |
5293 | char *_kwnames[] = { "self","index", NULL }; | |
5294 | ||
5295 | self = self; | |
5296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_Focus",_kwnames,&_argo0,&_arg1)) | |
5297 | return NULL; | |
5298 | if (_argo0) { | |
5299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Focus. Expected _wxListView_p."); | |
5302 | return NULL; | |
5303 | } | |
5304 | } | |
5305 | { | |
4268f798 | 5306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5307 | wxListView_Focus(_arg0,_arg1); |
6d19860f | 5308 | |
4268f798 | 5309 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5310 | if (PyErr_Occurred()) return NULL; |
5311 | } Py_INCREF(Py_None); | |
5312 | _resultobj = Py_None; | |
5313 | return _resultobj; | |
5314 | } | |
5315 | ||
5316 | #define wxListView_GetFocusedItem(_swigobj) (_swigobj->GetFocusedItem()) | |
5317 | static PyObject *_wrap_wxListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5318 | PyObject * _resultobj; | |
5319 | long _result; | |
5320 | wxListView * _arg0; | |
5321 | PyObject * _argo0 = 0; | |
5322 | char *_kwnames[] = { "self", NULL }; | |
5323 | ||
5324 | self = self; | |
5325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFocusedItem",_kwnames,&_argo0)) | |
5326 | return NULL; | |
5327 | if (_argo0) { | |
5328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFocusedItem. Expected _wxListView_p."); | |
5331 | return NULL; | |
5332 | } | |
5333 | } | |
5334 | { | |
4268f798 | 5335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5336 | _result = (long )wxListView_GetFocusedItem(_arg0); |
6d19860f | 5337 | |
4268f798 | 5338 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5339 | if (PyErr_Occurred()) return NULL; |
5340 | } _resultobj = Py_BuildValue("l",_result); | |
5341 | return _resultobj; | |
5342 | } | |
5343 | ||
5344 | #define wxListView_GetNextSelected(_swigobj,_swigarg0) (_swigobj->GetNextSelected(_swigarg0)) | |
5345 | static PyObject *_wrap_wxListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5346 | PyObject * _resultobj; | |
5347 | long _result; | |
5348 | wxListView * _arg0; | |
5349 | long _arg1; | |
5350 | PyObject * _argo0 = 0; | |
5351 | char *_kwnames[] = { "self","item", NULL }; | |
5352 | ||
5353 | self = self; | |
5354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_GetNextSelected",_kwnames,&_argo0,&_arg1)) | |
5355 | return NULL; | |
5356 | if (_argo0) { | |
5357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetNextSelected. Expected _wxListView_p."); | |
5360 | return NULL; | |
5361 | } | |
5362 | } | |
5363 | { | |
4268f798 | 5364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5365 | _result = (long )wxListView_GetNextSelected(_arg0,_arg1); |
6d19860f | 5366 | |
4268f798 | 5367 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5368 | if (PyErr_Occurred()) return NULL; |
5369 | } _resultobj = Py_BuildValue("l",_result); | |
5370 | return _resultobj; | |
5371 | } | |
5372 | ||
5373 | #define wxListView_GetFirstSelected(_swigobj) (_swigobj->GetFirstSelected()) | |
5374 | static PyObject *_wrap_wxListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5375 | PyObject * _resultobj; | |
5376 | long _result; | |
5377 | wxListView * _arg0; | |
5378 | PyObject * _argo0 = 0; | |
5379 | char *_kwnames[] = { "self", NULL }; | |
5380 | ||
5381 | self = self; | |
5382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFirstSelected",_kwnames,&_argo0)) | |
5383 | return NULL; | |
5384 | if (_argo0) { | |
5385 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5386 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFirstSelected. Expected _wxListView_p."); | |
5388 | return NULL; | |
5389 | } | |
5390 | } | |
5391 | { | |
4268f798 | 5392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5393 | _result = (long )wxListView_GetFirstSelected(_arg0); |
6d19860f | 5394 | |
4268f798 | 5395 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5396 | if (PyErr_Occurred()) return NULL; |
5397 | } _resultobj = Py_BuildValue("l",_result); | |
5398 | return _resultobj; | |
5399 | } | |
5400 | ||
5401 | #define wxListView_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) | |
5402 | static PyObject *_wrap_wxListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5403 | PyObject * _resultobj; | |
5404 | bool _result; | |
5405 | wxListView * _arg0; | |
5406 | long _arg1; | |
5407 | PyObject * _argo0 = 0; | |
5408 | char *_kwnames[] = { "self","index", NULL }; | |
5409 | ||
5410 | self = self; | |
5411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_IsSelected",_kwnames,&_argo0,&_arg1)) | |
5412 | return NULL; | |
5413 | if (_argo0) { | |
5414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_IsSelected. Expected _wxListView_p."); | |
5417 | return NULL; | |
5418 | } | |
5419 | } | |
5420 | { | |
4268f798 | 5421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5422 | _result = (bool )wxListView_IsSelected(_arg0,_arg1); |
6d19860f | 5423 | |
4268f798 | 5424 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5425 | if (PyErr_Occurred()) return NULL; |
5426 | } _resultobj = Py_BuildValue("i",_result); | |
5427 | return _resultobj; | |
5428 | } | |
5429 | ||
5430 | #define wxListView_SetColumnImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnImage(_swigarg0,_swigarg1)) | |
5431 | static PyObject *_wrap_wxListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5432 | PyObject * _resultobj; | |
5433 | wxListView * _arg0; | |
5434 | int _arg1; | |
5435 | int _arg2; | |
5436 | PyObject * _argo0 = 0; | |
5437 | char *_kwnames[] = { "self","col","image", NULL }; | |
5438 | ||
5439 | self = self; | |
5440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListView_SetColumnImage",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5441 | return NULL; | |
5442 | if (_argo0) { | |
5443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_SetColumnImage. Expected _wxListView_p."); | |
5446 | return NULL; | |
5447 | } | |
5448 | } | |
5449 | { | |
4268f798 | 5450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5451 | wxListView_SetColumnImage(_arg0,_arg1,_arg2); |
6d19860f | 5452 | |
4268f798 | 5453 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5454 | if (PyErr_Occurred()) return NULL; |
5455 | } Py_INCREF(Py_None); | |
5456 | _resultobj = Py_None; | |
5457 | return _resultobj; | |
5458 | } | |
5459 | ||
5460 | #define wxListView_ClearColumnImage(_swigobj,_swigarg0) (_swigobj->ClearColumnImage(_swigarg0)) | |
5461 | static PyObject *_wrap_wxListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5462 | PyObject * _resultobj; | |
5463 | wxListView * _arg0; | |
5464 | int _arg1; | |
5465 | PyObject * _argo0 = 0; | |
5466 | char *_kwnames[] = { "self","col", NULL }; | |
5467 | ||
5468 | self = self; | |
5469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListView_ClearColumnImage",_kwnames,&_argo0,&_arg1)) | |
5470 | return NULL; | |
5471 | if (_argo0) { | |
5472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_ClearColumnImage. Expected _wxListView_p."); | |
5475 | return NULL; | |
5476 | } | |
5477 | } | |
5478 | { | |
4268f798 | 5479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5480 | wxListView_ClearColumnImage(_arg0,_arg1); |
6d19860f | 5481 | |
4268f798 | 5482 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5483 | if (PyErr_Occurred()) return NULL; |
5484 | } Py_INCREF(Py_None); | |
5485 | _resultobj = Py_None; | |
5486 | return _resultobj; | |
5487 | } | |
5488 | ||
00b6c4e3 RD |
5489 | #define new_wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
5490 | static PyObject *_wrap_new_wxTreeItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5491 | PyObject * _resultobj; | |
5492 | wxTreeItemAttr * _result; | |
5493 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5494 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5495 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5496 | wxColour temp; | |
5497 | PyObject * _obj0 = 0; | |
5498 | wxColour temp0; | |
5499 | PyObject * _obj1 = 0; | |
5500 | PyObject * _argo2 = 0; | |
5501 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
5502 | char _ptemp[128]; | |
5503 | ||
5504 | self = self; | |
5505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTreeItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) | |
5506 | return NULL; | |
5507 | if (_obj0) | |
5508 | { | |
5509 | _arg0 = &temp; | |
5510 | if (! wxColour_helper(_obj0, &_arg0)) | |
5511 | return NULL; | |
5512 | } | |
5513 | if (_obj1) | |
5514 | { | |
5515 | _arg1 = &temp0; | |
5516 | if (! wxColour_helper(_obj1, &_arg1)) | |
5517 | return NULL; | |
5518 | } | |
5519 | if (_argo2) { | |
5520 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5521 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
5522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTreeItemAttr. Expected _wxFont_p."); | |
5523 | return NULL; | |
5524 | } | |
5525 | } | |
5526 | { | |
4268f798 | 5527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5528 | _result = (wxTreeItemAttr *)new_wxTreeItemAttr(*_arg0,*_arg1,*_arg2); |
00b6c4e3 | 5529 | |
4268f798 | 5530 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5531 | if (PyErr_Occurred()) return NULL; |
5532 | } if (_result) { | |
5533 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemAttr_p"); | |
5534 | _resultobj = Py_BuildValue("s",_ptemp); | |
5535 | } else { | |
5536 | Py_INCREF(Py_None); | |
5537 | _resultobj = Py_None; | |
5538 | } | |
5539 | return _resultobj; | |
5540 | } | |
5541 | ||
5542 | #define wxTreeItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
5543 | static PyObject *_wrap_wxTreeItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5544 | PyObject * _resultobj; | |
5545 | wxTreeItemAttr * _arg0; | |
5546 | wxColour * _arg1; | |
5547 | PyObject * _argo0 = 0; | |
5548 | wxColour temp; | |
5549 | PyObject * _obj1 = 0; | |
5550 | char *_kwnames[] = { "self","colText", NULL }; | |
5551 | ||
5552 | self = self; | |
5553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
5554 | return NULL; | |
5555 | if (_argo0) { | |
5556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetTextColour. Expected _wxTreeItemAttr_p."); | |
5559 | return NULL; | |
5560 | } | |
5561 | } | |
5562 | { | |
5563 | _arg1 = &temp; | |
5564 | if (! wxColour_helper(_obj1, &_arg1)) | |
5565 | return NULL; | |
5566 | } | |
5567 | { | |
4268f798 | 5568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5569 | wxTreeItemAttr_SetTextColour(_arg0,*_arg1); |
00b6c4e3 | 5570 | |
4268f798 | 5571 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5572 | if (PyErr_Occurred()) return NULL; |
5573 | } Py_INCREF(Py_None); | |
5574 | _resultobj = Py_None; | |
5575 | return _resultobj; | |
5576 | } | |
5577 | ||
5578 | #define wxTreeItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
5579 | static PyObject *_wrap_wxTreeItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5580 | PyObject * _resultobj; | |
5581 | wxTreeItemAttr * _arg0; | |
5582 | wxColour * _arg1; | |
5583 | PyObject * _argo0 = 0; | |
5584 | wxColour temp; | |
5585 | PyObject * _obj1 = 0; | |
5586 | char *_kwnames[] = { "self","colBack", NULL }; | |
5587 | ||
5588 | self = self; | |
5589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
5590 | return NULL; | |
5591 | if (_argo0) { | |
5592 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5593 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5595 | return NULL; | |
5596 | } | |
5597 | } | |
5598 | { | |
5599 | _arg1 = &temp; | |
5600 | if (! wxColour_helper(_obj1, &_arg1)) | |
5601 | return NULL; | |
5602 | } | |
5603 | { | |
4268f798 | 5604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5605 | wxTreeItemAttr_SetBackgroundColour(_arg0,*_arg1); |
00b6c4e3 | 5606 | |
4268f798 | 5607 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5608 | if (PyErr_Occurred()) return NULL; |
5609 | } Py_INCREF(Py_None); | |
5610 | _resultobj = Py_None; | |
5611 | return _resultobj; | |
5612 | } | |
5613 | ||
5614 | #define wxTreeItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
5615 | static PyObject *_wrap_wxTreeItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5616 | PyObject * _resultobj; | |
5617 | wxTreeItemAttr * _arg0; | |
5618 | wxFont * _arg1; | |
5619 | PyObject * _argo0 = 0; | |
5620 | PyObject * _argo1 = 0; | |
5621 | char *_kwnames[] = { "self","font", NULL }; | |
5622 | ||
5623 | self = self; | |
5624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
5625 | return NULL; | |
5626 | if (_argo0) { | |
5627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetFont. Expected _wxTreeItemAttr_p."); | |
5630 | return NULL; | |
5631 | } | |
5632 | } | |
5633 | if (_argo1) { | |
5634 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5635 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
5636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemAttr_SetFont. Expected _wxFont_p."); | |
5637 | return NULL; | |
5638 | } | |
5639 | } | |
5640 | { | |
4268f798 | 5641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5642 | wxTreeItemAttr_SetFont(_arg0,*_arg1); |
00b6c4e3 | 5643 | |
4268f798 | 5644 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5645 | if (PyErr_Occurred()) return NULL; |
5646 | } Py_INCREF(Py_None); | |
5647 | _resultobj = Py_None; | |
5648 | return _resultobj; | |
5649 | } | |
5650 | ||
5651 | #define wxTreeItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
5652 | static PyObject *_wrap_wxTreeItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5653 | PyObject * _resultobj; | |
5654 | bool _result; | |
5655 | wxTreeItemAttr * _arg0; | |
5656 | PyObject * _argo0 = 0; | |
5657 | char *_kwnames[] = { "self", NULL }; | |
5658 | ||
5659 | self = self; | |
5660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasTextColour",_kwnames,&_argo0)) | |
5661 | return NULL; | |
5662 | if (_argo0) { | |
5663 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5664 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasTextColour. Expected _wxTreeItemAttr_p."); | |
5666 | return NULL; | |
5667 | } | |
5668 | } | |
5669 | { | |
4268f798 | 5670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5671 | _result = (bool )wxTreeItemAttr_HasTextColour(_arg0); |
00b6c4e3 | 5672 | |
4268f798 | 5673 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5674 | if (PyErr_Occurred()) return NULL; |
5675 | } _resultobj = Py_BuildValue("i",_result); | |
5676 | return _resultobj; | |
5677 | } | |
5678 | ||
5679 | #define wxTreeItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
5680 | static PyObject *_wrap_wxTreeItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5681 | PyObject * _resultobj; | |
5682 | bool _result; | |
5683 | wxTreeItemAttr * _arg0; | |
5684 | PyObject * _argo0 = 0; | |
5685 | char *_kwnames[] = { "self", NULL }; | |
5686 | ||
5687 | self = self; | |
5688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
5689 | return NULL; | |
5690 | if (_argo0) { | |
5691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5694 | return NULL; | |
5695 | } | |
5696 | } | |
5697 | { | |
4268f798 | 5698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5699 | _result = (bool )wxTreeItemAttr_HasBackgroundColour(_arg0); |
00b6c4e3 | 5700 | |
4268f798 | 5701 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5702 | if (PyErr_Occurred()) return NULL; |
5703 | } _resultobj = Py_BuildValue("i",_result); | |
5704 | return _resultobj; | |
5705 | } | |
5706 | ||
5707 | #define wxTreeItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
5708 | static PyObject *_wrap_wxTreeItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5709 | PyObject * _resultobj; | |
5710 | bool _result; | |
5711 | wxTreeItemAttr * _arg0; | |
5712 | PyObject * _argo0 = 0; | |
5713 | char *_kwnames[] = { "self", NULL }; | |
5714 | ||
5715 | self = self; | |
5716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasFont",_kwnames,&_argo0)) | |
5717 | return NULL; | |
5718 | if (_argo0) { | |
5719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasFont. Expected _wxTreeItemAttr_p."); | |
5722 | return NULL; | |
5723 | } | |
5724 | } | |
5725 | { | |
4268f798 | 5726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5727 | _result = (bool )wxTreeItemAttr_HasFont(_arg0); |
00b6c4e3 | 5728 | |
4268f798 | 5729 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5730 | if (PyErr_Occurred()) return NULL; |
5731 | } _resultobj = Py_BuildValue("i",_result); | |
5732 | return _resultobj; | |
5733 | } | |
5734 | ||
5735 | #define wxTreeItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
5736 | static PyObject *_wrap_wxTreeItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5737 | PyObject * _resultobj; | |
5738 | wxColour * _result; | |
5739 | wxTreeItemAttr * _arg0; | |
5740 | PyObject * _argo0 = 0; | |
5741 | char *_kwnames[] = { "self", NULL }; | |
5742 | char _ptemp[128]; | |
5743 | ||
5744 | self = self; | |
5745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetTextColour",_kwnames,&_argo0)) | |
5746 | return NULL; | |
5747 | if (_argo0) { | |
5748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetTextColour. Expected _wxTreeItemAttr_p."); | |
5751 | return NULL; | |
5752 | } | |
5753 | } | |
5754 | { | |
4268f798 | 5755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5756 | _result = new wxColour (wxTreeItemAttr_GetTextColour(_arg0)); |
00b6c4e3 | 5757 | |
4268f798 | 5758 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 | 5759 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
5760 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5761 | _resultobj = Py_BuildValue("s",_ptemp); | |
00b6c4e3 RD |
5762 | return _resultobj; |
5763 | } | |
5764 | ||
5765 | #define wxTreeItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
5766 | static PyObject *_wrap_wxTreeItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5767 | PyObject * _resultobj; | |
5768 | wxColour * _result; | |
5769 | wxTreeItemAttr * _arg0; | |
5770 | PyObject * _argo0 = 0; | |
5771 | char *_kwnames[] = { "self", NULL }; | |
5772 | char _ptemp[128]; | |
5773 | ||
5774 | self = self; | |
5775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
5776 | return NULL; | |
5777 | if (_argo0) { | |
5778 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5779 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5781 | return NULL; | |
5782 | } | |
5783 | } | |
5784 | { | |
4268f798 | 5785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5786 | _result = new wxColour (wxTreeItemAttr_GetBackgroundColour(_arg0)); |
00b6c4e3 | 5787 | |
4268f798 | 5788 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 | 5789 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
5790 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5791 | _resultobj = Py_BuildValue("s",_ptemp); | |
00b6c4e3 RD |
5792 | return _resultobj; |
5793 | } | |
5794 | ||
5795 | #define wxTreeItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
5796 | static PyObject *_wrap_wxTreeItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5797 | PyObject * _resultobj; | |
5798 | wxFont * _result; | |
5799 | wxTreeItemAttr * _arg0; | |
5800 | PyObject * _argo0 = 0; | |
5801 | char *_kwnames[] = { "self", NULL }; | |
5802 | char _ptemp[128]; | |
5803 | ||
5804 | self = self; | |
5805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetFont",_kwnames,&_argo0)) | |
5806 | return NULL; | |
5807 | if (_argo0) { | |
5808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetFont. Expected _wxTreeItemAttr_p."); | |
5811 | return NULL; | |
5812 | } | |
5813 | } | |
5814 | { | |
4268f798 | 5815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5816 | _result = new wxFont (wxTreeItemAttr_GetFont(_arg0)); |
00b6c4e3 | 5817 | |
4268f798 | 5818 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 | 5819 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
5820 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
5821 | _resultobj = Py_BuildValue("s",_ptemp); | |
00b6c4e3 RD |
5822 | return _resultobj; |
5823 | } | |
5824 | ||
d5c9047a | 5825 | #define new_wxTreeItemId() (new wxTreeItemId()) |
efc5f224 | 5826 | static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5827 | PyObject * _resultobj; |
d5c9047a | 5828 | wxTreeItemId * _result; |
efc5f224 | 5829 | char *_kwnames[] = { NULL }; |
d5c9047a | 5830 | char _ptemp[128]; |
8ab979d7 RD |
5831 | |
5832 | self = self; | |
efc5f224 | 5833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames)) |
8ab979d7 | 5834 | return NULL; |
cf694132 | 5835 | { |
4268f798 | 5836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5837 | _result = (wxTreeItemId *)new_wxTreeItemId(); |
cf694132 | 5838 | |
4268f798 | 5839 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5840 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5841 | } if (_result) { |
5842 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
5843 | _resultobj = Py_BuildValue("s",_ptemp); | |
5844 | } else { | |
5845 | Py_INCREF(Py_None); | |
5846 | _resultobj = Py_None; | |
5847 | } | |
8ab979d7 RD |
5848 | return _resultobj; |
5849 | } | |
5850 | ||
d5c9047a | 5851 | #define delete_wxTreeItemId(_swigobj) (delete _swigobj) |
efc5f224 | 5852 | static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5853 | PyObject * _resultobj; |
d5c9047a | 5854 | wxTreeItemId * _arg0; |
1d99702e | 5855 | PyObject * _argo0 = 0; |
efc5f224 | 5856 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5857 | |
5858 | self = self; | |
efc5f224 | 5859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0)) |
8ab979d7 | 5860 | return NULL; |
1d99702e RD |
5861 | if (_argo0) { |
5862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 5864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
5865 | return NULL; |
5866 | } | |
5867 | } | |
cf694132 | 5868 | { |
4268f798 | 5869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5870 | delete_wxTreeItemId(_arg0); |
cf694132 | 5871 | |
4268f798 | 5872 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5873 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5874 | } Py_INCREF(Py_None); |
d5c9047a | 5875 | _resultobj = Py_None; |
8ab979d7 RD |
5876 | return _resultobj; |
5877 | } | |
5878 | ||
d5c9047a | 5879 | #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk()) |
efc5f224 | 5880 | static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5881 | PyObject * _resultobj; |
d5c9047a RD |
5882 | bool _result; |
5883 | wxTreeItemId * _arg0; | |
1d99702e | 5884 | PyObject * _argo0 = 0; |
efc5f224 | 5885 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5886 | |
5887 | self = self; | |
efc5f224 | 5888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0)) |
8ab979d7 | 5889 | return NULL; |
1d99702e RD |
5890 | if (_argo0) { |
5891 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5892 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 5893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
5894 | return NULL; |
5895 | } | |
5896 | } | |
cf694132 | 5897 | { |
4268f798 | 5898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5899 | _result = (bool )wxTreeItemId_IsOk(_arg0); |
cf694132 | 5900 | |
4268f798 | 5901 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5902 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5903 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5904 | return _resultobj; |
5905 | } | |
5906 | ||
f6bcfd97 | 5907 | static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) { |
c368d904 | 5908 | if (! other) return -1; |
f6bcfd97 BP |
5909 | return *self != *other; |
5910 | } | |
5911 | static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5912 | PyObject * _resultobj; | |
5913 | int _result; | |
5914 | wxTreeItemId * _arg0; | |
5915 | wxTreeItemId * _arg1; | |
5916 | PyObject * _argo0 = 0; | |
5917 | PyObject * _argo1 = 0; | |
5918 | char *_kwnames[] = { "self","other", NULL }; | |
5919 | ||
5920 | self = self; | |
5921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1)) | |
5922 | return NULL; | |
5923 | if (_argo0) { | |
5924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5927 | return NULL; | |
5928 | } | |
5929 | } | |
5930 | if (_argo1) { | |
5931 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5932 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
5933 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5934 | return NULL; | |
5935 | } | |
5936 | } | |
5937 | { | |
4268f798 | 5938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5939 | _result = (int )wxTreeItemId___cmp__(_arg0,_arg1); |
f6bcfd97 | 5940 | |
4268f798 | 5941 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5942 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5943 | } _resultobj = Py_BuildValue("i",_result); |
5944 | return _resultobj; | |
5945 | } | |
5946 | ||
9416aa89 RD |
5947 | static void *SwigwxPyTreeItemDataTowxObject(void *ptr) { |
5948 | wxPyTreeItemData *src; | |
5949 | wxObject *dest; | |
5950 | src = (wxPyTreeItemData *) ptr; | |
5951 | dest = (wxObject *) src; | |
5952 | return (void *) dest; | |
5953 | } | |
5954 | ||
cf694132 | 5955 | #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) |
efc5f224 | 5956 | static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5957 | PyObject * _resultobj; |
cf694132 | 5958 | wxPyTreeItemData * _result; |
1d99702e | 5959 | PyObject * _arg0 = (PyObject *) NULL; |
cf694132 | 5960 | PyObject * _obj0 = 0; |
efc5f224 | 5961 | char *_kwnames[] = { "obj", NULL }; |
d5c9047a | 5962 | char _ptemp[128]; |
8ab979d7 RD |
5963 | |
5964 | self = self; | |
efc5f224 | 5965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0)) |
8ab979d7 | 5966 | return NULL; |
cf694132 RD |
5967 | if (_obj0) |
5968 | { | |
5969 | _arg0 = _obj0; | |
5970 | } | |
5971 | { | |
4268f798 | 5972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5973 | _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0); |
cf694132 | 5974 | |
4268f798 | 5975 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5976 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5977 | } if (_result) { |
5978 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
5979 | _resultobj = Py_BuildValue("s",_ptemp); | |
5980 | } else { | |
5981 | Py_INCREF(Py_None); | |
5982 | _resultobj = Py_None; | |
5983 | } | |
8ab979d7 RD |
5984 | return _resultobj; |
5985 | } | |
5986 | ||
cf694132 | 5987 | #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData()) |
efc5f224 | 5988 | static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
5989 | PyObject * _resultobj; |
5990 | PyObject * _result; | |
5991 | wxPyTreeItemData * _arg0; | |
1d99702e | 5992 | PyObject * _argo0 = 0; |
efc5f224 | 5993 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
5994 | |
5995 | self = self; | |
efc5f224 | 5996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0)) |
cf694132 | 5997 | return NULL; |
1d99702e RD |
5998 | if (_argo0) { |
5999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 RD |
6001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p."); |
6002 | return NULL; | |
6003 | } | |
6004 | } | |
6005 | { | |
4268f798 | 6006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6007 | _result = (PyObject *)wxTreeItemData_GetData(_arg0); |
cf694132 | 6008 | |
4268f798 | 6009 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6010 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
6011 | }{ |
6012 | _resultobj = _result; | |
6013 | } | |
6014 | return _resultobj; | |
6015 | } | |
6016 | ||
6017 | #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
efc5f224 | 6018 | static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6019 | PyObject * _resultobj; |
cf694132 RD |
6020 | wxPyTreeItemData * _arg0; |
6021 | PyObject * _arg1; | |
1d99702e | 6022 | PyObject * _argo0 = 0; |
cf694132 | 6023 | PyObject * _obj1 = 0; |
efc5f224 | 6024 | char *_kwnames[] = { "self","obj", NULL }; |
8ab979d7 RD |
6025 | |
6026 | self = self; | |
efc5f224 | 6027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6028 | return NULL; |
1d99702e RD |
6029 | if (_argo0) { |
6030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 6032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
6033 | return NULL; |
6034 | } | |
6035 | } | |
cf694132 RD |
6036 | { |
6037 | _arg1 = _obj1; | |
6038 | } | |
6039 | { | |
4268f798 | 6040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6041 | wxTreeItemData_SetData(_arg0,_arg1); |
cf694132 | 6042 | |
4268f798 | 6043 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6044 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6045 | } Py_INCREF(Py_None); |
d5c9047a | 6046 | _resultobj = Py_None; |
8ab979d7 RD |
6047 | return _resultobj; |
6048 | } | |
6049 | ||
630d84f2 | 6050 | #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 6051 | static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6052 | PyObject * _resultobj; |
d5c9047a | 6053 | wxTreeItemId * _result; |
cf694132 | 6054 | wxPyTreeItemData * _arg0; |
1d99702e | 6055 | PyObject * _argo0 = 0; |
efc5f224 | 6056 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6057 | char _ptemp[128]; |
6058 | ||
6059 | self = self; | |
efc5f224 | 6060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0)) |
8ab979d7 | 6061 | return NULL; |
1d99702e RD |
6062 | if (_argo0) { |
6063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 6065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
6066 | return NULL; |
6067 | } | |
6068 | } | |
cf694132 | 6069 | { |
4268f798 | 6070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6071 | const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0); |
d5c9047a | 6072 | _result = (wxTreeItemId *) &_result_ref; |
cf694132 | 6073 | |
4268f798 | 6074 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6075 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6076 | } if (_result) { |
6077 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
6078 | _resultobj = Py_BuildValue("s",_ptemp); | |
6079 | } else { | |
6080 | Py_INCREF(Py_None); | |
6081 | _resultobj = Py_None; | |
6082 | } | |
8ab979d7 RD |
6083 | return _resultobj; |
6084 | } | |
6085 | ||
630d84f2 | 6086 | #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
efc5f224 | 6087 | static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
630d84f2 | 6088 | PyObject * _resultobj; |
cf694132 | 6089 | wxPyTreeItemData * _arg0; |
630d84f2 | 6090 | wxTreeItemId * _arg1; |
1d99702e RD |
6091 | PyObject * _argo0 = 0; |
6092 | PyObject * _argo1 = 0; | |
efc5f224 | 6093 | char *_kwnames[] = { "self","id", NULL }; |
630d84f2 RD |
6094 | |
6095 | self = self; | |
efc5f224 | 6096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1)) |
630d84f2 | 6097 | return NULL; |
1d99702e RD |
6098 | if (_argo0) { |
6099 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6100 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 6101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p."); |
630d84f2 RD |
6102 | return NULL; |
6103 | } | |
6104 | } | |
1d99702e RD |
6105 | if (_argo1) { |
6106 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6107 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
630d84f2 RD |
6108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p."); |
6109 | return NULL; | |
6110 | } | |
6111 | } | |
cf694132 | 6112 | { |
4268f798 | 6113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6114 | wxTreeItemData_SetId(_arg0,*_arg1); |
cf694132 | 6115 | |
4268f798 | 6116 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6117 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6118 | } Py_INCREF(Py_None); |
630d84f2 RD |
6119 | _resultobj = Py_None; |
6120 | return _resultobj; | |
6121 | } | |
6122 | ||
8bf5d46e RD |
6123 | static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) { |
6124 | wxTreeEvent *src; | |
6125 | wxNotifyEvent *dest; | |
6126 | src = (wxTreeEvent *) ptr; | |
6127 | dest = (wxNotifyEvent *) src; | |
6128 | return (void *) dest; | |
6129 | } | |
6130 | ||
8ab979d7 RD |
6131 | static void *SwigwxTreeEventTowxCommandEvent(void *ptr) { |
6132 | wxTreeEvent *src; | |
6133 | wxCommandEvent *dest; | |
6134 | src = (wxTreeEvent *) ptr; | |
6135 | dest = (wxCommandEvent *) src; | |
6136 | return (void *) dest; | |
6137 | } | |
6138 | ||
6139 | static void *SwigwxTreeEventTowxEvent(void *ptr) { | |
6140 | wxTreeEvent *src; | |
6141 | wxEvent *dest; | |
6142 | src = (wxTreeEvent *) ptr; | |
6143 | dest = (wxEvent *) src; | |
6144 | return (void *) dest; | |
6145 | } | |
6146 | ||
9416aa89 RD |
6147 | static void *SwigwxTreeEventTowxObject(void *ptr) { |
6148 | wxTreeEvent *src; | |
6149 | wxObject *dest; | |
6150 | src = (wxTreeEvent *) ptr; | |
6151 | dest = (wxObject *) src; | |
6152 | return (void *) dest; | |
6153 | } | |
6154 | ||
00b6c4e3 RD |
6155 | #define new_wxTreeEvent(_swigarg0,_swigarg1) (new wxTreeEvent(_swigarg0,_swigarg1)) |
6156 | static PyObject *_wrap_new_wxTreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6157 | PyObject * _resultobj; | |
6158 | wxTreeEvent * _result; | |
6159 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
6160 | int _arg1 = (int ) 0; | |
6161 | char *_kwnames[] = { "commandType","id", NULL }; | |
6162 | char _ptemp[128]; | |
6163 | ||
6164 | self = self; | |
6165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxTreeEvent",_kwnames,&_arg0,&_arg1)) | |
6166 | return NULL; | |
6167 | { | |
4268f798 | 6168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6169 | _result = (wxTreeEvent *)new_wxTreeEvent(_arg0,_arg1); |
00b6c4e3 | 6170 | |
4268f798 | 6171 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
6172 | if (PyErr_Occurred()) return NULL; |
6173 | } if (_result) { | |
6174 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeEvent_p"); | |
6175 | _resultobj = Py_BuildValue("s",_ptemp); | |
6176 | } else { | |
6177 | Py_INCREF(Py_None); | |
6178 | _resultobj = Py_None; | |
6179 | } | |
6180 | return _resultobj; | |
6181 | } | |
6182 | ||
d5c9047a | 6183 | #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
efc5f224 | 6184 | static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6185 | PyObject * _resultobj; |
d5c9047a | 6186 | wxTreeItemId * _result; |
8ab979d7 | 6187 | wxTreeEvent * _arg0; |
1d99702e | 6188 | PyObject * _argo0 = 0; |
efc5f224 | 6189 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6190 | char _ptemp[128]; |
8ab979d7 RD |
6191 | |
6192 | self = self; | |
efc5f224 | 6193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 6194 | return NULL; |
1d99702e RD |
6195 | if (_argo0) { |
6196 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6197 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6199 | return NULL; |
6200 | } | |
6201 | } | |
cf694132 | 6202 | { |
4268f798 | 6203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6204 | _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0)); |
cf694132 | 6205 | |
4268f798 | 6206 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6207 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6208 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 6209 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6210 | return _resultobj; |
6211 | } | |
6212 | ||
d5c9047a | 6213 | #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
efc5f224 | 6214 | static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6215 | PyObject * _resultobj; |
d5c9047a | 6216 | wxTreeItemId * _result; |
8ab979d7 | 6217 | wxTreeEvent * _arg0; |
1d99702e | 6218 | PyObject * _argo0 = 0; |
efc5f224 | 6219 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6220 | char _ptemp[128]; |
6221 | ||
6222 | self = self; | |
efc5f224 | 6223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0)) |
8ab979d7 | 6224 | return NULL; |
1d99702e RD |
6225 | if (_argo0) { |
6226 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6227 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6229 | return NULL; |
6230 | } | |
6231 | } | |
cf694132 | 6232 | { |
4268f798 | 6233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6234 | _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0)); |
cf694132 | 6235 | |
4268f798 | 6236 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6237 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6238 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8ab979d7 RD |
6239 | _resultobj = Py_BuildValue("s",_ptemp); |
6240 | return _resultobj; | |
6241 | } | |
6242 | ||
d5c9047a | 6243 | #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
efc5f224 | 6244 | static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6245 | PyObject * _resultobj; |
d5c9047a | 6246 | wxPoint * _result; |
8ab979d7 | 6247 | wxTreeEvent * _arg0; |
1d99702e | 6248 | PyObject * _argo0 = 0; |
efc5f224 | 6249 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6250 | char _ptemp[128]; |
8ab979d7 RD |
6251 | |
6252 | self = self; | |
efc5f224 | 6253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 6254 | return NULL; |
1d99702e RD |
6255 | if (_argo0) { |
6256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6259 | return NULL; |
6260 | } | |
6261 | } | |
cf694132 | 6262 | { |
4268f798 | 6263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6264 | _result = new wxPoint (wxTreeEvent_GetPoint(_arg0)); |
cf694132 | 6265 | |
4268f798 | 6266 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6267 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6268 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
d5c9047a | 6269 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6270 | return _resultobj; |
6271 | } | |
6272 | ||
ecc08ead RD |
6273 | #define wxTreeEvent_GetKeyEvent(_swigobj) (_swigobj->GetKeyEvent()) |
6274 | static PyObject *_wrap_wxTreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6275 | PyObject * _resultobj; | |
6276 | wxKeyEvent * _result; | |
6277 | wxTreeEvent * _arg0; | |
6278 | PyObject * _argo0 = 0; | |
6279 | char *_kwnames[] = { "self", NULL }; | |
6280 | char _ptemp[128]; | |
6281 | ||
6282 | self = self; | |
6283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetKeyEvent",_kwnames,&_argo0)) | |
6284 | return NULL; | |
6285 | if (_argo0) { | |
6286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetKeyEvent. Expected _wxTreeEvent_p."); | |
6289 | return NULL; | |
6290 | } | |
6291 | } | |
6292 | { | |
4268f798 | 6293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6294 | const wxKeyEvent & _result_ref = wxTreeEvent_GetKeyEvent(_arg0); |
ecc08ead RD |
6295 | _result = (wxKeyEvent *) &_result_ref; |
6296 | ||
4268f798 | 6297 | wxPyEndAllowThreads(__tstate); |
ecc08ead RD |
6298 | if (PyErr_Occurred()) return NULL; |
6299 | } if (_result) { | |
6300 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxKeyEvent_p"); | |
6301 | _resultobj = Py_BuildValue("s",_ptemp); | |
6302 | } else { | |
6303 | Py_INCREF(Py_None); | |
6304 | _resultobj = Py_None; | |
6305 | } | |
6306 | return _resultobj; | |
6307 | } | |
6308 | ||
d5c9047a | 6309 | #define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
efc5f224 | 6310 | static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6311 | PyObject * _resultobj; |
d5c9047a | 6312 | int _result; |
8ab979d7 | 6313 | wxTreeEvent * _arg0; |
1d99702e | 6314 | PyObject * _argo0 = 0; |
efc5f224 | 6315 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6316 | |
6317 | self = self; | |
efc5f224 | 6318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 6319 | return NULL; |
1d99702e RD |
6320 | if (_argo0) { |
6321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6324 | return NULL; |
6325 | } | |
6326 | } | |
cf694132 | 6327 | { |
4268f798 | 6328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6329 | _result = (int )wxTreeEvent_GetCode(_arg0); |
cf694132 | 6330 | |
4268f798 | 6331 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6332 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6333 | } _resultobj = Py_BuildValue("i",_result); |
d5c9047a RD |
6334 | return _resultobj; |
6335 | } | |
6336 | ||
8bf5d46e | 6337 | #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 6338 | static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 6339 | PyObject * _resultobj; |
8bf5d46e | 6340 | wxString * _result; |
d5c9047a | 6341 | wxTreeEvent * _arg0; |
1d99702e | 6342 | PyObject * _argo0 = 0; |
efc5f224 | 6343 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
6344 | |
6345 | self = self; | |
efc5f224 | 6346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0)) |
d5c9047a | 6347 | return NULL; |
1d99702e RD |
6348 | if (_argo0) { |
6349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
8bf5d46e | 6351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p."); |
d5c9047a RD |
6352 | return NULL; |
6353 | } | |
6354 | } | |
cf694132 | 6355 | { |
4268f798 | 6356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6357 | const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0); |
8bf5d46e | 6358 | _result = (wxString *) &_result_ref; |
cf694132 | 6359 | |
4268f798 | 6360 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6361 | if (PyErr_Occurred()) return NULL; |
8bf5d46e | 6362 | }{ |
c8bc7bb8 RD |
6363 | #if wxUSE_UNICODE |
6364 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6365 | #else | |
eec92d76 | 6366 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6367 | #endif |
8bf5d46e | 6368 | } |
8ab979d7 RD |
6369 | return _resultobj; |
6370 | } | |
6371 | ||
f6bcfd97 BP |
6372 | static void *SwigwxPyTreeCtrlTowxControl(void *ptr) { |
6373 | wxPyTreeCtrl *src; | |
8ab979d7 | 6374 | wxControl *dest; |
f6bcfd97 | 6375 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6376 | dest = (wxControl *) src; |
6377 | return (void *) dest; | |
6378 | } | |
6379 | ||
f6bcfd97 BP |
6380 | static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) { |
6381 | wxPyTreeCtrl *src; | |
8ab979d7 | 6382 | wxWindow *dest; |
f6bcfd97 | 6383 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6384 | dest = (wxWindow *) src; |
6385 | return (void *) dest; | |
6386 | } | |
6387 | ||
f6bcfd97 BP |
6388 | static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) { |
6389 | wxPyTreeCtrl *src; | |
8ab979d7 | 6390 | wxEvtHandler *dest; |
f6bcfd97 | 6391 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6392 | dest = (wxEvtHandler *) src; |
6393 | return (void *) dest; | |
6394 | } | |
6395 | ||
9416aa89 RD |
6396 | static void *SwigwxPyTreeCtrlTowxObject(void *ptr) { |
6397 | wxPyTreeCtrl *src; | |
6398 | wxObject *dest; | |
6399 | src = (wxPyTreeCtrl *) ptr; | |
6400 | dest = (wxObject *) src; | |
6401 | return (void *) dest; | |
6402 | } | |
6403 | ||
f6bcfd97 | 6404 | #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6405 | static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6406 | PyObject * _resultobj; |
f6bcfd97 | 6407 | wxPyTreeCtrl * _result; |
8ab979d7 | 6408 | wxWindow * _arg0; |
1d99702e | 6409 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
6410 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6411 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
00b6c4e3 | 6412 | long _arg4 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); |
e508a2b6 | 6413 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
137b5242 | 6414 | wxString * _arg6 = (wxString *) &wxPy_TreeCtrlNameStr; |
1d99702e | 6415 | PyObject * _argo0 = 0; |
2f90df85 RD |
6416 | wxPoint temp; |
6417 | PyObject * _obj2 = 0; | |
6418 | wxSize temp0; | |
6419 | PyObject * _obj3 = 0; | |
1d99702e | 6420 | PyObject * _argo5 = 0; |
137b5242 | 6421 | PyObject * _obj6 = 0; |
efc5f224 | 6422 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
6423 | char _ptemp[128]; |
6424 | ||
6425 | self = self; | |
137b5242 | 6426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) |
8ab979d7 | 6427 | return NULL; |
1d99702e RD |
6428 | if (_argo0) { |
6429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p."); |
6432 | return NULL; | |
6433 | } | |
6434 | } | |
2f90df85 RD |
6435 | if (_obj2) |
6436 | { | |
6437 | _arg2 = &temp; | |
6438 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6439 | return NULL; |
2f90df85 RD |
6440 | } |
6441 | if (_obj3) | |
6442 | { | |
6443 | _arg3 = &temp0; | |
6444 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6445 | return NULL; |
2f90df85 | 6446 | } |
1d99702e RD |
6447 | if (_argo5) { |
6448 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6449 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
6450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p."); |
6451 | return NULL; | |
6452 | } | |
6453 | } | |
137b5242 RD |
6454 | if (_obj6) |
6455 | { | |
6456 | _arg6 = wxString_in_helper(_obj6); | |
6457 | if (_arg6 == NULL) | |
6458 | return NULL; | |
6459 | } | |
cf694132 | 6460 | { |
4268f798 | 6461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 6462 | _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
cf694132 | 6463 | |
4268f798 | 6464 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6465 | if (PyErr_Occurred()) return NULL; |
1d99702e | 6466 | } if (_result) { |
f6bcfd97 | 6467 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); |
1d99702e RD |
6468 | _resultobj = Py_BuildValue("s",_ptemp); |
6469 | } else { | |
6470 | Py_INCREF(Py_None); | |
6471 | _resultobj = Py_None; | |
6472 | } | |
137b5242 RD |
6473 | { |
6474 | if (_obj6) | |
6475 | delete _arg6; | |
6476 | } | |
8ab979d7 RD |
6477 | return _resultobj; |
6478 | } | |
6479 | ||
09f3d4e6 RD |
6480 | #define new_wxPreTreeCtrl() (new wxPyTreeCtrl()) |
6481 | static PyObject *_wrap_new_wxPreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6482 | PyObject * _resultobj; | |
6483 | wxPyTreeCtrl * _result; | |
6484 | char *_kwnames[] = { NULL }; | |
6485 | char _ptemp[128]; | |
6486 | ||
6487 | self = self; | |
6488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTreeCtrl",_kwnames)) | |
6489 | return NULL; | |
6490 | { | |
4268f798 | 6491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6492 | _result = (wxPyTreeCtrl *)new_wxPreTreeCtrl(); |
09f3d4e6 | 6493 | |
4268f798 | 6494 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6495 | if (PyErr_Occurred()) return NULL; |
6496 | } if (_result) { | |
6497 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); | |
6498 | _resultobj = Py_BuildValue("s",_ptemp); | |
6499 | } else { | |
6500 | Py_INCREF(Py_None); | |
6501 | _resultobj = Py_None; | |
6502 | } | |
6503 | return _resultobj; | |
6504 | } | |
6505 | ||
6506 | #define wxTreeCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
6507 | static PyObject *_wrap_wxTreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6508 | PyObject * _resultobj; | |
6509 | bool _result; | |
6510 | wxPyTreeCtrl * _arg0; | |
6511 | wxWindow * _arg1; | |
6512 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6513 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6514 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6515 | long _arg5 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); | |
6516 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 6517 | wxString * _arg7 = (wxString *) &wxPy_TreeCtrlNameStr; |
09f3d4e6 RD |
6518 | PyObject * _argo0 = 0; |
6519 | PyObject * _argo1 = 0; | |
6520 | wxPoint temp; | |
6521 | PyObject * _obj3 = 0; | |
6522 | wxSize temp0; | |
6523 | PyObject * _obj4 = 0; | |
6524 | PyObject * _argo6 = 0; | |
137b5242 | 6525 | PyObject * _obj7 = 0; |
09f3d4e6 RD |
6526 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; |
6527 | ||
6528 | self = self; | |
137b5242 | 6529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxTreeCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
09f3d4e6 RD |
6530 | return NULL; |
6531 | if (_argo0) { | |
6532 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6533 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Create. Expected _wxPyTreeCtrl_p."); | |
6535 | return NULL; | |
6536 | } | |
6537 | } | |
6538 | if (_argo1) { | |
6539 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6540 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Create. Expected _wxWindow_p."); | |
6542 | return NULL; | |
6543 | } | |
6544 | } | |
6545 | if (_obj3) | |
6546 | { | |
6547 | _arg3 = &temp; | |
6548 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6549 | return NULL; | |
6550 | } | |
6551 | if (_obj4) | |
6552 | { | |
6553 | _arg4 = &temp0; | |
6554 | if (! wxSize_helper(_obj4, &_arg4)) | |
6555 | return NULL; | |
6556 | } | |
6557 | if (_argo6) { | |
6558 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6559 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
6560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_Create. Expected _wxValidator_p."); | |
6561 | return NULL; | |
6562 | } | |
6563 | } | |
137b5242 RD |
6564 | if (_obj7) |
6565 | { | |
6566 | _arg7 = wxString_in_helper(_obj7); | |
6567 | if (_arg7 == NULL) | |
6568 | return NULL; | |
6569 | } | |
09f3d4e6 | 6570 | { |
4268f798 | 6571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 6572 | _result = (bool )wxTreeCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
09f3d4e6 | 6573 | |
4268f798 | 6574 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6575 | if (PyErr_Occurred()) return NULL; |
6576 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
6577 | { |
6578 | if (_obj7) | |
6579 | delete _arg7; | |
6580 | } | |
09f3d4e6 RD |
6581 | return _resultobj; |
6582 | } | |
6583 | ||
0122b7e3 RD |
6584 | #define wxTreeCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
6585 | static PyObject *_wrap_wxTreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 BP |
6586 | PyObject * _resultobj; |
6587 | wxPyTreeCtrl * _arg0; | |
6588 | PyObject * _arg1; | |
6589 | PyObject * _arg2; | |
6590 | PyObject * _argo0 = 0; | |
6591 | PyObject * _obj1 = 0; | |
6592 | PyObject * _obj2 = 0; | |
6593 | char *_kwnames[] = { "self","self","_class", NULL }; | |
6594 | ||
6595 | self = self; | |
0122b7e3 | 6596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
f6bcfd97 BP |
6597 | return NULL; |
6598 | if (_argo0) { | |
6599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
0122b7e3 | 6601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setCallbackInfo. Expected _wxPyTreeCtrl_p."); |
f6bcfd97 BP |
6602 | return NULL; |
6603 | } | |
6604 | } | |
6605 | { | |
6606 | _arg1 = _obj1; | |
6607 | } | |
6608 | { | |
6609 | _arg2 = _obj2; | |
6610 | } | |
6611 | { | |
4268f798 | 6612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6613 | wxTreeCtrl__setCallbackInfo(_arg0,_arg1,_arg2); |
f6bcfd97 | 6614 | |
4268f798 | 6615 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6616 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6617 | } Py_INCREF(Py_None); |
6618 | _resultobj = Py_None; | |
6619 | return _resultobj; | |
6620 | } | |
6621 | ||
d5c9047a | 6622 | #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount()) |
efc5f224 | 6623 | static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6624 | PyObject * _resultobj; |
c127177f | 6625 | size_t _result; |
f6bcfd97 | 6626 | wxPyTreeCtrl * _arg0; |
1d99702e | 6627 | PyObject * _argo0 = 0; |
efc5f224 | 6628 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6629 | |
6630 | self = self; | |
efc5f224 | 6631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0)) |
8ab979d7 | 6632 | return NULL; |
1d99702e RD |
6633 | if (_argo0) { |
6634 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6635 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6637 | return NULL; |
6638 | } | |
6639 | } | |
cf694132 | 6640 | { |
4268f798 | 6641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6642 | _result = (size_t )wxTreeCtrl_GetCount(_arg0); |
cf694132 | 6643 | |
4268f798 | 6644 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6645 | if (PyErr_Occurred()) return NULL; |
c127177f | 6646 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6647 | return _resultobj; |
6648 | } | |
6649 | ||
d5c9047a | 6650 | #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) |
efc5f224 | 6651 | static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6652 | PyObject * _resultobj; |
d5c9047a | 6653 | unsigned int _result; |
f6bcfd97 | 6654 | wxPyTreeCtrl * _arg0; |
1d99702e | 6655 | PyObject * _argo0 = 0; |
efc5f224 | 6656 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6657 | |
6658 | self = self; | |
efc5f224 | 6659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0)) |
8ab979d7 | 6660 | return NULL; |
1d99702e RD |
6661 | if (_argo0) { |
6662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6665 | return NULL; |
6666 | } | |
6667 | } | |
cf694132 | 6668 | { |
4268f798 | 6669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6670 | _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0); |
cf694132 | 6671 | |
4268f798 | 6672 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6673 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6674 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6675 | return _resultobj; |
6676 | } | |
6677 | ||
d5c9047a | 6678 | #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) |
efc5f224 | 6679 | static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6680 | PyObject * _resultobj; |
f6bcfd97 | 6681 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6682 | unsigned int _arg1; |
1d99702e | 6683 | PyObject * _argo0 = 0; |
efc5f224 | 6684 | char *_kwnames[] = { "self","indent", NULL }; |
8ab979d7 RD |
6685 | |
6686 | self = self; | |
efc5f224 | 6687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6688 | return NULL; |
1d99702e RD |
6689 | if (_argo0) { |
6690 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6693 | return NULL; |
6694 | } | |
6695 | } | |
cf694132 | 6696 | { |
4268f798 | 6697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6698 | wxTreeCtrl_SetIndent(_arg0,_arg1); |
cf694132 | 6699 | |
4268f798 | 6700 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6701 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6702 | } Py_INCREF(Py_None); |
d5c9047a | 6703 | _resultobj = Py_None; |
8ab979d7 RD |
6704 | return _resultobj; |
6705 | } | |
6706 | ||
d5c9047a | 6707 | #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList()) |
efc5f224 | 6708 | static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6709 | PyObject * _resultobj; |
d5c9047a | 6710 | wxImageList * _result; |
f6bcfd97 | 6711 | wxPyTreeCtrl * _arg0; |
1d99702e | 6712 | PyObject * _argo0 = 0; |
efc5f224 | 6713 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6714 | |
6715 | self = self; | |
efc5f224 | 6716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0)) |
8ab979d7 | 6717 | return NULL; |
1d99702e RD |
6718 | if (_argo0) { |
6719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6722 | return NULL; |
6723 | } | |
6724 | } | |
cf694132 | 6725 | { |
4268f798 | 6726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6727 | _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0); |
cf694132 | 6728 | |
4268f798 | 6729 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6730 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 6731 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
6732 | return _resultobj; |
6733 | } | |
6734 | ||
d5c9047a | 6735 | #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList()) |
efc5f224 | 6736 | static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6737 | PyObject * _resultobj; |
d5c9047a | 6738 | wxImageList * _result; |
f6bcfd97 | 6739 | wxPyTreeCtrl * _arg0; |
1d99702e | 6740 | PyObject * _argo0 = 0; |
efc5f224 | 6741 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6742 | |
6743 | self = self; | |
efc5f224 | 6744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0)) |
8ab979d7 | 6745 | return NULL; |
1d99702e RD |
6746 | if (_argo0) { |
6747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6750 | return NULL; |
6751 | } | |
6752 | } | |
cf694132 | 6753 | { |
4268f798 | 6754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6755 | _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0); |
cf694132 | 6756 | |
4268f798 | 6757 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6758 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 6759 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
6760 | return _resultobj; |
6761 | } | |
6762 | ||
d5c9047a | 6763 | #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) |
efc5f224 | 6764 | static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6765 | PyObject * _resultobj; |
f6bcfd97 | 6766 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6767 | wxImageList * _arg1; |
1d99702e RD |
6768 | PyObject * _argo0 = 0; |
6769 | PyObject * _argo1 = 0; | |
efc5f224 | 6770 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
6771 | |
6772 | self = self; | |
efc5f224 | 6773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6774 | return NULL; |
1d99702e RD |
6775 | if (_argo0) { |
6776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6779 | return NULL; |
6780 | } | |
6781 | } | |
1d99702e RD |
6782 | if (_argo1) { |
6783 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6784 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
6785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p."); |
6786 | return NULL; | |
6787 | } | |
6788 | } | |
cf694132 | 6789 | { |
4268f798 | 6790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6791 | wxTreeCtrl_SetImageList(_arg0,_arg1); |
cf694132 | 6792 | |
4268f798 | 6793 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6794 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6795 | } Py_INCREF(Py_None); |
d5c9047a | 6796 | _resultobj = Py_None; |
8ab979d7 RD |
6797 | return _resultobj; |
6798 | } | |
6799 | ||
d5c9047a | 6800 | #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0)) |
efc5f224 | 6801 | static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6802 | PyObject * _resultobj; |
f6bcfd97 | 6803 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6804 | wxImageList * _arg1; |
1d99702e RD |
6805 | PyObject * _argo0 = 0; |
6806 | PyObject * _argo1 = 0; | |
efc5f224 | 6807 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
6808 | |
6809 | self = self; | |
efc5f224 | 6810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6811 | return NULL; |
1d99702e RD |
6812 | if (_argo0) { |
6813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6816 | return NULL; |
6817 | } | |
6818 | } | |
1d99702e RD |
6819 | if (_argo1) { |
6820 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6821 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
6822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p."); |
6823 | return NULL; | |
6824 | } | |
6825 | } | |
cf694132 | 6826 | { |
4268f798 | 6827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6828 | wxTreeCtrl_SetStateImageList(_arg0,_arg1); |
cf694132 | 6829 | |
4268f798 | 6830 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6831 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6832 | } Py_INCREF(Py_None); |
d5c9047a | 6833 | _resultobj = Py_None; |
8ab979d7 RD |
6834 | return _resultobj; |
6835 | } | |
6836 | ||
00b6c4e3 RD |
6837 | #define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0)) |
6838 | static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6839 | PyObject * _resultobj; | |
6840 | wxPyTreeCtrl * _arg0; | |
6841 | wxImageList * _arg1; | |
6842 | PyObject * _argo0 = 0; | |
6843 | PyObject * _argo1 = 0; | |
6844 | char *_kwnames[] = { "self","imageList", NULL }; | |
6845 | ||
6846 | self = self; | |
6847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1)) | |
6848 | return NULL; | |
6849 | if (_argo0) { | |
6850 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6851 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p."); | |
6853 | return NULL; | |
6854 | } | |
6855 | } | |
6856 | if (_argo1) { | |
6857 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6858 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p."); | |
6860 | return NULL; | |
6861 | } | |
6862 | } | |
6863 | { | |
4268f798 | 6864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6865 | wxTreeCtrl_AssignImageList(_arg0,_arg1); |
00b6c4e3 | 6866 | |
4268f798 | 6867 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
6868 | if (PyErr_Occurred()) return NULL; |
6869 | } Py_INCREF(Py_None); | |
6870 | _resultobj = Py_None; | |
6871 | return _resultobj; | |
6872 | } | |
6873 | ||
6874 | #define wxTreeCtrl_AssignStateImageList(_swigobj,_swigarg0) (_swigobj->AssignStateImageList(_swigarg0)) | |
6875 | static PyObject *_wrap_wxTreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6876 | PyObject * _resultobj; | |
6877 | wxPyTreeCtrl * _arg0; | |
6878 | wxImageList * _arg1; | |
6879 | PyObject * _argo0 = 0; | |
6880 | PyObject * _argo1 = 0; | |
6881 | char *_kwnames[] = { "self","imageList", NULL }; | |
6882 | ||
6883 | self = self; | |
6884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignStateImageList",_kwnames,&_argo0,&_argo1)) | |
6885 | return NULL; | |
6886 | if (_argo0) { | |
6887 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6888 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignStateImageList. Expected _wxPyTreeCtrl_p."); | |
6890 | return NULL; | |
6891 | } | |
6892 | } | |
6893 | if (_argo1) { | |
6894 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6895 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignStateImageList. Expected _wxImageList_p."); | |
6897 | return NULL; | |
6898 | } | |
6899 | } | |
6900 | { | |
4268f798 | 6901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6902 | wxTreeCtrl_AssignStateImageList(_arg0,_arg1); |
00b6c4e3 | 6903 | |
4268f798 | 6904 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
6905 | if (PyErr_Occurred()) return NULL; |
6906 | } Py_INCREF(Py_None); | |
6907 | _resultobj = Py_None; | |
6908 | return _resultobj; | |
6909 | } | |
6910 | ||
b1462dfa RD |
6911 | #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing()) |
6912 | static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6913 | PyObject * _resultobj; | |
6914 | unsigned int _result; | |
f6bcfd97 | 6915 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
6916 | PyObject * _argo0 = 0; |
6917 | char *_kwnames[] = { "self", NULL }; | |
6918 | ||
6919 | self = self; | |
6920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0)) | |
6921 | return NULL; | |
6922 | if (_argo0) { | |
6923 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6924 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
6926 | return NULL; |
6927 | } | |
6928 | } | |
6929 | { | |
4268f798 | 6930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6931 | _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0); |
b1462dfa | 6932 | |
4268f798 | 6933 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6934 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
6935 | } _resultobj = Py_BuildValue("i",_result); |
6936 | return _resultobj; | |
6937 | } | |
6938 | ||
6939 | #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0)) | |
6940 | static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6941 | PyObject * _resultobj; | |
f6bcfd97 | 6942 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
6943 | unsigned int _arg1; |
6944 | PyObject * _argo0 = 0; | |
6945 | char *_kwnames[] = { "self","spacing", NULL }; | |
6946 | ||
6947 | self = self; | |
6948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1)) | |
6949 | return NULL; | |
6950 | if (_argo0) { | |
6951 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6952 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
6954 | return NULL; |
6955 | } | |
6956 | } | |
6957 | { | |
4268f798 | 6958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6959 | wxTreeCtrl_SetSpacing(_arg0,_arg1); |
b1462dfa | 6960 | |
4268f798 | 6961 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6962 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
6963 | } Py_INCREF(Py_None); |
6964 | _resultobj = Py_None; | |
6965 | return _resultobj; | |
6966 | } | |
6967 | ||
d5c9047a | 6968 | #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
efc5f224 | 6969 | static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6970 | PyObject * _resultobj; |
d5c9047a | 6971 | wxString * _result; |
f6bcfd97 | 6972 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6973 | wxTreeItemId * _arg1; |
1d99702e RD |
6974 | PyObject * _argo0 = 0; |
6975 | PyObject * _argo1 = 0; | |
efc5f224 | 6976 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6977 | |
6978 | self = self; | |
efc5f224 | 6979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6980 | return NULL; |
1d99702e RD |
6981 | if (_argo0) { |
6982 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6983 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6985 | return NULL; |
6986 | } | |
6987 | } | |
1d99702e RD |
6988 | if (_argo1) { |
6989 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6990 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6991 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p."); |
6992 | return NULL; | |
6993 | } | |
6994 | } | |
d5c9047a | 6995 | { |
4268f798 | 6996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6997 | _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1)); |
cf694132 | 6998 | |
4268f798 | 6999 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7000 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7001 | }{ |
c8bc7bb8 RD |
7002 | #if wxUSE_UNICODE |
7003 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
7004 | #else | |
eec92d76 | 7005 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7006 | #endif |
d5c9047a RD |
7007 | } |
7008 | { | |
7009 | delete _result; | |
7010 | } | |
8ab979d7 RD |
7011 | return _resultobj; |
7012 | } | |
7013 | ||
694759cf | 7014 | #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1)) |
efc5f224 | 7015 | static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7016 | PyObject * _resultobj; |
d5c9047a | 7017 | int _result; |
f6bcfd97 | 7018 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7019 | wxTreeItemId * _arg1; |
694759cf | 7020 | wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
7021 | PyObject * _argo0 = 0; |
7022 | PyObject * _argo1 = 0; | |
694759cf | 7023 | char *_kwnames[] = { "self","item","which", NULL }; |
8ab979d7 RD |
7024 | |
7025 | self = self; | |
694759cf | 7026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 7027 | return NULL; |
1d99702e RD |
7028 | if (_argo0) { |
7029 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7030 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7032 | return NULL; |
7033 | } | |
7034 | } | |
1d99702e RD |
7035 | if (_argo1) { |
7036 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7037 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p."); |
7039 | return NULL; | |
7040 | } | |
7041 | } | |
cf694132 | 7042 | { |
4268f798 | 7043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7044 | _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2); |
cf694132 | 7045 | |
4268f798 | 7046 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7047 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7048 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7049 | return _resultobj; |
7050 | } | |
7051 | ||
d5c9047a | 7052 | #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0)) |
efc5f224 | 7053 | static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7054 | PyObject * _resultobj; |
d5c9047a | 7055 | int _result; |
f6bcfd97 | 7056 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7057 | wxTreeItemId * _arg1; |
1d99702e RD |
7058 | PyObject * _argo0 = 0; |
7059 | PyObject * _argo1 = 0; | |
efc5f224 | 7060 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7061 | |
7062 | self = self; | |
efc5f224 | 7063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7064 | return NULL; |
1d99702e RD |
7065 | if (_argo0) { |
7066 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7067 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7069 | return NULL; |
7070 | } | |
7071 | } | |
1d99702e RD |
7072 | if (_argo1) { |
7073 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7074 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p."); |
7076 | return NULL; | |
7077 | } | |
7078 | } | |
cf694132 | 7079 | { |
4268f798 | 7080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7081 | _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1); |
8ab979d7 | 7082 | |
4268f798 | 7083 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7084 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7085 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7086 | return _resultobj; |
7087 | } | |
7088 | ||
d5c9047a | 7089 | #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
efc5f224 | 7090 | static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7091 | PyObject * _resultobj; |
f6bcfd97 | 7092 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7093 | wxTreeItemId * _arg1; |
7094 | wxString * _arg2; | |
1d99702e RD |
7095 | PyObject * _argo0 = 0; |
7096 | PyObject * _argo1 = 0; | |
d5c9047a | 7097 | PyObject * _obj2 = 0; |
efc5f224 | 7098 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
7099 | |
7100 | self = self; | |
efc5f224 | 7101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7102 | return NULL; |
1d99702e RD |
7103 | if (_argo0) { |
7104 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7105 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7107 | return NULL; |
7108 | } | |
7109 | } | |
1d99702e RD |
7110 | if (_argo1) { |
7111 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7112 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p."); |
7114 | return NULL; | |
7115 | } | |
7116 | } | |
7117 | { | |
c8bc7bb8 RD |
7118 | _arg2 = wxString_in_helper(_obj2); |
7119 | if (_arg2 == NULL) | |
185d7c3e | 7120 | return NULL; |
d5c9047a | 7121 | } |
cf694132 | 7122 | { |
4268f798 | 7123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7124 | wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2); |
cf694132 | 7125 | |
4268f798 | 7126 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7127 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7128 | } Py_INCREF(Py_None); |
d5c9047a RD |
7129 | _resultobj = Py_None; |
7130 | { | |
7131 | if (_obj2) | |
7132 | delete _arg2; | |
7133 | } | |
8ab979d7 RD |
7134 | return _resultobj; |
7135 | } | |
7136 | ||
694759cf | 7137 | #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 7138 | static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7139 | PyObject * _resultobj; |
f6bcfd97 | 7140 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7141 | wxTreeItemId * _arg1; |
7142 | int _arg2; | |
694759cf | 7143 | wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
7144 | PyObject * _argo0 = 0; |
7145 | PyObject * _argo1 = 0; | |
694759cf | 7146 | char *_kwnames[] = { "self","item","image","which", NULL }; |
8ab979d7 RD |
7147 | |
7148 | self = self; | |
694759cf | 7149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 7150 | return NULL; |
1d99702e RD |
7151 | if (_argo0) { |
7152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7155 | return NULL; |
7156 | } | |
7157 | } | |
1d99702e RD |
7158 | if (_argo1) { |
7159 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7160 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p."); |
7162 | return NULL; | |
7163 | } | |
7164 | } | |
cf694132 | 7165 | { |
4268f798 | 7166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7167 | wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 7168 | |
4268f798 | 7169 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7170 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7171 | } Py_INCREF(Py_None); |
d5c9047a | 7172 | _resultobj = Py_None; |
8ab979d7 RD |
7173 | return _resultobj; |
7174 | } | |
7175 | ||
d5c9047a | 7176 | #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1)) |
efc5f224 | 7177 | static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7178 | PyObject * _resultobj; |
f6bcfd97 | 7179 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7180 | wxTreeItemId * _arg1; |
7181 | int _arg2; | |
1d99702e RD |
7182 | PyObject * _argo0 = 0; |
7183 | PyObject * _argo1 = 0; | |
efc5f224 | 7184 | char *_kwnames[] = { "self","item","image", NULL }; |
8ab979d7 RD |
7185 | |
7186 | self = self; | |
efc5f224 | 7187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 7188 | return NULL; |
1d99702e RD |
7189 | if (_argo0) { |
7190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7191 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7193 | return NULL; |
7194 | } | |
7195 | } | |
1d99702e RD |
7196 | if (_argo1) { |
7197 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7198 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p."); |
7200 | return NULL; | |
7201 | } | |
7202 | } | |
cf694132 | 7203 | { |
4268f798 | 7204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7205 | wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2); |
cf694132 | 7206 | |
4268f798 | 7207 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7208 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7209 | } Py_INCREF(Py_None); |
7210 | _resultobj = Py_None; | |
7211 | return _resultobj; | |
7212 | } | |
7213 | ||
7214 | #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1)) | |
efc5f224 | 7215 | static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7216 | PyObject * _resultobj; |
f6bcfd97 | 7217 | wxPyTreeCtrl * _arg0; |
cf694132 | 7218 | wxTreeItemId * _arg1; |
1d99702e RD |
7219 | bool _arg2 = (bool ) TRUE; |
7220 | PyObject * _argo0 = 0; | |
7221 | PyObject * _argo1 = 0; | |
7222 | int tempbool2 = (int) TRUE; | |
efc5f224 | 7223 | char *_kwnames[] = { "self","item","hasChildren", NULL }; |
cf694132 RD |
7224 | |
7225 | self = self; | |
efc5f224 | 7226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2)) |
cf694132 | 7227 | return NULL; |
1d99702e RD |
7228 | if (_argo0) { |
7229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7232 | return NULL; |
7233 | } | |
7234 | } | |
1d99702e RD |
7235 | if (_argo1) { |
7236 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7237 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p."); |
7239 | return NULL; | |
7240 | } | |
7241 | } | |
7242 | _arg2 = (bool ) tempbool2; | |
7243 | { | |
4268f798 | 7244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7245 | wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2); |
cf694132 | 7246 | |
4268f798 | 7247 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7248 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7249 | } Py_INCREF(Py_None); |
d5c9047a | 7250 | _resultobj = Py_None; |
8ab979d7 RD |
7251 | return _resultobj; |
7252 | } | |
7253 | ||
f6bcfd97 | 7254 | static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7255 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7256 | if (data == NULL) { | |
7257 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7258 | data->SetId(item); // set the id |
cf694132 RD |
7259 | self->SetItemData(item, data); |
7260 | } | |
7261 | return data; | |
7262 | } | |
efc5f224 | 7263 | static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
7264 | PyObject * _resultobj; |
7265 | wxPyTreeItemData * _result; | |
f6bcfd97 | 7266 | wxPyTreeCtrl * _arg0; |
cf694132 | 7267 | wxTreeItemId * _arg1; |
1d99702e RD |
7268 | PyObject * _argo0 = 0; |
7269 | PyObject * _argo1 = 0; | |
efc5f224 | 7270 | char *_kwnames[] = { "self","item", NULL }; |
cf694132 RD |
7271 | char _ptemp[128]; |
7272 | ||
7273 | self = self; | |
efc5f224 | 7274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1)) |
cf694132 | 7275 | return NULL; |
1d99702e RD |
7276 | if (_argo0) { |
7277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7280 | return NULL; |
7281 | } | |
7282 | } | |
1d99702e RD |
7283 | if (_argo1) { |
7284 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7285 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p."); |
7287 | return NULL; | |
7288 | } | |
7289 | } | |
7290 | { | |
4268f798 | 7291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7292 | _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1); |
cf694132 | 7293 | |
4268f798 | 7294 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7295 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7296 | } if (_result) { |
7297 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
7298 | _resultobj = Py_BuildValue("s",_ptemp); | |
7299 | } else { | |
7300 | Py_INCREF(Py_None); | |
7301 | _resultobj = Py_None; | |
7302 | } | |
cf694132 RD |
7303 | return _resultobj; |
7304 | } | |
7305 | ||
f6bcfd97 BP |
7306 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) { |
7307 | data->SetId(item); // set the id | |
7308 | self->SetItemData(item, data); | |
c368d904 | 7309 | } |
efc5f224 | 7310 | static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7311 | PyObject * _resultobj; |
f6bcfd97 | 7312 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7313 | wxTreeItemId * _arg1; |
cf694132 | 7314 | wxPyTreeItemData * _arg2; |
1d99702e RD |
7315 | PyObject * _argo0 = 0; |
7316 | PyObject * _argo1 = 0; | |
7317 | PyObject * _argo2 = 0; | |
efc5f224 | 7318 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
7319 | |
7320 | self = self; | |
efc5f224 | 7321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2)) |
8ab979d7 | 7322 | return NULL; |
1d99702e RD |
7323 | if (_argo0) { |
7324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7327 | return NULL; |
7328 | } | |
7329 | } | |
1d99702e RD |
7330 | if (_argo1) { |
7331 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7332 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p."); |
7334 | return NULL; | |
7335 | } | |
7336 | } | |
1d99702e RD |
7337 | if (_argo2) { |
7338 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7339 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) { | |
cf694132 | 7340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
7341 | return NULL; |
7342 | } | |
7343 | } | |
cf694132 | 7344 | { |
4268f798 | 7345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7346 | wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2); |
cf694132 | 7347 | |
4268f798 | 7348 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7349 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7350 | } Py_INCREF(Py_None); |
d5c9047a | 7351 | _resultobj = Py_None; |
8ab979d7 RD |
7352 | return _resultobj; |
7353 | } | |
7354 | ||
f6bcfd97 | 7355 | static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7356 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7357 | if (data == NULL) { | |
7358 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7359 | data->SetId(item); // set the id |
cf694132 RD |
7360 | self->SetItemData(item, data); |
7361 | } | |
7362 | return data->GetData(); | |
c368d904 | 7363 | } |
efc5f224 | 7364 | static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 7365 | PyObject * _resultobj; |
cf694132 | 7366 | PyObject * _result; |
f6bcfd97 | 7367 | wxPyTreeCtrl * _arg0; |
08127323 | 7368 | wxTreeItemId * _arg1; |
1d99702e RD |
7369 | PyObject * _argo0 = 0; |
7370 | PyObject * _argo1 = 0; | |
efc5f224 | 7371 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
7372 | |
7373 | self = self; | |
efc5f224 | 7374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1)) |
08127323 | 7375 | return NULL; |
1d99702e RD |
7376 | if (_argo0) { |
7377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
7380 | return NULL; |
7381 | } | |
7382 | } | |
1d99702e RD |
7383 | if (_argo1) { |
7384 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7385 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 | 7386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p."); |
08127323 RD |
7387 | return NULL; |
7388 | } | |
7389 | } | |
cf694132 | 7390 | { |
4268f798 | 7391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7392 | _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1); |
cf694132 | 7393 | |
4268f798 | 7394 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7395 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7396 | }{ |
7397 | _resultobj = _result; | |
7398 | } | |
7399 | return _resultobj; | |
7400 | } | |
7401 | ||
f6bcfd97 | 7402 | static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) { |
cf694132 RD |
7403 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7404 | if (data == NULL) { | |
7405 | data = new wxPyTreeItemData(obj); | |
f6bcfd97 | 7406 | data->SetId(item); // set the id |
cf694132 RD |
7407 | self->SetItemData(item, data); |
7408 | } else | |
7409 | data->SetData(obj); | |
c368d904 | 7410 | } |
efc5f224 | 7411 | static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7412 | PyObject * _resultobj; |
f6bcfd97 | 7413 | wxPyTreeCtrl * _arg0; |
cf694132 RD |
7414 | wxTreeItemId * _arg1; |
7415 | PyObject * _arg2; | |
1d99702e RD |
7416 | PyObject * _argo0 = 0; |
7417 | PyObject * _argo1 = 0; | |
cf694132 | 7418 | PyObject * _obj2 = 0; |
efc5f224 | 7419 | char *_kwnames[] = { "self","item","obj", NULL }; |
cf694132 RD |
7420 | |
7421 | self = self; | |
efc5f224 | 7422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2)) |
cf694132 | 7423 | return NULL; |
1d99702e RD |
7424 | if (_argo0) { |
7425 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7426 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7428 | return NULL; |
7429 | } | |
7430 | } | |
1d99702e RD |
7431 | if (_argo1) { |
7432 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7433 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p."); |
7435 | return NULL; | |
7436 | } | |
7437 | } | |
7438 | { | |
7439 | _arg2 = _obj2; | |
7440 | } | |
7441 | { | |
4268f798 | 7442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7443 | wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2); |
cf694132 | 7444 | |
4268f798 | 7445 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7446 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7447 | } Py_INCREF(Py_None); |
08127323 RD |
7448 | _resultobj = Py_None; |
7449 | return _resultobj; | |
7450 | } | |
7451 | ||
d5c9047a | 7452 | #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) |
efc5f224 | 7453 | static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7454 | PyObject * _resultobj; |
d5c9047a | 7455 | bool _result; |
f6bcfd97 | 7456 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7457 | wxTreeItemId * _arg1; |
1d99702e RD |
7458 | PyObject * _argo0 = 0; |
7459 | PyObject * _argo1 = 0; | |
efc5f224 | 7460 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7461 | |
7462 | self = self; | |
efc5f224 | 7463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7464 | return NULL; |
1d99702e RD |
7465 | if (_argo0) { |
7466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7469 | return NULL; |
7470 | } | |
7471 | } | |
1d99702e RD |
7472 | if (_argo1) { |
7473 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7474 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p."); |
7476 | return NULL; | |
7477 | } | |
7478 | } | |
cf694132 | 7479 | { |
4268f798 | 7480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7481 | _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1); |
cf694132 | 7482 | |
4268f798 | 7483 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7484 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7485 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7486 | return _resultobj; |
7487 | } | |
7488 | ||
d5c9047a | 7489 | #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0)) |
efc5f224 | 7490 | static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7491 | PyObject * _resultobj; |
d5c9047a | 7492 | bool _result; |
f6bcfd97 | 7493 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7494 | wxTreeItemId * _arg1; |
1d99702e RD |
7495 | PyObject * _argo0 = 0; |
7496 | PyObject * _argo1 = 0; | |
efc5f224 | 7497 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7498 | |
7499 | self = self; | |
efc5f224 | 7500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7501 | return NULL; |
1d99702e RD |
7502 | if (_argo0) { |
7503 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7504 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7506 | return NULL; |
7507 | } | |
7508 | } | |
1d99702e RD |
7509 | if (_argo1) { |
7510 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7511 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7512 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p."); |
7513 | return NULL; | |
7514 | } | |
7515 | } | |
cf694132 | 7516 | { |
4268f798 | 7517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7518 | _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1); |
cf694132 | 7519 | |
4268f798 | 7520 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7521 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7522 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7523 | return _resultobj; |
7524 | } | |
7525 | ||
d5c9047a | 7526 | #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0)) |
efc5f224 | 7527 | static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7528 | PyObject * _resultobj; |
d5c9047a | 7529 | bool _result; |
f6bcfd97 | 7530 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7531 | wxTreeItemId * _arg1; |
1d99702e RD |
7532 | PyObject * _argo0 = 0; |
7533 | PyObject * _argo1 = 0; | |
efc5f224 | 7534 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7535 | |
7536 | self = self; | |
efc5f224 | 7537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7538 | return NULL; |
1d99702e RD |
7539 | if (_argo0) { |
7540 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7541 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7543 | return NULL; |
7544 | } | |
7545 | } | |
1d99702e RD |
7546 | if (_argo1) { |
7547 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7548 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p."); |
7550 | return NULL; | |
7551 | } | |
7552 | } | |
cf694132 | 7553 | { |
4268f798 | 7554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7555 | _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1); |
cf694132 | 7556 | |
4268f798 | 7557 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7558 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7559 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7560 | return _resultobj; |
7561 | } | |
7562 | ||
d5c9047a | 7563 | #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
efc5f224 | 7564 | static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7565 | PyObject * _resultobj; |
d5c9047a | 7566 | bool _result; |
f6bcfd97 | 7567 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7568 | wxTreeItemId * _arg1; |
1d99702e RD |
7569 | PyObject * _argo0 = 0; |
7570 | PyObject * _argo1 = 0; | |
efc5f224 | 7571 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7572 | |
7573 | self = self; | |
efc5f224 | 7574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7575 | return NULL; |
1d99702e RD |
7576 | if (_argo0) { |
7577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7580 | return NULL; |
7581 | } | |
7582 | } | |
1d99702e RD |
7583 | if (_argo1) { |
7584 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7585 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p."); |
7587 | return NULL; | |
7588 | } | |
7589 | } | |
cf694132 | 7590 | { |
4268f798 | 7591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7592 | _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1); |
cf694132 | 7593 | |
4268f798 | 7594 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7595 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7596 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7597 | return _resultobj; |
7598 | } | |
7599 | ||
7600 | #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem()) | |
efc5f224 | 7601 | static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7602 | PyObject * _resultobj; |
d5c9047a | 7603 | wxTreeItemId * _result; |
f6bcfd97 | 7604 | wxPyTreeCtrl * _arg0; |
1d99702e | 7605 | PyObject * _argo0 = 0; |
efc5f224 | 7606 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7607 | char _ptemp[128]; |
8ab979d7 RD |
7608 | |
7609 | self = self; | |
efc5f224 | 7610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0)) |
8ab979d7 | 7611 | return NULL; |
1d99702e RD |
7612 | if (_argo0) { |
7613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7616 | return NULL; |
7617 | } | |
7618 | } | |
cf694132 | 7619 | { |
4268f798 | 7620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7621 | _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0)); |
cf694132 | 7622 | |
4268f798 | 7623 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7624 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7625 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7626 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7627 | return _resultobj; |
7628 | } | |
7629 | ||
7630 | #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 7631 | static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7632 | PyObject * _resultobj; |
d5c9047a | 7633 | wxTreeItemId * _result; |
f6bcfd97 | 7634 | wxPyTreeCtrl * _arg0; |
1d99702e | 7635 | PyObject * _argo0 = 0; |
efc5f224 | 7636 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7637 | char _ptemp[128]; |
8ab979d7 RD |
7638 | |
7639 | self = self; | |
efc5f224 | 7640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 7641 | return NULL; |
1d99702e RD |
7642 | if (_argo0) { |
7643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7646 | return NULL; |
7647 | } | |
7648 | } | |
cf694132 | 7649 | { |
4268f798 | 7650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7651 | _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0)); |
cf694132 | 7652 | |
4268f798 | 7653 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7654 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7655 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7656 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7657 | return _resultobj; |
7658 | } | |
7659 | ||
eb715945 RD |
7660 | #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0)) |
7661 | static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7662 | PyObject * _resultobj; |
d5c9047a | 7663 | wxTreeItemId * _result; |
f6bcfd97 | 7664 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7665 | wxTreeItemId * _arg1; |
1d99702e RD |
7666 | PyObject * _argo0 = 0; |
7667 | PyObject * _argo1 = 0; | |
efc5f224 | 7668 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7669 | char _ptemp[128]; |
8ab979d7 RD |
7670 | |
7671 | self = self; | |
eb715945 | 7672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7673 | return NULL; |
1d99702e RD |
7674 | if (_argo0) { |
7675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7678 | return NULL; |
7679 | } | |
7680 | } | |
1d99702e RD |
7681 | if (_argo1) { |
7682 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7683 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
eb715945 | 7684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7685 | return NULL; |
7686 | } | |
7687 | } | |
cf694132 | 7688 | { |
4268f798 | 7689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7690 | _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1)); |
cf694132 | 7691 | |
4268f798 | 7692 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7693 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7694 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7695 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7696 | return _resultobj; |
7697 | } | |
7698 | ||
f6bcfd97 | 7699 | static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) { |
4268f798 | 7700 | wxPyBeginBlockThreads(); |
d426c97e RD |
7701 | PyObject* rval = PyList_New(0); |
7702 | wxArrayTreeItemIds array; | |
7703 | size_t num, x; | |
7704 | num = self->GetSelections(array); | |
7705 | for (x=0; x < num; x++) { | |
c368d904 RD |
7706 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); |
7707 | PyObject* item = wxPyConstructObject((void*)tii, "wxTreeItemId", TRUE); | |
d426c97e RD |
7708 | PyList_Append(rval, item); |
7709 | } | |
4268f798 | 7710 | wxPyEndBlockThreads(); |
d426c97e RD |
7711 | return rval; |
7712 | } | |
7713 | static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7714 | PyObject * _resultobj; | |
7715 | PyObject * _result; | |
f6bcfd97 | 7716 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
7717 | PyObject * _argo0 = 0; |
7718 | char *_kwnames[] = { "self", NULL }; | |
7719 | ||
7720 | self = self; | |
7721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0)) | |
7722 | return NULL; | |
7723 | if (_argo0) { | |
7724 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7725 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
7727 | return NULL; |
7728 | } | |
7729 | } | |
7730 | { | |
4268f798 | 7731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7732 | _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0); |
d426c97e | 7733 | |
4268f798 | 7734 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7735 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
7736 | }{ |
7737 | _resultobj = _result; | |
7738 | } | |
7739 | return _resultobj; | |
7740 | } | |
7741 | ||
bb0054cd | 7742 | #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1)) |
efc5f224 | 7743 | static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
7744 | PyObject * _resultobj; |
7745 | size_t _result; | |
f6bcfd97 | 7746 | wxPyTreeCtrl * _arg0; |
bb0054cd | 7747 | wxTreeItemId * _arg1; |
1d99702e RD |
7748 | bool _arg2 = (bool ) TRUE; |
7749 | PyObject * _argo0 = 0; | |
7750 | PyObject * _argo1 = 0; | |
7751 | int tempbool2 = (int) TRUE; | |
efc5f224 | 7752 | char *_kwnames[] = { "self","item","recursively", NULL }; |
bb0054cd RD |
7753 | |
7754 | self = self; | |
efc5f224 | 7755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2)) |
bb0054cd | 7756 | return NULL; |
1d99702e RD |
7757 | if (_argo0) { |
7758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p."); | |
bb0054cd RD |
7761 | return NULL; |
7762 | } | |
7763 | } | |
1d99702e RD |
7764 | if (_argo1) { |
7765 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7766 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
bb0054cd RD |
7767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p."); |
7768 | return NULL; | |
7769 | } | |
7770 | } | |
7771 | _arg2 = (bool ) tempbool2; | |
7772 | { | |
4268f798 | 7773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7774 | _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2); |
bb0054cd | 7775 | |
4268f798 | 7776 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7777 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
7778 | } _resultobj = Py_BuildValue("i",_result); |
7779 | return _resultobj; | |
7780 | } | |
7781 | ||
d5c9047a | 7782 | #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1)) |
efc5f224 | 7783 | static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7784 | PyObject * _resultobj; |
d5c9047a | 7785 | wxTreeItemId * _result; |
f6bcfd97 | 7786 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7787 | wxTreeItemId * _arg1; |
0815db26 | 7788 | long * _arg2 = (long *) &longzero; |
1d99702e RD |
7789 | PyObject * _argo0 = 0; |
7790 | PyObject * _argo1 = 0; | |
d5c9047a RD |
7791 | long temp; |
7792 | PyObject * _obj2 = 0; | |
efc5f224 | 7793 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 7794 | char _ptemp[128]; |
8ab979d7 RD |
7795 | |
7796 | self = self; | |
f87dfa06 | 7797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7798 | return NULL; |
1d99702e RD |
7799 | if (_argo0) { |
7800 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7801 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7802 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7803 | return NULL; |
7804 | } | |
7805 | } | |
1d99702e RD |
7806 | if (_argo1) { |
7807 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7808 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7810 | return NULL; |
7811 | } | |
7812 | } | |
f87dfa06 | 7813 | if (_obj2) |
d5c9047a RD |
7814 | { |
7815 | temp = (long) PyInt_AsLong(_obj2); | |
7816 | _arg2 = &temp; | |
7817 | } | |
cf694132 | 7818 | { |
4268f798 | 7819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7820 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); |
cf694132 | 7821 | |
4268f798 | 7822 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7823 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7824 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
7825 | _resultobj = Py_BuildValue("s",_ptemp); |
7826 | { | |
7827 | PyObject *o; | |
7828 | o = PyInt_FromLong((long) (*_arg2)); | |
7829 | _resultobj = t_output_helper(_resultobj, o); | |
7830 | } | |
8ab979d7 RD |
7831 | return _resultobj; |
7832 | } | |
7833 | ||
d5c9047a | 7834 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) |
efc5f224 | 7835 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7836 | PyObject * _resultobj; |
d5c9047a | 7837 | wxTreeItemId * _result; |
f6bcfd97 | 7838 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7839 | wxTreeItemId * _arg1; |
7840 | long * _arg2; | |
1d99702e RD |
7841 | PyObject * _argo0 = 0; |
7842 | PyObject * _argo1 = 0; | |
d5c9047a | 7843 | long temp; |
8ab979d7 | 7844 | PyObject * _obj2 = 0; |
efc5f224 | 7845 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 7846 | char _ptemp[128]; |
8ab979d7 RD |
7847 | |
7848 | self = self; | |
efc5f224 | 7849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7850 | return NULL; |
1d99702e RD |
7851 | if (_argo0) { |
7852 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7853 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7855 | return NULL; |
7856 | } | |
7857 | } | |
1d99702e RD |
7858 | if (_argo1) { |
7859 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7860 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); |
8ab979d7 | 7862 | return NULL; |
d5c9047a | 7863 | } |
8ab979d7 | 7864 | } |
d5c9047a RD |
7865 | { |
7866 | temp = (long) PyInt_AsLong(_obj2); | |
7867 | _arg2 = &temp; | |
8ab979d7 | 7868 | } |
cf694132 | 7869 | { |
4268f798 | 7870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7871 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); |
cf694132 | 7872 | |
4268f798 | 7873 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7874 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7875 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7876 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 | 7877 | { |
d5c9047a RD |
7878 | PyObject *o; |
7879 | o = PyInt_FromLong((long) (*_arg2)); | |
7880 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
7881 | } |
7882 | return _resultobj; | |
7883 | } | |
7884 | ||
d5c9047a | 7885 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) |
efc5f224 | 7886 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7887 | PyObject * _resultobj; |
d5c9047a | 7888 | wxTreeItemId * _result; |
f6bcfd97 | 7889 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7890 | wxTreeItemId * _arg1; |
1d99702e RD |
7891 | PyObject * _argo0 = 0; |
7892 | PyObject * _argo1 = 0; | |
efc5f224 | 7893 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7894 | char _ptemp[128]; |
8ab979d7 RD |
7895 | |
7896 | self = self; | |
efc5f224 | 7897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7898 | return NULL; |
1d99702e RD |
7899 | if (_argo0) { |
7900 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7901 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7902 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7903 | return NULL; |
7904 | } | |
7905 | } | |
1d99702e RD |
7906 | if (_argo1) { |
7907 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7908 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); |
7910 | return NULL; | |
7911 | } | |
7912 | } | |
cf694132 | 7913 | { |
4268f798 | 7914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7915 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); |
cf694132 | 7916 | |
4268f798 | 7917 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7918 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7919 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7920 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7921 | return _resultobj; |
7922 | } | |
7923 | ||
d5c9047a | 7924 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) |
efc5f224 | 7925 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7926 | PyObject * _resultobj; |
d5c9047a | 7927 | wxTreeItemId * _result; |
f6bcfd97 | 7928 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7929 | wxTreeItemId * _arg1; |
1d99702e RD |
7930 | PyObject * _argo0 = 0; |
7931 | PyObject * _argo1 = 0; | |
efc5f224 | 7932 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7933 | char _ptemp[128]; |
8ab979d7 RD |
7934 | |
7935 | self = self; | |
efc5f224 | 7936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7937 | return NULL; |
1d99702e RD |
7938 | if (_argo0) { |
7939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7942 | return NULL; |
7943 | } | |
7944 | } | |
1d99702e RD |
7945 | if (_argo1) { |
7946 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7947 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); |
7949 | return NULL; | |
7950 | } | |
7951 | } | |
cf694132 | 7952 | { |
4268f798 | 7953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7954 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); |
cf694132 | 7955 | |
4268f798 | 7956 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7957 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7958 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7959 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7960 | return _resultobj; |
7961 | } | |
7962 | ||
d5c9047a | 7963 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) |
efc5f224 | 7964 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7965 | PyObject * _resultobj; |
d5c9047a | 7966 | wxTreeItemId * _result; |
f6bcfd97 | 7967 | wxPyTreeCtrl * _arg0; |
1d99702e | 7968 | PyObject * _argo0 = 0; |
efc5f224 | 7969 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7970 | char _ptemp[128]; |
8ab979d7 RD |
7971 | |
7972 | self = self; | |
efc5f224 | 7973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) |
8ab979d7 | 7974 | return NULL; |
1d99702e RD |
7975 | if (_argo0) { |
7976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7979 | return NULL; |
7980 | } | |
7981 | } | |
cf694132 | 7982 | { |
4268f798 | 7983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7984 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); |
cf694132 | 7985 | |
4268f798 | 7986 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7987 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7988 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7989 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7990 | return _resultobj; |
7991 | } | |
7992 | ||
d5c9047a | 7993 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) |
efc5f224 | 7994 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7995 | PyObject * _resultobj; |
d5c9047a | 7996 | wxTreeItemId * _result; |
f6bcfd97 | 7997 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7998 | wxTreeItemId * _arg1; |
1d99702e RD |
7999 | PyObject * _argo0 = 0; |
8000 | PyObject * _argo1 = 0; | |
efc5f224 | 8001 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8002 | char _ptemp[128]; |
8ab979d7 RD |
8003 | |
8004 | self = self; | |
efc5f224 | 8005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8006 | return NULL; |
1d99702e RD |
8007 | if (_argo0) { |
8008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8011 | return NULL; |
8012 | } | |
8013 | } | |
1d99702e RD |
8014 | if (_argo1) { |
8015 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8016 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); |
8018 | return NULL; | |
8019 | } | |
8020 | } | |
cf694132 | 8021 | { |
4268f798 | 8022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8023 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); |
cf694132 | 8024 | |
4268f798 | 8025 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8026 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8027 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8028 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8029 | return _resultobj; |
8030 | } | |
8031 | ||
d5c9047a | 8032 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) |
efc5f224 | 8033 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8034 | PyObject * _resultobj; |
d5c9047a | 8035 | wxTreeItemId * _result; |
f6bcfd97 | 8036 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8037 | wxTreeItemId * _arg1; |
1d99702e RD |
8038 | PyObject * _argo0 = 0; |
8039 | PyObject * _argo1 = 0; | |
efc5f224 | 8040 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8041 | char _ptemp[128]; |
8ab979d7 RD |
8042 | |
8043 | self = self; | |
efc5f224 | 8044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8045 | return NULL; |
1d99702e RD |
8046 | if (_argo0) { |
8047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8050 | return NULL; |
8051 | } | |
8052 | } | |
1d99702e RD |
8053 | if (_argo1) { |
8054 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8055 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 8056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8057 | return NULL; |
8058 | } | |
8059 | } | |
cf694132 | 8060 | { |
4268f798 | 8061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8062 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); |
cf694132 | 8063 | |
4268f798 | 8064 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8065 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8066 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8067 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8068 | return _resultobj; |
8069 | } | |
8070 | ||
d426c97e RD |
8071 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) |
8072 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8073 | PyObject * _resultobj; | |
8074 | wxTreeItemId * _result; | |
f6bcfd97 | 8075 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8076 | wxTreeItemId * _arg1; |
8077 | PyObject * _argo0 = 0; | |
8078 | PyObject * _argo1 = 0; | |
8079 | char *_kwnames[] = { "self","item", NULL }; | |
8080 | char _ptemp[128]; | |
8081 | ||
8082 | self = self; | |
8083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
8084 | return NULL; | |
8085 | if (_argo0) { | |
8086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8089 | return NULL; |
8090 | } | |
8091 | } | |
8092 | if (_argo1) { | |
8093 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8094 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); | |
8096 | return NULL; | |
8097 | } | |
8098 | } | |
8099 | { | |
4268f798 | 8100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8101 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); |
d426c97e | 8102 | |
4268f798 | 8103 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8104 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8105 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8106 | _resultobj = Py_BuildValue("s",_ptemp); | |
8107 | return _resultobj; | |
8108 | } | |
8109 | ||
d5c9047a | 8110 | #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 8111 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8112 | PyObject * _resultobj; |
d5c9047a | 8113 | wxTreeItemId * _result; |
f6bcfd97 | 8114 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8115 | wxString * _arg1; |
1d99702e RD |
8116 | int _arg2 = (int ) -1; |
8117 | int _arg3 = (int ) -1; | |
8118 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
8119 | PyObject * _argo0 = 0; | |
d5c9047a | 8120 | PyObject * _obj1 = 0; |
1d99702e | 8121 | PyObject * _argo4 = 0; |
efc5f224 | 8122 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; |
d5c9047a | 8123 | char _ptemp[128]; |
8ab979d7 RD |
8124 | |
8125 | self = self; | |
efc5f224 | 8126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) |
8ab979d7 | 8127 | return NULL; |
1d99702e RD |
8128 | if (_argo0) { |
8129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8132 | return NULL; |
8133 | } | |
8134 | } | |
d5c9047a | 8135 | { |
c8bc7bb8 RD |
8136 | _arg1 = wxString_in_helper(_obj1); |
8137 | if (_arg1 == NULL) | |
185d7c3e | 8138 | return NULL; |
d5c9047a | 8139 | } |
1d99702e RD |
8140 | if (_argo4) { |
8141 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
8142 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
cf694132 | 8143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
8144 | return NULL; |
8145 | } | |
8146 | } | |
cf694132 | 8147 | { |
4268f798 | 8148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8149 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); |
cf694132 | 8150 | |
4268f798 | 8151 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8152 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8153 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8154 | _resultobj = Py_BuildValue("s",_ptemp); |
8155 | { | |
8156 | if (_obj1) | |
8157 | delete _arg1; | |
8158 | } | |
8ab979d7 RD |
8159 | return _resultobj; |
8160 | } | |
8161 | ||
d5c9047a | 8162 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8163 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8164 | PyObject * _resultobj; |
d5c9047a | 8165 | wxTreeItemId * _result; |
f6bcfd97 | 8166 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8167 | wxTreeItemId * _arg1; |
8168 | wxString * _arg2; | |
1d99702e RD |
8169 | int _arg3 = (int ) -1; |
8170 | int _arg4 = (int ) -1; | |
8171 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8172 | PyObject * _argo0 = 0; | |
8173 | PyObject * _argo1 = 0; | |
d5c9047a | 8174 | PyObject * _obj2 = 0; |
1d99702e | 8175 | PyObject * _argo5 = 0; |
efc5f224 | 8176 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8177 | char _ptemp[128]; |
8ab979d7 RD |
8178 | |
8179 | self = self; | |
efc5f224 | 8180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8181 | return NULL; |
1d99702e RD |
8182 | if (_argo0) { |
8183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8186 | return NULL; |
8187 | } | |
8188 | } | |
1d99702e RD |
8189 | if (_argo1) { |
8190 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8191 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); |
8193 | return NULL; | |
8194 | } | |
8195 | } | |
8196 | { | |
c8bc7bb8 RD |
8197 | _arg2 = wxString_in_helper(_obj2); |
8198 | if (_arg2 == NULL) | |
185d7c3e | 8199 | return NULL; |
d5c9047a | 8200 | } |
1d99702e RD |
8201 | if (_argo5) { |
8202 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8203 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8205 | return NULL; |
8206 | } | |
8207 | } | |
cf694132 | 8208 | { |
4268f798 | 8209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8210 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); |
cf694132 | 8211 | |
4268f798 | 8212 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8213 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8214 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8215 | _resultobj = Py_BuildValue("s",_ptemp); |
8216 | { | |
8217 | if (_obj2) | |
8218 | delete _arg2; | |
8219 | } | |
8ab979d7 RD |
8220 | return _resultobj; |
8221 | } | |
8222 | ||
d5c9047a | 8223 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 8224 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8225 | PyObject * _resultobj; |
d5c9047a | 8226 | wxTreeItemId * _result; |
f6bcfd97 | 8227 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8228 | wxTreeItemId * _arg1; |
8229 | wxTreeItemId * _arg2; | |
8230 | wxString * _arg3; | |
1d99702e RD |
8231 | int _arg4 = (int ) -1; |
8232 | int _arg5 = (int ) -1; | |
8233 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
8234 | PyObject * _argo0 = 0; | |
8235 | PyObject * _argo1 = 0; | |
8236 | PyObject * _argo2 = 0; | |
d5c9047a | 8237 | PyObject * _obj3 = 0; |
1d99702e | 8238 | PyObject * _argo6 = 0; |
efc5f224 | 8239 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; |
d5c9047a | 8240 | char _ptemp[128]; |
8ab979d7 RD |
8241 | |
8242 | self = self; | |
efc5f224 | 8243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) |
8ab979d7 | 8244 | return NULL; |
1d99702e RD |
8245 | if (_argo0) { |
8246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8249 | return NULL; |
8250 | } | |
8251 | } | |
1d99702e RD |
8252 | if (_argo1) { |
8253 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8254 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8256 | return NULL; | |
8257 | } | |
8258 | } | |
1d99702e RD |
8259 | if (_argo2) { |
8260 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8261 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8263 | return NULL; | |
8264 | } | |
8265 | } | |
8266 | { | |
c8bc7bb8 RD |
8267 | _arg3 = wxString_in_helper(_obj3); |
8268 | if (_arg3 == NULL) | |
185d7c3e | 8269 | return NULL; |
d5c9047a | 8270 | } |
1d99702e RD |
8271 | if (_argo6) { |
8272 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8273 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
cf694132 | 8274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8275 | return NULL; |
8276 | } | |
8277 | } | |
cf694132 | 8278 | { |
4268f798 | 8279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8280 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); |
cf694132 | 8281 | |
4268f798 | 8282 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8283 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8284 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8285 | _resultobj = Py_BuildValue("s",_ptemp); |
8286 | { | |
8287 | if (_obj3) | |
8288 | delete _arg3; | |
8289 | } | |
8ab979d7 RD |
8290 | return _resultobj; |
8291 | } | |
8292 | ||
f6bcfd97 BP |
8293 | #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
8294 | static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8295 | PyObject * _resultobj; | |
8296 | wxTreeItemId * _result; | |
8297 | wxPyTreeCtrl * _arg0; | |
8298 | wxTreeItemId * _arg1; | |
8299 | size_t _arg2; | |
8300 | wxString * _arg3; | |
8301 | int _arg4 = (int ) -1; | |
8302 | int _arg5 = (int ) -1; | |
3999941a | 8303 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; |
f6bcfd97 BP |
8304 | PyObject * _argo0 = 0; |
8305 | PyObject * _argo1 = 0; | |
8306 | PyObject * _obj3 = 0; | |
8307 | PyObject * _argo6 = 0; | |
8308 | char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL }; | |
8309 | char _ptemp[128]; | |
8310 | ||
8311 | self = self; | |
8312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
8313 | return NULL; | |
8314 | if (_argo0) { | |
8315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p."); | |
8318 | return NULL; | |
8319 | } | |
8320 | } | |
8321 | if (_argo1) { | |
8322 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8323 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p."); | |
8325 | return NULL; | |
8326 | } | |
8327 | } | |
8328 | { | |
c8bc7bb8 RD |
8329 | _arg3 = wxString_in_helper(_obj3); |
8330 | if (_arg3 == NULL) | |
185d7c3e | 8331 | return NULL; |
f6bcfd97 BP |
8332 | } |
8333 | if (_argo6) { | |
8334 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
3999941a RD |
8335 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { |
8336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeItemData_p."); | |
f6bcfd97 BP |
8337 | return NULL; |
8338 | } | |
8339 | } | |
8340 | { | |
4268f798 | 8341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8342 | _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6)); |
f6bcfd97 | 8343 | |
4268f798 | 8344 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8345 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
8346 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8347 | _resultobj = Py_BuildValue("s",_ptemp); | |
8348 | { | |
8349 | if (_obj3) | |
8350 | delete _arg3; | |
8351 | } | |
8352 | return _resultobj; | |
8353 | } | |
8354 | ||
d5c9047a | 8355 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8356 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8357 | PyObject * _resultobj; |
d5c9047a | 8358 | wxTreeItemId * _result; |
f6bcfd97 | 8359 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8360 | wxTreeItemId * _arg1; |
8ab979d7 | 8361 | wxString * _arg2; |
1d99702e RD |
8362 | int _arg3 = (int ) -1; |
8363 | int _arg4 = (int ) -1; | |
8364 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8365 | PyObject * _argo0 = 0; | |
8366 | PyObject * _argo1 = 0; | |
8ab979d7 | 8367 | PyObject * _obj2 = 0; |
1d99702e | 8368 | PyObject * _argo5 = 0; |
efc5f224 | 8369 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8370 | char _ptemp[128]; |
8ab979d7 RD |
8371 | |
8372 | self = self; | |
efc5f224 | 8373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8374 | return NULL; |
1d99702e RD |
8375 | if (_argo0) { |
8376 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8377 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8378 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8379 | return NULL; |
8380 | } | |
8381 | } | |
1d99702e RD |
8382 | if (_argo1) { |
8383 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8384 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 8385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8386 | return NULL; |
8387 | } | |
8388 | } | |
8389 | { | |
c8bc7bb8 RD |
8390 | _arg2 = wxString_in_helper(_obj2); |
8391 | if (_arg2 == NULL) | |
185d7c3e | 8392 | return NULL; |
8ab979d7 | 8393 | } |
1d99702e RD |
8394 | if (_argo5) { |
8395 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8396 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8398 | return NULL; |
8399 | } | |
8400 | } | |
cf694132 | 8401 | { |
4268f798 | 8402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8403 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); |
cf694132 | 8404 | |
4268f798 | 8405 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8406 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8407 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8408 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8409 | { |
8410 | if (_obj2) | |
8411 | delete _arg2; | |
8412 | } | |
8413 | return _resultobj; | |
8414 | } | |
8415 | ||
d5c9047a | 8416 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
efc5f224 | 8417 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8418 | PyObject * _resultobj; |
f6bcfd97 | 8419 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8420 | wxTreeItemId * _arg1; |
1d99702e RD |
8421 | PyObject * _argo0 = 0; |
8422 | PyObject * _argo1 = 0; | |
efc5f224 | 8423 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
8424 | |
8425 | self = self; | |
efc5f224 | 8426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8427 | return NULL; |
1d99702e RD |
8428 | if (_argo0) { |
8429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8432 | return NULL; |
8433 | } | |
8434 | } | |
1d99702e RD |
8435 | if (_argo1) { |
8436 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8437 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); |
8439 | return NULL; | |
8440 | } | |
8441 | } | |
cf694132 | 8442 | { |
4268f798 | 8443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8444 | wxTreeCtrl_Delete(_arg0,*_arg1); |
cf694132 | 8445 | |
4268f798 | 8446 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8447 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8448 | } Py_INCREF(Py_None); |
d5c9047a RD |
8449 | _resultobj = Py_None; |
8450 | return _resultobj; | |
8451 | } | |
8452 | ||
08127323 | 8453 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) |
efc5f224 | 8454 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 8455 | PyObject * _resultobj; |
f6bcfd97 | 8456 | wxPyTreeCtrl * _arg0; |
08127323 | 8457 | wxTreeItemId * _arg1; |
1d99702e RD |
8458 | PyObject * _argo0 = 0; |
8459 | PyObject * _argo1 = 0; | |
efc5f224 | 8460 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
8461 | |
8462 | self = self; | |
efc5f224 | 8463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) |
08127323 | 8464 | return NULL; |
1d99702e RD |
8465 | if (_argo0) { |
8466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
8469 | return NULL; |
8470 | } | |
8471 | } | |
1d99702e RD |
8472 | if (_argo1) { |
8473 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8474 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
08127323 RD |
8475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); |
8476 | return NULL; | |
8477 | } | |
8478 | } | |
cf694132 | 8479 | { |
4268f798 | 8480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8481 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); |
cf694132 | 8482 | |
4268f798 | 8483 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8484 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8485 | } Py_INCREF(Py_None); |
08127323 RD |
8486 | _resultobj = Py_None; |
8487 | return _resultobj; | |
8488 | } | |
8489 | ||
d5c9047a | 8490 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) |
efc5f224 | 8491 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8492 | PyObject * _resultobj; |
f6bcfd97 | 8493 | wxPyTreeCtrl * _arg0; |
1d99702e | 8494 | PyObject * _argo0 = 0; |
efc5f224 | 8495 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8496 | |
8497 | self = self; | |
efc5f224 | 8498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) |
d5c9047a | 8499 | return NULL; |
1d99702e RD |
8500 | if (_argo0) { |
8501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8504 | return NULL; |
8505 | } | |
8506 | } | |
cf694132 | 8507 | { |
4268f798 | 8508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8509 | wxTreeCtrl_DeleteAllItems(_arg0); |
cf694132 | 8510 | |
4268f798 | 8511 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8512 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8513 | } Py_INCREF(Py_None); |
d5c9047a RD |
8514 | _resultobj = Py_None; |
8515 | return _resultobj; | |
8516 | } | |
8517 | ||
8518 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
efc5f224 | 8519 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8520 | PyObject * _resultobj; |
f6bcfd97 | 8521 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8522 | wxTreeItemId * _arg1; |
1d99702e RD |
8523 | PyObject * _argo0 = 0; |
8524 | PyObject * _argo1 = 0; | |
efc5f224 | 8525 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8526 | |
8527 | self = self; | |
efc5f224 | 8528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8529 | return NULL; |
1d99702e RD |
8530 | if (_argo0) { |
8531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8534 | return NULL; |
8535 | } | |
8536 | } | |
1d99702e RD |
8537 | if (_argo1) { |
8538 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8539 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); |
8541 | return NULL; | |
8542 | } | |
8543 | } | |
cf694132 | 8544 | { |
4268f798 | 8545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8546 | wxTreeCtrl_Expand(_arg0,*_arg1); |
cf694132 | 8547 | |
4268f798 | 8548 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8549 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8550 | } Py_INCREF(Py_None); |
d5c9047a RD |
8551 | _resultobj = Py_None; |
8552 | return _resultobj; | |
8553 | } | |
8554 | ||
8555 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
efc5f224 | 8556 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8557 | PyObject * _resultobj; |
f6bcfd97 | 8558 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8559 | wxTreeItemId * _arg1; |
1d99702e RD |
8560 | PyObject * _argo0 = 0; |
8561 | PyObject * _argo1 = 0; | |
efc5f224 | 8562 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8563 | |
8564 | self = self; | |
efc5f224 | 8565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8566 | return NULL; |
1d99702e RD |
8567 | if (_argo0) { |
8568 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8569 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8570 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8571 | return NULL; |
8572 | } | |
8573 | } | |
1d99702e RD |
8574 | if (_argo1) { |
8575 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8576 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p."); |
8578 | return NULL; | |
8579 | } | |
8580 | } | |
cf694132 | 8581 | { |
4268f798 | 8582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8583 | wxTreeCtrl_Collapse(_arg0,*_arg1); |
cf694132 | 8584 | |
4268f798 | 8585 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8586 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8587 | } Py_INCREF(Py_None); |
d5c9047a RD |
8588 | _resultobj = Py_None; |
8589 | return _resultobj; | |
8590 | } | |
8591 | ||
8592 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
efc5f224 | 8593 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8594 | PyObject * _resultobj; |
f6bcfd97 | 8595 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8596 | wxTreeItemId * _arg1; |
1d99702e RD |
8597 | PyObject * _argo0 = 0; |
8598 | PyObject * _argo1 = 0; | |
efc5f224 | 8599 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8600 | |
8601 | self = self; | |
efc5f224 | 8602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8603 | return NULL; |
1d99702e RD |
8604 | if (_argo0) { |
8605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8608 | return NULL; |
8609 | } | |
8610 | } | |
1d99702e RD |
8611 | if (_argo1) { |
8612 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8613 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8614 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); |
8615 | return NULL; | |
8616 | } | |
8617 | } | |
cf694132 | 8618 | { |
4268f798 | 8619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8620 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); |
cf694132 | 8621 | |
4268f798 | 8622 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8623 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8624 | } Py_INCREF(Py_None); |
d5c9047a RD |
8625 | _resultobj = Py_None; |
8626 | return _resultobj; | |
8627 | } | |
8628 | ||
8629 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
efc5f224 | 8630 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8631 | PyObject * _resultobj; |
f6bcfd97 | 8632 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8633 | wxTreeItemId * _arg1; |
1d99702e RD |
8634 | PyObject * _argo0 = 0; |
8635 | PyObject * _argo1 = 0; | |
efc5f224 | 8636 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8637 | |
8638 | self = self; | |
efc5f224 | 8639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8640 | return NULL; |
1d99702e RD |
8641 | if (_argo0) { |
8642 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8643 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8645 | return NULL; |
8646 | } | |
8647 | } | |
1d99702e RD |
8648 | if (_argo1) { |
8649 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8650 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); |
8652 | return NULL; | |
8653 | } | |
8654 | } | |
cf694132 | 8655 | { |
4268f798 | 8656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8657 | wxTreeCtrl_Toggle(_arg0,*_arg1); |
cf694132 | 8658 | |
4268f798 | 8659 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8660 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8661 | } Py_INCREF(Py_None); |
d5c9047a RD |
8662 | _resultobj = Py_None; |
8663 | return _resultobj; | |
8664 | } | |
8665 | ||
8666 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
efc5f224 | 8667 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8668 | PyObject * _resultobj; |
f6bcfd97 | 8669 | wxPyTreeCtrl * _arg0; |
1d99702e | 8670 | PyObject * _argo0 = 0; |
efc5f224 | 8671 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8672 | |
8673 | self = self; | |
efc5f224 | 8674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) |
d5c9047a | 8675 | return NULL; |
1d99702e RD |
8676 | if (_argo0) { |
8677 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8678 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8680 | return NULL; |
8681 | } | |
8682 | } | |
cf694132 | 8683 | { |
4268f798 | 8684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8685 | wxTreeCtrl_Unselect(_arg0); |
cf694132 | 8686 | |
4268f798 | 8687 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8688 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8689 | } Py_INCREF(Py_None); |
d5c9047a RD |
8690 | _resultobj = Py_None; |
8691 | return _resultobj; | |
8692 | } | |
8693 | ||
8bf5d46e | 8694 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) |
efc5f224 | 8695 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e | 8696 | PyObject * _resultobj; |
f6bcfd97 | 8697 | wxPyTreeCtrl * _arg0; |
1d99702e | 8698 | PyObject * _argo0 = 0; |
efc5f224 | 8699 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
8700 | |
8701 | self = self; | |
efc5f224 | 8702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) |
8bf5d46e | 8703 | return NULL; |
1d99702e RD |
8704 | if (_argo0) { |
8705 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8706 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p."); | |
8bf5d46e RD |
8708 | return NULL; |
8709 | } | |
8710 | } | |
8711 | { | |
4268f798 | 8712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8713 | wxTreeCtrl_UnselectAll(_arg0); |
8bf5d46e | 8714 | |
4268f798 | 8715 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8716 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
8717 | } Py_INCREF(Py_None); |
8718 | _resultobj = Py_None; | |
8719 | return _resultobj; | |
8720 | } | |
8721 | ||
d5c9047a | 8722 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) |
efc5f224 | 8723 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8724 | PyObject * _resultobj; |
f6bcfd97 | 8725 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8726 | wxTreeItemId * _arg1; |
1d99702e RD |
8727 | PyObject * _argo0 = 0; |
8728 | PyObject * _argo1 = 0; | |
efc5f224 | 8729 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8730 | |
8731 | self = self; | |
efc5f224 | 8732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8733 | return NULL; |
1d99702e RD |
8734 | if (_argo0) { |
8735 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8736 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8738 | return NULL; |
8739 | } | |
8740 | } | |
1d99702e RD |
8741 | if (_argo1) { |
8742 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8743 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); |
8745 | return NULL; | |
8746 | } | |
8747 | } | |
cf694132 | 8748 | { |
4268f798 | 8749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8750 | wxTreeCtrl_SelectItem(_arg0,*_arg1); |
cf694132 | 8751 | |
4268f798 | 8752 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8753 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8754 | } Py_INCREF(Py_None); |
d5c9047a RD |
8755 | _resultobj = Py_None; |
8756 | return _resultobj; | |
8757 | } | |
8758 | ||
8759 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
efc5f224 | 8760 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8761 | PyObject * _resultobj; |
f6bcfd97 | 8762 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8763 | wxTreeItemId * _arg1; |
1d99702e RD |
8764 | PyObject * _argo0 = 0; |
8765 | PyObject * _argo1 = 0; | |
efc5f224 | 8766 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8767 | |
8768 | self = self; | |
efc5f224 | 8769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8770 | return NULL; |
1d99702e RD |
8771 | if (_argo0) { |
8772 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8773 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8775 | return NULL; |
8776 | } | |
8777 | } | |
1d99702e RD |
8778 | if (_argo1) { |
8779 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8780 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); |
8782 | return NULL; | |
8783 | } | |
8784 | } | |
cf694132 | 8785 | { |
4268f798 | 8786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8787 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); |
cf694132 | 8788 | |
4268f798 | 8789 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8790 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8791 | } Py_INCREF(Py_None); |
d5c9047a RD |
8792 | _resultobj = Py_None; |
8793 | return _resultobj; | |
8794 | } | |
8795 | ||
8796 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
efc5f224 | 8797 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8798 | PyObject * _resultobj; |
f6bcfd97 | 8799 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8800 | wxTreeItemId * _arg1; |
1d99702e RD |
8801 | PyObject * _argo0 = 0; |
8802 | PyObject * _argo1 = 0; | |
efc5f224 | 8803 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8804 | |
8805 | self = self; | |
efc5f224 | 8806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8807 | return NULL; |
1d99702e RD |
8808 | if (_argo0) { |
8809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8812 | return NULL; |
8813 | } | |
8814 | } | |
1d99702e RD |
8815 | if (_argo1) { |
8816 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8817 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); |
8819 | return NULL; | |
8820 | } | |
8821 | } | |
cf694132 | 8822 | { |
4268f798 | 8823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8824 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); |
cf694132 | 8825 | |
4268f798 | 8826 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8827 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8828 | } Py_INCREF(Py_None); |
d5c9047a RD |
8829 | _resultobj = Py_None; |
8830 | return _resultobj; | |
8831 | } | |
8832 | ||
8833 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
efc5f224 | 8834 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
8835 | PyObject * _resultobj; |
8836 | wxTextCtrl * _result; | |
f6bcfd97 | 8837 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8838 | wxTreeItemId * _arg1; |
1d99702e RD |
8839 | PyObject * _argo0 = 0; |
8840 | PyObject * _argo1 = 0; | |
efc5f224 | 8841 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8842 | |
8843 | self = self; | |
efc5f224 | 8844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8845 | return NULL; |
1d99702e RD |
8846 | if (_argo0) { |
8847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8850 | return NULL; |
8851 | } | |
8852 | } | |
1d99702e RD |
8853 | if (_argo1) { |
8854 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8855 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); |
8857 | return NULL; | |
8858 | } | |
8859 | } | |
cf694132 | 8860 | { |
4268f798 | 8861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8862 | _result = (wxTextCtrl *)wxTreeCtrl_EditLabel(_arg0,*_arg1); |
cf694132 | 8863 | |
4268f798 | 8864 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8865 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8866 | }{ _resultobj = wxPyMake_wxObject(_result); } |
d5c9047a RD |
8867 | return _resultobj; |
8868 | } | |
8869 | ||
8870 | #define wxTreeCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) | |
efc5f224 | 8871 | static PyObject *_wrap_wxTreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
8872 | PyObject * _resultobj; |
8873 | wxTextCtrl * _result; | |
f6bcfd97 | 8874 | wxPyTreeCtrl * _arg0; |
1d99702e | 8875 | PyObject * _argo0 = 0; |
efc5f224 | 8876 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8877 | |
8878 | self = self; | |
efc5f224 | 8879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetEditControl",_kwnames,&_argo0)) |
d5c9047a | 8880 | return NULL; |
1d99702e RD |
8881 | if (_argo0) { |
8882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetEditControl. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8885 | return NULL; |
8886 | } | |
8887 | } | |
cf694132 | 8888 | { |
4268f798 | 8889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8890 | _result = (wxTextCtrl *)wxTreeCtrl_GetEditControl(_arg0); |
cf694132 | 8891 | |
4268f798 | 8892 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8893 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8894 | }{ _resultobj = wxPyMake_wxObject(_result); } |
d5c9047a RD |
8895 | return _resultobj; |
8896 | } | |
8897 | ||
8898 | #define wxTreeCtrl_EndEditLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->EndEditLabel(_swigarg0,_swigarg1)) | |
efc5f224 | 8899 | static PyObject *_wrap_wxTreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8900 | PyObject * _resultobj; |
f6bcfd97 | 8901 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8902 | wxTreeItemId * _arg1; |
b1462dfa | 8903 | int _arg2 = (int ) FALSE; |
1d99702e RD |
8904 | PyObject * _argo0 = 0; |
8905 | PyObject * _argo1 = 0; | |
efc5f224 | 8906 | char *_kwnames[] = { "self","item","discardChanges", NULL }; |
d5c9047a RD |
8907 | |
8908 | self = self; | |
b1462dfa | 8909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_EndEditLabel",_kwnames,&_argo0,&_argo1,&_arg2)) |
d5c9047a | 8910 | return NULL; |
1d99702e RD |
8911 | if (_argo0) { |
8912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EndEditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8915 | return NULL; |
8916 | } | |
8917 | } | |
1d99702e RD |
8918 | if (_argo1) { |
8919 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8920 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EndEditLabel. Expected _wxTreeItemId_p."); |
8922 | return NULL; | |
8923 | } | |
8924 | } | |
cf694132 | 8925 | { |
4268f798 | 8926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8927 | wxTreeCtrl_EndEditLabel(_arg0,*_arg1,_arg2); |
cf694132 | 8928 | |
4268f798 | 8929 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8930 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8931 | } Py_INCREF(Py_None); |
d5c9047a | 8932 | _resultobj = Py_None; |
8ab979d7 RD |
8933 | return _resultobj; |
8934 | } | |
8935 | ||
d426c97e RD |
8936 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) |
8937 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8938 | PyObject * _resultobj; | |
f6bcfd97 | 8939 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8940 | wxTreeItemId * _arg1; |
8941 | PyObject * _argo0 = 0; | |
8942 | PyObject * _argo1 = 0; | |
8943 | char *_kwnames[] = { "self","item", NULL }; | |
8944 | ||
8945 | self = self; | |
8946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
8947 | return NULL; | |
8948 | if (_argo0) { | |
8949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8952 | return NULL; |
8953 | } | |
8954 | } | |
8955 | if (_argo1) { | |
8956 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8957 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); | |
8959 | return NULL; | |
8960 | } | |
8961 | } | |
8962 | { | |
4268f798 | 8963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8964 | wxTreeCtrl_SortChildren(_arg0,*_arg1); |
d426c97e | 8965 | |
4268f798 | 8966 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8967 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8968 | } Py_INCREF(Py_None); |
8969 | _resultobj = Py_None; | |
8970 | return _resultobj; | |
8971 | } | |
8972 | ||
b8b8dda7 | 8973 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) |
efc5f224 | 8974 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 | 8975 | PyObject * _resultobj; |
f6bcfd97 | 8976 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 8977 | wxTreeItemId * _arg1; |
b1462dfa | 8978 | int _arg2 = (int ) TRUE; |
1d99702e RD |
8979 | PyObject * _argo0 = 0; |
8980 | PyObject * _argo1 = 0; | |
efc5f224 | 8981 | char *_kwnames[] = { "self","item","bold", NULL }; |
b8b8dda7 RD |
8982 | |
8983 | self = self; | |
b1462dfa | 8984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) |
b8b8dda7 | 8985 | return NULL; |
1d99702e RD |
8986 | if (_argo0) { |
8987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
8990 | return NULL; |
8991 | } | |
8992 | } | |
1d99702e RD |
8993 | if (_argo1) { |
8994 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8995 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
8996 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); |
8997 | return NULL; | |
8998 | } | |
8999 | } | |
cf694132 | 9000 | { |
4268f798 | 9001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9002 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); |
cf694132 | 9003 | |
4268f798 | 9004 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9005 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9006 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
9007 | _resultobj = Py_None; |
9008 | return _resultobj; | |
9009 | } | |
9010 | ||
9011 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
efc5f224 | 9012 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
9013 | PyObject * _resultobj; |
9014 | bool _result; | |
f6bcfd97 | 9015 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9016 | wxTreeItemId * _arg1; |
1d99702e RD |
9017 | PyObject * _argo0 = 0; |
9018 | PyObject * _argo1 = 0; | |
efc5f224 | 9019 | char *_kwnames[] = { "self","item", NULL }; |
b8b8dda7 RD |
9020 | |
9021 | self = self; | |
efc5f224 | 9022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 9023 | return NULL; |
1d99702e RD |
9024 | if (_argo0) { |
9025 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9026 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9028 | return NULL; |
9029 | } | |
9030 | } | |
1d99702e RD |
9031 | if (_argo1) { |
9032 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9033 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
9034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); |
9035 | return NULL; | |
9036 | } | |
9037 | } | |
cf694132 | 9038 | { |
4268f798 | 9039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9040 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); |
cf694132 | 9041 | |
4268f798 | 9042 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9043 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9044 | } _resultobj = Py_BuildValue("i",_result); |
b8b8dda7 RD |
9045 | return _resultobj; |
9046 | } | |
9047 | ||
164b735b | 9048 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
efc5f224 | 9049 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
9050 | PyObject * _resultobj; |
9051 | wxTreeItemId * _result; | |
f6bcfd97 | 9052 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9053 | wxPoint * _arg1; |
164b735b RD |
9054 | int * _arg2; |
9055 | int temp; | |
1d99702e | 9056 | PyObject * _argo0 = 0; |
164b735b | 9057 | wxPoint temp0; |
2f90df85 | 9058 | PyObject * _obj1 = 0; |
efc5f224 | 9059 | char *_kwnames[] = { "self","point", NULL }; |
b8b8dda7 RD |
9060 | char _ptemp[128]; |
9061 | ||
9062 | self = self; | |
164b735b RD |
9063 | { |
9064 | _arg2 = &temp; | |
9065 | } | |
2f90df85 | 9066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 9067 | return NULL; |
1d99702e RD |
9068 | if (_argo0) { |
9069 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9070 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9072 | return NULL; |
9073 | } | |
9074 | } | |
2f90df85 | 9075 | { |
164b735b | 9076 | _arg1 = &temp0; |
2f90df85 | 9077 | if (! wxPoint_helper(_obj1, &_arg1)) |
b8b8dda7 | 9078 | return NULL; |
2f90df85 | 9079 | } |
cf694132 | 9080 | { |
4268f798 | 9081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9082 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); |
cf694132 | 9083 | |
4268f798 | 9084 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9085 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9086 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
b8b8dda7 | 9087 | _resultobj = Py_BuildValue("s",_ptemp); |
164b735b RD |
9088 | { |
9089 | PyObject *o; | |
9090 | o = PyInt_FromLong((long) (*_arg2)); | |
9091 | _resultobj = t_output_helper(_resultobj, o); | |
9092 | } | |
b8b8dda7 RD |
9093 | return _resultobj; |
9094 | } | |
9095 | ||
b7e72427 RD |
9096 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
9097 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9098 | PyObject * _resultobj; | |
f6bcfd97 | 9099 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9100 | wxTreeItemId * _arg1; |
9101 | wxColour * _arg2; | |
9102 | PyObject * _argo0 = 0; | |
9103 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9104 | wxColour temp; |
9105 | PyObject * _obj2 = 0; | |
b7e72427 RD |
9106 | char *_kwnames[] = { "self","item","col", NULL }; |
9107 | ||
9108 | self = self; | |
f6bcfd97 | 9109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9110 | return NULL; |
9111 | if (_argo0) { | |
9112 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9113 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9115 | return NULL; |
9116 | } | |
9117 | } | |
9118 | if (_argo1) { | |
9119 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9120 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); | |
9122 | return NULL; | |
9123 | } | |
9124 | } | |
f6bcfd97 BP |
9125 | { |
9126 | _arg2 = &temp; | |
9127 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9128 | return NULL; |
f6bcfd97 | 9129 | } |
b7e72427 | 9130 | { |
4268f798 | 9131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9132 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); |
b7e72427 | 9133 | |
4268f798 | 9134 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9135 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9136 | } Py_INCREF(Py_None); |
9137 | _resultobj = Py_None; | |
9138 | return _resultobj; | |
9139 | } | |
9140 | ||
9141 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
9142 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9143 | PyObject * _resultobj; | |
f6bcfd97 | 9144 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9145 | wxTreeItemId * _arg1; |
9146 | wxColour * _arg2; | |
9147 | PyObject * _argo0 = 0; | |
9148 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9149 | wxColour temp; |
9150 | PyObject * _obj2 = 0; | |
b7e72427 RD |
9151 | char *_kwnames[] = { "self","item","col", NULL }; |
9152 | ||
9153 | self = self; | |
f6bcfd97 | 9154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9155 | return NULL; |
9156 | if (_argo0) { | |
9157 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9160 | return NULL; |
9161 | } | |
9162 | } | |
9163 | if (_argo1) { | |
9164 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9165 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
9167 | return NULL; | |
9168 | } | |
9169 | } | |
f6bcfd97 BP |
9170 | { |
9171 | _arg2 = &temp; | |
9172 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9173 | return NULL; |
f6bcfd97 | 9174 | } |
b7e72427 | 9175 | { |
4268f798 | 9176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9177 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); |
b7e72427 | 9178 | |
4268f798 | 9179 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9180 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9181 | } Py_INCREF(Py_None); |
9182 | _resultobj = Py_None; | |
9183 | return _resultobj; | |
9184 | } | |
9185 | ||
9186 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
9187 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9188 | PyObject * _resultobj; | |
f6bcfd97 | 9189 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9190 | wxTreeItemId * _arg1; |
9191 | wxFont * _arg2; | |
9192 | PyObject * _argo0 = 0; | |
9193 | PyObject * _argo1 = 0; | |
9194 | PyObject * _argo2 = 0; | |
9195 | char *_kwnames[] = { "self","item","font", NULL }; | |
9196 | ||
9197 | self = self; | |
9198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
9199 | return NULL; | |
9200 | if (_argo0) { | |
9201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9204 | return NULL; |
9205 | } | |
9206 | } | |
9207 | if (_argo1) { | |
9208 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9209 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); | |
9211 | return NULL; | |
9212 | } | |
9213 | } | |
9214 | if (_argo2) { | |
9215 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9216 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
9217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); | |
9218 | return NULL; | |
9219 | } | |
9220 | } | |
9221 | { | |
4268f798 | 9222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9223 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); |
b7e72427 | 9224 | |
4268f798 | 9225 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9226 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9227 | } Py_INCREF(Py_None); |
9228 | _resultobj = Py_None; | |
9229 | return _resultobj; | |
9230 | } | |
9231 | ||
b1462dfa RD |
9232 | #define wxTreeCtrl_SetItemDropHighlight(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemDropHighlight(_swigarg0,_swigarg1)) |
9233 | static PyObject *_wrap_wxTreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9234 | PyObject * _resultobj; | |
f6bcfd97 | 9235 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
9236 | wxTreeItemId * _arg1; |
9237 | int _arg2 = (int ) TRUE; | |
9238 | PyObject * _argo0 = 0; | |
9239 | PyObject * _argo1 = 0; | |
9240 | char *_kwnames[] = { "self","item","highlight", NULL }; | |
9241 | ||
9242 | self = self; | |
9243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemDropHighlight",_kwnames,&_argo0,&_argo1,&_arg2)) | |
9244 | return NULL; | |
9245 | if (_argo0) { | |
9246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemDropHighlight. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
9249 | return NULL; |
9250 | } | |
9251 | } | |
9252 | if (_argo1) { | |
9253 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9254 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemDropHighlight. Expected _wxTreeItemId_p."); | |
9256 | return NULL; | |
9257 | } | |
9258 | } | |
9259 | { | |
4268f798 | 9260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9261 | wxTreeCtrl_SetItemDropHighlight(_arg0,*_arg1,_arg2); |
b1462dfa | 9262 | |
4268f798 | 9263 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9264 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9265 | } Py_INCREF(Py_None); |
9266 | _resultobj = Py_None; | |
9267 | return _resultobj; | |
9268 | } | |
9269 | ||
f6bcfd97 | 9270 | static PyObject * wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,const wxTreeItemId & item,int textOnly) { |
d426c97e | 9271 | wxRect rect; |
164b735b | 9272 | if (self->GetBoundingRect(item, rect, textOnly)) { |
4268f798 | 9273 | wxPyBeginBlockThreads(); |
164b735b RD |
9274 | wxRect* r = new wxRect(rect); |
9275 | PyObject* val = wxPyConstructObject((void*)r, "wxRect"); | |
4268f798 | 9276 | wxPyEndBlockThreads(); |
164b735b RD |
9277 | return val; |
9278 | } | |
d426c97e RD |
9279 | else { |
9280 | Py_INCREF(Py_None); | |
9281 | return Py_None; | |
9282 | } | |
9283 | } | |
9284 | static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9285 | PyObject * _resultobj; | |
9286 | PyObject * _result; | |
f6bcfd97 | 9287 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
9288 | wxTreeItemId * _arg1; |
9289 | int _arg2 = (int ) FALSE; | |
9290 | PyObject * _argo0 = 0; | |
9291 | PyObject * _argo1 = 0; | |
9292 | char *_kwnames[] = { "self","item","textOnly", NULL }; | |
9293 | ||
9294 | self = self; | |
9295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&_arg2)) | |
9296 | return NULL; | |
9297 | if (_argo0) { | |
9298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetBoundingRect. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
9301 | return NULL; |
9302 | } | |
9303 | } | |
9304 | if (_argo1) { | |
9305 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9306 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeItemId_p."); | |
9308 | return NULL; | |
9309 | } | |
9310 | } | |
9311 | { | |
4268f798 | 9312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9313 | _result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(_arg0,*_arg1,_arg2); |
d426c97e | 9314 | |
4268f798 | 9315 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9316 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
9317 | }{ |
9318 | _resultobj = _result; | |
9319 | } | |
9320 | return _resultobj; | |
9321 | } | |
9322 | ||
68320e40 RD |
9323 | static void *SwigwxDirItemDataTowxObject(void *ptr) { |
9324 | wxDirItemData *src; | |
9325 | wxObject *dest; | |
9326 | src = (wxDirItemData *) ptr; | |
9327 | dest = (wxObject *) src; | |
9328 | return (void *) dest; | |
9329 | } | |
9330 | ||
9331 | #define new_wxDirItemData(_swigarg0,_swigarg1,_swigarg2) (new wxDirItemData(_swigarg0,_swigarg1,_swigarg2)) | |
9332 | static PyObject *_wrap_new_wxDirItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9333 | PyObject * _resultobj; | |
9334 | wxDirItemData * _result; | |
9335 | wxString * _arg0; | |
9336 | wxString * _arg1; | |
9337 | bool _arg2; | |
9338 | PyObject * _obj0 = 0; | |
9339 | PyObject * _obj1 = 0; | |
9340 | int tempbool2; | |
9341 | char *_kwnames[] = { "path","name","isDir", NULL }; | |
9342 | char _ptemp[128]; | |
9343 | ||
9344 | self = self; | |
9345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:new_wxDirItemData",_kwnames,&_obj0,&_obj1,&tempbool2)) | |
9346 | return NULL; | |
9347 | { | |
c8bc7bb8 RD |
9348 | _arg0 = wxString_in_helper(_obj0); |
9349 | if (_arg0 == NULL) | |
68320e40 | 9350 | return NULL; |
68320e40 RD |
9351 | } |
9352 | { | |
c8bc7bb8 RD |
9353 | _arg1 = wxString_in_helper(_obj1); |
9354 | if (_arg1 == NULL) | |
68320e40 | 9355 | return NULL; |
68320e40 RD |
9356 | } |
9357 | _arg2 = (bool ) tempbool2; | |
9358 | { | |
9359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9360 | _result = (wxDirItemData *)new_wxDirItemData(*_arg0,*_arg1,_arg2); |
68320e40 RD |
9361 | |
9362 | wxPyEndAllowThreads(__tstate); | |
9363 | if (PyErr_Occurred()) return NULL; | |
9364 | } if (_result) { | |
9365 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirItemData_p"); | |
9366 | _resultobj = Py_BuildValue("s",_ptemp); | |
9367 | } else { | |
9368 | Py_INCREF(Py_None); | |
9369 | _resultobj = Py_None; | |
9370 | } | |
9371 | { | |
9372 | if (_obj0) | |
9373 | delete _arg0; | |
9374 | } | |
9375 | { | |
9376 | if (_obj1) | |
9377 | delete _arg1; | |
9378 | } | |
9379 | return _resultobj; | |
9380 | } | |
9381 | ||
9382 | #define wxDirItemData_SetNewDirName(_swigobj,_swigarg0) (_swigobj->SetNewDirName(_swigarg0)) | |
9383 | static PyObject *_wrap_wxDirItemData_SetNewDirName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9384 | PyObject * _resultobj; | |
9385 | wxDirItemData * _arg0; | |
9386 | wxString * _arg1; | |
9387 | PyObject * _argo0 = 0; | |
9388 | PyObject * _obj1 = 0; | |
9389 | char *_kwnames[] = { "self","path", NULL }; | |
9390 | ||
9391 | self = self; | |
9392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_SetNewDirName",_kwnames,&_argo0,&_obj1)) | |
9393 | return NULL; | |
9394 | if (_argo0) { | |
9395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_SetNewDirName. Expected _wxDirItemData_p."); | |
9398 | return NULL; | |
9399 | } | |
9400 | } | |
9401 | { | |
c8bc7bb8 RD |
9402 | _arg1 = wxString_in_helper(_obj1); |
9403 | if (_arg1 == NULL) | |
68320e40 | 9404 | return NULL; |
68320e40 RD |
9405 | } |
9406 | { | |
9407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9408 | wxDirItemData_SetNewDirName(_arg0,*_arg1); |
68320e40 RD |
9409 | |
9410 | wxPyEndAllowThreads(__tstate); | |
9411 | if (PyErr_Occurred()) return NULL; | |
9412 | } Py_INCREF(Py_None); | |
9413 | _resultobj = Py_None; | |
9414 | { | |
9415 | if (_obj1) | |
9416 | delete _arg1; | |
9417 | } | |
9418 | return _resultobj; | |
9419 | } | |
9420 | ||
9421 | #define wxDirItemData_m_path_set(_swigobj,_swigval) (_swigobj->m_path = *(_swigval),_swigval) | |
9422 | static PyObject *_wrap_wxDirItemData_m_path_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9423 | PyObject * _resultobj; | |
9424 | wxString * _result; | |
9425 | wxDirItemData * _arg0; | |
9426 | wxString * _arg1; | |
9427 | PyObject * _argo0 = 0; | |
9428 | PyObject * _obj1 = 0; | |
9429 | char *_kwnames[] = { "self","m_path", NULL }; | |
9430 | ||
9431 | self = self; | |
9432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_path_set",_kwnames,&_argo0,&_obj1)) | |
9433 | return NULL; | |
9434 | if (_argo0) { | |
9435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_set. Expected _wxDirItemData_p."); | |
9438 | return NULL; | |
9439 | } | |
9440 | } | |
9441 | { | |
c8bc7bb8 RD |
9442 | _arg1 = wxString_in_helper(_obj1); |
9443 | if (_arg1 == NULL) | |
68320e40 | 9444 | return NULL; |
68320e40 RD |
9445 | } |
9446 | { | |
9447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9448 | _result = (wxString *)wxDirItemData_m_path_set(_arg0,_arg1); |
68320e40 RD |
9449 | |
9450 | wxPyEndAllowThreads(__tstate); | |
9451 | if (PyErr_Occurred()) return NULL; | |
9452 | }{ | |
c8bc7bb8 RD |
9453 | #if wxUSE_UNICODE |
9454 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9455 | #else | |
68320e40 | 9456 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9457 | #endif |
68320e40 RD |
9458 | } |
9459 | { | |
9460 | if (_obj1) | |
9461 | delete _arg1; | |
9462 | } | |
9463 | return _resultobj; | |
9464 | } | |
9465 | ||
9466 | #define wxDirItemData_m_path_get(_swigobj) (&_swigobj->m_path) | |
9467 | static PyObject *_wrap_wxDirItemData_m_path_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9468 | PyObject * _resultobj; | |
9469 | wxString * _result; | |
9470 | wxDirItemData * _arg0; | |
9471 | PyObject * _argo0 = 0; | |
9472 | char *_kwnames[] = { "self", NULL }; | |
9473 | ||
9474 | self = self; | |
9475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_path_get",_kwnames,&_argo0)) | |
9476 | return NULL; | |
9477 | if (_argo0) { | |
9478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_get. Expected _wxDirItemData_p."); | |
9481 | return NULL; | |
9482 | } | |
9483 | } | |
9484 | { | |
9485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9486 | _result = (wxString *)wxDirItemData_m_path_get(_arg0); |
68320e40 RD |
9487 | |
9488 | wxPyEndAllowThreads(__tstate); | |
9489 | if (PyErr_Occurred()) return NULL; | |
9490 | }{ | |
c8bc7bb8 RD |
9491 | #if wxUSE_UNICODE |
9492 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9493 | #else | |
68320e40 | 9494 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9495 | #endif |
68320e40 RD |
9496 | } |
9497 | return _resultobj; | |
9498 | } | |
9499 | ||
9500 | #define wxDirItemData_m_name_set(_swigobj,_swigval) (_swigobj->m_name = *(_swigval),_swigval) | |
9501 | static PyObject *_wrap_wxDirItemData_m_name_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9502 | PyObject * _resultobj; | |
9503 | wxString * _result; | |
9504 | wxDirItemData * _arg0; | |
9505 | wxString * _arg1; | |
9506 | PyObject * _argo0 = 0; | |
9507 | PyObject * _obj1 = 0; | |
9508 | char *_kwnames[] = { "self","m_name", NULL }; | |
9509 | ||
9510 | self = self; | |
9511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_name_set",_kwnames,&_argo0,&_obj1)) | |
9512 | return NULL; | |
9513 | if (_argo0) { | |
9514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_set. Expected _wxDirItemData_p."); | |
9517 | return NULL; | |
9518 | } | |
9519 | } | |
9520 | { | |
c8bc7bb8 RD |
9521 | _arg1 = wxString_in_helper(_obj1); |
9522 | if (_arg1 == NULL) | |
68320e40 | 9523 | return NULL; |
68320e40 RD |
9524 | } |
9525 | { | |
9526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9527 | _result = (wxString *)wxDirItemData_m_name_set(_arg0,_arg1); |
68320e40 RD |
9528 | |
9529 | wxPyEndAllowThreads(__tstate); | |
9530 | if (PyErr_Occurred()) return NULL; | |
9531 | }{ | |
c8bc7bb8 RD |
9532 | #if wxUSE_UNICODE |
9533 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9534 | #else | |
68320e40 | 9535 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9536 | #endif |
68320e40 RD |
9537 | } |
9538 | { | |
9539 | if (_obj1) | |
9540 | delete _arg1; | |
9541 | } | |
9542 | return _resultobj; | |
9543 | } | |
9544 | ||
9545 | #define wxDirItemData_m_name_get(_swigobj) (&_swigobj->m_name) | |
9546 | static PyObject *_wrap_wxDirItemData_m_name_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9547 | PyObject * _resultobj; | |
9548 | wxString * _result; | |
9549 | wxDirItemData * _arg0; | |
9550 | PyObject * _argo0 = 0; | |
9551 | char *_kwnames[] = { "self", NULL }; | |
9552 | ||
9553 | self = self; | |
9554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_name_get",_kwnames,&_argo0)) | |
9555 | return NULL; | |
9556 | if (_argo0) { | |
9557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_get. Expected _wxDirItemData_p."); | |
9560 | return NULL; | |
9561 | } | |
9562 | } | |
9563 | { | |
9564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9565 | _result = (wxString *)wxDirItemData_m_name_get(_arg0); |
68320e40 RD |
9566 | |
9567 | wxPyEndAllowThreads(__tstate); | |
9568 | if (PyErr_Occurred()) return NULL; | |
9569 | }{ | |
c8bc7bb8 RD |
9570 | #if wxUSE_UNICODE |
9571 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9572 | #else | |
68320e40 | 9573 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9574 | #endif |
68320e40 RD |
9575 | } |
9576 | return _resultobj; | |
9577 | } | |
9578 | ||
9579 | #define wxDirItemData_m_isHidden_set(_swigobj,_swigval) (_swigobj->m_isHidden = _swigval,_swigval) | |
9580 | static PyObject *_wrap_wxDirItemData_m_isHidden_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9581 | PyObject * _resultobj; | |
9582 | bool _result; | |
9583 | wxDirItemData * _arg0; | |
9584 | bool _arg1; | |
9585 | PyObject * _argo0 = 0; | |
9586 | int tempbool1; | |
9587 | char *_kwnames[] = { "self","m_isHidden", NULL }; | |
9588 | ||
9589 | self = self; | |
9590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isHidden_set",_kwnames,&_argo0,&tempbool1)) | |
9591 | return NULL; | |
9592 | if (_argo0) { | |
9593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_set. Expected _wxDirItemData_p."); | |
9596 | return NULL; | |
9597 | } | |
9598 | } | |
9599 | _arg1 = (bool ) tempbool1; | |
9600 | { | |
9601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9602 | _result = (bool )wxDirItemData_m_isHidden_set(_arg0,_arg1); |
68320e40 RD |
9603 | |
9604 | wxPyEndAllowThreads(__tstate); | |
9605 | if (PyErr_Occurred()) return NULL; | |
9606 | } _resultobj = Py_BuildValue("i",_result); | |
9607 | return _resultobj; | |
9608 | } | |
9609 | ||
9610 | #define wxDirItemData_m_isHidden_get(_swigobj) ((bool ) _swigobj->m_isHidden) | |
9611 | static PyObject *_wrap_wxDirItemData_m_isHidden_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9612 | PyObject * _resultobj; | |
9613 | bool _result; | |
9614 | wxDirItemData * _arg0; | |
9615 | PyObject * _argo0 = 0; | |
9616 | char *_kwnames[] = { "self", NULL }; | |
9617 | ||
9618 | self = self; | |
9619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isHidden_get",_kwnames,&_argo0)) | |
9620 | return NULL; | |
9621 | if (_argo0) { | |
9622 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9623 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9624 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_get. Expected _wxDirItemData_p."); | |
9625 | return NULL; | |
9626 | } | |
9627 | } | |
9628 | { | |
9629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9630 | _result = (bool )wxDirItemData_m_isHidden_get(_arg0); |
68320e40 RD |
9631 | |
9632 | wxPyEndAllowThreads(__tstate); | |
9633 | if (PyErr_Occurred()) return NULL; | |
9634 | } _resultobj = Py_BuildValue("i",_result); | |
9635 | return _resultobj; | |
9636 | } | |
9637 | ||
9638 | #define wxDirItemData_m_isExpanded_set(_swigobj,_swigval) (_swigobj->m_isExpanded = _swigval,_swigval) | |
9639 | static PyObject *_wrap_wxDirItemData_m_isExpanded_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9640 | PyObject * _resultobj; | |
9641 | bool _result; | |
9642 | wxDirItemData * _arg0; | |
9643 | bool _arg1; | |
9644 | PyObject * _argo0 = 0; | |
9645 | int tempbool1; | |
9646 | char *_kwnames[] = { "self","m_isExpanded", NULL }; | |
9647 | ||
9648 | self = self; | |
9649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isExpanded_set",_kwnames,&_argo0,&tempbool1)) | |
9650 | return NULL; | |
9651 | if (_argo0) { | |
9652 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9653 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_set. Expected _wxDirItemData_p."); | |
9655 | return NULL; | |
9656 | } | |
9657 | } | |
9658 | _arg1 = (bool ) tempbool1; | |
9659 | { | |
9660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9661 | _result = (bool )wxDirItemData_m_isExpanded_set(_arg0,_arg1); |
68320e40 RD |
9662 | |
9663 | wxPyEndAllowThreads(__tstate); | |
9664 | if (PyErr_Occurred()) return NULL; | |
9665 | } _resultobj = Py_BuildValue("i",_result); | |
9666 | return _resultobj; | |
9667 | } | |
9668 | ||
9669 | #define wxDirItemData_m_isExpanded_get(_swigobj) ((bool ) _swigobj->m_isExpanded) | |
9670 | static PyObject *_wrap_wxDirItemData_m_isExpanded_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9671 | PyObject * _resultobj; | |
9672 | bool _result; | |
9673 | wxDirItemData * _arg0; | |
9674 | PyObject * _argo0 = 0; | |
9675 | char *_kwnames[] = { "self", NULL }; | |
9676 | ||
9677 | self = self; | |
9678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isExpanded_get",_kwnames,&_argo0)) | |
9679 | return NULL; | |
9680 | if (_argo0) { | |
9681 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9682 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_get. Expected _wxDirItemData_p."); | |
9684 | return NULL; | |
9685 | } | |
9686 | } | |
9687 | { | |
9688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9689 | _result = (bool )wxDirItemData_m_isExpanded_get(_arg0); |
68320e40 RD |
9690 | |
9691 | wxPyEndAllowThreads(__tstate); | |
9692 | if (PyErr_Occurred()) return NULL; | |
9693 | } _resultobj = Py_BuildValue("i",_result); | |
9694 | return _resultobj; | |
9695 | } | |
9696 | ||
9697 | #define wxDirItemData_m_isDir_set(_swigobj,_swigval) (_swigobj->m_isDir = _swigval,_swigval) | |
9698 | static PyObject *_wrap_wxDirItemData_m_isDir_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9699 | PyObject * _resultobj; | |
9700 | bool _result; | |
9701 | wxDirItemData * _arg0; | |
9702 | bool _arg1; | |
9703 | PyObject * _argo0 = 0; | |
9704 | int tempbool1; | |
9705 | char *_kwnames[] = { "self","m_isDir", NULL }; | |
9706 | ||
9707 | self = self; | |
9708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isDir_set",_kwnames,&_argo0,&tempbool1)) | |
9709 | return NULL; | |
9710 | if (_argo0) { | |
9711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_set. Expected _wxDirItemData_p."); | |
9714 | return NULL; | |
9715 | } | |
9716 | } | |
9717 | _arg1 = (bool ) tempbool1; | |
9718 | { | |
9719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9720 | _result = (bool )wxDirItemData_m_isDir_set(_arg0,_arg1); |
68320e40 RD |
9721 | |
9722 | wxPyEndAllowThreads(__tstate); | |
9723 | if (PyErr_Occurred()) return NULL; | |
9724 | } _resultobj = Py_BuildValue("i",_result); | |
9725 | return _resultobj; | |
9726 | } | |
9727 | ||
9728 | #define wxDirItemData_m_isDir_get(_swigobj) ((bool ) _swigobj->m_isDir) | |
9729 | static PyObject *_wrap_wxDirItemData_m_isDir_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9730 | PyObject * _resultobj; | |
9731 | bool _result; | |
9732 | wxDirItemData * _arg0; | |
9733 | PyObject * _argo0 = 0; | |
9734 | char *_kwnames[] = { "self", NULL }; | |
9735 | ||
9736 | self = self; | |
9737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isDir_get",_kwnames,&_argo0)) | |
9738 | return NULL; | |
9739 | if (_argo0) { | |
9740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_get. Expected _wxDirItemData_p."); | |
9743 | return NULL; | |
9744 | } | |
9745 | } | |
9746 | { | |
9747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9748 | _result = (bool )wxDirItemData_m_isDir_get(_arg0); |
68320e40 RD |
9749 | |
9750 | wxPyEndAllowThreads(__tstate); | |
9751 | if (PyErr_Occurred()) return NULL; | |
9752 | } _resultobj = Py_BuildValue("i",_result); | |
9753 | return _resultobj; | |
9754 | } | |
9755 | ||
9756 | static void *SwigwxGenericDirCtrlTowxControl(void *ptr) { | |
9757 | wxGenericDirCtrl *src; | |
9758 | wxControl *dest; | |
9759 | src = (wxGenericDirCtrl *) ptr; | |
9760 | dest = (wxControl *) src; | |
9761 | return (void *) dest; | |
9762 | } | |
9763 | ||
9764 | static void *SwigwxGenericDirCtrlTowxWindow(void *ptr) { | |
9765 | wxGenericDirCtrl *src; | |
9766 | wxWindow *dest; | |
9767 | src = (wxGenericDirCtrl *) ptr; | |
9768 | dest = (wxWindow *) src; | |
9769 | return (void *) dest; | |
9770 | } | |
9771 | ||
9772 | static void *SwigwxGenericDirCtrlTowxEvtHandler(void *ptr) { | |
9773 | wxGenericDirCtrl *src; | |
9774 | wxEvtHandler *dest; | |
9775 | src = (wxGenericDirCtrl *) ptr; | |
9776 | dest = (wxEvtHandler *) src; | |
9777 | return (void *) dest; | |
9778 | } | |
9779 | ||
9780 | static void *SwigwxGenericDirCtrlTowxObject(void *ptr) { | |
9781 | wxGenericDirCtrl *src; | |
9782 | wxObject *dest; | |
9783 | src = (wxGenericDirCtrl *) ptr; | |
9784 | dest = (wxObject *) src; | |
9785 | return (void *) dest; | |
9786 | } | |
9787 | ||
9788 | #define new_wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
9789 | static PyObject *_wrap_new_wxGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9790 | PyObject * _resultobj; | |
9791 | wxGenericDirCtrl * _result; | |
9792 | wxWindow * _arg0; | |
9793 | wxWindowID _arg1 = (wxWindowID ) -1; | |
137b5242 | 9794 | wxString * _arg2 = (wxString *) &wxPyDirDialogDefaultFolderStr; |
68320e40 RD |
9795 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
9796 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
9797 | long _arg5 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
137b5242 | 9798 | wxString * _arg6 = (wxString *) &wxPyEmptyString; |
68320e40 | 9799 | int _arg7 = (int ) 0; |
137b5242 | 9800 | wxString * _arg8 = (wxString *) &wxPy_TreeCtrlNameStr; |
68320e40 | 9801 | PyObject * _argo0 = 0; |
137b5242 | 9802 | PyObject * _obj2 = 0; |
68320e40 RD |
9803 | wxPoint temp; |
9804 | PyObject * _obj3 = 0; | |
9805 | wxSize temp0; | |
9806 | PyObject * _obj4 = 0; | |
137b5242 RD |
9807 | PyObject * _obj6 = 0; |
9808 | PyObject * _obj8 = 0; | |
68320e40 RD |
9809 | char *_kwnames[] = { "parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; |
9810 | char _ptemp[128]; | |
9811 | ||
9812 | self = self; | |
137b5242 | 9813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOOlOiO:new_wxGenericDirCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6,&_arg7,&_obj8)) |
68320e40 RD |
9814 | return NULL; |
9815 | if (_argo0) { | |
9816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGenericDirCtrl. Expected _wxWindow_p."); | |
9819 | return NULL; | |
9820 | } | |
9821 | } | |
137b5242 RD |
9822 | if (_obj2) |
9823 | { | |
9824 | _arg2 = wxString_in_helper(_obj2); | |
9825 | if (_arg2 == NULL) | |
9826 | return NULL; | |
9827 | } | |
68320e40 RD |
9828 | if (_obj3) |
9829 | { | |
9830 | _arg3 = &temp; | |
9831 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9832 | return NULL; | |
9833 | } | |
9834 | if (_obj4) | |
9835 | { | |
9836 | _arg4 = &temp0; | |
9837 | if (! wxSize_helper(_obj4, &_arg4)) | |
9838 | return NULL; | |
137b5242 RD |
9839 | } |
9840 | if (_obj6) | |
9841 | { | |
9842 | _arg6 = wxString_in_helper(_obj6); | |
9843 | if (_arg6 == NULL) | |
9844 | return NULL; | |
9845 | } | |
9846 | if (_obj8) | |
9847 | { | |
9848 | _arg8 = wxString_in_helper(_obj8); | |
9849 | if (_arg8 == NULL) | |
9850 | return NULL; | |
68320e40 RD |
9851 | } |
9852 | { | |
9853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
137b5242 | 9854 | _result = (wxGenericDirCtrl *)new_wxGenericDirCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7,*_arg8); |
68320e40 RD |
9855 | |
9856 | wxPyEndAllowThreads(__tstate); | |
9857 | if (PyErr_Occurred()) return NULL; | |
9858 | } if (_result) { | |
9859 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
9860 | _resultobj = Py_BuildValue("s",_ptemp); | |
9861 | } else { | |
9862 | Py_INCREF(Py_None); | |
9863 | _resultobj = Py_None; | |
9864 | } | |
137b5242 RD |
9865 | { |
9866 | if (_obj2) | |
9867 | delete _arg2; | |
9868 | } | |
9869 | { | |
9870 | if (_obj6) | |
9871 | delete _arg6; | |
9872 | } | |
9873 | { | |
9874 | if (_obj8) | |
9875 | delete _arg8; | |
9876 | } | |
68320e40 RD |
9877 | return _resultobj; |
9878 | } | |
9879 | ||
9880 | #define new_wxPreGenericDirCtrl() (new wxGenericDirCtrl()) | |
9881 | static PyObject *_wrap_new_wxPreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9882 | PyObject * _resultobj; | |
9883 | wxGenericDirCtrl * _result; | |
9884 | char *_kwnames[] = { NULL }; | |
9885 | char _ptemp[128]; | |
9886 | ||
9887 | self = self; | |
9888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGenericDirCtrl",_kwnames)) | |
9889 | return NULL; | |
9890 | { | |
9891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9892 | _result = (wxGenericDirCtrl *)new_wxPreGenericDirCtrl(); |
68320e40 RD |
9893 | |
9894 | wxPyEndAllowThreads(__tstate); | |
9895 | if (PyErr_Occurred()) return NULL; | |
9896 | } if (_result) { | |
9897 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
9898 | _resultobj = Py_BuildValue("s",_ptemp); | |
9899 | } else { | |
9900 | Py_INCREF(Py_None); | |
9901 | _resultobj = Py_None; | |
9902 | } | |
9903 | return _resultobj; | |
9904 | } | |
9905 | ||
9906 | #define wxGenericDirCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
9907 | static PyObject *_wrap_wxGenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9908 | PyObject * _resultobj; | |
9909 | bool _result; | |
9910 | wxGenericDirCtrl * _arg0; | |
9911 | wxWindow * _arg1; | |
9912 | wxWindowID _arg2 = (wxWindowID ) -1; | |
137b5242 | 9913 | wxString * _arg3 = (wxString *) &wxPyDirDialogDefaultFolderStr; |
68320e40 RD |
9914 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
9915 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
9916 | long _arg6 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
137b5242 | 9917 | wxString * _arg7 = (wxString *) &wxPyEmptyString; |
68320e40 | 9918 | int _arg8 = (int ) 0; |
137b5242 | 9919 | wxString * _arg9 = (wxString *) &wxPy_TreeCtrlNameStr; |
68320e40 RD |
9920 | PyObject * _argo0 = 0; |
9921 | PyObject * _argo1 = 0; | |
137b5242 | 9922 | PyObject * _obj3 = 0; |
68320e40 RD |
9923 | wxPoint temp; |
9924 | PyObject * _obj4 = 0; | |
9925 | wxSize temp0; | |
9926 | PyObject * _obj5 = 0; | |
137b5242 RD |
9927 | PyObject * _obj7 = 0; |
9928 | PyObject * _obj9 = 0; | |
68320e40 RD |
9929 | char *_kwnames[] = { "self","parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; |
9930 | ||
9931 | self = self; | |
137b5242 | 9932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOOlOiO:wxGenericDirCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_obj7,&_arg8,&_obj9)) |
68320e40 RD |
9933 | return NULL; |
9934 | if (_argo0) { | |
9935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
9937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
9938 | return NULL; | |
9939 | } | |
9940 | } | |
9941 | if (_argo1) { | |
9942 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9943 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGenericDirCtrl_Create. Expected _wxWindow_p."); | |
9945 | return NULL; | |
9946 | } | |
9947 | } | |
137b5242 RD |
9948 | if (_obj3) |
9949 | { | |
9950 | _arg3 = wxString_in_helper(_obj3); | |
9951 | if (_arg3 == NULL) | |
9952 | return NULL; | |
9953 | } | |
68320e40 RD |
9954 | if (_obj4) |
9955 | { | |
9956 | _arg4 = &temp; | |
9957 | if (! wxPoint_helper(_obj4, &_arg4)) | |
9958 | return NULL; | |
9959 | } | |
9960 | if (_obj5) | |
9961 | { | |
9962 | _arg5 = &temp0; | |
9963 | if (! wxSize_helper(_obj5, &_arg5)) | |
9964 | return NULL; | |
137b5242 RD |
9965 | } |
9966 | if (_obj7) | |
9967 | { | |
9968 | _arg7 = wxString_in_helper(_obj7); | |
9969 | if (_arg7 == NULL) | |
9970 | return NULL; | |
9971 | } | |
9972 | if (_obj9) | |
9973 | { | |
9974 | _arg9 = wxString_in_helper(_obj9); | |
9975 | if (_arg9 == NULL) | |
9976 | return NULL; | |
68320e40 RD |
9977 | } |
9978 | { | |
9979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
137b5242 | 9980 | _result = (bool )wxGenericDirCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8,*_arg9); |
68320e40 RD |
9981 | |
9982 | wxPyEndAllowThreads(__tstate); | |
9983 | if (PyErr_Occurred()) return NULL; | |
9984 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
9985 | { |
9986 | if (_obj3) | |
9987 | delete _arg3; | |
9988 | } | |
9989 | { | |
9990 | if (_obj7) | |
9991 | delete _arg7; | |
9992 | } | |
9993 | { | |
9994 | if (_obj9) | |
9995 | delete _arg9; | |
9996 | } | |
68320e40 RD |
9997 | return _resultobj; |
9998 | } | |
9999 | ||
10000 | #define wxGenericDirCtrl_ExpandPath(_swigobj,_swigarg0) (_swigobj->ExpandPath(_swigarg0)) | |
10001 | static PyObject *_wrap_wxGenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10002 | PyObject * _resultobj; | |
10003 | bool _result; | |
10004 | wxGenericDirCtrl * _arg0; | |
10005 | wxString * _arg1; | |
10006 | PyObject * _argo0 = 0; | |
10007 | PyObject * _obj1 = 0; | |
10008 | char *_kwnames[] = { "self","path", NULL }; | |
10009 | ||
10010 | self = self; | |
10011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_ExpandPath",_kwnames,&_argo0,&_obj1)) | |
10012 | return NULL; | |
10013 | if (_argo0) { | |
10014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ExpandPath. Expected _wxGenericDirCtrl_p."); | |
10017 | return NULL; | |
10018 | } | |
10019 | } | |
10020 | { | |
c8bc7bb8 RD |
10021 | _arg1 = wxString_in_helper(_obj1); |
10022 | if (_arg1 == NULL) | |
68320e40 | 10023 | return NULL; |
68320e40 RD |
10024 | } |
10025 | { | |
10026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10027 | _result = (bool )wxGenericDirCtrl_ExpandPath(_arg0,*_arg1); |
68320e40 RD |
10028 | |
10029 | wxPyEndAllowThreads(__tstate); | |
10030 | if (PyErr_Occurred()) return NULL; | |
10031 | } _resultobj = Py_BuildValue("i",_result); | |
10032 | { | |
10033 | if (_obj1) | |
10034 | delete _arg1; | |
10035 | } | |
10036 | return _resultobj; | |
10037 | } | |
10038 | ||
10039 | #define wxGenericDirCtrl_GetDefaultPath(_swigobj) (_swigobj->GetDefaultPath()) | |
10040 | static PyObject *_wrap_wxGenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10041 | PyObject * _resultobj; | |
10042 | wxString * _result; | |
10043 | wxGenericDirCtrl * _arg0; | |
10044 | PyObject * _argo0 = 0; | |
10045 | char *_kwnames[] = { "self", NULL }; | |
10046 | ||
10047 | self = self; | |
10048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetDefaultPath",_kwnames,&_argo0)) | |
10049 | return NULL; | |
10050 | if (_argo0) { | |
10051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
10054 | return NULL; | |
10055 | } | |
10056 | } | |
10057 | { | |
10058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10059 | _result = new wxString (wxGenericDirCtrl_GetDefaultPath(_arg0)); |
68320e40 RD |
10060 | |
10061 | wxPyEndAllowThreads(__tstate); | |
10062 | if (PyErr_Occurred()) return NULL; | |
10063 | }{ | |
c8bc7bb8 RD |
10064 | #if wxUSE_UNICODE |
10065 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10066 | #else | |
68320e40 | 10067 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10068 | #endif |
68320e40 RD |
10069 | } |
10070 | { | |
10071 | delete _result; | |
10072 | } | |
10073 | return _resultobj; | |
10074 | } | |
10075 | ||
10076 | #define wxGenericDirCtrl_SetDefaultPath(_swigobj,_swigarg0) (_swigobj->SetDefaultPath(_swigarg0)) | |
10077 | static PyObject *_wrap_wxGenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10078 | PyObject * _resultobj; | |
10079 | wxGenericDirCtrl * _arg0; | |
10080 | wxString * _arg1; | |
10081 | PyObject * _argo0 = 0; | |
10082 | PyObject * _obj1 = 0; | |
10083 | char *_kwnames[] = { "self","path", NULL }; | |
10084 | ||
10085 | self = self; | |
10086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetDefaultPath",_kwnames,&_argo0,&_obj1)) | |
10087 | return NULL; | |
10088 | if (_argo0) { | |
10089 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10090 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
10092 | return NULL; | |
10093 | } | |
10094 | } | |
10095 | { | |
c8bc7bb8 RD |
10096 | _arg1 = wxString_in_helper(_obj1); |
10097 | if (_arg1 == NULL) | |
68320e40 | 10098 | return NULL; |
68320e40 RD |
10099 | } |
10100 | { | |
10101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10102 | wxGenericDirCtrl_SetDefaultPath(_arg0,*_arg1); |
68320e40 RD |
10103 | |
10104 | wxPyEndAllowThreads(__tstate); | |
10105 | if (PyErr_Occurred()) return NULL; | |
10106 | } Py_INCREF(Py_None); | |
10107 | _resultobj = Py_None; | |
10108 | { | |
10109 | if (_obj1) | |
10110 | delete _arg1; | |
10111 | } | |
10112 | return _resultobj; | |
10113 | } | |
10114 | ||
10115 | #define wxGenericDirCtrl_GetPath(_swigobj) (_swigobj->GetPath()) | |
10116 | static PyObject *_wrap_wxGenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10117 | PyObject * _resultobj; | |
10118 | wxString * _result; | |
10119 | wxGenericDirCtrl * _arg0; | |
10120 | PyObject * _argo0 = 0; | |
10121 | char *_kwnames[] = { "self", NULL }; | |
10122 | ||
10123 | self = self; | |
10124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetPath",_kwnames,&_argo0)) | |
10125 | return NULL; | |
10126 | if (_argo0) { | |
10127 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10128 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10129 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetPath. Expected _wxGenericDirCtrl_p."); | |
10130 | return NULL; | |
10131 | } | |
10132 | } | |
10133 | { | |
10134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10135 | _result = new wxString (wxGenericDirCtrl_GetPath(_arg0)); |
68320e40 RD |
10136 | |
10137 | wxPyEndAllowThreads(__tstate); | |
10138 | if (PyErr_Occurred()) return NULL; | |
10139 | }{ | |
c8bc7bb8 RD |
10140 | #if wxUSE_UNICODE |
10141 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10142 | #else | |
68320e40 | 10143 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10144 | #endif |
68320e40 RD |
10145 | } |
10146 | { | |
10147 | delete _result; | |
10148 | } | |
10149 | return _resultobj; | |
10150 | } | |
10151 | ||
10152 | #define wxGenericDirCtrl_GetFilePath(_swigobj) (_swigobj->GetFilePath()) | |
10153 | static PyObject *_wrap_wxGenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10154 | PyObject * _resultobj; | |
10155 | wxString * _result; | |
10156 | wxGenericDirCtrl * _arg0; | |
10157 | PyObject * _argo0 = 0; | |
10158 | char *_kwnames[] = { "self", NULL }; | |
10159 | ||
10160 | self = self; | |
10161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilePath",_kwnames,&_argo0)) | |
10162 | return NULL; | |
10163 | if (_argo0) { | |
10164 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10165 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilePath. Expected _wxGenericDirCtrl_p."); | |
10167 | return NULL; | |
10168 | } | |
10169 | } | |
10170 | { | |
10171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10172 | _result = new wxString (wxGenericDirCtrl_GetFilePath(_arg0)); |
68320e40 RD |
10173 | |
10174 | wxPyEndAllowThreads(__tstate); | |
10175 | if (PyErr_Occurred()) return NULL; | |
10176 | }{ | |
c8bc7bb8 RD |
10177 | #if wxUSE_UNICODE |
10178 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10179 | #else | |
68320e40 | 10180 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10181 | #endif |
68320e40 RD |
10182 | } |
10183 | { | |
10184 | delete _result; | |
10185 | } | |
10186 | return _resultobj; | |
10187 | } | |
10188 | ||
10189 | #define wxGenericDirCtrl_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0)) | |
10190 | static PyObject *_wrap_wxGenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10191 | PyObject * _resultobj; | |
10192 | wxGenericDirCtrl * _arg0; | |
10193 | wxString * _arg1; | |
10194 | PyObject * _argo0 = 0; | |
10195 | PyObject * _obj1 = 0; | |
10196 | char *_kwnames[] = { "self","path", NULL }; | |
10197 | ||
10198 | self = self; | |
10199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetPath",_kwnames,&_argo0,&_obj1)) | |
10200 | return NULL; | |
10201 | if (_argo0) { | |
10202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetPath. Expected _wxGenericDirCtrl_p."); | |
10205 | return NULL; | |
10206 | } | |
10207 | } | |
10208 | { | |
c8bc7bb8 RD |
10209 | _arg1 = wxString_in_helper(_obj1); |
10210 | if (_arg1 == NULL) | |
68320e40 | 10211 | return NULL; |
68320e40 RD |
10212 | } |
10213 | { | |
10214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10215 | wxGenericDirCtrl_SetPath(_arg0,*_arg1); |
68320e40 RD |
10216 | |
10217 | wxPyEndAllowThreads(__tstate); | |
10218 | if (PyErr_Occurred()) return NULL; | |
10219 | } Py_INCREF(Py_None); | |
10220 | _resultobj = Py_None; | |
10221 | { | |
10222 | if (_obj1) | |
10223 | delete _arg1; | |
10224 | } | |
10225 | return _resultobj; | |
10226 | } | |
10227 | ||
10228 | #define wxGenericDirCtrl_ShowHidden(_swigobj,_swigarg0) (_swigobj->ShowHidden(_swigarg0)) | |
10229 | static PyObject *_wrap_wxGenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10230 | PyObject * _resultobj; | |
10231 | wxGenericDirCtrl * _arg0; | |
10232 | bool _arg1; | |
10233 | PyObject * _argo0 = 0; | |
10234 | int tempbool1; | |
10235 | char *_kwnames[] = { "self","show", NULL }; | |
10236 | ||
10237 | self = self; | |
10238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_ShowHidden",_kwnames,&_argo0,&tempbool1)) | |
10239 | return NULL; | |
10240 | if (_argo0) { | |
10241 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10242 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ShowHidden. Expected _wxGenericDirCtrl_p."); | |
10244 | return NULL; | |
10245 | } | |
10246 | } | |
10247 | _arg1 = (bool ) tempbool1; | |
10248 | { | |
10249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10250 | wxGenericDirCtrl_ShowHidden(_arg0,_arg1); |
68320e40 RD |
10251 | |
10252 | wxPyEndAllowThreads(__tstate); | |
10253 | if (PyErr_Occurred()) return NULL; | |
10254 | } Py_INCREF(Py_None); | |
10255 | _resultobj = Py_None; | |
10256 | return _resultobj; | |
10257 | } | |
10258 | ||
10259 | #define wxGenericDirCtrl_GetShowHidden(_swigobj) (_swigobj->GetShowHidden()) | |
10260 | static PyObject *_wrap_wxGenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10261 | PyObject * _resultobj; | |
10262 | bool _result; | |
10263 | wxGenericDirCtrl * _arg0; | |
10264 | PyObject * _argo0 = 0; | |
10265 | char *_kwnames[] = { "self", NULL }; | |
10266 | ||
10267 | self = self; | |
10268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetShowHidden",_kwnames,&_argo0)) | |
10269 | return NULL; | |
10270 | if (_argo0) { | |
10271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetShowHidden. Expected _wxGenericDirCtrl_p."); | |
10274 | return NULL; | |
10275 | } | |
10276 | } | |
10277 | { | |
10278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10279 | _result = (bool )wxGenericDirCtrl_GetShowHidden(_arg0); |
68320e40 RD |
10280 | |
10281 | wxPyEndAllowThreads(__tstate); | |
10282 | if (PyErr_Occurred()) return NULL; | |
10283 | } _resultobj = Py_BuildValue("i",_result); | |
10284 | return _resultobj; | |
10285 | } | |
10286 | ||
10287 | #define wxGenericDirCtrl_GetFilter(_swigobj) (_swigobj->GetFilter()) | |
10288 | static PyObject *_wrap_wxGenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10289 | PyObject * _resultobj; | |
10290 | wxString * _result; | |
10291 | wxGenericDirCtrl * _arg0; | |
10292 | PyObject * _argo0 = 0; | |
10293 | char *_kwnames[] = { "self", NULL }; | |
10294 | ||
10295 | self = self; | |
10296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilter",_kwnames,&_argo0)) | |
10297 | return NULL; | |
10298 | if (_argo0) { | |
10299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilter. Expected _wxGenericDirCtrl_p."); | |
10302 | return NULL; | |
10303 | } | |
10304 | } | |
10305 | { | |
10306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10307 | _result = new wxString (wxGenericDirCtrl_GetFilter(_arg0)); |
68320e40 RD |
10308 | |
10309 | wxPyEndAllowThreads(__tstate); | |
10310 | if (PyErr_Occurred()) return NULL; | |
10311 | }{ | |
c8bc7bb8 RD |
10312 | #if wxUSE_UNICODE |
10313 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10314 | #else | |
68320e40 | 10315 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10316 | #endif |
68320e40 RD |
10317 | } |
10318 | { | |
10319 | delete _result; | |
10320 | } | |
10321 | return _resultobj; | |
10322 | } | |
10323 | ||
10324 | #define wxGenericDirCtrl_SetFilter(_swigobj,_swigarg0) (_swigobj->SetFilter(_swigarg0)) | |
10325 | static PyObject *_wrap_wxGenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10326 | PyObject * _resultobj; | |
10327 | wxGenericDirCtrl * _arg0; | |
10328 | wxString * _arg1; | |
10329 | PyObject * _argo0 = 0; | |
10330 | PyObject * _obj1 = 0; | |
10331 | char *_kwnames[] = { "self","filter", NULL }; | |
10332 | ||
10333 | self = self; | |
10334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetFilter",_kwnames,&_argo0,&_obj1)) | |
10335 | return NULL; | |
10336 | if (_argo0) { | |
10337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilter. Expected _wxGenericDirCtrl_p."); | |
10340 | return NULL; | |
10341 | } | |
10342 | } | |
10343 | { | |
c8bc7bb8 RD |
10344 | _arg1 = wxString_in_helper(_obj1); |
10345 | if (_arg1 == NULL) | |
68320e40 | 10346 | return NULL; |
68320e40 RD |
10347 | } |
10348 | { | |
10349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10350 | wxGenericDirCtrl_SetFilter(_arg0,*_arg1); |
68320e40 RD |
10351 | |
10352 | wxPyEndAllowThreads(__tstate); | |
10353 | if (PyErr_Occurred()) return NULL; | |
10354 | } Py_INCREF(Py_None); | |
10355 | _resultobj = Py_None; | |
10356 | { | |
10357 | if (_obj1) | |
10358 | delete _arg1; | |
10359 | } | |
10360 | return _resultobj; | |
10361 | } | |
10362 | ||
10363 | #define wxGenericDirCtrl_GetFilterIndex(_swigobj) (_swigobj->GetFilterIndex()) | |
10364 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10365 | PyObject * _resultobj; | |
10366 | int _result; | |
10367 | wxGenericDirCtrl * _arg0; | |
10368 | PyObject * _argo0 = 0; | |
10369 | char *_kwnames[] = { "self", NULL }; | |
10370 | ||
10371 | self = self; | |
10372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterIndex",_kwnames,&_argo0)) | |
10373 | return NULL; | |
10374 | if (_argo0) { | |
10375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10378 | return NULL; | |
10379 | } | |
10380 | } | |
10381 | { | |
10382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10383 | _result = (int )wxGenericDirCtrl_GetFilterIndex(_arg0); |
68320e40 RD |
10384 | |
10385 | wxPyEndAllowThreads(__tstate); | |
10386 | if (PyErr_Occurred()) return NULL; | |
10387 | } _resultobj = Py_BuildValue("i",_result); | |
10388 | return _resultobj; | |
10389 | } | |
10390 | ||
10391 | #define wxGenericDirCtrl_SetFilterIndex(_swigobj,_swigarg0) (_swigobj->SetFilterIndex(_swigarg0)) | |
10392 | static PyObject *_wrap_wxGenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10393 | PyObject * _resultobj; | |
10394 | wxGenericDirCtrl * _arg0; | |
10395 | int _arg1; | |
10396 | PyObject * _argo0 = 0; | |
10397 | char *_kwnames[] = { "self","n", NULL }; | |
10398 | ||
10399 | self = self; | |
10400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_SetFilterIndex",_kwnames,&_argo0,&_arg1)) | |
10401 | return NULL; | |
10402 | if (_argo0) { | |
10403 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10404 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10406 | return NULL; | |
10407 | } | |
10408 | } | |
10409 | { | |
10410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10411 | wxGenericDirCtrl_SetFilterIndex(_arg0,_arg1); |
68320e40 RD |
10412 | |
10413 | wxPyEndAllowThreads(__tstate); | |
10414 | if (PyErr_Occurred()) return NULL; | |
10415 | } Py_INCREF(Py_None); | |
10416 | _resultobj = Py_None; | |
10417 | return _resultobj; | |
10418 | } | |
10419 | ||
10420 | #define wxGenericDirCtrl_GetRootId(_swigobj) (_swigobj->GetRootId()) | |
10421 | static PyObject *_wrap_wxGenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10422 | PyObject * _resultobj; | |
10423 | wxTreeItemId * _result; | |
10424 | wxGenericDirCtrl * _arg0; | |
10425 | PyObject * _argo0 = 0; | |
10426 | char *_kwnames[] = { "self", NULL }; | |
10427 | char _ptemp[128]; | |
10428 | ||
10429 | self = self; | |
10430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetRootId",_kwnames,&_argo0)) | |
10431 | return NULL; | |
10432 | if (_argo0) { | |
10433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetRootId. Expected _wxGenericDirCtrl_p."); | |
10436 | return NULL; | |
10437 | } | |
10438 | } | |
10439 | { | |
10440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10441 | _result = new wxTreeItemId (wxGenericDirCtrl_GetRootId(_arg0)); |
68320e40 RD |
10442 | |
10443 | wxPyEndAllowThreads(__tstate); | |
10444 | if (PyErr_Occurred()) return NULL; | |
10445 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
10446 | _resultobj = Py_BuildValue("s",_ptemp); | |
10447 | return _resultobj; | |
10448 | } | |
10449 | ||
10450 | #define wxGenericDirCtrl_GetTreeCtrl(_swigobj) (_swigobj->GetTreeCtrl()) | |
10451 | static PyObject *_wrap_wxGenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10452 | PyObject * _resultobj; | |
10453 | wxTreeCtrl * _result; | |
10454 | wxGenericDirCtrl * _arg0; | |
10455 | PyObject * _argo0 = 0; | |
10456 | char *_kwnames[] = { "self", NULL }; | |
68320e40 RD |
10457 | |
10458 | self = self; | |
10459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetTreeCtrl",_kwnames,&_argo0)) | |
10460 | return NULL; | |
10461 | if (_argo0) { | |
10462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetTreeCtrl. Expected _wxGenericDirCtrl_p."); | |
10465 | return NULL; | |
10466 | } | |
10467 | } | |
10468 | { | |
10469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10470 | _result = (wxTreeCtrl *)wxGenericDirCtrl_GetTreeCtrl(_arg0); |
68320e40 RD |
10471 | |
10472 | wxPyEndAllowThreads(__tstate); | |
10473 | if (PyErr_Occurred()) return NULL; | |
9398120d | 10474 | }{ _resultobj = wxPyMake_wxObject(_result); } |
68320e40 RD |
10475 | return _resultobj; |
10476 | } | |
10477 | ||
10478 | #define wxGenericDirCtrl_GetFilterListCtrl(_swigobj) (_swigobj->GetFilterListCtrl()) | |
10479 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10480 | PyObject * _resultobj; | |
10481 | wxDirFilterListCtrl * _result; | |
10482 | wxGenericDirCtrl * _arg0; | |
10483 | PyObject * _argo0 = 0; | |
10484 | char *_kwnames[] = { "self", NULL }; | |
10485 | char _ptemp[128]; | |
10486 | ||
10487 | self = self; | |
10488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterListCtrl",_kwnames,&_argo0)) | |
10489 | return NULL; | |
10490 | if (_argo0) { | |
10491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10494 | return NULL; | |
10495 | } | |
10496 | } | |
10497 | { | |
10498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10499 | _result = (wxDirFilterListCtrl *)wxGenericDirCtrl_GetFilterListCtrl(_arg0); |
68320e40 RD |
10500 | |
10501 | wxPyEndAllowThreads(__tstate); | |
10502 | if (PyErr_Occurred()) return NULL; | |
10503 | } if (_result) { | |
10504 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10505 | _resultobj = Py_BuildValue("s",_ptemp); | |
10506 | } else { | |
10507 | Py_INCREF(Py_None); | |
10508 | _resultobj = Py_None; | |
10509 | } | |
10510 | return _resultobj; | |
10511 | } | |
10512 | ||
10513 | static void *SwigwxDirFilterListCtrlTowxChoice(void *ptr) { | |
10514 | wxDirFilterListCtrl *src; | |
10515 | wxChoice *dest; | |
10516 | src = (wxDirFilterListCtrl *) ptr; | |
10517 | dest = (wxChoice *) src; | |
10518 | return (void *) dest; | |
10519 | } | |
10520 | ||
10521 | static void *SwigwxDirFilterListCtrlTowxControlWithItems(void *ptr) { | |
10522 | wxDirFilterListCtrl *src; | |
10523 | wxControlWithItems *dest; | |
10524 | src = (wxDirFilterListCtrl *) ptr; | |
10525 | dest = (wxControlWithItems *) src; | |
10526 | return (void *) dest; | |
10527 | } | |
10528 | ||
10529 | static void *SwigwxDirFilterListCtrlTowxControl(void *ptr) { | |
10530 | wxDirFilterListCtrl *src; | |
10531 | wxControl *dest; | |
10532 | src = (wxDirFilterListCtrl *) ptr; | |
10533 | dest = (wxControl *) src; | |
10534 | return (void *) dest; | |
10535 | } | |
10536 | ||
10537 | static void *SwigwxDirFilterListCtrlTowxWindow(void *ptr) { | |
10538 | wxDirFilterListCtrl *src; | |
10539 | wxWindow *dest; | |
10540 | src = (wxDirFilterListCtrl *) ptr; | |
10541 | dest = (wxWindow *) src; | |
10542 | return (void *) dest; | |
10543 | } | |
10544 | ||
10545 | static void *SwigwxDirFilterListCtrlTowxEvtHandler(void *ptr) { | |
10546 | wxDirFilterListCtrl *src; | |
10547 | wxEvtHandler *dest; | |
10548 | src = (wxDirFilterListCtrl *) ptr; | |
10549 | dest = (wxEvtHandler *) src; | |
10550 | return (void *) dest; | |
10551 | } | |
10552 | ||
10553 | static void *SwigwxDirFilterListCtrlTowxObject(void *ptr) { | |
10554 | wxDirFilterListCtrl *src; | |
10555 | wxObject *dest; | |
10556 | src = (wxDirFilterListCtrl *) ptr; | |
10557 | dest = (wxObject *) src; | |
10558 | return (void *) dest; | |
10559 | } | |
10560 | ||
10561 | #define new_wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10562 | static PyObject *_wrap_new_wxDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10563 | PyObject * _resultobj; | |
10564 | wxDirFilterListCtrl * _result; | |
10565 | wxGenericDirCtrl * _arg0; | |
10566 | wxWindowID _arg1 = (wxWindowID ) -1; | |
10567 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
10568 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
10569 | long _arg4 = (long ) 0; | |
10570 | PyObject * _argo0 = 0; | |
10571 | wxPoint temp; | |
10572 | PyObject * _obj2 = 0; | |
10573 | wxSize temp0; | |
10574 | PyObject * _obj3 = 0; | |
10575 | char *_kwnames[] = { "parent","id","pos","size","style", NULL }; | |
10576 | char _ptemp[128]; | |
10577 | ||
10578 | self = self; | |
10579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxDirFilterListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
10580 | return NULL; | |
10581 | if (_argo0) { | |
10582 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10583 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10584 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDirFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10585 | return NULL; | |
10586 | } | |
10587 | } | |
10588 | if (_obj2) | |
10589 | { | |
10590 | _arg2 = &temp; | |
10591 | if (! wxPoint_helper(_obj2, &_arg2)) | |
10592 | return NULL; | |
10593 | } | |
10594 | if (_obj3) | |
10595 | { | |
10596 | _arg3 = &temp0; | |
10597 | if (! wxSize_helper(_obj3, &_arg3)) | |
10598 | return NULL; | |
10599 | } | |
10600 | { | |
10601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10602 | _result = (wxDirFilterListCtrl *)new_wxDirFilterListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
68320e40 RD |
10603 | |
10604 | wxPyEndAllowThreads(__tstate); | |
10605 | if (PyErr_Occurred()) return NULL; | |
10606 | } if (_result) { | |
10607 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10608 | _resultobj = Py_BuildValue("s",_ptemp); | |
10609 | } else { | |
10610 | Py_INCREF(Py_None); | |
10611 | _resultobj = Py_None; | |
10612 | } | |
10613 | return _resultobj; | |
10614 | } | |
10615 | ||
10616 | #define new_wxPreDirFilterListCtrl() (new wxDirFilterListCtrl()) | |
10617 | static PyObject *_wrap_new_wxPreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10618 | PyObject * _resultobj; | |
10619 | wxDirFilterListCtrl * _result; | |
10620 | char *_kwnames[] = { NULL }; | |
10621 | char _ptemp[128]; | |
10622 | ||
10623 | self = self; | |
10624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreDirFilterListCtrl",_kwnames)) | |
10625 | return NULL; | |
10626 | { | |
10627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10628 | _result = (wxDirFilterListCtrl *)new_wxPreDirFilterListCtrl(); |
68320e40 RD |
10629 | |
10630 | wxPyEndAllowThreads(__tstate); | |
10631 | if (PyErr_Occurred()) return NULL; | |
10632 | } if (_result) { | |
10633 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10634 | _resultobj = Py_BuildValue("s",_ptemp); | |
10635 | } else { | |
10636 | Py_INCREF(Py_None); | |
10637 | _resultobj = Py_None; | |
10638 | } | |
10639 | return _resultobj; | |
10640 | } | |
10641 | ||
10642 | #define wxDirFilterListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10643 | static PyObject *_wrap_wxDirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10644 | PyObject * _resultobj; | |
10645 | bool _result; | |
10646 | wxDirFilterListCtrl * _arg0; | |
10647 | wxGenericDirCtrl * _arg1; | |
10648 | wxWindowID _arg2 = (wxWindowID ) -1; | |
10649 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
10650 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
10651 | long _arg5 = (long ) 0; | |
10652 | PyObject * _argo0 = 0; | |
10653 | PyObject * _argo1 = 0; | |
10654 | wxPoint temp; | |
10655 | PyObject * _obj3 = 0; | |
10656 | wxSize temp0; | |
10657 | PyObject * _obj4 = 0; | |
10658 | char *_kwnames[] = { "self","parent","id","pos","size","style", NULL }; | |
10659 | ||
10660 | self = self; | |
10661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOl:wxDirFilterListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5)) | |
10662 | return NULL; | |
10663 | if (_argo0) { | |
10664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
10666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_Create. Expected _wxDirFilterListCtrl_p."); | |
10667 | return NULL; | |
10668 | } | |
10669 | } | |
10670 | if (_argo1) { | |
10671 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10672 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxGenericDirCtrl_p")) { | |
10673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDirFilterListCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
10674 | return NULL; | |
10675 | } | |
10676 | } | |
10677 | if (_obj3) | |
10678 | { | |
10679 | _arg3 = &temp; | |
10680 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10681 | return NULL; | |
10682 | } | |
10683 | if (_obj4) | |
10684 | { | |
10685 | _arg4 = &temp0; | |
10686 | if (! wxSize_helper(_obj4, &_arg4)) | |
10687 | return NULL; | |
10688 | } | |
10689 | { | |
10690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10691 | _result = (bool )wxDirFilterListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5); |
68320e40 RD |
10692 | |
10693 | wxPyEndAllowThreads(__tstate); | |
10694 | if (PyErr_Occurred()) return NULL; | |
10695 | } _resultobj = Py_BuildValue("i",_result); | |
10696 | return _resultobj; | |
10697 | } | |
10698 | ||
10699 | #define wxDirFilterListCtrl_FillFilterList(_swigobj,_swigarg0,_swigarg1) (_swigobj->FillFilterList(_swigarg0,_swigarg1)) | |
10700 | static PyObject *_wrap_wxDirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10701 | PyObject * _resultobj; | |
10702 | wxDirFilterListCtrl * _arg0; | |
10703 | wxString * _arg1; | |
10704 | int _arg2; | |
10705 | PyObject * _argo0 = 0; | |
10706 | PyObject * _obj1 = 0; | |
10707 | char *_kwnames[] = { "self","filter","defaultFilter", NULL }; | |
10708 | ||
10709 | self = self; | |
10710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxDirFilterListCtrl_FillFilterList",_kwnames,&_argo0,&_obj1,&_arg2)) | |
10711 | return NULL; | |
10712 | if (_argo0) { | |
10713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
10715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_FillFilterList. Expected _wxDirFilterListCtrl_p."); | |
10716 | return NULL; | |
10717 | } | |
10718 | } | |
10719 | { | |
c8bc7bb8 RD |
10720 | _arg1 = wxString_in_helper(_obj1); |
10721 | if (_arg1 == NULL) | |
68320e40 | 10722 | return NULL; |
68320e40 RD |
10723 | } |
10724 | { | |
10725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10726 | wxDirFilterListCtrl_FillFilterList(_arg0,*_arg1,_arg2); |
68320e40 RD |
10727 | |
10728 | wxPyEndAllowThreads(__tstate); | |
10729 | if (PyErr_Occurred()) return NULL; | |
10730 | } Py_INCREF(Py_None); | |
10731 | _resultobj = Py_None; | |
10732 | { | |
10733 | if (_obj1) | |
10734 | delete _arg1; | |
10735 | } | |
10736 | return _resultobj; | |
10737 | } | |
10738 | ||
8ab979d7 | 10739 | static PyMethodDef controls2cMethods[] = { |
68320e40 RD |
10740 | { "wxDirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_wxDirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, |
10741 | { "wxDirFilterListCtrl_Create", (PyCFunction) _wrap_wxDirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10742 | { "new_wxPreDirFilterListCtrl", (PyCFunction) _wrap_new_wxPreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10743 | { "new_wxDirFilterListCtrl", (PyCFunction) _wrap_new_wxDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10744 | { "wxGenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10745 | { "wxGenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10746 | { "wxGenericDirCtrl_GetRootId", (PyCFunction) _wrap_wxGenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
10747 | { "wxGenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
10748 | { "wxGenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
10749 | { "wxGenericDirCtrl_SetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
10750 | { "wxGenericDirCtrl_GetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
10751 | { "wxGenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
10752 | { "wxGenericDirCtrl_ShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
10753 | { "wxGenericDirCtrl_SetPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
10754 | { "wxGenericDirCtrl_GetFilePath", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
10755 | { "wxGenericDirCtrl_GetPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
10756 | { "wxGenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
10757 | { "wxGenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
10758 | { "wxGenericDirCtrl_ExpandPath", (PyCFunction) _wrap_wxGenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
10759 | { "wxGenericDirCtrl_Create", (PyCFunction) _wrap_wxGenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10760 | { "new_wxPreGenericDirCtrl", (PyCFunction) _wrap_new_wxPreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10761 | { "new_wxGenericDirCtrl", (PyCFunction) _wrap_new_wxGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10762 | { "wxDirItemData_m_isDir_get", (PyCFunction) _wrap_wxDirItemData_m_isDir_get, METH_VARARGS | METH_KEYWORDS }, | |
10763 | { "wxDirItemData_m_isDir_set", (PyCFunction) _wrap_wxDirItemData_m_isDir_set, METH_VARARGS | METH_KEYWORDS }, | |
10764 | { "wxDirItemData_m_isExpanded_get", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_get, METH_VARARGS | METH_KEYWORDS }, | |
10765 | { "wxDirItemData_m_isExpanded_set", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_set, METH_VARARGS | METH_KEYWORDS }, | |
10766 | { "wxDirItemData_m_isHidden_get", (PyCFunction) _wrap_wxDirItemData_m_isHidden_get, METH_VARARGS | METH_KEYWORDS }, | |
10767 | { "wxDirItemData_m_isHidden_set", (PyCFunction) _wrap_wxDirItemData_m_isHidden_set, METH_VARARGS | METH_KEYWORDS }, | |
10768 | { "wxDirItemData_m_name_get", (PyCFunction) _wrap_wxDirItemData_m_name_get, METH_VARARGS | METH_KEYWORDS }, | |
10769 | { "wxDirItemData_m_name_set", (PyCFunction) _wrap_wxDirItemData_m_name_set, METH_VARARGS | METH_KEYWORDS }, | |
10770 | { "wxDirItemData_m_path_get", (PyCFunction) _wrap_wxDirItemData_m_path_get, METH_VARARGS | METH_KEYWORDS }, | |
10771 | { "wxDirItemData_m_path_set", (PyCFunction) _wrap_wxDirItemData_m_path_set, METH_VARARGS | METH_KEYWORDS }, | |
10772 | { "wxDirItemData_SetNewDirName", (PyCFunction) _wrap_wxDirItemData_SetNewDirName, METH_VARARGS | METH_KEYWORDS }, | |
10773 | { "new_wxDirItemData", (PyCFunction) _wrap_new_wxDirItemData, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10774 | { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10775 | { "wxTreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_wxTreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 RD |
10776 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, |
10777 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10778 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10779 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
10780 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
10781 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10782 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10783 | { "wxTreeCtrl_EndEditLabel", (PyCFunction) _wrap_wxTreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, |
10784 | { "wxTreeCtrl_GetEditControl", (PyCFunction) _wrap_wxTreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
10785 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
10786 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
10787 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
10788 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
10789 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
10790 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
10791 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
10792 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
10793 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
10794 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
10795 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
10796 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
10797 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
10798 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10799 | { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10800 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, |
10801 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
10802 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10803 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10804 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, |
10805 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
10806 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
10807 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
10808 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
10809 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
10810 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
10811 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10812 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 10813 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10814 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
10815 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
10816 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
10817 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
10818 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
10819 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
10820 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, | |
10821 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
10822 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10823 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10824 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
10825 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
10826 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10827 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10828 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
10829 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10830 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
10831 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, |
10832 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
00b6c4e3 RD |
10833 | { "wxTreeCtrl_AssignStateImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, |
10834 | { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10835 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, |
10836 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10837 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
10838 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10839 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
10840 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
10841 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 10842 | { "wxTreeCtrl__setCallbackInfo", (PyCFunction) _wrap_wxTreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
10843 | { "wxTreeCtrl_Create", (PyCFunction) _wrap_wxTreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
10844 | { "new_wxPreTreeCtrl", (PyCFunction) _wrap_new_wxPreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10845 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, |
10846 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10847 | { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
ecc08ead | 10848 | { "wxTreeEvent_GetKeyEvent", (PyCFunction) _wrap_wxTreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10849 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, |
10850 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
10851 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
00b6c4e3 | 10852 | { "new_wxTreeEvent", (PyCFunction) _wrap_new_wxTreeEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10853 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, |
10854 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
10855 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
10856 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10857 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10858 | { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10859 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, |
10860 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
10861 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
00b6c4e3 RD |
10862 | { "wxTreeItemAttr_GetFont", (PyCFunction) _wrap_wxTreeItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, |
10863 | { "wxTreeItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10864 | { "wxTreeItemAttr_GetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10865 | { "wxTreeItemAttr_HasFont", (PyCFunction) _wrap_wxTreeItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
10866 | { "wxTreeItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10867 | { "wxTreeItemAttr_HasTextColour", (PyCFunction) _wrap_wxTreeItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10868 | { "wxTreeItemAttr_SetFont", (PyCFunction) _wrap_wxTreeItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10869 | { "wxTreeItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10870 | { "wxTreeItemAttr_SetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10871 | { "new_wxTreeItemAttr", (PyCFunction) _wrap_new_wxTreeItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
6d19860f RD |
10872 | { "wxListView_ClearColumnImage", (PyCFunction) _wrap_wxListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, |
10873 | { "wxListView_SetColumnImage", (PyCFunction) _wrap_wxListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
10874 | { "wxListView_IsSelected", (PyCFunction) _wrap_wxListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
10875 | { "wxListView_GetFirstSelected", (PyCFunction) _wrap_wxListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
10876 | { "wxListView_GetNextSelected", (PyCFunction) _wrap_wxListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
10877 | { "wxListView_GetFocusedItem", (PyCFunction) _wrap_wxListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
10878 | { "wxListView_Focus", (PyCFunction) _wrap_wxListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
10879 | { "wxListView_Select", (PyCFunction) _wrap_wxListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
10880 | { "wxListView_Create", (PyCFunction) _wrap_wxListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
10881 | { "new_wxPreListView", (PyCFunction) _wrap_new_wxPreListView, METH_VARARGS | METH_KEYWORDS }, | |
10882 | { "new_wxListView", (PyCFunction) _wrap_new_wxListView, METH_VARARGS | METH_KEYWORDS }, | |
dcd38683 | 10883 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, |
3bd1e033 RD |
10884 | { "wxListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_wxListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
10885 | { "wxListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10886 | { "wxListCtrl_GetItemTextColour", (PyCFunction) _wrap_wxListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10887 | { "wxListCtrl_SetItemTextColour", (PyCFunction) _wrap_wxListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10888 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, |
c7e7022c RD |
10889 | { "wxListCtrl_SetItemCount", (PyCFunction) _wrap_wxListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, |
10890 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
10891 | { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10892 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, |
10893 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
10894 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
10895 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10896 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10897 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, |
10898 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
10899 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
10900 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10901 | { "wxListCtrl_EndEditLabel", (PyCFunction) _wrap_wxListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, |
10902 | { "wxListCtrl_EditLabel", (PyCFunction) _wrap_wxListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
10903 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
10904 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
10905 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
10906 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
10907 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
10908 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
c7e7022c RD |
10909 | { "wxListCtrl_RefreshItems", (PyCFunction) _wrap_wxListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, |
10910 | { "wxListCtrl_RefreshItem", (PyCFunction) _wrap_wxListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
10911 | { "wxListCtrl_IsVirtual", (PyCFunction) _wrap_wxListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
10912 | { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
10913 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10914 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10915 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
10916 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
10917 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
10918 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
10919 | { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10920 | { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10921 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10922 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
10923 | { "wxListCtrl_GetColumnCount", (PyCFunction) _wrap_wxListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
10924 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10925 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
10926 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
10927 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
10928 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10929 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10930 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10931 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10932 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10933 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
10934 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
10935 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
10936 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
10937 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
10938 | { "wxListCtrl_GetEditControl", (PyCFunction) _wrap_wxListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
10939 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
10940 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
10941 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
10942 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10943 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10944 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10945 | { "wxListCtrl_SetForegroundColour", (PyCFunction) _wrap_wxListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 10946 | { "wxListCtrl__setCallbackInfo", (PyCFunction) _wrap_wxListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
10947 | { "wxListCtrl_Create", (PyCFunction) _wrap_wxListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
10948 | { "new_wxPreListCtrl", (PyCFunction) _wrap_new_wxPreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10949 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, |
6d19860f RD |
10950 | { "wxListEvent_GetCacheTo", (PyCFunction) _wrap_wxListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, |
10951 | { "wxListEvent_GetCacheFrom", (PyCFunction) _wrap_wxListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10952 | { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, |
10953 | { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
10954 | { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10955 | { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
10956 | { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10957 | { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10958 | { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10959 | { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
10960 | { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, |
10961 | { "wxListEvent_GetCode", (PyCFunction) _wrap_wxListEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10962 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10963 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10964 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10965 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
ebf4302c | 10966 | { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10967 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, |
6d19860f | 10968 | { "new_wxListEvent", (PyCFunction) _wrap_new_wxListEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10969 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, |
10970 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
10971 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
10972 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
10973 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
10974 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
10975 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
10976 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
10977 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
10978 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
10979 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
10980 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
10981 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
10982 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
10983 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
10984 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
10985 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
10986 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
10987 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
10988 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10989 | { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, |
10990 | { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10991 | { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10992 | { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
10993 | { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
10994 | { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
10995 | { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10996 | { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10997 | { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
10998 | { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10999 | { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
11000 | { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
11001 | { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
11002 | { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
11003 | { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11004 | { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11005 | { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11006 | { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
11007 | { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11008 | { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
11009 | { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
11010 | { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
11011 | { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
11012 | { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
11013 | { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
11014 | { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
11015 | { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
11016 | { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
11017 | { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11018 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
11019 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
11020 | { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11021 | { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11022 | { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11023 | { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
11024 | { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11025 | { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11026 | { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11027 | { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11028 | { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11029 | { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
11030 | { NULL, NULL } |
11031 | }; | |
1d99702e RD |
11032 | #ifdef __cplusplus |
11033 | } | |
11034 | #endif | |
11035 | /* | |
11036 | * This table is used by the pointer type-checker | |
11037 | */ | |
11038 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 11039 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, |
1d99702e | 11040 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, |
1d99702e | 11041 | { "_signed_long","_long",0}, |
b1462dfa | 11042 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
11043 | { "_wxPrintQuality","_int",0}, |
11044 | { "_wxPrintQuality","_signed_int",0}, | |
11045 | { "_wxPrintQuality","_unsigned_int",0}, | |
11046 | { "_wxPrintQuality","_wxWindowID",0}, | |
11047 | { "_wxPrintQuality","_uint",0}, | |
11048 | { "_wxPrintQuality","_EBool",0}, | |
11049 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11050 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 11051 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, |
c368d904 | 11052 | { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
1d99702e | 11053 | { "_byte","_unsigned_char",0}, |
68320e40 | 11054 | { "_wxChoice","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxChoice}, |
1d99702e RD |
11055 | { "_long","_unsigned_long",0}, |
11056 | { "_long","_signed_long",0}, | |
b1462dfa | 11057 | { "_size_t","_wxCoord",0}, |
1d99702e | 11058 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11059 | { "_size_t","_time_t",0}, |
1d99702e RD |
11060 | { "_size_t","_unsigned_int",0}, |
11061 | { "_size_t","_int",0}, | |
11062 | { "_size_t","_wxWindowID",0}, | |
11063 | { "_size_t","_uint",0}, | |
b1462dfa | 11064 | { "_uint","_wxCoord",0}, |
1d99702e | 11065 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11066 | { "_uint","_time_t",0}, |
1d99702e RD |
11067 | { "_uint","_size_t",0}, |
11068 | { "_uint","_unsigned_int",0}, | |
11069 | { "_uint","_int",0}, | |
11070 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11071 | { "_wxChar","_char",0}, |
1d99702e | 11072 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, |
1d99702e | 11073 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, |
f6bcfd97 | 11074 | { "_char","_wxChar",0}, |
cdf14688 | 11075 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 11076 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
11077 | { "_EBool","_wxPrintQuality",0}, |
11078 | { "_EBool","_signed_int",0}, | |
11079 | { "_EBool","_int",0}, | |
11080 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 11081 | { "_unsigned_long","_long",0}, |
cdf14688 | 11082 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 11083 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
11084 | { "_signed_int","_wxPrintQuality",0}, |
11085 | { "_signed_int","_EBool",0}, | |
11086 | { "_signed_int","_wxWindowID",0}, | |
11087 | { "_signed_int","_int",0}, | |
1d99702e RD |
11088 | { "_WXTYPE","_short",0}, |
11089 | { "_WXTYPE","_signed_short",0}, | |
11090 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
11091 | { "_unsigned_short","_WXTYPE",0}, |
11092 | { "_unsigned_short","_short",0}, | |
68320e40 RD |
11093 | { "_wxObject","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxObject}, |
11094 | { "_wxObject","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxObject}, | |
11095 | { "_wxObject","_wxDirItemData",SwigwxDirItemDataTowxObject}, | |
9416aa89 | 11096 | { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, |
9416aa89 | 11097 | { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject}, |
9416aa89 | 11098 | { "_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, |
6d19860f | 11099 | { "_wxObject","_wxListView",SwigwxListViewTowxObject}, |
c7e7022c | 11100 | { "_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, |
9416aa89 | 11101 | { "_wxObject","_wxListEvent",SwigwxListEventTowxObject}, |
9416aa89 | 11102 | { "_wxObject","_wxListItem",SwigwxListItemTowxObject}, |
1d99702e RD |
11103 | { "_signed_short","_WXTYPE",0}, |
11104 | { "_signed_short","_short",0}, | |
1d99702e | 11105 | { "_unsigned_char","_byte",0}, |
68320e40 RD |
11106 | { "_wxControl","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControl}, |
11107 | { "_wxControl","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxControl}, | |
f6bcfd97 | 11108 | { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
6d19860f | 11109 | { "_wxControl","_wxListView",SwigwxListViewTowxControl}, |
c7e7022c | 11110 | { "_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, |
b1462dfa | 11111 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 11112 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 11113 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
11114 | { "_unsigned_int","_size_t",0}, |
11115 | { "_unsigned_int","_uint",0}, | |
11116 | { "_unsigned_int","_wxWindowID",0}, | |
11117 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
11118 | { "_short","_WXTYPE",0}, |
11119 | { "_short","_unsigned_short",0}, | |
11120 | { "_short","_signed_short",0}, | |
68320e40 | 11121 | { "_wxControlWithItems","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControlWithItems}, |
b1462dfa | 11122 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 11123 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 11124 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
11125 | { "_wxWindowID","_size_t",0}, |
11126 | { "_wxWindowID","_EBool",0}, | |
11127 | { "_wxWindowID","_uint",0}, | |
11128 | { "_wxWindowID","_int",0}, | |
11129 | { "_wxWindowID","_signed_int",0}, | |
11130 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 11131 | { "_int","_wxCoord",0}, |
1d99702e | 11132 | { "_int","_wxPrintQuality",0}, |
c368d904 | 11133 | { "_int","_time_t",0}, |
1d99702e RD |
11134 | { "_int","_size_t",0}, |
11135 | { "_int","_EBool",0}, | |
11136 | { "_int","_uint",0}, | |
11137 | { "_int","_wxWindowID",0}, | |
11138 | { "_int","_unsigned_int",0}, | |
11139 | { "_int","_signed_int",0}, | |
c368d904 RD |
11140 | { "_time_t","_wxCoord",0}, |
11141 | { "_time_t","_wxPrintQuality",0}, | |
11142 | { "_time_t","_unsigned_int",0}, | |
11143 | { "_time_t","_int",0}, | |
11144 | { "_time_t","_wxWindowID",0}, | |
11145 | { "_time_t","_uint",0}, | |
11146 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
11147 | { "_wxCoord","_int",0}, |
11148 | { "_wxCoord","_signed_int",0}, | |
11149 | { "_wxCoord","_unsigned_int",0}, | |
11150 | { "_wxCoord","_wxWindowID",0}, | |
11151 | { "_wxCoord","_uint",0}, | |
11152 | { "_wxCoord","_EBool",0}, | |
11153 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11154 | { "_wxCoord","_time_t",0}, |
b1462dfa | 11155 | { "_wxCoord","_wxPrintQuality",0}, |
6d19860f | 11156 | { "_wxPyListCtrl","_wxListView",SwigwxListViewTowxPyListCtrl}, |
68320e40 RD |
11157 | { "_wxEvtHandler","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxEvtHandler}, |
11158 | { "_wxEvtHandler","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxEvtHandler}, | |
f6bcfd97 | 11159 | { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
6d19860f | 11160 | { "_wxEvtHandler","_wxListView",SwigwxListViewTowxEvtHandler}, |
c7e7022c | 11161 | { "_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, |
68320e40 RD |
11162 | { "_wxWindow","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxWindow}, |
11163 | { "_wxWindow","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxWindow}, | |
f6bcfd97 | 11164 | { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
6d19860f | 11165 | { "_wxWindow","_wxListView",SwigwxListViewTowxWindow}, |
c7e7022c | 11166 | { "_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, |
1d99702e RD |
11167 | {0,0,0}}; |
11168 | ||
8ab979d7 RD |
11169 | static PyObject *SWIG_globals; |
11170 | #ifdef __cplusplus | |
11171 | extern "C" | |
11172 | #endif | |
1d99702e | 11173 | SWIGEXPORT(void) initcontrols2c() { |
8ab979d7 RD |
11174 | PyObject *m, *d; |
11175 | SWIG_globals = SWIG_newvarlink(); | |
11176 | m = Py_InitModule("controls2c", controls2cMethods); | |
11177 | d = PyModule_GetDict(m); | |
c7e7022c RD |
11178 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
11179 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
11180 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
11181 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
11182 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
11183 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
11184 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO)); | |
11185 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO)); | |
11186 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
11187 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
11188 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN)); | |
11189 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
11190 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK)); | |
11191 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
11192 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
11193 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
11194 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_CACHE_HINT)); | |
6d19860f RD |
11195 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); |
11196 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
11197 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
11198 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
d8200036 | 11199 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_FOCUSED)); |
c7e7022c RD |
11200 | PyDict_SetItemString(d,"wxLC_VRULES", PyInt_FromLong((long) wxLC_VRULES)); |
11201 | PyDict_SetItemString(d,"wxLC_HRULES", PyInt_FromLong((long) wxLC_HRULES)); | |
11202 | PyDict_SetItemString(d,"wxLC_ICON", PyInt_FromLong((long) wxLC_ICON)); | |
11203 | PyDict_SetItemString(d,"wxLC_SMALL_ICON", PyInt_FromLong((long) wxLC_SMALL_ICON)); | |
11204 | PyDict_SetItemString(d,"wxLC_LIST", PyInt_FromLong((long) wxLC_LIST)); | |
11205 | PyDict_SetItemString(d,"wxLC_REPORT", PyInt_FromLong((long) wxLC_REPORT)); | |
11206 | PyDict_SetItemString(d,"wxLC_ALIGN_TOP", PyInt_FromLong((long) wxLC_ALIGN_TOP)); | |
11207 | PyDict_SetItemString(d,"wxLC_ALIGN_LEFT", PyInt_FromLong((long) wxLC_ALIGN_LEFT)); | |
11208 | PyDict_SetItemString(d,"wxLC_AUTOARRANGE", PyInt_FromLong((long) wxLC_AUTOARRANGE)); | |
11209 | PyDict_SetItemString(d,"wxLC_VIRTUAL", PyInt_FromLong((long) wxLC_VIRTUAL)); | |
11210 | PyDict_SetItemString(d,"wxLC_EDIT_LABELS", PyInt_FromLong((long) wxLC_EDIT_LABELS)); | |
11211 | PyDict_SetItemString(d,"wxLC_NO_HEADER", PyInt_FromLong((long) wxLC_NO_HEADER)); | |
11212 | PyDict_SetItemString(d,"wxLC_NO_SORT_HEADER", PyInt_FromLong((long) wxLC_NO_SORT_HEADER)); | |
11213 | PyDict_SetItemString(d,"wxLC_SINGLE_SEL", PyInt_FromLong((long) wxLC_SINGLE_SEL)); | |
11214 | PyDict_SetItemString(d,"wxLC_SORT_ASCENDING", PyInt_FromLong((long) wxLC_SORT_ASCENDING)); | |
11215 | PyDict_SetItemString(d,"wxLC_SORT_DESCENDING", PyInt_FromLong((long) wxLC_SORT_DESCENDING)); | |
11216 | PyDict_SetItemString(d,"wxLC_MASK_TYPE", PyInt_FromLong((long) wxLC_MASK_TYPE)); | |
11217 | PyDict_SetItemString(d,"wxLC_MASK_ALIGN", PyInt_FromLong((long) wxLC_MASK_ALIGN)); | |
11218 | PyDict_SetItemString(d,"wxLC_MASK_SORT", PyInt_FromLong((long) wxLC_MASK_SORT)); | |
6d19860f | 11219 | PyDict_SetItemString(d,"wxLC_USER_TEXT", PyInt_FromLong((long) wxLC_USER_TEXT)); |
c7e7022c | 11220 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); |
af309447 RD |
11221 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); |
11222 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
11223 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
c7e7022c | 11224 | PyDict_SetItemString(d,"wxLIST_SET_ITEM", PyInt_FromLong((long) wxLIST_SET_ITEM)); |
af309447 RD |
11225 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); |
11226 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
11227 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); | |
11228 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
11229 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
11230 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
11231 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
11232 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
11233 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
11234 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
11235 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
11236 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
11237 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
11238 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
11239 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
11240 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
11241 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
11242 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
11243 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
11244 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
11245 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
11246 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
11247 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
11248 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
11249 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
11250 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
af309447 RD |
11251 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); |
11252 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
11253 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
11254 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
11255 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
11256 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
11257 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
11258 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
11259 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
f6bcfd97 BP |
11260 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); |
11261 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
11262 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
11263 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
00b6c4e3 RD |
11264 | PyDict_SetItemString(d,"wxTR_NO_BUTTONS", PyInt_FromLong((long) wxTR_NO_BUTTONS)); |
11265 | PyDict_SetItemString(d,"wxTR_HAS_BUTTONS", PyInt_FromLong((long) wxTR_HAS_BUTTONS)); | |
11266 | PyDict_SetItemString(d,"wxTR_TWIST_BUTTONS", PyInt_FromLong((long) wxTR_TWIST_BUTTONS)); | |
11267 | PyDict_SetItemString(d,"wxTR_NO_LINES", PyInt_FromLong((long) wxTR_NO_LINES)); | |
11268 | PyDict_SetItemString(d,"wxTR_MAC_BUTTONS", PyInt_FromLong((long) wxTR_MAC_BUTTONS)); | |
b5a5d647 | 11269 | PyDict_SetItemString(d,"wxTR_AQUA_BUTTONS", PyInt_FromLong((long) wxTR_AQUA_BUTTONS)); |
00b6c4e3 RD |
11270 | PyDict_SetItemString(d,"wxTR_SINGLE", PyInt_FromLong((long) wxTR_SINGLE)); |
11271 | PyDict_SetItemString(d,"wxTR_MULTIPLE", PyInt_FromLong((long) wxTR_MULTIPLE)); | |
11272 | PyDict_SetItemString(d,"wxTR_EXTENDED", PyInt_FromLong((long) wxTR_EXTENDED)); | |
b5a5d647 | 11273 | PyDict_SetItemString(d,"wxTR_FULL_ROW_HIGHLIGHT", PyInt_FromLong((long) wxTR_FULL_ROW_HIGHLIGHT)); |
00b6c4e3 RD |
11274 | PyDict_SetItemString(d,"wxTR_EDIT_LABELS", PyInt_FromLong((long) wxTR_EDIT_LABELS)); |
11275 | PyDict_SetItemString(d,"wxTR_LINES_AT_ROOT", PyInt_FromLong((long) wxTR_LINES_AT_ROOT)); | |
11276 | PyDict_SetItemString(d,"wxTR_HIDE_ROOT", PyInt_FromLong((long) wxTR_HIDE_ROOT)); | |
11277 | PyDict_SetItemString(d,"wxTR_ROW_LINES", PyInt_FromLong((long) wxTR_ROW_LINES)); | |
11278 | PyDict_SetItemString(d,"wxTR_HAS_VARIABLE_ROW_HEIGHT", PyInt_FromLong((long) wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
11279 | PyDict_SetItemString(d,"wxTR_DEFAULT_STYLE", PyInt_FromLong((long) wxTR_DEFAULT_STYLE)); | |
694759cf RD |
11280 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); |
11281 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
11282 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
11283 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
11284 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
164b735b RD |
11285 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); |
11286 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
11287 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
11288 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
11289 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
11290 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
11291 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
11292 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
11293 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
11294 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
11295 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
11296 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
11297 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
11298 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
1b62f00d RD |
11299 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
11300 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
11301 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
11302 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
11303 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
11304 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO)); | |
11305 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO)); | |
11306 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
11307 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
11308 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
11309 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
11310 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
11311 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
11312 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN)); | |
11313 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
11314 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
11315 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
d1679124 | 11316 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG)); |
68320e40 RD |
11317 | PyDict_SetItemString(d,"wxDIRCTRL_DIR_ONLY", PyInt_FromLong((long) wxDIRCTRL_DIR_ONLY)); |
11318 | PyDict_SetItemString(d,"wxDIRCTRL_SELECT_FIRST", PyInt_FromLong((long) wxDIRCTRL_SELECT_FIRST)); | |
11319 | PyDict_SetItemString(d,"wxDIRCTRL_SHOW_FILTERS", PyInt_FromLong((long) wxDIRCTRL_SHOW_FILTERS)); | |
11320 | PyDict_SetItemString(d,"wxDIRCTRL_3D_INTERNAL", PyInt_FromLong((long) wxDIRCTRL_3D_INTERNAL)); | |
7cdaed0b | 11321 | PyDict_SetItemString(d,"wxDIRCTRL_EDIT_LABELS", PyInt_FromLong((long) wxDIRCTRL_EDIT_LABELS)); |
db0ff83e RD |
11322 | PyDict_SetItemString(d,"wxID_TREECTRL", PyInt_FromLong((long) wxID_TREECTRL)); |
11323 | PyDict_SetItemString(d,"wxID_FILTERLISTCTRL", PyInt_FromLong((long) wxID_FILTERLISTCTRL)); | |
9416aa89 | 11324 | |
a3fbed81 | 11325 | // Map renamed classes back to their common name for OOR |
9416aa89 RD |
11326 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); |
11327 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
a3fbed81 | 11328 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); |
1d99702e RD |
11329 | { |
11330 | int i; | |
11331 | for (i = 0; _swig_mapping[i].n1; i++) | |
11332 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11333 | } | |
8ab979d7 | 11334 | } |