]>
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(); |
19a97bd6 | 216 | if ((found = m_myInst.findCallback("OnCompareItems"))) |
f6bcfd97 BP |
217 | rval = m_myInst.callCallback(Py_BuildValue( |
218 | "(OO)", | |
219 | wxPyConstructObject((void*)&item1, "wxTreeItemId"), | |
220 | wxPyConstructObject((void*)&item2, "wxTreeItemId"))); | |
4268f798 | 221 | wxPyEndBlockThreads(); |
19a97bd6 | 222 | if (! found) |
f6bcfd97 | 223 | rval = wxTreeCtrl::OnCompareItems(item1, item2); |
f6bcfd97 BP |
224 | return rval; |
225 | } | |
226 | PYPRIVATE; | |
227 | }; | |
228 | ||
3b36695d RD |
229 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); |
230 | ||
1d99702e RD |
231 | #ifdef __cplusplus |
232 | extern "C" { | |
233 | #endif | |
c7e7022c | 234 | #define new_wxListItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxListItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
f6bcfd97 | 235 | static PyObject *_wrap_new_wxListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 | 236 | PyObject * _resultobj; |
f6bcfd97 | 237 | wxListItemAttr * _result; |
c7e7022c RD |
238 | wxColour * _arg0 = (wxColour *) &wxNullColour; |
239 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
240 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
241 | wxColour temp; | |
242 | PyObject * _obj0 = 0; | |
243 | wxColour temp0; | |
244 | PyObject * _obj1 = 0; | |
245 | PyObject * _argo2 = 0; | |
246 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
f6bcfd97 | 247 | char _ptemp[128]; |
af309447 RD |
248 | |
249 | self = self; | |
c7e7022c RD |
250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxListItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) |
251 | return NULL; | |
252 | if (_obj0) | |
253 | { | |
254 | _arg0 = &temp; | |
255 | if (! wxColour_helper(_obj0, &_arg0)) | |
256 | return NULL; | |
257 | } | |
258 | if (_obj1) | |
259 | { | |
260 | _arg1 = &temp0; | |
261 | if (! wxColour_helper(_obj1, &_arg1)) | |
262 | return NULL; | |
263 | } | |
264 | if (_argo2) { | |
265 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
266 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxListItemAttr. Expected _wxFont_p."); | |
af309447 | 268 | return NULL; |
c7e7022c RD |
269 | } |
270 | } | |
cf694132 | 271 | { |
4268f798 | 272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 273 | _result = (wxListItemAttr *)new_wxListItemAttr(*_arg0,*_arg1,*_arg2); |
cf694132 | 274 | |
4268f798 | 275 | wxPyEndAllowThreads(__tstate); |
493f1553 | 276 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
277 | } if (_result) { |
278 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
279 | _resultobj = Py_BuildValue("s",_ptemp); | |
280 | } else { | |
281 | Py_INCREF(Py_None); | |
282 | _resultobj = Py_None; | |
283 | } | |
af309447 RD |
284 | return _resultobj; |
285 | } | |
286 | ||
f6bcfd97 BP |
287 | #define wxListItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
288 | static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 289 | PyObject * _resultobj; |
f6bcfd97 BP |
290 | wxListItemAttr * _arg0; |
291 | wxColour * _arg1; | |
1d99702e | 292 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
293 | wxColour temp; |
294 | PyObject * _obj1 = 0; | |
295 | char *_kwnames[] = { "self","colText", NULL }; | |
8ab979d7 RD |
296 | |
297 | self = self; | |
f6bcfd97 | 298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 299 | return NULL; |
1d99702e RD |
300 | if (_argo0) { |
301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetTextColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
304 | return NULL; |
305 | } | |
306 | } | |
f6bcfd97 BP |
307 | { |
308 | _arg1 = &temp; | |
309 | if (! wxColour_helper(_obj1, &_arg1)) | |
310 | return NULL; | |
311 | } | |
cf694132 | 312 | { |
4268f798 | 313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 314 | wxListItemAttr_SetTextColour(_arg0,*_arg1); |
cf694132 | 315 | |
4268f798 | 316 | wxPyEndAllowThreads(__tstate); |
493f1553 | 317 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
318 | } Py_INCREF(Py_None); |
319 | _resultobj = Py_None; | |
8ab979d7 RD |
320 | return _resultobj; |
321 | } | |
322 | ||
f6bcfd97 BP |
323 | #define wxListItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
324 | static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 325 | PyObject * _resultobj; |
f6bcfd97 BP |
326 | wxListItemAttr * _arg0; |
327 | wxColour * _arg1; | |
1d99702e | 328 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
329 | wxColour temp; |
330 | PyObject * _obj1 = 0; | |
331 | char *_kwnames[] = { "self","colBack", NULL }; | |
af309447 RD |
332 | |
333 | self = self; | |
f6bcfd97 | 334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
af309447 | 335 | return NULL; |
1d99702e RD |
336 | if (_argo0) { |
337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetBackgroundColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
340 | return NULL; |
341 | } | |
342 | } | |
f6bcfd97 BP |
343 | { |
344 | _arg1 = &temp; | |
345 | if (! wxColour_helper(_obj1, &_arg1)) | |
346 | return NULL; | |
347 | } | |
cf694132 | 348 | { |
4268f798 | 349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 350 | wxListItemAttr_SetBackgroundColour(_arg0,*_arg1); |
cf694132 | 351 | |
4268f798 | 352 | wxPyEndAllowThreads(__tstate); |
493f1553 | 353 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
354 | } Py_INCREF(Py_None); |
355 | _resultobj = Py_None; | |
af309447 RD |
356 | return _resultobj; |
357 | } | |
358 | ||
f6bcfd97 BP |
359 | #define wxListItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
360 | static PyObject *_wrap_wxListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 361 | PyObject * _resultobj; |
f6bcfd97 BP |
362 | wxListItemAttr * _arg0; |
363 | wxFont * _arg1; | |
1d99702e | 364 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
365 | PyObject * _argo1 = 0; |
366 | char *_kwnames[] = { "self","font", NULL }; | |
8ab979d7 RD |
367 | |
368 | self = self; | |
f6bcfd97 | 369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 370 | return NULL; |
1d99702e RD |
371 | if (_argo0) { |
372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetFont. Expected _wxListItemAttr_p."); | |
375 | return NULL; | |
376 | } | |
377 | } | |
378 | if (_argo1) { | |
379 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
380 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetFont. Expected _wxFont_p."); | |
8ab979d7 RD |
382 | return NULL; |
383 | } | |
384 | } | |
cf694132 | 385 | { |
4268f798 | 386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 387 | wxListItemAttr_SetFont(_arg0,*_arg1); |
cf694132 | 388 | |
4268f798 | 389 | wxPyEndAllowThreads(__tstate); |
493f1553 | 390 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
391 | } Py_INCREF(Py_None); |
392 | _resultobj = Py_None; | |
8ab979d7 RD |
393 | return _resultobj; |
394 | } | |
395 | ||
f6bcfd97 BP |
396 | #define wxListItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) |
397 | static PyObject *_wrap_wxListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 398 | PyObject * _resultobj; |
f6bcfd97 BP |
399 | bool _result; |
400 | wxListItemAttr * _arg0; | |
1d99702e | 401 | PyObject * _argo0 = 0; |
f6bcfd97 | 402 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
403 | |
404 | self = self; | |
f6bcfd97 | 405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasTextColour",_kwnames,&_argo0)) |
af309447 | 406 | return NULL; |
1d99702e RD |
407 | if (_argo0) { |
408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasTextColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
411 | return NULL; |
412 | } | |
413 | } | |
cf694132 | 414 | { |
4268f798 | 415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 416 | _result = (bool )wxListItemAttr_HasTextColour(_arg0); |
cf694132 | 417 | |
4268f798 | 418 | wxPyEndAllowThreads(__tstate); |
493f1553 | 419 | if (PyErr_Occurred()) return NULL; |
cf694132 | 420 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
421 | return _resultobj; |
422 | } | |
423 | ||
f6bcfd97 BP |
424 | #define wxListItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) |
425 | static PyObject *_wrap_wxListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 426 | PyObject * _resultobj; |
f6bcfd97 BP |
427 | bool _result; |
428 | wxListItemAttr * _arg0; | |
1d99702e | 429 | PyObject * _argo0 = 0; |
efc5f224 | 430 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
431 | |
432 | self = self; | |
f6bcfd97 | 433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 434 | return NULL; |
1d99702e RD |
435 | if (_argo0) { |
436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasBackgroundColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
439 | return NULL; |
440 | } | |
441 | } | |
cf694132 | 442 | { |
4268f798 | 443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 444 | _result = (bool )wxListItemAttr_HasBackgroundColour(_arg0); |
cf694132 | 445 | |
4268f798 | 446 | wxPyEndAllowThreads(__tstate); |
493f1553 | 447 | if (PyErr_Occurred()) return NULL; |
cf694132 | 448 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
449 | return _resultobj; |
450 | } | |
451 | ||
f6bcfd97 BP |
452 | #define wxListItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) |
453 | static PyObject *_wrap_wxListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 454 | PyObject * _resultobj; |
f6bcfd97 BP |
455 | bool _result; |
456 | wxListItemAttr * _arg0; | |
1d99702e | 457 | PyObject * _argo0 = 0; |
f6bcfd97 | 458 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
459 | |
460 | self = self; | |
f6bcfd97 | 461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasFont",_kwnames,&_argo0)) |
af309447 | 462 | return NULL; |
1d99702e RD |
463 | if (_argo0) { |
464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasFont. Expected _wxListItemAttr_p."); | |
af309447 RD |
467 | return NULL; |
468 | } | |
469 | } | |
cf694132 | 470 | { |
4268f798 | 471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 472 | _result = (bool )wxListItemAttr_HasFont(_arg0); |
cf694132 | 473 | |
4268f798 | 474 | wxPyEndAllowThreads(__tstate); |
493f1553 | 475 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 476 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
477 | return _resultobj; |
478 | } | |
479 | ||
f6bcfd97 BP |
480 | #define wxListItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
481 | static PyObject *_wrap_wxListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 482 | PyObject * _resultobj; |
f6bcfd97 BP |
483 | wxColour * _result; |
484 | wxListItemAttr * _arg0; | |
1d99702e | 485 | PyObject * _argo0 = 0; |
efc5f224 | 486 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 487 | char _ptemp[128]; |
8ab979d7 RD |
488 | |
489 | self = self; | |
f6bcfd97 | 490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 491 | return NULL; |
1d99702e RD |
492 | if (_argo0) { |
493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetTextColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
496 | return NULL; |
497 | } | |
498 | } | |
cf694132 | 499 | { |
4268f798 | 500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 501 | _result = new wxColour (wxListItemAttr_GetTextColour(_arg0)); |
cf694132 | 502 | |
4268f798 | 503 | wxPyEndAllowThreads(__tstate); |
493f1553 | 504 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
505 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
506 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
507 | return _resultobj; |
508 | } | |
509 | ||
f6bcfd97 BP |
510 | #define wxListItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) |
511 | static PyObject *_wrap_wxListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 512 | PyObject * _resultobj; |
f6bcfd97 BP |
513 | wxColour * _result; |
514 | wxListItemAttr * _arg0; | |
1d99702e | 515 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
516 | char *_kwnames[] = { "self", NULL }; |
517 | char _ptemp[128]; | |
af309447 RD |
518 | |
519 | self = self; | |
f6bcfd97 | 520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetBackgroundColour",_kwnames,&_argo0)) |
af309447 | 521 | return NULL; |
1d99702e RD |
522 | if (_argo0) { |
523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetBackgroundColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
526 | return NULL; |
527 | } | |
528 | } | |
cf694132 | 529 | { |
4268f798 | 530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 531 | _result = new wxColour (wxListItemAttr_GetBackgroundColour(_arg0)); |
cf694132 | 532 | |
4268f798 | 533 | wxPyEndAllowThreads(__tstate); |
493f1553 | 534 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
535 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
536 | _resultobj = Py_BuildValue("s",_ptemp); | |
af309447 RD |
537 | return _resultobj; |
538 | } | |
539 | ||
f6bcfd97 BP |
540 | #define wxListItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) |
541 | static PyObject *_wrap_wxListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 542 | PyObject * _resultobj; |
f6bcfd97 BP |
543 | wxFont * _result; |
544 | wxListItemAttr * _arg0; | |
1d99702e | 545 | PyObject * _argo0 = 0; |
efc5f224 | 546 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 547 | char _ptemp[128]; |
8ab979d7 RD |
548 | |
549 | self = self; | |
f6bcfd97 | 550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 551 | return NULL; |
1d99702e RD |
552 | if (_argo0) { |
553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetFont. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
556 | return NULL; |
557 | } | |
558 | } | |
cf694132 | 559 | { |
4268f798 | 560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 561 | _result = new wxFont (wxListItemAttr_GetFont(_arg0)); |
cf694132 | 562 | |
4268f798 | 563 | wxPyEndAllowThreads(__tstate); |
493f1553 | 564 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
565 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
566 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
567 | return _resultobj; |
568 | } | |
569 | ||
9416aa89 RD |
570 | static void *SwigwxListItemTowxObject(void *ptr) { |
571 | wxListItem *src; | |
572 | wxObject *dest; | |
573 | src = (wxListItem *) ptr; | |
574 | dest = (wxObject *) src; | |
575 | return (void *) dest; | |
576 | } | |
577 | ||
f6bcfd97 BP |
578 | #define new_wxListItem() (new wxListItem()) |
579 | static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 580 | PyObject * _resultobj; |
f6bcfd97 BP |
581 | wxListItem * _result; |
582 | char *_kwnames[] = { NULL }; | |
583 | char _ptemp[128]; | |
af309447 RD |
584 | |
585 | self = self; | |
f6bcfd97 | 586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames)) |
af309447 | 587 | return NULL; |
af309447 | 588 | { |
4268f798 | 589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 590 | _result = (wxListItem *)new_wxListItem(); |
cf694132 | 591 | |
4268f798 | 592 | wxPyEndAllowThreads(__tstate); |
493f1553 | 593 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
594 | } if (_result) { |
595 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
596 | _resultobj = Py_BuildValue("s",_ptemp); | |
597 | } else { | |
598 | Py_INCREF(Py_None); | |
599 | _resultobj = Py_None; | |
600 | } | |
af309447 RD |
601 | return _resultobj; |
602 | } | |
603 | ||
f6bcfd97 BP |
604 | #define delete_wxListItem(_swigobj) (delete _swigobj) |
605 | static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 606 | PyObject * _resultobj; |
8ab979d7 | 607 | wxListItem * _arg0; |
1d99702e | 608 | PyObject * _argo0 = 0; |
efc5f224 | 609 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
610 | |
611 | self = self; | |
f6bcfd97 | 612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0)) |
8ab979d7 | 613 | return NULL; |
1d99702e RD |
614 | if (_argo0) { |
615 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
616 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 617 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p."); |
8ab979d7 RD |
618 | return NULL; |
619 | } | |
620 | } | |
8ab979d7 | 621 | { |
4268f798 | 622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 623 | delete_wxListItem(_arg0); |
cf694132 | 624 | |
4268f798 | 625 | wxPyEndAllowThreads(__tstate); |
493f1553 | 626 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
627 | } Py_INCREF(Py_None); |
628 | _resultobj = Py_None; | |
8ab979d7 RD |
629 | return _resultobj; |
630 | } | |
631 | ||
f6bcfd97 BP |
632 | #define wxListItem_Clear(_swigobj) (_swigobj->Clear()) |
633 | static PyObject *_wrap_wxListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 634 | PyObject * _resultobj; |
af309447 | 635 | wxListItem * _arg0; |
1d99702e | 636 | PyObject * _argo0 = 0; |
f6bcfd97 | 637 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
638 | |
639 | self = self; | |
f6bcfd97 | 640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_Clear",_kwnames,&_argo0)) |
af309447 | 641 | return NULL; |
1d99702e RD |
642 | if (_argo0) { |
643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_Clear. Expected _wxListItem_p."); |
af309447 RD |
646 | return NULL; |
647 | } | |
648 | } | |
cf694132 | 649 | { |
4268f798 | 650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 651 | wxListItem_Clear(_arg0); |
cf694132 | 652 | |
4268f798 | 653 | wxPyEndAllowThreads(__tstate); |
493f1553 | 654 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
655 | } Py_INCREF(Py_None); |
656 | _resultobj = Py_None; | |
af309447 RD |
657 | return _resultobj; |
658 | } | |
659 | ||
f6bcfd97 BP |
660 | #define wxListItem_ClearAttributes(_swigobj) (_swigobj->ClearAttributes()) |
661 | static PyObject *_wrap_wxListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 662 | PyObject * _resultobj; |
8ab979d7 | 663 | wxListItem * _arg0; |
1d99702e | 664 | PyObject * _argo0 = 0; |
efc5f224 | 665 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
666 | |
667 | self = self; | |
f6bcfd97 | 668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_ClearAttributes",_kwnames,&_argo0)) |
8ab979d7 | 669 | return NULL; |
1d99702e RD |
670 | if (_argo0) { |
671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_ClearAttributes. Expected _wxListItem_p."); |
8ab979d7 RD |
674 | return NULL; |
675 | } | |
676 | } | |
cf694132 | 677 | { |
4268f798 | 678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 679 | wxListItem_ClearAttributes(_arg0); |
cf694132 | 680 | |
4268f798 | 681 | wxPyEndAllowThreads(__tstate); |
493f1553 | 682 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
683 | } Py_INCREF(Py_None); |
684 | _resultobj = Py_None; | |
685 | return _resultobj; | |
686 | } | |
687 | ||
688 | #define wxListItem_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
689 | static PyObject *_wrap_wxListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
690 | PyObject * _resultobj; | |
691 | wxListItem * _arg0; | |
692 | long _arg1; | |
693 | PyObject * _argo0 = 0; | |
694 | char *_kwnames[] = { "self","mask", NULL }; | |
695 | ||
696 | self = self; | |
697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetMask",_kwnames,&_argo0,&_arg1)) | |
698 | return NULL; | |
699 | if (_argo0) { | |
700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetMask. Expected _wxListItem_p."); | |
703 | return NULL; | |
704 | } | |
705 | } | |
706 | { | |
4268f798 | 707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 708 | wxListItem_SetMask(_arg0,_arg1); |
f6bcfd97 | 709 | |
4268f798 | 710 | wxPyEndAllowThreads(__tstate); |
493f1553 | 711 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
712 | } Py_INCREF(Py_None); |
713 | _resultobj = Py_None; | |
714 | return _resultobj; | |
715 | } | |
716 | ||
717 | #define wxListItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
718 | static PyObject *_wrap_wxListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
719 | PyObject * _resultobj; | |
720 | wxListItem * _arg0; | |
721 | long _arg1; | |
722 | PyObject * _argo0 = 0; | |
723 | char *_kwnames[] = { "self","id", NULL }; | |
724 | ||
725 | self = self; | |
726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetId",_kwnames,&_argo0,&_arg1)) | |
727 | return NULL; | |
728 | if (_argo0) { | |
729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetId. Expected _wxListItem_p."); | |
732 | return NULL; | |
733 | } | |
734 | } | |
735 | { | |
4268f798 | 736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 737 | wxListItem_SetId(_arg0,_arg1); |
f6bcfd97 | 738 | |
4268f798 | 739 | wxPyEndAllowThreads(__tstate); |
493f1553 | 740 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
741 | } Py_INCREF(Py_None); |
742 | _resultobj = Py_None; | |
743 | return _resultobj; | |
744 | } | |
745 | ||
746 | #define wxListItem_SetColumn(_swigobj,_swigarg0) (_swigobj->SetColumn(_swigarg0)) | |
747 | static PyObject *_wrap_wxListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
748 | PyObject * _resultobj; | |
749 | wxListItem * _arg0; | |
750 | int _arg1; | |
751 | PyObject * _argo0 = 0; | |
752 | char *_kwnames[] = { "self","col", NULL }; | |
753 | ||
754 | self = self; | |
755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetColumn",_kwnames,&_argo0,&_arg1)) | |
756 | return NULL; | |
757 | if (_argo0) { | |
758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetColumn. Expected _wxListItem_p."); | |
761 | return NULL; | |
762 | } | |
763 | } | |
764 | { | |
4268f798 | 765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 766 | wxListItem_SetColumn(_arg0,_arg1); |
f6bcfd97 | 767 | |
4268f798 | 768 | wxPyEndAllowThreads(__tstate); |
493f1553 | 769 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
770 | } Py_INCREF(Py_None); |
771 | _resultobj = Py_None; | |
772 | return _resultobj; | |
773 | } | |
774 | ||
775 | #define wxListItem_SetState(_swigobj,_swigarg0) (_swigobj->SetState(_swigarg0)) | |
776 | static PyObject *_wrap_wxListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
777 | PyObject * _resultobj; | |
778 | wxListItem * _arg0; | |
779 | long _arg1; | |
780 | PyObject * _argo0 = 0; | |
781 | char *_kwnames[] = { "self","state", NULL }; | |
782 | ||
783 | self = self; | |
784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetState",_kwnames,&_argo0,&_arg1)) | |
785 | return NULL; | |
786 | if (_argo0) { | |
787 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
788 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetState. Expected _wxListItem_p."); | |
790 | return NULL; | |
791 | } | |
792 | } | |
793 | { | |
4268f798 | 794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 795 | wxListItem_SetState(_arg0,_arg1); |
f6bcfd97 | 796 | |
4268f798 | 797 | wxPyEndAllowThreads(__tstate); |
493f1553 | 798 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
799 | } Py_INCREF(Py_None); |
800 | _resultobj = Py_None; | |
801 | return _resultobj; | |
802 | } | |
803 | ||
804 | #define wxListItem_SetStateMask(_swigobj,_swigarg0) (_swigobj->SetStateMask(_swigarg0)) | |
805 | static PyObject *_wrap_wxListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
806 | PyObject * _resultobj; | |
807 | wxListItem * _arg0; | |
808 | long _arg1; | |
809 | PyObject * _argo0 = 0; | |
810 | char *_kwnames[] = { "self","stateMask", NULL }; | |
811 | ||
812 | self = self; | |
813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetStateMask",_kwnames,&_argo0,&_arg1)) | |
814 | return NULL; | |
815 | if (_argo0) { | |
816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetStateMask. Expected _wxListItem_p."); | |
819 | return NULL; | |
820 | } | |
821 | } | |
822 | { | |
4268f798 | 823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 824 | wxListItem_SetStateMask(_arg0,_arg1); |
f6bcfd97 | 825 | |
4268f798 | 826 | wxPyEndAllowThreads(__tstate); |
493f1553 | 827 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
828 | } Py_INCREF(Py_None); |
829 | _resultobj = Py_None; | |
830 | return _resultobj; | |
831 | } | |
832 | ||
833 | #define wxListItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
834 | static PyObject *_wrap_wxListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
835 | PyObject * _resultobj; | |
836 | wxListItem * _arg0; | |
837 | wxString * _arg1; | |
838 | PyObject * _argo0 = 0; | |
839 | PyObject * _obj1 = 0; | |
840 | char *_kwnames[] = { "self","text", NULL }; | |
841 | ||
842 | self = self; | |
843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetText",_kwnames,&_argo0,&_obj1)) | |
844 | return NULL; | |
845 | if (_argo0) { | |
846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetText. Expected _wxListItem_p."); | |
849 | return NULL; | |
850 | } | |
851 | } | |
852 | { | |
c8bc7bb8 RD |
853 | _arg1 = wxString_in_helper(_obj1); |
854 | if (_arg1 == NULL) | |
f6bcfd97 | 855 | return NULL; |
f6bcfd97 BP |
856 | } |
857 | { | |
4268f798 | 858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 859 | wxListItem_SetText(_arg0,*_arg1); |
f6bcfd97 | 860 | |
4268f798 | 861 | wxPyEndAllowThreads(__tstate); |
493f1553 | 862 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
863 | } Py_INCREF(Py_None); |
864 | _resultobj = Py_None; | |
865 | { | |
866 | if (_obj1) | |
867 | delete _arg1; | |
868 | } | |
869 | return _resultobj; | |
870 | } | |
871 | ||
872 | #define wxListItem_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0)) | |
873 | static PyObject *_wrap_wxListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
874 | PyObject * _resultobj; | |
875 | wxListItem * _arg0; | |
876 | int _arg1; | |
877 | PyObject * _argo0 = 0; | |
878 | char *_kwnames[] = { "self","image", NULL }; | |
879 | ||
880 | self = self; | |
881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetImage",_kwnames,&_argo0,&_arg1)) | |
882 | return NULL; | |
883 | if (_argo0) { | |
884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetImage. Expected _wxListItem_p."); | |
887 | return NULL; | |
888 | } | |
889 | } | |
890 | { | |
4268f798 | 891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 892 | wxListItem_SetImage(_arg0,_arg1); |
f6bcfd97 | 893 | |
4268f798 | 894 | wxPyEndAllowThreads(__tstate); |
493f1553 | 895 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
896 | } Py_INCREF(Py_None); |
897 | _resultobj = Py_None; | |
898 | return _resultobj; | |
899 | } | |
900 | ||
901 | #define wxListItem_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
902 | static PyObject *_wrap_wxListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
903 | PyObject * _resultobj; | |
904 | wxListItem * _arg0; | |
905 | long _arg1; | |
906 | PyObject * _argo0 = 0; | |
907 | char *_kwnames[] = { "self","data", NULL }; | |
908 | ||
909 | self = self; | |
910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetData",_kwnames,&_argo0,&_arg1)) | |
911 | return NULL; | |
912 | if (_argo0) { | |
913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetData. Expected _wxListItem_p."); | |
916 | return NULL; | |
917 | } | |
918 | } | |
919 | { | |
4268f798 | 920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 921 | wxListItem_SetData(_arg0,_arg1); |
f6bcfd97 | 922 | |
4268f798 | 923 | wxPyEndAllowThreads(__tstate); |
493f1553 | 924 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
925 | } Py_INCREF(Py_None); |
926 | _resultobj = Py_None; | |
927 | return _resultobj; | |
928 | } | |
929 | ||
930 | #define wxListItem_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
931 | static PyObject *_wrap_wxListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
932 | PyObject * _resultobj; | |
933 | wxListItem * _arg0; | |
934 | int _arg1; | |
935 | PyObject * _argo0 = 0; | |
936 | char *_kwnames[] = { "self","width", NULL }; | |
937 | ||
938 | self = self; | |
939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetWidth",_kwnames,&_argo0,&_arg1)) | |
940 | return NULL; | |
941 | if (_argo0) { | |
942 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
943 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetWidth. Expected _wxListItem_p."); | |
945 | return NULL; | |
946 | } | |
947 | } | |
948 | { | |
4268f798 | 949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 950 | wxListItem_SetWidth(_arg0,_arg1); |
f6bcfd97 | 951 | |
4268f798 | 952 | wxPyEndAllowThreads(__tstate); |
493f1553 | 953 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
954 | } Py_INCREF(Py_None); |
955 | _resultobj = Py_None; | |
956 | return _resultobj; | |
957 | } | |
958 | ||
959 | #define wxListItem_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0)) | |
960 | static PyObject *_wrap_wxListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
961 | PyObject * _resultobj; | |
962 | wxListItem * _arg0; | |
963 | wxListColumnFormat _arg1; | |
964 | PyObject * _argo0 = 0; | |
965 | char *_kwnames[] = { "self","align", NULL }; | |
966 | ||
967 | self = self; | |
968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetAlign",_kwnames,&_argo0,&_arg1)) | |
969 | return NULL; | |
970 | if (_argo0) { | |
971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetAlign. Expected _wxListItem_p."); | |
974 | return NULL; | |
975 | } | |
976 | } | |
977 | { | |
4268f798 | 978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 979 | wxListItem_SetAlign(_arg0,_arg1); |
f6bcfd97 | 980 | |
4268f798 | 981 | wxPyEndAllowThreads(__tstate); |
493f1553 | 982 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
983 | } Py_INCREF(Py_None); |
984 | _resultobj = Py_None; | |
985 | return _resultobj; | |
986 | } | |
987 | ||
988 | #define wxListItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
989 | static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
990 | PyObject * _resultobj; | |
991 | wxListItem * _arg0; | |
992 | wxColour * _arg1; | |
993 | PyObject * _argo0 = 0; | |
994 | wxColour temp; | |
995 | PyObject * _obj1 = 0; | |
996 | char *_kwnames[] = { "self","colText", NULL }; | |
997 | ||
998 | self = self; | |
999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
1000 | return NULL; | |
1001 | if (_argo0) { | |
1002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetTextColour. Expected _wxListItem_p."); | |
1005 | return NULL; | |
1006 | } | |
1007 | } | |
1008 | { | |
1009 | _arg1 = &temp; | |
1010 | if (! wxColour_helper(_obj1, &_arg1)) | |
1011 | return NULL; | |
1012 | } | |
1013 | { | |
4268f798 | 1014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1015 | wxListItem_SetTextColour(_arg0,*_arg1); |
f6bcfd97 | 1016 | |
4268f798 | 1017 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1018 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1019 | } Py_INCREF(Py_None); |
1020 | _resultobj = Py_None; | |
1021 | return _resultobj; | |
1022 | } | |
1023 | ||
1024 | #define wxListItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
1025 | static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1026 | PyObject * _resultobj; | |
1027 | wxListItem * _arg0; | |
1028 | wxColour * _arg1; | |
1029 | PyObject * _argo0 = 0; | |
1030 | wxColour temp; | |
1031 | PyObject * _obj1 = 0; | |
1032 | char *_kwnames[] = { "self","colBack", NULL }; | |
1033 | ||
1034 | self = self; | |
1035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
1036 | return NULL; | |
1037 | if (_argo0) { | |
1038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetBackgroundColour. Expected _wxListItem_p."); | |
1041 | return NULL; | |
1042 | } | |
1043 | } | |
1044 | { | |
1045 | _arg1 = &temp; | |
1046 | if (! wxColour_helper(_obj1, &_arg1)) | |
1047 | return NULL; | |
1048 | } | |
1049 | { | |
4268f798 | 1050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1051 | wxListItem_SetBackgroundColour(_arg0,*_arg1); |
f6bcfd97 | 1052 | |
4268f798 | 1053 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1054 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1055 | } Py_INCREF(Py_None); |
1056 | _resultobj = Py_None; | |
1057 | return _resultobj; | |
1058 | } | |
1059 | ||
1060 | #define wxListItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1061 | static PyObject *_wrap_wxListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1062 | PyObject * _resultobj; | |
1063 | wxListItem * _arg0; | |
1064 | wxFont * _arg1; | |
1065 | PyObject * _argo0 = 0; | |
1066 | PyObject * _argo1 = 0; | |
1067 | char *_kwnames[] = { "self","font", NULL }; | |
1068 | ||
1069 | self = self; | |
1070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
1071 | return NULL; | |
1072 | if (_argo0) { | |
1073 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetFont. Expected _wxListItem_p."); | |
1076 | return NULL; | |
1077 | } | |
1078 | } | |
1079 | if (_argo1) { | |
1080 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1081 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
1082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetFont. Expected _wxFont_p."); | |
1083 | return NULL; | |
1084 | } | |
1085 | } | |
1086 | { | |
4268f798 | 1087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1088 | wxListItem_SetFont(_arg0,*_arg1); |
f6bcfd97 | 1089 | |
4268f798 | 1090 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1091 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1092 | } Py_INCREF(Py_None); |
1093 | _resultobj = Py_None; | |
1094 | return _resultobj; | |
1095 | } | |
1096 | ||
1097 | #define wxListItem_GetMask(_swigobj) (_swigobj->GetMask()) | |
1098 | static PyObject *_wrap_wxListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1099 | PyObject * _resultobj; | |
1100 | long _result; | |
1101 | wxListItem * _arg0; | |
1102 | PyObject * _argo0 = 0; | |
1103 | char *_kwnames[] = { "self", NULL }; | |
1104 | ||
1105 | self = self; | |
1106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetMask",_kwnames,&_argo0)) | |
1107 | return NULL; | |
1108 | if (_argo0) { | |
1109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetMask. Expected _wxListItem_p."); | |
1112 | return NULL; | |
1113 | } | |
1114 | } | |
1115 | { | |
4268f798 | 1116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1117 | _result = (long )wxListItem_GetMask(_arg0); |
f6bcfd97 | 1118 | |
4268f798 | 1119 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1120 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1121 | } _resultobj = Py_BuildValue("l",_result); |
1122 | return _resultobj; | |
1123 | } | |
1124 | ||
1125 | #define wxListItem_GetId(_swigobj) (_swigobj->GetId()) | |
1126 | static PyObject *_wrap_wxListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1127 | PyObject * _resultobj; | |
1128 | long _result; | |
1129 | wxListItem * _arg0; | |
1130 | PyObject * _argo0 = 0; | |
1131 | char *_kwnames[] = { "self", NULL }; | |
1132 | ||
1133 | self = self; | |
1134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetId",_kwnames,&_argo0)) | |
1135 | return NULL; | |
1136 | if (_argo0) { | |
1137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetId. Expected _wxListItem_p."); | |
1140 | return NULL; | |
1141 | } | |
1142 | } | |
1143 | { | |
4268f798 | 1144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1145 | _result = (long )wxListItem_GetId(_arg0); |
f6bcfd97 | 1146 | |
4268f798 | 1147 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1148 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1149 | } _resultobj = Py_BuildValue("l",_result); |
1150 | return _resultobj; | |
1151 | } | |
1152 | ||
1153 | #define wxListItem_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
1154 | static PyObject *_wrap_wxListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1155 | PyObject * _resultobj; | |
1156 | int _result; | |
1157 | wxListItem * _arg0; | |
1158 | PyObject * _argo0 = 0; | |
1159 | char *_kwnames[] = { "self", NULL }; | |
1160 | ||
1161 | self = self; | |
1162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetColumn",_kwnames,&_argo0)) | |
1163 | return NULL; | |
1164 | if (_argo0) { | |
1165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetColumn. Expected _wxListItem_p."); | |
1168 | return NULL; | |
1169 | } | |
1170 | } | |
1171 | { | |
4268f798 | 1172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1173 | _result = (int )wxListItem_GetColumn(_arg0); |
f6bcfd97 | 1174 | |
4268f798 | 1175 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1176 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1177 | } _resultobj = Py_BuildValue("i",_result); |
1178 | return _resultobj; | |
1179 | } | |
1180 | ||
1181 | #define wxListItem_GetState(_swigobj) (_swigobj->GetState()) | |
1182 | static PyObject *_wrap_wxListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1183 | PyObject * _resultobj; | |
1184 | long _result; | |
1185 | wxListItem * _arg0; | |
1186 | PyObject * _argo0 = 0; | |
1187 | char *_kwnames[] = { "self", NULL }; | |
1188 | ||
1189 | self = self; | |
1190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetState",_kwnames,&_argo0)) | |
1191 | return NULL; | |
1192 | if (_argo0) { | |
1193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetState. Expected _wxListItem_p."); | |
1196 | return NULL; | |
1197 | } | |
1198 | } | |
1199 | { | |
4268f798 | 1200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1201 | _result = (long )wxListItem_GetState(_arg0); |
f6bcfd97 | 1202 | |
4268f798 | 1203 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1204 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1205 | } _resultobj = Py_BuildValue("l",_result); |
1206 | return _resultobj; | |
1207 | } | |
1208 | ||
1209 | #define wxListItem_GetText(_swigobj) (_swigobj->GetText()) | |
1210 | static PyObject *_wrap_wxListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1211 | PyObject * _resultobj; | |
1212 | wxString * _result; | |
1213 | wxListItem * _arg0; | |
1214 | PyObject * _argo0 = 0; | |
1215 | char *_kwnames[] = { "self", NULL }; | |
1216 | ||
1217 | self = self; | |
1218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetText",_kwnames,&_argo0)) | |
1219 | return NULL; | |
1220 | if (_argo0) { | |
1221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetText. Expected _wxListItem_p."); | |
1224 | return NULL; | |
1225 | } | |
1226 | } | |
1227 | { | |
4268f798 | 1228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1229 | const wxString & _result_ref = wxListItem_GetText(_arg0); |
f6bcfd97 BP |
1230 | _result = (wxString *) &_result_ref; |
1231 | ||
4268f798 | 1232 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1233 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1234 | }{ |
c8bc7bb8 RD |
1235 | #if wxUSE_UNICODE |
1236 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1237 | #else | |
f6bcfd97 | 1238 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1239 | #endif |
f6bcfd97 BP |
1240 | } |
1241 | return _resultobj; | |
1242 | } | |
1243 | ||
1244 | #define wxListItem_GetImage(_swigobj) (_swigobj->GetImage()) | |
1245 | static PyObject *_wrap_wxListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1246 | PyObject * _resultobj; | |
1247 | int _result; | |
1248 | wxListItem * _arg0; | |
1249 | PyObject * _argo0 = 0; | |
1250 | char *_kwnames[] = { "self", NULL }; | |
1251 | ||
1252 | self = self; | |
1253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetImage",_kwnames,&_argo0)) | |
1254 | return NULL; | |
1255 | if (_argo0) { | |
1256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetImage. Expected _wxListItem_p."); | |
1259 | return NULL; | |
1260 | } | |
1261 | } | |
1262 | { | |
4268f798 | 1263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1264 | _result = (int )wxListItem_GetImage(_arg0); |
f6bcfd97 | 1265 | |
4268f798 | 1266 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1267 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1268 | } _resultobj = Py_BuildValue("i",_result); |
1269 | return _resultobj; | |
1270 | } | |
1271 | ||
1272 | #define wxListItem_GetData(_swigobj) (_swigobj->GetData()) | |
1273 | static PyObject *_wrap_wxListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1274 | PyObject * _resultobj; | |
1275 | long _result; | |
1276 | wxListItem * _arg0; | |
1277 | PyObject * _argo0 = 0; | |
1278 | char *_kwnames[] = { "self", NULL }; | |
1279 | ||
1280 | self = self; | |
1281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetData",_kwnames,&_argo0)) | |
1282 | return NULL; | |
1283 | if (_argo0) { | |
1284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetData. Expected _wxListItem_p."); | |
1287 | return NULL; | |
1288 | } | |
1289 | } | |
1290 | { | |
4268f798 | 1291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1292 | _result = (long )wxListItem_GetData(_arg0); |
f6bcfd97 | 1293 | |
4268f798 | 1294 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1295 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1296 | } _resultobj = Py_BuildValue("l",_result); |
1297 | return _resultobj; | |
1298 | } | |
1299 | ||
1300 | #define wxListItem_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1301 | static PyObject *_wrap_wxListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1302 | PyObject * _resultobj; | |
1303 | int _result; | |
1304 | wxListItem * _arg0; | |
1305 | PyObject * _argo0 = 0; | |
1306 | char *_kwnames[] = { "self", NULL }; | |
1307 | ||
1308 | self = self; | |
1309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetWidth",_kwnames,&_argo0)) | |
1310 | return NULL; | |
1311 | if (_argo0) { | |
1312 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1313 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1314 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetWidth. Expected _wxListItem_p."); | |
1315 | return NULL; | |
1316 | } | |
1317 | } | |
1318 | { | |
4268f798 | 1319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1320 | _result = (int )wxListItem_GetWidth(_arg0); |
f6bcfd97 | 1321 | |
4268f798 | 1322 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1323 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1324 | } _resultobj = Py_BuildValue("i",_result); |
1325 | return _resultobj; | |
1326 | } | |
1327 | ||
1328 | #define wxListItem_GetAlign(_swigobj) (_swigobj->GetAlign()) | |
1329 | static PyObject *_wrap_wxListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1330 | PyObject * _resultobj; | |
1331 | wxListColumnFormat _result; | |
1332 | wxListItem * _arg0; | |
1333 | PyObject * _argo0 = 0; | |
1334 | char *_kwnames[] = { "self", NULL }; | |
1335 | ||
1336 | self = self; | |
1337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAlign",_kwnames,&_argo0)) | |
1338 | return NULL; | |
1339 | if (_argo0) { | |
1340 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1341 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAlign. Expected _wxListItem_p."); | |
1343 | return NULL; | |
1344 | } | |
1345 | } | |
1346 | { | |
4268f798 | 1347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1348 | _result = (wxListColumnFormat )wxListItem_GetAlign(_arg0); |
f6bcfd97 | 1349 | |
4268f798 | 1350 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1351 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1352 | } _resultobj = Py_BuildValue("i",_result); |
1353 | return _resultobj; | |
1354 | } | |
1355 | ||
1356 | #define wxListItem_GetAttributes(_swigobj) (_swigobj->GetAttributes()) | |
1357 | static PyObject *_wrap_wxListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1358 | PyObject * _resultobj; | |
1359 | wxListItemAttr * _result; | |
1360 | wxListItem * _arg0; | |
1361 | PyObject * _argo0 = 0; | |
1362 | char *_kwnames[] = { "self", NULL }; | |
1363 | char _ptemp[128]; | |
1364 | ||
1365 | self = self; | |
1366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAttributes",_kwnames,&_argo0)) | |
1367 | return NULL; | |
1368 | if (_argo0) { | |
1369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAttributes. Expected _wxListItem_p."); | |
1372 | return NULL; | |
1373 | } | |
1374 | } | |
1375 | { | |
4268f798 | 1376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1377 | _result = (wxListItemAttr *)wxListItem_GetAttributes(_arg0); |
f6bcfd97 | 1378 | |
4268f798 | 1379 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1380 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1381 | } if (_result) { |
1382 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
1383 | _resultobj = Py_BuildValue("s",_ptemp); | |
1384 | } else { | |
1385 | Py_INCREF(Py_None); | |
1386 | _resultobj = Py_None; | |
1387 | } | |
1388 | return _resultobj; | |
1389 | } | |
1390 | ||
1391 | #define wxListItem_HasAttributes(_swigobj) (_swigobj->HasAttributes()) | |
1392 | static PyObject *_wrap_wxListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1393 | PyObject * _resultobj; | |
1394 | bool _result; | |
1395 | wxListItem * _arg0; | |
1396 | PyObject * _argo0 = 0; | |
1397 | char *_kwnames[] = { "self", NULL }; | |
1398 | ||
1399 | self = self; | |
1400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_HasAttributes",_kwnames,&_argo0)) | |
1401 | return NULL; | |
1402 | if (_argo0) { | |
1403 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1404 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_HasAttributes. Expected _wxListItem_p."); | |
1406 | return NULL; | |
1407 | } | |
1408 | } | |
1409 | { | |
4268f798 | 1410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1411 | _result = (bool )wxListItem_HasAttributes(_arg0); |
f6bcfd97 | 1412 | |
4268f798 | 1413 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1414 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1415 | } _resultobj = Py_BuildValue("i",_result); |
1416 | return _resultobj; | |
1417 | } | |
1418 | ||
1419 | #define wxListItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
1420 | static PyObject *_wrap_wxListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1421 | PyObject * _resultobj; | |
1422 | wxColour * _result; | |
1423 | wxListItem * _arg0; | |
1424 | PyObject * _argo0 = 0; | |
1425 | char *_kwnames[] = { "self", NULL }; | |
1426 | char _ptemp[128]; | |
1427 | ||
1428 | self = self; | |
1429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetTextColour",_kwnames,&_argo0)) | |
1430 | return NULL; | |
1431 | if (_argo0) { | |
1432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetTextColour. Expected _wxListItem_p."); | |
1435 | return NULL; | |
1436 | } | |
1437 | } | |
1438 | { | |
4268f798 | 1439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1440 | _result = new wxColour (wxListItem_GetTextColour(_arg0)); |
f6bcfd97 | 1441 | |
4268f798 | 1442 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1443 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1444 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1445 | _resultobj = Py_BuildValue("s",_ptemp); | |
1446 | return _resultobj; | |
1447 | } | |
1448 | ||
1449 | #define wxListItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1450 | static PyObject *_wrap_wxListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1451 | PyObject * _resultobj; | |
1452 | wxColour * _result; | |
1453 | wxListItem * _arg0; | |
1454 | PyObject * _argo0 = 0; | |
1455 | char *_kwnames[] = { "self", NULL }; | |
1456 | char _ptemp[128]; | |
1457 | ||
1458 | self = self; | |
1459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetBackgroundColour",_kwnames,&_argo0)) | |
1460 | return NULL; | |
1461 | if (_argo0) { | |
1462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetBackgroundColour. Expected _wxListItem_p."); | |
1465 | return NULL; | |
1466 | } | |
1467 | } | |
1468 | { | |
4268f798 | 1469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1470 | _result = new wxColour (wxListItem_GetBackgroundColour(_arg0)); |
f6bcfd97 | 1471 | |
4268f798 | 1472 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1473 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1474 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1475 | _resultobj = Py_BuildValue("s",_ptemp); | |
1476 | return _resultobj; | |
1477 | } | |
1478 | ||
1479 | #define wxListItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
1480 | static PyObject *_wrap_wxListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1481 | PyObject * _resultobj; | |
1482 | wxFont * _result; | |
1483 | wxListItem * _arg0; | |
1484 | PyObject * _argo0 = 0; | |
1485 | char *_kwnames[] = { "self", NULL }; | |
1486 | char _ptemp[128]; | |
1487 | ||
1488 | self = self; | |
1489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetFont",_kwnames,&_argo0)) | |
1490 | return NULL; | |
1491 | if (_argo0) { | |
1492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetFont. Expected _wxListItem_p."); | |
1495 | return NULL; | |
1496 | } | |
1497 | } | |
1498 | { | |
4268f798 | 1499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1500 | _result = new wxFont (wxListItem_GetFont(_arg0)); |
f6bcfd97 | 1501 | |
4268f798 | 1502 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1503 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1504 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
1505 | _resultobj = Py_BuildValue("s",_ptemp); | |
1506 | return _resultobj; | |
1507 | } | |
1508 | ||
1509 | #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval) | |
1510 | static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1511 | PyObject * _resultobj; | |
1512 | long _result; | |
1513 | wxListItem * _arg0; | |
1514 | long _arg1; | |
1515 | PyObject * _argo0 = 0; | |
1516 | char *_kwnames[] = { "self","m_mask", NULL }; | |
1517 | ||
1518 | self = self; | |
1519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1)) | |
1520 | return NULL; | |
1521 | if (_argo0) { | |
1522 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1523 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p."); | |
1525 | return NULL; | |
1526 | } | |
1527 | } | |
1528 | { | |
4268f798 | 1529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1530 | _result = (long )wxListItem_m_mask_set(_arg0,_arg1); |
f6bcfd97 | 1531 | |
4268f798 | 1532 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1533 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1534 | } _resultobj = Py_BuildValue("l",_result); |
1535 | return _resultobj; | |
1536 | } | |
1537 | ||
1538 | #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask) | |
1539 | static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1540 | PyObject * _resultobj; | |
1541 | long _result; | |
1542 | wxListItem * _arg0; | |
1543 | PyObject * _argo0 = 0; | |
1544 | char *_kwnames[] = { "self", NULL }; | |
1545 | ||
1546 | self = self; | |
1547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0)) | |
1548 | return NULL; | |
1549 | if (_argo0) { | |
1550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p."); | |
1553 | return NULL; | |
1554 | } | |
1555 | } | |
1556 | { | |
4268f798 | 1557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1558 | _result = (long )wxListItem_m_mask_get(_arg0); |
f6bcfd97 | 1559 | |
4268f798 | 1560 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1561 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1562 | } _resultobj = Py_BuildValue("l",_result); |
1563 | return _resultobj; | |
1564 | } | |
1565 | ||
1566 | #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval) | |
1567 | static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1568 | PyObject * _resultobj; | |
1569 | long _result; | |
1570 | wxListItem * _arg0; | |
1571 | long _arg1; | |
1572 | PyObject * _argo0 = 0; | |
1573 | char *_kwnames[] = { "self","m_itemId", NULL }; | |
1574 | ||
1575 | self = self; | |
1576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1)) | |
1577 | return NULL; | |
1578 | if (_argo0) { | |
1579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p."); | |
1582 | return NULL; | |
1583 | } | |
1584 | } | |
1585 | { | |
4268f798 | 1586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1587 | _result = (long )wxListItem_m_itemId_set(_arg0,_arg1); |
f6bcfd97 | 1588 | |
4268f798 | 1589 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1590 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1591 | } _resultobj = Py_BuildValue("l",_result); |
1592 | return _resultobj; | |
1593 | } | |
1594 | ||
1595 | #define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId) | |
1596 | static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1597 | PyObject * _resultobj; | |
1598 | long _result; | |
1599 | wxListItem * _arg0; | |
1600 | PyObject * _argo0 = 0; | |
1601 | char *_kwnames[] = { "self", NULL }; | |
1602 | ||
1603 | self = self; | |
1604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0)) | |
1605 | return NULL; | |
1606 | if (_argo0) { | |
1607 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1608 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p."); | |
1610 | return NULL; | |
1611 | } | |
1612 | } | |
1613 | { | |
4268f798 | 1614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1615 | _result = (long )wxListItem_m_itemId_get(_arg0); |
f6bcfd97 | 1616 | |
4268f798 | 1617 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1618 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1619 | } _resultobj = Py_BuildValue("l",_result); |
1620 | return _resultobj; | |
1621 | } | |
1622 | ||
1623 | #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
1624 | static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1625 | PyObject * _resultobj; | |
1626 | int _result; | |
1627 | wxListItem * _arg0; | |
1628 | int _arg1; | |
1629 | PyObject * _argo0 = 0; | |
1630 | char *_kwnames[] = { "self","m_col", NULL }; | |
1631 | ||
1632 | self = self; | |
1633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1)) | |
1634 | return NULL; | |
1635 | if (_argo0) { | |
1636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p."); | |
1639 | return NULL; | |
1640 | } | |
1641 | } | |
1642 | { | |
4268f798 | 1643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1644 | _result = (int )wxListItem_m_col_set(_arg0,_arg1); |
f6bcfd97 | 1645 | |
4268f798 | 1646 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1647 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1648 | } _resultobj = Py_BuildValue("i",_result); |
1649 | return _resultobj; | |
1650 | } | |
1651 | ||
1652 | #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
1653 | static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1654 | PyObject * _resultobj; | |
1655 | int _result; | |
1656 | wxListItem * _arg0; | |
1657 | PyObject * _argo0 = 0; | |
1658 | char *_kwnames[] = { "self", NULL }; | |
1659 | ||
1660 | self = self; | |
1661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0)) | |
1662 | return NULL; | |
1663 | if (_argo0) { | |
1664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p."); | |
1667 | return NULL; | |
1668 | } | |
1669 | } | |
1670 | { | |
4268f798 | 1671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1672 | _result = (int )wxListItem_m_col_get(_arg0); |
f6bcfd97 | 1673 | |
4268f798 | 1674 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1675 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1676 | } _resultobj = Py_BuildValue("i",_result); |
1677 | return _resultobj; | |
1678 | } | |
1679 | ||
1680 | #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval) | |
1681 | static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1682 | PyObject * _resultobj; | |
1683 | long _result; | |
1684 | wxListItem * _arg0; | |
1685 | long _arg1; | |
1686 | PyObject * _argo0 = 0; | |
1687 | char *_kwnames[] = { "self","m_state", NULL }; | |
1688 | ||
1689 | self = self; | |
1690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1)) | |
1691 | return NULL; | |
1692 | if (_argo0) { | |
1693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p."); | |
1696 | return NULL; | |
1697 | } | |
1698 | } | |
1699 | { | |
4268f798 | 1700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1701 | _result = (long )wxListItem_m_state_set(_arg0,_arg1); |
f6bcfd97 | 1702 | |
4268f798 | 1703 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1704 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1705 | } _resultobj = Py_BuildValue("l",_result); |
1706 | return _resultobj; | |
1707 | } | |
1708 | ||
1709 | #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state) | |
1710 | static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1711 | PyObject * _resultobj; | |
1712 | long _result; | |
1713 | wxListItem * _arg0; | |
1714 | PyObject * _argo0 = 0; | |
1715 | char *_kwnames[] = { "self", NULL }; | |
1716 | ||
1717 | self = self; | |
1718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0)) | |
1719 | return NULL; | |
1720 | if (_argo0) { | |
1721 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p."); | |
1724 | return NULL; | |
1725 | } | |
1726 | } | |
1727 | { | |
4268f798 | 1728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1729 | _result = (long )wxListItem_m_state_get(_arg0); |
f6bcfd97 | 1730 | |
4268f798 | 1731 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1732 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1733 | } _resultobj = Py_BuildValue("l",_result); |
1734 | return _resultobj; | |
1735 | } | |
1736 | ||
1737 | #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval) | |
1738 | static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1739 | PyObject * _resultobj; | |
1740 | long _result; | |
1741 | wxListItem * _arg0; | |
1742 | long _arg1; | |
1743 | PyObject * _argo0 = 0; | |
1744 | char *_kwnames[] = { "self","m_stateMask", NULL }; | |
1745 | ||
1746 | self = self; | |
1747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1)) | |
1748 | return NULL; | |
1749 | if (_argo0) { | |
1750 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1751 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p."); | |
1753 | return NULL; | |
1754 | } | |
1755 | } | |
1756 | { | |
4268f798 | 1757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1758 | _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1); |
f6bcfd97 | 1759 | |
4268f798 | 1760 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1761 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1762 | } _resultobj = Py_BuildValue("l",_result); |
1763 | return _resultobj; | |
1764 | } | |
1765 | ||
1766 | #define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask) | |
1767 | static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1768 | PyObject * _resultobj; | |
1769 | long _result; | |
1770 | wxListItem * _arg0; | |
1771 | PyObject * _argo0 = 0; | |
1772 | char *_kwnames[] = { "self", NULL }; | |
1773 | ||
1774 | self = self; | |
1775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0)) | |
1776 | return NULL; | |
1777 | if (_argo0) { | |
1778 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1779 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p."); | |
1781 | return NULL; | |
1782 | } | |
1783 | } | |
1784 | { | |
4268f798 | 1785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1786 | _result = (long )wxListItem_m_stateMask_get(_arg0); |
f6bcfd97 | 1787 | |
4268f798 | 1788 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1789 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1790 | } _resultobj = Py_BuildValue("l",_result); |
1791 | return _resultobj; | |
1792 | } | |
1793 | ||
1794 | #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval) | |
1795 | static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1796 | PyObject * _resultobj; | |
1797 | wxString * _result; | |
1798 | wxListItem * _arg0; | |
1799 | wxString * _arg1; | |
1800 | PyObject * _argo0 = 0; | |
1801 | PyObject * _obj1 = 0; | |
1802 | char *_kwnames[] = { "self","m_text", NULL }; | |
1803 | ||
1804 | self = self; | |
1805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1)) | |
1806 | return NULL; | |
1807 | if (_argo0) { | |
1808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p."); | |
1811 | return NULL; | |
1812 | } | |
1813 | } | |
1814 | { | |
c8bc7bb8 RD |
1815 | _arg1 = wxString_in_helper(_obj1); |
1816 | if (_arg1 == NULL) | |
f6bcfd97 | 1817 | return NULL; |
f6bcfd97 BP |
1818 | } |
1819 | { | |
4268f798 | 1820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1821 | _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1); |
f6bcfd97 | 1822 | |
4268f798 | 1823 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1824 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1825 | }{ |
c8bc7bb8 RD |
1826 | #if wxUSE_UNICODE |
1827 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1828 | #else | |
f6bcfd97 | 1829 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1830 | #endif |
f6bcfd97 BP |
1831 | } |
1832 | { | |
1833 | if (_obj1) | |
1834 | delete _arg1; | |
1835 | } | |
1836 | return _resultobj; | |
1837 | } | |
1838 | ||
1839 | #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text) | |
1840 | static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1841 | PyObject * _resultobj; | |
1842 | wxString * _result; | |
1843 | wxListItem * _arg0; | |
1844 | PyObject * _argo0 = 0; | |
1845 | char *_kwnames[] = { "self", NULL }; | |
1846 | ||
1847 | self = self; | |
1848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0)) | |
1849 | return NULL; | |
1850 | if (_argo0) { | |
1851 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1852 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p."); | |
1854 | return NULL; | |
1855 | } | |
1856 | } | |
1857 | { | |
4268f798 | 1858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1859 | _result = (wxString *)wxListItem_m_text_get(_arg0); |
f6bcfd97 | 1860 | |
4268f798 | 1861 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1862 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1863 | }{ |
c8bc7bb8 RD |
1864 | #if wxUSE_UNICODE |
1865 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1866 | #else | |
f6bcfd97 | 1867 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1868 | #endif |
f6bcfd97 BP |
1869 | } |
1870 | return _resultobj; | |
1871 | } | |
1872 | ||
1873 | #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval) | |
1874 | static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1875 | PyObject * _resultobj; | |
1876 | int _result; | |
1877 | wxListItem * _arg0; | |
1878 | int _arg1; | |
1879 | PyObject * _argo0 = 0; | |
1880 | char *_kwnames[] = { "self","m_image", NULL }; | |
1881 | ||
1882 | self = self; | |
1883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1)) | |
1884 | return NULL; | |
1885 | if (_argo0) { | |
1886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p."); | |
1889 | return NULL; | |
1890 | } | |
1891 | } | |
1892 | { | |
4268f798 | 1893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1894 | _result = (int )wxListItem_m_image_set(_arg0,_arg1); |
f6bcfd97 | 1895 | |
4268f798 | 1896 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1897 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1898 | } _resultobj = Py_BuildValue("i",_result); |
1899 | return _resultobj; | |
1900 | } | |
1901 | ||
1902 | #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image) | |
1903 | static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1904 | PyObject * _resultobj; | |
1905 | int _result; | |
1906 | wxListItem * _arg0; | |
1907 | PyObject * _argo0 = 0; | |
1908 | char *_kwnames[] = { "self", NULL }; | |
1909 | ||
1910 | self = self; | |
1911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0)) | |
1912 | return NULL; | |
1913 | if (_argo0) { | |
1914 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1915 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p."); | |
1917 | return NULL; | |
1918 | } | |
1919 | } | |
1920 | { | |
4268f798 | 1921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1922 | _result = (int )wxListItem_m_image_get(_arg0); |
f6bcfd97 | 1923 | |
4268f798 | 1924 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1925 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1926 | } _resultobj = Py_BuildValue("i",_result); |
1927 | return _resultobj; | |
1928 | } | |
1929 | ||
1930 | #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval) | |
1931 | static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1932 | PyObject * _resultobj; | |
1933 | long _result; | |
1934 | wxListItem * _arg0; | |
1935 | long _arg1; | |
1936 | PyObject * _argo0 = 0; | |
1937 | char *_kwnames[] = { "self","m_data", NULL }; | |
1938 | ||
1939 | self = self; | |
1940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1)) | |
1941 | return NULL; | |
1942 | if (_argo0) { | |
1943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p."); | |
1946 | return NULL; | |
1947 | } | |
1948 | } | |
1949 | { | |
4268f798 | 1950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1951 | _result = (long )wxListItem_m_data_set(_arg0,_arg1); |
f6bcfd97 | 1952 | |
4268f798 | 1953 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1954 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1955 | } _resultobj = Py_BuildValue("l",_result); |
1956 | return _resultobj; | |
1957 | } | |
1958 | ||
1959 | #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data) | |
1960 | static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1961 | PyObject * _resultobj; | |
1962 | long _result; | |
1963 | wxListItem * _arg0; | |
1964 | PyObject * _argo0 = 0; | |
1965 | char *_kwnames[] = { "self", NULL }; | |
1966 | ||
1967 | self = self; | |
1968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0)) | |
1969 | return NULL; | |
1970 | if (_argo0) { | |
1971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p."); | |
1974 | return NULL; | |
1975 | } | |
1976 | } | |
1977 | { | |
4268f798 | 1978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1979 | _result = (long )wxListItem_m_data_get(_arg0); |
f6bcfd97 | 1980 | |
4268f798 | 1981 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1982 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1983 | } _resultobj = Py_BuildValue("l",_result); |
1984 | return _resultobj; | |
1985 | } | |
1986 | ||
1987 | #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval) | |
1988 | static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1989 | PyObject * _resultobj; | |
1990 | int _result; | |
1991 | wxListItem * _arg0; | |
1992 | int _arg1; | |
1993 | PyObject * _argo0 = 0; | |
1994 | char *_kwnames[] = { "self","m_format", NULL }; | |
1995 | ||
1996 | self = self; | |
1997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1)) | |
1998 | return NULL; | |
1999 | if (_argo0) { | |
2000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
2002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p."); | |
2003 | return NULL; | |
2004 | } | |
2005 | } | |
2006 | { | |
4268f798 | 2007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2008 | _result = (int )wxListItem_m_format_set(_arg0,_arg1); |
f6bcfd97 | 2009 | |
4268f798 | 2010 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2011 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2012 | } _resultobj = Py_BuildValue("i",_result); |
2013 | return _resultobj; | |
2014 | } | |
2015 | ||
2016 | #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format) | |
2017 | static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2018 | PyObject * _resultobj; | |
2019 | int _result; | |
2020 | wxListItem * _arg0; | |
2021 | PyObject * _argo0 = 0; | |
2022 | char *_kwnames[] = { "self", NULL }; | |
2023 | ||
2024 | self = self; | |
2025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0)) | |
2026 | return NULL; | |
2027 | if (_argo0) { | |
2028 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2029 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
2030 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p."); | |
2031 | return NULL; | |
2032 | } | |
2033 | } | |
2034 | { | |
4268f798 | 2035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2036 | _result = (int )wxListItem_m_format_get(_arg0); |
f6bcfd97 | 2037 | |
4268f798 | 2038 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2039 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2040 | } _resultobj = Py_BuildValue("i",_result); |
2041 | return _resultobj; | |
8ab979d7 RD |
2042 | } |
2043 | ||
f6bcfd97 BP |
2044 | #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval) |
2045 | static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2046 | PyObject * _resultobj; |
f6bcfd97 | 2047 | int _result; |
af309447 | 2048 | wxListItem * _arg0; |
f6bcfd97 | 2049 | int _arg1; |
1d99702e | 2050 | PyObject * _argo0 = 0; |
f6bcfd97 | 2051 | char *_kwnames[] = { "self","m_width", NULL }; |
af309447 RD |
2052 | |
2053 | self = self; | |
f6bcfd97 | 2054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2055 | return NULL; |
1d99702e RD |
2056 | if (_argo0) { |
2057 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2058 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p."); |
af309447 RD |
2060 | return NULL; |
2061 | } | |
2062 | } | |
cf694132 | 2063 | { |
4268f798 | 2064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2065 | _result = (int )wxListItem_m_width_set(_arg0,_arg1); |
cf694132 | 2066 | |
4268f798 | 2067 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2068 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2069 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2070 | return _resultobj; |
2071 | } | |
2072 | ||
f6bcfd97 BP |
2073 | #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width) |
2074 | static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2075 | PyObject * _resultobj; |
f6bcfd97 | 2076 | int _result; |
8ab979d7 | 2077 | wxListItem * _arg0; |
1d99702e | 2078 | PyObject * _argo0 = 0; |
efc5f224 | 2079 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2080 | |
2081 | self = self; | |
f6bcfd97 | 2082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0)) |
8ab979d7 | 2083 | return NULL; |
1d99702e RD |
2084 | if (_argo0) { |
2085 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2086 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 BP |
2087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p."); |
2088 | return NULL; | |
2089 | } | |
2090 | } | |
2091 | { | |
4268f798 | 2092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2093 | _result = (int )wxListItem_m_width_get(_arg0); |
f6bcfd97 | 2094 | |
4268f798 | 2095 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2096 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2097 | } _resultobj = Py_BuildValue("i",_result); |
2098 | return _resultobj; | |
2099 | } | |
2100 | ||
c368d904 RD |
2101 | static void *SwigwxListEventTowxNotifyEvent(void *ptr) { |
2102 | wxListEvent *src; | |
2103 | wxNotifyEvent *dest; | |
2104 | src = (wxListEvent *) ptr; | |
2105 | dest = (wxNotifyEvent *) src; | |
2106 | return (void *) dest; | |
2107 | } | |
2108 | ||
f6bcfd97 BP |
2109 | static void *SwigwxListEventTowxCommandEvent(void *ptr) { |
2110 | wxListEvent *src; | |
2111 | wxCommandEvent *dest; | |
2112 | src = (wxListEvent *) ptr; | |
2113 | dest = (wxCommandEvent *) src; | |
2114 | return (void *) dest; | |
2115 | } | |
2116 | ||
2117 | static void *SwigwxListEventTowxEvent(void *ptr) { | |
2118 | wxListEvent *src; | |
2119 | wxEvent *dest; | |
2120 | src = (wxListEvent *) ptr; | |
2121 | dest = (wxEvent *) src; | |
2122 | return (void *) dest; | |
2123 | } | |
2124 | ||
9416aa89 RD |
2125 | static void *SwigwxListEventTowxObject(void *ptr) { |
2126 | wxListEvent *src; | |
2127 | wxObject *dest; | |
2128 | src = (wxListEvent *) ptr; | |
2129 | dest = (wxObject *) src; | |
2130 | return (void *) dest; | |
2131 | } | |
2132 | ||
6d19860f RD |
2133 | #define new_wxListEvent(_swigarg0,_swigarg1) (new wxListEvent(_swigarg0,_swigarg1)) |
2134 | static PyObject *_wrap_new_wxListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2135 | PyObject * _resultobj; | |
2136 | wxListEvent * _result; | |
2137 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
2138 | int _arg1 = (int ) 0; | |
2139 | char *_kwnames[] = { "commandType","id", NULL }; | |
2140 | char _ptemp[128]; | |
2141 | ||
2142 | self = self; | |
2143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxListEvent",_kwnames,&_arg0,&_arg1)) | |
2144 | return NULL; | |
2145 | { | |
4268f798 | 2146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2147 | _result = (wxListEvent *)new_wxListEvent(_arg0,_arg1); |
6d19860f | 2148 | |
4268f798 | 2149 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
2150 | if (PyErr_Occurred()) return NULL; |
2151 | } if (_result) { | |
2152 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListEvent_p"); | |
2153 | _resultobj = Py_BuildValue("s",_ptemp); | |
2154 | } else { | |
2155 | Py_INCREF(Py_None); | |
2156 | _resultobj = Py_None; | |
2157 | } | |
2158 | return _resultobj; | |
2159 | } | |
2160 | ||
f6bcfd97 BP |
2161 | #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code) |
2162 | static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2163 | PyObject * _resultobj; | |
2164 | int _result; | |
2165 | wxListEvent * _arg0; | |
2166 | PyObject * _argo0 = 0; | |
2167 | char *_kwnames[] = { "self", NULL }; | |
2168 | ||
2169 | self = self; | |
2170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0)) | |
2171 | return NULL; | |
2172 | if (_argo0) { | |
2173 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2174 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_get. Expected _wxListEvent_p."); | |
2176 | return NULL; | |
2177 | } | |
2178 | } | |
2179 | { | |
4268f798 | 2180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2181 | _result = (int )wxListEvent_m_code_get(_arg0); |
f6bcfd97 | 2182 | |
4268f798 | 2183 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2184 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2185 | } _resultobj = Py_BuildValue("i",_result); |
2186 | return _resultobj; | |
2187 | } | |
2188 | ||
ebf4302c RD |
2189 | #define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex) |
2190 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 BP |
2191 | PyObject * _resultobj; |
2192 | long _result; | |
2193 | wxListEvent * _arg0; | |
2194 | PyObject * _argo0 = 0; | |
2195 | char *_kwnames[] = { "self", NULL }; | |
2196 | ||
2197 | self = self; | |
ebf4302c | 2198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0)) |
f6bcfd97 BP |
2199 | return NULL; |
2200 | if (_argo0) { | |
2201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
ebf4302c | 2203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p."); |
f6bcfd97 BP |
2204 | return NULL; |
2205 | } | |
2206 | } | |
2207 | { | |
4268f798 | 2208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2209 | _result = (long )wxListEvent_m_oldItemIndex_get(_arg0); |
f6bcfd97 | 2210 | |
4268f798 | 2211 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2212 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2213 | } _resultobj = Py_BuildValue("l",_result); |
2214 | return _resultobj; | |
2215 | } | |
2216 | ||
ebf4302c RD |
2217 | #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex) |
2218 | static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2219 | PyObject * _resultobj; |
ebf4302c | 2220 | long _result; |
f6bcfd97 | 2221 | wxListEvent * _arg0; |
1d99702e | 2222 | PyObject * _argo0 = 0; |
f6bcfd97 | 2223 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2224 | |
2225 | self = self; | |
ebf4302c | 2226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0)) |
af309447 | 2227 | return NULL; |
1d99702e RD |
2228 | if (_argo0) { |
2229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
ebf4302c | 2231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p."); |
af309447 RD |
2232 | return NULL; |
2233 | } | |
2234 | } | |
cf694132 | 2235 | { |
4268f798 | 2236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2237 | _result = (long )wxListEvent_m_itemIndex_get(_arg0); |
cf694132 | 2238 | |
4268f798 | 2239 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2240 | if (PyErr_Occurred()) return NULL; |
ebf4302c | 2241 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2242 | return _resultobj; |
2243 | } | |
2244 | ||
ebf4302c RD |
2245 | #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col) |
2246 | static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2247 | PyObject * _resultobj; |
ebf4302c | 2248 | int _result; |
f6bcfd97 | 2249 | wxListEvent * _arg0; |
1d99702e | 2250 | PyObject * _argo0 = 0; |
f6bcfd97 | 2251 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2252 | |
2253 | self = self; | |
ebf4302c | 2254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0)) |
af309447 | 2255 | return NULL; |
1d99702e RD |
2256 | if (_argo0) { |
2257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
ebf4302c | 2259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p."); |
af309447 RD |
2260 | return NULL; |
2261 | } | |
2262 | } | |
cf694132 | 2263 | { |
4268f798 | 2264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2265 | _result = (int )wxListEvent_m_col_get(_arg0); |
cf694132 | 2266 | |
4268f798 | 2267 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2268 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2269 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2270 | return _resultobj; |
2271 | } | |
2272 | ||
f6bcfd97 BP |
2273 | #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag) |
2274 | static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2275 | PyObject * _resultobj; |
f6bcfd97 BP |
2276 | wxPoint * _result; |
2277 | wxListEvent * _arg0; | |
2278 | PyObject * _argo0 = 0; | |
2279 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
2280 | char _ptemp[128]; |
2281 | ||
2282 | self = self; | |
f6bcfd97 BP |
2283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0)) |
2284 | return NULL; | |
2285 | if (_argo0) { | |
2286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p."); | |
8ab979d7 | 2289 | return NULL; |
f6bcfd97 BP |
2290 | } |
2291 | } | |
cf694132 | 2292 | { |
4268f798 | 2293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2294 | _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0); |
cf694132 | 2295 | |
4268f798 | 2296 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2297 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2298 | } if (_result) { |
f6bcfd97 | 2299 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); |
1d99702e RD |
2300 | _resultobj = Py_BuildValue("s",_ptemp); |
2301 | } else { | |
2302 | Py_INCREF(Py_None); | |
2303 | _resultobj = Py_None; | |
2304 | } | |
8ab979d7 RD |
2305 | return _resultobj; |
2306 | } | |
2307 | ||
f6bcfd97 BP |
2308 | #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item) |
2309 | static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2310 | PyObject * _resultobj; |
f6bcfd97 | 2311 | wxListItem * _result; |
af309447 | 2312 | wxListEvent * _arg0; |
1d99702e | 2313 | PyObject * _argo0 = 0; |
f6bcfd97 | 2314 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2315 | |
2316 | self = self; | |
f6bcfd97 | 2317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0)) |
af309447 | 2318 | return NULL; |
1d99702e RD |
2319 | if (_argo0) { |
2320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p."); |
af309447 RD |
2323 | return NULL; |
2324 | } | |
2325 | } | |
cf694132 | 2326 | { |
4268f798 | 2327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2328 | _result = (wxListItem *)wxListEvent_m_item_get(_arg0); |
cf694132 | 2329 | |
4268f798 | 2330 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2331 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2332 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
2333 | return _resultobj; |
2334 | } | |
2335 | ||
f6bcfd97 BP |
2336 | #define wxListEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
2337 | static PyObject *_wrap_wxListEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2338 | PyObject * _resultobj; |
2339 | int _result; | |
2340 | wxListEvent * _arg0; | |
1d99702e | 2341 | PyObject * _argo0 = 0; |
efc5f224 | 2342 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2343 | |
2344 | self = self; | |
f6bcfd97 | 2345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 2346 | return NULL; |
1d99702e RD |
2347 | if (_argo0) { |
2348 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2349 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCode. Expected _wxListEvent_p."); |
8ab979d7 RD |
2351 | return NULL; |
2352 | } | |
2353 | } | |
cf694132 | 2354 | { |
4268f798 | 2355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2356 | _result = (int )wxListEvent_GetCode(_arg0); |
cf694132 | 2357 | |
4268f798 | 2358 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2359 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2360 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2361 | return _resultobj; |
2362 | } | |
2363 | ||
f6bcfd97 BP |
2364 | #define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex()) |
2365 | static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2366 | PyObject * _resultobj; |
2367 | long _result; | |
2368 | wxListEvent * _arg0; | |
1d99702e | 2369 | PyObject * _argo0 = 0; |
f6bcfd97 | 2370 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2371 | |
2372 | self = self; | |
f6bcfd97 | 2373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0)) |
af309447 | 2374 | return NULL; |
1d99702e RD |
2375 | if (_argo0) { |
2376 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2377 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2378 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p."); |
af309447 RD |
2379 | return NULL; |
2380 | } | |
2381 | } | |
cf694132 | 2382 | { |
4268f798 | 2383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2384 | _result = (long )wxListEvent_GetIndex(_arg0); |
cf694132 | 2385 | |
4268f798 | 2386 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2387 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2388 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2389 | return _resultobj; |
2390 | } | |
2391 | ||
f6bcfd97 BP |
2392 | #define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn()) |
2393 | static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2394 | PyObject * _resultobj; |
f6bcfd97 | 2395 | int _result; |
8ab979d7 | 2396 | wxListEvent * _arg0; |
1d99702e | 2397 | PyObject * _argo0 = 0; |
efc5f224 | 2398 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2399 | |
2400 | self = self; | |
f6bcfd97 | 2401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0)) |
8ab979d7 | 2402 | return NULL; |
1d99702e RD |
2403 | if (_argo0) { |
2404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p."); |
8ab979d7 RD |
2407 | return NULL; |
2408 | } | |
2409 | } | |
cf694132 | 2410 | { |
4268f798 | 2411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2412 | _result = (int )wxListEvent_GetColumn(_arg0); |
cf694132 | 2413 | |
4268f798 | 2414 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2415 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2416 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2417 | return _resultobj; |
2418 | } | |
2419 | ||
f6bcfd97 BP |
2420 | #define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
2421 | static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2422 | PyObject * _resultobj; |
f6bcfd97 | 2423 | wxPoint * _result; |
8ab979d7 | 2424 | wxListEvent * _arg0; |
1d99702e | 2425 | PyObject * _argo0 = 0; |
efc5f224 | 2426 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2427 | char _ptemp[128]; |
8ab979d7 RD |
2428 | |
2429 | self = self; | |
f6bcfd97 | 2430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 2431 | return NULL; |
1d99702e RD |
2432 | if (_argo0) { |
2433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetPoint. Expected _wxListEvent_p."); |
8ab979d7 RD |
2436 | return NULL; |
2437 | } | |
2438 | } | |
cf694132 | 2439 | { |
4268f798 | 2440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2441 | _result = new wxPoint (wxListEvent_GetPoint(_arg0)); |
cf694132 | 2442 | |
4268f798 | 2443 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2444 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2445 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2446 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
2447 | return _resultobj; |
2448 | } | |
2449 | ||
f6bcfd97 BP |
2450 | #define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
2451 | static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2452 | PyObject * _resultobj; |
f6bcfd97 | 2453 | wxString * _result; |
af309447 | 2454 | wxListEvent * _arg0; |
1d99702e | 2455 | PyObject * _argo0 = 0; |
f6bcfd97 | 2456 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2457 | |
2458 | self = self; | |
f6bcfd97 | 2459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetLabel",_kwnames,&_argo0)) |
af309447 | 2460 | return NULL; |
1d99702e RD |
2461 | if (_argo0) { |
2462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetLabel. Expected _wxListEvent_p."); |
af309447 RD |
2465 | return NULL; |
2466 | } | |
2467 | } | |
cf694132 | 2468 | { |
4268f798 | 2469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2470 | const wxString & _result_ref = wxListEvent_GetLabel(_arg0); |
f6bcfd97 | 2471 | _result = (wxString *) &_result_ref; |
cf694132 | 2472 | |
4268f798 | 2473 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2474 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2475 | }{ |
c8bc7bb8 RD |
2476 | #if wxUSE_UNICODE |
2477 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2478 | #else | |
f6bcfd97 | 2479 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2480 | #endif |
f6bcfd97 | 2481 | } |
af309447 RD |
2482 | return _resultobj; |
2483 | } | |
2484 | ||
f6bcfd97 BP |
2485 | #define wxListEvent_GetText(_swigobj) (_swigobj->GetText()) |
2486 | static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2487 | PyObject * _resultobj; |
f6bcfd97 | 2488 | wxString * _result; |
8ab979d7 | 2489 | wxListEvent * _arg0; |
1d99702e | 2490 | PyObject * _argo0 = 0; |
efc5f224 | 2491 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2492 | |
2493 | self = self; | |
f6bcfd97 | 2494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0)) |
8ab979d7 | 2495 | return NULL; |
1d99702e RD |
2496 | if (_argo0) { |
2497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p."); |
8ab979d7 RD |
2500 | return NULL; |
2501 | } | |
2502 | } | |
cf694132 | 2503 | { |
4268f798 | 2504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2505 | const wxString & _result_ref = wxListEvent_GetText(_arg0); |
f6bcfd97 | 2506 | _result = (wxString *) &_result_ref; |
cf694132 | 2507 | |
4268f798 | 2508 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2509 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2510 | }{ |
c8bc7bb8 RD |
2511 | #if wxUSE_UNICODE |
2512 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2513 | #else | |
f6bcfd97 | 2514 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2515 | #endif |
f6bcfd97 | 2516 | } |
8ab979d7 RD |
2517 | return _resultobj; |
2518 | } | |
2519 | ||
f6bcfd97 BP |
2520 | #define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage()) |
2521 | static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2522 | PyObject * _resultobj; |
f6bcfd97 | 2523 | int _result; |
af309447 | 2524 | wxListEvent * _arg0; |
1d99702e | 2525 | PyObject * _argo0 = 0; |
f6bcfd97 | 2526 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2527 | |
2528 | self = self; | |
f6bcfd97 | 2529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0)) |
af309447 | 2530 | return NULL; |
1d99702e RD |
2531 | if (_argo0) { |
2532 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2533 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p."); |
af309447 RD |
2535 | return NULL; |
2536 | } | |
2537 | } | |
cf694132 | 2538 | { |
4268f798 | 2539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2540 | _result = (int )wxListEvent_GetImage(_arg0); |
cf694132 | 2541 | |
4268f798 | 2542 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2543 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2544 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2545 | return _resultobj; |
2546 | } | |
2547 | ||
f6bcfd97 BP |
2548 | #define wxListEvent_GetData(_swigobj) (_swigobj->GetData()) |
2549 | static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2550 | PyObject * _resultobj; |
f6bcfd97 | 2551 | long _result; |
8ab979d7 | 2552 | wxListEvent * _arg0; |
1d99702e | 2553 | PyObject * _argo0 = 0; |
efc5f224 | 2554 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2555 | |
2556 | self = self; | |
f6bcfd97 | 2557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0)) |
8ab979d7 | 2558 | return NULL; |
1d99702e RD |
2559 | if (_argo0) { |
2560 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2561 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p."); |
8ab979d7 RD |
2563 | return NULL; |
2564 | } | |
2565 | } | |
cf694132 | 2566 | { |
4268f798 | 2567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2568 | _result = (long )wxListEvent_GetData(_arg0); |
cf694132 | 2569 | |
4268f798 | 2570 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2571 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2572 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2573 | return _resultobj; |
2574 | } | |
2575 | ||
f6bcfd97 BP |
2576 | #define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask()) |
2577 | static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2578 | PyObject * _resultobj; |
f6bcfd97 | 2579 | long _result; |
af309447 | 2580 | wxListEvent * _arg0; |
1d99702e | 2581 | PyObject * _argo0 = 0; |
f6bcfd97 | 2582 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2583 | |
2584 | self = self; | |
f6bcfd97 | 2585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetMask",_kwnames,&_argo0)) |
af309447 | 2586 | return NULL; |
1d99702e RD |
2587 | if (_argo0) { |
2588 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2589 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetMask. Expected _wxListEvent_p."); |
af309447 RD |
2591 | return NULL; |
2592 | } | |
2593 | } | |
cf694132 | 2594 | { |
4268f798 | 2595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2596 | _result = (long )wxListEvent_GetMask(_arg0); |
cf694132 | 2597 | |
4268f798 | 2598 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2599 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2600 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2601 | return _resultobj; |
2602 | } | |
2603 | ||
f6bcfd97 BP |
2604 | #define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
2605 | static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2606 | PyObject * _resultobj; |
2607 | wxListItem * _result; | |
2608 | wxListEvent * _arg0; | |
1d99702e | 2609 | PyObject * _argo0 = 0; |
efc5f224 | 2610 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2611 | |
2612 | self = self; | |
f6bcfd97 | 2613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 2614 | return NULL; |
1d99702e RD |
2615 | if (_argo0) { |
2616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p."); |
8ab979d7 RD |
2619 | return NULL; |
2620 | } | |
2621 | } | |
cf694132 | 2622 | { |
4268f798 | 2623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2624 | const wxListItem & _result_ref = wxListEvent_GetItem(_arg0); |
f6bcfd97 | 2625 | _result = (wxListItem *) &_result_ref; |
cf694132 | 2626 | |
4268f798 | 2627 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2628 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2629 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2630 | return _resultobj; |
2631 | } | |
2632 | ||
6d19860f RD |
2633 | #define wxListEvent_GetCacheFrom(_swigobj) (_swigobj->GetCacheFrom()) |
2634 | static PyObject *_wrap_wxListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2635 | PyObject * _resultobj; | |
2636 | long _result; | |
2637 | wxListEvent * _arg0; | |
2638 | PyObject * _argo0 = 0; | |
2639 | char *_kwnames[] = { "self", NULL }; | |
2640 | ||
2641 | self = self; | |
2642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheFrom",_kwnames,&_argo0)) | |
2643 | return NULL; | |
2644 | if (_argo0) { | |
2645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheFrom. Expected _wxListEvent_p."); | |
2648 | return NULL; | |
2649 | } | |
2650 | } | |
2651 | { | |
4268f798 | 2652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2653 | _result = (long )wxListEvent_GetCacheFrom(_arg0); |
6d19860f | 2654 | |
4268f798 | 2655 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
2656 | if (PyErr_Occurred()) return NULL; |
2657 | } _resultobj = Py_BuildValue("l",_result); | |
2658 | return _resultobj; | |
2659 | } | |
2660 | ||
2661 | #define wxListEvent_GetCacheTo(_swigobj) (_swigobj->GetCacheTo()) | |
2662 | static PyObject *_wrap_wxListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2663 | PyObject * _resultobj; | |
2664 | long _result; | |
2665 | wxListEvent * _arg0; | |
2666 | PyObject * _argo0 = 0; | |
2667 | char *_kwnames[] = { "self", NULL }; | |
2668 | ||
2669 | self = self; | |
2670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheTo",_kwnames,&_argo0)) | |
2671 | return NULL; | |
2672 | if (_argo0) { | |
2673 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2674 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheTo. Expected _wxListEvent_p."); | |
2676 | return NULL; | |
2677 | } | |
2678 | } | |
2679 | { | |
4268f798 | 2680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2681 | _result = (long )wxListEvent_GetCacheTo(_arg0); |
6d19860f | 2682 | |
4268f798 | 2683 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
2684 | if (PyErr_Occurred()) return NULL; |
2685 | } _resultobj = Py_BuildValue("l",_result); | |
2686 | return _resultobj; | |
2687 | } | |
2688 | ||
c7e7022c RD |
2689 | static void *SwigwxPyListCtrlTowxControl(void *ptr) { |
2690 | wxPyListCtrl *src; | |
8ab979d7 | 2691 | wxControl *dest; |
c7e7022c | 2692 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2693 | dest = (wxControl *) src; |
2694 | return (void *) dest; | |
2695 | } | |
2696 | ||
c7e7022c RD |
2697 | static void *SwigwxPyListCtrlTowxWindow(void *ptr) { |
2698 | wxPyListCtrl *src; | |
8ab979d7 | 2699 | wxWindow *dest; |
c7e7022c | 2700 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2701 | dest = (wxWindow *) src; |
2702 | return (void *) dest; | |
2703 | } | |
2704 | ||
c7e7022c RD |
2705 | static void *SwigwxPyListCtrlTowxEvtHandler(void *ptr) { |
2706 | wxPyListCtrl *src; | |
8ab979d7 | 2707 | wxEvtHandler *dest; |
c7e7022c | 2708 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2709 | dest = (wxEvtHandler *) src; |
2710 | return (void *) dest; | |
2711 | } | |
2712 | ||
c7e7022c RD |
2713 | static void *SwigwxPyListCtrlTowxObject(void *ptr) { |
2714 | wxPyListCtrl *src; | |
9416aa89 | 2715 | wxObject *dest; |
c7e7022c | 2716 | src = (wxPyListCtrl *) ptr; |
9416aa89 RD |
2717 | dest = (wxObject *) src; |
2718 | return (void *) dest; | |
2719 | } | |
2720 | ||
c7e7022c | 2721 | #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 2722 | static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 2723 | PyObject * _resultobj; |
c7e7022c | 2724 | wxPyListCtrl * _result; |
8ab979d7 | 2725 | wxWindow * _arg0; |
c7e7022c | 2726 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
2727 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
2728 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
0adbc166 | 2729 | long _arg4 = (long ) (wxLC_ICON); |
e508a2b6 | 2730 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
137b5242 | 2731 | wxString * _arg6 = (wxString *) &wxPyListCtrlNameStr; |
1d99702e | 2732 | PyObject * _argo0 = 0; |
2f90df85 RD |
2733 | wxPoint temp; |
2734 | PyObject * _obj2 = 0; | |
2735 | wxSize temp0; | |
2736 | PyObject * _obj3 = 0; | |
1d99702e | 2737 | PyObject * _argo5 = 0; |
137b5242 | 2738 | PyObject * _obj6 = 0; |
efc5f224 | 2739 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
2740 | char _ptemp[128]; |
2741 | ||
2742 | self = self; | |
137b5242 | 2743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) |
8ab979d7 | 2744 | return NULL; |
1d99702e RD |
2745 | if (_argo0) { |
2746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p."); |
2749 | return NULL; | |
2750 | } | |
2751 | } | |
2f90df85 RD |
2752 | if (_obj2) |
2753 | { | |
2754 | _arg2 = &temp; | |
2755 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 2756 | return NULL; |
2f90df85 RD |
2757 | } |
2758 | if (_obj3) | |
2759 | { | |
2760 | _arg3 = &temp0; | |
2761 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 2762 | return NULL; |
2f90df85 | 2763 | } |
1d99702e RD |
2764 | if (_argo5) { |
2765 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
2766 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
2767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p."); |
2768 | return NULL; | |
2769 | } | |
2770 | } | |
137b5242 RD |
2771 | if (_obj6) |
2772 | { | |
2773 | _arg6 = wxString_in_helper(_obj6); | |
2774 | if (_arg6 == NULL) | |
2775 | return NULL; | |
2776 | } | |
cf694132 | 2777 | { |
4268f798 | 2778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 2779 | _result = (wxPyListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
cf694132 | 2780 | |
4268f798 | 2781 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2782 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2783 | } if (_result) { |
c7e7022c | 2784 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); |
1d99702e RD |
2785 | _resultobj = Py_BuildValue("s",_ptemp); |
2786 | } else { | |
2787 | Py_INCREF(Py_None); | |
2788 | _resultobj = Py_None; | |
2789 | } | |
137b5242 RD |
2790 | { |
2791 | if (_obj6) | |
2792 | delete _arg6; | |
2793 | } | |
8ab979d7 RD |
2794 | return _resultobj; |
2795 | } | |
2796 | ||
09f3d4e6 RD |
2797 | #define new_wxPreListCtrl() (new wxPyListCtrl()) |
2798 | static PyObject *_wrap_new_wxPreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2799 | PyObject * _resultobj; | |
2800 | wxPyListCtrl * _result; | |
2801 | char *_kwnames[] = { NULL }; | |
2802 | char _ptemp[128]; | |
2803 | ||
2804 | self = self; | |
2805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListCtrl",_kwnames)) | |
2806 | return NULL; | |
2807 | { | |
4268f798 | 2808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2809 | _result = (wxPyListCtrl *)new_wxPreListCtrl(); |
09f3d4e6 | 2810 | |
4268f798 | 2811 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
2812 | if (PyErr_Occurred()) return NULL; |
2813 | } if (_result) { | |
2814 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); | |
2815 | _resultobj = Py_BuildValue("s",_ptemp); | |
2816 | } else { | |
2817 | Py_INCREF(Py_None); | |
2818 | _resultobj = Py_None; | |
2819 | } | |
2820 | return _resultobj; | |
2821 | } | |
2822 | ||
2823 | #define wxListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
2824 | static PyObject *_wrap_wxListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2825 | PyObject * _resultobj; | |
2826 | bool _result; | |
2827 | wxPyListCtrl * _arg0; | |
2828 | wxWindow * _arg1; | |
2829 | wxWindowID _arg2 = (wxWindowID ) -1; | |
2830 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
2831 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2832 | long _arg5 = (long ) (wxLC_ICON); | |
2833 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 2834 | wxString * _arg7 = (wxString *) &wxPyListCtrlNameStr; |
09f3d4e6 RD |
2835 | PyObject * _argo0 = 0; |
2836 | PyObject * _argo1 = 0; | |
2837 | wxPoint temp; | |
2838 | PyObject * _obj3 = 0; | |
2839 | wxSize temp0; | |
2840 | PyObject * _obj4 = 0; | |
2841 | PyObject * _argo6 = 0; | |
137b5242 | 2842 | PyObject * _obj7 = 0; |
09f3d4e6 RD |
2843 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; |
2844 | ||
2845 | self = self; | |
137b5242 | 2846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
09f3d4e6 RD |
2847 | return NULL; |
2848 | if (_argo0) { | |
2849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
2851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Create. Expected _wxPyListCtrl_p."); | |
2852 | return NULL; | |
2853 | } | |
2854 | } | |
2855 | if (_argo1) { | |
2856 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2857 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_Create. Expected _wxWindow_p."); | |
2859 | return NULL; | |
2860 | } | |
2861 | } | |
2862 | if (_obj3) | |
2863 | { | |
2864 | _arg3 = &temp; | |
2865 | if (! wxPoint_helper(_obj3, &_arg3)) | |
2866 | return NULL; | |
2867 | } | |
2868 | if (_obj4) | |
2869 | { | |
2870 | _arg4 = &temp0; | |
2871 | if (! wxSize_helper(_obj4, &_arg4)) | |
2872 | return NULL; | |
2873 | } | |
2874 | if (_argo6) { | |
2875 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2876 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
2877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListCtrl_Create. Expected _wxValidator_p."); | |
2878 | return NULL; | |
2879 | } | |
2880 | } | |
137b5242 RD |
2881 | if (_obj7) |
2882 | { | |
2883 | _arg7 = wxString_in_helper(_obj7); | |
2884 | if (_arg7 == NULL) | |
2885 | return NULL; | |
2886 | } | |
09f3d4e6 | 2887 | { |
4268f798 | 2888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 2889 | _result = (bool )wxListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
09f3d4e6 | 2890 | |
4268f798 | 2891 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
2892 | if (PyErr_Occurred()) return NULL; |
2893 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
2894 | { |
2895 | if (_obj7) | |
2896 | delete _arg7; | |
2897 | } | |
09f3d4e6 RD |
2898 | return _resultobj; |
2899 | } | |
2900 | ||
0122b7e3 RD |
2901 | #define wxListCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
2902 | static PyObject *_wrap_wxListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2903 | PyObject * _resultobj; |
c7e7022c RD |
2904 | wxPyListCtrl * _arg0; |
2905 | PyObject * _arg1; | |
2906 | PyObject * _arg2; | |
1d99702e | 2907 | PyObject * _argo0 = 0; |
c7e7022c RD |
2908 | PyObject * _obj1 = 0; |
2909 | PyObject * _obj2 = 0; | |
2910 | char *_kwnames[] = { "self","self","_class", NULL }; | |
8ab979d7 RD |
2911 | |
2912 | self = self; | |
0122b7e3 | 2913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxListCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 2914 | return NULL; |
1d99702e RD |
2915 | if (_argo0) { |
2916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c | 2917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
0122b7e3 | 2918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl__setCallbackInfo. Expected _wxPyListCtrl_p."); |
8ab979d7 RD |
2919 | return NULL; |
2920 | } | |
2921 | } | |
c7e7022c RD |
2922 | { |
2923 | _arg1 = _obj1; | |
2924 | } | |
2925 | { | |
2926 | _arg2 = _obj2; | |
2927 | } | |
cf694132 | 2928 | { |
4268f798 | 2929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2930 | wxListCtrl__setCallbackInfo(_arg0,_arg1,_arg2); |
cf694132 | 2931 | |
4268f798 | 2932 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2933 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
2934 | } Py_INCREF(Py_None); |
2935 | _resultobj = Py_None; | |
8ab979d7 RD |
2936 | return _resultobj; |
2937 | } | |
2938 | ||
c7e7022c RD |
2939 | #define wxListCtrl_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) |
2940 | static PyObject *_wrap_wxListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1b62f00d | 2941 | PyObject * _resultobj; |
c7e7022c RD |
2942 | bool _result; |
2943 | wxPyListCtrl * _arg0; | |
2944 | wxColour * _arg1; | |
1b62f00d | 2945 | PyObject * _argo0 = 0; |
c7e7022c RD |
2946 | wxColour temp; |
2947 | PyObject * _obj1 = 0; | |
2948 | char *_kwnames[] = { "self","col", NULL }; | |
1b62f00d RD |
2949 | |
2950 | self = self; | |
c7e7022c | 2951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
1b62f00d RD |
2952 | return NULL; |
2953 | if (_argo0) { | |
2954 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
2955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
2956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetForegroundColour. Expected _wxPyListCtrl_p."); | |
1b62f00d RD |
2957 | return NULL; |
2958 | } | |
2959 | } | |
c7e7022c RD |
2960 | { |
2961 | _arg1 = &temp; | |
2962 | if (! wxColour_helper(_obj1, &_arg1)) | |
1b62f00d | 2963 | return NULL; |
c7e7022c | 2964 | } |
1b62f00d | 2965 | { |
4268f798 | 2966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2967 | _result = (bool )wxListCtrl_SetForegroundColour(_arg0,*_arg1); |
1b62f00d | 2968 | |
4268f798 | 2969 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2970 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 2971 | } _resultobj = Py_BuildValue("i",_result); |
1b62f00d RD |
2972 | return _resultobj; |
2973 | } | |
2974 | ||
c7e7022c RD |
2975 | #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
2976 | static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2977 | PyObject * _resultobj; |
2978 | bool _result; | |
c7e7022c RD |
2979 | wxPyListCtrl * _arg0; |
2980 | wxColour * _arg1; | |
1d99702e | 2981 | PyObject * _argo0 = 0; |
c7e7022c RD |
2982 | wxColour temp; |
2983 | PyObject * _obj1 = 0; | |
2984 | char *_kwnames[] = { "self","col", NULL }; | |
8ab979d7 RD |
2985 | |
2986 | self = self; | |
c7e7022c | 2987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2988 | return NULL; |
1d99702e RD |
2989 | if (_argo0) { |
2990 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
2991 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
2992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
2993 | return NULL; |
2994 | } | |
2995 | } | |
c7e7022c RD |
2996 | { |
2997 | _arg1 = &temp; | |
2998 | if (! wxColour_helper(_obj1, &_arg1)) | |
2999 | return NULL; | |
3000 | } | |
cf694132 | 3001 | { |
4268f798 | 3002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3003 | _result = (bool )wxListCtrl_SetBackgroundColour(_arg0,*_arg1); |
cf694132 | 3004 | |
4268f798 | 3005 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3006 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3007 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3008 | return _resultobj; |
3009 | } | |
3010 | ||
14afa2cb RD |
3011 | static wxListItem * wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col) { |
3012 | wxListItem item; | |
3013 | if (self->GetColumn(col, item)) | |
3014 | return new wxListItem(item); | |
3015 | else | |
3016 | return NULL; | |
3017 | } | |
c7e7022c | 3018 | static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3019 | PyObject * _resultobj; |
14afa2cb | 3020 | wxListItem * _result; |
c7e7022c RD |
3021 | wxPyListCtrl * _arg0; |
3022 | int _arg1; | |
1d99702e | 3023 | PyObject * _argo0 = 0; |
14afa2cb | 3024 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3025 | |
3026 | self = self; | |
14afa2cb | 3027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3028 | return NULL; |
1d99702e RD |
3029 | if (_argo0) { |
3030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxPyListCtrl_p."); | |
3033 | return NULL; | |
3034 | } | |
3035 | } | |
cf694132 | 3036 | { |
4268f798 | 3037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3038 | _result = (wxListItem *)wxPyListCtrl_GetColumn(_arg0,_arg1); |
cf694132 | 3039 | |
4268f798 | 3040 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3041 | if (PyErr_Occurred()) return NULL; |
14afa2cb | 3042 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
3043 | return _resultobj; |
3044 | } | |
3045 | ||
c7e7022c RD |
3046 | #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1)) |
3047 | static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3048 | PyObject * _resultobj; |
3049 | bool _result; | |
c7e7022c | 3050 | wxPyListCtrl * _arg0; |
8ab979d7 | 3051 | int _arg1; |
c7e7022c | 3052 | wxListItem * _arg2; |
1d99702e | 3053 | PyObject * _argo0 = 0; |
c7e7022c RD |
3054 | PyObject * _argo2 = 0; |
3055 | char *_kwnames[] = { "self","col","item", NULL }; | |
8ab979d7 RD |
3056 | |
3057 | self = self; | |
c7e7022c | 3058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3059 | return NULL; |
1d99702e RD |
3060 | if (_argo0) { |
3061 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3062 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxPyListCtrl_p."); | |
3064 | return NULL; | |
3065 | } | |
3066 | } | |
3067 | if (_argo2) { | |
3068 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3069 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
3070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p."); | |
8ab979d7 RD |
3071 | return NULL; |
3072 | } | |
3073 | } | |
cf694132 | 3074 | { |
4268f798 | 3075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3076 | _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2); |
cf694132 | 3077 | |
4268f798 | 3078 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3079 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3080 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3081 | return _resultobj; |
3082 | } | |
3083 | ||
c7e7022c RD |
3084 | #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0)) |
3085 | static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3086 | PyObject * _resultobj; |
c7e7022c RD |
3087 | int _result; |
3088 | wxPyListCtrl * _arg0; | |
3089 | int _arg1; | |
1d99702e | 3090 | PyObject * _argo0 = 0; |
c7e7022c | 3091 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3092 | |
3093 | self = self; | |
c7e7022c | 3094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3095 | return NULL; |
1d99702e RD |
3096 | if (_argo0) { |
3097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3100 | return NULL; |
3101 | } | |
3102 | } | |
cf694132 | 3103 | { |
4268f798 | 3104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3105 | _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1); |
cf694132 | 3106 | |
4268f798 | 3107 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3108 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3109 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3110 | return _resultobj; |
3111 | } | |
3112 | ||
c7e7022c RD |
3113 | #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1)) |
3114 | static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3115 | PyObject * _resultobj; |
c7e7022c RD |
3116 | bool _result; |
3117 | wxPyListCtrl * _arg0; | |
3118 | int _arg1; | |
3119 | int _arg2; | |
1d99702e | 3120 | PyObject * _argo0 = 0; |
c7e7022c | 3121 | char *_kwnames[] = { "self","col","width", NULL }; |
8ab979d7 RD |
3122 | |
3123 | self = self; | |
c7e7022c | 3124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3125 | return NULL; |
1d99702e RD |
3126 | if (_argo0) { |
3127 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3128 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3129 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3130 | return NULL; |
3131 | } | |
3132 | } | |
cf694132 | 3133 | { |
4268f798 | 3134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3135 | _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2); |
cf694132 | 3136 | |
4268f798 | 3137 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3138 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3139 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3140 | return _resultobj; |
3141 | } | |
3142 | ||
c7e7022c RD |
3143 | #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage()) |
3144 | static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3145 | PyObject * _resultobj; |
c7e7022c RD |
3146 | int _result; |
3147 | wxPyListCtrl * _arg0; | |
1d99702e | 3148 | PyObject * _argo0 = 0; |
c7e7022c | 3149 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3150 | |
3151 | self = self; | |
c7e7022c | 3152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0)) |
8ab979d7 | 3153 | return NULL; |
1d99702e RD |
3154 | if (_argo0) { |
3155 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3156 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3158 | return NULL; |
3159 | } | |
3160 | } | |
cf694132 | 3161 | { |
4268f798 | 3162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3163 | _result = (int )wxListCtrl_GetCountPerPage(_arg0); |
cf694132 | 3164 | |
4268f798 | 3165 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3166 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3167 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3168 | return _resultobj; |
3169 | } | |
3170 | ||
c7e7022c RD |
3171 | #define wxListCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) |
3172 | static PyObject *_wrap_wxListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3173 | PyObject * _resultobj; |
c7e7022c RD |
3174 | wxTextCtrl * _result; |
3175 | wxPyListCtrl * _arg0; | |
1d99702e | 3176 | PyObject * _argo0 = 0; |
c7e7022c | 3177 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3178 | |
3179 | self = self; | |
c7e7022c | 3180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetEditControl",_kwnames,&_argo0)) |
8ab979d7 | 3181 | return NULL; |
1d99702e RD |
3182 | if (_argo0) { |
3183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetEditControl. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3186 | return NULL; |
3187 | } | |
3188 | } | |
cf694132 | 3189 | { |
4268f798 | 3190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3191 | _result = (wxTextCtrl *)wxListCtrl_GetEditControl(_arg0); |
cf694132 | 3192 | |
4268f798 | 3193 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3194 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3195 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
3196 | return _resultobj; |
3197 | } | |
3198 | ||
c7e7022c RD |
3199 | static wxListItem * wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col) { |
3200 | wxListItem* info = new wxListItem; | |
3201 | info->m_itemId = itemId; | |
3202 | info->m_col = col; | |
3203 | info->m_mask = 0xFFFF; | |
3204 | self->GetItem(*info); | |
3205 | return info; | |
3206 | } | |
3207 | static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 3208 | PyObject * _resultobj; |
c7e7022c RD |
3209 | wxListItem * _result; |
3210 | wxPyListCtrl * _arg0; | |
3211 | long _arg1; | |
3212 | int _arg2 = (int ) 0; | |
1d99702e | 3213 | PyObject * _argo0 = 0; |
c7e7022c | 3214 | char *_kwnames[] = { "self","itemId","col", NULL }; |
be4d9c1f RD |
3215 | |
3216 | self = self; | |
c7e7022c | 3217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
be4d9c1f | 3218 | return NULL; |
1d99702e RD |
3219 | if (_argo0) { |
3220 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3221 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxPyListCtrl_p."); | |
be4d9c1f RD |
3223 | return NULL; |
3224 | } | |
3225 | } | |
cf694132 | 3226 | { |
4268f798 | 3227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3228 | _result = (wxListItem *)wxPyListCtrl_GetItem(_arg0,_arg1,_arg2); |
cf694132 | 3229 | |
4268f798 | 3230 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3231 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 3232 | }{ _resultobj = wxPyMake_wxObject(_result); } |
be4d9c1f RD |
3233 | return _resultobj; |
3234 | } | |
3235 | ||
c7e7022c RD |
3236 | #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) |
3237 | static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3238 | PyObject * _resultobj; |
3239 | bool _result; | |
c7e7022c RD |
3240 | wxPyListCtrl * _arg0; |
3241 | wxListItem * _arg1; | |
1d99702e | 3242 | PyObject * _argo0 = 0; |
c7e7022c RD |
3243 | PyObject * _argo1 = 0; |
3244 | char *_kwnames[] = { "self","info", NULL }; | |
8ab979d7 RD |
3245 | |
3246 | self = self; | |
c7e7022c | 3247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3248 | return NULL; |
1d99702e RD |
3249 | if (_argo0) { |
3250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxPyListCtrl_p."); | |
3253 | return NULL; | |
3254 | } | |
3255 | } | |
3256 | if (_argo1) { | |
3257 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3258 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
3259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p."); | |
8ab979d7 RD |
3260 | return NULL; |
3261 | } | |
3262 | } | |
cf694132 | 3263 | { |
4268f798 | 3264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3265 | _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1); |
cf694132 | 3266 | |
4268f798 | 3267 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3268 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3269 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3270 | return _resultobj; |
3271 | } | |
3272 | ||
c7e7022c RD |
3273 | #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3274 | static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3275 | PyObject * _resultobj; |
3276 | long _result; | |
c7e7022c | 3277 | wxPyListCtrl * _arg0; |
8ab979d7 | 3278 | long _arg1; |
c7e7022c RD |
3279 | int _arg2; |
3280 | wxString * _arg3; | |
3281 | int _arg4 = (int ) -1; | |
1d99702e | 3282 | PyObject * _argo0 = 0; |
c7e7022c RD |
3283 | PyObject * _obj3 = 0; |
3284 | char *_kwnames[] = { "self","index","col","label","imageId", NULL }; | |
8ab979d7 RD |
3285 | |
3286 | self = self; | |
c7e7022c | 3287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
8ab979d7 | 3288 | return NULL; |
1d99702e RD |
3289 | if (_argo0) { |
3290 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3291 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3293 | return NULL; |
3294 | } | |
3295 | } | |
3296 | { | |
c8bc7bb8 RD |
3297 | _arg3 = wxString_in_helper(_obj3); |
3298 | if (_arg3 == NULL) | |
185d7c3e | 3299 | return NULL; |
8ab979d7 | 3300 | } |
cf694132 | 3301 | { |
4268f798 | 3302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3303 | _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4); |
cf694132 | 3304 | |
4268f798 | 3305 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3306 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3307 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 3308 | { |
c7e7022c RD |
3309 | if (_obj3) |
3310 | delete _arg3; | |
8ab979d7 RD |
3311 | } |
3312 | return _resultobj; | |
3313 | } | |
3314 | ||
c7e7022c RD |
3315 | #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1)) |
3316 | static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3317 | PyObject * _resultobj; |
c7e7022c RD |
3318 | int _result; |
3319 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
3320 | long _arg1; |
3321 | long _arg2; | |
1d99702e | 3322 | PyObject * _argo0 = 0; |
c7e7022c | 3323 | char *_kwnames[] = { "self","item","stateMask", NULL }; |
8ab979d7 RD |
3324 | |
3325 | self = self; | |
c7e7022c | 3326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3327 | return NULL; |
1d99702e RD |
3328 | if (_argo0) { |
3329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3332 | return NULL; |
3333 | } | |
3334 | } | |
cf694132 | 3335 | { |
4268f798 | 3336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3337 | _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2); |
cf694132 | 3338 | |
4268f798 | 3339 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3340 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3341 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3342 | return _resultobj; |
3343 | } | |
3344 | ||
c7e7022c RD |
3345 | #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2)) |
3346 | static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3347 | PyObject * _resultobj; |
c7e7022c RD |
3348 | bool _result; |
3349 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3350 | long _arg1; |
c7e7022c RD |
3351 | long _arg2; |
3352 | long _arg3; | |
1d99702e | 3353 | PyObject * _argo0 = 0; |
c7e7022c | 3354 | char *_kwnames[] = { "self","item","state","stateMask", NULL }; |
8ab979d7 RD |
3355 | |
3356 | self = self; | |
c7e7022c | 3357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3358 | return NULL; |
1d99702e RD |
3359 | if (_argo0) { |
3360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3363 | return NULL; |
3364 | } | |
3365 | } | |
cf694132 | 3366 | { |
4268f798 | 3367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3368 | _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3369 | |
4268f798 | 3370 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3371 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3372 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3373 | return _resultobj; |
3374 | } | |
3375 | ||
c7e7022c RD |
3376 | #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
3377 | static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3378 | PyObject * _resultobj; |
3379 | bool _result; | |
c7e7022c RD |
3380 | wxPyListCtrl * _arg0; |
3381 | long _arg1; | |
3382 | int _arg2; | |
3383 | int _arg3; | |
1d99702e | 3384 | PyObject * _argo0 = 0; |
c7e7022c | 3385 | char *_kwnames[] = { "self","item","image","selImage", NULL }; |
8ab979d7 RD |
3386 | |
3387 | self = self; | |
c7e7022c | 3388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3389 | return NULL; |
1d99702e RD |
3390 | if (_argo0) { |
3391 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3392 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3394 | return NULL; |
3395 | } | |
3396 | } | |
cf694132 | 3397 | { |
4268f798 | 3398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3399 | _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3400 | |
4268f798 | 3401 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3402 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3403 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3404 | return _resultobj; |
3405 | } | |
3406 | ||
c7e7022c RD |
3407 | #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
3408 | static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3409 | PyObject * _resultobj; |
c7e7022c RD |
3410 | wxString * _result; |
3411 | wxPyListCtrl * _arg0; | |
3412 | long _arg1; | |
1d99702e | 3413 | PyObject * _argo0 = 0; |
c7e7022c | 3414 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3415 | |
3416 | self = self; | |
c7e7022c | 3417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3418 | return NULL; |
1d99702e RD |
3419 | if (_argo0) { |
3420 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3421 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3423 | return NULL; |
3424 | } | |
3425 | } | |
cf694132 | 3426 | { |
4268f798 | 3427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3428 | _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1)); |
cf694132 | 3429 | |
4268f798 | 3430 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3431 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3432 | }{ |
c8bc7bb8 RD |
3433 | #if wxUSE_UNICODE |
3434 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3435 | #else | |
c7e7022c | 3436 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3437 | #endif |
c7e7022c RD |
3438 | } |
3439 | { | |
3440 | delete _result; | |
3441 | } | |
8ab979d7 RD |
3442 | return _resultobj; |
3443 | } | |
3444 | ||
c7e7022c RD |
3445 | #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
3446 | static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3447 | PyObject * _resultobj; |
c7e7022c RD |
3448 | wxPyListCtrl * _arg0; |
3449 | long _arg1; | |
3450 | wxString * _arg2; | |
1d99702e | 3451 | PyObject * _argo0 = 0; |
c7e7022c RD |
3452 | PyObject * _obj2 = 0; |
3453 | char *_kwnames[] = { "self","item","str", NULL }; | |
8ab979d7 RD |
3454 | |
3455 | self = self; | |
c7e7022c | 3456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3457 | return NULL; |
1d99702e RD |
3458 | if (_argo0) { |
3459 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3460 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3462 | return NULL; |
3463 | } | |
3464 | } | |
cf694132 | 3465 | { |
c8bc7bb8 RD |
3466 | _arg2 = wxString_in_helper(_obj2); |
3467 | if (_arg2 == NULL) | |
8ab979d7 | 3468 | return NULL; |
c7e7022c | 3469 | } |
cf694132 | 3470 | { |
4268f798 | 3471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3472 | wxListCtrl_SetItemText(_arg0,_arg1,*_arg2); |
cf694132 | 3473 | |
4268f798 | 3474 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3475 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
3476 | } Py_INCREF(Py_None); |
3477 | _resultobj = Py_None; | |
3478 | { | |
3479 | if (_obj2) | |
3480 | delete _arg2; | |
3481 | } | |
8ab979d7 RD |
3482 | return _resultobj; |
3483 | } | |
3484 | ||
3485 | #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0)) | |
efc5f224 | 3486 | static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3487 | PyObject * _resultobj; |
3488 | long _result; | |
c7e7022c | 3489 | wxPyListCtrl * _arg0; |
8ab979d7 | 3490 | long _arg1; |
1d99702e | 3491 | PyObject * _argo0 = 0; |
efc5f224 | 3492 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3493 | |
3494 | self = self; | |
efc5f224 | 3495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3496 | return NULL; |
1d99702e RD |
3497 | if (_argo0) { |
3498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3501 | return NULL; |
3502 | } | |
3503 | } | |
cf694132 | 3504 | { |
4268f798 | 3505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3506 | _result = (long )wxListCtrl_GetItemData(_arg0,_arg1); |
cf694132 | 3507 | |
4268f798 | 3508 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3509 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3510 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
3511 | return _resultobj; |
3512 | } | |
3513 | ||
c7e7022c RD |
3514 | #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1)) |
3515 | static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3516 | PyObject * _resultobj; |
c7e7022c RD |
3517 | bool _result; |
3518 | wxPyListCtrl * _arg0; | |
0699c864 | 3519 | long _arg1; |
c7e7022c | 3520 | long _arg2; |
1d99702e | 3521 | PyObject * _argo0 = 0; |
c7e7022c | 3522 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
3523 | |
3524 | self = self; | |
c7e7022c | 3525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3526 | return NULL; |
1d99702e RD |
3527 | if (_argo0) { |
3528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3531 | return NULL; |
3532 | } | |
3533 | } | |
cf694132 | 3534 | { |
4268f798 | 3535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3536 | _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2); |
cf694132 | 3537 | |
4268f798 | 3538 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3539 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3540 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3541 | return _resultobj; |
3542 | } | |
3543 | ||
c7e7022c | 3544 | static wxPoint * wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item) { |
8ab979d7 RD |
3545 | wxPoint* pos = new wxPoint; |
3546 | self->GetItemPosition(item, *pos); | |
3547 | return pos; | |
3548 | } | |
efc5f224 | 3549 | static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3550 | PyObject * _resultobj; |
3551 | wxPoint * _result; | |
c7e7022c | 3552 | wxPyListCtrl * _arg0; |
8ab979d7 | 3553 | long _arg1; |
1d99702e | 3554 | PyObject * _argo0 = 0; |
efc5f224 | 3555 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3556 | char _ptemp[128]; |
3557 | ||
3558 | self = self; | |
efc5f224 | 3559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3560 | return NULL; |
1d99702e RD |
3561 | if (_argo0) { |
3562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3565 | return NULL; |
3566 | } | |
3567 | } | |
cf694132 | 3568 | { |
4268f798 | 3569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3570 | _result = (wxPoint *)wxPyListCtrl_GetItemPosition(_arg0,_arg1); |
cf694132 | 3571 | |
4268f798 | 3572 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3573 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3574 | } if (_result) { |
3575 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
3576 | _resultobj = Py_BuildValue("s",_ptemp); | |
3577 | } else { | |
3578 | Py_INCREF(Py_None); | |
3579 | _resultobj = Py_None; | |
3580 | } | |
8ab979d7 RD |
3581 | return _resultobj; |
3582 | } | |
3583 | ||
c7e7022c | 3584 | static wxRect * wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code) { |
8ab979d7 RD |
3585 | wxRect* rect= new wxRect; |
3586 | self->GetItemRect(item, *rect, code); | |
3587 | return rect; | |
3588 | } | |
efc5f224 | 3589 | static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3590 | PyObject * _resultobj; |
3591 | wxRect * _result; | |
c7e7022c | 3592 | wxPyListCtrl * _arg0; |
8ab979d7 | 3593 | long _arg1; |
1d99702e RD |
3594 | int _arg2 = (int ) (wxLIST_RECT_BOUNDS); |
3595 | PyObject * _argo0 = 0; | |
efc5f224 | 3596 | char *_kwnames[] = { "self","item","code", NULL }; |
8ab979d7 RD |
3597 | char _ptemp[128]; |
3598 | ||
3599 | self = self; | |
efc5f224 | 3600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3601 | return NULL; |
1d99702e RD |
3602 | if (_argo0) { |
3603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3606 | return NULL; |
3607 | } | |
3608 | } | |
cf694132 | 3609 | { |
4268f798 | 3610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3611 | _result = (wxRect *)wxPyListCtrl_GetItemRect(_arg0,_arg1,_arg2); |
cf694132 | 3612 | |
4268f798 | 3613 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3614 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3615 | } if (_result) { |
3616 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
3617 | _resultobj = Py_BuildValue("s",_ptemp); | |
3618 | } else { | |
3619 | Py_INCREF(Py_None); | |
3620 | _resultobj = Py_None; | |
3621 | } | |
8ab979d7 RD |
3622 | return _resultobj; |
3623 | } | |
3624 | ||
c7e7022c RD |
3625 | #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1)) |
3626 | static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3627 | PyObject * _resultobj; |
c7e7022c RD |
3628 | bool _result; |
3629 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3630 | long _arg1; |
c7e7022c | 3631 | wxPoint * _arg2; |
1d99702e | 3632 | PyObject * _argo0 = 0; |
c7e7022c RD |
3633 | wxPoint temp; |
3634 | PyObject * _obj2 = 0; | |
3635 | char *_kwnames[] = { "self","item","pos", NULL }; | |
8ab979d7 RD |
3636 | |
3637 | self = self; | |
c7e7022c | 3638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3639 | return NULL; |
1d99702e RD |
3640 | if (_argo0) { |
3641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3644 | return NULL; |
3645 | } | |
3646 | } | |
c7e7022c RD |
3647 | { |
3648 | _arg2 = &temp; | |
3649 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3650 | return NULL; | |
3651 | } | |
cf694132 | 3652 | { |
4268f798 | 3653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3654 | _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2); |
cf694132 | 3655 | |
4268f798 | 3656 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3657 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3658 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3659 | return _resultobj; |
3660 | } | |
3661 | ||
3662 | #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
efc5f224 | 3663 | static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3664 | PyObject * _resultobj; |
3665 | int _result; | |
c7e7022c | 3666 | wxPyListCtrl * _arg0; |
1d99702e | 3667 | PyObject * _argo0 = 0; |
efc5f224 | 3668 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3669 | |
3670 | self = self; | |
efc5f224 | 3671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3672 | return NULL; |
1d99702e RD |
3673 | if (_argo0) { |
3674 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3675 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3677 | return NULL; |
3678 | } | |
3679 | } | |
cf694132 | 3680 | { |
4268f798 | 3681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3682 | _result = (int )wxListCtrl_GetItemCount(_arg0); |
cf694132 | 3683 | |
4268f798 | 3684 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3685 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3686 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3687 | return _resultobj; |
3688 | } | |
3689 | ||
c7e7022c RD |
3690 | #define wxListCtrl_GetColumnCount(_swigobj) (_swigobj->GetColumnCount()) |
3691 | static PyObject *_wrap_wxListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3692 | PyObject * _resultobj; |
3693 | int _result; | |
c7e7022c | 3694 | wxPyListCtrl * _arg0; |
1d99702e | 3695 | PyObject * _argo0 = 0; |
c7e7022c | 3696 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3697 | |
3698 | self = self; | |
c7e7022c | 3699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetColumnCount",_kwnames,&_argo0)) |
8ab979d7 | 3700 | return NULL; |
1d99702e RD |
3701 | if (_argo0) { |
3702 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3703 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3705 | return NULL; |
3706 | } | |
3707 | } | |
cf694132 | 3708 | { |
4268f798 | 3709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3710 | _result = (int )wxListCtrl_GetColumnCount(_arg0); |
cf694132 | 3711 | |
4268f798 | 3712 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3713 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3714 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3715 | return _resultobj; |
3716 | } | |
3717 | ||
c7e7022c RD |
3718 | #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0)) |
3719 | static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3720 | PyObject * _resultobj; |
c7e7022c RD |
3721 | int _result; |
3722 | wxPyListCtrl * _arg0; | |
3723 | bool _arg1; | |
1d99702e | 3724 | PyObject * _argo0 = 0; |
c7e7022c RD |
3725 | int tempbool1; |
3726 | char *_kwnames[] = { "self","isSmall", NULL }; | |
8ab979d7 RD |
3727 | |
3728 | self = self; | |
c7e7022c | 3729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3730 | return NULL; |
1d99702e RD |
3731 | if (_argo0) { |
3732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3735 | return NULL; |
3736 | } | |
3737 | } | |
c7e7022c | 3738 | _arg1 = (bool ) tempbool1; |
8ab979d7 | 3739 | { |
4268f798 | 3740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3741 | _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1); |
cf694132 | 3742 | |
4268f798 | 3743 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3744 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3745 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3746 | return _resultobj; |
3747 | } | |
3748 | ||
c7e7022c RD |
3749 | #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount()) |
3750 | static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3751 | PyObject * _resultobj; |
c7e7022c RD |
3752 | int _result; |
3753 | wxPyListCtrl * _arg0; | |
1d99702e | 3754 | PyObject * _argo0 = 0; |
c7e7022c | 3755 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3756 | |
3757 | self = self; | |
c7e7022c | 3758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3759 | return NULL; |
1d99702e RD |
3760 | if (_argo0) { |
3761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3764 | return NULL; |
3765 | } | |
3766 | } | |
cf694132 | 3767 | { |
4268f798 | 3768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3769 | _result = (int )wxListCtrl_GetSelectedItemCount(_arg0); |
cf694132 | 3770 | |
4268f798 | 3771 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3772 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3773 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3774 | return _resultobj; |
3775 | } | |
3776 | ||
c7e7022c RD |
3777 | #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
3778 | static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3779 | PyObject * _resultobj; |
c7e7022c RD |
3780 | wxColour * _result; |
3781 | wxPyListCtrl * _arg0; | |
1d99702e | 3782 | PyObject * _argo0 = 0; |
efc5f224 | 3783 | char *_kwnames[] = { "self", NULL }; |
c7e7022c | 3784 | char _ptemp[128]; |
8ab979d7 RD |
3785 | |
3786 | self = self; | |
c7e7022c | 3787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 3788 | return NULL; |
1d99702e RD |
3789 | if (_argo0) { |
3790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3793 | return NULL; |
3794 | } | |
3795 | } | |
cf694132 | 3796 | { |
4268f798 | 3797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3798 | _result = new wxColour (wxListCtrl_GetTextColour(_arg0)); |
cf694132 | 3799 | |
4268f798 | 3800 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3801 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3802 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
3803 | _resultobj = Py_BuildValue("s",_ptemp); |
3804 | return _resultobj; | |
3805 | } | |
3806 | ||
be4d9c1f | 3807 | #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
efc5f224 | 3808 | static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
be4d9c1f | 3809 | PyObject * _resultobj; |
c7e7022c | 3810 | wxPyListCtrl * _arg0; |
be4d9c1f | 3811 | wxColour * _arg1; |
1d99702e | 3812 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3813 | wxColour temp; |
3814 | PyObject * _obj1 = 0; | |
efc5f224 | 3815 | char *_kwnames[] = { "self","col", NULL }; |
be4d9c1f RD |
3816 | |
3817 | self = self; | |
f6bcfd97 | 3818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1)) |
be4d9c1f | 3819 | return NULL; |
1d99702e RD |
3820 | if (_argo0) { |
3821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxPyListCtrl_p."); | |
be4d9c1f RD |
3824 | return NULL; |
3825 | } | |
3826 | } | |
f6bcfd97 BP |
3827 | { |
3828 | _arg1 = &temp; | |
3829 | if (! wxColour_helper(_obj1, &_arg1)) | |
be4d9c1f | 3830 | return NULL; |
f6bcfd97 | 3831 | } |
cf694132 | 3832 | { |
4268f798 | 3833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3834 | wxListCtrl_SetTextColour(_arg0,*_arg1); |
cf694132 | 3835 | |
4268f798 | 3836 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3837 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3838 | } Py_INCREF(Py_None); |
be4d9c1f RD |
3839 | _resultobj = Py_None; |
3840 | return _resultobj; | |
3841 | } | |
3842 | ||
8ab979d7 | 3843 | #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem()) |
efc5f224 | 3844 | static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3845 | PyObject * _resultobj; |
3846 | long _result; | |
c7e7022c | 3847 | wxPyListCtrl * _arg0; |
1d99702e | 3848 | PyObject * _argo0 = 0; |
efc5f224 | 3849 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3850 | |
3851 | self = self; | |
efc5f224 | 3852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0)) |
8ab979d7 | 3853 | return NULL; |
1d99702e RD |
3854 | if (_argo0) { |
3855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3858 | return NULL; |
3859 | } | |
3860 | } | |
cf694132 | 3861 | { |
4268f798 | 3862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3863 | _result = (long )wxListCtrl_GetTopItem(_arg0); |
cf694132 | 3864 | |
4268f798 | 3865 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3866 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3867 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
3868 | return _resultobj; |
3869 | } | |
3870 | ||
c7e7022c RD |
3871 | #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1)) |
3872 | static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3873 | PyObject * _resultobj; |
c7e7022c RD |
3874 | wxPyListCtrl * _arg0; |
3875 | long _arg1; | |
3876 | bool _arg2 = (bool ) TRUE; | |
1d99702e | 3877 | PyObject * _argo0 = 0; |
c7e7022c RD |
3878 | int tempbool2 = (int) TRUE; |
3879 | char *_kwnames[] = { "self","style","add", NULL }; | |
8ab979d7 RD |
3880 | |
3881 | self = self; | |
c7e7022c | 3882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 3883 | return NULL; |
1d99702e RD |
3884 | if (_argo0) { |
3885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3888 | return NULL; |
3889 | } | |
3890 | } | |
c7e7022c | 3891 | _arg2 = (bool ) tempbool2; |
cf694132 | 3892 | { |
4268f798 | 3893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3894 | wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2); |
cf694132 | 3895 | |
4268f798 | 3896 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3897 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
3898 | } Py_INCREF(Py_None); |
3899 | _resultobj = Py_None; | |
8ab979d7 RD |
3900 | return _resultobj; |
3901 | } | |
3902 | ||
c7e7022c RD |
3903 | #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
3904 | static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3905 | PyObject * _resultobj; |
c7e7022c | 3906 | wxPyListCtrl * _arg0; |
8ab979d7 | 3907 | long _arg1; |
1d99702e | 3908 | PyObject * _argo0 = 0; |
c7e7022c | 3909 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
3910 | |
3911 | self = self; | |
c7e7022c | 3912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3913 | return NULL; |
1d99702e RD |
3914 | if (_argo0) { |
3915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3918 | return NULL; |
3919 | } | |
3920 | } | |
cf694132 | 3921 | { |
4268f798 | 3922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3923 | wxListCtrl_SetWindowStyleFlag(_arg0,_arg1); |
cf694132 | 3924 | |
4268f798 | 3925 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3926 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
3927 | } Py_INCREF(Py_None); |
3928 | _resultobj = Py_None; | |
8ab979d7 RD |
3929 | return _resultobj; |
3930 | } | |
3931 | ||
c7e7022c RD |
3932 | #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2)) |
3933 | static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3934 | PyObject * _resultobj; |
3935 | long _result; | |
c7e7022c | 3936 | wxPyListCtrl * _arg0; |
8ab979d7 | 3937 | long _arg1; |
c7e7022c RD |
3938 | int _arg2 = (int ) (wxLIST_NEXT_ALL); |
3939 | int _arg3 = (int ) (wxLIST_STATE_DONTCARE); | |
1d99702e | 3940 | PyObject * _argo0 = 0; |
c7e7022c | 3941 | char *_kwnames[] = { "self","item","geometry","state", NULL }; |
8ab979d7 RD |
3942 | |
3943 | self = self; | |
c7e7022c | 3944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3945 | return NULL; |
1d99702e RD |
3946 | if (_argo0) { |
3947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3950 | return NULL; |
3951 | } | |
3952 | } | |
3953 | { | |
4268f798 | 3954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3955 | _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3); |
c7e7022c | 3956 | |
4268f798 | 3957 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
3958 | if (PyErr_Occurred()) return NULL; |
3959 | } _resultobj = Py_BuildValue("l",_result); | |
3960 | return _resultobj; | |
3961 | } | |
3962 | ||
3963 | #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0)) | |
3964 | static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3965 | PyObject * _resultobj; | |
3966 | wxImageList * _result; | |
3967 | wxPyListCtrl * _arg0; | |
3968 | int _arg1; | |
3969 | PyObject * _argo0 = 0; | |
3970 | char *_kwnames[] = { "self","which", NULL }; | |
3971 | ||
3972 | self = self; | |
3973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1)) | |
185d7c3e | 3974 | return NULL; |
c7e7022c RD |
3975 | if (_argo0) { |
3976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 | 3979 | return NULL; |
c7e7022c | 3980 | } |
8ab979d7 | 3981 | } |
cf694132 | 3982 | { |
4268f798 | 3983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3984 | _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1); |
cf694132 | 3985 | |
4268f798 | 3986 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3987 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3988 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
3989 | return _resultobj; |
3990 | } | |
3991 | ||
c7e7022c RD |
3992 | #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1)) |
3993 | static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3994 | PyObject * _resultobj; |
c7e7022c RD |
3995 | wxPyListCtrl * _arg0; |
3996 | wxImageList * _arg1; | |
3997 | int _arg2; | |
1d99702e RD |
3998 | PyObject * _argo0 = 0; |
3999 | PyObject * _argo1 = 0; | |
c7e7022c | 4000 | char *_kwnames[] = { "self","imageList","which", NULL }; |
8ab979d7 RD |
4001 | |
4002 | self = self; | |
c7e7022c | 4003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4004 | return NULL; |
1d99702e RD |
4005 | if (_argo0) { |
4006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4009 | return NULL; |
4010 | } | |
4011 | } | |
1d99702e RD |
4012 | if (_argo1) { |
4013 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
c7e7022c RD |
4014 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { |
4015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p."); | |
8ab979d7 RD |
4016 | return NULL; |
4017 | } | |
4018 | } | |
cf694132 | 4019 | { |
4268f798 | 4020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4021 | wxListCtrl_SetImageList(_arg0,_arg1,_arg2); |
cf694132 | 4022 | |
4268f798 | 4023 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4024 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4025 | } Py_INCREF(Py_None); |
4026 | _resultobj = Py_None; | |
8ab979d7 RD |
4027 | return _resultobj; |
4028 | } | |
4029 | ||
c7e7022c RD |
4030 | #define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1)) |
4031 | static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4032 | PyObject * _resultobj; |
c7e7022c RD |
4033 | wxPyListCtrl * _arg0; |
4034 | wxImageList * _arg1; | |
4035 | int _arg2; | |
1d99702e | 4036 | PyObject * _argo0 = 0; |
c7e7022c RD |
4037 | PyObject * _argo1 = 0; |
4038 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
8ab979d7 RD |
4039 | |
4040 | self = self; | |
c7e7022c | 4041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4042 | return NULL; |
1d99702e RD |
4043 | if (_argo0) { |
4044 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4045 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4047 | return NULL; |
4048 | } | |
4049 | } | |
c7e7022c RD |
4050 | if (_argo1) { |
4051 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4052 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p."); | |
8ab979d7 | 4054 | return NULL; |
c7e7022c | 4055 | } |
8ab979d7 | 4056 | } |
cf694132 | 4057 | { |
4268f798 | 4058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4059 | wxListCtrl_AssignImageList(_arg0,_arg1,_arg2); |
cf694132 | 4060 | |
4268f798 | 4061 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4062 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4063 | } Py_INCREF(Py_None); |
4064 | _resultobj = Py_None; | |
8ab979d7 RD |
4065 | return _resultobj; |
4066 | } | |
4067 | ||
c7e7022c RD |
4068 | #define wxListCtrl_IsVirtual(_swigobj) (_swigobj->IsVirtual()) |
4069 | static PyObject *_wrap_wxListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4070 | PyObject * _resultobj; |
c7e7022c RD |
4071 | bool _result; |
4072 | wxPyListCtrl * _arg0; | |
1d99702e | 4073 | PyObject * _argo0 = 0; |
c7e7022c | 4074 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4075 | |
4076 | self = self; | |
c7e7022c | 4077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_IsVirtual",_kwnames,&_argo0)) |
8ab979d7 | 4078 | return NULL; |
1d99702e RD |
4079 | if (_argo0) { |
4080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_IsVirtual. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4083 | return NULL; |
4084 | } | |
4085 | } | |
cf694132 | 4086 | { |
4268f798 | 4087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4088 | _result = (bool )wxListCtrl_IsVirtual(_arg0); |
cf694132 | 4089 | |
4268f798 | 4090 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4091 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4092 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4093 | return _resultobj; |
4094 | } | |
4095 | ||
c7e7022c RD |
4096 | #define wxListCtrl_RefreshItem(_swigobj,_swigarg0) (_swigobj->RefreshItem(_swigarg0)) |
4097 | static PyObject *_wrap_wxListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4098 | PyObject * _resultobj; |
c7e7022c | 4099 | wxPyListCtrl * _arg0; |
8ab979d7 | 4100 | long _arg1; |
1d99702e | 4101 | PyObject * _argo0 = 0; |
c7e7022c | 4102 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4103 | |
4104 | self = self; | |
c7e7022c | 4105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_RefreshItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4106 | return NULL; |
1d99702e RD |
4107 | if (_argo0) { |
4108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4111 | return NULL; |
4112 | } | |
4113 | } | |
cf694132 | 4114 | { |
4268f798 | 4115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4116 | wxListCtrl_RefreshItem(_arg0,_arg1); |
cf694132 | 4117 | |
4268f798 | 4118 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4119 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4120 | } Py_INCREF(Py_None); |
4121 | _resultobj = Py_None; | |
8ab979d7 RD |
4122 | return _resultobj; |
4123 | } | |
4124 | ||
c7e7022c RD |
4125 | #define wxListCtrl_RefreshItems(_swigobj,_swigarg0,_swigarg1) (_swigobj->RefreshItems(_swigarg0,_swigarg1)) |
4126 | static PyObject *_wrap_wxListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4127 | PyObject * _resultobj; |
c7e7022c RD |
4128 | wxPyListCtrl * _arg0; |
4129 | long _arg1; | |
4130 | long _arg2; | |
1d99702e | 4131 | PyObject * _argo0 = 0; |
c7e7022c | 4132 | char *_kwnames[] = { "self","itemFrom","itemTo", NULL }; |
8ab979d7 RD |
4133 | |
4134 | self = self; | |
c7e7022c | 4135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_RefreshItems",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4136 | return NULL; |
1d99702e RD |
4137 | if (_argo0) { |
4138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItems. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4141 | return NULL; |
4142 | } | |
4143 | } | |
cf694132 | 4144 | { |
4268f798 | 4145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4146 | wxListCtrl_RefreshItems(_arg0,_arg1,_arg2); |
cf694132 | 4147 | |
4268f798 | 4148 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4149 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4150 | } Py_INCREF(Py_None); |
4151 | _resultobj = Py_None; | |
8ab979d7 RD |
4152 | return _resultobj; |
4153 | } | |
4154 | ||
c7e7022c RD |
4155 | #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0)) |
4156 | static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4157 | PyObject * _resultobj; |
c7e7022c RD |
4158 | bool _result; |
4159 | wxPyListCtrl * _arg0; | |
4160 | int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT); | |
1d99702e | 4161 | PyObject * _argo0 = 0; |
c7e7022c | 4162 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
4163 | |
4164 | self = self; | |
c7e7022c | 4165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4166 | return NULL; |
1d99702e RD |
4167 | if (_argo0) { |
4168 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4169 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4171 | return NULL; |
4172 | } | |
4173 | } | |
cf694132 | 4174 | { |
4268f798 | 4175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4176 | _result = (bool )wxListCtrl_Arrange(_arg0,_arg1); |
cf694132 | 4177 | |
4268f798 | 4178 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4179 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4180 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4181 | return _resultobj; |
4182 | } | |
4183 | ||
c7e7022c RD |
4184 | #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0)) |
4185 | static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4186 | PyObject * _resultobj; |
4187 | bool _result; | |
c7e7022c RD |
4188 | wxPyListCtrl * _arg0; |
4189 | long _arg1; | |
1d99702e | 4190 | PyObject * _argo0 = 0; |
c7e7022c | 4191 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4192 | |
4193 | self = self; | |
c7e7022c | 4194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4195 | return NULL; |
1d99702e RD |
4196 | if (_argo0) { |
4197 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4198 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4200 | return NULL; |
4201 | } | |
4202 | } | |
c7e7022c | 4203 | { |
4268f798 | 4204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4205 | _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1); |
c7e7022c | 4206 | |
4268f798 | 4207 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4208 | if (PyErr_Occurred()) return NULL; |
4209 | } _resultobj = Py_BuildValue("i",_result); | |
4210 | return _resultobj; | |
4211 | } | |
4212 | ||
4213 | #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
4214 | static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4215 | PyObject * _resultobj; | |
4216 | bool _result; | |
4217 | wxPyListCtrl * _arg0; | |
4218 | PyObject * _argo0 = 0; | |
4219 | char *_kwnames[] = { "self", NULL }; | |
4220 | ||
4221 | self = self; | |
4222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0)) | |
4223 | return NULL; | |
4224 | if (_argo0) { | |
4225 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4226 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4228 | return NULL; |
4229 | } | |
4230 | } | |
cf694132 | 4231 | { |
4268f798 | 4232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4233 | _result = (bool )wxListCtrl_DeleteAllItems(_arg0); |
cf694132 | 4234 | |
4268f798 | 4235 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4236 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4237 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4238 | return _resultobj; |
4239 | } | |
4240 | ||
c7e7022c RD |
4241 | #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0)) |
4242 | static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4243 | PyObject * _resultobj; |
4244 | bool _result; | |
c7e7022c | 4245 | wxPyListCtrl * _arg0; |
8ab979d7 | 4246 | int _arg1; |
1d99702e | 4247 | PyObject * _argo0 = 0; |
c7e7022c | 4248 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
4249 | |
4250 | self = self; | |
c7e7022c | 4251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4252 | return NULL; |
1d99702e RD |
4253 | if (_argo0) { |
4254 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4255 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4257 | return NULL; |
4258 | } | |
4259 | } | |
cf694132 | 4260 | { |
4268f798 | 4261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4262 | _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1); |
cf694132 | 4263 | |
4268f798 | 4264 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4265 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4266 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4267 | return _resultobj; |
4268 | } | |
4269 | ||
c7e7022c RD |
4270 | #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns()) |
4271 | static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4272 | PyObject * _resultobj; |
c7e7022c RD |
4273 | bool _result; |
4274 | wxPyListCtrl * _arg0; | |
1d99702e | 4275 | PyObject * _argo0 = 0; |
c7e7022c | 4276 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4277 | |
4278 | self = self; | |
c7e7022c | 4279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0)) |
8ab979d7 | 4280 | return NULL; |
1d99702e RD |
4281 | if (_argo0) { |
4282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4285 | return NULL; |
4286 | } | |
4287 | } | |
c7e7022c | 4288 | { |
4268f798 | 4289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4290 | _result = (bool )wxListCtrl_DeleteAllColumns(_arg0); |
c7e7022c | 4291 | |
4268f798 | 4292 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4293 | if (PyErr_Occurred()) return NULL; |
4294 | } _resultobj = Py_BuildValue("i",_result); | |
4295 | return _resultobj; | |
4296 | } | |
4297 | ||
4298 | #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll()) | |
4299 | static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4300 | PyObject * _resultobj; | |
4301 | wxPyListCtrl * _arg0; | |
4302 | PyObject * _argo0 = 0; | |
4303 | char *_kwnames[] = { "self", NULL }; | |
4304 | ||
4305 | self = self; | |
4306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0)) | |
4307 | return NULL; | |
4308 | if (_argo0) { | |
4309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4312 | return NULL; |
4313 | } | |
4314 | } | |
cf694132 | 4315 | { |
4268f798 | 4316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4317 | wxListCtrl_ClearAll(_arg0); |
cf694132 | 4318 | |
4268f798 | 4319 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4320 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4321 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4322 | _resultobj = Py_None; |
4323 | return _resultobj; | |
4324 | } | |
4325 | ||
c7e7022c RD |
4326 | #define wxListCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) |
4327 | static PyObject *_wrap_wxListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4328 | PyObject * _resultobj; | |
4329 | wxTextCtrl * _result; | |
4330 | wxPyListCtrl * _arg0; | |
4331 | long _arg1; | |
4332 | PyObject * _argo0 = 0; | |
4333 | char *_kwnames[] = { "self","item", NULL }; | |
4334 | ||
4335 | self = self; | |
4336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EditLabel",_kwnames,&_argo0,&_arg1)) | |
4337 | return NULL; | |
4338 | if (_argo0) { | |
4339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EditLabel. Expected _wxPyListCtrl_p."); | |
4342 | return NULL; | |
4343 | } | |
4344 | } | |
4345 | { | |
4268f798 | 4346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4347 | _result = (wxTextCtrl *)wxListCtrl_EditLabel(_arg0,_arg1); |
c7e7022c | 4348 | |
4268f798 | 4349 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4350 | if (PyErr_Occurred()) return NULL; |
4351 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
4352 | return _resultobj; | |
4353 | } | |
4354 | ||
4355 | #define wxListCtrl_EndEditLabel(_swigobj,_swigarg0) (_swigobj->EndEditLabel(_swigarg0)) | |
4356 | static PyObject *_wrap_wxListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4357 | PyObject * _resultobj; |
4358 | bool _result; | |
c7e7022c RD |
4359 | wxPyListCtrl * _arg0; |
4360 | bool _arg1; | |
1d99702e | 4361 | PyObject * _argo0 = 0; |
c7e7022c RD |
4362 | int tempbool1; |
4363 | char *_kwnames[] = { "self","cancel", NULL }; | |
8ab979d7 RD |
4364 | |
4365 | self = self; | |
c7e7022c | 4366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_EndEditLabel",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4367 | return NULL; |
1d99702e RD |
4368 | if (_argo0) { |
4369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EndEditLabel. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4372 | return NULL; |
4373 | } | |
4374 | } | |
c7e7022c RD |
4375 | _arg1 = (bool ) tempbool1; |
4376 | { | |
4268f798 | 4377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4378 | _result = (bool )wxListCtrl_EndEditLabel(_arg0,_arg1); |
c7e7022c | 4379 | |
4268f798 | 4380 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4381 | if (PyErr_Occurred()) return NULL; |
4382 | } _resultobj = Py_BuildValue("i",_result); | |
4383 | return _resultobj; | |
4384 | } | |
4385 | ||
4386 | #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
4387 | static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4388 | PyObject * _resultobj; | |
4389 | bool _result; | |
4390 | wxPyListCtrl * _arg0; | |
4391 | long _arg1; | |
4392 | PyObject * _argo0 = 0; | |
4393 | char *_kwnames[] = { "self","item", NULL }; | |
4394 | ||
4395 | self = self; | |
4396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1)) | |
4397 | return NULL; | |
4398 | if (_argo0) { | |
4399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4402 | return NULL; |
4403 | } | |
4404 | } | |
cf694132 | 4405 | { |
4268f798 | 4406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4407 | _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1); |
cf694132 | 4408 | |
4268f798 | 4409 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4410 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4411 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4412 | return _resultobj; |
4413 | } | |
4414 | ||
c7e7022c RD |
4415 | #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4416 | static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4417 | PyObject * _resultobj; |
4418 | long _result; | |
c7e7022c | 4419 | wxPyListCtrl * _arg0; |
8ab979d7 | 4420 | long _arg1; |
c7e7022c RD |
4421 | wxString * _arg2; |
4422 | bool _arg3 = (bool ) FALSE; | |
1d99702e | 4423 | PyObject * _argo0 = 0; |
c7e7022c RD |
4424 | PyObject * _obj2 = 0; |
4425 | int tempbool3 = (int) FALSE; | |
4426 | char *_kwnames[] = { "self","start","str","partial", NULL }; | |
8ab979d7 RD |
4427 | |
4428 | self = self; | |
c7e7022c | 4429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
8ab979d7 | 4430 | return NULL; |
1d99702e RD |
4431 | if (_argo0) { |
4432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4435 | return NULL; |
4436 | } | |
4437 | } | |
4438 | { | |
c8bc7bb8 RD |
4439 | _arg2 = wxString_in_helper(_obj2); |
4440 | if (_arg2 == NULL) | |
8ab979d7 | 4441 | return NULL; |
8ab979d7 | 4442 | } |
c7e7022c | 4443 | _arg3 = (bool ) tempbool3; |
cf694132 | 4444 | { |
4268f798 | 4445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4446 | _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4447 | |
4268f798 | 4448 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4449 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4450 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 4451 | { |
c7e7022c RD |
4452 | if (_obj2) |
4453 | delete _arg2; | |
8ab979d7 RD |
4454 | } |
4455 | return _resultobj; | |
4456 | } | |
4457 | ||
c7e7022c RD |
4458 | #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1)) |
4459 | static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4460 | PyObject * _resultobj; |
c7e7022c RD |
4461 | long _result; |
4462 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4463 | long _arg1; |
4464 | long _arg2; | |
1d99702e | 4465 | PyObject * _argo0 = 0; |
c7e7022c | 4466 | char *_kwnames[] = { "self","start","data", NULL }; |
8ab979d7 RD |
4467 | |
4468 | self = self; | |
c7e7022c | 4469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4470 | return NULL; |
1d99702e RD |
4471 | if (_argo0) { |
4472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4475 | return NULL; |
4476 | } | |
4477 | } | |
cf694132 | 4478 | { |
4268f798 | 4479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4480 | _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2); |
cf694132 | 4481 | |
4268f798 | 4482 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4483 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4484 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4485 | return _resultobj; |
4486 | } | |
4487 | ||
c7e7022c RD |
4488 | #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4489 | static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4490 | PyObject * _resultobj; |
c7e7022c RD |
4491 | long _result; |
4492 | wxPyListCtrl * _arg0; | |
4493 | long _arg1; | |
4494 | wxPoint * _arg2; | |
4495 | int _arg3; | |
4496 | PyObject * _argo0 = 0; | |
4497 | wxPoint temp; | |
4498 | PyObject * _obj2 = 0; | |
4499 | char *_kwnames[] = { "self","start","pt","direction", NULL }; | |
4500 | ||
4501 | self = self; | |
4502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) | |
4503 | return NULL; | |
4504 | if (_argo0) { | |
4505 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4506 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxPyListCtrl_p."); | |
4508 | return NULL; | |
4509 | } | |
4510 | } | |
4511 | { | |
4512 | _arg2 = &temp; | |
4513 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4514 | return NULL; | |
4515 | } | |
4516 | { | |
4268f798 | 4517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4518 | _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3); |
c7e7022c | 4519 | |
4268f798 | 4520 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4521 | if (PyErr_Occurred()) return NULL; |
4522 | } _resultobj = Py_BuildValue("l",_result); | |
4523 | return _resultobj; | |
4524 | } | |
4525 | ||
4526 | #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) | |
4527 | static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4528 | PyObject * _resultobj; | |
4529 | long _result; | |
4530 | wxPyListCtrl * _arg0; | |
4531 | wxPoint * _arg1; | |
4532 | int * _arg2; | |
4533 | int temp; | |
4534 | PyObject * _argo0 = 0; | |
4535 | wxPoint temp0; | |
4536 | PyObject * _obj1 = 0; | |
4537 | char *_kwnames[] = { "self","point", NULL }; | |
4538 | ||
4539 | self = self; | |
4540 | { | |
4541 | _arg2 = &temp; | |
4542 | } | |
4543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1)) | |
4544 | return NULL; | |
4545 | if (_argo0) { | |
4546 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4547 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxPyListCtrl_p."); | |
4549 | return NULL; | |
4550 | } | |
4551 | } | |
4552 | { | |
4553 | _arg1 = &temp0; | |
4554 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4555 | return NULL; | |
4556 | } | |
4557 | { | |
4268f798 | 4558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4559 | _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2); |
c7e7022c | 4560 | |
4268f798 | 4561 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4562 | if (PyErr_Occurred()) return NULL; |
4563 | } _resultobj = Py_BuildValue("l",_result); | |
4564 | { | |
4565 | PyObject *o; | |
4566 | o = PyInt_FromLong((long) (*_arg2)); | |
4567 | _resultobj = t_output_helper(_resultobj, o); | |
4568 | } | |
4569 | return _resultobj; | |
4570 | } | |
4571 | ||
4572 | #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0)) | |
4573 | static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4574 | PyObject * _resultobj; | |
4575 | long _result; | |
4576 | wxPyListCtrl * _arg0; | |
4577 | wxListItem * _arg1; | |
4578 | PyObject * _argo0 = 0; | |
4579 | PyObject * _argo1 = 0; | |
4580 | char *_kwnames[] = { "self","info", NULL }; | |
4581 | ||
4582 | self = self; | |
4583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1)) | |
4584 | return NULL; | |
4585 | if (_argo0) { | |
4586 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4587 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxPyListCtrl_p."); | |
4589 | return NULL; | |
4590 | } | |
4591 | } | |
4592 | if (_argo1) { | |
4593 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4594 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
4595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p."); | |
4596 | return NULL; | |
4597 | } | |
4598 | } | |
4599 | { | |
4268f798 | 4600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4601 | _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1); |
c7e7022c | 4602 | |
4268f798 | 4603 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4604 | if (PyErr_Occurred()) return NULL; |
4605 | } _resultobj = Py_BuildValue("l",_result); | |
4606 | return _resultobj; | |
4607 | } | |
4608 | ||
4609 | #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
4610 | static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4611 | PyObject * _resultobj; | |
4612 | long _result; | |
4613 | wxPyListCtrl * _arg0; | |
4614 | long _arg1; | |
4615 | wxString * _arg2; | |
4616 | PyObject * _argo0 = 0; | |
4617 | PyObject * _obj2 = 0; | |
4618 | char *_kwnames[] = { "self","index","label", NULL }; | |
4619 | ||
4620 | self = self; | |
4621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4622 | return NULL; | |
4623 | if (_argo0) { | |
4624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxPyListCtrl_p."); | |
4627 | return NULL; | |
4628 | } | |
4629 | } | |
4630 | { | |
c8bc7bb8 RD |
4631 | _arg2 = wxString_in_helper(_obj2); |
4632 | if (_arg2 == NULL) | |
c7e7022c | 4633 | return NULL; |
c7e7022c RD |
4634 | } |
4635 | { | |
4268f798 | 4636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4637 | _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2); |
c7e7022c | 4638 | |
4268f798 | 4639 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4640 | if (PyErr_Occurred()) return NULL; |
4641 | } _resultobj = Py_BuildValue("l",_result); | |
4642 | { | |
4643 | if (_obj2) | |
4644 | delete _arg2; | |
4645 | } | |
4646 | return _resultobj; | |
4647 | } | |
4648 | ||
4649 | #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
4650 | static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4651 | PyObject * _resultobj; | |
4652 | long _result; | |
4653 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4654 | long _arg1; |
4655 | int _arg2; | |
1d99702e | 4656 | PyObject * _argo0 = 0; |
c7e7022c | 4657 | char *_kwnames[] = { "self","index","imageIndex", NULL }; |
8ab979d7 RD |
4658 | |
4659 | self = self; | |
c7e7022c | 4660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4661 | return NULL; |
1d99702e RD |
4662 | if (_argo0) { |
4663 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4664 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4666 | return NULL; |
4667 | } | |
4668 | } | |
cf694132 | 4669 | { |
4268f798 | 4670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4671 | _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2); |
cf694132 | 4672 | |
4268f798 | 4673 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4674 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4675 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4676 | return _resultobj; |
4677 | } | |
4678 | ||
c7e7022c RD |
4679 | #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2)) |
4680 | static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4681 | PyObject * _resultobj; |
c7e7022c RD |
4682 | long _result; |
4683 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4684 | long _arg1; |
c7e7022c RD |
4685 | wxString * _arg2; |
4686 | int _arg3; | |
1d99702e | 4687 | PyObject * _argo0 = 0; |
2f90df85 | 4688 | PyObject * _obj2 = 0; |
c7e7022c | 4689 | char *_kwnames[] = { "self","index","label","imageIndex", NULL }; |
8ab979d7 RD |
4690 | |
4691 | self = self; | |
c7e7022c | 4692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4693 | return NULL; |
1d99702e RD |
4694 | if (_argo0) { |
4695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4698 | return NULL; |
4699 | } | |
4700 | } | |
2f90df85 | 4701 | { |
c8bc7bb8 RD |
4702 | _arg2 = wxString_in_helper(_obj2); |
4703 | if (_arg2 == NULL) | |
8ab979d7 | 4704 | return NULL; |
2f90df85 | 4705 | } |
cf694132 | 4706 | { |
4268f798 | 4707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4708 | _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4709 | |
4268f798 | 4710 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4711 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4712 | } _resultobj = Py_BuildValue("l",_result); |
4713 | { | |
4714 | if (_obj2) | |
4715 | delete _arg2; | |
4716 | } | |
8ab979d7 RD |
4717 | return _resultobj; |
4718 | } | |
4719 | ||
c7e7022c RD |
4720 | #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) |
4721 | static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4722 | PyObject * _resultobj; |
c7e7022c RD |
4723 | long _result; |
4724 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4725 | long _arg1; |
c7e7022c | 4726 | wxListItem * _arg2; |
1d99702e | 4727 | PyObject * _argo0 = 0; |
c7e7022c RD |
4728 | PyObject * _argo2 = 0; |
4729 | char *_kwnames[] = { "self","col","info", NULL }; | |
8ab979d7 RD |
4730 | |
4731 | self = self; | |
c7e7022c | 4732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 4733 | return NULL; |
1d99702e RD |
4734 | if (_argo0) { |
4735 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4736 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxPyListCtrl_p."); | |
4738 | return NULL; | |
4739 | } | |
4740 | } | |
4741 | if (_argo2) { | |
4742 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4743 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
4744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p."); | |
8ab979d7 RD |
4745 | return NULL; |
4746 | } | |
4747 | } | |
cf694132 | 4748 | { |
4268f798 | 4749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4750 | _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2); |
cf694132 | 4751 | |
4268f798 | 4752 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4753 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4754 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4755 | return _resultobj; |
4756 | } | |
4757 | ||
c7e7022c RD |
4758 | #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4759 | static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4760 | PyObject * _resultobj; |
c7e7022c RD |
4761 | long _result; |
4762 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4763 | long _arg1; |
4764 | wxString * _arg2; | |
c7e7022c RD |
4765 | int _arg3 = (int ) (wxLIST_FORMAT_LEFT); |
4766 | int _arg4 = (int ) -1; | |
1d99702e | 4767 | PyObject * _argo0 = 0; |
8ab979d7 | 4768 | PyObject * _obj2 = 0; |
c7e7022c | 4769 | char *_kwnames[] = { "self","col","heading","format","width", NULL }; |
8ab979d7 RD |
4770 | |
4771 | self = self; | |
c7e7022c | 4772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 4773 | return NULL; |
1d99702e RD |
4774 | if (_argo0) { |
4775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4778 | return NULL; |
4779 | } | |
4780 | } | |
4781 | { | |
c8bc7bb8 RD |
4782 | _arg2 = wxString_in_helper(_obj2); |
4783 | if (_arg2 == NULL) | |
8ab979d7 | 4784 | return NULL; |
8ab979d7 | 4785 | } |
cf694132 | 4786 | { |
4268f798 | 4787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4788 | _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4); |
cf694132 | 4789 | |
4268f798 | 4790 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4791 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4792 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4793 | { |
4794 | if (_obj2) | |
4795 | delete _arg2; | |
4796 | } | |
4797 | return _resultobj; | |
4798 | } | |
4799 | ||
c7e7022c RD |
4800 | #define wxListCtrl_SetItemCount(_swigobj,_swigarg0) (_swigobj->SetItemCount(_swigarg0)) |
4801 | static PyObject *_wrap_wxListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4802 | PyObject * _resultobj; |
c7e7022c | 4803 | wxPyListCtrl * _arg0; |
8ab979d7 | 4804 | long _arg1; |
1d99702e | 4805 | PyObject * _argo0 = 0; |
c7e7022c | 4806 | char *_kwnames[] = { "self","count", NULL }; |
8ab979d7 RD |
4807 | |
4808 | self = self; | |
c7e7022c | 4809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetItemCount",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4810 | return NULL; |
1d99702e RD |
4811 | if (_argo0) { |
4812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4815 | return NULL; |
4816 | } | |
4817 | } | |
cf694132 | 4818 | { |
4268f798 | 4819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4820 | wxListCtrl_SetItemCount(_arg0,_arg1); |
cf694132 | 4821 | |
4268f798 | 4822 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4823 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4824 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4825 | _resultobj = Py_None; |
4826 | return _resultobj; | |
4827 | } | |
4828 | ||
c7e7022c RD |
4829 | #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1)) |
4830 | static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4831 | PyObject * _resultobj; |
c7e7022c RD |
4832 | bool _result; |
4833 | wxPyListCtrl * _arg0; | |
4834 | int _arg1; | |
4835 | int _arg2; | |
1d99702e | 4836 | PyObject * _argo0 = 0; |
c7e7022c | 4837 | char *_kwnames[] = { "self","dx","dy", NULL }; |
8ab979d7 RD |
4838 | |
4839 | self = self; | |
c7e7022c | 4840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4841 | return NULL; |
1d99702e RD |
4842 | if (_argo0) { |
4843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4846 | return NULL; |
4847 | } | |
4848 | } | |
cf694132 | 4849 | { |
4268f798 | 4850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4851 | _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2); |
cf694132 | 4852 | |
4268f798 | 4853 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4854 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4855 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4856 | return _resultobj; |
4857 | } | |
4858 | ||
3bd1e033 RD |
4859 | #define wxListCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
4860 | static PyObject *_wrap_wxListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4861 | PyObject * _resultobj; | |
4862 | wxPyListCtrl * _arg0; | |
4863 | long _arg1; | |
4864 | wxColour * _arg2; | |
4865 | PyObject * _argo0 = 0; | |
4866 | wxColour temp; | |
4867 | PyObject * _obj2 = 0; | |
4868 | char *_kwnames[] = { "self","item","col", NULL }; | |
4869 | ||
4870 | self = self; | |
4871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemTextColour",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4872 | return NULL; | |
4873 | if (_argo0) { | |
4874 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4875 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemTextColour. Expected _wxPyListCtrl_p."); | |
4877 | return NULL; | |
4878 | } | |
4879 | } | |
4880 | { | |
4881 | _arg2 = &temp; | |
4882 | if (! wxColour_helper(_obj2, &_arg2)) | |
4883 | return NULL; | |
4884 | } | |
4885 | { | |
4886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4887 | wxListCtrl_SetItemTextColour(_arg0,_arg1,*_arg2); | |
4888 | ||
4889 | wxPyEndAllowThreads(__tstate); | |
4890 | if (PyErr_Occurred()) return NULL; | |
4891 | } Py_INCREF(Py_None); | |
4892 | _resultobj = Py_None; | |
4893 | return _resultobj; | |
4894 | } | |
4895 | ||
4896 | #define wxListCtrl_GetItemTextColour(_swigobj,_swigarg0) (_swigobj->GetItemTextColour(_swigarg0)) | |
4897 | static PyObject *_wrap_wxListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4898 | PyObject * _resultobj; | |
4899 | wxColour * _result; | |
4900 | wxPyListCtrl * _arg0; | |
4901 | long _arg1; | |
4902 | PyObject * _argo0 = 0; | |
4903 | char *_kwnames[] = { "self","item", NULL }; | |
4904 | char _ptemp[128]; | |
4905 | ||
4906 | self = self; | |
4907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemTextColour",_kwnames,&_argo0,&_arg1)) | |
4908 | return NULL; | |
4909 | if (_argo0) { | |
4910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemTextColour. Expected _wxPyListCtrl_p."); | |
4913 | return NULL; | |
4914 | } | |
4915 | } | |
4916 | { | |
4917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4918 | _result = new wxColour (wxListCtrl_GetItemTextColour(_arg0,_arg1)); | |
4919 | ||
4920 | wxPyEndAllowThreads(__tstate); | |
4921 | if (PyErr_Occurred()) return NULL; | |
4922 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
4923 | _resultobj = Py_BuildValue("s",_ptemp); | |
4924 | return _resultobj; | |
4925 | } | |
4926 | ||
4927 | #define wxListCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
4928 | static PyObject *_wrap_wxListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4929 | PyObject * _resultobj; | |
4930 | wxPyListCtrl * _arg0; | |
4931 | long _arg1; | |
4932 | wxColour * _arg2; | |
4933 | PyObject * _argo0 = 0; | |
4934 | wxColour temp; | |
4935 | PyObject * _obj2 = 0; | |
4936 | char *_kwnames[] = { "self","item","col", NULL }; | |
4937 | ||
4938 | self = self; | |
4939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4940 | return NULL; | |
4941 | if (_argo0) { | |
4942 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4943 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemBackgroundColour. Expected _wxPyListCtrl_p."); | |
4945 | return NULL; | |
4946 | } | |
4947 | } | |
4948 | { | |
4949 | _arg2 = &temp; | |
4950 | if (! wxColour_helper(_obj2, &_arg2)) | |
4951 | return NULL; | |
4952 | } | |
4953 | { | |
4954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4955 | wxListCtrl_SetItemBackgroundColour(_arg0,_arg1,*_arg2); | |
4956 | ||
4957 | wxPyEndAllowThreads(__tstate); | |
4958 | if (PyErr_Occurred()) return NULL; | |
4959 | } Py_INCREF(Py_None); | |
4960 | _resultobj = Py_None; | |
4961 | return _resultobj; | |
4962 | } | |
4963 | ||
4964 | #define wxListCtrl_GetItemBackgroundColour(_swigobj,_swigarg0) (_swigobj->GetItemBackgroundColour(_swigarg0)) | |
4965 | static PyObject *_wrap_wxListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4966 | PyObject * _resultobj; | |
4967 | wxColour * _result; | |
4968 | wxPyListCtrl * _arg0; | |
4969 | long _arg1; | |
4970 | PyObject * _argo0 = 0; | |
4971 | char *_kwnames[] = { "self","item", NULL }; | |
4972 | char _ptemp[128]; | |
4973 | ||
4974 | self = self; | |
4975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemBackgroundColour",_kwnames,&_argo0,&_arg1)) | |
4976 | return NULL; | |
4977 | if (_argo0) { | |
4978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemBackgroundColour. Expected _wxPyListCtrl_p."); | |
4981 | return NULL; | |
4982 | } | |
4983 | } | |
4984 | { | |
4985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4986 | _result = new wxColour (wxListCtrl_GetItemBackgroundColour(_arg0,_arg1)); | |
4987 | ||
4988 | wxPyEndAllowThreads(__tstate); | |
4989 | if (PyErr_Occurred()) return NULL; | |
4990 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
4991 | _resultobj = Py_BuildValue("s",_ptemp); | |
4992 | return _resultobj; | |
4993 | } | |
4994 | ||
c7e7022c | 4995 | static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject * func) { |
dcd38683 RD |
4996 | if (!PyCallable_Check(func)) |
4997 | return FALSE; | |
f6bcfd97 | 4998 | return self->SortItems(wxPyListCtrl_SortItems, (long)func); |
dcd38683 RD |
4999 | } |
5000 | static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5001 | PyObject * _resultobj; | |
5002 | bool _result; | |
c7e7022c | 5003 | wxPyListCtrl * _arg0; |
dcd38683 RD |
5004 | PyObject * _arg1; |
5005 | PyObject * _argo0 = 0; | |
5006 | PyObject * _obj1 = 0; | |
5007 | char *_kwnames[] = { "self","func", NULL }; | |
5008 | ||
5009 | self = self; | |
5010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1)) | |
5011 | return NULL; | |
5012 | if (_argo0) { | |
5013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
5014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxPyListCtrl_p."); | |
dcd38683 RD |
5016 | return NULL; |
5017 | } | |
5018 | } | |
5019 | { | |
5020 | _arg1 = _obj1; | |
5021 | } | |
5022 | { | |
4268f798 | 5023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5024 | _result = (bool )wxPyListCtrl_SortItems(_arg0,_arg1); |
dcd38683 | 5025 | |
4268f798 | 5026 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5027 | if (PyErr_Occurred()) return NULL; |
dcd38683 RD |
5028 | } _resultobj = Py_BuildValue("i",_result); |
5029 | return _resultobj; | |
5030 | } | |
5031 | ||
6d19860f RD |
5032 | static void *SwigwxListViewTowxPyListCtrl(void *ptr) { |
5033 | wxListView *src; | |
5034 | wxPyListCtrl *dest; | |
5035 | src = (wxListView *) ptr; | |
5036 | dest = (wxPyListCtrl *) src; | |
5037 | return (void *) dest; | |
5038 | } | |
5039 | ||
5040 | static void *SwigwxListViewTowxControl(void *ptr) { | |
5041 | wxListView *src; | |
5042 | wxControl *dest; | |
5043 | src = (wxListView *) ptr; | |
5044 | dest = (wxControl *) src; | |
5045 | return (void *) dest; | |
5046 | } | |
5047 | ||
5048 | static void *SwigwxListViewTowxWindow(void *ptr) { | |
5049 | wxListView *src; | |
5050 | wxWindow *dest; | |
5051 | src = (wxListView *) ptr; | |
5052 | dest = (wxWindow *) src; | |
5053 | return (void *) dest; | |
5054 | } | |
5055 | ||
5056 | static void *SwigwxListViewTowxEvtHandler(void *ptr) { | |
5057 | wxListView *src; | |
5058 | wxEvtHandler *dest; | |
5059 | src = (wxListView *) ptr; | |
5060 | dest = (wxEvtHandler *) src; | |
5061 | return (void *) dest; | |
5062 | } | |
5063 | ||
5064 | static void *SwigwxListViewTowxObject(void *ptr) { | |
5065 | wxListView *src; | |
5066 | wxObject *dest; | |
5067 | src = (wxListView *) ptr; | |
5068 | dest = (wxObject *) src; | |
5069 | return (void *) dest; | |
5070 | } | |
5071 | ||
5072 | #define new_wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5073 | static PyObject *_wrap_new_wxListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5074 | PyObject * _resultobj; | |
5075 | wxListView * _result; | |
5076 | wxWindow * _arg0; | |
5077 | wxWindowID _arg1 = (wxWindowID ) -1; | |
5078 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
5079 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5080 | long _arg4 = (long ) (wxLC_REPORT); | |
5081 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 5082 | wxString * _arg6 = (wxString *) &wxPyListCtrlNameStr; |
6d19860f RD |
5083 | PyObject * _argo0 = 0; |
5084 | wxPoint temp; | |
5085 | PyObject * _obj2 = 0; | |
5086 | wxSize temp0; | |
5087 | PyObject * _obj3 = 0; | |
5088 | PyObject * _argo5 = 0; | |
5089 | PyObject * _obj6 = 0; | |
5090 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
5091 | char _ptemp[128]; | |
5092 | ||
5093 | self = self; | |
5094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListView",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) | |
5095 | return NULL; | |
5096 | if (_argo0) { | |
5097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListView. Expected _wxWindow_p."); | |
5100 | return NULL; | |
5101 | } | |
5102 | } | |
5103 | if (_obj2) | |
5104 | { | |
5105 | _arg2 = &temp; | |
5106 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5107 | return NULL; | |
5108 | } | |
5109 | if (_obj3) | |
5110 | { | |
5111 | _arg3 = &temp0; | |
5112 | if (! wxSize_helper(_obj3, &_arg3)) | |
5113 | return NULL; | |
5114 | } | |
5115 | if (_argo5) { | |
5116 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5117 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
5118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListView. Expected _wxValidator_p."); | |
5119 | return NULL; | |
5120 | } | |
5121 | } | |
5122 | if (_obj6) | |
5123 | { | |
c8bc7bb8 RD |
5124 | _arg6 = wxString_in_helper(_obj6); |
5125 | if (_arg6 == NULL) | |
6d19860f | 5126 | return NULL; |
6d19860f RD |
5127 | } |
5128 | { | |
4268f798 | 5129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5130 | _result = (wxListView *)new_wxListView(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
6d19860f | 5131 | |
4268f798 | 5132 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5133 | if (PyErr_Occurred()) return NULL; |
5134 | } if (_result) { | |
5135 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5136 | _resultobj = Py_BuildValue("s",_ptemp); | |
5137 | } else { | |
5138 | Py_INCREF(Py_None); | |
5139 | _resultobj = Py_None; | |
5140 | } | |
5141 | { | |
5142 | if (_obj6) | |
5143 | delete _arg6; | |
5144 | } | |
5145 | return _resultobj; | |
5146 | } | |
5147 | ||
5148 | #define new_wxPreListView() (new wxListView()) | |
5149 | static PyObject *_wrap_new_wxPreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5150 | PyObject * _resultobj; | |
5151 | wxListView * _result; | |
5152 | char *_kwnames[] = { NULL }; | |
5153 | char _ptemp[128]; | |
5154 | ||
5155 | self = self; | |
5156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListView",_kwnames)) | |
5157 | return NULL; | |
5158 | { | |
4268f798 | 5159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5160 | _result = (wxListView *)new_wxPreListView(); |
6d19860f | 5161 | |
4268f798 | 5162 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5163 | if (PyErr_Occurred()) return NULL; |
5164 | } if (_result) { | |
5165 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5166 | _resultobj = Py_BuildValue("s",_ptemp); | |
5167 | } else { | |
5168 | Py_INCREF(Py_None); | |
5169 | _resultobj = Py_None; | |
5170 | } | |
5171 | return _resultobj; | |
5172 | } | |
5173 | ||
5174 | #define wxListView_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5175 | static PyObject *_wrap_wxListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5176 | PyObject * _resultobj; | |
5177 | bool _result; | |
5178 | wxListView * _arg0; | |
5179 | wxWindow * _arg1; | |
5180 | wxWindowID _arg2 = (wxWindowID ) -1; | |
5181 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5182 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5183 | long _arg5 = (long ) (wxLC_REPORT); | |
5184 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 5185 | wxString * _arg7 = (wxString *) &wxPyListCtrlNameStr; |
6d19860f RD |
5186 | PyObject * _argo0 = 0; |
5187 | PyObject * _argo1 = 0; | |
5188 | wxPoint temp; | |
5189 | PyObject * _obj3 = 0; | |
5190 | wxSize temp0; | |
5191 | PyObject * _obj4 = 0; | |
5192 | PyObject * _argo6 = 0; | |
5193 | PyObject * _obj7 = 0; | |
5194 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
5195 | ||
5196 | self = self; | |
5197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListView_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
5198 | return NULL; | |
5199 | if (_argo0) { | |
5200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Create. Expected _wxListView_p."); | |
5203 | return NULL; | |
5204 | } | |
5205 | } | |
5206 | if (_argo1) { | |
5207 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5208 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListView_Create. Expected _wxWindow_p."); | |
5210 | return NULL; | |
5211 | } | |
5212 | } | |
5213 | if (_obj3) | |
5214 | { | |
5215 | _arg3 = &temp; | |
5216 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5217 | return NULL; | |
5218 | } | |
5219 | if (_obj4) | |
5220 | { | |
5221 | _arg4 = &temp0; | |
5222 | if (! wxSize_helper(_obj4, &_arg4)) | |
5223 | return NULL; | |
5224 | } | |
5225 | if (_argo6) { | |
5226 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
5227 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
5228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListView_Create. Expected _wxValidator_p."); | |
5229 | return NULL; | |
5230 | } | |
5231 | } | |
5232 | if (_obj7) | |
5233 | { | |
c8bc7bb8 RD |
5234 | _arg7 = wxString_in_helper(_obj7); |
5235 | if (_arg7 == NULL) | |
6d19860f | 5236 | return NULL; |
6d19860f RD |
5237 | } |
5238 | { | |
4268f798 | 5239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5240 | _result = (bool )wxListView_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
6d19860f | 5241 | |
4268f798 | 5242 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5243 | if (PyErr_Occurred()) return NULL; |
5244 | } _resultobj = Py_BuildValue("i",_result); | |
5245 | { | |
5246 | if (_obj7) | |
5247 | delete _arg7; | |
5248 | } | |
5249 | return _resultobj; | |
5250 | } | |
5251 | ||
5252 | #define wxListView_Select(_swigobj,_swigarg0,_swigarg1) (_swigobj->Select(_swigarg0,_swigarg1)) | |
5253 | static PyObject *_wrap_wxListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5254 | PyObject * _resultobj; | |
5255 | wxListView * _arg0; | |
5256 | long _arg1; | |
5257 | bool _arg2 = (bool ) TRUE; | |
5258 | PyObject * _argo0 = 0; | |
5259 | int tempbool2 = (int) TRUE; | |
5260 | char *_kwnames[] = { "self","n","on", NULL }; | |
5261 | ||
5262 | self = self; | |
5263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListView_Select",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
5264 | return NULL; | |
5265 | if (_argo0) { | |
5266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Select. Expected _wxListView_p."); | |
5269 | return NULL; | |
5270 | } | |
5271 | } | |
5272 | _arg2 = (bool ) tempbool2; | |
5273 | { | |
4268f798 | 5274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5275 | wxListView_Select(_arg0,_arg1,_arg2); |
6d19860f | 5276 | |
4268f798 | 5277 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5278 | if (PyErr_Occurred()) return NULL; |
5279 | } Py_INCREF(Py_None); | |
5280 | _resultobj = Py_None; | |
5281 | return _resultobj; | |
5282 | } | |
5283 | ||
5284 | #define wxListView_Focus(_swigobj,_swigarg0) (_swigobj->Focus(_swigarg0)) | |
5285 | static PyObject *_wrap_wxListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5286 | PyObject * _resultobj; | |
5287 | wxListView * _arg0; | |
5288 | long _arg1; | |
5289 | PyObject * _argo0 = 0; | |
5290 | char *_kwnames[] = { "self","index", NULL }; | |
5291 | ||
5292 | self = self; | |
5293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_Focus",_kwnames,&_argo0,&_arg1)) | |
5294 | return NULL; | |
5295 | if (_argo0) { | |
5296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Focus. Expected _wxListView_p."); | |
5299 | return NULL; | |
5300 | } | |
5301 | } | |
5302 | { | |
4268f798 | 5303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5304 | wxListView_Focus(_arg0,_arg1); |
6d19860f | 5305 | |
4268f798 | 5306 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5307 | if (PyErr_Occurred()) return NULL; |
5308 | } Py_INCREF(Py_None); | |
5309 | _resultobj = Py_None; | |
5310 | return _resultobj; | |
5311 | } | |
5312 | ||
5313 | #define wxListView_GetFocusedItem(_swigobj) (_swigobj->GetFocusedItem()) | |
5314 | static PyObject *_wrap_wxListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5315 | PyObject * _resultobj; | |
5316 | long _result; | |
5317 | wxListView * _arg0; | |
5318 | PyObject * _argo0 = 0; | |
5319 | char *_kwnames[] = { "self", NULL }; | |
5320 | ||
5321 | self = self; | |
5322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFocusedItem",_kwnames,&_argo0)) | |
5323 | return NULL; | |
5324 | if (_argo0) { | |
5325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFocusedItem. Expected _wxListView_p."); | |
5328 | return NULL; | |
5329 | } | |
5330 | } | |
5331 | { | |
4268f798 | 5332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5333 | _result = (long )wxListView_GetFocusedItem(_arg0); |
6d19860f | 5334 | |
4268f798 | 5335 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5336 | if (PyErr_Occurred()) return NULL; |
5337 | } _resultobj = Py_BuildValue("l",_result); | |
5338 | return _resultobj; | |
5339 | } | |
5340 | ||
5341 | #define wxListView_GetNextSelected(_swigobj,_swigarg0) (_swigobj->GetNextSelected(_swigarg0)) | |
5342 | static PyObject *_wrap_wxListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5343 | PyObject * _resultobj; | |
5344 | long _result; | |
5345 | wxListView * _arg0; | |
5346 | long _arg1; | |
5347 | PyObject * _argo0 = 0; | |
5348 | char *_kwnames[] = { "self","item", NULL }; | |
5349 | ||
5350 | self = self; | |
5351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_GetNextSelected",_kwnames,&_argo0,&_arg1)) | |
5352 | return NULL; | |
5353 | if (_argo0) { | |
5354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetNextSelected. Expected _wxListView_p."); | |
5357 | return NULL; | |
5358 | } | |
5359 | } | |
5360 | { | |
4268f798 | 5361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5362 | _result = (long )wxListView_GetNextSelected(_arg0,_arg1); |
6d19860f | 5363 | |
4268f798 | 5364 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5365 | if (PyErr_Occurred()) return NULL; |
5366 | } _resultobj = Py_BuildValue("l",_result); | |
5367 | return _resultobj; | |
5368 | } | |
5369 | ||
5370 | #define wxListView_GetFirstSelected(_swigobj) (_swigobj->GetFirstSelected()) | |
5371 | static PyObject *_wrap_wxListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5372 | PyObject * _resultobj; | |
5373 | long _result; | |
5374 | wxListView * _arg0; | |
5375 | PyObject * _argo0 = 0; | |
5376 | char *_kwnames[] = { "self", NULL }; | |
5377 | ||
5378 | self = self; | |
5379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFirstSelected",_kwnames,&_argo0)) | |
5380 | return NULL; | |
5381 | if (_argo0) { | |
5382 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5383 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFirstSelected. Expected _wxListView_p."); | |
5385 | return NULL; | |
5386 | } | |
5387 | } | |
5388 | { | |
4268f798 | 5389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5390 | _result = (long )wxListView_GetFirstSelected(_arg0); |
6d19860f | 5391 | |
4268f798 | 5392 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5393 | if (PyErr_Occurred()) return NULL; |
5394 | } _resultobj = Py_BuildValue("l",_result); | |
5395 | return _resultobj; | |
5396 | } | |
5397 | ||
5398 | #define wxListView_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) | |
5399 | static PyObject *_wrap_wxListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5400 | PyObject * _resultobj; | |
5401 | bool _result; | |
5402 | wxListView * _arg0; | |
5403 | long _arg1; | |
5404 | PyObject * _argo0 = 0; | |
5405 | char *_kwnames[] = { "self","index", NULL }; | |
5406 | ||
5407 | self = self; | |
5408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_IsSelected",_kwnames,&_argo0,&_arg1)) | |
5409 | return NULL; | |
5410 | if (_argo0) { | |
5411 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5412 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_IsSelected. Expected _wxListView_p."); | |
5414 | return NULL; | |
5415 | } | |
5416 | } | |
5417 | { | |
4268f798 | 5418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5419 | _result = (bool )wxListView_IsSelected(_arg0,_arg1); |
6d19860f | 5420 | |
4268f798 | 5421 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5422 | if (PyErr_Occurred()) return NULL; |
5423 | } _resultobj = Py_BuildValue("i",_result); | |
5424 | return _resultobj; | |
5425 | } | |
5426 | ||
5427 | #define wxListView_SetColumnImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnImage(_swigarg0,_swigarg1)) | |
5428 | static PyObject *_wrap_wxListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5429 | PyObject * _resultobj; | |
5430 | wxListView * _arg0; | |
5431 | int _arg1; | |
5432 | int _arg2; | |
5433 | PyObject * _argo0 = 0; | |
5434 | char *_kwnames[] = { "self","col","image", NULL }; | |
5435 | ||
5436 | self = self; | |
5437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListView_SetColumnImage",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5438 | return NULL; | |
5439 | if (_argo0) { | |
5440 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5441 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5442 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_SetColumnImage. Expected _wxListView_p."); | |
5443 | return NULL; | |
5444 | } | |
5445 | } | |
5446 | { | |
4268f798 | 5447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5448 | wxListView_SetColumnImage(_arg0,_arg1,_arg2); |
6d19860f | 5449 | |
4268f798 | 5450 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5451 | if (PyErr_Occurred()) return NULL; |
5452 | } Py_INCREF(Py_None); | |
5453 | _resultobj = Py_None; | |
5454 | return _resultobj; | |
5455 | } | |
5456 | ||
5457 | #define wxListView_ClearColumnImage(_swigobj,_swigarg0) (_swigobj->ClearColumnImage(_swigarg0)) | |
5458 | static PyObject *_wrap_wxListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5459 | PyObject * _resultobj; | |
5460 | wxListView * _arg0; | |
5461 | int _arg1; | |
5462 | PyObject * _argo0 = 0; | |
5463 | char *_kwnames[] = { "self","col", NULL }; | |
5464 | ||
5465 | self = self; | |
5466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListView_ClearColumnImage",_kwnames,&_argo0,&_arg1)) | |
5467 | return NULL; | |
5468 | if (_argo0) { | |
5469 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5470 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_ClearColumnImage. Expected _wxListView_p."); | |
5472 | return NULL; | |
5473 | } | |
5474 | } | |
5475 | { | |
4268f798 | 5476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5477 | wxListView_ClearColumnImage(_arg0,_arg1); |
6d19860f | 5478 | |
4268f798 | 5479 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5480 | if (PyErr_Occurred()) return NULL; |
5481 | } Py_INCREF(Py_None); | |
5482 | _resultobj = Py_None; | |
5483 | return _resultobj; | |
5484 | } | |
5485 | ||
00b6c4e3 RD |
5486 | #define new_wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
5487 | static PyObject *_wrap_new_wxTreeItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5488 | PyObject * _resultobj; | |
5489 | wxTreeItemAttr * _result; | |
5490 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5491 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5492 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5493 | wxColour temp; | |
5494 | PyObject * _obj0 = 0; | |
5495 | wxColour temp0; | |
5496 | PyObject * _obj1 = 0; | |
5497 | PyObject * _argo2 = 0; | |
5498 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
5499 | char _ptemp[128]; | |
5500 | ||
5501 | self = self; | |
5502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTreeItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) | |
5503 | return NULL; | |
5504 | if (_obj0) | |
5505 | { | |
5506 | _arg0 = &temp; | |
5507 | if (! wxColour_helper(_obj0, &_arg0)) | |
5508 | return NULL; | |
5509 | } | |
5510 | if (_obj1) | |
5511 | { | |
5512 | _arg1 = &temp0; | |
5513 | if (! wxColour_helper(_obj1, &_arg1)) | |
5514 | return NULL; | |
5515 | } | |
5516 | if (_argo2) { | |
5517 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5518 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
5519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTreeItemAttr. Expected _wxFont_p."); | |
5520 | return NULL; | |
5521 | } | |
5522 | } | |
5523 | { | |
4268f798 | 5524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5525 | _result = (wxTreeItemAttr *)new_wxTreeItemAttr(*_arg0,*_arg1,*_arg2); |
00b6c4e3 | 5526 | |
4268f798 | 5527 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5528 | if (PyErr_Occurred()) return NULL; |
5529 | } if (_result) { | |
5530 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemAttr_p"); | |
5531 | _resultobj = Py_BuildValue("s",_ptemp); | |
5532 | } else { | |
5533 | Py_INCREF(Py_None); | |
5534 | _resultobj = Py_None; | |
5535 | } | |
5536 | return _resultobj; | |
5537 | } | |
5538 | ||
5539 | #define wxTreeItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
5540 | static PyObject *_wrap_wxTreeItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5541 | PyObject * _resultobj; | |
5542 | wxTreeItemAttr * _arg0; | |
5543 | wxColour * _arg1; | |
5544 | PyObject * _argo0 = 0; | |
5545 | wxColour temp; | |
5546 | PyObject * _obj1 = 0; | |
5547 | char *_kwnames[] = { "self","colText", NULL }; | |
5548 | ||
5549 | self = self; | |
5550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
5551 | return NULL; | |
5552 | if (_argo0) { | |
5553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetTextColour. Expected _wxTreeItemAttr_p."); | |
5556 | return NULL; | |
5557 | } | |
5558 | } | |
5559 | { | |
5560 | _arg1 = &temp; | |
5561 | if (! wxColour_helper(_obj1, &_arg1)) | |
5562 | return NULL; | |
5563 | } | |
5564 | { | |
4268f798 | 5565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5566 | wxTreeItemAttr_SetTextColour(_arg0,*_arg1); |
00b6c4e3 | 5567 | |
4268f798 | 5568 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5569 | if (PyErr_Occurred()) return NULL; |
5570 | } Py_INCREF(Py_None); | |
5571 | _resultobj = Py_None; | |
5572 | return _resultobj; | |
5573 | } | |
5574 | ||
5575 | #define wxTreeItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
5576 | static PyObject *_wrap_wxTreeItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5577 | PyObject * _resultobj; | |
5578 | wxTreeItemAttr * _arg0; | |
5579 | wxColour * _arg1; | |
5580 | PyObject * _argo0 = 0; | |
5581 | wxColour temp; | |
5582 | PyObject * _obj1 = 0; | |
5583 | char *_kwnames[] = { "self","colBack", NULL }; | |
5584 | ||
5585 | self = self; | |
5586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
5587 | return NULL; | |
5588 | if (_argo0) { | |
5589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5592 | return NULL; | |
5593 | } | |
5594 | } | |
5595 | { | |
5596 | _arg1 = &temp; | |
5597 | if (! wxColour_helper(_obj1, &_arg1)) | |
5598 | return NULL; | |
5599 | } | |
5600 | { | |
4268f798 | 5601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5602 | wxTreeItemAttr_SetBackgroundColour(_arg0,*_arg1); |
00b6c4e3 | 5603 | |
4268f798 | 5604 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5605 | if (PyErr_Occurred()) return NULL; |
5606 | } Py_INCREF(Py_None); | |
5607 | _resultobj = Py_None; | |
5608 | return _resultobj; | |
5609 | } | |
5610 | ||
5611 | #define wxTreeItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
5612 | static PyObject *_wrap_wxTreeItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5613 | PyObject * _resultobj; | |
5614 | wxTreeItemAttr * _arg0; | |
5615 | wxFont * _arg1; | |
5616 | PyObject * _argo0 = 0; | |
5617 | PyObject * _argo1 = 0; | |
5618 | char *_kwnames[] = { "self","font", NULL }; | |
5619 | ||
5620 | self = self; | |
5621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
5622 | return NULL; | |
5623 | if (_argo0) { | |
5624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetFont. Expected _wxTreeItemAttr_p."); | |
5627 | return NULL; | |
5628 | } | |
5629 | } | |
5630 | if (_argo1) { | |
5631 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5632 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
5633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemAttr_SetFont. Expected _wxFont_p."); | |
5634 | return NULL; | |
5635 | } | |
5636 | } | |
5637 | { | |
4268f798 | 5638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5639 | wxTreeItemAttr_SetFont(_arg0,*_arg1); |
00b6c4e3 | 5640 | |
4268f798 | 5641 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5642 | if (PyErr_Occurred()) return NULL; |
5643 | } Py_INCREF(Py_None); | |
5644 | _resultobj = Py_None; | |
5645 | return _resultobj; | |
5646 | } | |
5647 | ||
5648 | #define wxTreeItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
5649 | static PyObject *_wrap_wxTreeItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5650 | PyObject * _resultobj; | |
5651 | bool _result; | |
5652 | wxTreeItemAttr * _arg0; | |
5653 | PyObject * _argo0 = 0; | |
5654 | char *_kwnames[] = { "self", NULL }; | |
5655 | ||
5656 | self = self; | |
5657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasTextColour",_kwnames,&_argo0)) | |
5658 | return NULL; | |
5659 | if (_argo0) { | |
5660 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5661 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasTextColour. Expected _wxTreeItemAttr_p."); | |
5663 | return NULL; | |
5664 | } | |
5665 | } | |
5666 | { | |
4268f798 | 5667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5668 | _result = (bool )wxTreeItemAttr_HasTextColour(_arg0); |
00b6c4e3 | 5669 | |
4268f798 | 5670 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5671 | if (PyErr_Occurred()) return NULL; |
5672 | } _resultobj = Py_BuildValue("i",_result); | |
5673 | return _resultobj; | |
5674 | } | |
5675 | ||
5676 | #define wxTreeItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
5677 | static PyObject *_wrap_wxTreeItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5678 | PyObject * _resultobj; | |
5679 | bool _result; | |
5680 | wxTreeItemAttr * _arg0; | |
5681 | PyObject * _argo0 = 0; | |
5682 | char *_kwnames[] = { "self", NULL }; | |
5683 | ||
5684 | self = self; | |
5685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
5686 | return NULL; | |
5687 | if (_argo0) { | |
5688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5691 | return NULL; | |
5692 | } | |
5693 | } | |
5694 | { | |
4268f798 | 5695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5696 | _result = (bool )wxTreeItemAttr_HasBackgroundColour(_arg0); |
00b6c4e3 | 5697 | |
4268f798 | 5698 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5699 | if (PyErr_Occurred()) return NULL; |
5700 | } _resultobj = Py_BuildValue("i",_result); | |
5701 | return _resultobj; | |
5702 | } | |
5703 | ||
5704 | #define wxTreeItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
5705 | static PyObject *_wrap_wxTreeItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5706 | PyObject * _resultobj; | |
5707 | bool _result; | |
5708 | wxTreeItemAttr * _arg0; | |
5709 | PyObject * _argo0 = 0; | |
5710 | char *_kwnames[] = { "self", NULL }; | |
5711 | ||
5712 | self = self; | |
5713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasFont",_kwnames,&_argo0)) | |
5714 | return NULL; | |
5715 | if (_argo0) { | |
5716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasFont. Expected _wxTreeItemAttr_p."); | |
5719 | return NULL; | |
5720 | } | |
5721 | } | |
5722 | { | |
4268f798 | 5723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5724 | _result = (bool )wxTreeItemAttr_HasFont(_arg0); |
00b6c4e3 | 5725 | |
4268f798 | 5726 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5727 | if (PyErr_Occurred()) return NULL; |
5728 | } _resultobj = Py_BuildValue("i",_result); | |
5729 | return _resultobj; | |
5730 | } | |
5731 | ||
5732 | #define wxTreeItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
5733 | static PyObject *_wrap_wxTreeItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5734 | PyObject * _resultobj; | |
5735 | wxColour * _result; | |
5736 | wxTreeItemAttr * _arg0; | |
5737 | PyObject * _argo0 = 0; | |
5738 | char *_kwnames[] = { "self", NULL }; | |
5739 | char _ptemp[128]; | |
5740 | ||
5741 | self = self; | |
5742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetTextColour",_kwnames,&_argo0)) | |
5743 | return NULL; | |
5744 | if (_argo0) { | |
5745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetTextColour. Expected _wxTreeItemAttr_p."); | |
5748 | return NULL; | |
5749 | } | |
5750 | } | |
5751 | { | |
4268f798 | 5752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5753 | _result = new wxColour (wxTreeItemAttr_GetTextColour(_arg0)); |
00b6c4e3 | 5754 | |
4268f798 | 5755 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 | 5756 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
5757 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5758 | _resultobj = Py_BuildValue("s",_ptemp); | |
00b6c4e3 RD |
5759 | return _resultobj; |
5760 | } | |
5761 | ||
5762 | #define wxTreeItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
5763 | static PyObject *_wrap_wxTreeItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5764 | PyObject * _resultobj; | |
5765 | wxColour * _result; | |
5766 | wxTreeItemAttr * _arg0; | |
5767 | PyObject * _argo0 = 0; | |
5768 | char *_kwnames[] = { "self", NULL }; | |
5769 | char _ptemp[128]; | |
5770 | ||
5771 | self = self; | |
5772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
5773 | return NULL; | |
5774 | if (_argo0) { | |
5775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5778 | return NULL; | |
5779 | } | |
5780 | } | |
5781 | { | |
4268f798 | 5782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5783 | _result = new wxColour (wxTreeItemAttr_GetBackgroundColour(_arg0)); |
00b6c4e3 | 5784 | |
4268f798 | 5785 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 | 5786 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
5787 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5788 | _resultobj = Py_BuildValue("s",_ptemp); | |
00b6c4e3 RD |
5789 | return _resultobj; |
5790 | } | |
5791 | ||
5792 | #define wxTreeItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
5793 | static PyObject *_wrap_wxTreeItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5794 | PyObject * _resultobj; | |
5795 | wxFont * _result; | |
5796 | wxTreeItemAttr * _arg0; | |
5797 | PyObject * _argo0 = 0; | |
5798 | char *_kwnames[] = { "self", NULL }; | |
5799 | char _ptemp[128]; | |
5800 | ||
5801 | self = self; | |
5802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetFont",_kwnames,&_argo0)) | |
5803 | return NULL; | |
5804 | if (_argo0) { | |
5805 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5806 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetFont. Expected _wxTreeItemAttr_p."); | |
5808 | return NULL; | |
5809 | } | |
5810 | } | |
5811 | { | |
4268f798 | 5812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5813 | _result = new wxFont (wxTreeItemAttr_GetFont(_arg0)); |
00b6c4e3 | 5814 | |
4268f798 | 5815 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 | 5816 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
5817 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
5818 | _resultobj = Py_BuildValue("s",_ptemp); | |
00b6c4e3 RD |
5819 | return _resultobj; |
5820 | } | |
5821 | ||
d5c9047a | 5822 | #define new_wxTreeItemId() (new wxTreeItemId()) |
efc5f224 | 5823 | static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5824 | PyObject * _resultobj; |
d5c9047a | 5825 | wxTreeItemId * _result; |
efc5f224 | 5826 | char *_kwnames[] = { NULL }; |
d5c9047a | 5827 | char _ptemp[128]; |
8ab979d7 RD |
5828 | |
5829 | self = self; | |
efc5f224 | 5830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames)) |
8ab979d7 | 5831 | return NULL; |
cf694132 | 5832 | { |
4268f798 | 5833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5834 | _result = (wxTreeItemId *)new_wxTreeItemId(); |
cf694132 | 5835 | |
4268f798 | 5836 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5837 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5838 | } if (_result) { |
5839 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
5840 | _resultobj = Py_BuildValue("s",_ptemp); | |
5841 | } else { | |
5842 | Py_INCREF(Py_None); | |
5843 | _resultobj = Py_None; | |
5844 | } | |
8ab979d7 RD |
5845 | return _resultobj; |
5846 | } | |
5847 | ||
d5c9047a | 5848 | #define delete_wxTreeItemId(_swigobj) (delete _swigobj) |
efc5f224 | 5849 | static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5850 | PyObject * _resultobj; |
d5c9047a | 5851 | wxTreeItemId * _arg0; |
1d99702e | 5852 | PyObject * _argo0 = 0; |
efc5f224 | 5853 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5854 | |
5855 | self = self; | |
efc5f224 | 5856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0)) |
8ab979d7 | 5857 | return NULL; |
1d99702e RD |
5858 | if (_argo0) { |
5859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 5861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
5862 | return NULL; |
5863 | } | |
5864 | } | |
cf694132 | 5865 | { |
4268f798 | 5866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5867 | delete_wxTreeItemId(_arg0); |
cf694132 | 5868 | |
4268f798 | 5869 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5870 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5871 | } Py_INCREF(Py_None); |
d5c9047a | 5872 | _resultobj = Py_None; |
8ab979d7 RD |
5873 | return _resultobj; |
5874 | } | |
5875 | ||
d5c9047a | 5876 | #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk()) |
efc5f224 | 5877 | static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5878 | PyObject * _resultobj; |
d5c9047a RD |
5879 | bool _result; |
5880 | wxTreeItemId * _arg0; | |
1d99702e | 5881 | PyObject * _argo0 = 0; |
efc5f224 | 5882 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5883 | |
5884 | self = self; | |
efc5f224 | 5885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0)) |
8ab979d7 | 5886 | return NULL; |
1d99702e RD |
5887 | if (_argo0) { |
5888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 5890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
5891 | return NULL; |
5892 | } | |
5893 | } | |
cf694132 | 5894 | { |
4268f798 | 5895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5896 | _result = (bool )wxTreeItemId_IsOk(_arg0); |
cf694132 | 5897 | |
4268f798 | 5898 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5899 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5900 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5901 | return _resultobj; |
5902 | } | |
5903 | ||
f6bcfd97 | 5904 | static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) { |
c368d904 | 5905 | if (! other) return -1; |
f6bcfd97 BP |
5906 | return *self != *other; |
5907 | } | |
5908 | static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5909 | PyObject * _resultobj; | |
5910 | int _result; | |
5911 | wxTreeItemId * _arg0; | |
5912 | wxTreeItemId * _arg1; | |
5913 | PyObject * _argo0 = 0; | |
5914 | PyObject * _argo1 = 0; | |
5915 | char *_kwnames[] = { "self","other", NULL }; | |
5916 | ||
5917 | self = self; | |
5918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1)) | |
5919 | return NULL; | |
5920 | if (_argo0) { | |
5921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5924 | return NULL; | |
5925 | } | |
5926 | } | |
5927 | if (_argo1) { | |
5928 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5929 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
5930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5931 | return NULL; | |
5932 | } | |
5933 | } | |
5934 | { | |
4268f798 | 5935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5936 | _result = (int )wxTreeItemId___cmp__(_arg0,_arg1); |
f6bcfd97 | 5937 | |
4268f798 | 5938 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5939 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5940 | } _resultobj = Py_BuildValue("i",_result); |
5941 | return _resultobj; | |
5942 | } | |
5943 | ||
9416aa89 RD |
5944 | static void *SwigwxPyTreeItemDataTowxObject(void *ptr) { |
5945 | wxPyTreeItemData *src; | |
5946 | wxObject *dest; | |
5947 | src = (wxPyTreeItemData *) ptr; | |
5948 | dest = (wxObject *) src; | |
5949 | return (void *) dest; | |
5950 | } | |
5951 | ||
cf694132 | 5952 | #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) |
efc5f224 | 5953 | static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5954 | PyObject * _resultobj; |
cf694132 | 5955 | wxPyTreeItemData * _result; |
1d99702e | 5956 | PyObject * _arg0 = (PyObject *) NULL; |
cf694132 | 5957 | PyObject * _obj0 = 0; |
efc5f224 | 5958 | char *_kwnames[] = { "obj", NULL }; |
d5c9047a | 5959 | char _ptemp[128]; |
8ab979d7 RD |
5960 | |
5961 | self = self; | |
efc5f224 | 5962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0)) |
8ab979d7 | 5963 | return NULL; |
cf694132 RD |
5964 | if (_obj0) |
5965 | { | |
5966 | _arg0 = _obj0; | |
5967 | } | |
5968 | { | |
4268f798 | 5969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5970 | _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0); |
cf694132 | 5971 | |
4268f798 | 5972 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5973 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5974 | } if (_result) { |
5975 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
5976 | _resultobj = Py_BuildValue("s",_ptemp); | |
5977 | } else { | |
5978 | Py_INCREF(Py_None); | |
5979 | _resultobj = Py_None; | |
5980 | } | |
8ab979d7 RD |
5981 | return _resultobj; |
5982 | } | |
5983 | ||
cf694132 | 5984 | #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData()) |
efc5f224 | 5985 | static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
5986 | PyObject * _resultobj; |
5987 | PyObject * _result; | |
5988 | wxPyTreeItemData * _arg0; | |
1d99702e | 5989 | PyObject * _argo0 = 0; |
efc5f224 | 5990 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
5991 | |
5992 | self = self; | |
efc5f224 | 5993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0)) |
cf694132 | 5994 | return NULL; |
1d99702e RD |
5995 | if (_argo0) { |
5996 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5997 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 RD |
5998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p."); |
5999 | return NULL; | |
6000 | } | |
6001 | } | |
6002 | { | |
4268f798 | 6003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6004 | _result = (PyObject *)wxTreeItemData_GetData(_arg0); |
cf694132 | 6005 | |
4268f798 | 6006 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6007 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
6008 | }{ |
6009 | _resultobj = _result; | |
6010 | } | |
6011 | return _resultobj; | |
6012 | } | |
6013 | ||
6014 | #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
efc5f224 | 6015 | static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6016 | PyObject * _resultobj; |
cf694132 RD |
6017 | wxPyTreeItemData * _arg0; |
6018 | PyObject * _arg1; | |
1d99702e | 6019 | PyObject * _argo0 = 0; |
cf694132 | 6020 | PyObject * _obj1 = 0; |
efc5f224 | 6021 | char *_kwnames[] = { "self","obj", NULL }; |
8ab979d7 RD |
6022 | |
6023 | self = self; | |
efc5f224 | 6024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6025 | return NULL; |
1d99702e RD |
6026 | if (_argo0) { |
6027 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6028 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 6029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
6030 | return NULL; |
6031 | } | |
6032 | } | |
cf694132 RD |
6033 | { |
6034 | _arg1 = _obj1; | |
6035 | } | |
6036 | { | |
4268f798 | 6037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6038 | wxTreeItemData_SetData(_arg0,_arg1); |
cf694132 | 6039 | |
4268f798 | 6040 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6041 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6042 | } Py_INCREF(Py_None); |
d5c9047a | 6043 | _resultobj = Py_None; |
8ab979d7 RD |
6044 | return _resultobj; |
6045 | } | |
6046 | ||
630d84f2 | 6047 | #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 6048 | static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6049 | PyObject * _resultobj; |
d5c9047a | 6050 | wxTreeItemId * _result; |
cf694132 | 6051 | wxPyTreeItemData * _arg0; |
1d99702e | 6052 | PyObject * _argo0 = 0; |
efc5f224 | 6053 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6054 | char _ptemp[128]; |
6055 | ||
6056 | self = self; | |
efc5f224 | 6057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0)) |
8ab979d7 | 6058 | return NULL; |
1d99702e RD |
6059 | if (_argo0) { |
6060 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6061 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 6062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
6063 | return NULL; |
6064 | } | |
6065 | } | |
cf694132 | 6066 | { |
4268f798 | 6067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6068 | const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0); |
d5c9047a | 6069 | _result = (wxTreeItemId *) &_result_ref; |
cf694132 | 6070 | |
4268f798 | 6071 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6072 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6073 | } if (_result) { |
6074 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
6075 | _resultobj = Py_BuildValue("s",_ptemp); | |
6076 | } else { | |
6077 | Py_INCREF(Py_None); | |
6078 | _resultobj = Py_None; | |
6079 | } | |
8ab979d7 RD |
6080 | return _resultobj; |
6081 | } | |
6082 | ||
630d84f2 | 6083 | #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
efc5f224 | 6084 | static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
630d84f2 | 6085 | PyObject * _resultobj; |
cf694132 | 6086 | wxPyTreeItemData * _arg0; |
630d84f2 | 6087 | wxTreeItemId * _arg1; |
1d99702e RD |
6088 | PyObject * _argo0 = 0; |
6089 | PyObject * _argo1 = 0; | |
efc5f224 | 6090 | char *_kwnames[] = { "self","id", NULL }; |
630d84f2 RD |
6091 | |
6092 | self = self; | |
efc5f224 | 6093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1)) |
630d84f2 | 6094 | return NULL; |
1d99702e RD |
6095 | if (_argo0) { |
6096 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6097 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 6098 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p."); |
630d84f2 RD |
6099 | return NULL; |
6100 | } | |
6101 | } | |
1d99702e RD |
6102 | if (_argo1) { |
6103 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6104 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
630d84f2 RD |
6105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p."); |
6106 | return NULL; | |
6107 | } | |
6108 | } | |
cf694132 | 6109 | { |
4268f798 | 6110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6111 | wxTreeItemData_SetId(_arg0,*_arg1); |
cf694132 | 6112 | |
4268f798 | 6113 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6114 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6115 | } Py_INCREF(Py_None); |
630d84f2 RD |
6116 | _resultobj = Py_None; |
6117 | return _resultobj; | |
6118 | } | |
6119 | ||
8bf5d46e RD |
6120 | static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) { |
6121 | wxTreeEvent *src; | |
6122 | wxNotifyEvent *dest; | |
6123 | src = (wxTreeEvent *) ptr; | |
6124 | dest = (wxNotifyEvent *) src; | |
6125 | return (void *) dest; | |
6126 | } | |
6127 | ||
8ab979d7 RD |
6128 | static void *SwigwxTreeEventTowxCommandEvent(void *ptr) { |
6129 | wxTreeEvent *src; | |
6130 | wxCommandEvent *dest; | |
6131 | src = (wxTreeEvent *) ptr; | |
6132 | dest = (wxCommandEvent *) src; | |
6133 | return (void *) dest; | |
6134 | } | |
6135 | ||
6136 | static void *SwigwxTreeEventTowxEvent(void *ptr) { | |
6137 | wxTreeEvent *src; | |
6138 | wxEvent *dest; | |
6139 | src = (wxTreeEvent *) ptr; | |
6140 | dest = (wxEvent *) src; | |
6141 | return (void *) dest; | |
6142 | } | |
6143 | ||
9416aa89 RD |
6144 | static void *SwigwxTreeEventTowxObject(void *ptr) { |
6145 | wxTreeEvent *src; | |
6146 | wxObject *dest; | |
6147 | src = (wxTreeEvent *) ptr; | |
6148 | dest = (wxObject *) src; | |
6149 | return (void *) dest; | |
6150 | } | |
6151 | ||
00b6c4e3 RD |
6152 | #define new_wxTreeEvent(_swigarg0,_swigarg1) (new wxTreeEvent(_swigarg0,_swigarg1)) |
6153 | static PyObject *_wrap_new_wxTreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6154 | PyObject * _resultobj; | |
6155 | wxTreeEvent * _result; | |
6156 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
6157 | int _arg1 = (int ) 0; | |
6158 | char *_kwnames[] = { "commandType","id", NULL }; | |
6159 | char _ptemp[128]; | |
6160 | ||
6161 | self = self; | |
6162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxTreeEvent",_kwnames,&_arg0,&_arg1)) | |
6163 | return NULL; | |
6164 | { | |
4268f798 | 6165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6166 | _result = (wxTreeEvent *)new_wxTreeEvent(_arg0,_arg1); |
00b6c4e3 | 6167 | |
4268f798 | 6168 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
6169 | if (PyErr_Occurred()) return NULL; |
6170 | } if (_result) { | |
6171 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeEvent_p"); | |
6172 | _resultobj = Py_BuildValue("s",_ptemp); | |
6173 | } else { | |
6174 | Py_INCREF(Py_None); | |
6175 | _resultobj = Py_None; | |
6176 | } | |
6177 | return _resultobj; | |
6178 | } | |
6179 | ||
d5c9047a | 6180 | #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
efc5f224 | 6181 | static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6182 | PyObject * _resultobj; |
d5c9047a | 6183 | wxTreeItemId * _result; |
8ab979d7 | 6184 | wxTreeEvent * _arg0; |
1d99702e | 6185 | PyObject * _argo0 = 0; |
efc5f224 | 6186 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6187 | char _ptemp[128]; |
8ab979d7 RD |
6188 | |
6189 | self = self; | |
efc5f224 | 6190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 6191 | return NULL; |
1d99702e RD |
6192 | if (_argo0) { |
6193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6196 | return NULL; |
6197 | } | |
6198 | } | |
cf694132 | 6199 | { |
4268f798 | 6200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6201 | _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0)); |
cf694132 | 6202 | |
4268f798 | 6203 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6204 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6205 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 6206 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6207 | return _resultobj; |
6208 | } | |
6209 | ||
d5c9047a | 6210 | #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
efc5f224 | 6211 | static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6212 | PyObject * _resultobj; |
d5c9047a | 6213 | wxTreeItemId * _result; |
8ab979d7 | 6214 | wxTreeEvent * _arg0; |
1d99702e | 6215 | PyObject * _argo0 = 0; |
efc5f224 | 6216 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6217 | char _ptemp[128]; |
6218 | ||
6219 | self = self; | |
efc5f224 | 6220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0)) |
8ab979d7 | 6221 | return NULL; |
1d99702e RD |
6222 | if (_argo0) { |
6223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6226 | return NULL; |
6227 | } | |
6228 | } | |
cf694132 | 6229 | { |
4268f798 | 6230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6231 | _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0)); |
cf694132 | 6232 | |
4268f798 | 6233 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6234 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6235 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8ab979d7 RD |
6236 | _resultobj = Py_BuildValue("s",_ptemp); |
6237 | return _resultobj; | |
6238 | } | |
6239 | ||
d5c9047a | 6240 | #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
efc5f224 | 6241 | static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6242 | PyObject * _resultobj; |
d5c9047a | 6243 | wxPoint * _result; |
8ab979d7 | 6244 | wxTreeEvent * _arg0; |
1d99702e | 6245 | PyObject * _argo0 = 0; |
efc5f224 | 6246 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6247 | char _ptemp[128]; |
8ab979d7 RD |
6248 | |
6249 | self = self; | |
efc5f224 | 6250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 6251 | return NULL; |
1d99702e RD |
6252 | if (_argo0) { |
6253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6256 | return NULL; |
6257 | } | |
6258 | } | |
cf694132 | 6259 | { |
4268f798 | 6260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6261 | _result = new wxPoint (wxTreeEvent_GetPoint(_arg0)); |
cf694132 | 6262 | |
4268f798 | 6263 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6264 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6265 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
d5c9047a | 6266 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6267 | return _resultobj; |
6268 | } | |
6269 | ||
ecc08ead RD |
6270 | #define wxTreeEvent_GetKeyEvent(_swigobj) (_swigobj->GetKeyEvent()) |
6271 | static PyObject *_wrap_wxTreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6272 | PyObject * _resultobj; | |
6273 | wxKeyEvent * _result; | |
6274 | wxTreeEvent * _arg0; | |
6275 | PyObject * _argo0 = 0; | |
6276 | char *_kwnames[] = { "self", NULL }; | |
6277 | char _ptemp[128]; | |
6278 | ||
6279 | self = self; | |
6280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetKeyEvent",_kwnames,&_argo0)) | |
6281 | return NULL; | |
6282 | if (_argo0) { | |
6283 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6284 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetKeyEvent. Expected _wxTreeEvent_p."); | |
6286 | return NULL; | |
6287 | } | |
6288 | } | |
6289 | { | |
4268f798 | 6290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6291 | const wxKeyEvent & _result_ref = wxTreeEvent_GetKeyEvent(_arg0); |
ecc08ead RD |
6292 | _result = (wxKeyEvent *) &_result_ref; |
6293 | ||
4268f798 | 6294 | wxPyEndAllowThreads(__tstate); |
ecc08ead RD |
6295 | if (PyErr_Occurred()) return NULL; |
6296 | } if (_result) { | |
6297 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxKeyEvent_p"); | |
6298 | _resultobj = Py_BuildValue("s",_ptemp); | |
6299 | } else { | |
6300 | Py_INCREF(Py_None); | |
6301 | _resultobj = Py_None; | |
6302 | } | |
6303 | return _resultobj; | |
6304 | } | |
6305 | ||
d5c9047a | 6306 | #define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
efc5f224 | 6307 | static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6308 | PyObject * _resultobj; |
d5c9047a | 6309 | int _result; |
8ab979d7 | 6310 | wxTreeEvent * _arg0; |
1d99702e | 6311 | PyObject * _argo0 = 0; |
efc5f224 | 6312 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6313 | |
6314 | self = self; | |
efc5f224 | 6315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 6316 | return NULL; |
1d99702e RD |
6317 | if (_argo0) { |
6318 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6319 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6321 | return NULL; |
6322 | } | |
6323 | } | |
cf694132 | 6324 | { |
4268f798 | 6325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6326 | _result = (int )wxTreeEvent_GetCode(_arg0); |
cf694132 | 6327 | |
4268f798 | 6328 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6329 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6330 | } _resultobj = Py_BuildValue("i",_result); |
d5c9047a RD |
6331 | return _resultobj; |
6332 | } | |
6333 | ||
8bf5d46e | 6334 | #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 6335 | static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 6336 | PyObject * _resultobj; |
8bf5d46e | 6337 | wxString * _result; |
d5c9047a | 6338 | wxTreeEvent * _arg0; |
1d99702e | 6339 | PyObject * _argo0 = 0; |
efc5f224 | 6340 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
6341 | |
6342 | self = self; | |
efc5f224 | 6343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0)) |
d5c9047a | 6344 | return NULL; |
1d99702e RD |
6345 | if (_argo0) { |
6346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
8bf5d46e | 6348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p."); |
d5c9047a RD |
6349 | return NULL; |
6350 | } | |
6351 | } | |
cf694132 | 6352 | { |
4268f798 | 6353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6354 | const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0); |
8bf5d46e | 6355 | _result = (wxString *) &_result_ref; |
cf694132 | 6356 | |
4268f798 | 6357 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6358 | if (PyErr_Occurred()) return NULL; |
8bf5d46e | 6359 | }{ |
c8bc7bb8 RD |
6360 | #if wxUSE_UNICODE |
6361 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6362 | #else | |
eec92d76 | 6363 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6364 | #endif |
8bf5d46e | 6365 | } |
8ab979d7 RD |
6366 | return _resultobj; |
6367 | } | |
6368 | ||
f6bcfd97 BP |
6369 | static void *SwigwxPyTreeCtrlTowxControl(void *ptr) { |
6370 | wxPyTreeCtrl *src; | |
8ab979d7 | 6371 | wxControl *dest; |
f6bcfd97 | 6372 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6373 | dest = (wxControl *) src; |
6374 | return (void *) dest; | |
6375 | } | |
6376 | ||
f6bcfd97 BP |
6377 | static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) { |
6378 | wxPyTreeCtrl *src; | |
8ab979d7 | 6379 | wxWindow *dest; |
f6bcfd97 | 6380 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6381 | dest = (wxWindow *) src; |
6382 | return (void *) dest; | |
6383 | } | |
6384 | ||
f6bcfd97 BP |
6385 | static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) { |
6386 | wxPyTreeCtrl *src; | |
8ab979d7 | 6387 | wxEvtHandler *dest; |
f6bcfd97 | 6388 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6389 | dest = (wxEvtHandler *) src; |
6390 | return (void *) dest; | |
6391 | } | |
6392 | ||
9416aa89 RD |
6393 | static void *SwigwxPyTreeCtrlTowxObject(void *ptr) { |
6394 | wxPyTreeCtrl *src; | |
6395 | wxObject *dest; | |
6396 | src = (wxPyTreeCtrl *) ptr; | |
6397 | dest = (wxObject *) src; | |
6398 | return (void *) dest; | |
6399 | } | |
6400 | ||
f6bcfd97 | 6401 | #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6402 | static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6403 | PyObject * _resultobj; |
f6bcfd97 | 6404 | wxPyTreeCtrl * _result; |
8ab979d7 | 6405 | wxWindow * _arg0; |
1d99702e | 6406 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
6407 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6408 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
00b6c4e3 | 6409 | long _arg4 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); |
e508a2b6 | 6410 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
137b5242 | 6411 | wxString * _arg6 = (wxString *) &wxPy_TreeCtrlNameStr; |
1d99702e | 6412 | PyObject * _argo0 = 0; |
2f90df85 RD |
6413 | wxPoint temp; |
6414 | PyObject * _obj2 = 0; | |
6415 | wxSize temp0; | |
6416 | PyObject * _obj3 = 0; | |
1d99702e | 6417 | PyObject * _argo5 = 0; |
137b5242 | 6418 | PyObject * _obj6 = 0; |
efc5f224 | 6419 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
6420 | char _ptemp[128]; |
6421 | ||
6422 | self = self; | |
137b5242 | 6423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) |
8ab979d7 | 6424 | return NULL; |
1d99702e RD |
6425 | if (_argo0) { |
6426 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6427 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p."); |
6429 | return NULL; | |
6430 | } | |
6431 | } | |
2f90df85 RD |
6432 | if (_obj2) |
6433 | { | |
6434 | _arg2 = &temp; | |
6435 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6436 | return NULL; |
2f90df85 RD |
6437 | } |
6438 | if (_obj3) | |
6439 | { | |
6440 | _arg3 = &temp0; | |
6441 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6442 | return NULL; |
2f90df85 | 6443 | } |
1d99702e RD |
6444 | if (_argo5) { |
6445 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6446 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
6447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p."); |
6448 | return NULL; | |
6449 | } | |
6450 | } | |
137b5242 RD |
6451 | if (_obj6) |
6452 | { | |
6453 | _arg6 = wxString_in_helper(_obj6); | |
6454 | if (_arg6 == NULL) | |
6455 | return NULL; | |
6456 | } | |
cf694132 | 6457 | { |
4268f798 | 6458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 6459 | _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
cf694132 | 6460 | |
4268f798 | 6461 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6462 | if (PyErr_Occurred()) return NULL; |
1d99702e | 6463 | } if (_result) { |
f6bcfd97 | 6464 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); |
1d99702e RD |
6465 | _resultobj = Py_BuildValue("s",_ptemp); |
6466 | } else { | |
6467 | Py_INCREF(Py_None); | |
6468 | _resultobj = Py_None; | |
6469 | } | |
137b5242 RD |
6470 | { |
6471 | if (_obj6) | |
6472 | delete _arg6; | |
6473 | } | |
8ab979d7 RD |
6474 | return _resultobj; |
6475 | } | |
6476 | ||
09f3d4e6 RD |
6477 | #define new_wxPreTreeCtrl() (new wxPyTreeCtrl()) |
6478 | static PyObject *_wrap_new_wxPreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6479 | PyObject * _resultobj; | |
6480 | wxPyTreeCtrl * _result; | |
6481 | char *_kwnames[] = { NULL }; | |
6482 | char _ptemp[128]; | |
6483 | ||
6484 | self = self; | |
6485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTreeCtrl",_kwnames)) | |
6486 | return NULL; | |
6487 | { | |
4268f798 | 6488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6489 | _result = (wxPyTreeCtrl *)new_wxPreTreeCtrl(); |
09f3d4e6 | 6490 | |
4268f798 | 6491 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6492 | if (PyErr_Occurred()) return NULL; |
6493 | } if (_result) { | |
6494 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); | |
6495 | _resultobj = Py_BuildValue("s",_ptemp); | |
6496 | } else { | |
6497 | Py_INCREF(Py_None); | |
6498 | _resultobj = Py_None; | |
6499 | } | |
6500 | return _resultobj; | |
6501 | } | |
6502 | ||
6503 | #define wxTreeCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
6504 | static PyObject *_wrap_wxTreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6505 | PyObject * _resultobj; | |
6506 | bool _result; | |
6507 | wxPyTreeCtrl * _arg0; | |
6508 | wxWindow * _arg1; | |
6509 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6510 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6511 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6512 | long _arg5 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); | |
6513 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 6514 | wxString * _arg7 = (wxString *) &wxPy_TreeCtrlNameStr; |
09f3d4e6 RD |
6515 | PyObject * _argo0 = 0; |
6516 | PyObject * _argo1 = 0; | |
6517 | wxPoint temp; | |
6518 | PyObject * _obj3 = 0; | |
6519 | wxSize temp0; | |
6520 | PyObject * _obj4 = 0; | |
6521 | PyObject * _argo6 = 0; | |
137b5242 | 6522 | PyObject * _obj7 = 0; |
09f3d4e6 RD |
6523 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; |
6524 | ||
6525 | self = self; | |
137b5242 | 6526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxTreeCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
09f3d4e6 RD |
6527 | return NULL; |
6528 | if (_argo0) { | |
6529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Create. Expected _wxPyTreeCtrl_p."); | |
6532 | return NULL; | |
6533 | } | |
6534 | } | |
6535 | if (_argo1) { | |
6536 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6537 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Create. Expected _wxWindow_p."); | |
6539 | return NULL; | |
6540 | } | |
6541 | } | |
6542 | if (_obj3) | |
6543 | { | |
6544 | _arg3 = &temp; | |
6545 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6546 | return NULL; | |
6547 | } | |
6548 | if (_obj4) | |
6549 | { | |
6550 | _arg4 = &temp0; | |
6551 | if (! wxSize_helper(_obj4, &_arg4)) | |
6552 | return NULL; | |
6553 | } | |
6554 | if (_argo6) { | |
6555 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6556 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
6557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_Create. Expected _wxValidator_p."); | |
6558 | return NULL; | |
6559 | } | |
6560 | } | |
137b5242 RD |
6561 | if (_obj7) |
6562 | { | |
6563 | _arg7 = wxString_in_helper(_obj7); | |
6564 | if (_arg7 == NULL) | |
6565 | return NULL; | |
6566 | } | |
09f3d4e6 | 6567 | { |
4268f798 | 6568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 6569 | _result = (bool )wxTreeCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
09f3d4e6 | 6570 | |
4268f798 | 6571 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6572 | if (PyErr_Occurred()) return NULL; |
6573 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
6574 | { |
6575 | if (_obj7) | |
6576 | delete _arg7; | |
6577 | } | |
09f3d4e6 RD |
6578 | return _resultobj; |
6579 | } | |
6580 | ||
0122b7e3 RD |
6581 | #define wxTreeCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
6582 | static PyObject *_wrap_wxTreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 BP |
6583 | PyObject * _resultobj; |
6584 | wxPyTreeCtrl * _arg0; | |
6585 | PyObject * _arg1; | |
6586 | PyObject * _arg2; | |
6587 | PyObject * _argo0 = 0; | |
6588 | PyObject * _obj1 = 0; | |
6589 | PyObject * _obj2 = 0; | |
6590 | char *_kwnames[] = { "self","self","_class", NULL }; | |
6591 | ||
6592 | self = self; | |
0122b7e3 | 6593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
f6bcfd97 BP |
6594 | return NULL; |
6595 | if (_argo0) { | |
6596 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6597 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
0122b7e3 | 6598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setCallbackInfo. Expected _wxPyTreeCtrl_p."); |
f6bcfd97 BP |
6599 | return NULL; |
6600 | } | |
6601 | } | |
6602 | { | |
6603 | _arg1 = _obj1; | |
6604 | } | |
6605 | { | |
6606 | _arg2 = _obj2; | |
6607 | } | |
6608 | { | |
4268f798 | 6609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6610 | wxTreeCtrl__setCallbackInfo(_arg0,_arg1,_arg2); |
f6bcfd97 | 6611 | |
4268f798 | 6612 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6613 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6614 | } Py_INCREF(Py_None); |
6615 | _resultobj = Py_None; | |
6616 | return _resultobj; | |
6617 | } | |
6618 | ||
d5c9047a | 6619 | #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount()) |
efc5f224 | 6620 | static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6621 | PyObject * _resultobj; |
c127177f | 6622 | size_t _result; |
f6bcfd97 | 6623 | wxPyTreeCtrl * _arg0; |
1d99702e | 6624 | PyObject * _argo0 = 0; |
efc5f224 | 6625 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6626 | |
6627 | self = self; | |
efc5f224 | 6628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0)) |
8ab979d7 | 6629 | return NULL; |
1d99702e RD |
6630 | if (_argo0) { |
6631 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6632 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6634 | return NULL; |
6635 | } | |
6636 | } | |
cf694132 | 6637 | { |
4268f798 | 6638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6639 | _result = (size_t )wxTreeCtrl_GetCount(_arg0); |
cf694132 | 6640 | |
4268f798 | 6641 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6642 | if (PyErr_Occurred()) return NULL; |
c127177f | 6643 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6644 | return _resultobj; |
6645 | } | |
6646 | ||
d5c9047a | 6647 | #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) |
efc5f224 | 6648 | static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6649 | PyObject * _resultobj; |
d5c9047a | 6650 | unsigned int _result; |
f6bcfd97 | 6651 | wxPyTreeCtrl * _arg0; |
1d99702e | 6652 | PyObject * _argo0 = 0; |
efc5f224 | 6653 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6654 | |
6655 | self = self; | |
efc5f224 | 6656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0)) |
8ab979d7 | 6657 | return NULL; |
1d99702e RD |
6658 | if (_argo0) { |
6659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6662 | return NULL; |
6663 | } | |
6664 | } | |
cf694132 | 6665 | { |
4268f798 | 6666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6667 | _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0); |
cf694132 | 6668 | |
4268f798 | 6669 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6670 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6671 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6672 | return _resultobj; |
6673 | } | |
6674 | ||
d5c9047a | 6675 | #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) |
efc5f224 | 6676 | static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6677 | PyObject * _resultobj; |
f6bcfd97 | 6678 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6679 | unsigned int _arg1; |
1d99702e | 6680 | PyObject * _argo0 = 0; |
efc5f224 | 6681 | char *_kwnames[] = { "self","indent", NULL }; |
8ab979d7 RD |
6682 | |
6683 | self = self; | |
efc5f224 | 6684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6685 | return NULL; |
1d99702e RD |
6686 | if (_argo0) { |
6687 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6688 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6690 | return NULL; |
6691 | } | |
6692 | } | |
cf694132 | 6693 | { |
4268f798 | 6694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6695 | wxTreeCtrl_SetIndent(_arg0,_arg1); |
cf694132 | 6696 | |
4268f798 | 6697 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6698 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6699 | } Py_INCREF(Py_None); |
d5c9047a | 6700 | _resultobj = Py_None; |
8ab979d7 RD |
6701 | return _resultobj; |
6702 | } | |
6703 | ||
d5c9047a | 6704 | #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList()) |
efc5f224 | 6705 | static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6706 | PyObject * _resultobj; |
d5c9047a | 6707 | wxImageList * _result; |
f6bcfd97 | 6708 | wxPyTreeCtrl * _arg0; |
1d99702e | 6709 | PyObject * _argo0 = 0; |
efc5f224 | 6710 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6711 | |
6712 | self = self; | |
efc5f224 | 6713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0)) |
8ab979d7 | 6714 | return NULL; |
1d99702e RD |
6715 | if (_argo0) { |
6716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6719 | return NULL; |
6720 | } | |
6721 | } | |
cf694132 | 6722 | { |
4268f798 | 6723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6724 | _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0); |
cf694132 | 6725 | |
4268f798 | 6726 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6727 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 6728 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
6729 | return _resultobj; |
6730 | } | |
6731 | ||
d5c9047a | 6732 | #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList()) |
efc5f224 | 6733 | static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6734 | PyObject * _resultobj; |
d5c9047a | 6735 | wxImageList * _result; |
f6bcfd97 | 6736 | wxPyTreeCtrl * _arg0; |
1d99702e | 6737 | PyObject * _argo0 = 0; |
efc5f224 | 6738 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6739 | |
6740 | self = self; | |
efc5f224 | 6741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0)) |
8ab979d7 | 6742 | return NULL; |
1d99702e RD |
6743 | if (_argo0) { |
6744 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6747 | return NULL; |
6748 | } | |
6749 | } | |
cf694132 | 6750 | { |
4268f798 | 6751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6752 | _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0); |
cf694132 | 6753 | |
4268f798 | 6754 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6755 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 6756 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
6757 | return _resultobj; |
6758 | } | |
6759 | ||
d5c9047a | 6760 | #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) |
efc5f224 | 6761 | static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6762 | PyObject * _resultobj; |
f6bcfd97 | 6763 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6764 | wxImageList * _arg1; |
1d99702e RD |
6765 | PyObject * _argo0 = 0; |
6766 | PyObject * _argo1 = 0; | |
efc5f224 | 6767 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
6768 | |
6769 | self = self; | |
efc5f224 | 6770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6771 | return NULL; |
1d99702e RD |
6772 | if (_argo0) { |
6773 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6774 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6776 | return NULL; |
6777 | } | |
6778 | } | |
1d99702e RD |
6779 | if (_argo1) { |
6780 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6781 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
6782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p."); |
6783 | return NULL; | |
6784 | } | |
6785 | } | |
cf694132 | 6786 | { |
4268f798 | 6787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6788 | wxTreeCtrl_SetImageList(_arg0,_arg1); |
cf694132 | 6789 | |
4268f798 | 6790 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6791 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6792 | } Py_INCREF(Py_None); |
d5c9047a | 6793 | _resultobj = Py_None; |
8ab979d7 RD |
6794 | return _resultobj; |
6795 | } | |
6796 | ||
d5c9047a | 6797 | #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0)) |
efc5f224 | 6798 | static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6799 | PyObject * _resultobj; |
f6bcfd97 | 6800 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6801 | wxImageList * _arg1; |
1d99702e RD |
6802 | PyObject * _argo0 = 0; |
6803 | PyObject * _argo1 = 0; | |
efc5f224 | 6804 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
6805 | |
6806 | self = self; | |
efc5f224 | 6807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6808 | return NULL; |
1d99702e RD |
6809 | if (_argo0) { |
6810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6813 | return NULL; |
6814 | } | |
6815 | } | |
1d99702e RD |
6816 | if (_argo1) { |
6817 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6818 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
6819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p."); |
6820 | return NULL; | |
6821 | } | |
6822 | } | |
cf694132 | 6823 | { |
4268f798 | 6824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6825 | wxTreeCtrl_SetStateImageList(_arg0,_arg1); |
cf694132 | 6826 | |
4268f798 | 6827 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6828 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6829 | } Py_INCREF(Py_None); |
d5c9047a | 6830 | _resultobj = Py_None; |
8ab979d7 RD |
6831 | return _resultobj; |
6832 | } | |
6833 | ||
00b6c4e3 RD |
6834 | #define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0)) |
6835 | static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6836 | PyObject * _resultobj; | |
6837 | wxPyTreeCtrl * _arg0; | |
6838 | wxImageList * _arg1; | |
6839 | PyObject * _argo0 = 0; | |
6840 | PyObject * _argo1 = 0; | |
6841 | char *_kwnames[] = { "self","imageList", NULL }; | |
6842 | ||
6843 | self = self; | |
6844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1)) | |
6845 | return NULL; | |
6846 | if (_argo0) { | |
6847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p."); | |
6850 | return NULL; | |
6851 | } | |
6852 | } | |
6853 | if (_argo1) { | |
6854 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6855 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p."); | |
6857 | return NULL; | |
6858 | } | |
6859 | } | |
6860 | { | |
4268f798 | 6861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6862 | wxTreeCtrl_AssignImageList(_arg0,_arg1); |
00b6c4e3 | 6863 | |
4268f798 | 6864 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
6865 | if (PyErr_Occurred()) return NULL; |
6866 | } Py_INCREF(Py_None); | |
6867 | _resultobj = Py_None; | |
6868 | return _resultobj; | |
6869 | } | |
6870 | ||
6871 | #define wxTreeCtrl_AssignStateImageList(_swigobj,_swigarg0) (_swigobj->AssignStateImageList(_swigarg0)) | |
6872 | static PyObject *_wrap_wxTreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6873 | PyObject * _resultobj; | |
6874 | wxPyTreeCtrl * _arg0; | |
6875 | wxImageList * _arg1; | |
6876 | PyObject * _argo0 = 0; | |
6877 | PyObject * _argo1 = 0; | |
6878 | char *_kwnames[] = { "self","imageList", NULL }; | |
6879 | ||
6880 | self = self; | |
6881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignStateImageList",_kwnames,&_argo0,&_argo1)) | |
6882 | return NULL; | |
6883 | if (_argo0) { | |
6884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignStateImageList. Expected _wxPyTreeCtrl_p."); | |
6887 | return NULL; | |
6888 | } | |
6889 | } | |
6890 | if (_argo1) { | |
6891 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6892 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignStateImageList. Expected _wxImageList_p."); | |
6894 | return NULL; | |
6895 | } | |
6896 | } | |
6897 | { | |
4268f798 | 6898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6899 | wxTreeCtrl_AssignStateImageList(_arg0,_arg1); |
00b6c4e3 | 6900 | |
4268f798 | 6901 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
6902 | if (PyErr_Occurred()) return NULL; |
6903 | } Py_INCREF(Py_None); | |
6904 | _resultobj = Py_None; | |
6905 | return _resultobj; | |
6906 | } | |
6907 | ||
b1462dfa RD |
6908 | #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing()) |
6909 | static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6910 | PyObject * _resultobj; | |
6911 | unsigned int _result; | |
f6bcfd97 | 6912 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
6913 | PyObject * _argo0 = 0; |
6914 | char *_kwnames[] = { "self", NULL }; | |
6915 | ||
6916 | self = self; | |
6917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0)) | |
6918 | return NULL; | |
6919 | if (_argo0) { | |
6920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
6923 | return NULL; |
6924 | } | |
6925 | } | |
6926 | { | |
4268f798 | 6927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6928 | _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0); |
b1462dfa | 6929 | |
4268f798 | 6930 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6931 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
6932 | } _resultobj = Py_BuildValue("i",_result); |
6933 | return _resultobj; | |
6934 | } | |
6935 | ||
6936 | #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0)) | |
6937 | static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6938 | PyObject * _resultobj; | |
f6bcfd97 | 6939 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
6940 | unsigned int _arg1; |
6941 | PyObject * _argo0 = 0; | |
6942 | char *_kwnames[] = { "self","spacing", NULL }; | |
6943 | ||
6944 | self = self; | |
6945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1)) | |
6946 | return NULL; | |
6947 | if (_argo0) { | |
6948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
6951 | return NULL; |
6952 | } | |
6953 | } | |
6954 | { | |
4268f798 | 6955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6956 | wxTreeCtrl_SetSpacing(_arg0,_arg1); |
b1462dfa | 6957 | |
4268f798 | 6958 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6959 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
6960 | } Py_INCREF(Py_None); |
6961 | _resultobj = Py_None; | |
6962 | return _resultobj; | |
6963 | } | |
6964 | ||
d5c9047a | 6965 | #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
efc5f224 | 6966 | static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6967 | PyObject * _resultobj; |
d5c9047a | 6968 | wxString * _result; |
f6bcfd97 | 6969 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6970 | wxTreeItemId * _arg1; |
1d99702e RD |
6971 | PyObject * _argo0 = 0; |
6972 | PyObject * _argo1 = 0; | |
efc5f224 | 6973 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6974 | |
6975 | self = self; | |
efc5f224 | 6976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6977 | return NULL; |
1d99702e RD |
6978 | if (_argo0) { |
6979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6982 | return NULL; |
6983 | } | |
6984 | } | |
1d99702e RD |
6985 | if (_argo1) { |
6986 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6987 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p."); |
6989 | return NULL; | |
6990 | } | |
6991 | } | |
d5c9047a | 6992 | { |
4268f798 | 6993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6994 | _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1)); |
cf694132 | 6995 | |
4268f798 | 6996 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6997 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6998 | }{ |
c8bc7bb8 RD |
6999 | #if wxUSE_UNICODE |
7000 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
7001 | #else | |
eec92d76 | 7002 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7003 | #endif |
d5c9047a RD |
7004 | } |
7005 | { | |
7006 | delete _result; | |
7007 | } | |
8ab979d7 RD |
7008 | return _resultobj; |
7009 | } | |
7010 | ||
694759cf | 7011 | #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1)) |
efc5f224 | 7012 | static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7013 | PyObject * _resultobj; |
d5c9047a | 7014 | int _result; |
f6bcfd97 | 7015 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7016 | wxTreeItemId * _arg1; |
694759cf | 7017 | wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
7018 | PyObject * _argo0 = 0; |
7019 | PyObject * _argo1 = 0; | |
694759cf | 7020 | char *_kwnames[] = { "self","item","which", NULL }; |
8ab979d7 RD |
7021 | |
7022 | self = self; | |
694759cf | 7023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 7024 | return NULL; |
1d99702e RD |
7025 | if (_argo0) { |
7026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7029 | return NULL; |
7030 | } | |
7031 | } | |
1d99702e RD |
7032 | if (_argo1) { |
7033 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7034 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p."); |
7036 | return NULL; | |
7037 | } | |
7038 | } | |
cf694132 | 7039 | { |
4268f798 | 7040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7041 | _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2); |
cf694132 | 7042 | |
4268f798 | 7043 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7044 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7045 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7046 | return _resultobj; |
7047 | } | |
7048 | ||
d5c9047a | 7049 | #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0)) |
efc5f224 | 7050 | static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7051 | PyObject * _resultobj; |
d5c9047a | 7052 | int _result; |
f6bcfd97 | 7053 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7054 | wxTreeItemId * _arg1; |
1d99702e RD |
7055 | PyObject * _argo0 = 0; |
7056 | PyObject * _argo1 = 0; | |
efc5f224 | 7057 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7058 | |
7059 | self = self; | |
efc5f224 | 7060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7061 | return NULL; |
1d99702e RD |
7062 | if (_argo0) { |
7063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7066 | return NULL; |
7067 | } | |
7068 | } | |
1d99702e RD |
7069 | if (_argo1) { |
7070 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7071 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p."); |
7073 | return NULL; | |
7074 | } | |
7075 | } | |
cf694132 | 7076 | { |
4268f798 | 7077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7078 | _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1); |
8ab979d7 | 7079 | |
4268f798 | 7080 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7081 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7082 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7083 | return _resultobj; |
7084 | } | |
7085 | ||
d5c9047a | 7086 | #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
efc5f224 | 7087 | static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7088 | PyObject * _resultobj; |
f6bcfd97 | 7089 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7090 | wxTreeItemId * _arg1; |
7091 | wxString * _arg2; | |
1d99702e RD |
7092 | PyObject * _argo0 = 0; |
7093 | PyObject * _argo1 = 0; | |
d5c9047a | 7094 | PyObject * _obj2 = 0; |
efc5f224 | 7095 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
7096 | |
7097 | self = self; | |
efc5f224 | 7098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7099 | return NULL; |
1d99702e RD |
7100 | if (_argo0) { |
7101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7104 | return NULL; |
7105 | } | |
7106 | } | |
1d99702e RD |
7107 | if (_argo1) { |
7108 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7109 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p."); |
7111 | return NULL; | |
7112 | } | |
7113 | } | |
7114 | { | |
c8bc7bb8 RD |
7115 | _arg2 = wxString_in_helper(_obj2); |
7116 | if (_arg2 == NULL) | |
185d7c3e | 7117 | return NULL; |
d5c9047a | 7118 | } |
cf694132 | 7119 | { |
4268f798 | 7120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7121 | wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2); |
cf694132 | 7122 | |
4268f798 | 7123 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7124 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7125 | } Py_INCREF(Py_None); |
d5c9047a RD |
7126 | _resultobj = Py_None; |
7127 | { | |
7128 | if (_obj2) | |
7129 | delete _arg2; | |
7130 | } | |
8ab979d7 RD |
7131 | return _resultobj; |
7132 | } | |
7133 | ||
694759cf | 7134 | #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 7135 | static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7136 | PyObject * _resultobj; |
f6bcfd97 | 7137 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7138 | wxTreeItemId * _arg1; |
7139 | int _arg2; | |
694759cf | 7140 | wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
7141 | PyObject * _argo0 = 0; |
7142 | PyObject * _argo1 = 0; | |
694759cf | 7143 | char *_kwnames[] = { "self","item","image","which", NULL }; |
8ab979d7 RD |
7144 | |
7145 | self = self; | |
694759cf | 7146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 7147 | return NULL; |
1d99702e RD |
7148 | if (_argo0) { |
7149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7152 | return NULL; |
7153 | } | |
7154 | } | |
1d99702e RD |
7155 | if (_argo1) { |
7156 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7157 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p."); |
7159 | return NULL; | |
7160 | } | |
7161 | } | |
cf694132 | 7162 | { |
4268f798 | 7163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7164 | wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 7165 | |
4268f798 | 7166 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7167 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7168 | } Py_INCREF(Py_None); |
d5c9047a | 7169 | _resultobj = Py_None; |
8ab979d7 RD |
7170 | return _resultobj; |
7171 | } | |
7172 | ||
d5c9047a | 7173 | #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1)) |
efc5f224 | 7174 | static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7175 | PyObject * _resultobj; |
f6bcfd97 | 7176 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7177 | wxTreeItemId * _arg1; |
7178 | int _arg2; | |
1d99702e RD |
7179 | PyObject * _argo0 = 0; |
7180 | PyObject * _argo1 = 0; | |
efc5f224 | 7181 | char *_kwnames[] = { "self","item","image", NULL }; |
8ab979d7 RD |
7182 | |
7183 | self = self; | |
efc5f224 | 7184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 7185 | return NULL; |
1d99702e RD |
7186 | if (_argo0) { |
7187 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7188 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7190 | return NULL; |
7191 | } | |
7192 | } | |
1d99702e RD |
7193 | if (_argo1) { |
7194 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7195 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p."); |
7197 | return NULL; | |
7198 | } | |
7199 | } | |
cf694132 | 7200 | { |
4268f798 | 7201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7202 | wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2); |
cf694132 | 7203 | |
4268f798 | 7204 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7205 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7206 | } Py_INCREF(Py_None); |
7207 | _resultobj = Py_None; | |
7208 | return _resultobj; | |
7209 | } | |
7210 | ||
7211 | #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1)) | |
efc5f224 | 7212 | static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7213 | PyObject * _resultobj; |
f6bcfd97 | 7214 | wxPyTreeCtrl * _arg0; |
cf694132 | 7215 | wxTreeItemId * _arg1; |
1d99702e RD |
7216 | bool _arg2 = (bool ) TRUE; |
7217 | PyObject * _argo0 = 0; | |
7218 | PyObject * _argo1 = 0; | |
7219 | int tempbool2 = (int) TRUE; | |
efc5f224 | 7220 | char *_kwnames[] = { "self","item","hasChildren", NULL }; |
cf694132 RD |
7221 | |
7222 | self = self; | |
efc5f224 | 7223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2)) |
cf694132 | 7224 | return NULL; |
1d99702e RD |
7225 | if (_argo0) { |
7226 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7227 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7229 | return NULL; |
7230 | } | |
7231 | } | |
1d99702e RD |
7232 | if (_argo1) { |
7233 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7234 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p."); |
7236 | return NULL; | |
7237 | } | |
7238 | } | |
7239 | _arg2 = (bool ) tempbool2; | |
7240 | { | |
4268f798 | 7241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7242 | wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2); |
cf694132 | 7243 | |
4268f798 | 7244 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7245 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7246 | } Py_INCREF(Py_None); |
d5c9047a | 7247 | _resultobj = Py_None; |
8ab979d7 RD |
7248 | return _resultobj; |
7249 | } | |
7250 | ||
f6bcfd97 | 7251 | static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7252 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7253 | if (data == NULL) { | |
7254 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7255 | data->SetId(item); // set the id |
cf694132 RD |
7256 | self->SetItemData(item, data); |
7257 | } | |
7258 | return data; | |
7259 | } | |
efc5f224 | 7260 | static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
7261 | PyObject * _resultobj; |
7262 | wxPyTreeItemData * _result; | |
f6bcfd97 | 7263 | wxPyTreeCtrl * _arg0; |
cf694132 | 7264 | wxTreeItemId * _arg1; |
1d99702e RD |
7265 | PyObject * _argo0 = 0; |
7266 | PyObject * _argo1 = 0; | |
efc5f224 | 7267 | char *_kwnames[] = { "self","item", NULL }; |
cf694132 RD |
7268 | char _ptemp[128]; |
7269 | ||
7270 | self = self; | |
efc5f224 | 7271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1)) |
cf694132 | 7272 | return NULL; |
1d99702e RD |
7273 | if (_argo0) { |
7274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7277 | return NULL; |
7278 | } | |
7279 | } | |
1d99702e RD |
7280 | if (_argo1) { |
7281 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7282 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p."); |
7284 | return NULL; | |
7285 | } | |
7286 | } | |
7287 | { | |
4268f798 | 7288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7289 | _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1); |
cf694132 | 7290 | |
4268f798 | 7291 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7292 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7293 | } if (_result) { |
7294 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
7295 | _resultobj = Py_BuildValue("s",_ptemp); | |
7296 | } else { | |
7297 | Py_INCREF(Py_None); | |
7298 | _resultobj = Py_None; | |
7299 | } | |
cf694132 RD |
7300 | return _resultobj; |
7301 | } | |
7302 | ||
f6bcfd97 BP |
7303 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) { |
7304 | data->SetId(item); // set the id | |
7305 | self->SetItemData(item, data); | |
c368d904 | 7306 | } |
efc5f224 | 7307 | static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7308 | PyObject * _resultobj; |
f6bcfd97 | 7309 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7310 | wxTreeItemId * _arg1; |
cf694132 | 7311 | wxPyTreeItemData * _arg2; |
1d99702e RD |
7312 | PyObject * _argo0 = 0; |
7313 | PyObject * _argo1 = 0; | |
7314 | PyObject * _argo2 = 0; | |
efc5f224 | 7315 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
7316 | |
7317 | self = self; | |
efc5f224 | 7318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2)) |
8ab979d7 | 7319 | return NULL; |
1d99702e RD |
7320 | if (_argo0) { |
7321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7324 | return NULL; |
7325 | } | |
7326 | } | |
1d99702e RD |
7327 | if (_argo1) { |
7328 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7329 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p."); |
7331 | return NULL; | |
7332 | } | |
7333 | } | |
1d99702e RD |
7334 | if (_argo2) { |
7335 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7336 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) { | |
cf694132 | 7337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
7338 | return NULL; |
7339 | } | |
7340 | } | |
cf694132 | 7341 | { |
4268f798 | 7342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7343 | wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2); |
cf694132 | 7344 | |
4268f798 | 7345 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7346 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7347 | } Py_INCREF(Py_None); |
d5c9047a | 7348 | _resultobj = Py_None; |
8ab979d7 RD |
7349 | return _resultobj; |
7350 | } | |
7351 | ||
f6bcfd97 | 7352 | static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7353 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7354 | if (data == NULL) { | |
7355 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7356 | data->SetId(item); // set the id |
cf694132 RD |
7357 | self->SetItemData(item, data); |
7358 | } | |
7359 | return data->GetData(); | |
c368d904 | 7360 | } |
efc5f224 | 7361 | static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 7362 | PyObject * _resultobj; |
cf694132 | 7363 | PyObject * _result; |
f6bcfd97 | 7364 | wxPyTreeCtrl * _arg0; |
08127323 | 7365 | wxTreeItemId * _arg1; |
1d99702e RD |
7366 | PyObject * _argo0 = 0; |
7367 | PyObject * _argo1 = 0; | |
efc5f224 | 7368 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
7369 | |
7370 | self = self; | |
efc5f224 | 7371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1)) |
08127323 | 7372 | return NULL; |
1d99702e RD |
7373 | if (_argo0) { |
7374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
7377 | return NULL; |
7378 | } | |
7379 | } | |
1d99702e RD |
7380 | if (_argo1) { |
7381 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7382 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 | 7383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p."); |
08127323 RD |
7384 | return NULL; |
7385 | } | |
7386 | } | |
cf694132 | 7387 | { |
4268f798 | 7388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7389 | _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1); |
cf694132 | 7390 | |
4268f798 | 7391 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7392 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7393 | }{ |
7394 | _resultobj = _result; | |
7395 | } | |
7396 | return _resultobj; | |
7397 | } | |
7398 | ||
f6bcfd97 | 7399 | static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) { |
cf694132 RD |
7400 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7401 | if (data == NULL) { | |
7402 | data = new wxPyTreeItemData(obj); | |
f6bcfd97 | 7403 | data->SetId(item); // set the id |
cf694132 RD |
7404 | self->SetItemData(item, data); |
7405 | } else | |
7406 | data->SetData(obj); | |
c368d904 | 7407 | } |
efc5f224 | 7408 | static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7409 | PyObject * _resultobj; |
f6bcfd97 | 7410 | wxPyTreeCtrl * _arg0; |
cf694132 RD |
7411 | wxTreeItemId * _arg1; |
7412 | PyObject * _arg2; | |
1d99702e RD |
7413 | PyObject * _argo0 = 0; |
7414 | PyObject * _argo1 = 0; | |
cf694132 | 7415 | PyObject * _obj2 = 0; |
efc5f224 | 7416 | char *_kwnames[] = { "self","item","obj", NULL }; |
cf694132 RD |
7417 | |
7418 | self = self; | |
efc5f224 | 7419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2)) |
cf694132 | 7420 | return NULL; |
1d99702e RD |
7421 | if (_argo0) { |
7422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7425 | return NULL; |
7426 | } | |
7427 | } | |
1d99702e RD |
7428 | if (_argo1) { |
7429 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7430 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p."); |
7432 | return NULL; | |
7433 | } | |
7434 | } | |
7435 | { | |
7436 | _arg2 = _obj2; | |
7437 | } | |
7438 | { | |
4268f798 | 7439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7440 | wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2); |
cf694132 | 7441 | |
4268f798 | 7442 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7443 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7444 | } Py_INCREF(Py_None); |
08127323 RD |
7445 | _resultobj = Py_None; |
7446 | return _resultobj; | |
7447 | } | |
7448 | ||
d5c9047a | 7449 | #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) |
efc5f224 | 7450 | static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7451 | PyObject * _resultobj; |
d5c9047a | 7452 | bool _result; |
f6bcfd97 | 7453 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7454 | wxTreeItemId * _arg1; |
1d99702e RD |
7455 | PyObject * _argo0 = 0; |
7456 | PyObject * _argo1 = 0; | |
efc5f224 | 7457 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7458 | |
7459 | self = self; | |
efc5f224 | 7460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7461 | return NULL; |
1d99702e RD |
7462 | if (_argo0) { |
7463 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7464 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7466 | return NULL; |
7467 | } | |
7468 | } | |
1d99702e RD |
7469 | if (_argo1) { |
7470 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7471 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p."); |
7473 | return NULL; | |
7474 | } | |
7475 | } | |
cf694132 | 7476 | { |
4268f798 | 7477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7478 | _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1); |
cf694132 | 7479 | |
4268f798 | 7480 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7481 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7482 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7483 | return _resultobj; |
7484 | } | |
7485 | ||
d5c9047a | 7486 | #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0)) |
efc5f224 | 7487 | static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7488 | PyObject * _resultobj; |
d5c9047a | 7489 | bool _result; |
f6bcfd97 | 7490 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7491 | wxTreeItemId * _arg1; |
1d99702e RD |
7492 | PyObject * _argo0 = 0; |
7493 | PyObject * _argo1 = 0; | |
efc5f224 | 7494 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7495 | |
7496 | self = self; | |
efc5f224 | 7497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7498 | return NULL; |
1d99702e RD |
7499 | if (_argo0) { |
7500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7503 | return NULL; |
7504 | } | |
7505 | } | |
1d99702e RD |
7506 | if (_argo1) { |
7507 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7508 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p."); |
7510 | return NULL; | |
7511 | } | |
7512 | } | |
cf694132 | 7513 | { |
4268f798 | 7514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7515 | _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1); |
cf694132 | 7516 | |
4268f798 | 7517 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7518 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7519 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7520 | return _resultobj; |
7521 | } | |
7522 | ||
d5c9047a | 7523 | #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0)) |
efc5f224 | 7524 | static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7525 | PyObject * _resultobj; |
d5c9047a | 7526 | bool _result; |
f6bcfd97 | 7527 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7528 | wxTreeItemId * _arg1; |
1d99702e RD |
7529 | PyObject * _argo0 = 0; |
7530 | PyObject * _argo1 = 0; | |
efc5f224 | 7531 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7532 | |
7533 | self = self; | |
efc5f224 | 7534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7535 | return NULL; |
1d99702e RD |
7536 | if (_argo0) { |
7537 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7538 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7539 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7540 | return NULL; |
7541 | } | |
7542 | } | |
1d99702e RD |
7543 | if (_argo1) { |
7544 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7545 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p."); |
7547 | return NULL; | |
7548 | } | |
7549 | } | |
cf694132 | 7550 | { |
4268f798 | 7551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7552 | _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1); |
cf694132 | 7553 | |
4268f798 | 7554 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7555 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7556 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7557 | return _resultobj; |
7558 | } | |
7559 | ||
d5c9047a | 7560 | #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
efc5f224 | 7561 | static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7562 | PyObject * _resultobj; |
d5c9047a | 7563 | bool _result; |
f6bcfd97 | 7564 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7565 | wxTreeItemId * _arg1; |
1d99702e RD |
7566 | PyObject * _argo0 = 0; |
7567 | PyObject * _argo1 = 0; | |
efc5f224 | 7568 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7569 | |
7570 | self = self; | |
efc5f224 | 7571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7572 | return NULL; |
1d99702e RD |
7573 | if (_argo0) { |
7574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7577 | return NULL; |
7578 | } | |
7579 | } | |
1d99702e RD |
7580 | if (_argo1) { |
7581 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7582 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p."); |
7584 | return NULL; | |
7585 | } | |
7586 | } | |
cf694132 | 7587 | { |
4268f798 | 7588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7589 | _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1); |
cf694132 | 7590 | |
4268f798 | 7591 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7592 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7593 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7594 | return _resultobj; |
7595 | } | |
7596 | ||
7597 | #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem()) | |
efc5f224 | 7598 | static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7599 | PyObject * _resultobj; |
d5c9047a | 7600 | wxTreeItemId * _result; |
f6bcfd97 | 7601 | wxPyTreeCtrl * _arg0; |
1d99702e | 7602 | PyObject * _argo0 = 0; |
efc5f224 | 7603 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7604 | char _ptemp[128]; |
8ab979d7 RD |
7605 | |
7606 | self = self; | |
efc5f224 | 7607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0)) |
8ab979d7 | 7608 | return NULL; |
1d99702e RD |
7609 | if (_argo0) { |
7610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7613 | return NULL; |
7614 | } | |
7615 | } | |
cf694132 | 7616 | { |
4268f798 | 7617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7618 | _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0)); |
cf694132 | 7619 | |
4268f798 | 7620 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7621 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7622 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7623 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7624 | return _resultobj; |
7625 | } | |
7626 | ||
7627 | #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 7628 | static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7629 | PyObject * _resultobj; |
d5c9047a | 7630 | wxTreeItemId * _result; |
f6bcfd97 | 7631 | wxPyTreeCtrl * _arg0; |
1d99702e | 7632 | PyObject * _argo0 = 0; |
efc5f224 | 7633 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7634 | char _ptemp[128]; |
8ab979d7 RD |
7635 | |
7636 | self = self; | |
efc5f224 | 7637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 7638 | return NULL; |
1d99702e RD |
7639 | if (_argo0) { |
7640 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7641 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7643 | return NULL; |
7644 | } | |
7645 | } | |
cf694132 | 7646 | { |
4268f798 | 7647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7648 | _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0)); |
cf694132 | 7649 | |
4268f798 | 7650 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7651 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7652 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7653 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7654 | return _resultobj; |
7655 | } | |
7656 | ||
eb715945 RD |
7657 | #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0)) |
7658 | static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7659 | PyObject * _resultobj; |
d5c9047a | 7660 | wxTreeItemId * _result; |
f6bcfd97 | 7661 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7662 | wxTreeItemId * _arg1; |
1d99702e RD |
7663 | PyObject * _argo0 = 0; |
7664 | PyObject * _argo1 = 0; | |
efc5f224 | 7665 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7666 | char _ptemp[128]; |
8ab979d7 RD |
7667 | |
7668 | self = self; | |
eb715945 | 7669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7670 | return NULL; |
1d99702e RD |
7671 | if (_argo0) { |
7672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7675 | return NULL; |
7676 | } | |
7677 | } | |
1d99702e RD |
7678 | if (_argo1) { |
7679 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7680 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
eb715945 | 7681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7682 | return NULL; |
7683 | } | |
7684 | } | |
cf694132 | 7685 | { |
4268f798 | 7686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7687 | _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1)); |
cf694132 | 7688 | |
4268f798 | 7689 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7690 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7691 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7692 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7693 | return _resultobj; |
7694 | } | |
7695 | ||
f6bcfd97 | 7696 | static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) { |
4268f798 | 7697 | wxPyBeginBlockThreads(); |
d426c97e RD |
7698 | PyObject* rval = PyList_New(0); |
7699 | wxArrayTreeItemIds array; | |
7700 | size_t num, x; | |
7701 | num = self->GetSelections(array); | |
7702 | for (x=0; x < num; x++) { | |
c368d904 RD |
7703 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); |
7704 | PyObject* item = wxPyConstructObject((void*)tii, "wxTreeItemId", TRUE); | |
d426c97e RD |
7705 | PyList_Append(rval, item); |
7706 | } | |
4268f798 | 7707 | wxPyEndBlockThreads(); |
d426c97e RD |
7708 | return rval; |
7709 | } | |
7710 | static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7711 | PyObject * _resultobj; | |
7712 | PyObject * _result; | |
f6bcfd97 | 7713 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
7714 | PyObject * _argo0 = 0; |
7715 | char *_kwnames[] = { "self", NULL }; | |
7716 | ||
7717 | self = self; | |
7718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0)) | |
7719 | return NULL; | |
7720 | if (_argo0) { | |
7721 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
7724 | return NULL; |
7725 | } | |
7726 | } | |
7727 | { | |
4268f798 | 7728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7729 | _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0); |
d426c97e | 7730 | |
4268f798 | 7731 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7732 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
7733 | }{ |
7734 | _resultobj = _result; | |
7735 | } | |
7736 | return _resultobj; | |
7737 | } | |
7738 | ||
bb0054cd | 7739 | #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1)) |
efc5f224 | 7740 | static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
7741 | PyObject * _resultobj; |
7742 | size_t _result; | |
f6bcfd97 | 7743 | wxPyTreeCtrl * _arg0; |
bb0054cd | 7744 | wxTreeItemId * _arg1; |
1d99702e RD |
7745 | bool _arg2 = (bool ) TRUE; |
7746 | PyObject * _argo0 = 0; | |
7747 | PyObject * _argo1 = 0; | |
7748 | int tempbool2 = (int) TRUE; | |
efc5f224 | 7749 | char *_kwnames[] = { "self","item","recursively", NULL }; |
bb0054cd RD |
7750 | |
7751 | self = self; | |
efc5f224 | 7752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2)) |
bb0054cd | 7753 | return NULL; |
1d99702e RD |
7754 | if (_argo0) { |
7755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p."); | |
bb0054cd RD |
7758 | return NULL; |
7759 | } | |
7760 | } | |
1d99702e RD |
7761 | if (_argo1) { |
7762 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7763 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
bb0054cd RD |
7764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p."); |
7765 | return NULL; | |
7766 | } | |
7767 | } | |
7768 | _arg2 = (bool ) tempbool2; | |
7769 | { | |
4268f798 | 7770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7771 | _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2); |
bb0054cd | 7772 | |
4268f798 | 7773 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7774 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
7775 | } _resultobj = Py_BuildValue("i",_result); |
7776 | return _resultobj; | |
7777 | } | |
7778 | ||
d5c9047a | 7779 | #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1)) |
efc5f224 | 7780 | static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7781 | PyObject * _resultobj; |
d5c9047a | 7782 | wxTreeItemId * _result; |
f6bcfd97 | 7783 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7784 | wxTreeItemId * _arg1; |
0815db26 | 7785 | long * _arg2 = (long *) &longzero; |
1d99702e RD |
7786 | PyObject * _argo0 = 0; |
7787 | PyObject * _argo1 = 0; | |
d5c9047a RD |
7788 | long temp; |
7789 | PyObject * _obj2 = 0; | |
efc5f224 | 7790 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 7791 | char _ptemp[128]; |
8ab979d7 RD |
7792 | |
7793 | self = self; | |
f87dfa06 | 7794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7795 | return NULL; |
1d99702e RD |
7796 | if (_argo0) { |
7797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7800 | return NULL; |
7801 | } | |
7802 | } | |
1d99702e RD |
7803 | if (_argo1) { |
7804 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7805 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7807 | return NULL; |
7808 | } | |
7809 | } | |
f87dfa06 | 7810 | if (_obj2) |
d5c9047a RD |
7811 | { |
7812 | temp = (long) PyInt_AsLong(_obj2); | |
7813 | _arg2 = &temp; | |
7814 | } | |
cf694132 | 7815 | { |
4268f798 | 7816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7817 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); |
cf694132 | 7818 | |
4268f798 | 7819 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7820 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7821 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
7822 | _resultobj = Py_BuildValue("s",_ptemp); |
7823 | { | |
7824 | PyObject *o; | |
7825 | o = PyInt_FromLong((long) (*_arg2)); | |
7826 | _resultobj = t_output_helper(_resultobj, o); | |
7827 | } | |
8ab979d7 RD |
7828 | return _resultobj; |
7829 | } | |
7830 | ||
d5c9047a | 7831 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) |
efc5f224 | 7832 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7833 | PyObject * _resultobj; |
d5c9047a | 7834 | wxTreeItemId * _result; |
f6bcfd97 | 7835 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7836 | wxTreeItemId * _arg1; |
7837 | long * _arg2; | |
1d99702e RD |
7838 | PyObject * _argo0 = 0; |
7839 | PyObject * _argo1 = 0; | |
d5c9047a | 7840 | long temp; |
8ab979d7 | 7841 | PyObject * _obj2 = 0; |
efc5f224 | 7842 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 7843 | char _ptemp[128]; |
8ab979d7 RD |
7844 | |
7845 | self = self; | |
efc5f224 | 7846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7847 | return NULL; |
1d99702e RD |
7848 | if (_argo0) { |
7849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7852 | return NULL; |
7853 | } | |
7854 | } | |
1d99702e RD |
7855 | if (_argo1) { |
7856 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7857 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); |
8ab979d7 | 7859 | return NULL; |
d5c9047a | 7860 | } |
8ab979d7 | 7861 | } |
d5c9047a RD |
7862 | { |
7863 | temp = (long) PyInt_AsLong(_obj2); | |
7864 | _arg2 = &temp; | |
8ab979d7 | 7865 | } |
cf694132 | 7866 | { |
4268f798 | 7867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7868 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); |
cf694132 | 7869 | |
4268f798 | 7870 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7871 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7872 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7873 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 | 7874 | { |
d5c9047a RD |
7875 | PyObject *o; |
7876 | o = PyInt_FromLong((long) (*_arg2)); | |
7877 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
7878 | } |
7879 | return _resultobj; | |
7880 | } | |
7881 | ||
d5c9047a | 7882 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) |
efc5f224 | 7883 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7884 | PyObject * _resultobj; |
d5c9047a | 7885 | wxTreeItemId * _result; |
f6bcfd97 | 7886 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7887 | wxTreeItemId * _arg1; |
1d99702e RD |
7888 | PyObject * _argo0 = 0; |
7889 | PyObject * _argo1 = 0; | |
efc5f224 | 7890 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7891 | char _ptemp[128]; |
8ab979d7 RD |
7892 | |
7893 | self = self; | |
efc5f224 | 7894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7895 | return NULL; |
1d99702e RD |
7896 | if (_argo0) { |
7897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7900 | return NULL; |
7901 | } | |
7902 | } | |
1d99702e RD |
7903 | if (_argo1) { |
7904 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7905 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7906 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); |
7907 | return NULL; | |
7908 | } | |
7909 | } | |
cf694132 | 7910 | { |
4268f798 | 7911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7912 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); |
cf694132 | 7913 | |
4268f798 | 7914 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7915 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7916 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7917 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7918 | return _resultobj; |
7919 | } | |
7920 | ||
d5c9047a | 7921 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) |
efc5f224 | 7922 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7923 | PyObject * _resultobj; |
d5c9047a | 7924 | wxTreeItemId * _result; |
f6bcfd97 | 7925 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7926 | wxTreeItemId * _arg1; |
1d99702e RD |
7927 | PyObject * _argo0 = 0; |
7928 | PyObject * _argo1 = 0; | |
efc5f224 | 7929 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7930 | char _ptemp[128]; |
8ab979d7 RD |
7931 | |
7932 | self = self; | |
efc5f224 | 7933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7934 | return NULL; |
1d99702e RD |
7935 | if (_argo0) { |
7936 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7937 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7939 | return NULL; |
7940 | } | |
7941 | } | |
1d99702e RD |
7942 | if (_argo1) { |
7943 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7944 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); |
7946 | return NULL; | |
7947 | } | |
7948 | } | |
cf694132 | 7949 | { |
4268f798 | 7950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7951 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); |
cf694132 | 7952 | |
4268f798 | 7953 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7954 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7955 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7956 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7957 | return _resultobj; |
7958 | } | |
7959 | ||
d5c9047a | 7960 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) |
efc5f224 | 7961 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7962 | PyObject * _resultobj; |
d5c9047a | 7963 | wxTreeItemId * _result; |
f6bcfd97 | 7964 | wxPyTreeCtrl * _arg0; |
1d99702e | 7965 | PyObject * _argo0 = 0; |
efc5f224 | 7966 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7967 | char _ptemp[128]; |
8ab979d7 RD |
7968 | |
7969 | self = self; | |
efc5f224 | 7970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) |
8ab979d7 | 7971 | return NULL; |
1d99702e RD |
7972 | if (_argo0) { |
7973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7976 | return NULL; |
7977 | } | |
7978 | } | |
cf694132 | 7979 | { |
4268f798 | 7980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7981 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); |
cf694132 | 7982 | |
4268f798 | 7983 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7984 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7985 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7986 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7987 | return _resultobj; |
7988 | } | |
7989 | ||
d5c9047a | 7990 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) |
efc5f224 | 7991 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7992 | PyObject * _resultobj; |
d5c9047a | 7993 | wxTreeItemId * _result; |
f6bcfd97 | 7994 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7995 | wxTreeItemId * _arg1; |
1d99702e RD |
7996 | PyObject * _argo0 = 0; |
7997 | PyObject * _argo1 = 0; | |
efc5f224 | 7998 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7999 | char _ptemp[128]; |
8ab979d7 RD |
8000 | |
8001 | self = self; | |
efc5f224 | 8002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8003 | return NULL; |
1d99702e RD |
8004 | if (_argo0) { |
8005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8008 | return NULL; |
8009 | } | |
8010 | } | |
1d99702e RD |
8011 | if (_argo1) { |
8012 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8013 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); |
8015 | return NULL; | |
8016 | } | |
8017 | } | |
cf694132 | 8018 | { |
4268f798 | 8019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8020 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); |
cf694132 | 8021 | |
4268f798 | 8022 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8023 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8024 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8025 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8026 | return _resultobj; |
8027 | } | |
8028 | ||
d5c9047a | 8029 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) |
efc5f224 | 8030 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8031 | PyObject * _resultobj; |
d5c9047a | 8032 | wxTreeItemId * _result; |
f6bcfd97 | 8033 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8034 | wxTreeItemId * _arg1; |
1d99702e RD |
8035 | PyObject * _argo0 = 0; |
8036 | PyObject * _argo1 = 0; | |
efc5f224 | 8037 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8038 | char _ptemp[128]; |
8ab979d7 RD |
8039 | |
8040 | self = self; | |
efc5f224 | 8041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8042 | return NULL; |
1d99702e RD |
8043 | if (_argo0) { |
8044 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8045 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8047 | return NULL; |
8048 | } | |
8049 | } | |
1d99702e RD |
8050 | if (_argo1) { |
8051 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8052 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 8053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8054 | return NULL; |
8055 | } | |
8056 | } | |
cf694132 | 8057 | { |
4268f798 | 8058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8059 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); |
cf694132 | 8060 | |
4268f798 | 8061 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8062 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8063 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8064 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8065 | return _resultobj; |
8066 | } | |
8067 | ||
d426c97e RD |
8068 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) |
8069 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8070 | PyObject * _resultobj; | |
8071 | wxTreeItemId * _result; | |
f6bcfd97 | 8072 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8073 | wxTreeItemId * _arg1; |
8074 | PyObject * _argo0 = 0; | |
8075 | PyObject * _argo1 = 0; | |
8076 | char *_kwnames[] = { "self","item", NULL }; | |
8077 | char _ptemp[128]; | |
8078 | ||
8079 | self = self; | |
8080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
8081 | return NULL; | |
8082 | if (_argo0) { | |
8083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8086 | return NULL; |
8087 | } | |
8088 | } | |
8089 | if (_argo1) { | |
8090 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8091 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); | |
8093 | return NULL; | |
8094 | } | |
8095 | } | |
8096 | { | |
4268f798 | 8097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8098 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); |
d426c97e | 8099 | |
4268f798 | 8100 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8101 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8102 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8103 | _resultobj = Py_BuildValue("s",_ptemp); | |
8104 | return _resultobj; | |
8105 | } | |
8106 | ||
d5c9047a | 8107 | #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 8108 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8109 | PyObject * _resultobj; |
d5c9047a | 8110 | wxTreeItemId * _result; |
f6bcfd97 | 8111 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8112 | wxString * _arg1; |
1d99702e RD |
8113 | int _arg2 = (int ) -1; |
8114 | int _arg3 = (int ) -1; | |
8115 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
8116 | PyObject * _argo0 = 0; | |
d5c9047a | 8117 | PyObject * _obj1 = 0; |
1d99702e | 8118 | PyObject * _argo4 = 0; |
efc5f224 | 8119 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; |
d5c9047a | 8120 | char _ptemp[128]; |
8ab979d7 RD |
8121 | |
8122 | self = self; | |
efc5f224 | 8123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) |
8ab979d7 | 8124 | return NULL; |
1d99702e RD |
8125 | if (_argo0) { |
8126 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8127 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8129 | return NULL; |
8130 | } | |
8131 | } | |
d5c9047a | 8132 | { |
c8bc7bb8 RD |
8133 | _arg1 = wxString_in_helper(_obj1); |
8134 | if (_arg1 == NULL) | |
185d7c3e | 8135 | return NULL; |
d5c9047a | 8136 | } |
1d99702e RD |
8137 | if (_argo4) { |
8138 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
8139 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
cf694132 | 8140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
8141 | return NULL; |
8142 | } | |
8143 | } | |
cf694132 | 8144 | { |
4268f798 | 8145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8146 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); |
cf694132 | 8147 | |
4268f798 | 8148 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8149 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8150 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8151 | _resultobj = Py_BuildValue("s",_ptemp); |
8152 | { | |
8153 | if (_obj1) | |
8154 | delete _arg1; | |
8155 | } | |
8ab979d7 RD |
8156 | return _resultobj; |
8157 | } | |
8158 | ||
d5c9047a | 8159 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8160 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8161 | PyObject * _resultobj; |
d5c9047a | 8162 | wxTreeItemId * _result; |
f6bcfd97 | 8163 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8164 | wxTreeItemId * _arg1; |
8165 | wxString * _arg2; | |
1d99702e RD |
8166 | int _arg3 = (int ) -1; |
8167 | int _arg4 = (int ) -1; | |
8168 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8169 | PyObject * _argo0 = 0; | |
8170 | PyObject * _argo1 = 0; | |
d5c9047a | 8171 | PyObject * _obj2 = 0; |
1d99702e | 8172 | PyObject * _argo5 = 0; |
efc5f224 | 8173 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8174 | char _ptemp[128]; |
8ab979d7 RD |
8175 | |
8176 | self = self; | |
efc5f224 | 8177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8178 | return NULL; |
1d99702e RD |
8179 | if (_argo0) { |
8180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8183 | return NULL; |
8184 | } | |
8185 | } | |
1d99702e RD |
8186 | if (_argo1) { |
8187 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8188 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); |
8190 | return NULL; | |
8191 | } | |
8192 | } | |
8193 | { | |
c8bc7bb8 RD |
8194 | _arg2 = wxString_in_helper(_obj2); |
8195 | if (_arg2 == NULL) | |
185d7c3e | 8196 | return NULL; |
d5c9047a | 8197 | } |
1d99702e RD |
8198 | if (_argo5) { |
8199 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8200 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8202 | return NULL; |
8203 | } | |
8204 | } | |
cf694132 | 8205 | { |
4268f798 | 8206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8207 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); |
cf694132 | 8208 | |
4268f798 | 8209 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8210 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8211 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8212 | _resultobj = Py_BuildValue("s",_ptemp); |
8213 | { | |
8214 | if (_obj2) | |
8215 | delete _arg2; | |
8216 | } | |
8ab979d7 RD |
8217 | return _resultobj; |
8218 | } | |
8219 | ||
d5c9047a | 8220 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 8221 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8222 | PyObject * _resultobj; |
d5c9047a | 8223 | wxTreeItemId * _result; |
f6bcfd97 | 8224 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8225 | wxTreeItemId * _arg1; |
8226 | wxTreeItemId * _arg2; | |
8227 | wxString * _arg3; | |
1d99702e RD |
8228 | int _arg4 = (int ) -1; |
8229 | int _arg5 = (int ) -1; | |
8230 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
8231 | PyObject * _argo0 = 0; | |
8232 | PyObject * _argo1 = 0; | |
8233 | PyObject * _argo2 = 0; | |
d5c9047a | 8234 | PyObject * _obj3 = 0; |
1d99702e | 8235 | PyObject * _argo6 = 0; |
efc5f224 | 8236 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; |
d5c9047a | 8237 | char _ptemp[128]; |
8ab979d7 RD |
8238 | |
8239 | self = self; | |
efc5f224 | 8240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) |
8ab979d7 | 8241 | return NULL; |
1d99702e RD |
8242 | if (_argo0) { |
8243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8246 | return NULL; |
8247 | } | |
8248 | } | |
1d99702e RD |
8249 | if (_argo1) { |
8250 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8251 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8253 | return NULL; | |
8254 | } | |
8255 | } | |
1d99702e RD |
8256 | if (_argo2) { |
8257 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8258 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8260 | return NULL; | |
8261 | } | |
8262 | } | |
8263 | { | |
c8bc7bb8 RD |
8264 | _arg3 = wxString_in_helper(_obj3); |
8265 | if (_arg3 == NULL) | |
185d7c3e | 8266 | return NULL; |
d5c9047a | 8267 | } |
1d99702e RD |
8268 | if (_argo6) { |
8269 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8270 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
cf694132 | 8271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8272 | return NULL; |
8273 | } | |
8274 | } | |
cf694132 | 8275 | { |
4268f798 | 8276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8277 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); |
cf694132 | 8278 | |
4268f798 | 8279 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8280 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8281 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8282 | _resultobj = Py_BuildValue("s",_ptemp); |
8283 | { | |
8284 | if (_obj3) | |
8285 | delete _arg3; | |
8286 | } | |
8ab979d7 RD |
8287 | return _resultobj; |
8288 | } | |
8289 | ||
f6bcfd97 BP |
8290 | #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
8291 | static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8292 | PyObject * _resultobj; | |
8293 | wxTreeItemId * _result; | |
8294 | wxPyTreeCtrl * _arg0; | |
8295 | wxTreeItemId * _arg1; | |
8296 | size_t _arg2; | |
8297 | wxString * _arg3; | |
8298 | int _arg4 = (int ) -1; | |
8299 | int _arg5 = (int ) -1; | |
3999941a | 8300 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; |
f6bcfd97 BP |
8301 | PyObject * _argo0 = 0; |
8302 | PyObject * _argo1 = 0; | |
8303 | PyObject * _obj3 = 0; | |
8304 | PyObject * _argo6 = 0; | |
8305 | char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL }; | |
8306 | char _ptemp[128]; | |
8307 | ||
8308 | self = self; | |
8309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
8310 | return NULL; | |
8311 | if (_argo0) { | |
8312 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8313 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8314 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p."); | |
8315 | return NULL; | |
8316 | } | |
8317 | } | |
8318 | if (_argo1) { | |
8319 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8320 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p."); | |
8322 | return NULL; | |
8323 | } | |
8324 | } | |
8325 | { | |
c8bc7bb8 RD |
8326 | _arg3 = wxString_in_helper(_obj3); |
8327 | if (_arg3 == NULL) | |
185d7c3e | 8328 | return NULL; |
f6bcfd97 BP |
8329 | } |
8330 | if (_argo6) { | |
8331 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
3999941a RD |
8332 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { |
8333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeItemData_p."); | |
f6bcfd97 BP |
8334 | return NULL; |
8335 | } | |
8336 | } | |
8337 | { | |
4268f798 | 8338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8339 | _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6)); |
f6bcfd97 | 8340 | |
4268f798 | 8341 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8342 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
8343 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8344 | _resultobj = Py_BuildValue("s",_ptemp); | |
8345 | { | |
8346 | if (_obj3) | |
8347 | delete _arg3; | |
8348 | } | |
8349 | return _resultobj; | |
8350 | } | |
8351 | ||
d5c9047a | 8352 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8353 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8354 | PyObject * _resultobj; |
d5c9047a | 8355 | wxTreeItemId * _result; |
f6bcfd97 | 8356 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8357 | wxTreeItemId * _arg1; |
8ab979d7 | 8358 | wxString * _arg2; |
1d99702e RD |
8359 | int _arg3 = (int ) -1; |
8360 | int _arg4 = (int ) -1; | |
8361 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8362 | PyObject * _argo0 = 0; | |
8363 | PyObject * _argo1 = 0; | |
8ab979d7 | 8364 | PyObject * _obj2 = 0; |
1d99702e | 8365 | PyObject * _argo5 = 0; |
efc5f224 | 8366 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8367 | char _ptemp[128]; |
8ab979d7 RD |
8368 | |
8369 | self = self; | |
efc5f224 | 8370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8371 | return NULL; |
1d99702e RD |
8372 | if (_argo0) { |
8373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8376 | return NULL; |
8377 | } | |
8378 | } | |
1d99702e RD |
8379 | if (_argo1) { |
8380 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8381 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 8382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8383 | return NULL; |
8384 | } | |
8385 | } | |
8386 | { | |
c8bc7bb8 RD |
8387 | _arg2 = wxString_in_helper(_obj2); |
8388 | if (_arg2 == NULL) | |
185d7c3e | 8389 | return NULL; |
8ab979d7 | 8390 | } |
1d99702e RD |
8391 | if (_argo5) { |
8392 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8393 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8395 | return NULL; |
8396 | } | |
8397 | } | |
cf694132 | 8398 | { |
4268f798 | 8399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8400 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); |
cf694132 | 8401 | |
4268f798 | 8402 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8403 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8404 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8405 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8406 | { |
8407 | if (_obj2) | |
8408 | delete _arg2; | |
8409 | } | |
8410 | return _resultobj; | |
8411 | } | |
8412 | ||
d5c9047a | 8413 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
efc5f224 | 8414 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8415 | PyObject * _resultobj; |
f6bcfd97 | 8416 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8417 | wxTreeItemId * _arg1; |
1d99702e RD |
8418 | PyObject * _argo0 = 0; |
8419 | PyObject * _argo1 = 0; | |
efc5f224 | 8420 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
8421 | |
8422 | self = self; | |
efc5f224 | 8423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8424 | return NULL; |
1d99702e RD |
8425 | if (_argo0) { |
8426 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8427 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8429 | return NULL; |
8430 | } | |
8431 | } | |
1d99702e RD |
8432 | if (_argo1) { |
8433 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8434 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); |
8436 | return NULL; | |
8437 | } | |
8438 | } | |
cf694132 | 8439 | { |
4268f798 | 8440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8441 | wxTreeCtrl_Delete(_arg0,*_arg1); |
cf694132 | 8442 | |
4268f798 | 8443 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8444 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8445 | } Py_INCREF(Py_None); |
d5c9047a RD |
8446 | _resultobj = Py_None; |
8447 | return _resultobj; | |
8448 | } | |
8449 | ||
08127323 | 8450 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) |
efc5f224 | 8451 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 8452 | PyObject * _resultobj; |
f6bcfd97 | 8453 | wxPyTreeCtrl * _arg0; |
08127323 | 8454 | wxTreeItemId * _arg1; |
1d99702e RD |
8455 | PyObject * _argo0 = 0; |
8456 | PyObject * _argo1 = 0; | |
efc5f224 | 8457 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
8458 | |
8459 | self = self; | |
efc5f224 | 8460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) |
08127323 | 8461 | return NULL; |
1d99702e RD |
8462 | if (_argo0) { |
8463 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8464 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
8466 | return NULL; |
8467 | } | |
8468 | } | |
1d99702e RD |
8469 | if (_argo1) { |
8470 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8471 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
08127323 RD |
8472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); |
8473 | return NULL; | |
8474 | } | |
8475 | } | |
cf694132 | 8476 | { |
4268f798 | 8477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8478 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); |
cf694132 | 8479 | |
4268f798 | 8480 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8481 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8482 | } Py_INCREF(Py_None); |
08127323 RD |
8483 | _resultobj = Py_None; |
8484 | return _resultobj; | |
8485 | } | |
8486 | ||
d5c9047a | 8487 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) |
efc5f224 | 8488 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8489 | PyObject * _resultobj; |
f6bcfd97 | 8490 | wxPyTreeCtrl * _arg0; |
1d99702e | 8491 | PyObject * _argo0 = 0; |
efc5f224 | 8492 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8493 | |
8494 | self = self; | |
efc5f224 | 8495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) |
d5c9047a | 8496 | return NULL; |
1d99702e RD |
8497 | if (_argo0) { |
8498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8501 | return NULL; |
8502 | } | |
8503 | } | |
cf694132 | 8504 | { |
4268f798 | 8505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8506 | wxTreeCtrl_DeleteAllItems(_arg0); |
cf694132 | 8507 | |
4268f798 | 8508 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8509 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8510 | } Py_INCREF(Py_None); |
d5c9047a RD |
8511 | _resultobj = Py_None; |
8512 | return _resultobj; | |
8513 | } | |
8514 | ||
8515 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
efc5f224 | 8516 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8517 | PyObject * _resultobj; |
f6bcfd97 | 8518 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8519 | wxTreeItemId * _arg1; |
1d99702e RD |
8520 | PyObject * _argo0 = 0; |
8521 | PyObject * _argo1 = 0; | |
efc5f224 | 8522 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8523 | |
8524 | self = self; | |
efc5f224 | 8525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8526 | return NULL; |
1d99702e RD |
8527 | if (_argo0) { |
8528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8531 | return NULL; |
8532 | } | |
8533 | } | |
1d99702e RD |
8534 | if (_argo1) { |
8535 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8536 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); |
8538 | return NULL; | |
8539 | } | |
8540 | } | |
cf694132 | 8541 | { |
4268f798 | 8542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8543 | wxTreeCtrl_Expand(_arg0,*_arg1); |
cf694132 | 8544 | |
4268f798 | 8545 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8546 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8547 | } Py_INCREF(Py_None); |
d5c9047a RD |
8548 | _resultobj = Py_None; |
8549 | return _resultobj; | |
8550 | } | |
8551 | ||
8552 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
efc5f224 | 8553 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8554 | PyObject * _resultobj; |
f6bcfd97 | 8555 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8556 | wxTreeItemId * _arg1; |
1d99702e RD |
8557 | PyObject * _argo0 = 0; |
8558 | PyObject * _argo1 = 0; | |
efc5f224 | 8559 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8560 | |
8561 | self = self; | |
efc5f224 | 8562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8563 | return NULL; |
1d99702e RD |
8564 | if (_argo0) { |
8565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8568 | return NULL; |
8569 | } | |
8570 | } | |
1d99702e RD |
8571 | if (_argo1) { |
8572 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8573 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p."); |
8575 | return NULL; | |
8576 | } | |
8577 | } | |
cf694132 | 8578 | { |
4268f798 | 8579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8580 | wxTreeCtrl_Collapse(_arg0,*_arg1); |
cf694132 | 8581 | |
4268f798 | 8582 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8583 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8584 | } Py_INCREF(Py_None); |
d5c9047a RD |
8585 | _resultobj = Py_None; |
8586 | return _resultobj; | |
8587 | } | |
8588 | ||
8589 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
efc5f224 | 8590 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8591 | PyObject * _resultobj; |
f6bcfd97 | 8592 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8593 | wxTreeItemId * _arg1; |
1d99702e RD |
8594 | PyObject * _argo0 = 0; |
8595 | PyObject * _argo1 = 0; | |
efc5f224 | 8596 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8597 | |
8598 | self = self; | |
efc5f224 | 8599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8600 | return NULL; |
1d99702e RD |
8601 | if (_argo0) { |
8602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8605 | return NULL; |
8606 | } | |
8607 | } | |
1d99702e RD |
8608 | if (_argo1) { |
8609 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8610 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); |
8612 | return NULL; | |
8613 | } | |
8614 | } | |
cf694132 | 8615 | { |
4268f798 | 8616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8617 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); |
cf694132 | 8618 | |
4268f798 | 8619 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8620 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8621 | } Py_INCREF(Py_None); |
d5c9047a RD |
8622 | _resultobj = Py_None; |
8623 | return _resultobj; | |
8624 | } | |
8625 | ||
8626 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
efc5f224 | 8627 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8628 | PyObject * _resultobj; |
f6bcfd97 | 8629 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8630 | wxTreeItemId * _arg1; |
1d99702e RD |
8631 | PyObject * _argo0 = 0; |
8632 | PyObject * _argo1 = 0; | |
efc5f224 | 8633 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8634 | |
8635 | self = self; | |
efc5f224 | 8636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8637 | return NULL; |
1d99702e RD |
8638 | if (_argo0) { |
8639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8642 | return NULL; |
8643 | } | |
8644 | } | |
1d99702e RD |
8645 | if (_argo1) { |
8646 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8647 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); |
8649 | return NULL; | |
8650 | } | |
8651 | } | |
cf694132 | 8652 | { |
4268f798 | 8653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8654 | wxTreeCtrl_Toggle(_arg0,*_arg1); |
cf694132 | 8655 | |
4268f798 | 8656 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8657 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8658 | } Py_INCREF(Py_None); |
d5c9047a RD |
8659 | _resultobj = Py_None; |
8660 | return _resultobj; | |
8661 | } | |
8662 | ||
8663 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
efc5f224 | 8664 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8665 | PyObject * _resultobj; |
f6bcfd97 | 8666 | wxPyTreeCtrl * _arg0; |
1d99702e | 8667 | PyObject * _argo0 = 0; |
efc5f224 | 8668 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8669 | |
8670 | self = self; | |
efc5f224 | 8671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) |
d5c9047a | 8672 | return NULL; |
1d99702e RD |
8673 | if (_argo0) { |
8674 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8675 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8677 | return NULL; |
8678 | } | |
8679 | } | |
cf694132 | 8680 | { |
4268f798 | 8681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8682 | wxTreeCtrl_Unselect(_arg0); |
cf694132 | 8683 | |
4268f798 | 8684 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8685 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8686 | } Py_INCREF(Py_None); |
d5c9047a RD |
8687 | _resultobj = Py_None; |
8688 | return _resultobj; | |
8689 | } | |
8690 | ||
8bf5d46e | 8691 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) |
efc5f224 | 8692 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e | 8693 | PyObject * _resultobj; |
f6bcfd97 | 8694 | wxPyTreeCtrl * _arg0; |
1d99702e | 8695 | PyObject * _argo0 = 0; |
efc5f224 | 8696 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
8697 | |
8698 | self = self; | |
efc5f224 | 8699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) |
8bf5d46e | 8700 | return NULL; |
1d99702e RD |
8701 | if (_argo0) { |
8702 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8703 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p."); | |
8bf5d46e RD |
8705 | return NULL; |
8706 | } | |
8707 | } | |
8708 | { | |
4268f798 | 8709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8710 | wxTreeCtrl_UnselectAll(_arg0); |
8bf5d46e | 8711 | |
4268f798 | 8712 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8713 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
8714 | } Py_INCREF(Py_None); |
8715 | _resultobj = Py_None; | |
8716 | return _resultobj; | |
8717 | } | |
8718 | ||
d5c9047a | 8719 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) |
efc5f224 | 8720 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8721 | PyObject * _resultobj; |
f6bcfd97 | 8722 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8723 | wxTreeItemId * _arg1; |
1d99702e RD |
8724 | PyObject * _argo0 = 0; |
8725 | PyObject * _argo1 = 0; | |
efc5f224 | 8726 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8727 | |
8728 | self = self; | |
efc5f224 | 8729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8730 | return NULL; |
1d99702e RD |
8731 | if (_argo0) { |
8732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8735 | return NULL; |
8736 | } | |
8737 | } | |
1d99702e RD |
8738 | if (_argo1) { |
8739 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8740 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); |
8742 | return NULL; | |
8743 | } | |
8744 | } | |
cf694132 | 8745 | { |
4268f798 | 8746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8747 | wxTreeCtrl_SelectItem(_arg0,*_arg1); |
cf694132 | 8748 | |
4268f798 | 8749 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8750 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8751 | } Py_INCREF(Py_None); |
d5c9047a RD |
8752 | _resultobj = Py_None; |
8753 | return _resultobj; | |
8754 | } | |
8755 | ||
8756 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
efc5f224 | 8757 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8758 | PyObject * _resultobj; |
f6bcfd97 | 8759 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8760 | wxTreeItemId * _arg1; |
1d99702e RD |
8761 | PyObject * _argo0 = 0; |
8762 | PyObject * _argo1 = 0; | |
efc5f224 | 8763 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8764 | |
8765 | self = self; | |
efc5f224 | 8766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8767 | return NULL; |
1d99702e RD |
8768 | if (_argo0) { |
8769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8772 | return NULL; |
8773 | } | |
8774 | } | |
1d99702e RD |
8775 | if (_argo1) { |
8776 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8777 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); |
8779 | return NULL; | |
8780 | } | |
8781 | } | |
cf694132 | 8782 | { |
4268f798 | 8783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8784 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); |
cf694132 | 8785 | |
4268f798 | 8786 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8787 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8788 | } Py_INCREF(Py_None); |
d5c9047a RD |
8789 | _resultobj = Py_None; |
8790 | return _resultobj; | |
8791 | } | |
8792 | ||
8793 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
efc5f224 | 8794 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8795 | PyObject * _resultobj; |
f6bcfd97 | 8796 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8797 | wxTreeItemId * _arg1; |
1d99702e RD |
8798 | PyObject * _argo0 = 0; |
8799 | PyObject * _argo1 = 0; | |
efc5f224 | 8800 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8801 | |
8802 | self = self; | |
efc5f224 | 8803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8804 | return NULL; |
1d99702e RD |
8805 | if (_argo0) { |
8806 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8807 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8809 | return NULL; |
8810 | } | |
8811 | } | |
1d99702e RD |
8812 | if (_argo1) { |
8813 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8814 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); |
8816 | return NULL; | |
8817 | } | |
8818 | } | |
cf694132 | 8819 | { |
4268f798 | 8820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8821 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); |
cf694132 | 8822 | |
4268f798 | 8823 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8824 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8825 | } Py_INCREF(Py_None); |
d5c9047a RD |
8826 | _resultobj = Py_None; |
8827 | return _resultobj; | |
8828 | } | |
8829 | ||
8830 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
efc5f224 | 8831 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
8832 | PyObject * _resultobj; |
8833 | wxTextCtrl * _result; | |
f6bcfd97 | 8834 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8835 | wxTreeItemId * _arg1; |
1d99702e RD |
8836 | PyObject * _argo0 = 0; |
8837 | PyObject * _argo1 = 0; | |
efc5f224 | 8838 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8839 | |
8840 | self = self; | |
efc5f224 | 8841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8842 | return NULL; |
1d99702e RD |
8843 | if (_argo0) { |
8844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8847 | return NULL; |
8848 | } | |
8849 | } | |
1d99702e RD |
8850 | if (_argo1) { |
8851 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8852 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); |
8854 | return NULL; | |
8855 | } | |
8856 | } | |
cf694132 | 8857 | { |
4268f798 | 8858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8859 | _result = (wxTextCtrl *)wxTreeCtrl_EditLabel(_arg0,*_arg1); |
cf694132 | 8860 | |
4268f798 | 8861 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8862 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8863 | }{ _resultobj = wxPyMake_wxObject(_result); } |
d5c9047a RD |
8864 | return _resultobj; |
8865 | } | |
8866 | ||
8867 | #define wxTreeCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) | |
efc5f224 | 8868 | static PyObject *_wrap_wxTreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
8869 | PyObject * _resultobj; |
8870 | wxTextCtrl * _result; | |
f6bcfd97 | 8871 | wxPyTreeCtrl * _arg0; |
1d99702e | 8872 | PyObject * _argo0 = 0; |
efc5f224 | 8873 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8874 | |
8875 | self = self; | |
efc5f224 | 8876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetEditControl",_kwnames,&_argo0)) |
d5c9047a | 8877 | return NULL; |
1d99702e RD |
8878 | if (_argo0) { |
8879 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8880 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8881 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetEditControl. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8882 | return NULL; |
8883 | } | |
8884 | } | |
cf694132 | 8885 | { |
4268f798 | 8886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8887 | _result = (wxTextCtrl *)wxTreeCtrl_GetEditControl(_arg0); |
cf694132 | 8888 | |
4268f798 | 8889 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8890 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8891 | }{ _resultobj = wxPyMake_wxObject(_result); } |
d5c9047a RD |
8892 | return _resultobj; |
8893 | } | |
8894 | ||
8895 | #define wxTreeCtrl_EndEditLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->EndEditLabel(_swigarg0,_swigarg1)) | |
efc5f224 | 8896 | static PyObject *_wrap_wxTreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8897 | PyObject * _resultobj; |
f6bcfd97 | 8898 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8899 | wxTreeItemId * _arg1; |
b1462dfa | 8900 | int _arg2 = (int ) FALSE; |
1d99702e RD |
8901 | PyObject * _argo0 = 0; |
8902 | PyObject * _argo1 = 0; | |
efc5f224 | 8903 | char *_kwnames[] = { "self","item","discardChanges", NULL }; |
d5c9047a RD |
8904 | |
8905 | self = self; | |
b1462dfa | 8906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_EndEditLabel",_kwnames,&_argo0,&_argo1,&_arg2)) |
d5c9047a | 8907 | return NULL; |
1d99702e RD |
8908 | if (_argo0) { |
8909 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8910 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EndEditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8912 | return NULL; |
8913 | } | |
8914 | } | |
1d99702e RD |
8915 | if (_argo1) { |
8916 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8917 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EndEditLabel. Expected _wxTreeItemId_p."); |
8919 | return NULL; | |
8920 | } | |
8921 | } | |
cf694132 | 8922 | { |
4268f798 | 8923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8924 | wxTreeCtrl_EndEditLabel(_arg0,*_arg1,_arg2); |
cf694132 | 8925 | |
4268f798 | 8926 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8927 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8928 | } Py_INCREF(Py_None); |
d5c9047a | 8929 | _resultobj = Py_None; |
8ab979d7 RD |
8930 | return _resultobj; |
8931 | } | |
8932 | ||
d426c97e RD |
8933 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) |
8934 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8935 | PyObject * _resultobj; | |
f6bcfd97 | 8936 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8937 | wxTreeItemId * _arg1; |
8938 | PyObject * _argo0 = 0; | |
8939 | PyObject * _argo1 = 0; | |
8940 | char *_kwnames[] = { "self","item", NULL }; | |
8941 | ||
8942 | self = self; | |
8943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
8944 | return NULL; | |
8945 | if (_argo0) { | |
8946 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8947 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8949 | return NULL; |
8950 | } | |
8951 | } | |
8952 | if (_argo1) { | |
8953 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8954 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); | |
8956 | return NULL; | |
8957 | } | |
8958 | } | |
8959 | { | |
4268f798 | 8960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8961 | wxTreeCtrl_SortChildren(_arg0,*_arg1); |
d426c97e | 8962 | |
4268f798 | 8963 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8964 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8965 | } Py_INCREF(Py_None); |
8966 | _resultobj = Py_None; | |
8967 | return _resultobj; | |
8968 | } | |
8969 | ||
b8b8dda7 | 8970 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) |
efc5f224 | 8971 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 | 8972 | PyObject * _resultobj; |
f6bcfd97 | 8973 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 8974 | wxTreeItemId * _arg1; |
b1462dfa | 8975 | int _arg2 = (int ) TRUE; |
1d99702e RD |
8976 | PyObject * _argo0 = 0; |
8977 | PyObject * _argo1 = 0; | |
efc5f224 | 8978 | char *_kwnames[] = { "self","item","bold", NULL }; |
b8b8dda7 RD |
8979 | |
8980 | self = self; | |
b1462dfa | 8981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) |
b8b8dda7 | 8982 | return NULL; |
1d99702e RD |
8983 | if (_argo0) { |
8984 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8985 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
8987 | return NULL; |
8988 | } | |
8989 | } | |
1d99702e RD |
8990 | if (_argo1) { |
8991 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8992 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
8993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); |
8994 | return NULL; | |
8995 | } | |
8996 | } | |
cf694132 | 8997 | { |
4268f798 | 8998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8999 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); |
cf694132 | 9000 | |
4268f798 | 9001 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9002 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9003 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
9004 | _resultobj = Py_None; |
9005 | return _resultobj; | |
9006 | } | |
9007 | ||
9008 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
efc5f224 | 9009 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
9010 | PyObject * _resultobj; |
9011 | bool _result; | |
f6bcfd97 | 9012 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9013 | wxTreeItemId * _arg1; |
1d99702e RD |
9014 | PyObject * _argo0 = 0; |
9015 | PyObject * _argo1 = 0; | |
efc5f224 | 9016 | char *_kwnames[] = { "self","item", NULL }; |
b8b8dda7 RD |
9017 | |
9018 | self = self; | |
efc5f224 | 9019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 9020 | return NULL; |
1d99702e RD |
9021 | if (_argo0) { |
9022 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9023 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9025 | return NULL; |
9026 | } | |
9027 | } | |
1d99702e RD |
9028 | if (_argo1) { |
9029 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9030 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
9031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); |
9032 | return NULL; | |
9033 | } | |
9034 | } | |
cf694132 | 9035 | { |
4268f798 | 9036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9037 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); |
cf694132 | 9038 | |
4268f798 | 9039 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9040 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9041 | } _resultobj = Py_BuildValue("i",_result); |
b8b8dda7 RD |
9042 | return _resultobj; |
9043 | } | |
9044 | ||
164b735b | 9045 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
efc5f224 | 9046 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
9047 | PyObject * _resultobj; |
9048 | wxTreeItemId * _result; | |
f6bcfd97 | 9049 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9050 | wxPoint * _arg1; |
164b735b RD |
9051 | int * _arg2; |
9052 | int temp; | |
1d99702e | 9053 | PyObject * _argo0 = 0; |
164b735b | 9054 | wxPoint temp0; |
2f90df85 | 9055 | PyObject * _obj1 = 0; |
efc5f224 | 9056 | char *_kwnames[] = { "self","point", NULL }; |
b8b8dda7 RD |
9057 | char _ptemp[128]; |
9058 | ||
9059 | self = self; | |
164b735b RD |
9060 | { |
9061 | _arg2 = &temp; | |
9062 | } | |
2f90df85 | 9063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 9064 | return NULL; |
1d99702e RD |
9065 | if (_argo0) { |
9066 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9067 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9069 | return NULL; |
9070 | } | |
9071 | } | |
2f90df85 | 9072 | { |
164b735b | 9073 | _arg1 = &temp0; |
2f90df85 | 9074 | if (! wxPoint_helper(_obj1, &_arg1)) |
b8b8dda7 | 9075 | return NULL; |
2f90df85 | 9076 | } |
cf694132 | 9077 | { |
4268f798 | 9078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9079 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); |
cf694132 | 9080 | |
4268f798 | 9081 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9082 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9083 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
b8b8dda7 | 9084 | _resultobj = Py_BuildValue("s",_ptemp); |
164b735b RD |
9085 | { |
9086 | PyObject *o; | |
9087 | o = PyInt_FromLong((long) (*_arg2)); | |
9088 | _resultobj = t_output_helper(_resultobj, o); | |
9089 | } | |
b8b8dda7 RD |
9090 | return _resultobj; |
9091 | } | |
9092 | ||
b7e72427 RD |
9093 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
9094 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9095 | PyObject * _resultobj; | |
f6bcfd97 | 9096 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9097 | wxTreeItemId * _arg1; |
9098 | wxColour * _arg2; | |
9099 | PyObject * _argo0 = 0; | |
9100 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9101 | wxColour temp; |
9102 | PyObject * _obj2 = 0; | |
b7e72427 RD |
9103 | char *_kwnames[] = { "self","item","col", NULL }; |
9104 | ||
9105 | self = self; | |
f6bcfd97 | 9106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9107 | return NULL; |
9108 | if (_argo0) { | |
9109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9112 | return NULL; |
9113 | } | |
9114 | } | |
9115 | if (_argo1) { | |
9116 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9117 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); | |
9119 | return NULL; | |
9120 | } | |
9121 | } | |
f6bcfd97 BP |
9122 | { |
9123 | _arg2 = &temp; | |
9124 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9125 | return NULL; |
f6bcfd97 | 9126 | } |
b7e72427 | 9127 | { |
4268f798 | 9128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9129 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); |
b7e72427 | 9130 | |
4268f798 | 9131 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9132 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9133 | } Py_INCREF(Py_None); |
9134 | _resultobj = Py_None; | |
9135 | return _resultobj; | |
9136 | } | |
9137 | ||
9138 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
9139 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9140 | PyObject * _resultobj; | |
f6bcfd97 | 9141 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9142 | wxTreeItemId * _arg1; |
9143 | wxColour * _arg2; | |
9144 | PyObject * _argo0 = 0; | |
9145 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9146 | wxColour temp; |
9147 | PyObject * _obj2 = 0; | |
b7e72427 RD |
9148 | char *_kwnames[] = { "self","item","col", NULL }; |
9149 | ||
9150 | self = self; | |
f6bcfd97 | 9151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9152 | return NULL; |
9153 | if (_argo0) { | |
9154 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9155 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9157 | return NULL; |
9158 | } | |
9159 | } | |
9160 | if (_argo1) { | |
9161 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9162 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
9164 | return NULL; | |
9165 | } | |
9166 | } | |
f6bcfd97 BP |
9167 | { |
9168 | _arg2 = &temp; | |
9169 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9170 | return NULL; |
f6bcfd97 | 9171 | } |
b7e72427 | 9172 | { |
4268f798 | 9173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9174 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); |
b7e72427 | 9175 | |
4268f798 | 9176 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9177 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9178 | } Py_INCREF(Py_None); |
9179 | _resultobj = Py_None; | |
9180 | return _resultobj; | |
9181 | } | |
9182 | ||
9183 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
9184 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9185 | PyObject * _resultobj; | |
f6bcfd97 | 9186 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9187 | wxTreeItemId * _arg1; |
9188 | wxFont * _arg2; | |
9189 | PyObject * _argo0 = 0; | |
9190 | PyObject * _argo1 = 0; | |
9191 | PyObject * _argo2 = 0; | |
9192 | char *_kwnames[] = { "self","item","font", NULL }; | |
9193 | ||
9194 | self = self; | |
9195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
9196 | return NULL; | |
9197 | if (_argo0) { | |
9198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9201 | return NULL; |
9202 | } | |
9203 | } | |
9204 | if (_argo1) { | |
9205 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9206 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); | |
9208 | return NULL; | |
9209 | } | |
9210 | } | |
9211 | if (_argo2) { | |
9212 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9213 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
9214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); | |
9215 | return NULL; | |
9216 | } | |
9217 | } | |
9218 | { | |
4268f798 | 9219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9220 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); |
b7e72427 | 9221 | |
4268f798 | 9222 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9223 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9224 | } Py_INCREF(Py_None); |
9225 | _resultobj = Py_None; | |
9226 | return _resultobj; | |
9227 | } | |
9228 | ||
b1462dfa RD |
9229 | #define wxTreeCtrl_SetItemDropHighlight(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemDropHighlight(_swigarg0,_swigarg1)) |
9230 | static PyObject *_wrap_wxTreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9231 | PyObject * _resultobj; | |
f6bcfd97 | 9232 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
9233 | wxTreeItemId * _arg1; |
9234 | int _arg2 = (int ) TRUE; | |
9235 | PyObject * _argo0 = 0; | |
9236 | PyObject * _argo1 = 0; | |
9237 | char *_kwnames[] = { "self","item","highlight", NULL }; | |
9238 | ||
9239 | self = self; | |
9240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemDropHighlight",_kwnames,&_argo0,&_argo1,&_arg2)) | |
9241 | return NULL; | |
9242 | if (_argo0) { | |
9243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemDropHighlight. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
9246 | return NULL; |
9247 | } | |
9248 | } | |
9249 | if (_argo1) { | |
9250 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9251 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemDropHighlight. Expected _wxTreeItemId_p."); | |
9253 | return NULL; | |
9254 | } | |
9255 | } | |
9256 | { | |
4268f798 | 9257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9258 | wxTreeCtrl_SetItemDropHighlight(_arg0,*_arg1,_arg2); |
b1462dfa | 9259 | |
4268f798 | 9260 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9261 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9262 | } Py_INCREF(Py_None); |
9263 | _resultobj = Py_None; | |
9264 | return _resultobj; | |
9265 | } | |
9266 | ||
f6bcfd97 | 9267 | static PyObject * wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,const wxTreeItemId & item,int textOnly) { |
d426c97e | 9268 | wxRect rect; |
164b735b | 9269 | if (self->GetBoundingRect(item, rect, textOnly)) { |
4268f798 | 9270 | wxPyBeginBlockThreads(); |
164b735b RD |
9271 | wxRect* r = new wxRect(rect); |
9272 | PyObject* val = wxPyConstructObject((void*)r, "wxRect"); | |
4268f798 | 9273 | wxPyEndBlockThreads(); |
164b735b RD |
9274 | return val; |
9275 | } | |
d426c97e RD |
9276 | else { |
9277 | Py_INCREF(Py_None); | |
9278 | return Py_None; | |
9279 | } | |
9280 | } | |
9281 | static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9282 | PyObject * _resultobj; | |
9283 | PyObject * _result; | |
f6bcfd97 | 9284 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
9285 | wxTreeItemId * _arg1; |
9286 | int _arg2 = (int ) FALSE; | |
9287 | PyObject * _argo0 = 0; | |
9288 | PyObject * _argo1 = 0; | |
9289 | char *_kwnames[] = { "self","item","textOnly", NULL }; | |
9290 | ||
9291 | self = self; | |
9292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&_arg2)) | |
9293 | return NULL; | |
9294 | if (_argo0) { | |
9295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetBoundingRect. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
9298 | return NULL; |
9299 | } | |
9300 | } | |
9301 | if (_argo1) { | |
9302 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9303 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeItemId_p."); | |
9305 | return NULL; | |
9306 | } | |
9307 | } | |
9308 | { | |
4268f798 | 9309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9310 | _result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(_arg0,*_arg1,_arg2); |
d426c97e | 9311 | |
4268f798 | 9312 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9313 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
9314 | }{ |
9315 | _resultobj = _result; | |
9316 | } | |
9317 | return _resultobj; | |
9318 | } | |
9319 | ||
68320e40 RD |
9320 | static void *SwigwxDirItemDataTowxObject(void *ptr) { |
9321 | wxDirItemData *src; | |
9322 | wxObject *dest; | |
9323 | src = (wxDirItemData *) ptr; | |
9324 | dest = (wxObject *) src; | |
9325 | return (void *) dest; | |
9326 | } | |
9327 | ||
9328 | #define new_wxDirItemData(_swigarg0,_swigarg1,_swigarg2) (new wxDirItemData(_swigarg0,_swigarg1,_swigarg2)) | |
9329 | static PyObject *_wrap_new_wxDirItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9330 | PyObject * _resultobj; | |
9331 | wxDirItemData * _result; | |
9332 | wxString * _arg0; | |
9333 | wxString * _arg1; | |
9334 | bool _arg2; | |
9335 | PyObject * _obj0 = 0; | |
9336 | PyObject * _obj1 = 0; | |
9337 | int tempbool2; | |
9338 | char *_kwnames[] = { "path","name","isDir", NULL }; | |
9339 | char _ptemp[128]; | |
9340 | ||
9341 | self = self; | |
9342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:new_wxDirItemData",_kwnames,&_obj0,&_obj1,&tempbool2)) | |
9343 | return NULL; | |
9344 | { | |
c8bc7bb8 RD |
9345 | _arg0 = wxString_in_helper(_obj0); |
9346 | if (_arg0 == NULL) | |
68320e40 | 9347 | return NULL; |
68320e40 RD |
9348 | } |
9349 | { | |
c8bc7bb8 RD |
9350 | _arg1 = wxString_in_helper(_obj1); |
9351 | if (_arg1 == NULL) | |
68320e40 | 9352 | return NULL; |
68320e40 RD |
9353 | } |
9354 | _arg2 = (bool ) tempbool2; | |
9355 | { | |
9356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9357 | _result = (wxDirItemData *)new_wxDirItemData(*_arg0,*_arg1,_arg2); |
68320e40 RD |
9358 | |
9359 | wxPyEndAllowThreads(__tstate); | |
9360 | if (PyErr_Occurred()) return NULL; | |
9361 | } if (_result) { | |
9362 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirItemData_p"); | |
9363 | _resultobj = Py_BuildValue("s",_ptemp); | |
9364 | } else { | |
9365 | Py_INCREF(Py_None); | |
9366 | _resultobj = Py_None; | |
9367 | } | |
9368 | { | |
9369 | if (_obj0) | |
9370 | delete _arg0; | |
9371 | } | |
9372 | { | |
9373 | if (_obj1) | |
9374 | delete _arg1; | |
9375 | } | |
9376 | return _resultobj; | |
9377 | } | |
9378 | ||
9379 | #define wxDirItemData_SetNewDirName(_swigobj,_swigarg0) (_swigobj->SetNewDirName(_swigarg0)) | |
9380 | static PyObject *_wrap_wxDirItemData_SetNewDirName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9381 | PyObject * _resultobj; | |
9382 | wxDirItemData * _arg0; | |
9383 | wxString * _arg1; | |
9384 | PyObject * _argo0 = 0; | |
9385 | PyObject * _obj1 = 0; | |
9386 | char *_kwnames[] = { "self","path", NULL }; | |
9387 | ||
9388 | self = self; | |
9389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_SetNewDirName",_kwnames,&_argo0,&_obj1)) | |
9390 | return NULL; | |
9391 | if (_argo0) { | |
9392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_SetNewDirName. Expected _wxDirItemData_p."); | |
9395 | return NULL; | |
9396 | } | |
9397 | } | |
9398 | { | |
c8bc7bb8 RD |
9399 | _arg1 = wxString_in_helper(_obj1); |
9400 | if (_arg1 == NULL) | |
68320e40 | 9401 | return NULL; |
68320e40 RD |
9402 | } |
9403 | { | |
9404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9405 | wxDirItemData_SetNewDirName(_arg0,*_arg1); |
68320e40 RD |
9406 | |
9407 | wxPyEndAllowThreads(__tstate); | |
9408 | if (PyErr_Occurred()) return NULL; | |
9409 | } Py_INCREF(Py_None); | |
9410 | _resultobj = Py_None; | |
9411 | { | |
9412 | if (_obj1) | |
9413 | delete _arg1; | |
9414 | } | |
9415 | return _resultobj; | |
9416 | } | |
9417 | ||
9418 | #define wxDirItemData_m_path_set(_swigobj,_swigval) (_swigobj->m_path = *(_swigval),_swigval) | |
9419 | static PyObject *_wrap_wxDirItemData_m_path_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9420 | PyObject * _resultobj; | |
9421 | wxString * _result; | |
9422 | wxDirItemData * _arg0; | |
9423 | wxString * _arg1; | |
9424 | PyObject * _argo0 = 0; | |
9425 | PyObject * _obj1 = 0; | |
9426 | char *_kwnames[] = { "self","m_path", NULL }; | |
9427 | ||
9428 | self = self; | |
9429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_path_set",_kwnames,&_argo0,&_obj1)) | |
9430 | return NULL; | |
9431 | if (_argo0) { | |
9432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_set. Expected _wxDirItemData_p."); | |
9435 | return NULL; | |
9436 | } | |
9437 | } | |
9438 | { | |
c8bc7bb8 RD |
9439 | _arg1 = wxString_in_helper(_obj1); |
9440 | if (_arg1 == NULL) | |
68320e40 | 9441 | return NULL; |
68320e40 RD |
9442 | } |
9443 | { | |
9444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9445 | _result = (wxString *)wxDirItemData_m_path_set(_arg0,_arg1); |
68320e40 RD |
9446 | |
9447 | wxPyEndAllowThreads(__tstate); | |
9448 | if (PyErr_Occurred()) return NULL; | |
9449 | }{ | |
c8bc7bb8 RD |
9450 | #if wxUSE_UNICODE |
9451 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9452 | #else | |
68320e40 | 9453 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9454 | #endif |
68320e40 RD |
9455 | } |
9456 | { | |
9457 | if (_obj1) | |
9458 | delete _arg1; | |
9459 | } | |
9460 | return _resultobj; | |
9461 | } | |
9462 | ||
9463 | #define wxDirItemData_m_path_get(_swigobj) (&_swigobj->m_path) | |
9464 | static PyObject *_wrap_wxDirItemData_m_path_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9465 | PyObject * _resultobj; | |
9466 | wxString * _result; | |
9467 | wxDirItemData * _arg0; | |
9468 | PyObject * _argo0 = 0; | |
9469 | char *_kwnames[] = { "self", NULL }; | |
9470 | ||
9471 | self = self; | |
9472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_path_get",_kwnames,&_argo0)) | |
9473 | return NULL; | |
9474 | if (_argo0) { | |
9475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_get. Expected _wxDirItemData_p."); | |
9478 | return NULL; | |
9479 | } | |
9480 | } | |
9481 | { | |
9482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9483 | _result = (wxString *)wxDirItemData_m_path_get(_arg0); |
68320e40 RD |
9484 | |
9485 | wxPyEndAllowThreads(__tstate); | |
9486 | if (PyErr_Occurred()) return NULL; | |
9487 | }{ | |
c8bc7bb8 RD |
9488 | #if wxUSE_UNICODE |
9489 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9490 | #else | |
68320e40 | 9491 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9492 | #endif |
68320e40 RD |
9493 | } |
9494 | return _resultobj; | |
9495 | } | |
9496 | ||
9497 | #define wxDirItemData_m_name_set(_swigobj,_swigval) (_swigobj->m_name = *(_swigval),_swigval) | |
9498 | static PyObject *_wrap_wxDirItemData_m_name_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9499 | PyObject * _resultobj; | |
9500 | wxString * _result; | |
9501 | wxDirItemData * _arg0; | |
9502 | wxString * _arg1; | |
9503 | PyObject * _argo0 = 0; | |
9504 | PyObject * _obj1 = 0; | |
9505 | char *_kwnames[] = { "self","m_name", NULL }; | |
9506 | ||
9507 | self = self; | |
9508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_name_set",_kwnames,&_argo0,&_obj1)) | |
9509 | return NULL; | |
9510 | if (_argo0) { | |
9511 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9512 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9513 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_set. Expected _wxDirItemData_p."); | |
9514 | return NULL; | |
9515 | } | |
9516 | } | |
9517 | { | |
c8bc7bb8 RD |
9518 | _arg1 = wxString_in_helper(_obj1); |
9519 | if (_arg1 == NULL) | |
68320e40 | 9520 | return NULL; |
68320e40 RD |
9521 | } |
9522 | { | |
9523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9524 | _result = (wxString *)wxDirItemData_m_name_set(_arg0,_arg1); |
68320e40 RD |
9525 | |
9526 | wxPyEndAllowThreads(__tstate); | |
9527 | if (PyErr_Occurred()) return NULL; | |
9528 | }{ | |
c8bc7bb8 RD |
9529 | #if wxUSE_UNICODE |
9530 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9531 | #else | |
68320e40 | 9532 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9533 | #endif |
68320e40 RD |
9534 | } |
9535 | { | |
9536 | if (_obj1) | |
9537 | delete _arg1; | |
9538 | } | |
9539 | return _resultobj; | |
9540 | } | |
9541 | ||
9542 | #define wxDirItemData_m_name_get(_swigobj) (&_swigobj->m_name) | |
9543 | static PyObject *_wrap_wxDirItemData_m_name_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9544 | PyObject * _resultobj; | |
9545 | wxString * _result; | |
9546 | wxDirItemData * _arg0; | |
9547 | PyObject * _argo0 = 0; | |
9548 | char *_kwnames[] = { "self", NULL }; | |
9549 | ||
9550 | self = self; | |
9551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_name_get",_kwnames,&_argo0)) | |
9552 | return NULL; | |
9553 | if (_argo0) { | |
9554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_get. Expected _wxDirItemData_p."); | |
9557 | return NULL; | |
9558 | } | |
9559 | } | |
9560 | { | |
9561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9562 | _result = (wxString *)wxDirItemData_m_name_get(_arg0); |
68320e40 RD |
9563 | |
9564 | wxPyEndAllowThreads(__tstate); | |
9565 | if (PyErr_Occurred()) return NULL; | |
9566 | }{ | |
c8bc7bb8 RD |
9567 | #if wxUSE_UNICODE |
9568 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9569 | #else | |
68320e40 | 9570 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9571 | #endif |
68320e40 RD |
9572 | } |
9573 | return _resultobj; | |
9574 | } | |
9575 | ||
9576 | #define wxDirItemData_m_isHidden_set(_swigobj,_swigval) (_swigobj->m_isHidden = _swigval,_swigval) | |
9577 | static PyObject *_wrap_wxDirItemData_m_isHidden_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9578 | PyObject * _resultobj; | |
9579 | bool _result; | |
9580 | wxDirItemData * _arg0; | |
9581 | bool _arg1; | |
9582 | PyObject * _argo0 = 0; | |
9583 | int tempbool1; | |
9584 | char *_kwnames[] = { "self","m_isHidden", NULL }; | |
9585 | ||
9586 | self = self; | |
9587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isHidden_set",_kwnames,&_argo0,&tempbool1)) | |
9588 | return NULL; | |
9589 | if (_argo0) { | |
9590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_set. Expected _wxDirItemData_p."); | |
9593 | return NULL; | |
9594 | } | |
9595 | } | |
9596 | _arg1 = (bool ) tempbool1; | |
9597 | { | |
9598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9599 | _result = (bool )wxDirItemData_m_isHidden_set(_arg0,_arg1); |
68320e40 RD |
9600 | |
9601 | wxPyEndAllowThreads(__tstate); | |
9602 | if (PyErr_Occurred()) return NULL; | |
9603 | } _resultobj = Py_BuildValue("i",_result); | |
9604 | return _resultobj; | |
9605 | } | |
9606 | ||
9607 | #define wxDirItemData_m_isHidden_get(_swigobj) ((bool ) _swigobj->m_isHidden) | |
9608 | static PyObject *_wrap_wxDirItemData_m_isHidden_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9609 | PyObject * _resultobj; | |
9610 | bool _result; | |
9611 | wxDirItemData * _arg0; | |
9612 | PyObject * _argo0 = 0; | |
9613 | char *_kwnames[] = { "self", NULL }; | |
9614 | ||
9615 | self = self; | |
9616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isHidden_get",_kwnames,&_argo0)) | |
9617 | return NULL; | |
9618 | if (_argo0) { | |
9619 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9620 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9621 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_get. Expected _wxDirItemData_p."); | |
9622 | return NULL; | |
9623 | } | |
9624 | } | |
9625 | { | |
9626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9627 | _result = (bool )wxDirItemData_m_isHidden_get(_arg0); |
68320e40 RD |
9628 | |
9629 | wxPyEndAllowThreads(__tstate); | |
9630 | if (PyErr_Occurred()) return NULL; | |
9631 | } _resultobj = Py_BuildValue("i",_result); | |
9632 | return _resultobj; | |
9633 | } | |
9634 | ||
9635 | #define wxDirItemData_m_isExpanded_set(_swigobj,_swigval) (_swigobj->m_isExpanded = _swigval,_swigval) | |
9636 | static PyObject *_wrap_wxDirItemData_m_isExpanded_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9637 | PyObject * _resultobj; | |
9638 | bool _result; | |
9639 | wxDirItemData * _arg0; | |
9640 | bool _arg1; | |
9641 | PyObject * _argo0 = 0; | |
9642 | int tempbool1; | |
9643 | char *_kwnames[] = { "self","m_isExpanded", NULL }; | |
9644 | ||
9645 | self = self; | |
9646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isExpanded_set",_kwnames,&_argo0,&tempbool1)) | |
9647 | return NULL; | |
9648 | if (_argo0) { | |
9649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_set. Expected _wxDirItemData_p."); | |
9652 | return NULL; | |
9653 | } | |
9654 | } | |
9655 | _arg1 = (bool ) tempbool1; | |
9656 | { | |
9657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9658 | _result = (bool )wxDirItemData_m_isExpanded_set(_arg0,_arg1); |
68320e40 RD |
9659 | |
9660 | wxPyEndAllowThreads(__tstate); | |
9661 | if (PyErr_Occurred()) return NULL; | |
9662 | } _resultobj = Py_BuildValue("i",_result); | |
9663 | return _resultobj; | |
9664 | } | |
9665 | ||
9666 | #define wxDirItemData_m_isExpanded_get(_swigobj) ((bool ) _swigobj->m_isExpanded) | |
9667 | static PyObject *_wrap_wxDirItemData_m_isExpanded_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9668 | PyObject * _resultobj; | |
9669 | bool _result; | |
9670 | wxDirItemData * _arg0; | |
9671 | PyObject * _argo0 = 0; | |
9672 | char *_kwnames[] = { "self", NULL }; | |
9673 | ||
9674 | self = self; | |
9675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isExpanded_get",_kwnames,&_argo0)) | |
9676 | return NULL; | |
9677 | if (_argo0) { | |
9678 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9679 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_get. Expected _wxDirItemData_p."); | |
9681 | return NULL; | |
9682 | } | |
9683 | } | |
9684 | { | |
9685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9686 | _result = (bool )wxDirItemData_m_isExpanded_get(_arg0); |
68320e40 RD |
9687 | |
9688 | wxPyEndAllowThreads(__tstate); | |
9689 | if (PyErr_Occurred()) return NULL; | |
9690 | } _resultobj = Py_BuildValue("i",_result); | |
9691 | return _resultobj; | |
9692 | } | |
9693 | ||
9694 | #define wxDirItemData_m_isDir_set(_swigobj,_swigval) (_swigobj->m_isDir = _swigval,_swigval) | |
9695 | static PyObject *_wrap_wxDirItemData_m_isDir_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9696 | PyObject * _resultobj; | |
9697 | bool _result; | |
9698 | wxDirItemData * _arg0; | |
9699 | bool _arg1; | |
9700 | PyObject * _argo0 = 0; | |
9701 | int tempbool1; | |
9702 | char *_kwnames[] = { "self","m_isDir", NULL }; | |
9703 | ||
9704 | self = self; | |
9705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isDir_set",_kwnames,&_argo0,&tempbool1)) | |
9706 | return NULL; | |
9707 | if (_argo0) { | |
9708 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9709 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_set. Expected _wxDirItemData_p."); | |
9711 | return NULL; | |
9712 | } | |
9713 | } | |
9714 | _arg1 = (bool ) tempbool1; | |
9715 | { | |
9716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9717 | _result = (bool )wxDirItemData_m_isDir_set(_arg0,_arg1); |
68320e40 RD |
9718 | |
9719 | wxPyEndAllowThreads(__tstate); | |
9720 | if (PyErr_Occurred()) return NULL; | |
9721 | } _resultobj = Py_BuildValue("i",_result); | |
9722 | return _resultobj; | |
9723 | } | |
9724 | ||
9725 | #define wxDirItemData_m_isDir_get(_swigobj) ((bool ) _swigobj->m_isDir) | |
9726 | static PyObject *_wrap_wxDirItemData_m_isDir_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9727 | PyObject * _resultobj; | |
9728 | bool _result; | |
9729 | wxDirItemData * _arg0; | |
9730 | PyObject * _argo0 = 0; | |
9731 | char *_kwnames[] = { "self", NULL }; | |
9732 | ||
9733 | self = self; | |
9734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isDir_get",_kwnames,&_argo0)) | |
9735 | return NULL; | |
9736 | if (_argo0) { | |
9737 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9738 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_get. Expected _wxDirItemData_p."); | |
9740 | return NULL; | |
9741 | } | |
9742 | } | |
9743 | { | |
9744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9745 | _result = (bool )wxDirItemData_m_isDir_get(_arg0); |
68320e40 RD |
9746 | |
9747 | wxPyEndAllowThreads(__tstate); | |
9748 | if (PyErr_Occurred()) return NULL; | |
9749 | } _resultobj = Py_BuildValue("i",_result); | |
9750 | return _resultobj; | |
9751 | } | |
9752 | ||
9753 | static void *SwigwxGenericDirCtrlTowxControl(void *ptr) { | |
9754 | wxGenericDirCtrl *src; | |
9755 | wxControl *dest; | |
9756 | src = (wxGenericDirCtrl *) ptr; | |
9757 | dest = (wxControl *) src; | |
9758 | return (void *) dest; | |
9759 | } | |
9760 | ||
9761 | static void *SwigwxGenericDirCtrlTowxWindow(void *ptr) { | |
9762 | wxGenericDirCtrl *src; | |
9763 | wxWindow *dest; | |
9764 | src = (wxGenericDirCtrl *) ptr; | |
9765 | dest = (wxWindow *) src; | |
9766 | return (void *) dest; | |
9767 | } | |
9768 | ||
9769 | static void *SwigwxGenericDirCtrlTowxEvtHandler(void *ptr) { | |
9770 | wxGenericDirCtrl *src; | |
9771 | wxEvtHandler *dest; | |
9772 | src = (wxGenericDirCtrl *) ptr; | |
9773 | dest = (wxEvtHandler *) src; | |
9774 | return (void *) dest; | |
9775 | } | |
9776 | ||
9777 | static void *SwigwxGenericDirCtrlTowxObject(void *ptr) { | |
9778 | wxGenericDirCtrl *src; | |
9779 | wxObject *dest; | |
9780 | src = (wxGenericDirCtrl *) ptr; | |
9781 | dest = (wxObject *) src; | |
9782 | return (void *) dest; | |
9783 | } | |
9784 | ||
9785 | #define new_wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
9786 | static PyObject *_wrap_new_wxGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9787 | PyObject * _resultobj; | |
9788 | wxGenericDirCtrl * _result; | |
9789 | wxWindow * _arg0; | |
9790 | wxWindowID _arg1 = (wxWindowID ) -1; | |
137b5242 | 9791 | wxString * _arg2 = (wxString *) &wxPyDirDialogDefaultFolderStr; |
68320e40 RD |
9792 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
9793 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
9794 | long _arg5 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
137b5242 | 9795 | wxString * _arg6 = (wxString *) &wxPyEmptyString; |
68320e40 | 9796 | int _arg7 = (int ) 0; |
137b5242 | 9797 | wxString * _arg8 = (wxString *) &wxPy_TreeCtrlNameStr; |
68320e40 | 9798 | PyObject * _argo0 = 0; |
137b5242 | 9799 | PyObject * _obj2 = 0; |
68320e40 RD |
9800 | wxPoint temp; |
9801 | PyObject * _obj3 = 0; | |
9802 | wxSize temp0; | |
9803 | PyObject * _obj4 = 0; | |
137b5242 RD |
9804 | PyObject * _obj6 = 0; |
9805 | PyObject * _obj8 = 0; | |
68320e40 RD |
9806 | char *_kwnames[] = { "parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; |
9807 | char _ptemp[128]; | |
9808 | ||
9809 | self = self; | |
137b5242 | 9810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOOlOiO:new_wxGenericDirCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6,&_arg7,&_obj8)) |
68320e40 RD |
9811 | return NULL; |
9812 | if (_argo0) { | |
9813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGenericDirCtrl. Expected _wxWindow_p."); | |
9816 | return NULL; | |
9817 | } | |
9818 | } | |
137b5242 RD |
9819 | if (_obj2) |
9820 | { | |
9821 | _arg2 = wxString_in_helper(_obj2); | |
9822 | if (_arg2 == NULL) | |
9823 | return NULL; | |
9824 | } | |
68320e40 RD |
9825 | if (_obj3) |
9826 | { | |
9827 | _arg3 = &temp; | |
9828 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9829 | return NULL; | |
9830 | } | |
9831 | if (_obj4) | |
9832 | { | |
9833 | _arg4 = &temp0; | |
9834 | if (! wxSize_helper(_obj4, &_arg4)) | |
9835 | return NULL; | |
137b5242 RD |
9836 | } |
9837 | if (_obj6) | |
9838 | { | |
9839 | _arg6 = wxString_in_helper(_obj6); | |
9840 | if (_arg6 == NULL) | |
9841 | return NULL; | |
9842 | } | |
9843 | if (_obj8) | |
9844 | { | |
9845 | _arg8 = wxString_in_helper(_obj8); | |
9846 | if (_arg8 == NULL) | |
9847 | return NULL; | |
68320e40 RD |
9848 | } |
9849 | { | |
9850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
137b5242 | 9851 | _result = (wxGenericDirCtrl *)new_wxGenericDirCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7,*_arg8); |
68320e40 RD |
9852 | |
9853 | wxPyEndAllowThreads(__tstate); | |
9854 | if (PyErr_Occurred()) return NULL; | |
9855 | } if (_result) { | |
9856 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
9857 | _resultobj = Py_BuildValue("s",_ptemp); | |
9858 | } else { | |
9859 | Py_INCREF(Py_None); | |
9860 | _resultobj = Py_None; | |
9861 | } | |
137b5242 RD |
9862 | { |
9863 | if (_obj2) | |
9864 | delete _arg2; | |
9865 | } | |
9866 | { | |
9867 | if (_obj6) | |
9868 | delete _arg6; | |
9869 | } | |
9870 | { | |
9871 | if (_obj8) | |
9872 | delete _arg8; | |
9873 | } | |
68320e40 RD |
9874 | return _resultobj; |
9875 | } | |
9876 | ||
9877 | #define new_wxPreGenericDirCtrl() (new wxGenericDirCtrl()) | |
9878 | static PyObject *_wrap_new_wxPreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9879 | PyObject * _resultobj; | |
9880 | wxGenericDirCtrl * _result; | |
9881 | char *_kwnames[] = { NULL }; | |
9882 | char _ptemp[128]; | |
9883 | ||
9884 | self = self; | |
9885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGenericDirCtrl",_kwnames)) | |
9886 | return NULL; | |
9887 | { | |
9888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9889 | _result = (wxGenericDirCtrl *)new_wxPreGenericDirCtrl(); |
68320e40 RD |
9890 | |
9891 | wxPyEndAllowThreads(__tstate); | |
9892 | if (PyErr_Occurred()) return NULL; | |
9893 | } if (_result) { | |
9894 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
9895 | _resultobj = Py_BuildValue("s",_ptemp); | |
9896 | } else { | |
9897 | Py_INCREF(Py_None); | |
9898 | _resultobj = Py_None; | |
9899 | } | |
9900 | return _resultobj; | |
9901 | } | |
9902 | ||
9903 | #define wxGenericDirCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
9904 | static PyObject *_wrap_wxGenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9905 | PyObject * _resultobj; | |
9906 | bool _result; | |
9907 | wxGenericDirCtrl * _arg0; | |
9908 | wxWindow * _arg1; | |
9909 | wxWindowID _arg2 = (wxWindowID ) -1; | |
137b5242 | 9910 | wxString * _arg3 = (wxString *) &wxPyDirDialogDefaultFolderStr; |
68320e40 RD |
9911 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
9912 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
9913 | long _arg6 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
137b5242 | 9914 | wxString * _arg7 = (wxString *) &wxPyEmptyString; |
68320e40 | 9915 | int _arg8 = (int ) 0; |
137b5242 | 9916 | wxString * _arg9 = (wxString *) &wxPy_TreeCtrlNameStr; |
68320e40 RD |
9917 | PyObject * _argo0 = 0; |
9918 | PyObject * _argo1 = 0; | |
137b5242 | 9919 | PyObject * _obj3 = 0; |
68320e40 RD |
9920 | wxPoint temp; |
9921 | PyObject * _obj4 = 0; | |
9922 | wxSize temp0; | |
9923 | PyObject * _obj5 = 0; | |
137b5242 RD |
9924 | PyObject * _obj7 = 0; |
9925 | PyObject * _obj9 = 0; | |
68320e40 RD |
9926 | char *_kwnames[] = { "self","parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; |
9927 | ||
9928 | self = self; | |
137b5242 | 9929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOOlOiO:wxGenericDirCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_obj7,&_arg8,&_obj9)) |
68320e40 RD |
9930 | return NULL; |
9931 | if (_argo0) { | |
9932 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9933 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
9934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
9935 | return NULL; | |
9936 | } | |
9937 | } | |
9938 | if (_argo1) { | |
9939 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9940 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGenericDirCtrl_Create. Expected _wxWindow_p."); | |
9942 | return NULL; | |
9943 | } | |
9944 | } | |
137b5242 RD |
9945 | if (_obj3) |
9946 | { | |
9947 | _arg3 = wxString_in_helper(_obj3); | |
9948 | if (_arg3 == NULL) | |
9949 | return NULL; | |
9950 | } | |
68320e40 RD |
9951 | if (_obj4) |
9952 | { | |
9953 | _arg4 = &temp; | |
9954 | if (! wxPoint_helper(_obj4, &_arg4)) | |
9955 | return NULL; | |
9956 | } | |
9957 | if (_obj5) | |
9958 | { | |
9959 | _arg5 = &temp0; | |
9960 | if (! wxSize_helper(_obj5, &_arg5)) | |
9961 | return NULL; | |
137b5242 RD |
9962 | } |
9963 | if (_obj7) | |
9964 | { | |
9965 | _arg7 = wxString_in_helper(_obj7); | |
9966 | if (_arg7 == NULL) | |
9967 | return NULL; | |
9968 | } | |
9969 | if (_obj9) | |
9970 | { | |
9971 | _arg9 = wxString_in_helper(_obj9); | |
9972 | if (_arg9 == NULL) | |
9973 | return NULL; | |
68320e40 RD |
9974 | } |
9975 | { | |
9976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
137b5242 | 9977 | _result = (bool )wxGenericDirCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8,*_arg9); |
68320e40 RD |
9978 | |
9979 | wxPyEndAllowThreads(__tstate); | |
9980 | if (PyErr_Occurred()) return NULL; | |
9981 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
9982 | { |
9983 | if (_obj3) | |
9984 | delete _arg3; | |
9985 | } | |
9986 | { | |
9987 | if (_obj7) | |
9988 | delete _arg7; | |
9989 | } | |
9990 | { | |
9991 | if (_obj9) | |
9992 | delete _arg9; | |
9993 | } | |
68320e40 RD |
9994 | return _resultobj; |
9995 | } | |
9996 | ||
9997 | #define wxGenericDirCtrl_ExpandPath(_swigobj,_swigarg0) (_swigobj->ExpandPath(_swigarg0)) | |
9998 | static PyObject *_wrap_wxGenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9999 | PyObject * _resultobj; | |
10000 | bool _result; | |
10001 | wxGenericDirCtrl * _arg0; | |
10002 | wxString * _arg1; | |
10003 | PyObject * _argo0 = 0; | |
10004 | PyObject * _obj1 = 0; | |
10005 | char *_kwnames[] = { "self","path", NULL }; | |
10006 | ||
10007 | self = self; | |
10008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_ExpandPath",_kwnames,&_argo0,&_obj1)) | |
10009 | return NULL; | |
10010 | if (_argo0) { | |
10011 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10012 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10013 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ExpandPath. Expected _wxGenericDirCtrl_p."); | |
10014 | return NULL; | |
10015 | } | |
10016 | } | |
10017 | { | |
c8bc7bb8 RD |
10018 | _arg1 = wxString_in_helper(_obj1); |
10019 | if (_arg1 == NULL) | |
68320e40 | 10020 | return NULL; |
68320e40 RD |
10021 | } |
10022 | { | |
10023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10024 | _result = (bool )wxGenericDirCtrl_ExpandPath(_arg0,*_arg1); |
68320e40 RD |
10025 | |
10026 | wxPyEndAllowThreads(__tstate); | |
10027 | if (PyErr_Occurred()) return NULL; | |
10028 | } _resultobj = Py_BuildValue("i",_result); | |
10029 | { | |
10030 | if (_obj1) | |
10031 | delete _arg1; | |
10032 | } | |
10033 | return _resultobj; | |
10034 | } | |
10035 | ||
10036 | #define wxGenericDirCtrl_GetDefaultPath(_swigobj) (_swigobj->GetDefaultPath()) | |
10037 | static PyObject *_wrap_wxGenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10038 | PyObject * _resultobj; | |
10039 | wxString * _result; | |
10040 | wxGenericDirCtrl * _arg0; | |
10041 | PyObject * _argo0 = 0; | |
10042 | char *_kwnames[] = { "self", NULL }; | |
10043 | ||
10044 | self = self; | |
10045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetDefaultPath",_kwnames,&_argo0)) | |
10046 | return NULL; | |
10047 | if (_argo0) { | |
10048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
10051 | return NULL; | |
10052 | } | |
10053 | } | |
10054 | { | |
10055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10056 | _result = new wxString (wxGenericDirCtrl_GetDefaultPath(_arg0)); |
68320e40 RD |
10057 | |
10058 | wxPyEndAllowThreads(__tstate); | |
10059 | if (PyErr_Occurred()) return NULL; | |
10060 | }{ | |
c8bc7bb8 RD |
10061 | #if wxUSE_UNICODE |
10062 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10063 | #else | |
68320e40 | 10064 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10065 | #endif |
68320e40 RD |
10066 | } |
10067 | { | |
10068 | delete _result; | |
10069 | } | |
10070 | return _resultobj; | |
10071 | } | |
10072 | ||
10073 | #define wxGenericDirCtrl_SetDefaultPath(_swigobj,_swigarg0) (_swigobj->SetDefaultPath(_swigarg0)) | |
10074 | static PyObject *_wrap_wxGenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10075 | PyObject * _resultobj; | |
10076 | wxGenericDirCtrl * _arg0; | |
10077 | wxString * _arg1; | |
10078 | PyObject * _argo0 = 0; | |
10079 | PyObject * _obj1 = 0; | |
10080 | char *_kwnames[] = { "self","path", NULL }; | |
10081 | ||
10082 | self = self; | |
10083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetDefaultPath",_kwnames,&_argo0,&_obj1)) | |
10084 | return NULL; | |
10085 | if (_argo0) { | |
10086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
10089 | return NULL; | |
10090 | } | |
10091 | } | |
10092 | { | |
c8bc7bb8 RD |
10093 | _arg1 = wxString_in_helper(_obj1); |
10094 | if (_arg1 == NULL) | |
68320e40 | 10095 | return NULL; |
68320e40 RD |
10096 | } |
10097 | { | |
10098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10099 | wxGenericDirCtrl_SetDefaultPath(_arg0,*_arg1); |
68320e40 RD |
10100 | |
10101 | wxPyEndAllowThreads(__tstate); | |
10102 | if (PyErr_Occurred()) return NULL; | |
10103 | } Py_INCREF(Py_None); | |
10104 | _resultobj = Py_None; | |
10105 | { | |
10106 | if (_obj1) | |
10107 | delete _arg1; | |
10108 | } | |
10109 | return _resultobj; | |
10110 | } | |
10111 | ||
10112 | #define wxGenericDirCtrl_GetPath(_swigobj) (_swigobj->GetPath()) | |
10113 | static PyObject *_wrap_wxGenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10114 | PyObject * _resultobj; | |
10115 | wxString * _result; | |
10116 | wxGenericDirCtrl * _arg0; | |
10117 | PyObject * _argo0 = 0; | |
10118 | char *_kwnames[] = { "self", NULL }; | |
10119 | ||
10120 | self = self; | |
10121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetPath",_kwnames,&_argo0)) | |
10122 | return NULL; | |
10123 | if (_argo0) { | |
10124 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10125 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10126 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetPath. Expected _wxGenericDirCtrl_p."); | |
10127 | return NULL; | |
10128 | } | |
10129 | } | |
10130 | { | |
10131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10132 | _result = new wxString (wxGenericDirCtrl_GetPath(_arg0)); |
68320e40 RD |
10133 | |
10134 | wxPyEndAllowThreads(__tstate); | |
10135 | if (PyErr_Occurred()) return NULL; | |
10136 | }{ | |
c8bc7bb8 RD |
10137 | #if wxUSE_UNICODE |
10138 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10139 | #else | |
68320e40 | 10140 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10141 | #endif |
68320e40 RD |
10142 | } |
10143 | { | |
10144 | delete _result; | |
10145 | } | |
10146 | return _resultobj; | |
10147 | } | |
10148 | ||
10149 | #define wxGenericDirCtrl_GetFilePath(_swigobj) (_swigobj->GetFilePath()) | |
10150 | static PyObject *_wrap_wxGenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10151 | PyObject * _resultobj; | |
10152 | wxString * _result; | |
10153 | wxGenericDirCtrl * _arg0; | |
10154 | PyObject * _argo0 = 0; | |
10155 | char *_kwnames[] = { "self", NULL }; | |
10156 | ||
10157 | self = self; | |
10158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilePath",_kwnames,&_argo0)) | |
10159 | return NULL; | |
10160 | if (_argo0) { | |
10161 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10162 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilePath. Expected _wxGenericDirCtrl_p."); | |
10164 | return NULL; | |
10165 | } | |
10166 | } | |
10167 | { | |
10168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10169 | _result = new wxString (wxGenericDirCtrl_GetFilePath(_arg0)); |
68320e40 RD |
10170 | |
10171 | wxPyEndAllowThreads(__tstate); | |
10172 | if (PyErr_Occurred()) return NULL; | |
10173 | }{ | |
c8bc7bb8 RD |
10174 | #if wxUSE_UNICODE |
10175 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10176 | #else | |
68320e40 | 10177 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10178 | #endif |
68320e40 RD |
10179 | } |
10180 | { | |
10181 | delete _result; | |
10182 | } | |
10183 | return _resultobj; | |
10184 | } | |
10185 | ||
10186 | #define wxGenericDirCtrl_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0)) | |
10187 | static PyObject *_wrap_wxGenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10188 | PyObject * _resultobj; | |
10189 | wxGenericDirCtrl * _arg0; | |
10190 | wxString * _arg1; | |
10191 | PyObject * _argo0 = 0; | |
10192 | PyObject * _obj1 = 0; | |
10193 | char *_kwnames[] = { "self","path", NULL }; | |
10194 | ||
10195 | self = self; | |
10196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetPath",_kwnames,&_argo0,&_obj1)) | |
10197 | return NULL; | |
10198 | if (_argo0) { | |
10199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetPath. Expected _wxGenericDirCtrl_p."); | |
10202 | return NULL; | |
10203 | } | |
10204 | } | |
10205 | { | |
c8bc7bb8 RD |
10206 | _arg1 = wxString_in_helper(_obj1); |
10207 | if (_arg1 == NULL) | |
68320e40 | 10208 | return NULL; |
68320e40 RD |
10209 | } |
10210 | { | |
10211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10212 | wxGenericDirCtrl_SetPath(_arg0,*_arg1); |
68320e40 RD |
10213 | |
10214 | wxPyEndAllowThreads(__tstate); | |
10215 | if (PyErr_Occurred()) return NULL; | |
10216 | } Py_INCREF(Py_None); | |
10217 | _resultobj = Py_None; | |
10218 | { | |
10219 | if (_obj1) | |
10220 | delete _arg1; | |
10221 | } | |
10222 | return _resultobj; | |
10223 | } | |
10224 | ||
10225 | #define wxGenericDirCtrl_ShowHidden(_swigobj,_swigarg0) (_swigobj->ShowHidden(_swigarg0)) | |
10226 | static PyObject *_wrap_wxGenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10227 | PyObject * _resultobj; | |
10228 | wxGenericDirCtrl * _arg0; | |
10229 | bool _arg1; | |
10230 | PyObject * _argo0 = 0; | |
10231 | int tempbool1; | |
10232 | char *_kwnames[] = { "self","show", NULL }; | |
10233 | ||
10234 | self = self; | |
10235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_ShowHidden",_kwnames,&_argo0,&tempbool1)) | |
10236 | return NULL; | |
10237 | if (_argo0) { | |
10238 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10239 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ShowHidden. Expected _wxGenericDirCtrl_p."); | |
10241 | return NULL; | |
10242 | } | |
10243 | } | |
10244 | _arg1 = (bool ) tempbool1; | |
10245 | { | |
10246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10247 | wxGenericDirCtrl_ShowHidden(_arg0,_arg1); |
68320e40 RD |
10248 | |
10249 | wxPyEndAllowThreads(__tstate); | |
10250 | if (PyErr_Occurred()) return NULL; | |
10251 | } Py_INCREF(Py_None); | |
10252 | _resultobj = Py_None; | |
10253 | return _resultobj; | |
10254 | } | |
10255 | ||
10256 | #define wxGenericDirCtrl_GetShowHidden(_swigobj) (_swigobj->GetShowHidden()) | |
10257 | static PyObject *_wrap_wxGenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10258 | PyObject * _resultobj; | |
10259 | bool _result; | |
10260 | wxGenericDirCtrl * _arg0; | |
10261 | PyObject * _argo0 = 0; | |
10262 | char *_kwnames[] = { "self", NULL }; | |
10263 | ||
10264 | self = self; | |
10265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetShowHidden",_kwnames,&_argo0)) | |
10266 | return NULL; | |
10267 | if (_argo0) { | |
10268 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10269 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10270 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetShowHidden. Expected _wxGenericDirCtrl_p."); | |
10271 | return NULL; | |
10272 | } | |
10273 | } | |
10274 | { | |
10275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10276 | _result = (bool )wxGenericDirCtrl_GetShowHidden(_arg0); |
68320e40 RD |
10277 | |
10278 | wxPyEndAllowThreads(__tstate); | |
10279 | if (PyErr_Occurred()) return NULL; | |
10280 | } _resultobj = Py_BuildValue("i",_result); | |
10281 | return _resultobj; | |
10282 | } | |
10283 | ||
10284 | #define wxGenericDirCtrl_GetFilter(_swigobj) (_swigobj->GetFilter()) | |
10285 | static PyObject *_wrap_wxGenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10286 | PyObject * _resultobj; | |
10287 | wxString * _result; | |
10288 | wxGenericDirCtrl * _arg0; | |
10289 | PyObject * _argo0 = 0; | |
10290 | char *_kwnames[] = { "self", NULL }; | |
10291 | ||
10292 | self = self; | |
10293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilter",_kwnames,&_argo0)) | |
10294 | return NULL; | |
10295 | if (_argo0) { | |
10296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilter. Expected _wxGenericDirCtrl_p."); | |
10299 | return NULL; | |
10300 | } | |
10301 | } | |
10302 | { | |
10303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10304 | _result = new wxString (wxGenericDirCtrl_GetFilter(_arg0)); |
68320e40 RD |
10305 | |
10306 | wxPyEndAllowThreads(__tstate); | |
10307 | if (PyErr_Occurred()) return NULL; | |
10308 | }{ | |
c8bc7bb8 RD |
10309 | #if wxUSE_UNICODE |
10310 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10311 | #else | |
68320e40 | 10312 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10313 | #endif |
68320e40 RD |
10314 | } |
10315 | { | |
10316 | delete _result; | |
10317 | } | |
10318 | return _resultobj; | |
10319 | } | |
10320 | ||
10321 | #define wxGenericDirCtrl_SetFilter(_swigobj,_swigarg0) (_swigobj->SetFilter(_swigarg0)) | |
10322 | static PyObject *_wrap_wxGenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10323 | PyObject * _resultobj; | |
10324 | wxGenericDirCtrl * _arg0; | |
10325 | wxString * _arg1; | |
10326 | PyObject * _argo0 = 0; | |
10327 | PyObject * _obj1 = 0; | |
10328 | char *_kwnames[] = { "self","filter", NULL }; | |
10329 | ||
10330 | self = self; | |
10331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetFilter",_kwnames,&_argo0,&_obj1)) | |
10332 | return NULL; | |
10333 | if (_argo0) { | |
10334 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10335 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilter. Expected _wxGenericDirCtrl_p."); | |
10337 | return NULL; | |
10338 | } | |
10339 | } | |
10340 | { | |
c8bc7bb8 RD |
10341 | _arg1 = wxString_in_helper(_obj1); |
10342 | if (_arg1 == NULL) | |
68320e40 | 10343 | return NULL; |
68320e40 RD |
10344 | } |
10345 | { | |
10346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10347 | wxGenericDirCtrl_SetFilter(_arg0,*_arg1); |
68320e40 RD |
10348 | |
10349 | wxPyEndAllowThreads(__tstate); | |
10350 | if (PyErr_Occurred()) return NULL; | |
10351 | } Py_INCREF(Py_None); | |
10352 | _resultobj = Py_None; | |
10353 | { | |
10354 | if (_obj1) | |
10355 | delete _arg1; | |
10356 | } | |
10357 | return _resultobj; | |
10358 | } | |
10359 | ||
10360 | #define wxGenericDirCtrl_GetFilterIndex(_swigobj) (_swigobj->GetFilterIndex()) | |
10361 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10362 | PyObject * _resultobj; | |
10363 | int _result; | |
10364 | wxGenericDirCtrl * _arg0; | |
10365 | PyObject * _argo0 = 0; | |
10366 | char *_kwnames[] = { "self", NULL }; | |
10367 | ||
10368 | self = self; | |
10369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterIndex",_kwnames,&_argo0)) | |
10370 | return NULL; | |
10371 | if (_argo0) { | |
10372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10375 | return NULL; | |
10376 | } | |
10377 | } | |
10378 | { | |
10379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10380 | _result = (int )wxGenericDirCtrl_GetFilterIndex(_arg0); |
68320e40 RD |
10381 | |
10382 | wxPyEndAllowThreads(__tstate); | |
10383 | if (PyErr_Occurred()) return NULL; | |
10384 | } _resultobj = Py_BuildValue("i",_result); | |
10385 | return _resultobj; | |
10386 | } | |
10387 | ||
10388 | #define wxGenericDirCtrl_SetFilterIndex(_swigobj,_swigarg0) (_swigobj->SetFilterIndex(_swigarg0)) | |
10389 | static PyObject *_wrap_wxGenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10390 | PyObject * _resultobj; | |
10391 | wxGenericDirCtrl * _arg0; | |
10392 | int _arg1; | |
10393 | PyObject * _argo0 = 0; | |
10394 | char *_kwnames[] = { "self","n", NULL }; | |
10395 | ||
10396 | self = self; | |
10397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_SetFilterIndex",_kwnames,&_argo0,&_arg1)) | |
10398 | return NULL; | |
10399 | if (_argo0) { | |
10400 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10401 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10402 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10403 | return NULL; | |
10404 | } | |
10405 | } | |
10406 | { | |
10407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10408 | wxGenericDirCtrl_SetFilterIndex(_arg0,_arg1); |
68320e40 RD |
10409 | |
10410 | wxPyEndAllowThreads(__tstate); | |
10411 | if (PyErr_Occurred()) return NULL; | |
10412 | } Py_INCREF(Py_None); | |
10413 | _resultobj = Py_None; | |
10414 | return _resultobj; | |
10415 | } | |
10416 | ||
10417 | #define wxGenericDirCtrl_GetRootId(_swigobj) (_swigobj->GetRootId()) | |
10418 | static PyObject *_wrap_wxGenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10419 | PyObject * _resultobj; | |
10420 | wxTreeItemId * _result; | |
10421 | wxGenericDirCtrl * _arg0; | |
10422 | PyObject * _argo0 = 0; | |
10423 | char *_kwnames[] = { "self", NULL }; | |
10424 | char _ptemp[128]; | |
10425 | ||
10426 | self = self; | |
10427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetRootId",_kwnames,&_argo0)) | |
10428 | return NULL; | |
10429 | if (_argo0) { | |
10430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetRootId. Expected _wxGenericDirCtrl_p."); | |
10433 | return NULL; | |
10434 | } | |
10435 | } | |
10436 | { | |
10437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10438 | _result = new wxTreeItemId (wxGenericDirCtrl_GetRootId(_arg0)); |
68320e40 RD |
10439 | |
10440 | wxPyEndAllowThreads(__tstate); | |
10441 | if (PyErr_Occurred()) return NULL; | |
10442 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
10443 | _resultobj = Py_BuildValue("s",_ptemp); | |
10444 | return _resultobj; | |
10445 | } | |
10446 | ||
10447 | #define wxGenericDirCtrl_GetTreeCtrl(_swigobj) (_swigobj->GetTreeCtrl()) | |
10448 | static PyObject *_wrap_wxGenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10449 | PyObject * _resultobj; | |
10450 | wxTreeCtrl * _result; | |
10451 | wxGenericDirCtrl * _arg0; | |
10452 | PyObject * _argo0 = 0; | |
10453 | char *_kwnames[] = { "self", NULL }; | |
68320e40 RD |
10454 | |
10455 | self = self; | |
10456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetTreeCtrl",_kwnames,&_argo0)) | |
10457 | return NULL; | |
10458 | if (_argo0) { | |
10459 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10460 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetTreeCtrl. Expected _wxGenericDirCtrl_p."); | |
10462 | return NULL; | |
10463 | } | |
10464 | } | |
10465 | { | |
10466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10467 | _result = (wxTreeCtrl *)wxGenericDirCtrl_GetTreeCtrl(_arg0); |
68320e40 RD |
10468 | |
10469 | wxPyEndAllowThreads(__tstate); | |
10470 | if (PyErr_Occurred()) return NULL; | |
9398120d | 10471 | }{ _resultobj = wxPyMake_wxObject(_result); } |
68320e40 RD |
10472 | return _resultobj; |
10473 | } | |
10474 | ||
10475 | #define wxGenericDirCtrl_GetFilterListCtrl(_swigobj) (_swigobj->GetFilterListCtrl()) | |
10476 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10477 | PyObject * _resultobj; | |
10478 | wxDirFilterListCtrl * _result; | |
10479 | wxGenericDirCtrl * _arg0; | |
10480 | PyObject * _argo0 = 0; | |
10481 | char *_kwnames[] = { "self", NULL }; | |
10482 | char _ptemp[128]; | |
10483 | ||
10484 | self = self; | |
10485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterListCtrl",_kwnames,&_argo0)) | |
10486 | return NULL; | |
10487 | if (_argo0) { | |
10488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10491 | return NULL; | |
10492 | } | |
10493 | } | |
10494 | { | |
10495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10496 | _result = (wxDirFilterListCtrl *)wxGenericDirCtrl_GetFilterListCtrl(_arg0); |
68320e40 RD |
10497 | |
10498 | wxPyEndAllowThreads(__tstate); | |
10499 | if (PyErr_Occurred()) return NULL; | |
10500 | } if (_result) { | |
10501 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10502 | _resultobj = Py_BuildValue("s",_ptemp); | |
10503 | } else { | |
10504 | Py_INCREF(Py_None); | |
10505 | _resultobj = Py_None; | |
10506 | } | |
10507 | return _resultobj; | |
10508 | } | |
10509 | ||
10510 | static void *SwigwxDirFilterListCtrlTowxChoice(void *ptr) { | |
10511 | wxDirFilterListCtrl *src; | |
10512 | wxChoice *dest; | |
10513 | src = (wxDirFilterListCtrl *) ptr; | |
10514 | dest = (wxChoice *) src; | |
10515 | return (void *) dest; | |
10516 | } | |
10517 | ||
10518 | static void *SwigwxDirFilterListCtrlTowxControlWithItems(void *ptr) { | |
10519 | wxDirFilterListCtrl *src; | |
10520 | wxControlWithItems *dest; | |
10521 | src = (wxDirFilterListCtrl *) ptr; | |
10522 | dest = (wxControlWithItems *) src; | |
10523 | return (void *) dest; | |
10524 | } | |
10525 | ||
10526 | static void *SwigwxDirFilterListCtrlTowxControl(void *ptr) { | |
10527 | wxDirFilterListCtrl *src; | |
10528 | wxControl *dest; | |
10529 | src = (wxDirFilterListCtrl *) ptr; | |
10530 | dest = (wxControl *) src; | |
10531 | return (void *) dest; | |
10532 | } | |
10533 | ||
10534 | static void *SwigwxDirFilterListCtrlTowxWindow(void *ptr) { | |
10535 | wxDirFilterListCtrl *src; | |
10536 | wxWindow *dest; | |
10537 | src = (wxDirFilterListCtrl *) ptr; | |
10538 | dest = (wxWindow *) src; | |
10539 | return (void *) dest; | |
10540 | } | |
10541 | ||
10542 | static void *SwigwxDirFilterListCtrlTowxEvtHandler(void *ptr) { | |
10543 | wxDirFilterListCtrl *src; | |
10544 | wxEvtHandler *dest; | |
10545 | src = (wxDirFilterListCtrl *) ptr; | |
10546 | dest = (wxEvtHandler *) src; | |
10547 | return (void *) dest; | |
10548 | } | |
10549 | ||
10550 | static void *SwigwxDirFilterListCtrlTowxObject(void *ptr) { | |
10551 | wxDirFilterListCtrl *src; | |
10552 | wxObject *dest; | |
10553 | src = (wxDirFilterListCtrl *) ptr; | |
10554 | dest = (wxObject *) src; | |
10555 | return (void *) dest; | |
10556 | } | |
10557 | ||
10558 | #define new_wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10559 | static PyObject *_wrap_new_wxDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10560 | PyObject * _resultobj; | |
10561 | wxDirFilterListCtrl * _result; | |
10562 | wxGenericDirCtrl * _arg0; | |
10563 | wxWindowID _arg1 = (wxWindowID ) -1; | |
10564 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
10565 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
10566 | long _arg4 = (long ) 0; | |
10567 | PyObject * _argo0 = 0; | |
10568 | wxPoint temp; | |
10569 | PyObject * _obj2 = 0; | |
10570 | wxSize temp0; | |
10571 | PyObject * _obj3 = 0; | |
10572 | char *_kwnames[] = { "parent","id","pos","size","style", NULL }; | |
10573 | char _ptemp[128]; | |
10574 | ||
10575 | self = self; | |
10576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxDirFilterListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
10577 | return NULL; | |
10578 | if (_argo0) { | |
10579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDirFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10582 | return NULL; | |
10583 | } | |
10584 | } | |
10585 | if (_obj2) | |
10586 | { | |
10587 | _arg2 = &temp; | |
10588 | if (! wxPoint_helper(_obj2, &_arg2)) | |
10589 | return NULL; | |
10590 | } | |
10591 | if (_obj3) | |
10592 | { | |
10593 | _arg3 = &temp0; | |
10594 | if (! wxSize_helper(_obj3, &_arg3)) | |
10595 | return NULL; | |
10596 | } | |
10597 | { | |
10598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10599 | _result = (wxDirFilterListCtrl *)new_wxDirFilterListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
68320e40 RD |
10600 | |
10601 | wxPyEndAllowThreads(__tstate); | |
10602 | if (PyErr_Occurred()) return NULL; | |
10603 | } if (_result) { | |
10604 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10605 | _resultobj = Py_BuildValue("s",_ptemp); | |
10606 | } else { | |
10607 | Py_INCREF(Py_None); | |
10608 | _resultobj = Py_None; | |
10609 | } | |
10610 | return _resultobj; | |
10611 | } | |
10612 | ||
10613 | #define new_wxPreDirFilterListCtrl() (new wxDirFilterListCtrl()) | |
10614 | static PyObject *_wrap_new_wxPreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10615 | PyObject * _resultobj; | |
10616 | wxDirFilterListCtrl * _result; | |
10617 | char *_kwnames[] = { NULL }; | |
10618 | char _ptemp[128]; | |
10619 | ||
10620 | self = self; | |
10621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreDirFilterListCtrl",_kwnames)) | |
10622 | return NULL; | |
10623 | { | |
10624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10625 | _result = (wxDirFilterListCtrl *)new_wxPreDirFilterListCtrl(); |
68320e40 RD |
10626 | |
10627 | wxPyEndAllowThreads(__tstate); | |
10628 | if (PyErr_Occurred()) return NULL; | |
10629 | } if (_result) { | |
10630 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10631 | _resultobj = Py_BuildValue("s",_ptemp); | |
10632 | } else { | |
10633 | Py_INCREF(Py_None); | |
10634 | _resultobj = Py_None; | |
10635 | } | |
10636 | return _resultobj; | |
10637 | } | |
10638 | ||
10639 | #define wxDirFilterListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10640 | static PyObject *_wrap_wxDirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10641 | PyObject * _resultobj; | |
10642 | bool _result; | |
10643 | wxDirFilterListCtrl * _arg0; | |
10644 | wxGenericDirCtrl * _arg1; | |
10645 | wxWindowID _arg2 = (wxWindowID ) -1; | |
10646 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
10647 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
10648 | long _arg5 = (long ) 0; | |
10649 | PyObject * _argo0 = 0; | |
10650 | PyObject * _argo1 = 0; | |
10651 | wxPoint temp; | |
10652 | PyObject * _obj3 = 0; | |
10653 | wxSize temp0; | |
10654 | PyObject * _obj4 = 0; | |
10655 | char *_kwnames[] = { "self","parent","id","pos","size","style", NULL }; | |
10656 | ||
10657 | self = self; | |
10658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOl:wxDirFilterListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5)) | |
10659 | return NULL; | |
10660 | if (_argo0) { | |
10661 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10662 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
10663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_Create. Expected _wxDirFilterListCtrl_p."); | |
10664 | return NULL; | |
10665 | } | |
10666 | } | |
10667 | if (_argo1) { | |
10668 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10669 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxGenericDirCtrl_p")) { | |
10670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDirFilterListCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
10671 | return NULL; | |
10672 | } | |
10673 | } | |
10674 | if (_obj3) | |
10675 | { | |
10676 | _arg3 = &temp; | |
10677 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10678 | return NULL; | |
10679 | } | |
10680 | if (_obj4) | |
10681 | { | |
10682 | _arg4 = &temp0; | |
10683 | if (! wxSize_helper(_obj4, &_arg4)) | |
10684 | return NULL; | |
10685 | } | |
10686 | { | |
10687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10688 | _result = (bool )wxDirFilterListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5); |
68320e40 RD |
10689 | |
10690 | wxPyEndAllowThreads(__tstate); | |
10691 | if (PyErr_Occurred()) return NULL; | |
10692 | } _resultobj = Py_BuildValue("i",_result); | |
10693 | return _resultobj; | |
10694 | } | |
10695 | ||
10696 | #define wxDirFilterListCtrl_FillFilterList(_swigobj,_swigarg0,_swigarg1) (_swigobj->FillFilterList(_swigarg0,_swigarg1)) | |
10697 | static PyObject *_wrap_wxDirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10698 | PyObject * _resultobj; | |
10699 | wxDirFilterListCtrl * _arg0; | |
10700 | wxString * _arg1; | |
10701 | int _arg2; | |
10702 | PyObject * _argo0 = 0; | |
10703 | PyObject * _obj1 = 0; | |
10704 | char *_kwnames[] = { "self","filter","defaultFilter", NULL }; | |
10705 | ||
10706 | self = self; | |
10707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxDirFilterListCtrl_FillFilterList",_kwnames,&_argo0,&_obj1,&_arg2)) | |
10708 | return NULL; | |
10709 | if (_argo0) { | |
10710 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10711 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
10712 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_FillFilterList. Expected _wxDirFilterListCtrl_p."); | |
10713 | return NULL; | |
10714 | } | |
10715 | } | |
10716 | { | |
c8bc7bb8 RD |
10717 | _arg1 = wxString_in_helper(_obj1); |
10718 | if (_arg1 == NULL) | |
68320e40 | 10719 | return NULL; |
68320e40 RD |
10720 | } |
10721 | { | |
10722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10723 | wxDirFilterListCtrl_FillFilterList(_arg0,*_arg1,_arg2); |
68320e40 RD |
10724 | |
10725 | wxPyEndAllowThreads(__tstate); | |
10726 | if (PyErr_Occurred()) return NULL; | |
10727 | } Py_INCREF(Py_None); | |
10728 | _resultobj = Py_None; | |
10729 | { | |
10730 | if (_obj1) | |
10731 | delete _arg1; | |
10732 | } | |
10733 | return _resultobj; | |
10734 | } | |
10735 | ||
8ab979d7 | 10736 | static PyMethodDef controls2cMethods[] = { |
68320e40 RD |
10737 | { "wxDirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_wxDirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, |
10738 | { "wxDirFilterListCtrl_Create", (PyCFunction) _wrap_wxDirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10739 | { "new_wxPreDirFilterListCtrl", (PyCFunction) _wrap_new_wxPreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10740 | { "new_wxDirFilterListCtrl", (PyCFunction) _wrap_new_wxDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10741 | { "wxGenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10742 | { "wxGenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10743 | { "wxGenericDirCtrl_GetRootId", (PyCFunction) _wrap_wxGenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
10744 | { "wxGenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
10745 | { "wxGenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
10746 | { "wxGenericDirCtrl_SetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
10747 | { "wxGenericDirCtrl_GetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
10748 | { "wxGenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
10749 | { "wxGenericDirCtrl_ShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
10750 | { "wxGenericDirCtrl_SetPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
10751 | { "wxGenericDirCtrl_GetFilePath", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
10752 | { "wxGenericDirCtrl_GetPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
10753 | { "wxGenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
10754 | { "wxGenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
10755 | { "wxGenericDirCtrl_ExpandPath", (PyCFunction) _wrap_wxGenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
10756 | { "wxGenericDirCtrl_Create", (PyCFunction) _wrap_wxGenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10757 | { "new_wxPreGenericDirCtrl", (PyCFunction) _wrap_new_wxPreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10758 | { "new_wxGenericDirCtrl", (PyCFunction) _wrap_new_wxGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10759 | { "wxDirItemData_m_isDir_get", (PyCFunction) _wrap_wxDirItemData_m_isDir_get, METH_VARARGS | METH_KEYWORDS }, | |
10760 | { "wxDirItemData_m_isDir_set", (PyCFunction) _wrap_wxDirItemData_m_isDir_set, METH_VARARGS | METH_KEYWORDS }, | |
10761 | { "wxDirItemData_m_isExpanded_get", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_get, METH_VARARGS | METH_KEYWORDS }, | |
10762 | { "wxDirItemData_m_isExpanded_set", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_set, METH_VARARGS | METH_KEYWORDS }, | |
10763 | { "wxDirItemData_m_isHidden_get", (PyCFunction) _wrap_wxDirItemData_m_isHidden_get, METH_VARARGS | METH_KEYWORDS }, | |
10764 | { "wxDirItemData_m_isHidden_set", (PyCFunction) _wrap_wxDirItemData_m_isHidden_set, METH_VARARGS | METH_KEYWORDS }, | |
10765 | { "wxDirItemData_m_name_get", (PyCFunction) _wrap_wxDirItemData_m_name_get, METH_VARARGS | METH_KEYWORDS }, | |
10766 | { "wxDirItemData_m_name_set", (PyCFunction) _wrap_wxDirItemData_m_name_set, METH_VARARGS | METH_KEYWORDS }, | |
10767 | { "wxDirItemData_m_path_get", (PyCFunction) _wrap_wxDirItemData_m_path_get, METH_VARARGS | METH_KEYWORDS }, | |
10768 | { "wxDirItemData_m_path_set", (PyCFunction) _wrap_wxDirItemData_m_path_set, METH_VARARGS | METH_KEYWORDS }, | |
10769 | { "wxDirItemData_SetNewDirName", (PyCFunction) _wrap_wxDirItemData_SetNewDirName, METH_VARARGS | METH_KEYWORDS }, | |
10770 | { "new_wxDirItemData", (PyCFunction) _wrap_new_wxDirItemData, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10771 | { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10772 | { "wxTreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_wxTreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 RD |
10773 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, |
10774 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10775 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10776 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
10777 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
10778 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10779 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10780 | { "wxTreeCtrl_EndEditLabel", (PyCFunction) _wrap_wxTreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, |
10781 | { "wxTreeCtrl_GetEditControl", (PyCFunction) _wrap_wxTreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
10782 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
10783 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
10784 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
10785 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
10786 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
10787 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
10788 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
10789 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
10790 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
10791 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
10792 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
10793 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
10794 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
10795 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10796 | { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10797 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, |
10798 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
10799 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10800 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10801 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, |
10802 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
10803 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
10804 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
10805 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
10806 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
10807 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
10808 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10809 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 10810 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10811 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
10812 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
10813 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
10814 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
10815 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
10816 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
10817 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, | |
10818 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
10819 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10820 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10821 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
10822 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
10823 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10824 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10825 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
10826 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10827 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
10828 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, |
10829 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
00b6c4e3 RD |
10830 | { "wxTreeCtrl_AssignStateImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, |
10831 | { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10832 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, |
10833 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10834 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
10835 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10836 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
10837 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
10838 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 10839 | { "wxTreeCtrl__setCallbackInfo", (PyCFunction) _wrap_wxTreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
10840 | { "wxTreeCtrl_Create", (PyCFunction) _wrap_wxTreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
10841 | { "new_wxPreTreeCtrl", (PyCFunction) _wrap_new_wxPreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10842 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, |
10843 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10844 | { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
ecc08ead | 10845 | { "wxTreeEvent_GetKeyEvent", (PyCFunction) _wrap_wxTreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10846 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, |
10847 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
10848 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
00b6c4e3 | 10849 | { "new_wxTreeEvent", (PyCFunction) _wrap_new_wxTreeEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10850 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, |
10851 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
10852 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
10853 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10854 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10855 | { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10856 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, |
10857 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
10858 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
00b6c4e3 RD |
10859 | { "wxTreeItemAttr_GetFont", (PyCFunction) _wrap_wxTreeItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, |
10860 | { "wxTreeItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10861 | { "wxTreeItemAttr_GetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10862 | { "wxTreeItemAttr_HasFont", (PyCFunction) _wrap_wxTreeItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
10863 | { "wxTreeItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10864 | { "wxTreeItemAttr_HasTextColour", (PyCFunction) _wrap_wxTreeItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10865 | { "wxTreeItemAttr_SetFont", (PyCFunction) _wrap_wxTreeItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10866 | { "wxTreeItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10867 | { "wxTreeItemAttr_SetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10868 | { "new_wxTreeItemAttr", (PyCFunction) _wrap_new_wxTreeItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
6d19860f RD |
10869 | { "wxListView_ClearColumnImage", (PyCFunction) _wrap_wxListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, |
10870 | { "wxListView_SetColumnImage", (PyCFunction) _wrap_wxListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
10871 | { "wxListView_IsSelected", (PyCFunction) _wrap_wxListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
10872 | { "wxListView_GetFirstSelected", (PyCFunction) _wrap_wxListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
10873 | { "wxListView_GetNextSelected", (PyCFunction) _wrap_wxListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
10874 | { "wxListView_GetFocusedItem", (PyCFunction) _wrap_wxListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
10875 | { "wxListView_Focus", (PyCFunction) _wrap_wxListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
10876 | { "wxListView_Select", (PyCFunction) _wrap_wxListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
10877 | { "wxListView_Create", (PyCFunction) _wrap_wxListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
10878 | { "new_wxPreListView", (PyCFunction) _wrap_new_wxPreListView, METH_VARARGS | METH_KEYWORDS }, | |
10879 | { "new_wxListView", (PyCFunction) _wrap_new_wxListView, METH_VARARGS | METH_KEYWORDS }, | |
dcd38683 | 10880 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, |
3bd1e033 RD |
10881 | { "wxListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_wxListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
10882 | { "wxListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10883 | { "wxListCtrl_GetItemTextColour", (PyCFunction) _wrap_wxListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10884 | { "wxListCtrl_SetItemTextColour", (PyCFunction) _wrap_wxListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10885 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, |
c7e7022c RD |
10886 | { "wxListCtrl_SetItemCount", (PyCFunction) _wrap_wxListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, |
10887 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
10888 | { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10889 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, |
10890 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
10891 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
10892 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10893 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10894 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, |
10895 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
10896 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
10897 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10898 | { "wxListCtrl_EndEditLabel", (PyCFunction) _wrap_wxListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, |
10899 | { "wxListCtrl_EditLabel", (PyCFunction) _wrap_wxListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
10900 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
10901 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
10902 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
10903 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
10904 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
10905 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
c7e7022c RD |
10906 | { "wxListCtrl_RefreshItems", (PyCFunction) _wrap_wxListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, |
10907 | { "wxListCtrl_RefreshItem", (PyCFunction) _wrap_wxListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
10908 | { "wxListCtrl_IsVirtual", (PyCFunction) _wrap_wxListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
10909 | { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
10910 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10911 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10912 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
10913 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
10914 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
10915 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
10916 | { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10917 | { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10918 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10919 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
10920 | { "wxListCtrl_GetColumnCount", (PyCFunction) _wrap_wxListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
10921 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10922 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
10923 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
10924 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
10925 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10926 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10927 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10928 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10929 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10930 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
10931 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
10932 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
10933 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
10934 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
10935 | { "wxListCtrl_GetEditControl", (PyCFunction) _wrap_wxListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
10936 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
10937 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
10938 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
10939 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10940 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10941 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10942 | { "wxListCtrl_SetForegroundColour", (PyCFunction) _wrap_wxListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 10943 | { "wxListCtrl__setCallbackInfo", (PyCFunction) _wrap_wxListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
10944 | { "wxListCtrl_Create", (PyCFunction) _wrap_wxListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
10945 | { "new_wxPreListCtrl", (PyCFunction) _wrap_new_wxPreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10946 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, |
6d19860f RD |
10947 | { "wxListEvent_GetCacheTo", (PyCFunction) _wrap_wxListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, |
10948 | { "wxListEvent_GetCacheFrom", (PyCFunction) _wrap_wxListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10949 | { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, |
10950 | { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
10951 | { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10952 | { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
10953 | { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10954 | { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10955 | { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10956 | { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
10957 | { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, |
10958 | { "wxListEvent_GetCode", (PyCFunction) _wrap_wxListEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10959 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10960 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10961 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10962 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
ebf4302c | 10963 | { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10964 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, |
6d19860f | 10965 | { "new_wxListEvent", (PyCFunction) _wrap_new_wxListEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10966 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, |
10967 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
10968 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
10969 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
10970 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
10971 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
10972 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
10973 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
10974 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
10975 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
10976 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
10977 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
10978 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
10979 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
10980 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
10981 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
10982 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
10983 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
10984 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
10985 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10986 | { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, |
10987 | { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10988 | { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10989 | { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
10990 | { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
10991 | { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
10992 | { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10993 | { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10994 | { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
10995 | { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10996 | { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
10997 | { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10998 | { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
10999 | { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
11000 | { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11001 | { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11002 | { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11003 | { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
11004 | { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11005 | { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
11006 | { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
11007 | { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
11008 | { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
11009 | { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
11010 | { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
11011 | { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
11012 | { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
11013 | { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
11014 | { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11015 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
11016 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
11017 | { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11018 | { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11019 | { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11020 | { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
11021 | { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11022 | { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11023 | { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11024 | { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11025 | { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11026 | { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
11027 | { NULL, NULL } |
11028 | }; | |
1d99702e RD |
11029 | #ifdef __cplusplus |
11030 | } | |
11031 | #endif | |
11032 | /* | |
11033 | * This table is used by the pointer type-checker | |
11034 | */ | |
11035 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 11036 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, |
1d99702e | 11037 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, |
1d99702e | 11038 | { "_signed_long","_long",0}, |
b1462dfa | 11039 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
11040 | { "_wxPrintQuality","_int",0}, |
11041 | { "_wxPrintQuality","_signed_int",0}, | |
11042 | { "_wxPrintQuality","_unsigned_int",0}, | |
11043 | { "_wxPrintQuality","_wxWindowID",0}, | |
11044 | { "_wxPrintQuality","_uint",0}, | |
11045 | { "_wxPrintQuality","_EBool",0}, | |
11046 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11047 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 11048 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, |
c368d904 | 11049 | { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
1d99702e | 11050 | { "_byte","_unsigned_char",0}, |
68320e40 | 11051 | { "_wxChoice","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxChoice}, |
1d99702e RD |
11052 | { "_long","_unsigned_long",0}, |
11053 | { "_long","_signed_long",0}, | |
b1462dfa | 11054 | { "_size_t","_wxCoord",0}, |
1d99702e | 11055 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11056 | { "_size_t","_time_t",0}, |
1d99702e RD |
11057 | { "_size_t","_unsigned_int",0}, |
11058 | { "_size_t","_int",0}, | |
11059 | { "_size_t","_wxWindowID",0}, | |
11060 | { "_size_t","_uint",0}, | |
b1462dfa | 11061 | { "_uint","_wxCoord",0}, |
1d99702e | 11062 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11063 | { "_uint","_time_t",0}, |
1d99702e RD |
11064 | { "_uint","_size_t",0}, |
11065 | { "_uint","_unsigned_int",0}, | |
11066 | { "_uint","_int",0}, | |
11067 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11068 | { "_wxChar","_char",0}, |
1d99702e | 11069 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, |
1d99702e | 11070 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, |
f6bcfd97 | 11071 | { "_char","_wxChar",0}, |
cdf14688 | 11072 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 11073 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
11074 | { "_EBool","_wxPrintQuality",0}, |
11075 | { "_EBool","_signed_int",0}, | |
11076 | { "_EBool","_int",0}, | |
11077 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 11078 | { "_unsigned_long","_long",0}, |
cdf14688 | 11079 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 11080 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
11081 | { "_signed_int","_wxPrintQuality",0}, |
11082 | { "_signed_int","_EBool",0}, | |
11083 | { "_signed_int","_wxWindowID",0}, | |
11084 | { "_signed_int","_int",0}, | |
1d99702e RD |
11085 | { "_WXTYPE","_short",0}, |
11086 | { "_WXTYPE","_signed_short",0}, | |
11087 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
11088 | { "_unsigned_short","_WXTYPE",0}, |
11089 | { "_unsigned_short","_short",0}, | |
68320e40 RD |
11090 | { "_wxObject","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxObject}, |
11091 | { "_wxObject","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxObject}, | |
11092 | { "_wxObject","_wxDirItemData",SwigwxDirItemDataTowxObject}, | |
9416aa89 | 11093 | { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, |
9416aa89 | 11094 | { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject}, |
9416aa89 | 11095 | { "_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, |
6d19860f | 11096 | { "_wxObject","_wxListView",SwigwxListViewTowxObject}, |
c7e7022c | 11097 | { "_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, |
9416aa89 | 11098 | { "_wxObject","_wxListEvent",SwigwxListEventTowxObject}, |
9416aa89 | 11099 | { "_wxObject","_wxListItem",SwigwxListItemTowxObject}, |
1d99702e RD |
11100 | { "_signed_short","_WXTYPE",0}, |
11101 | { "_signed_short","_short",0}, | |
1d99702e | 11102 | { "_unsigned_char","_byte",0}, |
68320e40 RD |
11103 | { "_wxControl","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControl}, |
11104 | { "_wxControl","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxControl}, | |
f6bcfd97 | 11105 | { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
6d19860f | 11106 | { "_wxControl","_wxListView",SwigwxListViewTowxControl}, |
c7e7022c | 11107 | { "_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, |
b1462dfa | 11108 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 11109 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 11110 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
11111 | { "_unsigned_int","_size_t",0}, |
11112 | { "_unsigned_int","_uint",0}, | |
11113 | { "_unsigned_int","_wxWindowID",0}, | |
11114 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
11115 | { "_short","_WXTYPE",0}, |
11116 | { "_short","_unsigned_short",0}, | |
11117 | { "_short","_signed_short",0}, | |
68320e40 | 11118 | { "_wxControlWithItems","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControlWithItems}, |
b1462dfa | 11119 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 11120 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 11121 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
11122 | { "_wxWindowID","_size_t",0}, |
11123 | { "_wxWindowID","_EBool",0}, | |
11124 | { "_wxWindowID","_uint",0}, | |
11125 | { "_wxWindowID","_int",0}, | |
11126 | { "_wxWindowID","_signed_int",0}, | |
11127 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 11128 | { "_int","_wxCoord",0}, |
1d99702e | 11129 | { "_int","_wxPrintQuality",0}, |
c368d904 | 11130 | { "_int","_time_t",0}, |
1d99702e RD |
11131 | { "_int","_size_t",0}, |
11132 | { "_int","_EBool",0}, | |
11133 | { "_int","_uint",0}, | |
11134 | { "_int","_wxWindowID",0}, | |
11135 | { "_int","_unsigned_int",0}, | |
11136 | { "_int","_signed_int",0}, | |
c368d904 RD |
11137 | { "_time_t","_wxCoord",0}, |
11138 | { "_time_t","_wxPrintQuality",0}, | |
11139 | { "_time_t","_unsigned_int",0}, | |
11140 | { "_time_t","_int",0}, | |
11141 | { "_time_t","_wxWindowID",0}, | |
11142 | { "_time_t","_uint",0}, | |
11143 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
11144 | { "_wxCoord","_int",0}, |
11145 | { "_wxCoord","_signed_int",0}, | |
11146 | { "_wxCoord","_unsigned_int",0}, | |
11147 | { "_wxCoord","_wxWindowID",0}, | |
11148 | { "_wxCoord","_uint",0}, | |
11149 | { "_wxCoord","_EBool",0}, | |
11150 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11151 | { "_wxCoord","_time_t",0}, |
b1462dfa | 11152 | { "_wxCoord","_wxPrintQuality",0}, |
6d19860f | 11153 | { "_wxPyListCtrl","_wxListView",SwigwxListViewTowxPyListCtrl}, |
68320e40 RD |
11154 | { "_wxEvtHandler","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxEvtHandler}, |
11155 | { "_wxEvtHandler","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxEvtHandler}, | |
f6bcfd97 | 11156 | { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
6d19860f | 11157 | { "_wxEvtHandler","_wxListView",SwigwxListViewTowxEvtHandler}, |
c7e7022c | 11158 | { "_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, |
68320e40 RD |
11159 | { "_wxWindow","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxWindow}, |
11160 | { "_wxWindow","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxWindow}, | |
f6bcfd97 | 11161 | { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
6d19860f | 11162 | { "_wxWindow","_wxListView",SwigwxListViewTowxWindow}, |
c7e7022c | 11163 | { "_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, |
1d99702e RD |
11164 | {0,0,0}}; |
11165 | ||
8ab979d7 RD |
11166 | static PyObject *SWIG_globals; |
11167 | #ifdef __cplusplus | |
11168 | extern "C" | |
11169 | #endif | |
1d99702e | 11170 | SWIGEXPORT(void) initcontrols2c() { |
8ab979d7 RD |
11171 | PyObject *m, *d; |
11172 | SWIG_globals = SWIG_newvarlink(); | |
11173 | m = Py_InitModule("controls2c", controls2cMethods); | |
11174 | d = PyModule_GetDict(m); | |
c7e7022c RD |
11175 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
11176 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
11177 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
11178 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
11179 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
11180 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
11181 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO)); | |
11182 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO)); | |
11183 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
11184 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
11185 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN)); | |
11186 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
11187 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK)); | |
11188 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
11189 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
11190 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
11191 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_CACHE_HINT)); | |
6d19860f RD |
11192 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); |
11193 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
11194 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
11195 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
d8200036 | 11196 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_FOCUSED)); |
c7e7022c RD |
11197 | PyDict_SetItemString(d,"wxLC_VRULES", PyInt_FromLong((long) wxLC_VRULES)); |
11198 | PyDict_SetItemString(d,"wxLC_HRULES", PyInt_FromLong((long) wxLC_HRULES)); | |
11199 | PyDict_SetItemString(d,"wxLC_ICON", PyInt_FromLong((long) wxLC_ICON)); | |
11200 | PyDict_SetItemString(d,"wxLC_SMALL_ICON", PyInt_FromLong((long) wxLC_SMALL_ICON)); | |
11201 | PyDict_SetItemString(d,"wxLC_LIST", PyInt_FromLong((long) wxLC_LIST)); | |
11202 | PyDict_SetItemString(d,"wxLC_REPORT", PyInt_FromLong((long) wxLC_REPORT)); | |
11203 | PyDict_SetItemString(d,"wxLC_ALIGN_TOP", PyInt_FromLong((long) wxLC_ALIGN_TOP)); | |
11204 | PyDict_SetItemString(d,"wxLC_ALIGN_LEFT", PyInt_FromLong((long) wxLC_ALIGN_LEFT)); | |
11205 | PyDict_SetItemString(d,"wxLC_AUTOARRANGE", PyInt_FromLong((long) wxLC_AUTOARRANGE)); | |
11206 | PyDict_SetItemString(d,"wxLC_VIRTUAL", PyInt_FromLong((long) wxLC_VIRTUAL)); | |
11207 | PyDict_SetItemString(d,"wxLC_EDIT_LABELS", PyInt_FromLong((long) wxLC_EDIT_LABELS)); | |
11208 | PyDict_SetItemString(d,"wxLC_NO_HEADER", PyInt_FromLong((long) wxLC_NO_HEADER)); | |
11209 | PyDict_SetItemString(d,"wxLC_NO_SORT_HEADER", PyInt_FromLong((long) wxLC_NO_SORT_HEADER)); | |
11210 | PyDict_SetItemString(d,"wxLC_SINGLE_SEL", PyInt_FromLong((long) wxLC_SINGLE_SEL)); | |
11211 | PyDict_SetItemString(d,"wxLC_SORT_ASCENDING", PyInt_FromLong((long) wxLC_SORT_ASCENDING)); | |
11212 | PyDict_SetItemString(d,"wxLC_SORT_DESCENDING", PyInt_FromLong((long) wxLC_SORT_DESCENDING)); | |
11213 | PyDict_SetItemString(d,"wxLC_MASK_TYPE", PyInt_FromLong((long) wxLC_MASK_TYPE)); | |
11214 | PyDict_SetItemString(d,"wxLC_MASK_ALIGN", PyInt_FromLong((long) wxLC_MASK_ALIGN)); | |
11215 | PyDict_SetItemString(d,"wxLC_MASK_SORT", PyInt_FromLong((long) wxLC_MASK_SORT)); | |
6d19860f | 11216 | PyDict_SetItemString(d,"wxLC_USER_TEXT", PyInt_FromLong((long) wxLC_USER_TEXT)); |
c7e7022c | 11217 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); |
af309447 RD |
11218 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); |
11219 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
11220 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
c7e7022c | 11221 | PyDict_SetItemString(d,"wxLIST_SET_ITEM", PyInt_FromLong((long) wxLIST_SET_ITEM)); |
af309447 RD |
11222 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); |
11223 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
11224 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); | |
11225 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
11226 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
11227 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
11228 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
11229 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
11230 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
11231 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
11232 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
11233 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
11234 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
11235 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
11236 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
11237 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
11238 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
11239 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
11240 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
11241 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
11242 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
11243 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
11244 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
11245 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
11246 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
11247 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
af309447 RD |
11248 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); |
11249 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
11250 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
11251 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
11252 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
11253 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
11254 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
11255 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
11256 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
f6bcfd97 BP |
11257 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); |
11258 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
11259 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
11260 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
00b6c4e3 RD |
11261 | PyDict_SetItemString(d,"wxTR_NO_BUTTONS", PyInt_FromLong((long) wxTR_NO_BUTTONS)); |
11262 | PyDict_SetItemString(d,"wxTR_HAS_BUTTONS", PyInt_FromLong((long) wxTR_HAS_BUTTONS)); | |
11263 | PyDict_SetItemString(d,"wxTR_TWIST_BUTTONS", PyInt_FromLong((long) wxTR_TWIST_BUTTONS)); | |
11264 | PyDict_SetItemString(d,"wxTR_NO_LINES", PyInt_FromLong((long) wxTR_NO_LINES)); | |
11265 | PyDict_SetItemString(d,"wxTR_MAC_BUTTONS", PyInt_FromLong((long) wxTR_MAC_BUTTONS)); | |
b5a5d647 | 11266 | PyDict_SetItemString(d,"wxTR_AQUA_BUTTONS", PyInt_FromLong((long) wxTR_AQUA_BUTTONS)); |
00b6c4e3 RD |
11267 | PyDict_SetItemString(d,"wxTR_SINGLE", PyInt_FromLong((long) wxTR_SINGLE)); |
11268 | PyDict_SetItemString(d,"wxTR_MULTIPLE", PyInt_FromLong((long) wxTR_MULTIPLE)); | |
11269 | PyDict_SetItemString(d,"wxTR_EXTENDED", PyInt_FromLong((long) wxTR_EXTENDED)); | |
b5a5d647 | 11270 | PyDict_SetItemString(d,"wxTR_FULL_ROW_HIGHLIGHT", PyInt_FromLong((long) wxTR_FULL_ROW_HIGHLIGHT)); |
00b6c4e3 RD |
11271 | PyDict_SetItemString(d,"wxTR_EDIT_LABELS", PyInt_FromLong((long) wxTR_EDIT_LABELS)); |
11272 | PyDict_SetItemString(d,"wxTR_LINES_AT_ROOT", PyInt_FromLong((long) wxTR_LINES_AT_ROOT)); | |
11273 | PyDict_SetItemString(d,"wxTR_HIDE_ROOT", PyInt_FromLong((long) wxTR_HIDE_ROOT)); | |
11274 | PyDict_SetItemString(d,"wxTR_ROW_LINES", PyInt_FromLong((long) wxTR_ROW_LINES)); | |
11275 | PyDict_SetItemString(d,"wxTR_HAS_VARIABLE_ROW_HEIGHT", PyInt_FromLong((long) wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
11276 | PyDict_SetItemString(d,"wxTR_DEFAULT_STYLE", PyInt_FromLong((long) wxTR_DEFAULT_STYLE)); | |
694759cf RD |
11277 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); |
11278 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
11279 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
11280 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
11281 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
164b735b RD |
11282 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); |
11283 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
11284 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
11285 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
11286 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
11287 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
11288 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
11289 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
11290 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
11291 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
11292 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
11293 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
11294 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
11295 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
1b62f00d RD |
11296 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
11297 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
11298 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
11299 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
11300 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
11301 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO)); | |
11302 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO)); | |
11303 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
11304 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
11305 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
11306 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
11307 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
11308 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
11309 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN)); | |
11310 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
11311 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
11312 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
d1679124 | 11313 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG)); |
68320e40 RD |
11314 | PyDict_SetItemString(d,"wxDIRCTRL_DIR_ONLY", PyInt_FromLong((long) wxDIRCTRL_DIR_ONLY)); |
11315 | PyDict_SetItemString(d,"wxDIRCTRL_SELECT_FIRST", PyInt_FromLong((long) wxDIRCTRL_SELECT_FIRST)); | |
11316 | PyDict_SetItemString(d,"wxDIRCTRL_SHOW_FILTERS", PyInt_FromLong((long) wxDIRCTRL_SHOW_FILTERS)); | |
11317 | PyDict_SetItemString(d,"wxDIRCTRL_3D_INTERNAL", PyInt_FromLong((long) wxDIRCTRL_3D_INTERNAL)); | |
7cdaed0b | 11318 | PyDict_SetItemString(d,"wxDIRCTRL_EDIT_LABELS", PyInt_FromLong((long) wxDIRCTRL_EDIT_LABELS)); |
db0ff83e RD |
11319 | PyDict_SetItemString(d,"wxID_TREECTRL", PyInt_FromLong((long) wxID_TREECTRL)); |
11320 | PyDict_SetItemString(d,"wxID_FILTERLISTCTRL", PyInt_FromLong((long) wxID_FILTERLISTCTRL)); | |
9416aa89 | 11321 | |
a3fbed81 | 11322 | // Map renamed classes back to their common name for OOR |
9416aa89 RD |
11323 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); |
11324 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
a3fbed81 | 11325 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); |
1d99702e RD |
11326 | { |
11327 | int i; | |
11328 | for (i = 0; _swig_mapping[i].n1; i++) | |
11329 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11330 | } | |
8ab979d7 | 11331 | } |