]>
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 | |
7e50db3f RD |
22 | #include "Python.h" |
23 | ||
8ab979d7 RD |
24 | #include <string.h> |
25 | #include <stdlib.h> | |
26 | /* Definitions for Windows/Unix exporting */ | |
27 | #if defined(__WIN32__) | |
28 | # if defined(_MSC_VER) | |
1d99702e | 29 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
30 | # else |
31 | # if defined(__BORLANDC__) | |
c368d904 | 32 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 33 | # else |
c368d904 | 34 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
35 | # endif |
36 | # endif | |
37 | #else | |
c368d904 | 38 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
39 | #endif |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
8ab979d7 RD |
44 | extern void SWIG_MakePtr(char *, void *, char *); |
45 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
46 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 47 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
48 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
49 | extern PyObject *SWIG_newvarlink(void); | |
50 | #ifdef __cplusplus | |
51 | } | |
52 | #endif | |
8ab979d7 RD |
53 | #define SWIG_init initcontrols2c |
54 | ||
55 | #define SWIG_name "controls2c" | |
56 | ||
57 | #include "helpers.h" | |
2f90df85 RD |
58 | #ifdef __WXMSW__ |
59 | #include <windows.h> | |
60 | #endif | |
8ab979d7 RD |
61 | #include <wx/listctrl.h> |
62 | #include <wx/treectrl.h> | |
9416aa89 | 63 | #include <wx/imaglist.h> |
68320e40 | 64 | #include <wx/dirctrl.h> |
8ab979d7 | 65 | |
5a2a9da2 RD |
66 | #include "pytree.h" |
67 | ||
8ab979d7 RD |
68 | |
69 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
70 | PyObject* o2; | |
71 | PyObject* o3; | |
72 | ||
e0672e2f | 73 | if (!target) { |
8ab979d7 | 74 | target = o; |
e0672e2f | 75 | } else if (target == Py_None) { |
8ab979d7 RD |
76 | Py_DECREF(Py_None); |
77 | target = o; | |
e0672e2f | 78 | } else { |
8ab979d7 RD |
79 | if (!PyTuple_Check(target)) { |
80 | o2 = target; | |
81 | target = PyTuple_New(1); | |
82 | PyTuple_SetItem(target, 0, o2); | |
83 | } | |
e0672e2f RD |
84 | o3 = PyTuple_New(1); |
85 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
86 | |
87 | o2 = target; | |
e0672e2f RD |
88 | target = PySequence_Concat(o2, o3); |
89 | Py_DECREF(o2); | |
8ab979d7 RD |
90 | Py_DECREF(o3); |
91 | } | |
92 | return target; | |
93 | } | |
137b5242 RD |
94 | |
95 | // Put some wx default wxChar* values into wxStrings. | |
96 | const wxChar* wxListCtrlNameStr = _T("wxListCtrl"); | |
97 | DECLARE_DEF_STRING(ListCtrlNameStr); | |
98 | ||
3413be75 | 99 | const wxChar* wx_TreeCtrlNameStr = _T("wxTreeCtrl"); |
137b5242 RD |
100 | DECLARE_DEF_STRING(_TreeCtrlNameStr); |
101 | DECLARE_DEF_STRING(DirDialogDefaultFolderStr); | |
102 | ||
103 | static const wxString wxPyEmptyString(wxT("")); | |
0815db26 RD |
104 | |
105 | static const long longzero = 0; | |
09f3d4e6 | 106 | // C++ Version of a Python aware class |
c7e7022c RD |
107 | class wxPyListCtrl : public wxListCtrl { |
108 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
109 | public: | |
09f3d4e6 | 110 | wxPyListCtrl() : wxListCtrl() {} |
c7e7022c RD |
111 | wxPyListCtrl(wxWindow* parent, wxWindowID id, |
112 | const wxPoint& pos, | |
113 | const wxSize& size, | |
114 | long style, | |
115 | const wxValidator& validator, | |
137b5242 | 116 | const wxString& name) : |
c7e7022c RD |
117 | wxListCtrl(parent, id, pos, size, style, validator, name) {} |
118 | ||
09f3d4e6 RD |
119 | bool Create(wxWindow* parent, wxWindowID id, |
120 | const wxPoint& pos, | |
121 | const wxSize& size, | |
122 | long style, | |
123 | const wxValidator& validator, | |
137b5242 | 124 | const wxString& name) { |
09f3d4e6 RD |
125 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); |
126 | } | |
127 | ||
c7e7022c RD |
128 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); |
129 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
130 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
131 | ||
132 | PYPRIVATE; | |
133 | }; | |
134 | ||
135 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
136 | ||
137 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
138 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
139 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
6d19860f | 140 | // Python aware sorting function for wxPyListCtrl |
f6bcfd97 | 141 | int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { |
dcd38683 RD |
142 | int retval = 0; |
143 | PyObject* func = (PyObject*)funcPtr; | |
4268f798 | 144 | wxPyBeginBlockThreads(); |
dcd38683 RD |
145 | |
146 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
147 | PyObject* result = PyEval_CallObject(func, args); | |
148 | Py_DECREF(args); | |
149 | if (result) { | |
150 | retval = PyInt_AsLong(result); | |
151 | Py_DECREF(result); | |
152 | } | |
153 | ||
4268f798 | 154 | wxPyEndBlockThreads(); |
dcd38683 RD |
155 | return retval; |
156 | } | |
157 | ||
09f3d4e6 | 158 | // C++ version of Python aware wxTreeCtrl |
f6bcfd97 | 159 | class wxPyTreeCtrl : public wxTreeCtrl { |
3b36695d | 160 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); |
f6bcfd97 | 161 | public: |
09f3d4e6 | 162 | wxPyTreeCtrl() : wxTreeCtrl() {} |
f6bcfd97 BP |
163 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, |
164 | const wxPoint& pos, | |
165 | const wxSize& size, | |
166 | long style, | |
167 | const wxValidator& validator, | |
137b5242 | 168 | const wxString& name) : |
f6bcfd97 BP |
169 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} |
170 | ||
09f3d4e6 RD |
171 | bool Create(wxWindow *parent, wxWindowID id, |
172 | const wxPoint& pos, | |
173 | const wxSize& size, | |
174 | long style, | |
175 | const wxValidator& validator, | |
137b5242 | 176 | const wxString& name) { |
09f3d4e6 RD |
177 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); |
178 | } | |
179 | ||
180 | ||
f6bcfd97 BP |
181 | int OnCompareItems(const wxTreeItemId& item1, |
182 | const wxTreeItemId& item2) { | |
183 | int rval = 0; | |
19a97bd6 | 184 | bool found; |
4268f798 | 185 | wxPyBeginBlockThreads(); |
a66212dc | 186 | if ((found = m_myInst.findCallback("OnCompareItems"))) { |
7e50db3f RD |
187 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId")); |
188 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId")); | |
a66212dc RD |
189 | rval = m_myInst.callCallback(Py_BuildValue("(OO)",o1,o2)); |
190 | Py_DECREF(o1); | |
191 | Py_DECREF(o2); | |
192 | } | |
4268f798 | 193 | wxPyEndBlockThreads(); |
19a97bd6 | 194 | if (! found) |
f6bcfd97 | 195 | rval = wxTreeCtrl::OnCompareItems(item1, item2); |
f6bcfd97 BP |
196 | return rval; |
197 | } | |
198 | PYPRIVATE; | |
199 | }; | |
200 | ||
3b36695d RD |
201 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); |
202 | ||
1d99702e RD |
203 | #ifdef __cplusplus |
204 | extern "C" { | |
205 | #endif | |
c7e7022c | 206 | #define new_wxListItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxListItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
f6bcfd97 | 207 | static PyObject *_wrap_new_wxListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 | 208 | PyObject * _resultobj; |
f6bcfd97 | 209 | wxListItemAttr * _result; |
c7e7022c RD |
210 | wxColour * _arg0 = (wxColour *) &wxNullColour; |
211 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
212 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
213 | wxColour temp; | |
214 | PyObject * _obj0 = 0; | |
215 | wxColour temp0; | |
216 | PyObject * _obj1 = 0; | |
217 | PyObject * _argo2 = 0; | |
218 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
f6bcfd97 | 219 | char _ptemp[128]; |
af309447 RD |
220 | |
221 | self = self; | |
c7e7022c RD |
222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxListItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) |
223 | return NULL; | |
224 | if (_obj0) | |
225 | { | |
226 | _arg0 = &temp; | |
227 | if (! wxColour_helper(_obj0, &_arg0)) | |
228 | return NULL; | |
229 | } | |
230 | if (_obj1) | |
231 | { | |
232 | _arg1 = &temp0; | |
233 | if (! wxColour_helper(_obj1, &_arg1)) | |
234 | return NULL; | |
235 | } | |
236 | if (_argo2) { | |
7e50db3f | 237 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { |
c7e7022c | 238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxListItemAttr. Expected _wxFont_p."); |
af309447 | 239 | return NULL; |
c7e7022c RD |
240 | } |
241 | } | |
cf694132 | 242 | { |
4268f798 | 243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 244 | _result = (wxListItemAttr *)new_wxListItemAttr(*_arg0,*_arg1,*_arg2); |
cf694132 | 245 | |
4268f798 | 246 | wxPyEndAllowThreads(__tstate); |
493f1553 | 247 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
248 | } if (_result) { |
249 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
250 | _resultobj = Py_BuildValue("s",_ptemp); | |
251 | } else { | |
252 | Py_INCREF(Py_None); | |
253 | _resultobj = Py_None; | |
254 | } | |
af309447 RD |
255 | return _resultobj; |
256 | } | |
257 | ||
f6bcfd97 BP |
258 | #define wxListItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
259 | static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 260 | PyObject * _resultobj; |
f6bcfd97 BP |
261 | wxListItemAttr * _arg0; |
262 | wxColour * _arg1; | |
1d99702e | 263 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
264 | wxColour temp; |
265 | PyObject * _obj1 = 0; | |
266 | char *_kwnames[] = { "self","colText", NULL }; | |
8ab979d7 RD |
267 | |
268 | self = self; | |
f6bcfd97 | 269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 270 | return NULL; |
1d99702e RD |
271 | if (_argo0) { |
272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetTextColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
275 | return NULL; |
276 | } | |
277 | } | |
f6bcfd97 BP |
278 | { |
279 | _arg1 = &temp; | |
280 | if (! wxColour_helper(_obj1, &_arg1)) | |
281 | return NULL; | |
282 | } | |
cf694132 | 283 | { |
4268f798 | 284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 285 | wxListItemAttr_SetTextColour(_arg0,*_arg1); |
cf694132 | 286 | |
4268f798 | 287 | wxPyEndAllowThreads(__tstate); |
493f1553 | 288 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
289 | } Py_INCREF(Py_None); |
290 | _resultobj = Py_None; | |
8ab979d7 RD |
291 | return _resultobj; |
292 | } | |
293 | ||
f6bcfd97 BP |
294 | #define wxListItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
295 | static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 296 | PyObject * _resultobj; |
f6bcfd97 BP |
297 | wxListItemAttr * _arg0; |
298 | wxColour * _arg1; | |
1d99702e | 299 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
300 | wxColour temp; |
301 | PyObject * _obj1 = 0; | |
302 | char *_kwnames[] = { "self","colBack", NULL }; | |
af309447 RD |
303 | |
304 | self = self; | |
f6bcfd97 | 305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
af309447 | 306 | return NULL; |
1d99702e RD |
307 | if (_argo0) { |
308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetBackgroundColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
311 | return NULL; |
312 | } | |
313 | } | |
f6bcfd97 BP |
314 | { |
315 | _arg1 = &temp; | |
316 | if (! wxColour_helper(_obj1, &_arg1)) | |
317 | return NULL; | |
318 | } | |
cf694132 | 319 | { |
4268f798 | 320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 321 | wxListItemAttr_SetBackgroundColour(_arg0,*_arg1); |
cf694132 | 322 | |
4268f798 | 323 | wxPyEndAllowThreads(__tstate); |
493f1553 | 324 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
325 | } Py_INCREF(Py_None); |
326 | _resultobj = Py_None; | |
af309447 RD |
327 | return _resultobj; |
328 | } | |
329 | ||
f6bcfd97 BP |
330 | #define wxListItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
331 | static PyObject *_wrap_wxListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 332 | PyObject * _resultobj; |
f6bcfd97 BP |
333 | wxListItemAttr * _arg0; |
334 | wxFont * _arg1; | |
1d99702e | 335 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
336 | PyObject * _argo1 = 0; |
337 | char *_kwnames[] = { "self","font", NULL }; | |
8ab979d7 RD |
338 | |
339 | self = self; | |
f6bcfd97 | 340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 341 | return NULL; |
1d99702e RD |
342 | if (_argo0) { |
343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetFont. Expected _wxListItemAttr_p."); | |
346 | return NULL; | |
347 | } | |
348 | } | |
349 | if (_argo1) { | |
7e50db3f | 350 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { |
f6bcfd97 | 351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetFont. Expected _wxFont_p."); |
8ab979d7 RD |
352 | return NULL; |
353 | } | |
354 | } | |
cf694132 | 355 | { |
4268f798 | 356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 357 | wxListItemAttr_SetFont(_arg0,*_arg1); |
cf694132 | 358 | |
4268f798 | 359 | wxPyEndAllowThreads(__tstate); |
493f1553 | 360 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
361 | } Py_INCREF(Py_None); |
362 | _resultobj = Py_None; | |
8ab979d7 RD |
363 | return _resultobj; |
364 | } | |
365 | ||
f6bcfd97 BP |
366 | #define wxListItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) |
367 | static PyObject *_wrap_wxListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 368 | PyObject * _resultobj; |
f6bcfd97 BP |
369 | bool _result; |
370 | wxListItemAttr * _arg0; | |
1d99702e | 371 | PyObject * _argo0 = 0; |
f6bcfd97 | 372 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
373 | |
374 | self = self; | |
f6bcfd97 | 375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasTextColour",_kwnames,&_argo0)) |
af309447 | 376 | return NULL; |
1d99702e RD |
377 | if (_argo0) { |
378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasTextColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
381 | return NULL; |
382 | } | |
383 | } | |
cf694132 | 384 | { |
4268f798 | 385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 386 | _result = (bool )wxListItemAttr_HasTextColour(_arg0); |
cf694132 | 387 | |
4268f798 | 388 | wxPyEndAllowThreads(__tstate); |
493f1553 | 389 | if (PyErr_Occurred()) return NULL; |
cf694132 | 390 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
391 | return _resultobj; |
392 | } | |
393 | ||
f6bcfd97 BP |
394 | #define wxListItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) |
395 | static PyObject *_wrap_wxListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 396 | PyObject * _resultobj; |
f6bcfd97 BP |
397 | bool _result; |
398 | wxListItemAttr * _arg0; | |
1d99702e | 399 | PyObject * _argo0 = 0; |
efc5f224 | 400 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
401 | |
402 | self = self; | |
f6bcfd97 | 403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 404 | return NULL; |
1d99702e RD |
405 | if (_argo0) { |
406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasBackgroundColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
409 | return NULL; |
410 | } | |
411 | } | |
cf694132 | 412 | { |
4268f798 | 413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 414 | _result = (bool )wxListItemAttr_HasBackgroundColour(_arg0); |
cf694132 | 415 | |
4268f798 | 416 | wxPyEndAllowThreads(__tstate); |
493f1553 | 417 | if (PyErr_Occurred()) return NULL; |
cf694132 | 418 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
419 | return _resultobj; |
420 | } | |
421 | ||
f6bcfd97 BP |
422 | #define wxListItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) |
423 | static PyObject *_wrap_wxListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 424 | PyObject * _resultobj; |
f6bcfd97 BP |
425 | bool _result; |
426 | wxListItemAttr * _arg0; | |
1d99702e | 427 | PyObject * _argo0 = 0; |
f6bcfd97 | 428 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
429 | |
430 | self = self; | |
f6bcfd97 | 431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasFont",_kwnames,&_argo0)) |
af309447 | 432 | return NULL; |
1d99702e RD |
433 | if (_argo0) { |
434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasFont. Expected _wxListItemAttr_p."); | |
af309447 RD |
437 | return NULL; |
438 | } | |
439 | } | |
cf694132 | 440 | { |
4268f798 | 441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 442 | _result = (bool )wxListItemAttr_HasFont(_arg0); |
cf694132 | 443 | |
4268f798 | 444 | wxPyEndAllowThreads(__tstate); |
493f1553 | 445 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 446 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
447 | return _resultobj; |
448 | } | |
449 | ||
f6bcfd97 BP |
450 | #define wxListItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
451 | static PyObject *_wrap_wxListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 452 | PyObject * _resultobj; |
f6bcfd97 BP |
453 | wxColour * _result; |
454 | wxListItemAttr * _arg0; | |
1d99702e | 455 | PyObject * _argo0 = 0; |
efc5f224 | 456 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 457 | char _ptemp[128]; |
8ab979d7 RD |
458 | |
459 | self = self; | |
f6bcfd97 | 460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 461 | return NULL; |
1d99702e RD |
462 | if (_argo0) { |
463 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
464 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetTextColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
466 | return NULL; |
467 | } | |
468 | } | |
cf694132 | 469 | { |
4268f798 | 470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 471 | _result = new wxColour (wxListItemAttr_GetTextColour(_arg0)); |
cf694132 | 472 | |
4268f798 | 473 | wxPyEndAllowThreads(__tstate); |
493f1553 | 474 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
475 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
476 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
477 | return _resultobj; |
478 | } | |
479 | ||
f6bcfd97 BP |
480 | #define wxListItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) |
481 | static PyObject *_wrap_wxListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 482 | PyObject * _resultobj; |
f6bcfd97 BP |
483 | wxColour * _result; |
484 | wxListItemAttr * _arg0; | |
1d99702e | 485 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
486 | char *_kwnames[] = { "self", NULL }; |
487 | char _ptemp[128]; | |
af309447 RD |
488 | |
489 | self = self; | |
f6bcfd97 | 490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetBackgroundColour",_kwnames,&_argo0)) |
af309447 | 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_GetBackgroundColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
496 | return NULL; |
497 | } | |
498 | } | |
cf694132 | 499 | { |
4268f798 | 500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 501 | _result = new wxColour (wxListItemAttr_GetBackgroundColour(_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); | |
af309447 RD |
507 | return _resultobj; |
508 | } | |
509 | ||
f6bcfd97 BP |
510 | #define wxListItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) |
511 | static PyObject *_wrap_wxListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 512 | PyObject * _resultobj; |
f6bcfd97 BP |
513 | wxFont * _result; |
514 | wxListItemAttr * _arg0; | |
1d99702e | 515 | PyObject * _argo0 = 0; |
efc5f224 | 516 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 517 | char _ptemp[128]; |
8ab979d7 RD |
518 | |
519 | self = self; | |
f6bcfd97 | 520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 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_GetFont. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
526 | return NULL; |
527 | } | |
528 | } | |
cf694132 | 529 | { |
4268f798 | 530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 531 | _result = new wxFont (wxListItemAttr_GetFont(_arg0)); |
cf694132 | 532 | |
4268f798 | 533 | wxPyEndAllowThreads(__tstate); |
493f1553 | 534 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
535 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
536 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
537 | return _resultobj; |
538 | } | |
539 | ||
9416aa89 RD |
540 | static void *SwigwxListItemTowxObject(void *ptr) { |
541 | wxListItem *src; | |
542 | wxObject *dest; | |
543 | src = (wxListItem *) ptr; | |
544 | dest = (wxObject *) src; | |
545 | return (void *) dest; | |
546 | } | |
547 | ||
f6bcfd97 BP |
548 | #define new_wxListItem() (new wxListItem()) |
549 | static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 550 | PyObject * _resultobj; |
f6bcfd97 BP |
551 | wxListItem * _result; |
552 | char *_kwnames[] = { NULL }; | |
553 | char _ptemp[128]; | |
af309447 RD |
554 | |
555 | self = self; | |
f6bcfd97 | 556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames)) |
af309447 | 557 | return NULL; |
af309447 | 558 | { |
4268f798 | 559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 560 | _result = (wxListItem *)new_wxListItem(); |
cf694132 | 561 | |
4268f798 | 562 | wxPyEndAllowThreads(__tstate); |
493f1553 | 563 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
564 | } if (_result) { |
565 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
566 | _resultobj = Py_BuildValue("s",_ptemp); | |
567 | } else { | |
568 | Py_INCREF(Py_None); | |
569 | _resultobj = Py_None; | |
570 | } | |
af309447 RD |
571 | return _resultobj; |
572 | } | |
573 | ||
f6bcfd97 BP |
574 | #define delete_wxListItem(_swigobj) (delete _swigobj) |
575 | static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 576 | PyObject * _resultobj; |
8ab979d7 | 577 | wxListItem * _arg0; |
1d99702e | 578 | PyObject * _argo0 = 0; |
efc5f224 | 579 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
580 | |
581 | self = self; | |
f6bcfd97 | 582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0)) |
8ab979d7 | 583 | return NULL; |
1d99702e RD |
584 | if (_argo0) { |
585 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p."); |
8ab979d7 RD |
588 | return NULL; |
589 | } | |
590 | } | |
8ab979d7 | 591 | { |
4268f798 | 592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 593 | delete_wxListItem(_arg0); |
cf694132 | 594 | |
4268f798 | 595 | wxPyEndAllowThreads(__tstate); |
493f1553 | 596 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
597 | } Py_INCREF(Py_None); |
598 | _resultobj = Py_None; | |
8ab979d7 RD |
599 | return _resultobj; |
600 | } | |
601 | ||
f6bcfd97 BP |
602 | #define wxListItem_Clear(_swigobj) (_swigobj->Clear()) |
603 | static PyObject *_wrap_wxListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 604 | PyObject * _resultobj; |
af309447 | 605 | wxListItem * _arg0; |
1d99702e | 606 | PyObject * _argo0 = 0; |
f6bcfd97 | 607 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
608 | |
609 | self = self; | |
f6bcfd97 | 610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_Clear",_kwnames,&_argo0)) |
af309447 | 611 | return NULL; |
1d99702e RD |
612 | if (_argo0) { |
613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_Clear. Expected _wxListItem_p."); |
af309447 RD |
616 | return NULL; |
617 | } | |
618 | } | |
cf694132 | 619 | { |
4268f798 | 620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 621 | wxListItem_Clear(_arg0); |
cf694132 | 622 | |
4268f798 | 623 | wxPyEndAllowThreads(__tstate); |
493f1553 | 624 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
625 | } Py_INCREF(Py_None); |
626 | _resultobj = Py_None; | |
af309447 RD |
627 | return _resultobj; |
628 | } | |
629 | ||
f6bcfd97 BP |
630 | #define wxListItem_ClearAttributes(_swigobj) (_swigobj->ClearAttributes()) |
631 | static PyObject *_wrap_wxListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 632 | PyObject * _resultobj; |
8ab979d7 | 633 | wxListItem * _arg0; |
1d99702e | 634 | PyObject * _argo0 = 0; |
efc5f224 | 635 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
636 | |
637 | self = self; | |
f6bcfd97 | 638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_ClearAttributes",_kwnames,&_argo0)) |
8ab979d7 | 639 | return NULL; |
1d99702e RD |
640 | if (_argo0) { |
641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_ClearAttributes. Expected _wxListItem_p."); |
8ab979d7 RD |
644 | return NULL; |
645 | } | |
646 | } | |
cf694132 | 647 | { |
4268f798 | 648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 649 | wxListItem_ClearAttributes(_arg0); |
cf694132 | 650 | |
4268f798 | 651 | wxPyEndAllowThreads(__tstate); |
493f1553 | 652 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
653 | } Py_INCREF(Py_None); |
654 | _resultobj = Py_None; | |
655 | return _resultobj; | |
656 | } | |
657 | ||
658 | #define wxListItem_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
659 | static PyObject *_wrap_wxListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
660 | PyObject * _resultobj; | |
661 | wxListItem * _arg0; | |
662 | long _arg1; | |
663 | PyObject * _argo0 = 0; | |
664 | char *_kwnames[] = { "self","mask", NULL }; | |
665 | ||
666 | self = self; | |
667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetMask",_kwnames,&_argo0,&_arg1)) | |
668 | return NULL; | |
669 | if (_argo0) { | |
670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetMask. Expected _wxListItem_p."); | |
673 | return NULL; | |
674 | } | |
675 | } | |
676 | { | |
4268f798 | 677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 678 | wxListItem_SetMask(_arg0,_arg1); |
f6bcfd97 | 679 | |
4268f798 | 680 | wxPyEndAllowThreads(__tstate); |
493f1553 | 681 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
682 | } Py_INCREF(Py_None); |
683 | _resultobj = Py_None; | |
684 | return _resultobj; | |
685 | } | |
686 | ||
687 | #define wxListItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
688 | static PyObject *_wrap_wxListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
689 | PyObject * _resultobj; | |
690 | wxListItem * _arg0; | |
691 | long _arg1; | |
692 | PyObject * _argo0 = 0; | |
693 | char *_kwnames[] = { "self","id", NULL }; | |
694 | ||
695 | self = self; | |
696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetId",_kwnames,&_argo0,&_arg1)) | |
697 | return NULL; | |
698 | if (_argo0) { | |
699 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
700 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetId. Expected _wxListItem_p."); | |
702 | return NULL; | |
703 | } | |
704 | } | |
705 | { | |
4268f798 | 706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 707 | wxListItem_SetId(_arg0,_arg1); |
f6bcfd97 | 708 | |
4268f798 | 709 | wxPyEndAllowThreads(__tstate); |
493f1553 | 710 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
711 | } Py_INCREF(Py_None); |
712 | _resultobj = Py_None; | |
713 | return _resultobj; | |
714 | } | |
715 | ||
716 | #define wxListItem_SetColumn(_swigobj,_swigarg0) (_swigobj->SetColumn(_swigarg0)) | |
717 | static PyObject *_wrap_wxListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
718 | PyObject * _resultobj; | |
719 | wxListItem * _arg0; | |
720 | int _arg1; | |
721 | PyObject * _argo0 = 0; | |
722 | char *_kwnames[] = { "self","col", NULL }; | |
723 | ||
724 | self = self; | |
725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetColumn",_kwnames,&_argo0,&_arg1)) | |
726 | return NULL; | |
727 | if (_argo0) { | |
728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetColumn. Expected _wxListItem_p."); | |
731 | return NULL; | |
732 | } | |
733 | } | |
734 | { | |
4268f798 | 735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 736 | wxListItem_SetColumn(_arg0,_arg1); |
f6bcfd97 | 737 | |
4268f798 | 738 | wxPyEndAllowThreads(__tstate); |
493f1553 | 739 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
740 | } Py_INCREF(Py_None); |
741 | _resultobj = Py_None; | |
742 | return _resultobj; | |
743 | } | |
744 | ||
745 | #define wxListItem_SetState(_swigobj,_swigarg0) (_swigobj->SetState(_swigarg0)) | |
746 | static PyObject *_wrap_wxListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
747 | PyObject * _resultobj; | |
748 | wxListItem * _arg0; | |
749 | long _arg1; | |
750 | PyObject * _argo0 = 0; | |
751 | char *_kwnames[] = { "self","state", NULL }; | |
752 | ||
753 | self = self; | |
754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetState",_kwnames,&_argo0,&_arg1)) | |
755 | return NULL; | |
756 | if (_argo0) { | |
757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetState. Expected _wxListItem_p."); | |
760 | return NULL; | |
761 | } | |
762 | } | |
763 | { | |
4268f798 | 764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 765 | wxListItem_SetState(_arg0,_arg1); |
f6bcfd97 | 766 | |
4268f798 | 767 | wxPyEndAllowThreads(__tstate); |
493f1553 | 768 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
769 | } Py_INCREF(Py_None); |
770 | _resultobj = Py_None; | |
771 | return _resultobj; | |
772 | } | |
773 | ||
774 | #define wxListItem_SetStateMask(_swigobj,_swigarg0) (_swigobj->SetStateMask(_swigarg0)) | |
775 | static PyObject *_wrap_wxListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
776 | PyObject * _resultobj; | |
777 | wxListItem * _arg0; | |
778 | long _arg1; | |
779 | PyObject * _argo0 = 0; | |
780 | char *_kwnames[] = { "self","stateMask", NULL }; | |
781 | ||
782 | self = self; | |
783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetStateMask",_kwnames,&_argo0,&_arg1)) | |
784 | return NULL; | |
785 | if (_argo0) { | |
786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetStateMask. Expected _wxListItem_p."); | |
789 | return NULL; | |
790 | } | |
791 | } | |
792 | { | |
4268f798 | 793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 794 | wxListItem_SetStateMask(_arg0,_arg1); |
f6bcfd97 | 795 | |
4268f798 | 796 | wxPyEndAllowThreads(__tstate); |
493f1553 | 797 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
798 | } Py_INCREF(Py_None); |
799 | _resultobj = Py_None; | |
800 | return _resultobj; | |
801 | } | |
802 | ||
803 | #define wxListItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
804 | static PyObject *_wrap_wxListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
805 | PyObject * _resultobj; | |
806 | wxListItem * _arg0; | |
807 | wxString * _arg1; | |
808 | PyObject * _argo0 = 0; | |
809 | PyObject * _obj1 = 0; | |
810 | char *_kwnames[] = { "self","text", NULL }; | |
811 | ||
812 | self = self; | |
813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetText",_kwnames,&_argo0,&_obj1)) | |
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_SetText. Expected _wxListItem_p."); | |
819 | return NULL; | |
820 | } | |
821 | } | |
822 | { | |
c8bc7bb8 RD |
823 | _arg1 = wxString_in_helper(_obj1); |
824 | if (_arg1 == NULL) | |
f6bcfd97 | 825 | return NULL; |
f6bcfd97 BP |
826 | } |
827 | { | |
4268f798 | 828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 829 | wxListItem_SetText(_arg0,*_arg1); |
f6bcfd97 | 830 | |
4268f798 | 831 | wxPyEndAllowThreads(__tstate); |
493f1553 | 832 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
833 | } Py_INCREF(Py_None); |
834 | _resultobj = Py_None; | |
835 | { | |
836 | if (_obj1) | |
837 | delete _arg1; | |
838 | } | |
839 | return _resultobj; | |
840 | } | |
841 | ||
842 | #define wxListItem_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0)) | |
843 | static PyObject *_wrap_wxListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
844 | PyObject * _resultobj; | |
845 | wxListItem * _arg0; | |
846 | int _arg1; | |
847 | PyObject * _argo0 = 0; | |
848 | char *_kwnames[] = { "self","image", NULL }; | |
849 | ||
850 | self = self; | |
851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetImage",_kwnames,&_argo0,&_arg1)) | |
852 | return NULL; | |
853 | if (_argo0) { | |
854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetImage. Expected _wxListItem_p."); | |
857 | return NULL; | |
858 | } | |
859 | } | |
860 | { | |
4268f798 | 861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 862 | wxListItem_SetImage(_arg0,_arg1); |
f6bcfd97 | 863 | |
4268f798 | 864 | wxPyEndAllowThreads(__tstate); |
493f1553 | 865 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
866 | } Py_INCREF(Py_None); |
867 | _resultobj = Py_None; | |
868 | return _resultobj; | |
869 | } | |
870 | ||
871 | #define wxListItem_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
872 | static PyObject *_wrap_wxListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
873 | PyObject * _resultobj; | |
874 | wxListItem * _arg0; | |
875 | long _arg1; | |
876 | PyObject * _argo0 = 0; | |
877 | char *_kwnames[] = { "self","data", NULL }; | |
878 | ||
879 | self = self; | |
880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetData",_kwnames,&_argo0,&_arg1)) | |
881 | return NULL; | |
882 | if (_argo0) { | |
883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetData. Expected _wxListItem_p."); | |
886 | return NULL; | |
887 | } | |
888 | } | |
889 | { | |
4268f798 | 890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 891 | wxListItem_SetData(_arg0,_arg1); |
f6bcfd97 | 892 | |
4268f798 | 893 | wxPyEndAllowThreads(__tstate); |
493f1553 | 894 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
895 | } Py_INCREF(Py_None); |
896 | _resultobj = Py_None; | |
897 | return _resultobj; | |
898 | } | |
899 | ||
900 | #define wxListItem_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
901 | static PyObject *_wrap_wxListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
902 | PyObject * _resultobj; | |
903 | wxListItem * _arg0; | |
904 | int _arg1; | |
905 | PyObject * _argo0 = 0; | |
906 | char *_kwnames[] = { "self","width", NULL }; | |
907 | ||
908 | self = self; | |
909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetWidth",_kwnames,&_argo0,&_arg1)) | |
910 | return NULL; | |
911 | if (_argo0) { | |
912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetWidth. Expected _wxListItem_p."); | |
915 | return NULL; | |
916 | } | |
917 | } | |
918 | { | |
4268f798 | 919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 920 | wxListItem_SetWidth(_arg0,_arg1); |
f6bcfd97 | 921 | |
4268f798 | 922 | wxPyEndAllowThreads(__tstate); |
493f1553 | 923 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
924 | } Py_INCREF(Py_None); |
925 | _resultobj = Py_None; | |
926 | return _resultobj; | |
927 | } | |
928 | ||
929 | #define wxListItem_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0)) | |
930 | static PyObject *_wrap_wxListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
931 | PyObject * _resultobj; | |
932 | wxListItem * _arg0; | |
933 | wxListColumnFormat _arg1; | |
934 | PyObject * _argo0 = 0; | |
935 | char *_kwnames[] = { "self","align", NULL }; | |
936 | ||
937 | self = self; | |
938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetAlign",_kwnames,&_argo0,&_arg1)) | |
939 | return NULL; | |
940 | if (_argo0) { | |
941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetAlign. Expected _wxListItem_p."); | |
944 | return NULL; | |
945 | } | |
946 | } | |
947 | { | |
4268f798 | 948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 949 | wxListItem_SetAlign(_arg0,_arg1); |
f6bcfd97 | 950 | |
4268f798 | 951 | wxPyEndAllowThreads(__tstate); |
493f1553 | 952 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
953 | } Py_INCREF(Py_None); |
954 | _resultobj = Py_None; | |
955 | return _resultobj; | |
956 | } | |
957 | ||
958 | #define wxListItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
959 | static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
960 | PyObject * _resultobj; | |
961 | wxListItem * _arg0; | |
962 | wxColour * _arg1; | |
963 | PyObject * _argo0 = 0; | |
964 | wxColour temp; | |
965 | PyObject * _obj1 = 0; | |
966 | char *_kwnames[] = { "self","colText", NULL }; | |
967 | ||
968 | self = self; | |
969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
970 | return NULL; | |
971 | if (_argo0) { | |
972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetTextColour. Expected _wxListItem_p."); | |
975 | return NULL; | |
976 | } | |
977 | } | |
978 | { | |
979 | _arg1 = &temp; | |
980 | if (! wxColour_helper(_obj1, &_arg1)) | |
981 | return NULL; | |
982 | } | |
983 | { | |
4268f798 | 984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 985 | wxListItem_SetTextColour(_arg0,*_arg1); |
f6bcfd97 | 986 | |
4268f798 | 987 | wxPyEndAllowThreads(__tstate); |
493f1553 | 988 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
989 | } Py_INCREF(Py_None); |
990 | _resultobj = Py_None; | |
991 | return _resultobj; | |
992 | } | |
993 | ||
994 | #define wxListItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
995 | static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
996 | PyObject * _resultobj; | |
997 | wxListItem * _arg0; | |
998 | wxColour * _arg1; | |
999 | PyObject * _argo0 = 0; | |
1000 | wxColour temp; | |
1001 | PyObject * _obj1 = 0; | |
1002 | char *_kwnames[] = { "self","colBack", NULL }; | |
1003 | ||
1004 | self = self; | |
1005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
1006 | return NULL; | |
1007 | if (_argo0) { | |
1008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetBackgroundColour. Expected _wxListItem_p."); | |
1011 | return NULL; | |
1012 | } | |
1013 | } | |
1014 | { | |
1015 | _arg1 = &temp; | |
1016 | if (! wxColour_helper(_obj1, &_arg1)) | |
1017 | return NULL; | |
1018 | } | |
1019 | { | |
4268f798 | 1020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1021 | wxListItem_SetBackgroundColour(_arg0,*_arg1); |
f6bcfd97 | 1022 | |
4268f798 | 1023 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1024 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1025 | } Py_INCREF(Py_None); |
1026 | _resultobj = Py_None; | |
1027 | return _resultobj; | |
1028 | } | |
1029 | ||
1030 | #define wxListItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1031 | static PyObject *_wrap_wxListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1032 | PyObject * _resultobj; | |
1033 | wxListItem * _arg0; | |
1034 | wxFont * _arg1; | |
1035 | PyObject * _argo0 = 0; | |
1036 | PyObject * _argo1 = 0; | |
1037 | char *_kwnames[] = { "self","font", NULL }; | |
1038 | ||
1039 | self = self; | |
1040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
1041 | return NULL; | |
1042 | if (_argo0) { | |
1043 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1044 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetFont. Expected _wxListItem_p."); | |
1046 | return NULL; | |
1047 | } | |
1048 | } | |
1049 | if (_argo1) { | |
7e50db3f | 1050 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { |
f6bcfd97 BP |
1051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetFont. Expected _wxFont_p."); |
1052 | return NULL; | |
1053 | } | |
1054 | } | |
1055 | { | |
4268f798 | 1056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1057 | wxListItem_SetFont(_arg0,*_arg1); |
f6bcfd97 | 1058 | |
4268f798 | 1059 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1060 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1061 | } Py_INCREF(Py_None); |
1062 | _resultobj = Py_None; | |
1063 | return _resultobj; | |
1064 | } | |
1065 | ||
1066 | #define wxListItem_GetMask(_swigobj) (_swigobj->GetMask()) | |
1067 | static PyObject *_wrap_wxListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1068 | PyObject * _resultobj; | |
1069 | long _result; | |
1070 | wxListItem * _arg0; | |
1071 | PyObject * _argo0 = 0; | |
1072 | char *_kwnames[] = { "self", NULL }; | |
1073 | ||
1074 | self = self; | |
1075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetMask",_kwnames,&_argo0)) | |
1076 | return NULL; | |
1077 | if (_argo0) { | |
1078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetMask. Expected _wxListItem_p."); | |
1081 | return NULL; | |
1082 | } | |
1083 | } | |
1084 | { | |
4268f798 | 1085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1086 | _result = (long )wxListItem_GetMask(_arg0); |
f6bcfd97 | 1087 | |
4268f798 | 1088 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1089 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1090 | } _resultobj = Py_BuildValue("l",_result); |
1091 | return _resultobj; | |
1092 | } | |
1093 | ||
1094 | #define wxListItem_GetId(_swigobj) (_swigobj->GetId()) | |
1095 | static PyObject *_wrap_wxListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1096 | PyObject * _resultobj; | |
1097 | long _result; | |
1098 | wxListItem * _arg0; | |
1099 | PyObject * _argo0 = 0; | |
1100 | char *_kwnames[] = { "self", NULL }; | |
1101 | ||
1102 | self = self; | |
1103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetId",_kwnames,&_argo0)) | |
1104 | return NULL; | |
1105 | if (_argo0) { | |
1106 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1107 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetId. Expected _wxListItem_p."); | |
1109 | return NULL; | |
1110 | } | |
1111 | } | |
1112 | { | |
4268f798 | 1113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1114 | _result = (long )wxListItem_GetId(_arg0); |
f6bcfd97 | 1115 | |
4268f798 | 1116 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1117 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1118 | } _resultobj = Py_BuildValue("l",_result); |
1119 | return _resultobj; | |
1120 | } | |
1121 | ||
1122 | #define wxListItem_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
1123 | static PyObject *_wrap_wxListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1124 | PyObject * _resultobj; | |
1125 | int _result; | |
1126 | wxListItem * _arg0; | |
1127 | PyObject * _argo0 = 0; | |
1128 | char *_kwnames[] = { "self", NULL }; | |
1129 | ||
1130 | self = self; | |
1131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetColumn",_kwnames,&_argo0)) | |
1132 | return NULL; | |
1133 | if (_argo0) { | |
1134 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1135 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetColumn. Expected _wxListItem_p."); | |
1137 | return NULL; | |
1138 | } | |
1139 | } | |
1140 | { | |
4268f798 | 1141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1142 | _result = (int )wxListItem_GetColumn(_arg0); |
f6bcfd97 | 1143 | |
4268f798 | 1144 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1145 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1146 | } _resultobj = Py_BuildValue("i",_result); |
1147 | return _resultobj; | |
1148 | } | |
1149 | ||
1150 | #define wxListItem_GetState(_swigobj) (_swigobj->GetState()) | |
1151 | static PyObject *_wrap_wxListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1152 | PyObject * _resultobj; | |
1153 | long _result; | |
1154 | wxListItem * _arg0; | |
1155 | PyObject * _argo0 = 0; | |
1156 | char *_kwnames[] = { "self", NULL }; | |
1157 | ||
1158 | self = self; | |
1159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetState",_kwnames,&_argo0)) | |
1160 | return NULL; | |
1161 | if (_argo0) { | |
1162 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1163 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1164 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetState. Expected _wxListItem_p."); | |
1165 | return NULL; | |
1166 | } | |
1167 | } | |
1168 | { | |
4268f798 | 1169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1170 | _result = (long )wxListItem_GetState(_arg0); |
f6bcfd97 | 1171 | |
4268f798 | 1172 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1173 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1174 | } _resultobj = Py_BuildValue("l",_result); |
1175 | return _resultobj; | |
1176 | } | |
1177 | ||
1178 | #define wxListItem_GetText(_swigobj) (_swigobj->GetText()) | |
1179 | static PyObject *_wrap_wxListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1180 | PyObject * _resultobj; | |
1181 | wxString * _result; | |
1182 | wxListItem * _arg0; | |
1183 | PyObject * _argo0 = 0; | |
1184 | char *_kwnames[] = { "self", NULL }; | |
1185 | ||
1186 | self = self; | |
1187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetText",_kwnames,&_argo0)) | |
1188 | return NULL; | |
1189 | if (_argo0) { | |
1190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1191 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetText. Expected _wxListItem_p."); | |
1193 | return NULL; | |
1194 | } | |
1195 | } | |
1196 | { | |
4268f798 | 1197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1198 | const wxString & _result_ref = wxListItem_GetText(_arg0); |
f6bcfd97 BP |
1199 | _result = (wxString *) &_result_ref; |
1200 | ||
4268f798 | 1201 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1202 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1203 | }{ |
c8bc7bb8 | 1204 | #if wxUSE_UNICODE |
7e50db3f | 1205 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1206 | #else |
f6bcfd97 | 1207 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1208 | #endif |
f6bcfd97 BP |
1209 | } |
1210 | return _resultobj; | |
1211 | } | |
1212 | ||
1213 | #define wxListItem_GetImage(_swigobj) (_swigobj->GetImage()) | |
1214 | static PyObject *_wrap_wxListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1215 | PyObject * _resultobj; | |
1216 | int _result; | |
1217 | wxListItem * _arg0; | |
1218 | PyObject * _argo0 = 0; | |
1219 | char *_kwnames[] = { "self", NULL }; | |
1220 | ||
1221 | self = self; | |
1222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetImage",_kwnames,&_argo0)) | |
1223 | return NULL; | |
1224 | if (_argo0) { | |
1225 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1226 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetImage. Expected _wxListItem_p."); | |
1228 | return NULL; | |
1229 | } | |
1230 | } | |
1231 | { | |
4268f798 | 1232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1233 | _result = (int )wxListItem_GetImage(_arg0); |
f6bcfd97 | 1234 | |
4268f798 | 1235 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1236 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1237 | } _resultobj = Py_BuildValue("i",_result); |
1238 | return _resultobj; | |
1239 | } | |
1240 | ||
1241 | #define wxListItem_GetData(_swigobj) (_swigobj->GetData()) | |
1242 | static PyObject *_wrap_wxListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1243 | PyObject * _resultobj; | |
1244 | long _result; | |
1245 | wxListItem * _arg0; | |
1246 | PyObject * _argo0 = 0; | |
1247 | char *_kwnames[] = { "self", NULL }; | |
1248 | ||
1249 | self = self; | |
1250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetData",_kwnames,&_argo0)) | |
1251 | return NULL; | |
1252 | if (_argo0) { | |
1253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetData. Expected _wxListItem_p."); | |
1256 | return NULL; | |
1257 | } | |
1258 | } | |
1259 | { | |
4268f798 | 1260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1261 | _result = (long )wxListItem_GetData(_arg0); |
f6bcfd97 | 1262 | |
4268f798 | 1263 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1264 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1265 | } _resultobj = Py_BuildValue("l",_result); |
1266 | return _resultobj; | |
1267 | } | |
1268 | ||
1269 | #define wxListItem_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1270 | static PyObject *_wrap_wxListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1271 | PyObject * _resultobj; | |
1272 | int _result; | |
1273 | wxListItem * _arg0; | |
1274 | PyObject * _argo0 = 0; | |
1275 | char *_kwnames[] = { "self", NULL }; | |
1276 | ||
1277 | self = self; | |
1278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetWidth",_kwnames,&_argo0)) | |
1279 | return NULL; | |
1280 | if (_argo0) { | |
1281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetWidth. Expected _wxListItem_p."); | |
1284 | return NULL; | |
1285 | } | |
1286 | } | |
1287 | { | |
4268f798 | 1288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1289 | _result = (int )wxListItem_GetWidth(_arg0); |
f6bcfd97 | 1290 | |
4268f798 | 1291 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1292 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1293 | } _resultobj = Py_BuildValue("i",_result); |
1294 | return _resultobj; | |
1295 | } | |
1296 | ||
1297 | #define wxListItem_GetAlign(_swigobj) (_swigobj->GetAlign()) | |
1298 | static PyObject *_wrap_wxListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1299 | PyObject * _resultobj; | |
1300 | wxListColumnFormat _result; | |
1301 | wxListItem * _arg0; | |
1302 | PyObject * _argo0 = 0; | |
1303 | char *_kwnames[] = { "self", NULL }; | |
1304 | ||
1305 | self = self; | |
1306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAlign",_kwnames,&_argo0)) | |
1307 | return NULL; | |
1308 | if (_argo0) { | |
1309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAlign. Expected _wxListItem_p."); | |
1312 | return NULL; | |
1313 | } | |
1314 | } | |
1315 | { | |
4268f798 | 1316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1317 | _result = (wxListColumnFormat )wxListItem_GetAlign(_arg0); |
f6bcfd97 | 1318 | |
4268f798 | 1319 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1320 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1321 | } _resultobj = Py_BuildValue("i",_result); |
1322 | return _resultobj; | |
1323 | } | |
1324 | ||
1325 | #define wxListItem_GetAttributes(_swigobj) (_swigobj->GetAttributes()) | |
1326 | static PyObject *_wrap_wxListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1327 | PyObject * _resultobj; | |
1328 | wxListItemAttr * _result; | |
1329 | wxListItem * _arg0; | |
1330 | PyObject * _argo0 = 0; | |
1331 | char *_kwnames[] = { "self", NULL }; | |
1332 | char _ptemp[128]; | |
1333 | ||
1334 | self = self; | |
1335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAttributes",_kwnames,&_argo0)) | |
1336 | return NULL; | |
1337 | if (_argo0) { | |
1338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAttributes. Expected _wxListItem_p."); | |
1341 | return NULL; | |
1342 | } | |
1343 | } | |
1344 | { | |
4268f798 | 1345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1346 | _result = (wxListItemAttr *)wxListItem_GetAttributes(_arg0); |
f6bcfd97 | 1347 | |
4268f798 | 1348 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1349 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1350 | } if (_result) { |
1351 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
1352 | _resultobj = Py_BuildValue("s",_ptemp); | |
1353 | } else { | |
1354 | Py_INCREF(Py_None); | |
1355 | _resultobj = Py_None; | |
1356 | } | |
1357 | return _resultobj; | |
1358 | } | |
1359 | ||
1360 | #define wxListItem_HasAttributes(_swigobj) (_swigobj->HasAttributes()) | |
1361 | static PyObject *_wrap_wxListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1362 | PyObject * _resultobj; | |
1363 | bool _result; | |
1364 | wxListItem * _arg0; | |
1365 | PyObject * _argo0 = 0; | |
1366 | char *_kwnames[] = { "self", NULL }; | |
1367 | ||
1368 | self = self; | |
1369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_HasAttributes",_kwnames,&_argo0)) | |
1370 | return NULL; | |
1371 | if (_argo0) { | |
1372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_HasAttributes. Expected _wxListItem_p."); | |
1375 | return NULL; | |
1376 | } | |
1377 | } | |
1378 | { | |
4268f798 | 1379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1380 | _result = (bool )wxListItem_HasAttributes(_arg0); |
f6bcfd97 | 1381 | |
4268f798 | 1382 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1383 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1384 | } _resultobj = Py_BuildValue("i",_result); |
1385 | return _resultobj; | |
1386 | } | |
1387 | ||
1388 | #define wxListItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
1389 | static PyObject *_wrap_wxListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1390 | PyObject * _resultobj; | |
1391 | wxColour * _result; | |
1392 | wxListItem * _arg0; | |
1393 | PyObject * _argo0 = 0; | |
1394 | char *_kwnames[] = { "self", NULL }; | |
1395 | char _ptemp[128]; | |
1396 | ||
1397 | self = self; | |
1398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetTextColour",_kwnames,&_argo0)) | |
1399 | return NULL; | |
1400 | if (_argo0) { | |
1401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetTextColour. Expected _wxListItem_p."); | |
1404 | return NULL; | |
1405 | } | |
1406 | } | |
1407 | { | |
4268f798 | 1408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1409 | _result = new wxColour (wxListItem_GetTextColour(_arg0)); |
f6bcfd97 | 1410 | |
4268f798 | 1411 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1412 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1413 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1414 | _resultobj = Py_BuildValue("s",_ptemp); | |
1415 | return _resultobj; | |
1416 | } | |
1417 | ||
1418 | #define wxListItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1419 | static PyObject *_wrap_wxListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1420 | PyObject * _resultobj; | |
1421 | wxColour * _result; | |
1422 | wxListItem * _arg0; | |
1423 | PyObject * _argo0 = 0; | |
1424 | char *_kwnames[] = { "self", NULL }; | |
1425 | char _ptemp[128]; | |
1426 | ||
1427 | self = self; | |
1428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetBackgroundColour",_kwnames,&_argo0)) | |
1429 | return NULL; | |
1430 | if (_argo0) { | |
1431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetBackgroundColour. Expected _wxListItem_p."); | |
1434 | return NULL; | |
1435 | } | |
1436 | } | |
1437 | { | |
4268f798 | 1438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1439 | _result = new wxColour (wxListItem_GetBackgroundColour(_arg0)); |
f6bcfd97 | 1440 | |
4268f798 | 1441 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1442 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1443 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1444 | _resultobj = Py_BuildValue("s",_ptemp); | |
1445 | return _resultobj; | |
1446 | } | |
1447 | ||
1448 | #define wxListItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
1449 | static PyObject *_wrap_wxListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1450 | PyObject * _resultobj; | |
1451 | wxFont * _result; | |
1452 | wxListItem * _arg0; | |
1453 | PyObject * _argo0 = 0; | |
1454 | char *_kwnames[] = { "self", NULL }; | |
1455 | char _ptemp[128]; | |
1456 | ||
1457 | self = self; | |
1458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetFont",_kwnames,&_argo0)) | |
1459 | return NULL; | |
1460 | if (_argo0) { | |
1461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetFont. Expected _wxListItem_p."); | |
1464 | return NULL; | |
1465 | } | |
1466 | } | |
1467 | { | |
4268f798 | 1468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1469 | _result = new wxFont (wxListItem_GetFont(_arg0)); |
f6bcfd97 | 1470 | |
4268f798 | 1471 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1472 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1473 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
1474 | _resultobj = Py_BuildValue("s",_ptemp); | |
1475 | return _resultobj; | |
1476 | } | |
1477 | ||
1478 | #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval) | |
1479 | static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1480 | PyObject * _resultobj; | |
1481 | long _result; | |
1482 | wxListItem * _arg0; | |
1483 | long _arg1; | |
1484 | PyObject * _argo0 = 0; | |
1485 | char *_kwnames[] = { "self","m_mask", NULL }; | |
1486 | ||
1487 | self = self; | |
1488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1)) | |
1489 | return NULL; | |
1490 | if (_argo0) { | |
1491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p."); | |
1494 | return NULL; | |
1495 | } | |
1496 | } | |
1497 | { | |
4268f798 | 1498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1499 | _result = (long )wxListItem_m_mask_set(_arg0,_arg1); |
f6bcfd97 | 1500 | |
4268f798 | 1501 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1502 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1503 | } _resultobj = Py_BuildValue("l",_result); |
1504 | return _resultobj; | |
1505 | } | |
1506 | ||
1507 | #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask) | |
1508 | static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1509 | PyObject * _resultobj; | |
1510 | long _result; | |
1511 | wxListItem * _arg0; | |
1512 | PyObject * _argo0 = 0; | |
1513 | char *_kwnames[] = { "self", NULL }; | |
1514 | ||
1515 | self = self; | |
1516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0)) | |
1517 | return NULL; | |
1518 | if (_argo0) { | |
1519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p."); | |
1522 | return NULL; | |
1523 | } | |
1524 | } | |
1525 | { | |
4268f798 | 1526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1527 | _result = (long )wxListItem_m_mask_get(_arg0); |
f6bcfd97 | 1528 | |
4268f798 | 1529 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1530 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1531 | } _resultobj = Py_BuildValue("l",_result); |
1532 | return _resultobj; | |
1533 | } | |
1534 | ||
1535 | #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval) | |
1536 | static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1537 | PyObject * _resultobj; | |
1538 | long _result; | |
1539 | wxListItem * _arg0; | |
1540 | long _arg1; | |
1541 | PyObject * _argo0 = 0; | |
1542 | char *_kwnames[] = { "self","m_itemId", NULL }; | |
1543 | ||
1544 | self = self; | |
1545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1)) | |
1546 | return NULL; | |
1547 | if (_argo0) { | |
1548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p."); | |
1551 | return NULL; | |
1552 | } | |
1553 | } | |
1554 | { | |
4268f798 | 1555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1556 | _result = (long )wxListItem_m_itemId_set(_arg0,_arg1); |
f6bcfd97 | 1557 | |
4268f798 | 1558 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1559 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1560 | } _resultobj = Py_BuildValue("l",_result); |
1561 | return _resultobj; | |
1562 | } | |
1563 | ||
1564 | #define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId) | |
1565 | static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1566 | PyObject * _resultobj; | |
1567 | long _result; | |
1568 | wxListItem * _arg0; | |
1569 | PyObject * _argo0 = 0; | |
1570 | char *_kwnames[] = { "self", NULL }; | |
1571 | ||
1572 | self = self; | |
1573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0)) | |
1574 | return NULL; | |
1575 | if (_argo0) { | |
1576 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1577 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p."); | |
1579 | return NULL; | |
1580 | } | |
1581 | } | |
1582 | { | |
4268f798 | 1583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1584 | _result = (long )wxListItem_m_itemId_get(_arg0); |
f6bcfd97 | 1585 | |
4268f798 | 1586 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1587 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1588 | } _resultobj = Py_BuildValue("l",_result); |
1589 | return _resultobj; | |
1590 | } | |
1591 | ||
1592 | #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
1593 | static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1594 | PyObject * _resultobj; | |
1595 | int _result; | |
1596 | wxListItem * _arg0; | |
1597 | int _arg1; | |
1598 | PyObject * _argo0 = 0; | |
1599 | char *_kwnames[] = { "self","m_col", NULL }; | |
1600 | ||
1601 | self = self; | |
1602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1)) | |
1603 | return NULL; | |
1604 | if (_argo0) { | |
1605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p."); | |
1608 | return NULL; | |
1609 | } | |
1610 | } | |
1611 | { | |
4268f798 | 1612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1613 | _result = (int )wxListItem_m_col_set(_arg0,_arg1); |
f6bcfd97 | 1614 | |
4268f798 | 1615 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1616 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1617 | } _resultobj = Py_BuildValue("i",_result); |
1618 | return _resultobj; | |
1619 | } | |
1620 | ||
1621 | #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
1622 | static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1623 | PyObject * _resultobj; | |
1624 | int _result; | |
1625 | wxListItem * _arg0; | |
1626 | PyObject * _argo0 = 0; | |
1627 | char *_kwnames[] = { "self", NULL }; | |
1628 | ||
1629 | self = self; | |
1630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0)) | |
1631 | return NULL; | |
1632 | if (_argo0) { | |
1633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p."); | |
1636 | return NULL; | |
1637 | } | |
1638 | } | |
1639 | { | |
4268f798 | 1640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1641 | _result = (int )wxListItem_m_col_get(_arg0); |
f6bcfd97 | 1642 | |
4268f798 | 1643 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1644 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1645 | } _resultobj = Py_BuildValue("i",_result); |
1646 | return _resultobj; | |
1647 | } | |
1648 | ||
1649 | #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval) | |
1650 | static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1651 | PyObject * _resultobj; | |
1652 | long _result; | |
1653 | wxListItem * _arg0; | |
1654 | long _arg1; | |
1655 | PyObject * _argo0 = 0; | |
1656 | char *_kwnames[] = { "self","m_state", NULL }; | |
1657 | ||
1658 | self = self; | |
1659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1)) | |
1660 | return NULL; | |
1661 | if (_argo0) { | |
1662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p."); | |
1665 | return NULL; | |
1666 | } | |
1667 | } | |
1668 | { | |
4268f798 | 1669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1670 | _result = (long )wxListItem_m_state_set(_arg0,_arg1); |
f6bcfd97 | 1671 | |
4268f798 | 1672 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1673 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1674 | } _resultobj = Py_BuildValue("l",_result); |
1675 | return _resultobj; | |
1676 | } | |
1677 | ||
1678 | #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state) | |
1679 | static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1680 | PyObject * _resultobj; | |
1681 | long _result; | |
1682 | wxListItem * _arg0; | |
1683 | PyObject * _argo0 = 0; | |
1684 | char *_kwnames[] = { "self", NULL }; | |
1685 | ||
1686 | self = self; | |
1687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0)) | |
1688 | return NULL; | |
1689 | if (_argo0) { | |
1690 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p."); | |
1693 | return NULL; | |
1694 | } | |
1695 | } | |
1696 | { | |
4268f798 | 1697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1698 | _result = (long )wxListItem_m_state_get(_arg0); |
f6bcfd97 | 1699 | |
4268f798 | 1700 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1701 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1702 | } _resultobj = Py_BuildValue("l",_result); |
1703 | return _resultobj; | |
1704 | } | |
1705 | ||
1706 | #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval) | |
1707 | static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1708 | PyObject * _resultobj; | |
1709 | long _result; | |
1710 | wxListItem * _arg0; | |
1711 | long _arg1; | |
1712 | PyObject * _argo0 = 0; | |
1713 | char *_kwnames[] = { "self","m_stateMask", NULL }; | |
1714 | ||
1715 | self = self; | |
1716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1)) | |
1717 | return NULL; | |
1718 | if (_argo0) { | |
1719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p."); | |
1722 | return NULL; | |
1723 | } | |
1724 | } | |
1725 | { | |
4268f798 | 1726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1727 | _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1); |
f6bcfd97 | 1728 | |
4268f798 | 1729 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1730 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1731 | } _resultobj = Py_BuildValue("l",_result); |
1732 | return _resultobj; | |
1733 | } | |
1734 | ||
1735 | #define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask) | |
1736 | static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1737 | PyObject * _resultobj; | |
1738 | long _result; | |
1739 | wxListItem * _arg0; | |
1740 | PyObject * _argo0 = 0; | |
1741 | char *_kwnames[] = { "self", NULL }; | |
1742 | ||
1743 | self = self; | |
1744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0)) | |
1745 | return NULL; | |
1746 | if (_argo0) { | |
1747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p."); | |
1750 | return NULL; | |
1751 | } | |
1752 | } | |
1753 | { | |
4268f798 | 1754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1755 | _result = (long )wxListItem_m_stateMask_get(_arg0); |
f6bcfd97 | 1756 | |
4268f798 | 1757 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1758 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1759 | } _resultobj = Py_BuildValue("l",_result); |
1760 | return _resultobj; | |
1761 | } | |
1762 | ||
1763 | #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval) | |
1764 | static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1765 | PyObject * _resultobj; | |
1766 | wxString * _result; | |
1767 | wxListItem * _arg0; | |
1768 | wxString * _arg1; | |
1769 | PyObject * _argo0 = 0; | |
1770 | PyObject * _obj1 = 0; | |
1771 | char *_kwnames[] = { "self","m_text", NULL }; | |
1772 | ||
1773 | self = self; | |
1774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1)) | |
1775 | return NULL; | |
1776 | if (_argo0) { | |
1777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p."); | |
1780 | return NULL; | |
1781 | } | |
1782 | } | |
1783 | { | |
c8bc7bb8 RD |
1784 | _arg1 = wxString_in_helper(_obj1); |
1785 | if (_arg1 == NULL) | |
f6bcfd97 | 1786 | return NULL; |
f6bcfd97 BP |
1787 | } |
1788 | { | |
4268f798 | 1789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1790 | _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1); |
f6bcfd97 | 1791 | |
4268f798 | 1792 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1793 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1794 | }{ |
c8bc7bb8 | 1795 | #if wxUSE_UNICODE |
7e50db3f | 1796 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1797 | #else |
f6bcfd97 | 1798 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1799 | #endif |
f6bcfd97 BP |
1800 | } |
1801 | { | |
1802 | if (_obj1) | |
1803 | delete _arg1; | |
1804 | } | |
1805 | return _resultobj; | |
1806 | } | |
1807 | ||
1808 | #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text) | |
1809 | static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1810 | PyObject * _resultobj; | |
1811 | wxString * _result; | |
1812 | wxListItem * _arg0; | |
1813 | PyObject * _argo0 = 0; | |
1814 | char *_kwnames[] = { "self", NULL }; | |
1815 | ||
1816 | self = self; | |
1817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0)) | |
1818 | return NULL; | |
1819 | if (_argo0) { | |
1820 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1821 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p."); | |
1823 | return NULL; | |
1824 | } | |
1825 | } | |
1826 | { | |
4268f798 | 1827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1828 | _result = (wxString *)wxListItem_m_text_get(_arg0); |
f6bcfd97 | 1829 | |
4268f798 | 1830 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1831 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1832 | }{ |
c8bc7bb8 | 1833 | #if wxUSE_UNICODE |
7e50db3f | 1834 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1835 | #else |
f6bcfd97 | 1836 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1837 | #endif |
f6bcfd97 BP |
1838 | } |
1839 | return _resultobj; | |
1840 | } | |
1841 | ||
1842 | #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval) | |
1843 | static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1844 | PyObject * _resultobj; | |
1845 | int _result; | |
1846 | wxListItem * _arg0; | |
1847 | int _arg1; | |
1848 | PyObject * _argo0 = 0; | |
1849 | char *_kwnames[] = { "self","m_image", NULL }; | |
1850 | ||
1851 | self = self; | |
1852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1)) | |
1853 | return NULL; | |
1854 | if (_argo0) { | |
1855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p."); | |
1858 | return NULL; | |
1859 | } | |
1860 | } | |
1861 | { | |
4268f798 | 1862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1863 | _result = (int )wxListItem_m_image_set(_arg0,_arg1); |
f6bcfd97 | 1864 | |
4268f798 | 1865 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1866 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1867 | } _resultobj = Py_BuildValue("i",_result); |
1868 | return _resultobj; | |
1869 | } | |
1870 | ||
1871 | #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image) | |
1872 | static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1873 | PyObject * _resultobj; | |
1874 | int _result; | |
1875 | wxListItem * _arg0; | |
1876 | PyObject * _argo0 = 0; | |
1877 | char *_kwnames[] = { "self", NULL }; | |
1878 | ||
1879 | self = self; | |
1880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0)) | |
1881 | return NULL; | |
1882 | if (_argo0) { | |
1883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p."); | |
1886 | return NULL; | |
1887 | } | |
1888 | } | |
1889 | { | |
4268f798 | 1890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1891 | _result = (int )wxListItem_m_image_get(_arg0); |
f6bcfd97 | 1892 | |
4268f798 | 1893 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1894 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1895 | } _resultobj = Py_BuildValue("i",_result); |
1896 | return _resultobj; | |
1897 | } | |
1898 | ||
1899 | #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval) | |
1900 | static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1901 | PyObject * _resultobj; | |
1902 | long _result; | |
1903 | wxListItem * _arg0; | |
1904 | long _arg1; | |
1905 | PyObject * _argo0 = 0; | |
1906 | char *_kwnames[] = { "self","m_data", NULL }; | |
1907 | ||
1908 | self = self; | |
1909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1)) | |
1910 | return NULL; | |
1911 | if (_argo0) { | |
1912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p."); | |
1915 | return NULL; | |
1916 | } | |
1917 | } | |
1918 | { | |
4268f798 | 1919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1920 | _result = (long )wxListItem_m_data_set(_arg0,_arg1); |
f6bcfd97 | 1921 | |
4268f798 | 1922 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1923 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1924 | } _resultobj = Py_BuildValue("l",_result); |
1925 | return _resultobj; | |
1926 | } | |
1927 | ||
1928 | #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data) | |
1929 | static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1930 | PyObject * _resultobj; | |
1931 | long _result; | |
1932 | wxListItem * _arg0; | |
1933 | PyObject * _argo0 = 0; | |
1934 | char *_kwnames[] = { "self", NULL }; | |
1935 | ||
1936 | self = self; | |
1937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0)) | |
1938 | return NULL; | |
1939 | if (_argo0) { | |
1940 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1941 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p."); | |
1943 | return NULL; | |
1944 | } | |
1945 | } | |
1946 | { | |
4268f798 | 1947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1948 | _result = (long )wxListItem_m_data_get(_arg0); |
f6bcfd97 | 1949 | |
4268f798 | 1950 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1951 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1952 | } _resultobj = Py_BuildValue("l",_result); |
1953 | return _resultobj; | |
1954 | } | |
1955 | ||
1956 | #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval) | |
1957 | static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1958 | PyObject * _resultobj; | |
1959 | int _result; | |
1960 | wxListItem * _arg0; | |
1961 | int _arg1; | |
1962 | PyObject * _argo0 = 0; | |
1963 | char *_kwnames[] = { "self","m_format", NULL }; | |
1964 | ||
1965 | self = self; | |
1966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1)) | |
1967 | return NULL; | |
1968 | if (_argo0) { | |
1969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p."); | |
1972 | return NULL; | |
1973 | } | |
1974 | } | |
1975 | { | |
4268f798 | 1976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1977 | _result = (int )wxListItem_m_format_set(_arg0,_arg1); |
f6bcfd97 | 1978 | |
4268f798 | 1979 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1980 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1981 | } _resultobj = Py_BuildValue("i",_result); |
1982 | return _resultobj; | |
1983 | } | |
1984 | ||
1985 | #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format) | |
1986 | static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1987 | PyObject * _resultobj; | |
1988 | int _result; | |
1989 | wxListItem * _arg0; | |
1990 | PyObject * _argo0 = 0; | |
1991 | char *_kwnames[] = { "self", NULL }; | |
1992 | ||
1993 | self = self; | |
1994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0)) | |
1995 | return NULL; | |
1996 | if (_argo0) { | |
1997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p."); | |
2000 | return NULL; | |
2001 | } | |
2002 | } | |
2003 | { | |
4268f798 | 2004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2005 | _result = (int )wxListItem_m_format_get(_arg0); |
f6bcfd97 | 2006 | |
4268f798 | 2007 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2008 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2009 | } _resultobj = Py_BuildValue("i",_result); |
2010 | return _resultobj; | |
8ab979d7 RD |
2011 | } |
2012 | ||
f6bcfd97 BP |
2013 | #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval) |
2014 | static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2015 | PyObject * _resultobj; |
f6bcfd97 | 2016 | int _result; |
af309447 | 2017 | wxListItem * _arg0; |
f6bcfd97 | 2018 | int _arg1; |
1d99702e | 2019 | PyObject * _argo0 = 0; |
f6bcfd97 | 2020 | char *_kwnames[] = { "self","m_width", NULL }; |
af309447 RD |
2021 | |
2022 | self = self; | |
f6bcfd97 | 2023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2024 | return NULL; |
1d99702e RD |
2025 | if (_argo0) { |
2026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p."); |
af309447 RD |
2029 | return NULL; |
2030 | } | |
2031 | } | |
cf694132 | 2032 | { |
4268f798 | 2033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2034 | _result = (int )wxListItem_m_width_set(_arg0,_arg1); |
cf694132 | 2035 | |
4268f798 | 2036 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2037 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2038 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2039 | return _resultobj; |
2040 | } | |
2041 | ||
f6bcfd97 BP |
2042 | #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width) |
2043 | static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2044 | PyObject * _resultobj; |
f6bcfd97 | 2045 | int _result; |
8ab979d7 | 2046 | wxListItem * _arg0; |
1d99702e | 2047 | PyObject * _argo0 = 0; |
efc5f224 | 2048 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2049 | |
2050 | self = self; | |
f6bcfd97 | 2051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0)) |
8ab979d7 | 2052 | return NULL; |
1d99702e RD |
2053 | if (_argo0) { |
2054 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2055 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 BP |
2056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p."); |
2057 | return NULL; | |
2058 | } | |
2059 | } | |
2060 | { | |
4268f798 | 2061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2062 | _result = (int )wxListItem_m_width_get(_arg0); |
f6bcfd97 | 2063 | |
4268f798 | 2064 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2065 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2066 | } _resultobj = Py_BuildValue("i",_result); |
2067 | return _resultobj; | |
2068 | } | |
2069 | ||
c368d904 RD |
2070 | static void *SwigwxListEventTowxNotifyEvent(void *ptr) { |
2071 | wxListEvent *src; | |
2072 | wxNotifyEvent *dest; | |
2073 | src = (wxListEvent *) ptr; | |
2074 | dest = (wxNotifyEvent *) src; | |
2075 | return (void *) dest; | |
2076 | } | |
2077 | ||
f6bcfd97 BP |
2078 | static void *SwigwxListEventTowxCommandEvent(void *ptr) { |
2079 | wxListEvent *src; | |
2080 | wxCommandEvent *dest; | |
2081 | src = (wxListEvent *) ptr; | |
2082 | dest = (wxCommandEvent *) src; | |
2083 | return (void *) dest; | |
2084 | } | |
2085 | ||
2086 | static void *SwigwxListEventTowxEvent(void *ptr) { | |
2087 | wxListEvent *src; | |
2088 | wxEvent *dest; | |
2089 | src = (wxListEvent *) ptr; | |
2090 | dest = (wxEvent *) src; | |
2091 | return (void *) dest; | |
2092 | } | |
2093 | ||
9416aa89 RD |
2094 | static void *SwigwxListEventTowxObject(void *ptr) { |
2095 | wxListEvent *src; | |
2096 | wxObject *dest; | |
2097 | src = (wxListEvent *) ptr; | |
2098 | dest = (wxObject *) src; | |
2099 | return (void *) dest; | |
2100 | } | |
2101 | ||
6d19860f RD |
2102 | #define new_wxListEvent(_swigarg0,_swigarg1) (new wxListEvent(_swigarg0,_swigarg1)) |
2103 | static PyObject *_wrap_new_wxListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2104 | PyObject * _resultobj; | |
2105 | wxListEvent * _result; | |
2106 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
2107 | int _arg1 = (int ) 0; | |
2108 | char *_kwnames[] = { "commandType","id", NULL }; | |
2109 | char _ptemp[128]; | |
2110 | ||
2111 | self = self; | |
2112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxListEvent",_kwnames,&_arg0,&_arg1)) | |
2113 | return NULL; | |
2114 | { | |
4268f798 | 2115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2116 | _result = (wxListEvent *)new_wxListEvent(_arg0,_arg1); |
6d19860f | 2117 | |
4268f798 | 2118 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
2119 | if (PyErr_Occurred()) return NULL; |
2120 | } if (_result) { | |
2121 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListEvent_p"); | |
2122 | _resultobj = Py_BuildValue("s",_ptemp); | |
2123 | } else { | |
2124 | Py_INCREF(Py_None); | |
2125 | _resultobj = Py_None; | |
2126 | } | |
2127 | return _resultobj; | |
2128 | } | |
2129 | ||
f6bcfd97 BP |
2130 | #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code) |
2131 | static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2132 | PyObject * _resultobj; | |
2133 | int _result; | |
2134 | wxListEvent * _arg0; | |
2135 | PyObject * _argo0 = 0; | |
2136 | char *_kwnames[] = { "self", NULL }; | |
2137 | ||
2138 | self = self; | |
2139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0)) | |
2140 | return NULL; | |
2141 | if (_argo0) { | |
2142 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2143 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_get. Expected _wxListEvent_p."); | |
2145 | return NULL; | |
2146 | } | |
2147 | } | |
2148 | { | |
4268f798 | 2149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2150 | _result = (int )wxListEvent_m_code_get(_arg0); |
f6bcfd97 | 2151 | |
4268f798 | 2152 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2153 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2154 | } _resultobj = Py_BuildValue("i",_result); |
2155 | return _resultobj; | |
2156 | } | |
2157 | ||
ebf4302c RD |
2158 | #define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex) |
2159 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 BP |
2160 | PyObject * _resultobj; |
2161 | long _result; | |
2162 | wxListEvent * _arg0; | |
2163 | PyObject * _argo0 = 0; | |
2164 | char *_kwnames[] = { "self", NULL }; | |
2165 | ||
2166 | self = self; | |
ebf4302c | 2167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0)) |
f6bcfd97 BP |
2168 | return NULL; |
2169 | if (_argo0) { | |
2170 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2171 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
ebf4302c | 2172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p."); |
f6bcfd97 BP |
2173 | return NULL; |
2174 | } | |
2175 | } | |
2176 | { | |
4268f798 | 2177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2178 | _result = (long )wxListEvent_m_oldItemIndex_get(_arg0); |
f6bcfd97 | 2179 | |
4268f798 | 2180 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2181 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2182 | } _resultobj = Py_BuildValue("l",_result); |
2183 | return _resultobj; | |
2184 | } | |
2185 | ||
ebf4302c RD |
2186 | #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex) |
2187 | static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2188 | PyObject * _resultobj; |
ebf4302c | 2189 | long _result; |
f6bcfd97 | 2190 | wxListEvent * _arg0; |
1d99702e | 2191 | PyObject * _argo0 = 0; |
f6bcfd97 | 2192 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2193 | |
2194 | self = self; | |
ebf4302c | 2195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0)) |
af309447 | 2196 | return NULL; |
1d99702e RD |
2197 | if (_argo0) { |
2198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
ebf4302c | 2200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p."); |
af309447 RD |
2201 | return NULL; |
2202 | } | |
2203 | } | |
cf694132 | 2204 | { |
4268f798 | 2205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2206 | _result = (long )wxListEvent_m_itemIndex_get(_arg0); |
cf694132 | 2207 | |
4268f798 | 2208 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2209 | if (PyErr_Occurred()) return NULL; |
ebf4302c | 2210 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2211 | return _resultobj; |
2212 | } | |
2213 | ||
ebf4302c RD |
2214 | #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col) |
2215 | static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2216 | PyObject * _resultobj; |
ebf4302c | 2217 | int _result; |
f6bcfd97 | 2218 | wxListEvent * _arg0; |
1d99702e | 2219 | PyObject * _argo0 = 0; |
f6bcfd97 | 2220 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2221 | |
2222 | self = self; | |
ebf4302c | 2223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0)) |
af309447 | 2224 | return NULL; |
1d99702e RD |
2225 | if (_argo0) { |
2226 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2227 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
ebf4302c | 2228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p."); |
af309447 RD |
2229 | return NULL; |
2230 | } | |
2231 | } | |
cf694132 | 2232 | { |
4268f798 | 2233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2234 | _result = (int )wxListEvent_m_col_get(_arg0); |
cf694132 | 2235 | |
4268f798 | 2236 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2237 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2238 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2239 | return _resultobj; |
2240 | } | |
2241 | ||
f6bcfd97 BP |
2242 | #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag) |
2243 | static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2244 | PyObject * _resultobj; |
f6bcfd97 BP |
2245 | wxPoint * _result; |
2246 | wxListEvent * _arg0; | |
2247 | PyObject * _argo0 = 0; | |
2248 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
2249 | char _ptemp[128]; |
2250 | ||
2251 | self = self; | |
f6bcfd97 BP |
2252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0)) |
2253 | return NULL; | |
2254 | if (_argo0) { | |
2255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p."); | |
8ab979d7 | 2258 | return NULL; |
f6bcfd97 BP |
2259 | } |
2260 | } | |
cf694132 | 2261 | { |
4268f798 | 2262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2263 | _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0); |
cf694132 | 2264 | |
4268f798 | 2265 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2266 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2267 | } if (_result) { |
f6bcfd97 | 2268 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); |
1d99702e RD |
2269 | _resultobj = Py_BuildValue("s",_ptemp); |
2270 | } else { | |
2271 | Py_INCREF(Py_None); | |
2272 | _resultobj = Py_None; | |
2273 | } | |
8ab979d7 RD |
2274 | return _resultobj; |
2275 | } | |
2276 | ||
f6bcfd97 BP |
2277 | #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item) |
2278 | static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2279 | PyObject * _resultobj; |
f6bcfd97 | 2280 | wxListItem * _result; |
af309447 | 2281 | wxListEvent * _arg0; |
1d99702e | 2282 | PyObject * _argo0 = 0; |
f6bcfd97 | 2283 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2284 | |
2285 | self = self; | |
f6bcfd97 | 2286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0)) |
af309447 | 2287 | return NULL; |
1d99702e RD |
2288 | if (_argo0) { |
2289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p."); |
af309447 RD |
2292 | return NULL; |
2293 | } | |
2294 | } | |
cf694132 | 2295 | { |
4268f798 | 2296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2297 | _result = (wxListItem *)wxListEvent_m_item_get(_arg0); |
cf694132 | 2298 | |
4268f798 | 2299 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2300 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2301 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
2302 | return _resultobj; |
2303 | } | |
2304 | ||
64c06a50 RD |
2305 | #define wxListEvent_GetKeyCode(_swigobj) (_swigobj->GetKeyCode()) |
2306 | static PyObject *_wrap_wxListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2307 | PyObject * _resultobj; |
2308 | int _result; | |
2309 | wxListEvent * _arg0; | |
1d99702e | 2310 | PyObject * _argo0 = 0; |
efc5f224 | 2311 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2312 | |
2313 | self = self; | |
64c06a50 | 2314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetKeyCode",_kwnames,&_argo0)) |
8ab979d7 | 2315 | return NULL; |
1d99702e RD |
2316 | if (_argo0) { |
2317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
64c06a50 | 2319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetKeyCode. Expected _wxListEvent_p."); |
8ab979d7 RD |
2320 | return NULL; |
2321 | } | |
2322 | } | |
cf694132 | 2323 | { |
4268f798 | 2324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
64c06a50 | 2325 | _result = (int )wxListEvent_GetKeyCode(_arg0); |
cf694132 | 2326 | |
4268f798 | 2327 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2328 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2329 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2330 | return _resultobj; |
2331 | } | |
2332 | ||
f6bcfd97 BP |
2333 | #define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex()) |
2334 | static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2335 | PyObject * _resultobj; |
2336 | long _result; | |
2337 | wxListEvent * _arg0; | |
1d99702e | 2338 | PyObject * _argo0 = 0; |
f6bcfd97 | 2339 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2340 | |
2341 | self = self; | |
f6bcfd97 | 2342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0)) |
af309447 | 2343 | return NULL; |
1d99702e RD |
2344 | if (_argo0) { |
2345 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2346 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p."); |
af309447 RD |
2348 | return NULL; |
2349 | } | |
2350 | } | |
cf694132 | 2351 | { |
4268f798 | 2352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2353 | _result = (long )wxListEvent_GetIndex(_arg0); |
cf694132 | 2354 | |
4268f798 | 2355 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2356 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2357 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2358 | return _resultobj; |
2359 | } | |
2360 | ||
f6bcfd97 BP |
2361 | #define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn()) |
2362 | static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2363 | PyObject * _resultobj; |
f6bcfd97 | 2364 | int _result; |
8ab979d7 | 2365 | wxListEvent * _arg0; |
1d99702e | 2366 | PyObject * _argo0 = 0; |
efc5f224 | 2367 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2368 | |
2369 | self = self; | |
f6bcfd97 | 2370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0)) |
8ab979d7 | 2371 | return NULL; |
1d99702e RD |
2372 | if (_argo0) { |
2373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p."); |
8ab979d7 RD |
2376 | return NULL; |
2377 | } | |
2378 | } | |
cf694132 | 2379 | { |
4268f798 | 2380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2381 | _result = (int )wxListEvent_GetColumn(_arg0); |
cf694132 | 2382 | |
4268f798 | 2383 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2384 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2385 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2386 | return _resultobj; |
2387 | } | |
2388 | ||
f6bcfd97 BP |
2389 | #define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
2390 | static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2391 | PyObject * _resultobj; |
f6bcfd97 | 2392 | wxPoint * _result; |
8ab979d7 | 2393 | wxListEvent * _arg0; |
1d99702e | 2394 | PyObject * _argo0 = 0; |
efc5f224 | 2395 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2396 | char _ptemp[128]; |
8ab979d7 RD |
2397 | |
2398 | self = self; | |
f6bcfd97 | 2399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 2400 | return NULL; |
1d99702e RD |
2401 | if (_argo0) { |
2402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetPoint. Expected _wxListEvent_p."); |
8ab979d7 RD |
2405 | return NULL; |
2406 | } | |
2407 | } | |
cf694132 | 2408 | { |
4268f798 | 2409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2410 | _result = new wxPoint (wxListEvent_GetPoint(_arg0)); |
cf694132 | 2411 | |
4268f798 | 2412 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2413 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2414 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2415 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
2416 | return _resultobj; |
2417 | } | |
2418 | ||
f6bcfd97 BP |
2419 | #define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
2420 | static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2421 | PyObject * _resultobj; |
f6bcfd97 | 2422 | wxString * _result; |
af309447 | 2423 | wxListEvent * _arg0; |
1d99702e | 2424 | PyObject * _argo0 = 0; |
f6bcfd97 | 2425 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2426 | |
2427 | self = self; | |
f6bcfd97 | 2428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetLabel",_kwnames,&_argo0)) |
af309447 | 2429 | return NULL; |
1d99702e RD |
2430 | if (_argo0) { |
2431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetLabel. Expected _wxListEvent_p."); |
af309447 RD |
2434 | return NULL; |
2435 | } | |
2436 | } | |
cf694132 | 2437 | { |
4268f798 | 2438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2439 | const wxString & _result_ref = wxListEvent_GetLabel(_arg0); |
f6bcfd97 | 2440 | _result = (wxString *) &_result_ref; |
cf694132 | 2441 | |
4268f798 | 2442 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2443 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2444 | }{ |
c8bc7bb8 | 2445 | #if wxUSE_UNICODE |
7e50db3f | 2446 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2447 | #else |
f6bcfd97 | 2448 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2449 | #endif |
f6bcfd97 | 2450 | } |
af309447 RD |
2451 | return _resultobj; |
2452 | } | |
2453 | ||
f6bcfd97 BP |
2454 | #define wxListEvent_GetText(_swigobj) (_swigobj->GetText()) |
2455 | static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2456 | PyObject * _resultobj; |
f6bcfd97 | 2457 | wxString * _result; |
8ab979d7 | 2458 | wxListEvent * _arg0; |
1d99702e | 2459 | PyObject * _argo0 = 0; |
efc5f224 | 2460 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2461 | |
2462 | self = self; | |
f6bcfd97 | 2463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0)) |
8ab979d7 | 2464 | return NULL; |
1d99702e RD |
2465 | if (_argo0) { |
2466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p."); |
8ab979d7 RD |
2469 | return NULL; |
2470 | } | |
2471 | } | |
cf694132 | 2472 | { |
4268f798 | 2473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2474 | const wxString & _result_ref = wxListEvent_GetText(_arg0); |
f6bcfd97 | 2475 | _result = (wxString *) &_result_ref; |
cf694132 | 2476 | |
4268f798 | 2477 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2478 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2479 | }{ |
c8bc7bb8 | 2480 | #if wxUSE_UNICODE |
7e50db3f | 2481 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2482 | #else |
f6bcfd97 | 2483 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2484 | #endif |
f6bcfd97 | 2485 | } |
8ab979d7 RD |
2486 | return _resultobj; |
2487 | } | |
2488 | ||
f6bcfd97 BP |
2489 | #define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage()) |
2490 | static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2491 | PyObject * _resultobj; |
f6bcfd97 | 2492 | int _result; |
af309447 | 2493 | wxListEvent * _arg0; |
1d99702e | 2494 | PyObject * _argo0 = 0; |
f6bcfd97 | 2495 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2496 | |
2497 | self = self; | |
f6bcfd97 | 2498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0)) |
af309447 | 2499 | return NULL; |
1d99702e RD |
2500 | if (_argo0) { |
2501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p."); |
af309447 RD |
2504 | return NULL; |
2505 | } | |
2506 | } | |
cf694132 | 2507 | { |
4268f798 | 2508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2509 | _result = (int )wxListEvent_GetImage(_arg0); |
cf694132 | 2510 | |
4268f798 | 2511 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2512 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2513 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2514 | return _resultobj; |
2515 | } | |
2516 | ||
f6bcfd97 BP |
2517 | #define wxListEvent_GetData(_swigobj) (_swigobj->GetData()) |
2518 | static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2519 | PyObject * _resultobj; |
f6bcfd97 | 2520 | long _result; |
8ab979d7 | 2521 | wxListEvent * _arg0; |
1d99702e | 2522 | PyObject * _argo0 = 0; |
efc5f224 | 2523 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2524 | |
2525 | self = self; | |
f6bcfd97 | 2526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0)) |
8ab979d7 | 2527 | return NULL; |
1d99702e RD |
2528 | if (_argo0) { |
2529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p."); |
8ab979d7 RD |
2532 | return NULL; |
2533 | } | |
2534 | } | |
cf694132 | 2535 | { |
4268f798 | 2536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2537 | _result = (long )wxListEvent_GetData(_arg0); |
cf694132 | 2538 | |
4268f798 | 2539 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2540 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2541 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2542 | return _resultobj; |
2543 | } | |
2544 | ||
f6bcfd97 BP |
2545 | #define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask()) |
2546 | static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2547 | PyObject * _resultobj; |
f6bcfd97 | 2548 | long _result; |
af309447 | 2549 | wxListEvent * _arg0; |
1d99702e | 2550 | PyObject * _argo0 = 0; |
f6bcfd97 | 2551 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2552 | |
2553 | self = self; | |
f6bcfd97 | 2554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetMask",_kwnames,&_argo0)) |
af309447 | 2555 | return NULL; |
1d99702e RD |
2556 | if (_argo0) { |
2557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetMask. Expected _wxListEvent_p."); |
af309447 RD |
2560 | return NULL; |
2561 | } | |
2562 | } | |
cf694132 | 2563 | { |
4268f798 | 2564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2565 | _result = (long )wxListEvent_GetMask(_arg0); |
cf694132 | 2566 | |
4268f798 | 2567 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2568 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2569 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2570 | return _resultobj; |
2571 | } | |
2572 | ||
f6bcfd97 BP |
2573 | #define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
2574 | static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2575 | PyObject * _resultobj; |
2576 | wxListItem * _result; | |
2577 | wxListEvent * _arg0; | |
1d99702e | 2578 | PyObject * _argo0 = 0; |
efc5f224 | 2579 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2580 | |
2581 | self = self; | |
f6bcfd97 | 2582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 2583 | return NULL; |
1d99702e RD |
2584 | if (_argo0) { |
2585 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p."); |
8ab979d7 RD |
2588 | return NULL; |
2589 | } | |
2590 | } | |
cf694132 | 2591 | { |
4268f798 | 2592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2593 | const wxListItem & _result_ref = wxListEvent_GetItem(_arg0); |
f6bcfd97 | 2594 | _result = (wxListItem *) &_result_ref; |
cf694132 | 2595 | |
4268f798 | 2596 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2597 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2598 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2599 | return _resultobj; |
2600 | } | |
2601 | ||
6d19860f RD |
2602 | #define wxListEvent_GetCacheFrom(_swigobj) (_swigobj->GetCacheFrom()) |
2603 | static PyObject *_wrap_wxListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2604 | PyObject * _resultobj; | |
2605 | long _result; | |
2606 | wxListEvent * _arg0; | |
2607 | PyObject * _argo0 = 0; | |
2608 | char *_kwnames[] = { "self", NULL }; | |
2609 | ||
2610 | self = self; | |
2611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheFrom",_kwnames,&_argo0)) | |
2612 | return NULL; | |
2613 | if (_argo0) { | |
2614 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheFrom. Expected _wxListEvent_p."); | |
2617 | return NULL; | |
2618 | } | |
2619 | } | |
2620 | { | |
4268f798 | 2621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2622 | _result = (long )wxListEvent_GetCacheFrom(_arg0); |
6d19860f | 2623 | |
4268f798 | 2624 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
2625 | if (PyErr_Occurred()) return NULL; |
2626 | } _resultobj = Py_BuildValue("l",_result); | |
2627 | return _resultobj; | |
2628 | } | |
2629 | ||
2630 | #define wxListEvent_GetCacheTo(_swigobj) (_swigobj->GetCacheTo()) | |
2631 | static PyObject *_wrap_wxListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2632 | PyObject * _resultobj; | |
2633 | long _result; | |
2634 | wxListEvent * _arg0; | |
2635 | PyObject * _argo0 = 0; | |
2636 | char *_kwnames[] = { "self", NULL }; | |
2637 | ||
2638 | self = self; | |
2639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheTo",_kwnames,&_argo0)) | |
2640 | return NULL; | |
2641 | if (_argo0) { | |
2642 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2643 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheTo. Expected _wxListEvent_p."); | |
2645 | return NULL; | |
2646 | } | |
2647 | } | |
2648 | { | |
4268f798 | 2649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2650 | _result = (long )wxListEvent_GetCacheTo(_arg0); |
6d19860f | 2651 | |
4268f798 | 2652 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
2653 | if (PyErr_Occurred()) return NULL; |
2654 | } _resultobj = Py_BuildValue("l",_result); | |
2655 | return _resultobj; | |
2656 | } | |
2657 | ||
025fa9a9 RD |
2658 | #define wxListEvent_IsEditCancelled(_swigobj) (_swigobj->IsEditCancelled()) |
2659 | static PyObject *_wrap_wxListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2660 | PyObject * _resultobj; | |
2661 | bool _result; | |
2662 | wxListEvent * _arg0; | |
2663 | PyObject * _argo0 = 0; | |
2664 | char *_kwnames[] = { "self", NULL }; | |
2665 | ||
2666 | self = self; | |
2667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_IsEditCancelled",_kwnames,&_argo0)) | |
2668 | return NULL; | |
2669 | if (_argo0) { | |
2670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_IsEditCancelled. Expected _wxListEvent_p."); | |
2673 | return NULL; | |
2674 | } | |
2675 | } | |
2676 | { | |
2677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2678 | _result = (bool )wxListEvent_IsEditCancelled(_arg0); | |
2679 | ||
2680 | wxPyEndAllowThreads(__tstate); | |
2681 | if (PyErr_Occurred()) return NULL; | |
2682 | } _resultobj = Py_BuildValue("i",_result); | |
2683 | return _resultobj; | |
2684 | } | |
2685 | ||
2686 | #define wxListEvent_SetEditCanceled(_swigobj,_swigarg0) (_swigobj->SetEditCanceled(_swigarg0)) | |
2687 | static PyObject *_wrap_wxListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2688 | PyObject * _resultobj; | |
2689 | wxListEvent * _arg0; | |
2690 | bool _arg1; | |
2691 | PyObject * _argo0 = 0; | |
2692 | int tempbool1; | |
2693 | char *_kwnames[] = { "self","editCancelled", NULL }; | |
2694 | ||
2695 | self = self; | |
2696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_SetEditCanceled",_kwnames,&_argo0,&tempbool1)) | |
2697 | return NULL; | |
2698 | if (_argo0) { | |
2699 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2700 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_SetEditCanceled. Expected _wxListEvent_p."); | |
2702 | return NULL; | |
2703 | } | |
2704 | } | |
2705 | _arg1 = (bool ) tempbool1; | |
2706 | { | |
2707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2708 | wxListEvent_SetEditCanceled(_arg0,_arg1); | |
2709 | ||
2710 | wxPyEndAllowThreads(__tstate); | |
2711 | if (PyErr_Occurred()) return NULL; | |
2712 | } Py_INCREF(Py_None); | |
2713 | _resultobj = Py_None; | |
2714 | return _resultobj; | |
2715 | } | |
2716 | ||
c7e7022c RD |
2717 | static void *SwigwxPyListCtrlTowxControl(void *ptr) { |
2718 | wxPyListCtrl *src; | |
8ab979d7 | 2719 | wxControl *dest; |
c7e7022c | 2720 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2721 | dest = (wxControl *) src; |
2722 | return (void *) dest; | |
2723 | } | |
2724 | ||
c7e7022c RD |
2725 | static void *SwigwxPyListCtrlTowxWindow(void *ptr) { |
2726 | wxPyListCtrl *src; | |
8ab979d7 | 2727 | wxWindow *dest; |
c7e7022c | 2728 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2729 | dest = (wxWindow *) src; |
2730 | return (void *) dest; | |
2731 | } | |
2732 | ||
c7e7022c RD |
2733 | static void *SwigwxPyListCtrlTowxEvtHandler(void *ptr) { |
2734 | wxPyListCtrl *src; | |
8ab979d7 | 2735 | wxEvtHandler *dest; |
c7e7022c | 2736 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2737 | dest = (wxEvtHandler *) src; |
2738 | return (void *) dest; | |
2739 | } | |
2740 | ||
c7e7022c RD |
2741 | static void *SwigwxPyListCtrlTowxObject(void *ptr) { |
2742 | wxPyListCtrl *src; | |
9416aa89 | 2743 | wxObject *dest; |
c7e7022c | 2744 | src = (wxPyListCtrl *) ptr; |
9416aa89 RD |
2745 | dest = (wxObject *) src; |
2746 | return (void *) dest; | |
2747 | } | |
2748 | ||
c7e7022c | 2749 | #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 2750 | static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 2751 | PyObject * _resultobj; |
c7e7022c | 2752 | wxPyListCtrl * _result; |
8ab979d7 | 2753 | wxWindow * _arg0; |
c7e7022c | 2754 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
2755 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
2756 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
0adbc166 | 2757 | long _arg4 = (long ) (wxLC_ICON); |
e508a2b6 | 2758 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
137b5242 | 2759 | wxString * _arg6 = (wxString *) &wxPyListCtrlNameStr; |
1d99702e | 2760 | PyObject * _argo0 = 0; |
2f90df85 RD |
2761 | wxPoint temp; |
2762 | PyObject * _obj2 = 0; | |
2763 | wxSize temp0; | |
2764 | PyObject * _obj3 = 0; | |
1d99702e | 2765 | PyObject * _argo5 = 0; |
137b5242 | 2766 | PyObject * _obj6 = 0; |
efc5f224 | 2767 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
2768 | char _ptemp[128]; |
2769 | ||
2770 | self = self; | |
137b5242 | 2771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) |
8ab979d7 | 2772 | return NULL; |
1d99702e RD |
2773 | if (_argo0) { |
2774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p."); |
2777 | return NULL; | |
2778 | } | |
2779 | } | |
2f90df85 RD |
2780 | if (_obj2) |
2781 | { | |
2782 | _arg2 = &temp; | |
2783 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 2784 | return NULL; |
2f90df85 RD |
2785 | } |
2786 | if (_obj3) | |
2787 | { | |
2788 | _arg3 = &temp0; | |
2789 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 2790 | return NULL; |
2f90df85 | 2791 | } |
1d99702e | 2792 | if (_argo5) { |
7e50db3f | 2793 | if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { |
8ab979d7 RD |
2794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p."); |
2795 | return NULL; | |
2796 | } | |
2797 | } | |
137b5242 RD |
2798 | if (_obj6) |
2799 | { | |
2800 | _arg6 = wxString_in_helper(_obj6); | |
2801 | if (_arg6 == NULL) | |
2802 | return NULL; | |
2803 | } | |
cf694132 | 2804 | { |
4268f798 | 2805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 2806 | _result = (wxPyListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
cf694132 | 2807 | |
4268f798 | 2808 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2809 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2810 | } if (_result) { |
c7e7022c | 2811 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); |
1d99702e RD |
2812 | _resultobj = Py_BuildValue("s",_ptemp); |
2813 | } else { | |
2814 | Py_INCREF(Py_None); | |
2815 | _resultobj = Py_None; | |
2816 | } | |
137b5242 RD |
2817 | { |
2818 | if (_obj6) | |
2819 | delete _arg6; | |
2820 | } | |
8ab979d7 RD |
2821 | return _resultobj; |
2822 | } | |
2823 | ||
09f3d4e6 RD |
2824 | #define new_wxPreListCtrl() (new wxPyListCtrl()) |
2825 | static PyObject *_wrap_new_wxPreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2826 | PyObject * _resultobj; | |
2827 | wxPyListCtrl * _result; | |
2828 | char *_kwnames[] = { NULL }; | |
2829 | char _ptemp[128]; | |
2830 | ||
2831 | self = self; | |
2832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListCtrl",_kwnames)) | |
2833 | return NULL; | |
2834 | { | |
4268f798 | 2835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2836 | _result = (wxPyListCtrl *)new_wxPreListCtrl(); |
09f3d4e6 | 2837 | |
4268f798 | 2838 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
2839 | if (PyErr_Occurred()) return NULL; |
2840 | } if (_result) { | |
2841 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); | |
2842 | _resultobj = Py_BuildValue("s",_ptemp); | |
2843 | } else { | |
2844 | Py_INCREF(Py_None); | |
2845 | _resultobj = Py_None; | |
2846 | } | |
2847 | return _resultobj; | |
2848 | } | |
2849 | ||
2850 | #define wxListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
2851 | static PyObject *_wrap_wxListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2852 | PyObject * _resultobj; | |
2853 | bool _result; | |
2854 | wxPyListCtrl * _arg0; | |
2855 | wxWindow * _arg1; | |
2856 | wxWindowID _arg2 = (wxWindowID ) -1; | |
2857 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
2858 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2859 | long _arg5 = (long ) (wxLC_ICON); | |
2860 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 2861 | wxString * _arg7 = (wxString *) &wxPyListCtrlNameStr; |
09f3d4e6 RD |
2862 | PyObject * _argo0 = 0; |
2863 | PyObject * _argo1 = 0; | |
2864 | wxPoint temp; | |
2865 | PyObject * _obj3 = 0; | |
2866 | wxSize temp0; | |
2867 | PyObject * _obj4 = 0; | |
2868 | PyObject * _argo6 = 0; | |
137b5242 | 2869 | PyObject * _obj7 = 0; |
09f3d4e6 RD |
2870 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; |
2871 | ||
2872 | self = self; | |
137b5242 | 2873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
09f3d4e6 RD |
2874 | return NULL; |
2875 | if (_argo0) { | |
2876 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2877 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
2878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Create. Expected _wxPyListCtrl_p."); | |
2879 | return NULL; | |
2880 | } | |
2881 | } | |
2882 | if (_argo1) { | |
2883 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2884 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_Create. Expected _wxWindow_p."); | |
2886 | return NULL; | |
2887 | } | |
2888 | } | |
2889 | if (_obj3) | |
2890 | { | |
2891 | _arg3 = &temp; | |
2892 | if (! wxPoint_helper(_obj3, &_arg3)) | |
2893 | return NULL; | |
2894 | } | |
2895 | if (_obj4) | |
2896 | { | |
2897 | _arg4 = &temp0; | |
2898 | if (! wxSize_helper(_obj4, &_arg4)) | |
2899 | return NULL; | |
2900 | } | |
2901 | if (_argo6) { | |
7e50db3f | 2902 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { |
09f3d4e6 RD |
2903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListCtrl_Create. Expected _wxValidator_p."); |
2904 | return NULL; | |
2905 | } | |
2906 | } | |
137b5242 RD |
2907 | if (_obj7) |
2908 | { | |
2909 | _arg7 = wxString_in_helper(_obj7); | |
2910 | if (_arg7 == NULL) | |
2911 | return NULL; | |
2912 | } | |
09f3d4e6 | 2913 | { |
4268f798 | 2914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 2915 | _result = (bool )wxListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
09f3d4e6 | 2916 | |
4268f798 | 2917 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
2918 | if (PyErr_Occurred()) return NULL; |
2919 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
2920 | { |
2921 | if (_obj7) | |
2922 | delete _arg7; | |
2923 | } | |
09f3d4e6 RD |
2924 | return _resultobj; |
2925 | } | |
2926 | ||
0122b7e3 RD |
2927 | #define wxListCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
2928 | static PyObject *_wrap_wxListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2929 | PyObject * _resultobj; |
c7e7022c RD |
2930 | wxPyListCtrl * _arg0; |
2931 | PyObject * _arg1; | |
2932 | PyObject * _arg2; | |
1d99702e | 2933 | PyObject * _argo0 = 0; |
c7e7022c RD |
2934 | PyObject * _obj1 = 0; |
2935 | PyObject * _obj2 = 0; | |
2936 | char *_kwnames[] = { "self","self","_class", NULL }; | |
8ab979d7 RD |
2937 | |
2938 | self = self; | |
0122b7e3 | 2939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxListCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 2940 | return NULL; |
1d99702e RD |
2941 | if (_argo0) { |
2942 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c | 2943 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
0122b7e3 | 2944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl__setCallbackInfo. Expected _wxPyListCtrl_p."); |
8ab979d7 RD |
2945 | return NULL; |
2946 | } | |
2947 | } | |
c7e7022c RD |
2948 | { |
2949 | _arg1 = _obj1; | |
2950 | } | |
2951 | { | |
2952 | _arg2 = _obj2; | |
2953 | } | |
cf694132 | 2954 | { |
4268f798 | 2955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2956 | wxListCtrl__setCallbackInfo(_arg0,_arg1,_arg2); |
cf694132 | 2957 | |
4268f798 | 2958 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2959 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
2960 | } Py_INCREF(Py_None); |
2961 | _resultobj = Py_None; | |
8ab979d7 RD |
2962 | return _resultobj; |
2963 | } | |
2964 | ||
c7e7022c RD |
2965 | #define wxListCtrl_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) |
2966 | static PyObject *_wrap_wxListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1b62f00d | 2967 | PyObject * _resultobj; |
c7e7022c RD |
2968 | bool _result; |
2969 | wxPyListCtrl * _arg0; | |
2970 | wxColour * _arg1; | |
1b62f00d | 2971 | PyObject * _argo0 = 0; |
c7e7022c RD |
2972 | wxColour temp; |
2973 | PyObject * _obj1 = 0; | |
2974 | char *_kwnames[] = { "self","col", NULL }; | |
1b62f00d RD |
2975 | |
2976 | self = self; | |
c7e7022c | 2977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
1b62f00d RD |
2978 | return NULL; |
2979 | if (_argo0) { | |
2980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
2981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
2982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetForegroundColour. Expected _wxPyListCtrl_p."); | |
1b62f00d RD |
2983 | return NULL; |
2984 | } | |
2985 | } | |
c7e7022c RD |
2986 | { |
2987 | _arg1 = &temp; | |
2988 | if (! wxColour_helper(_obj1, &_arg1)) | |
1b62f00d | 2989 | return NULL; |
c7e7022c | 2990 | } |
1b62f00d | 2991 | { |
4268f798 | 2992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2993 | _result = (bool )wxListCtrl_SetForegroundColour(_arg0,*_arg1); |
1b62f00d | 2994 | |
4268f798 | 2995 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2996 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 2997 | } _resultobj = Py_BuildValue("i",_result); |
1b62f00d RD |
2998 | return _resultobj; |
2999 | } | |
3000 | ||
c7e7022c RD |
3001 | #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
3002 | static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3003 | PyObject * _resultobj; |
3004 | bool _result; | |
c7e7022c RD |
3005 | wxPyListCtrl * _arg0; |
3006 | wxColour * _arg1; | |
1d99702e | 3007 | PyObject * _argo0 = 0; |
c7e7022c RD |
3008 | wxColour temp; |
3009 | PyObject * _obj1 = 0; | |
3010 | char *_kwnames[] = { "self","col", NULL }; | |
8ab979d7 RD |
3011 | |
3012 | self = self; | |
c7e7022c | 3013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3014 | return NULL; |
1d99702e RD |
3015 | if (_argo0) { |
3016 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3017 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3019 | return NULL; |
3020 | } | |
3021 | } | |
c7e7022c RD |
3022 | { |
3023 | _arg1 = &temp; | |
3024 | if (! wxColour_helper(_obj1, &_arg1)) | |
3025 | return NULL; | |
3026 | } | |
cf694132 | 3027 | { |
4268f798 | 3028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3029 | _result = (bool )wxListCtrl_SetBackgroundColour(_arg0,*_arg1); |
cf694132 | 3030 | |
4268f798 | 3031 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3032 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3033 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3034 | return _resultobj; |
3035 | } | |
3036 | ||
14afa2cb RD |
3037 | static wxListItem * wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col) { |
3038 | wxListItem item; | |
be13a6af | 3039 | item.SetMask(0xFFFF); |
14afa2cb RD |
3040 | if (self->GetColumn(col, item)) |
3041 | return new wxListItem(item); | |
3042 | else | |
3043 | return NULL; | |
3044 | } | |
c7e7022c | 3045 | static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3046 | PyObject * _resultobj; |
14afa2cb | 3047 | wxListItem * _result; |
c7e7022c RD |
3048 | wxPyListCtrl * _arg0; |
3049 | int _arg1; | |
1d99702e | 3050 | PyObject * _argo0 = 0; |
14afa2cb | 3051 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3052 | |
3053 | self = self; | |
14afa2cb | 3054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3055 | return NULL; |
1d99702e RD |
3056 | if (_argo0) { |
3057 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3058 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxPyListCtrl_p."); | |
3060 | return NULL; | |
3061 | } | |
3062 | } | |
cf694132 | 3063 | { |
4268f798 | 3064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3065 | _result = (wxListItem *)wxPyListCtrl_GetColumn(_arg0,_arg1); |
cf694132 | 3066 | |
4268f798 | 3067 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3068 | if (PyErr_Occurred()) return NULL; |
14afa2cb | 3069 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
3070 | return _resultobj; |
3071 | } | |
3072 | ||
c7e7022c RD |
3073 | #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1)) |
3074 | static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3075 | PyObject * _resultobj; |
3076 | bool _result; | |
c7e7022c | 3077 | wxPyListCtrl * _arg0; |
8ab979d7 | 3078 | int _arg1; |
c7e7022c | 3079 | wxListItem * _arg2; |
1d99702e | 3080 | PyObject * _argo0 = 0; |
c7e7022c RD |
3081 | PyObject * _argo2 = 0; |
3082 | char *_kwnames[] = { "self","col","item", NULL }; | |
8ab979d7 RD |
3083 | |
3084 | self = self; | |
c7e7022c | 3085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3086 | return NULL; |
1d99702e RD |
3087 | if (_argo0) { |
3088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxPyListCtrl_p."); | |
3091 | return NULL; | |
3092 | } | |
3093 | } | |
3094 | if (_argo2) { | |
7e50db3f | 3095 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { |
c7e7022c | 3096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p."); |
8ab979d7 RD |
3097 | return NULL; |
3098 | } | |
3099 | } | |
cf694132 | 3100 | { |
4268f798 | 3101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3102 | _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2); |
cf694132 | 3103 | |
4268f798 | 3104 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3105 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3106 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3107 | return _resultobj; |
3108 | } | |
3109 | ||
c7e7022c RD |
3110 | #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0)) |
3111 | static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3112 | PyObject * _resultobj; |
c7e7022c RD |
3113 | int _result; |
3114 | wxPyListCtrl * _arg0; | |
3115 | int _arg1; | |
1d99702e | 3116 | PyObject * _argo0 = 0; |
c7e7022c | 3117 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3118 | |
3119 | self = self; | |
c7e7022c | 3120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3121 | return NULL; |
1d99702e RD |
3122 | if (_argo0) { |
3123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3126 | return NULL; |
3127 | } | |
3128 | } | |
cf694132 | 3129 | { |
4268f798 | 3130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3131 | _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1); |
cf694132 | 3132 | |
4268f798 | 3133 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3134 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3135 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3136 | return _resultobj; |
3137 | } | |
3138 | ||
c7e7022c RD |
3139 | #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1)) |
3140 | static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3141 | PyObject * _resultobj; |
c7e7022c RD |
3142 | bool _result; |
3143 | wxPyListCtrl * _arg0; | |
3144 | int _arg1; | |
3145 | int _arg2; | |
1d99702e | 3146 | PyObject * _argo0 = 0; |
c7e7022c | 3147 | char *_kwnames[] = { "self","col","width", NULL }; |
8ab979d7 RD |
3148 | |
3149 | self = self; | |
c7e7022c | 3150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3151 | return NULL; |
1d99702e RD |
3152 | if (_argo0) { |
3153 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3154 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3156 | return NULL; |
3157 | } | |
3158 | } | |
cf694132 | 3159 | { |
4268f798 | 3160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3161 | _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2); |
cf694132 | 3162 | |
4268f798 | 3163 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3164 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3165 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3166 | return _resultobj; |
3167 | } | |
3168 | ||
c7e7022c RD |
3169 | #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage()) |
3170 | static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3171 | PyObject * _resultobj; |
c7e7022c RD |
3172 | int _result; |
3173 | wxPyListCtrl * _arg0; | |
1d99702e | 3174 | PyObject * _argo0 = 0; |
c7e7022c | 3175 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3176 | |
3177 | self = self; | |
c7e7022c | 3178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0)) |
8ab979d7 | 3179 | return NULL; |
1d99702e RD |
3180 | if (_argo0) { |
3181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3184 | return NULL; |
3185 | } | |
3186 | } | |
cf694132 | 3187 | { |
4268f798 | 3188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3189 | _result = (int )wxListCtrl_GetCountPerPage(_arg0); |
cf694132 | 3190 | |
4268f798 | 3191 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3192 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3193 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3194 | return _resultobj; |
3195 | } | |
3196 | ||
025fa9a9 RD |
3197 | #define wxListCtrl_GetViewRect(_swigobj) (_swigobj->GetViewRect()) |
3198 | static PyObject *_wrap_wxListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3199 | PyObject * _resultobj; | |
3200 | wxRect * _result; | |
3201 | wxPyListCtrl * _arg0; | |
3202 | PyObject * _argo0 = 0; | |
3203 | char *_kwnames[] = { "self", NULL }; | |
3204 | char _ptemp[128]; | |
3205 | ||
3206 | self = self; | |
3207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetViewRect",_kwnames,&_argo0)) | |
3208 | return NULL; | |
3209 | if (_argo0) { | |
3210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetViewRect. Expected _wxPyListCtrl_p."); | |
3213 | return NULL; | |
3214 | } | |
3215 | } | |
3216 | { | |
3217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3218 | _result = new wxRect (wxListCtrl_GetViewRect(_arg0)); | |
3219 | ||
3220 | wxPyEndAllowThreads(__tstate); | |
3221 | if (PyErr_Occurred()) return NULL; | |
3222 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
3223 | _resultobj = Py_BuildValue("s",_ptemp); | |
3224 | return _resultobj; | |
3225 | } | |
3226 | ||
c7e7022c RD |
3227 | #define wxListCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) |
3228 | static PyObject *_wrap_wxListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3229 | PyObject * _resultobj; |
c7e7022c RD |
3230 | wxTextCtrl * _result; |
3231 | wxPyListCtrl * _arg0; | |
1d99702e | 3232 | PyObject * _argo0 = 0; |
c7e7022c | 3233 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3234 | |
3235 | self = self; | |
c7e7022c | 3236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetEditControl",_kwnames,&_argo0)) |
8ab979d7 | 3237 | return NULL; |
1d99702e RD |
3238 | if (_argo0) { |
3239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetEditControl. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3242 | return NULL; |
3243 | } | |
3244 | } | |
cf694132 | 3245 | { |
4268f798 | 3246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3247 | _result = (wxTextCtrl *)wxListCtrl_GetEditControl(_arg0); |
cf694132 | 3248 | |
4268f798 | 3249 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3250 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3251 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
3252 | return _resultobj; |
3253 | } | |
3254 | ||
c7e7022c RD |
3255 | static wxListItem * wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col) { |
3256 | wxListItem* info = new wxListItem; | |
3257 | info->m_itemId = itemId; | |
3258 | info->m_col = col; | |
3259 | info->m_mask = 0xFFFF; | |
3260 | self->GetItem(*info); | |
3261 | return info; | |
3262 | } | |
3263 | static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 3264 | PyObject * _resultobj; |
c7e7022c RD |
3265 | wxListItem * _result; |
3266 | wxPyListCtrl * _arg0; | |
3267 | long _arg1; | |
3268 | int _arg2 = (int ) 0; | |
1d99702e | 3269 | PyObject * _argo0 = 0; |
c7e7022c | 3270 | char *_kwnames[] = { "self","itemId","col", NULL }; |
be4d9c1f RD |
3271 | |
3272 | self = self; | |
c7e7022c | 3273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
be4d9c1f | 3274 | return NULL; |
1d99702e RD |
3275 | if (_argo0) { |
3276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxPyListCtrl_p."); | |
be4d9c1f RD |
3279 | return NULL; |
3280 | } | |
3281 | } | |
cf694132 | 3282 | { |
4268f798 | 3283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3284 | _result = (wxListItem *)wxPyListCtrl_GetItem(_arg0,_arg1,_arg2); |
cf694132 | 3285 | |
4268f798 | 3286 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3287 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 3288 | }{ _resultobj = wxPyMake_wxObject(_result); } |
be4d9c1f RD |
3289 | return _resultobj; |
3290 | } | |
3291 | ||
c7e7022c RD |
3292 | #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) |
3293 | static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3294 | PyObject * _resultobj; |
3295 | bool _result; | |
c7e7022c RD |
3296 | wxPyListCtrl * _arg0; |
3297 | wxListItem * _arg1; | |
1d99702e | 3298 | PyObject * _argo0 = 0; |
c7e7022c RD |
3299 | PyObject * _argo1 = 0; |
3300 | char *_kwnames[] = { "self","info", NULL }; | |
8ab979d7 RD |
3301 | |
3302 | self = self; | |
c7e7022c | 3303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3304 | return NULL; |
1d99702e RD |
3305 | if (_argo0) { |
3306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxPyListCtrl_p."); | |
3309 | return NULL; | |
3310 | } | |
3311 | } | |
3312 | if (_argo1) { | |
7e50db3f | 3313 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { |
c7e7022c | 3314 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p."); |
8ab979d7 RD |
3315 | return NULL; |
3316 | } | |
3317 | } | |
cf694132 | 3318 | { |
4268f798 | 3319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3320 | _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1); |
cf694132 | 3321 | |
4268f798 | 3322 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3323 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3324 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3325 | return _resultobj; |
3326 | } | |
3327 | ||
c7e7022c RD |
3328 | #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3329 | static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3330 | PyObject * _resultobj; |
3331 | long _result; | |
c7e7022c | 3332 | wxPyListCtrl * _arg0; |
8ab979d7 | 3333 | long _arg1; |
c7e7022c RD |
3334 | int _arg2; |
3335 | wxString * _arg3; | |
3336 | int _arg4 = (int ) -1; | |
1d99702e | 3337 | PyObject * _argo0 = 0; |
c7e7022c RD |
3338 | PyObject * _obj3 = 0; |
3339 | char *_kwnames[] = { "self","index","col","label","imageId", NULL }; | |
8ab979d7 RD |
3340 | |
3341 | self = self; | |
c7e7022c | 3342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
8ab979d7 | 3343 | return NULL; |
1d99702e RD |
3344 | if (_argo0) { |
3345 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3346 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3348 | return NULL; |
3349 | } | |
3350 | } | |
3351 | { | |
c8bc7bb8 RD |
3352 | _arg3 = wxString_in_helper(_obj3); |
3353 | if (_arg3 == NULL) | |
185d7c3e | 3354 | return NULL; |
8ab979d7 | 3355 | } |
cf694132 | 3356 | { |
4268f798 | 3357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3358 | _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4); |
cf694132 | 3359 | |
4268f798 | 3360 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3361 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3362 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 3363 | { |
c7e7022c RD |
3364 | if (_obj3) |
3365 | delete _arg3; | |
8ab979d7 RD |
3366 | } |
3367 | return _resultobj; | |
3368 | } | |
3369 | ||
c7e7022c RD |
3370 | #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1)) |
3371 | static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3372 | PyObject * _resultobj; |
c7e7022c RD |
3373 | int _result; |
3374 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
3375 | long _arg1; |
3376 | long _arg2; | |
1d99702e | 3377 | PyObject * _argo0 = 0; |
c7e7022c | 3378 | char *_kwnames[] = { "self","item","stateMask", NULL }; |
8ab979d7 RD |
3379 | |
3380 | self = self; | |
c7e7022c | 3381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3382 | return NULL; |
1d99702e RD |
3383 | if (_argo0) { |
3384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3387 | return NULL; |
3388 | } | |
3389 | } | |
cf694132 | 3390 | { |
4268f798 | 3391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3392 | _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2); |
cf694132 | 3393 | |
4268f798 | 3394 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3395 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3396 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3397 | return _resultobj; |
3398 | } | |
3399 | ||
c7e7022c RD |
3400 | #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2)) |
3401 | static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3402 | PyObject * _resultobj; |
c7e7022c RD |
3403 | bool _result; |
3404 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3405 | long _arg1; |
c7e7022c RD |
3406 | long _arg2; |
3407 | long _arg3; | |
1d99702e | 3408 | PyObject * _argo0 = 0; |
c7e7022c | 3409 | char *_kwnames[] = { "self","item","state","stateMask", NULL }; |
8ab979d7 RD |
3410 | |
3411 | self = self; | |
c7e7022c | 3412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3413 | return NULL; |
1d99702e RD |
3414 | if (_argo0) { |
3415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3418 | return NULL; |
3419 | } | |
3420 | } | |
cf694132 | 3421 | { |
4268f798 | 3422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3423 | _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3424 | |
4268f798 | 3425 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3426 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3427 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3428 | return _resultobj; |
3429 | } | |
3430 | ||
c7e7022c RD |
3431 | #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
3432 | static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3433 | PyObject * _resultobj; |
3434 | bool _result; | |
c7e7022c RD |
3435 | wxPyListCtrl * _arg0; |
3436 | long _arg1; | |
3437 | int _arg2; | |
3438 | int _arg3; | |
1d99702e | 3439 | PyObject * _argo0 = 0; |
c7e7022c | 3440 | char *_kwnames[] = { "self","item","image","selImage", NULL }; |
8ab979d7 RD |
3441 | |
3442 | self = self; | |
c7e7022c | 3443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3444 | return NULL; |
1d99702e RD |
3445 | if (_argo0) { |
3446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3449 | return NULL; |
3450 | } | |
3451 | } | |
cf694132 | 3452 | { |
4268f798 | 3453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3454 | _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3455 | |
4268f798 | 3456 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3457 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3458 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3459 | return _resultobj; |
3460 | } | |
3461 | ||
c7e7022c RD |
3462 | #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
3463 | static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3464 | PyObject * _resultobj; |
c7e7022c RD |
3465 | wxString * _result; |
3466 | wxPyListCtrl * _arg0; | |
3467 | long _arg1; | |
1d99702e | 3468 | PyObject * _argo0 = 0; |
c7e7022c | 3469 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3470 | |
3471 | self = self; | |
c7e7022c | 3472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3473 | return NULL; |
1d99702e RD |
3474 | if (_argo0) { |
3475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3478 | return NULL; |
3479 | } | |
3480 | } | |
cf694132 | 3481 | { |
4268f798 | 3482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3483 | _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1)); |
cf694132 | 3484 | |
4268f798 | 3485 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3486 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3487 | }{ |
c8bc7bb8 | 3488 | #if wxUSE_UNICODE |
7e50db3f | 3489 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3490 | #else |
c7e7022c | 3491 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3492 | #endif |
c7e7022c RD |
3493 | } |
3494 | { | |
3495 | delete _result; | |
3496 | } | |
8ab979d7 RD |
3497 | return _resultobj; |
3498 | } | |
3499 | ||
c7e7022c RD |
3500 | #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
3501 | static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3502 | PyObject * _resultobj; |
c7e7022c RD |
3503 | wxPyListCtrl * _arg0; |
3504 | long _arg1; | |
3505 | wxString * _arg2; | |
1d99702e | 3506 | PyObject * _argo0 = 0; |
c7e7022c RD |
3507 | PyObject * _obj2 = 0; |
3508 | char *_kwnames[] = { "self","item","str", NULL }; | |
8ab979d7 RD |
3509 | |
3510 | self = self; | |
c7e7022c | 3511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3512 | return NULL; |
1d99702e RD |
3513 | if (_argo0) { |
3514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3517 | return NULL; |
3518 | } | |
3519 | } | |
cf694132 | 3520 | { |
c8bc7bb8 RD |
3521 | _arg2 = wxString_in_helper(_obj2); |
3522 | if (_arg2 == NULL) | |
8ab979d7 | 3523 | return NULL; |
c7e7022c | 3524 | } |
cf694132 | 3525 | { |
4268f798 | 3526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3527 | wxListCtrl_SetItemText(_arg0,_arg1,*_arg2); |
cf694132 | 3528 | |
4268f798 | 3529 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3530 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
3531 | } Py_INCREF(Py_None); |
3532 | _resultobj = Py_None; | |
3533 | { | |
3534 | if (_obj2) | |
3535 | delete _arg2; | |
3536 | } | |
8ab979d7 RD |
3537 | return _resultobj; |
3538 | } | |
3539 | ||
3540 | #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0)) | |
efc5f224 | 3541 | static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3542 | PyObject * _resultobj; |
3543 | long _result; | |
c7e7022c | 3544 | wxPyListCtrl * _arg0; |
8ab979d7 | 3545 | long _arg1; |
1d99702e | 3546 | PyObject * _argo0 = 0; |
efc5f224 | 3547 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3548 | |
3549 | self = self; | |
efc5f224 | 3550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3551 | return NULL; |
1d99702e RD |
3552 | if (_argo0) { |
3553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3556 | return NULL; |
3557 | } | |
3558 | } | |
cf694132 | 3559 | { |
4268f798 | 3560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3561 | _result = (long )wxListCtrl_GetItemData(_arg0,_arg1); |
cf694132 | 3562 | |
4268f798 | 3563 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3564 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3565 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
3566 | return _resultobj; |
3567 | } | |
3568 | ||
c7e7022c RD |
3569 | #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1)) |
3570 | static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3571 | PyObject * _resultobj; |
c7e7022c RD |
3572 | bool _result; |
3573 | wxPyListCtrl * _arg0; | |
0699c864 | 3574 | long _arg1; |
c7e7022c | 3575 | long _arg2; |
1d99702e | 3576 | PyObject * _argo0 = 0; |
c7e7022c | 3577 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
3578 | |
3579 | self = self; | |
c7e7022c | 3580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3581 | return NULL; |
1d99702e RD |
3582 | if (_argo0) { |
3583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3586 | return NULL; |
3587 | } | |
3588 | } | |
cf694132 | 3589 | { |
4268f798 | 3590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3591 | _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2); |
cf694132 | 3592 | |
4268f798 | 3593 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3594 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3595 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3596 | return _resultobj; |
3597 | } | |
3598 | ||
c7e7022c | 3599 | static wxPoint * wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item) { |
8ab979d7 RD |
3600 | wxPoint* pos = new wxPoint; |
3601 | self->GetItemPosition(item, *pos); | |
3602 | return pos; | |
3603 | } | |
efc5f224 | 3604 | static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3605 | PyObject * _resultobj; |
3606 | wxPoint * _result; | |
c7e7022c | 3607 | wxPyListCtrl * _arg0; |
8ab979d7 | 3608 | long _arg1; |
1d99702e | 3609 | PyObject * _argo0 = 0; |
efc5f224 | 3610 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3611 | char _ptemp[128]; |
3612 | ||
3613 | self = self; | |
efc5f224 | 3614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3615 | return NULL; |
1d99702e RD |
3616 | if (_argo0) { |
3617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3620 | return NULL; |
3621 | } | |
3622 | } | |
cf694132 | 3623 | { |
4268f798 | 3624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3625 | _result = (wxPoint *)wxPyListCtrl_GetItemPosition(_arg0,_arg1); |
cf694132 | 3626 | |
4268f798 | 3627 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3628 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3629 | } if (_result) { |
3630 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
3631 | _resultobj = Py_BuildValue("s",_ptemp); | |
3632 | } else { | |
3633 | Py_INCREF(Py_None); | |
3634 | _resultobj = Py_None; | |
3635 | } | |
8ab979d7 RD |
3636 | return _resultobj; |
3637 | } | |
3638 | ||
c7e7022c | 3639 | static wxRect * wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code) { |
8ab979d7 RD |
3640 | wxRect* rect= new wxRect; |
3641 | self->GetItemRect(item, *rect, code); | |
3642 | return rect; | |
3643 | } | |
efc5f224 | 3644 | static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3645 | PyObject * _resultobj; |
3646 | wxRect * _result; | |
c7e7022c | 3647 | wxPyListCtrl * _arg0; |
8ab979d7 | 3648 | long _arg1; |
1d99702e RD |
3649 | int _arg2 = (int ) (wxLIST_RECT_BOUNDS); |
3650 | PyObject * _argo0 = 0; | |
efc5f224 | 3651 | char *_kwnames[] = { "self","item","code", NULL }; |
8ab979d7 RD |
3652 | char _ptemp[128]; |
3653 | ||
3654 | self = self; | |
efc5f224 | 3655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3656 | return NULL; |
1d99702e RD |
3657 | if (_argo0) { |
3658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3661 | return NULL; |
3662 | } | |
3663 | } | |
cf694132 | 3664 | { |
4268f798 | 3665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3666 | _result = (wxRect *)wxPyListCtrl_GetItemRect(_arg0,_arg1,_arg2); |
cf694132 | 3667 | |
4268f798 | 3668 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3669 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3670 | } if (_result) { |
3671 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
3672 | _resultobj = Py_BuildValue("s",_ptemp); | |
3673 | } else { | |
3674 | Py_INCREF(Py_None); | |
3675 | _resultobj = Py_None; | |
3676 | } | |
8ab979d7 RD |
3677 | return _resultobj; |
3678 | } | |
3679 | ||
c7e7022c RD |
3680 | #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1)) |
3681 | static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3682 | PyObject * _resultobj; |
c7e7022c RD |
3683 | bool _result; |
3684 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3685 | long _arg1; |
c7e7022c | 3686 | wxPoint * _arg2; |
1d99702e | 3687 | PyObject * _argo0 = 0; |
c7e7022c RD |
3688 | wxPoint temp; |
3689 | PyObject * _obj2 = 0; | |
3690 | char *_kwnames[] = { "self","item","pos", NULL }; | |
8ab979d7 RD |
3691 | |
3692 | self = self; | |
c7e7022c | 3693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3694 | return NULL; |
1d99702e RD |
3695 | if (_argo0) { |
3696 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3697 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3699 | return NULL; |
3700 | } | |
3701 | } | |
c7e7022c RD |
3702 | { |
3703 | _arg2 = &temp; | |
3704 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3705 | return NULL; | |
3706 | } | |
cf694132 | 3707 | { |
4268f798 | 3708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3709 | _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2); |
cf694132 | 3710 | |
4268f798 | 3711 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3712 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3713 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3714 | return _resultobj; |
3715 | } | |
3716 | ||
3717 | #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
efc5f224 | 3718 | static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3719 | PyObject * _resultobj; |
3720 | int _result; | |
c7e7022c | 3721 | wxPyListCtrl * _arg0; |
1d99702e | 3722 | PyObject * _argo0 = 0; |
efc5f224 | 3723 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3724 | |
3725 | self = self; | |
efc5f224 | 3726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3727 | return NULL; |
1d99702e RD |
3728 | if (_argo0) { |
3729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3732 | return NULL; |
3733 | } | |
3734 | } | |
cf694132 | 3735 | { |
4268f798 | 3736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3737 | _result = (int )wxListCtrl_GetItemCount(_arg0); |
cf694132 | 3738 | |
4268f798 | 3739 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3740 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3741 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3742 | return _resultobj; |
3743 | } | |
3744 | ||
c7e7022c RD |
3745 | #define wxListCtrl_GetColumnCount(_swigobj) (_swigobj->GetColumnCount()) |
3746 | static PyObject *_wrap_wxListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3747 | PyObject * _resultobj; |
3748 | int _result; | |
c7e7022c | 3749 | wxPyListCtrl * _arg0; |
1d99702e | 3750 | PyObject * _argo0 = 0; |
c7e7022c | 3751 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3752 | |
3753 | self = self; | |
c7e7022c | 3754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetColumnCount",_kwnames,&_argo0)) |
8ab979d7 | 3755 | return NULL; |
1d99702e RD |
3756 | if (_argo0) { |
3757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3760 | return NULL; |
3761 | } | |
3762 | } | |
cf694132 | 3763 | { |
4268f798 | 3764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3765 | _result = (int )wxListCtrl_GetColumnCount(_arg0); |
cf694132 | 3766 | |
4268f798 | 3767 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3768 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3769 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3770 | return _resultobj; |
3771 | } | |
3772 | ||
025fa9a9 | 3773 | #define wxListCtrl_GetItemSpacing(_swigobj) (_swigobj->GetItemSpacing()) |
c7e7022c | 3774 | static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3775 | PyObject * _resultobj; |
025fa9a9 | 3776 | wxSize * _result; |
c7e7022c | 3777 | wxPyListCtrl * _arg0; |
1d99702e | 3778 | PyObject * _argo0 = 0; |
025fa9a9 RD |
3779 | char *_kwnames[] = { "self", NULL }; |
3780 | char _ptemp[128]; | |
8ab979d7 RD |
3781 | |
3782 | self = self; | |
025fa9a9 | 3783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemSpacing",_kwnames,&_argo0)) |
8ab979d7 | 3784 | return NULL; |
1d99702e RD |
3785 | if (_argo0) { |
3786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3789 | return NULL; |
3790 | } | |
3791 | } | |
8ab979d7 | 3792 | { |
4268f798 | 3793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
025fa9a9 | 3794 | _result = new wxSize (wxListCtrl_GetItemSpacing(_arg0)); |
cf694132 | 3795 | |
4268f798 | 3796 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3797 | if (PyErr_Occurred()) return NULL; |
025fa9a9 RD |
3798 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
3799 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
3800 | return _resultobj; |
3801 | } | |
3802 | ||
c7e7022c RD |
3803 | #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount()) |
3804 | static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3805 | PyObject * _resultobj; |
c7e7022c RD |
3806 | int _result; |
3807 | wxPyListCtrl * _arg0; | |
1d99702e | 3808 | PyObject * _argo0 = 0; |
c7e7022c | 3809 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3810 | |
3811 | self = self; | |
c7e7022c | 3812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3813 | return NULL; |
1d99702e RD |
3814 | if (_argo0) { |
3815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3818 | return NULL; |
3819 | } | |
3820 | } | |
cf694132 | 3821 | { |
4268f798 | 3822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3823 | _result = (int )wxListCtrl_GetSelectedItemCount(_arg0); |
cf694132 | 3824 | |
4268f798 | 3825 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3826 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3827 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3828 | return _resultobj; |
3829 | } | |
3830 | ||
c7e7022c RD |
3831 | #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
3832 | static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3833 | PyObject * _resultobj; |
c7e7022c RD |
3834 | wxColour * _result; |
3835 | wxPyListCtrl * _arg0; | |
1d99702e | 3836 | PyObject * _argo0 = 0; |
efc5f224 | 3837 | char *_kwnames[] = { "self", NULL }; |
c7e7022c | 3838 | char _ptemp[128]; |
8ab979d7 RD |
3839 | |
3840 | self = self; | |
c7e7022c | 3841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 3842 | return NULL; |
1d99702e RD |
3843 | if (_argo0) { |
3844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3847 | return NULL; |
3848 | } | |
3849 | } | |
cf694132 | 3850 | { |
4268f798 | 3851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3852 | _result = new wxColour (wxListCtrl_GetTextColour(_arg0)); |
cf694132 | 3853 | |
4268f798 | 3854 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3855 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3856 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
3857 | _resultobj = Py_BuildValue("s",_ptemp); |
3858 | return _resultobj; | |
3859 | } | |
3860 | ||
be4d9c1f | 3861 | #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
efc5f224 | 3862 | static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
be4d9c1f | 3863 | PyObject * _resultobj; |
c7e7022c | 3864 | wxPyListCtrl * _arg0; |
be4d9c1f | 3865 | wxColour * _arg1; |
1d99702e | 3866 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3867 | wxColour temp; |
3868 | PyObject * _obj1 = 0; | |
efc5f224 | 3869 | char *_kwnames[] = { "self","col", NULL }; |
be4d9c1f RD |
3870 | |
3871 | self = self; | |
f6bcfd97 | 3872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1)) |
be4d9c1f | 3873 | return NULL; |
1d99702e RD |
3874 | if (_argo0) { |
3875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxPyListCtrl_p."); | |
be4d9c1f RD |
3878 | return NULL; |
3879 | } | |
3880 | } | |
f6bcfd97 BP |
3881 | { |
3882 | _arg1 = &temp; | |
3883 | if (! wxColour_helper(_obj1, &_arg1)) | |
be4d9c1f | 3884 | return NULL; |
f6bcfd97 | 3885 | } |
cf694132 | 3886 | { |
4268f798 | 3887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3888 | wxListCtrl_SetTextColour(_arg0,*_arg1); |
cf694132 | 3889 | |
4268f798 | 3890 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3891 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3892 | } Py_INCREF(Py_None); |
be4d9c1f RD |
3893 | _resultobj = Py_None; |
3894 | return _resultobj; | |
3895 | } | |
3896 | ||
8ab979d7 | 3897 | #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem()) |
efc5f224 | 3898 | static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3899 | PyObject * _resultobj; |
3900 | long _result; | |
c7e7022c | 3901 | wxPyListCtrl * _arg0; |
1d99702e | 3902 | PyObject * _argo0 = 0; |
efc5f224 | 3903 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3904 | |
3905 | self = self; | |
efc5f224 | 3906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0)) |
8ab979d7 | 3907 | return NULL; |
1d99702e RD |
3908 | if (_argo0) { |
3909 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3910 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3912 | return NULL; |
3913 | } | |
3914 | } | |
cf694132 | 3915 | { |
4268f798 | 3916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3917 | _result = (long )wxListCtrl_GetTopItem(_arg0); |
cf694132 | 3918 | |
4268f798 | 3919 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3920 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3921 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
3922 | return _resultobj; |
3923 | } | |
3924 | ||
c7e7022c RD |
3925 | #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1)) |
3926 | static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3927 | PyObject * _resultobj; |
c7e7022c RD |
3928 | wxPyListCtrl * _arg0; |
3929 | long _arg1; | |
3930 | bool _arg2 = (bool ) TRUE; | |
1d99702e | 3931 | PyObject * _argo0 = 0; |
c7e7022c RD |
3932 | int tempbool2 = (int) TRUE; |
3933 | char *_kwnames[] = { "self","style","add", NULL }; | |
8ab979d7 RD |
3934 | |
3935 | self = self; | |
c7e7022c | 3936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 3937 | return NULL; |
1d99702e RD |
3938 | if (_argo0) { |
3939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3942 | return NULL; |
3943 | } | |
3944 | } | |
c7e7022c | 3945 | _arg2 = (bool ) tempbool2; |
cf694132 | 3946 | { |
4268f798 | 3947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3948 | wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2); |
cf694132 | 3949 | |
4268f798 | 3950 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3951 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
3952 | } Py_INCREF(Py_None); |
3953 | _resultobj = Py_None; | |
8ab979d7 RD |
3954 | return _resultobj; |
3955 | } | |
3956 | ||
c7e7022c RD |
3957 | #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
3958 | static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3959 | PyObject * _resultobj; |
c7e7022c | 3960 | wxPyListCtrl * _arg0; |
8ab979d7 | 3961 | long _arg1; |
1d99702e | 3962 | PyObject * _argo0 = 0; |
c7e7022c | 3963 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
3964 | |
3965 | self = self; | |
c7e7022c | 3966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3967 | return NULL; |
1d99702e RD |
3968 | if (_argo0) { |
3969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3972 | return NULL; |
3973 | } | |
3974 | } | |
cf694132 | 3975 | { |
4268f798 | 3976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3977 | wxListCtrl_SetWindowStyleFlag(_arg0,_arg1); |
cf694132 | 3978 | |
4268f798 | 3979 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3980 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
3981 | } Py_INCREF(Py_None); |
3982 | _resultobj = Py_None; | |
8ab979d7 RD |
3983 | return _resultobj; |
3984 | } | |
3985 | ||
c7e7022c RD |
3986 | #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2)) |
3987 | static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3988 | PyObject * _resultobj; |
3989 | long _result; | |
c7e7022c | 3990 | wxPyListCtrl * _arg0; |
8ab979d7 | 3991 | long _arg1; |
c7e7022c RD |
3992 | int _arg2 = (int ) (wxLIST_NEXT_ALL); |
3993 | int _arg3 = (int ) (wxLIST_STATE_DONTCARE); | |
1d99702e | 3994 | PyObject * _argo0 = 0; |
c7e7022c | 3995 | char *_kwnames[] = { "self","item","geometry","state", NULL }; |
8ab979d7 RD |
3996 | |
3997 | self = self; | |
c7e7022c | 3998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3999 | return NULL; |
1d99702e RD |
4000 | if (_argo0) { |
4001 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4002 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4004 | return NULL; |
4005 | } | |
4006 | } | |
4007 | { | |
4268f798 | 4008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4009 | _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3); |
c7e7022c | 4010 | |
4268f798 | 4011 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4012 | if (PyErr_Occurred()) return NULL; |
4013 | } _resultobj = Py_BuildValue("l",_result); | |
4014 | return _resultobj; | |
4015 | } | |
4016 | ||
4017 | #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0)) | |
4018 | static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4019 | PyObject * _resultobj; | |
4020 | wxImageList * _result; | |
4021 | wxPyListCtrl * _arg0; | |
4022 | int _arg1; | |
4023 | PyObject * _argo0 = 0; | |
4024 | char *_kwnames[] = { "self","which", NULL }; | |
4025 | ||
4026 | self = self; | |
4027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1)) | |
185d7c3e | 4028 | return NULL; |
c7e7022c RD |
4029 | if (_argo0) { |
4030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 | 4033 | return NULL; |
c7e7022c | 4034 | } |
8ab979d7 | 4035 | } |
cf694132 | 4036 | { |
4268f798 | 4037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4038 | _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1); |
cf694132 | 4039 | |
4268f798 | 4040 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4041 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4042 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
4043 | return _resultobj; |
4044 | } | |
4045 | ||
c7e7022c RD |
4046 | #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1)) |
4047 | static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4048 | PyObject * _resultobj; |
c7e7022c RD |
4049 | wxPyListCtrl * _arg0; |
4050 | wxImageList * _arg1; | |
4051 | int _arg2; | |
1d99702e RD |
4052 | PyObject * _argo0 = 0; |
4053 | PyObject * _argo1 = 0; | |
c7e7022c | 4054 | char *_kwnames[] = { "self","imageList","which", NULL }; |
8ab979d7 RD |
4055 | |
4056 | self = self; | |
c7e7022c | 4057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4058 | return NULL; |
1d99702e RD |
4059 | if (_argo0) { |
4060 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4061 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4063 | return NULL; |
4064 | } | |
4065 | } | |
1d99702e RD |
4066 | if (_argo1) { |
4067 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
c7e7022c RD |
4068 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { |
4069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p."); | |
8ab979d7 RD |
4070 | return NULL; |
4071 | } | |
4072 | } | |
cf694132 | 4073 | { |
4268f798 | 4074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4075 | wxListCtrl_SetImageList(_arg0,_arg1,_arg2); |
cf694132 | 4076 | |
4268f798 | 4077 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4078 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4079 | } Py_INCREF(Py_None); |
4080 | _resultobj = Py_None; | |
8ab979d7 RD |
4081 | return _resultobj; |
4082 | } | |
4083 | ||
c7e7022c RD |
4084 | #define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1)) |
4085 | static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4086 | PyObject * _resultobj; |
c7e7022c RD |
4087 | wxPyListCtrl * _arg0; |
4088 | wxImageList * _arg1; | |
4089 | int _arg2; | |
1d99702e | 4090 | PyObject * _argo0 = 0; |
c7e7022c RD |
4091 | PyObject * _argo1 = 0; |
4092 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
8ab979d7 RD |
4093 | |
4094 | self = self; | |
c7e7022c | 4095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4096 | return NULL; |
1d99702e RD |
4097 | if (_argo0) { |
4098 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4099 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4100 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4101 | return NULL; |
4102 | } | |
4103 | } | |
c7e7022c RD |
4104 | if (_argo1) { |
4105 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4106 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4107 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p."); | |
8ab979d7 | 4108 | return NULL; |
c7e7022c | 4109 | } |
8ab979d7 | 4110 | } |
cf694132 | 4111 | { |
4268f798 | 4112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4113 | wxListCtrl_AssignImageList(_arg0,_arg1,_arg2); |
cf694132 | 4114 | |
4268f798 | 4115 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4116 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4117 | } Py_INCREF(Py_None); |
4118 | _resultobj = Py_None; | |
8ab979d7 RD |
4119 | return _resultobj; |
4120 | } | |
4121 | ||
c7e7022c RD |
4122 | #define wxListCtrl_IsVirtual(_swigobj) (_swigobj->IsVirtual()) |
4123 | static PyObject *_wrap_wxListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4124 | PyObject * _resultobj; |
c7e7022c RD |
4125 | bool _result; |
4126 | wxPyListCtrl * _arg0; | |
1d99702e | 4127 | PyObject * _argo0 = 0; |
c7e7022c | 4128 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4129 | |
4130 | self = self; | |
c7e7022c | 4131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_IsVirtual",_kwnames,&_argo0)) |
8ab979d7 | 4132 | return NULL; |
1d99702e RD |
4133 | if (_argo0) { |
4134 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4135 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_IsVirtual. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4137 | return NULL; |
4138 | } | |
4139 | } | |
cf694132 | 4140 | { |
4268f798 | 4141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4142 | _result = (bool )wxListCtrl_IsVirtual(_arg0); |
cf694132 | 4143 | |
4268f798 | 4144 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4145 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4146 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4147 | return _resultobj; |
4148 | } | |
4149 | ||
c7e7022c RD |
4150 | #define wxListCtrl_RefreshItem(_swigobj,_swigarg0) (_swigobj->RefreshItem(_swigarg0)) |
4151 | static PyObject *_wrap_wxListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4152 | PyObject * _resultobj; |
c7e7022c | 4153 | wxPyListCtrl * _arg0; |
8ab979d7 | 4154 | long _arg1; |
1d99702e | 4155 | PyObject * _argo0 = 0; |
c7e7022c | 4156 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4157 | |
4158 | self = self; | |
c7e7022c | 4159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_RefreshItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4160 | return NULL; |
1d99702e RD |
4161 | if (_argo0) { |
4162 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4163 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4164 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4165 | return NULL; |
4166 | } | |
4167 | } | |
cf694132 | 4168 | { |
4268f798 | 4169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4170 | wxListCtrl_RefreshItem(_arg0,_arg1); |
cf694132 | 4171 | |
4268f798 | 4172 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4173 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4174 | } Py_INCREF(Py_None); |
4175 | _resultobj = Py_None; | |
8ab979d7 RD |
4176 | return _resultobj; |
4177 | } | |
4178 | ||
c7e7022c RD |
4179 | #define wxListCtrl_RefreshItems(_swigobj,_swigarg0,_swigarg1) (_swigobj->RefreshItems(_swigarg0,_swigarg1)) |
4180 | static PyObject *_wrap_wxListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4181 | PyObject * _resultobj; |
c7e7022c RD |
4182 | wxPyListCtrl * _arg0; |
4183 | long _arg1; | |
4184 | long _arg2; | |
1d99702e | 4185 | PyObject * _argo0 = 0; |
c7e7022c | 4186 | char *_kwnames[] = { "self","itemFrom","itemTo", NULL }; |
8ab979d7 RD |
4187 | |
4188 | self = self; | |
c7e7022c | 4189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_RefreshItems",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4190 | return NULL; |
1d99702e RD |
4191 | if (_argo0) { |
4192 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4193 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItems. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4195 | return NULL; |
4196 | } | |
4197 | } | |
cf694132 | 4198 | { |
4268f798 | 4199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4200 | wxListCtrl_RefreshItems(_arg0,_arg1,_arg2); |
cf694132 | 4201 | |
4268f798 | 4202 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4203 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4204 | } Py_INCREF(Py_None); |
4205 | _resultobj = Py_None; | |
8ab979d7 RD |
4206 | return _resultobj; |
4207 | } | |
4208 | ||
c7e7022c RD |
4209 | #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0)) |
4210 | static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4211 | PyObject * _resultobj; |
c7e7022c RD |
4212 | bool _result; |
4213 | wxPyListCtrl * _arg0; | |
4214 | int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT); | |
1d99702e | 4215 | PyObject * _argo0 = 0; |
c7e7022c | 4216 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
4217 | |
4218 | self = self; | |
c7e7022c | 4219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4220 | return NULL; |
1d99702e RD |
4221 | if (_argo0) { |
4222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4225 | return NULL; |
4226 | } | |
4227 | } | |
cf694132 | 4228 | { |
4268f798 | 4229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4230 | _result = (bool )wxListCtrl_Arrange(_arg0,_arg1); |
cf694132 | 4231 | |
4268f798 | 4232 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4233 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4234 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4235 | return _resultobj; |
4236 | } | |
4237 | ||
c7e7022c RD |
4238 | #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0)) |
4239 | static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4240 | PyObject * _resultobj; |
4241 | bool _result; | |
c7e7022c RD |
4242 | wxPyListCtrl * _arg0; |
4243 | long _arg1; | |
1d99702e | 4244 | PyObject * _argo0 = 0; |
c7e7022c | 4245 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4246 | |
4247 | self = self; | |
c7e7022c | 4248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4249 | return NULL; |
1d99702e RD |
4250 | if (_argo0) { |
4251 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4252 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4254 | return NULL; |
4255 | } | |
4256 | } | |
c7e7022c | 4257 | { |
4268f798 | 4258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4259 | _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1); |
c7e7022c | 4260 | |
4268f798 | 4261 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4262 | if (PyErr_Occurred()) return NULL; |
4263 | } _resultobj = Py_BuildValue("i",_result); | |
4264 | return _resultobj; | |
4265 | } | |
4266 | ||
4267 | #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
4268 | static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4269 | PyObject * _resultobj; | |
4270 | bool _result; | |
4271 | wxPyListCtrl * _arg0; | |
4272 | PyObject * _argo0 = 0; | |
4273 | char *_kwnames[] = { "self", NULL }; | |
4274 | ||
4275 | self = self; | |
4276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0)) | |
4277 | return NULL; | |
4278 | if (_argo0) { | |
4279 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4280 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4282 | return NULL; |
4283 | } | |
4284 | } | |
cf694132 | 4285 | { |
4268f798 | 4286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4287 | _result = (bool )wxListCtrl_DeleteAllItems(_arg0); |
cf694132 | 4288 | |
4268f798 | 4289 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4290 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4291 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4292 | return _resultobj; |
4293 | } | |
4294 | ||
c7e7022c RD |
4295 | #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0)) |
4296 | static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4297 | PyObject * _resultobj; |
4298 | bool _result; | |
c7e7022c | 4299 | wxPyListCtrl * _arg0; |
8ab979d7 | 4300 | int _arg1; |
1d99702e | 4301 | PyObject * _argo0 = 0; |
c7e7022c | 4302 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
4303 | |
4304 | self = self; | |
c7e7022c | 4305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4306 | return NULL; |
1d99702e RD |
4307 | if (_argo0) { |
4308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4311 | return NULL; |
4312 | } | |
4313 | } | |
cf694132 | 4314 | { |
4268f798 | 4315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4316 | _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1); |
cf694132 | 4317 | |
4268f798 | 4318 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4319 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4320 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4321 | return _resultobj; |
4322 | } | |
4323 | ||
c7e7022c RD |
4324 | #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns()) |
4325 | static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4326 | PyObject * _resultobj; |
c7e7022c RD |
4327 | bool _result; |
4328 | wxPyListCtrl * _arg0; | |
1d99702e | 4329 | PyObject * _argo0 = 0; |
c7e7022c | 4330 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4331 | |
4332 | self = self; | |
c7e7022c | 4333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0)) |
8ab979d7 | 4334 | return NULL; |
1d99702e RD |
4335 | if (_argo0) { |
4336 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4337 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4339 | return NULL; |
4340 | } | |
4341 | } | |
c7e7022c | 4342 | { |
4268f798 | 4343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4344 | _result = (bool )wxListCtrl_DeleteAllColumns(_arg0); |
c7e7022c | 4345 | |
4268f798 | 4346 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4347 | if (PyErr_Occurred()) return NULL; |
4348 | } _resultobj = Py_BuildValue("i",_result); | |
4349 | return _resultobj; | |
4350 | } | |
4351 | ||
4352 | #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll()) | |
4353 | static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4354 | PyObject * _resultobj; | |
4355 | wxPyListCtrl * _arg0; | |
4356 | PyObject * _argo0 = 0; | |
4357 | char *_kwnames[] = { "self", NULL }; | |
4358 | ||
4359 | self = self; | |
4360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0)) | |
4361 | return NULL; | |
4362 | if (_argo0) { | |
4363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4366 | return NULL; |
4367 | } | |
4368 | } | |
cf694132 | 4369 | { |
4268f798 | 4370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4371 | wxListCtrl_ClearAll(_arg0); |
cf694132 | 4372 | |
4268f798 | 4373 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4374 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4375 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4376 | _resultobj = Py_None; |
4377 | return _resultobj; | |
4378 | } | |
4379 | ||
c7e7022c RD |
4380 | #define wxListCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) |
4381 | static PyObject *_wrap_wxListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4382 | PyObject * _resultobj; | |
4383 | wxTextCtrl * _result; | |
4384 | wxPyListCtrl * _arg0; | |
4385 | long _arg1; | |
4386 | PyObject * _argo0 = 0; | |
4387 | char *_kwnames[] = { "self","item", NULL }; | |
4388 | ||
4389 | self = self; | |
4390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EditLabel",_kwnames,&_argo0,&_arg1)) | |
4391 | return NULL; | |
4392 | if (_argo0) { | |
4393 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4394 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4395 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EditLabel. Expected _wxPyListCtrl_p."); | |
4396 | return NULL; | |
4397 | } | |
4398 | } | |
4399 | { | |
4268f798 | 4400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4401 | _result = (wxTextCtrl *)wxListCtrl_EditLabel(_arg0,_arg1); |
c7e7022c | 4402 | |
4268f798 | 4403 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4404 | if (PyErr_Occurred()) return NULL; |
4405 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
4406 | return _resultobj; | |
4407 | } | |
4408 | ||
4409 | #define wxListCtrl_EndEditLabel(_swigobj,_swigarg0) (_swigobj->EndEditLabel(_swigarg0)) | |
4410 | static PyObject *_wrap_wxListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4411 | PyObject * _resultobj; |
4412 | bool _result; | |
c7e7022c RD |
4413 | wxPyListCtrl * _arg0; |
4414 | bool _arg1; | |
1d99702e | 4415 | PyObject * _argo0 = 0; |
c7e7022c RD |
4416 | int tempbool1; |
4417 | char *_kwnames[] = { "self","cancel", NULL }; | |
8ab979d7 RD |
4418 | |
4419 | self = self; | |
c7e7022c | 4420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_EndEditLabel",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4421 | return NULL; |
1d99702e RD |
4422 | if (_argo0) { |
4423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EndEditLabel. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4426 | return NULL; |
4427 | } | |
4428 | } | |
c7e7022c RD |
4429 | _arg1 = (bool ) tempbool1; |
4430 | { | |
4268f798 | 4431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4432 | _result = (bool )wxListCtrl_EndEditLabel(_arg0,_arg1); |
c7e7022c | 4433 | |
4268f798 | 4434 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4435 | if (PyErr_Occurred()) return NULL; |
4436 | } _resultobj = Py_BuildValue("i",_result); | |
4437 | return _resultobj; | |
4438 | } | |
4439 | ||
4440 | #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
4441 | static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4442 | PyObject * _resultobj; | |
4443 | bool _result; | |
4444 | wxPyListCtrl * _arg0; | |
4445 | long _arg1; | |
4446 | PyObject * _argo0 = 0; | |
4447 | char *_kwnames[] = { "self","item", NULL }; | |
4448 | ||
4449 | self = self; | |
4450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1)) | |
4451 | return NULL; | |
4452 | if (_argo0) { | |
4453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4456 | return NULL; |
4457 | } | |
4458 | } | |
cf694132 | 4459 | { |
4268f798 | 4460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4461 | _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1); |
cf694132 | 4462 | |
4268f798 | 4463 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4464 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4465 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4466 | return _resultobj; |
4467 | } | |
4468 | ||
c7e7022c RD |
4469 | #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4470 | static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4471 | PyObject * _resultobj; |
4472 | long _result; | |
c7e7022c | 4473 | wxPyListCtrl * _arg0; |
8ab979d7 | 4474 | long _arg1; |
c7e7022c RD |
4475 | wxString * _arg2; |
4476 | bool _arg3 = (bool ) FALSE; | |
1d99702e | 4477 | PyObject * _argo0 = 0; |
c7e7022c RD |
4478 | PyObject * _obj2 = 0; |
4479 | int tempbool3 = (int) FALSE; | |
4480 | char *_kwnames[] = { "self","start","str","partial", NULL }; | |
8ab979d7 RD |
4481 | |
4482 | self = self; | |
c7e7022c | 4483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
8ab979d7 | 4484 | return NULL; |
1d99702e RD |
4485 | if (_argo0) { |
4486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4489 | return NULL; |
4490 | } | |
4491 | } | |
4492 | { | |
c8bc7bb8 RD |
4493 | _arg2 = wxString_in_helper(_obj2); |
4494 | if (_arg2 == NULL) | |
8ab979d7 | 4495 | return NULL; |
8ab979d7 | 4496 | } |
c7e7022c | 4497 | _arg3 = (bool ) tempbool3; |
cf694132 | 4498 | { |
4268f798 | 4499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4500 | _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4501 | |
4268f798 | 4502 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4503 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4504 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 4505 | { |
c7e7022c RD |
4506 | if (_obj2) |
4507 | delete _arg2; | |
8ab979d7 RD |
4508 | } |
4509 | return _resultobj; | |
4510 | } | |
4511 | ||
c7e7022c RD |
4512 | #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1)) |
4513 | static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4514 | PyObject * _resultobj; |
c7e7022c RD |
4515 | long _result; |
4516 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4517 | long _arg1; |
4518 | long _arg2; | |
1d99702e | 4519 | PyObject * _argo0 = 0; |
c7e7022c | 4520 | char *_kwnames[] = { "self","start","data", NULL }; |
8ab979d7 RD |
4521 | |
4522 | self = self; | |
c7e7022c | 4523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4524 | return NULL; |
1d99702e RD |
4525 | if (_argo0) { |
4526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4529 | return NULL; |
4530 | } | |
4531 | } | |
cf694132 | 4532 | { |
4268f798 | 4533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4534 | _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2); |
cf694132 | 4535 | |
4268f798 | 4536 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4537 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4538 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4539 | return _resultobj; |
4540 | } | |
4541 | ||
c7e7022c RD |
4542 | #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4543 | static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4544 | PyObject * _resultobj; |
c7e7022c RD |
4545 | long _result; |
4546 | wxPyListCtrl * _arg0; | |
4547 | long _arg1; | |
4548 | wxPoint * _arg2; | |
4549 | int _arg3; | |
4550 | PyObject * _argo0 = 0; | |
4551 | wxPoint temp; | |
4552 | PyObject * _obj2 = 0; | |
4553 | char *_kwnames[] = { "self","start","pt","direction", NULL }; | |
4554 | ||
4555 | self = self; | |
4556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) | |
4557 | return NULL; | |
4558 | if (_argo0) { | |
4559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxPyListCtrl_p."); | |
4562 | return NULL; | |
4563 | } | |
4564 | } | |
4565 | { | |
4566 | _arg2 = &temp; | |
4567 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4568 | return NULL; | |
4569 | } | |
4570 | { | |
4268f798 | 4571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4572 | _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3); |
c7e7022c | 4573 | |
4268f798 | 4574 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4575 | if (PyErr_Occurred()) return NULL; |
4576 | } _resultobj = Py_BuildValue("l",_result); | |
4577 | return _resultobj; | |
4578 | } | |
4579 | ||
4580 | #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) | |
4581 | static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4582 | PyObject * _resultobj; | |
4583 | long _result; | |
4584 | wxPyListCtrl * _arg0; | |
4585 | wxPoint * _arg1; | |
4586 | int * _arg2; | |
4587 | int temp; | |
4588 | PyObject * _argo0 = 0; | |
4589 | wxPoint temp0; | |
4590 | PyObject * _obj1 = 0; | |
4591 | char *_kwnames[] = { "self","point", NULL }; | |
4592 | ||
4593 | self = self; | |
4594 | { | |
4595 | _arg2 = &temp; | |
4596 | } | |
4597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1)) | |
4598 | return NULL; | |
4599 | if (_argo0) { | |
4600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxPyListCtrl_p."); | |
4603 | return NULL; | |
4604 | } | |
4605 | } | |
4606 | { | |
4607 | _arg1 = &temp0; | |
4608 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4609 | return NULL; | |
4610 | } | |
4611 | { | |
4268f798 | 4612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4613 | _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2); |
c7e7022c | 4614 | |
4268f798 | 4615 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4616 | if (PyErr_Occurred()) return NULL; |
4617 | } _resultobj = Py_BuildValue("l",_result); | |
4618 | { | |
4619 | PyObject *o; | |
4620 | o = PyInt_FromLong((long) (*_arg2)); | |
4621 | _resultobj = t_output_helper(_resultobj, o); | |
4622 | } | |
4623 | return _resultobj; | |
4624 | } | |
4625 | ||
4626 | #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0)) | |
4627 | static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4628 | PyObject * _resultobj; | |
4629 | long _result; | |
4630 | wxPyListCtrl * _arg0; | |
4631 | wxListItem * _arg1; | |
4632 | PyObject * _argo0 = 0; | |
4633 | PyObject * _argo1 = 0; | |
4634 | char *_kwnames[] = { "self","info", NULL }; | |
4635 | ||
4636 | self = self; | |
4637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1)) | |
4638 | return NULL; | |
4639 | if (_argo0) { | |
4640 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4641 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxPyListCtrl_p."); | |
4643 | return NULL; | |
4644 | } | |
4645 | } | |
4646 | if (_argo1) { | |
7e50db3f | 4647 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { |
c7e7022c RD |
4648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p."); |
4649 | return NULL; | |
4650 | } | |
4651 | } | |
4652 | { | |
4268f798 | 4653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4654 | _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1); |
c7e7022c | 4655 | |
4268f798 | 4656 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4657 | if (PyErr_Occurred()) return NULL; |
4658 | } _resultobj = Py_BuildValue("l",_result); | |
4659 | return _resultobj; | |
4660 | } | |
4661 | ||
4662 | #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
4663 | static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4664 | PyObject * _resultobj; | |
4665 | long _result; | |
4666 | wxPyListCtrl * _arg0; | |
4667 | long _arg1; | |
4668 | wxString * _arg2; | |
4669 | PyObject * _argo0 = 0; | |
4670 | PyObject * _obj2 = 0; | |
4671 | char *_kwnames[] = { "self","index","label", NULL }; | |
4672 | ||
4673 | self = self; | |
4674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4675 | return NULL; | |
4676 | if (_argo0) { | |
4677 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4678 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxPyListCtrl_p."); | |
4680 | return NULL; | |
4681 | } | |
4682 | } | |
4683 | { | |
c8bc7bb8 RD |
4684 | _arg2 = wxString_in_helper(_obj2); |
4685 | if (_arg2 == NULL) | |
c7e7022c | 4686 | return NULL; |
c7e7022c RD |
4687 | } |
4688 | { | |
4268f798 | 4689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4690 | _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2); |
c7e7022c | 4691 | |
4268f798 | 4692 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4693 | if (PyErr_Occurred()) return NULL; |
4694 | } _resultobj = Py_BuildValue("l",_result); | |
4695 | { | |
4696 | if (_obj2) | |
4697 | delete _arg2; | |
4698 | } | |
4699 | return _resultobj; | |
4700 | } | |
4701 | ||
4702 | #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
4703 | static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4704 | PyObject * _resultobj; | |
4705 | long _result; | |
4706 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4707 | long _arg1; |
4708 | int _arg2; | |
1d99702e | 4709 | PyObject * _argo0 = 0; |
c7e7022c | 4710 | char *_kwnames[] = { "self","index","imageIndex", NULL }; |
8ab979d7 RD |
4711 | |
4712 | self = self; | |
c7e7022c | 4713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4714 | return NULL; |
1d99702e RD |
4715 | if (_argo0) { |
4716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4719 | return NULL; |
4720 | } | |
4721 | } | |
cf694132 | 4722 | { |
4268f798 | 4723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4724 | _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2); |
cf694132 | 4725 | |
4268f798 | 4726 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4727 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4728 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4729 | return _resultobj; |
4730 | } | |
4731 | ||
c7e7022c RD |
4732 | #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2)) |
4733 | static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4734 | PyObject * _resultobj; |
c7e7022c RD |
4735 | long _result; |
4736 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4737 | long _arg1; |
c7e7022c RD |
4738 | wxString * _arg2; |
4739 | int _arg3; | |
1d99702e | 4740 | PyObject * _argo0 = 0; |
2f90df85 | 4741 | PyObject * _obj2 = 0; |
c7e7022c | 4742 | char *_kwnames[] = { "self","index","label","imageIndex", NULL }; |
8ab979d7 RD |
4743 | |
4744 | self = self; | |
c7e7022c | 4745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4746 | return NULL; |
1d99702e RD |
4747 | if (_argo0) { |
4748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4751 | return NULL; |
4752 | } | |
4753 | } | |
2f90df85 | 4754 | { |
c8bc7bb8 RD |
4755 | _arg2 = wxString_in_helper(_obj2); |
4756 | if (_arg2 == NULL) | |
8ab979d7 | 4757 | return NULL; |
2f90df85 | 4758 | } |
cf694132 | 4759 | { |
4268f798 | 4760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4761 | _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4762 | |
4268f798 | 4763 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4764 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4765 | } _resultobj = Py_BuildValue("l",_result); |
4766 | { | |
4767 | if (_obj2) | |
4768 | delete _arg2; | |
4769 | } | |
8ab979d7 RD |
4770 | return _resultobj; |
4771 | } | |
4772 | ||
c7e7022c RD |
4773 | #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) |
4774 | static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4775 | PyObject * _resultobj; |
c7e7022c RD |
4776 | long _result; |
4777 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4778 | long _arg1; |
c7e7022c | 4779 | wxListItem * _arg2; |
1d99702e | 4780 | PyObject * _argo0 = 0; |
c7e7022c RD |
4781 | PyObject * _argo2 = 0; |
4782 | char *_kwnames[] = { "self","col","info", NULL }; | |
8ab979d7 RD |
4783 | |
4784 | self = self; | |
c7e7022c | 4785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 4786 | return NULL; |
1d99702e RD |
4787 | if (_argo0) { |
4788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxPyListCtrl_p."); | |
4791 | return NULL; | |
4792 | } | |
4793 | } | |
4794 | if (_argo2) { | |
7e50db3f | 4795 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { |
c7e7022c | 4796 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p."); |
8ab979d7 RD |
4797 | return NULL; |
4798 | } | |
4799 | } | |
cf694132 | 4800 | { |
4268f798 | 4801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4802 | _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2); |
cf694132 | 4803 | |
4268f798 | 4804 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4805 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4806 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4807 | return _resultobj; |
4808 | } | |
4809 | ||
c7e7022c RD |
4810 | #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4811 | static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4812 | PyObject * _resultobj; |
c7e7022c RD |
4813 | long _result; |
4814 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4815 | long _arg1; |
4816 | wxString * _arg2; | |
c7e7022c RD |
4817 | int _arg3 = (int ) (wxLIST_FORMAT_LEFT); |
4818 | int _arg4 = (int ) -1; | |
1d99702e | 4819 | PyObject * _argo0 = 0; |
8ab979d7 | 4820 | PyObject * _obj2 = 0; |
c7e7022c | 4821 | char *_kwnames[] = { "self","col","heading","format","width", NULL }; |
8ab979d7 RD |
4822 | |
4823 | self = self; | |
c7e7022c | 4824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 4825 | return NULL; |
1d99702e RD |
4826 | if (_argo0) { |
4827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4830 | return NULL; |
4831 | } | |
4832 | } | |
4833 | { | |
c8bc7bb8 RD |
4834 | _arg2 = wxString_in_helper(_obj2); |
4835 | if (_arg2 == NULL) | |
8ab979d7 | 4836 | return NULL; |
8ab979d7 | 4837 | } |
cf694132 | 4838 | { |
4268f798 | 4839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4840 | _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4); |
cf694132 | 4841 | |
4268f798 | 4842 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4843 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4844 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4845 | { |
4846 | if (_obj2) | |
4847 | delete _arg2; | |
4848 | } | |
4849 | return _resultobj; | |
4850 | } | |
4851 | ||
c7e7022c RD |
4852 | #define wxListCtrl_SetItemCount(_swigobj,_swigarg0) (_swigobj->SetItemCount(_swigarg0)) |
4853 | static PyObject *_wrap_wxListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4854 | PyObject * _resultobj; |
c7e7022c | 4855 | wxPyListCtrl * _arg0; |
8ab979d7 | 4856 | long _arg1; |
1d99702e | 4857 | PyObject * _argo0 = 0; |
c7e7022c | 4858 | char *_kwnames[] = { "self","count", NULL }; |
8ab979d7 RD |
4859 | |
4860 | self = self; | |
c7e7022c | 4861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetItemCount",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4862 | return NULL; |
1d99702e RD |
4863 | if (_argo0) { |
4864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4867 | return NULL; |
4868 | } | |
4869 | } | |
cf694132 | 4870 | { |
4268f798 | 4871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4872 | wxListCtrl_SetItemCount(_arg0,_arg1); |
cf694132 | 4873 | |
4268f798 | 4874 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4875 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4876 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4877 | _resultobj = Py_None; |
4878 | return _resultobj; | |
4879 | } | |
4880 | ||
c7e7022c RD |
4881 | #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1)) |
4882 | static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4883 | PyObject * _resultobj; |
c7e7022c RD |
4884 | bool _result; |
4885 | wxPyListCtrl * _arg0; | |
4886 | int _arg1; | |
4887 | int _arg2; | |
1d99702e | 4888 | PyObject * _argo0 = 0; |
c7e7022c | 4889 | char *_kwnames[] = { "self","dx","dy", NULL }; |
8ab979d7 RD |
4890 | |
4891 | self = self; | |
c7e7022c | 4892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4893 | return NULL; |
1d99702e RD |
4894 | if (_argo0) { |
4895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4898 | return NULL; |
4899 | } | |
4900 | } | |
cf694132 | 4901 | { |
4268f798 | 4902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4903 | _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2); |
cf694132 | 4904 | |
4268f798 | 4905 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4906 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4907 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4908 | return _resultobj; |
4909 | } | |
4910 | ||
3bd1e033 RD |
4911 | #define wxListCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
4912 | static PyObject *_wrap_wxListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4913 | PyObject * _resultobj; | |
4914 | wxPyListCtrl * _arg0; | |
4915 | long _arg1; | |
4916 | wxColour * _arg2; | |
4917 | PyObject * _argo0 = 0; | |
4918 | wxColour temp; | |
4919 | PyObject * _obj2 = 0; | |
4920 | char *_kwnames[] = { "self","item","col", NULL }; | |
4921 | ||
4922 | self = self; | |
4923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemTextColour",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4924 | return NULL; | |
4925 | if (_argo0) { | |
4926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemTextColour. Expected _wxPyListCtrl_p."); | |
4929 | return NULL; | |
4930 | } | |
4931 | } | |
4932 | { | |
4933 | _arg2 = &temp; | |
4934 | if (! wxColour_helper(_obj2, &_arg2)) | |
4935 | return NULL; | |
4936 | } | |
4937 | { | |
4938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4939 | wxListCtrl_SetItemTextColour(_arg0,_arg1,*_arg2); | |
4940 | ||
4941 | wxPyEndAllowThreads(__tstate); | |
4942 | if (PyErr_Occurred()) return NULL; | |
4943 | } Py_INCREF(Py_None); | |
4944 | _resultobj = Py_None; | |
4945 | return _resultobj; | |
4946 | } | |
4947 | ||
4948 | #define wxListCtrl_GetItemTextColour(_swigobj,_swigarg0) (_swigobj->GetItemTextColour(_swigarg0)) | |
4949 | static PyObject *_wrap_wxListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4950 | PyObject * _resultobj; | |
4951 | wxColour * _result; | |
4952 | wxPyListCtrl * _arg0; | |
4953 | long _arg1; | |
4954 | PyObject * _argo0 = 0; | |
4955 | char *_kwnames[] = { "self","item", NULL }; | |
4956 | char _ptemp[128]; | |
4957 | ||
4958 | self = self; | |
4959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemTextColour",_kwnames,&_argo0,&_arg1)) | |
4960 | return NULL; | |
4961 | if (_argo0) { | |
4962 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4963 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4964 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemTextColour. Expected _wxPyListCtrl_p."); | |
4965 | return NULL; | |
4966 | } | |
4967 | } | |
4968 | { | |
4969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4970 | _result = new wxColour (wxListCtrl_GetItemTextColour(_arg0,_arg1)); | |
4971 | ||
4972 | wxPyEndAllowThreads(__tstate); | |
4973 | if (PyErr_Occurred()) return NULL; | |
4974 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
4975 | _resultobj = Py_BuildValue("s",_ptemp); | |
4976 | return _resultobj; | |
4977 | } | |
4978 | ||
4979 | #define wxListCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
4980 | static PyObject *_wrap_wxListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4981 | PyObject * _resultobj; | |
4982 | wxPyListCtrl * _arg0; | |
4983 | long _arg1; | |
4984 | wxColour * _arg2; | |
4985 | PyObject * _argo0 = 0; | |
4986 | wxColour temp; | |
4987 | PyObject * _obj2 = 0; | |
4988 | char *_kwnames[] = { "self","item","col", NULL }; | |
4989 | ||
4990 | self = self; | |
4991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4992 | return NULL; | |
4993 | if (_argo0) { | |
4994 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4995 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4996 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemBackgroundColour. Expected _wxPyListCtrl_p."); | |
4997 | return NULL; | |
4998 | } | |
4999 | } | |
5000 | { | |
5001 | _arg2 = &temp; | |
5002 | if (! wxColour_helper(_obj2, &_arg2)) | |
5003 | return NULL; | |
5004 | } | |
5005 | { | |
5006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5007 | wxListCtrl_SetItemBackgroundColour(_arg0,_arg1,*_arg2); | |
5008 | ||
5009 | wxPyEndAllowThreads(__tstate); | |
5010 | if (PyErr_Occurred()) return NULL; | |
5011 | } Py_INCREF(Py_None); | |
5012 | _resultobj = Py_None; | |
5013 | return _resultobj; | |
5014 | } | |
5015 | ||
5016 | #define wxListCtrl_GetItemBackgroundColour(_swigobj,_swigarg0) (_swigobj->GetItemBackgroundColour(_swigarg0)) | |
5017 | static PyObject *_wrap_wxListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5018 | PyObject * _resultobj; | |
5019 | wxColour * _result; | |
5020 | wxPyListCtrl * _arg0; | |
5021 | long _arg1; | |
5022 | PyObject * _argo0 = 0; | |
5023 | char *_kwnames[] = { "self","item", NULL }; | |
5024 | char _ptemp[128]; | |
5025 | ||
5026 | self = self; | |
5027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemBackgroundColour",_kwnames,&_argo0,&_arg1)) | |
5028 | return NULL; | |
5029 | if (_argo0) { | |
5030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
5032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemBackgroundColour. Expected _wxPyListCtrl_p."); | |
5033 | return NULL; | |
5034 | } | |
5035 | } | |
5036 | { | |
5037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5038 | _result = new wxColour (wxListCtrl_GetItemBackgroundColour(_arg0,_arg1)); | |
5039 | ||
5040 | wxPyEndAllowThreads(__tstate); | |
5041 | if (PyErr_Occurred()) return NULL; | |
5042 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
5043 | _resultobj = Py_BuildValue("s",_ptemp); | |
5044 | return _resultobj; | |
5045 | } | |
5046 | ||
c7e7022c | 5047 | static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject * func) { |
dcd38683 RD |
5048 | if (!PyCallable_Check(func)) |
5049 | return FALSE; | |
f6bcfd97 | 5050 | return self->SortItems(wxPyListCtrl_SortItems, (long)func); |
dcd38683 RD |
5051 | } |
5052 | static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5053 | PyObject * _resultobj; | |
5054 | bool _result; | |
c7e7022c | 5055 | wxPyListCtrl * _arg0; |
dcd38683 RD |
5056 | PyObject * _arg1; |
5057 | PyObject * _argo0 = 0; | |
5058 | PyObject * _obj1 = 0; | |
5059 | char *_kwnames[] = { "self","func", NULL }; | |
5060 | ||
5061 | self = self; | |
5062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1)) | |
5063 | return NULL; | |
5064 | if (_argo0) { | |
5065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
5066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxPyListCtrl_p."); | |
dcd38683 RD |
5068 | return NULL; |
5069 | } | |
5070 | } | |
5071 | { | |
5072 | _arg1 = _obj1; | |
5073 | } | |
5074 | { | |
4268f798 | 5075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5076 | _result = (bool )wxPyListCtrl_SortItems(_arg0,_arg1); |
dcd38683 | 5077 | |
4268f798 | 5078 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5079 | if (PyErr_Occurred()) return NULL; |
dcd38683 RD |
5080 | } _resultobj = Py_BuildValue("i",_result); |
5081 | return _resultobj; | |
5082 | } | |
5083 | ||
6af85fcd RD |
5084 | static wxWindow * wxPyListCtrl_GetMainWindow(wxPyListCtrl *self) { |
5085 | #ifdef __WXMSW__ | |
5086 | return self; | |
5087 | #else | |
032b1ef1 | 5088 | return (wxWindow*)self->m_mainWin; |
6af85fcd RD |
5089 | #endif |
5090 | } | |
5091 | static PyObject *_wrap_wxListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5092 | PyObject * _resultobj; | |
5093 | wxWindow * _result; | |
5094 | wxPyListCtrl * _arg0; | |
5095 | PyObject * _argo0 = 0; | |
5096 | char *_kwnames[] = { "self", NULL }; | |
5097 | ||
5098 | self = self; | |
5099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetMainWindow",_kwnames,&_argo0)) | |
5100 | return NULL; | |
5101 | if (_argo0) { | |
5102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
5104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetMainWindow. Expected _wxPyListCtrl_p."); | |
5105 | return NULL; | |
5106 | } | |
5107 | } | |
5108 | { | |
5109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5110 | _result = (wxWindow *)wxPyListCtrl_GetMainWindow(_arg0); | |
5111 | ||
5112 | wxPyEndAllowThreads(__tstate); | |
5113 | if (PyErr_Occurred()) return NULL; | |
5114 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5115 | return _resultobj; | |
5116 | } | |
5117 | ||
6d19860f RD |
5118 | static void *SwigwxListViewTowxPyListCtrl(void *ptr) { |
5119 | wxListView *src; | |
5120 | wxPyListCtrl *dest; | |
5121 | src = (wxListView *) ptr; | |
5122 | dest = (wxPyListCtrl *) src; | |
5123 | return (void *) dest; | |
5124 | } | |
5125 | ||
5126 | static void *SwigwxListViewTowxControl(void *ptr) { | |
5127 | wxListView *src; | |
5128 | wxControl *dest; | |
5129 | src = (wxListView *) ptr; | |
5130 | dest = (wxControl *) src; | |
5131 | return (void *) dest; | |
5132 | } | |
5133 | ||
5134 | static void *SwigwxListViewTowxWindow(void *ptr) { | |
5135 | wxListView *src; | |
5136 | wxWindow *dest; | |
5137 | src = (wxListView *) ptr; | |
5138 | dest = (wxWindow *) src; | |
5139 | return (void *) dest; | |
5140 | } | |
5141 | ||
5142 | static void *SwigwxListViewTowxEvtHandler(void *ptr) { | |
5143 | wxListView *src; | |
5144 | wxEvtHandler *dest; | |
5145 | src = (wxListView *) ptr; | |
5146 | dest = (wxEvtHandler *) src; | |
5147 | return (void *) dest; | |
5148 | } | |
5149 | ||
5150 | static void *SwigwxListViewTowxObject(void *ptr) { | |
5151 | wxListView *src; | |
5152 | wxObject *dest; | |
5153 | src = (wxListView *) ptr; | |
5154 | dest = (wxObject *) src; | |
5155 | return (void *) dest; | |
5156 | } | |
5157 | ||
5158 | #define new_wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5159 | static PyObject *_wrap_new_wxListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5160 | PyObject * _resultobj; | |
5161 | wxListView * _result; | |
5162 | wxWindow * _arg0; | |
5163 | wxWindowID _arg1 = (wxWindowID ) -1; | |
5164 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
5165 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5166 | long _arg4 = (long ) (wxLC_REPORT); | |
5167 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 5168 | wxString * _arg6 = (wxString *) &wxPyListCtrlNameStr; |
6d19860f RD |
5169 | PyObject * _argo0 = 0; |
5170 | wxPoint temp; | |
5171 | PyObject * _obj2 = 0; | |
5172 | wxSize temp0; | |
5173 | PyObject * _obj3 = 0; | |
5174 | PyObject * _argo5 = 0; | |
5175 | PyObject * _obj6 = 0; | |
5176 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
5177 | char _ptemp[128]; | |
5178 | ||
5179 | self = self; | |
5180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListView",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) | |
5181 | return NULL; | |
5182 | if (_argo0) { | |
5183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListView. Expected _wxWindow_p."); | |
5186 | return NULL; | |
5187 | } | |
5188 | } | |
5189 | if (_obj2) | |
5190 | { | |
5191 | _arg2 = &temp; | |
5192 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5193 | return NULL; | |
5194 | } | |
5195 | if (_obj3) | |
5196 | { | |
5197 | _arg3 = &temp0; | |
5198 | if (! wxSize_helper(_obj3, &_arg3)) | |
5199 | return NULL; | |
5200 | } | |
5201 | if (_argo5) { | |
7e50db3f | 5202 | if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { |
6d19860f RD |
5203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListView. Expected _wxValidator_p."); |
5204 | return NULL; | |
5205 | } | |
5206 | } | |
5207 | if (_obj6) | |
5208 | { | |
c8bc7bb8 RD |
5209 | _arg6 = wxString_in_helper(_obj6); |
5210 | if (_arg6 == NULL) | |
6d19860f | 5211 | return NULL; |
6d19860f RD |
5212 | } |
5213 | { | |
4268f798 | 5214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5215 | _result = (wxListView *)new_wxListView(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
6d19860f | 5216 | |
4268f798 | 5217 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5218 | if (PyErr_Occurred()) return NULL; |
5219 | } if (_result) { | |
5220 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5221 | _resultobj = Py_BuildValue("s",_ptemp); | |
5222 | } else { | |
5223 | Py_INCREF(Py_None); | |
5224 | _resultobj = Py_None; | |
5225 | } | |
5226 | { | |
5227 | if (_obj6) | |
5228 | delete _arg6; | |
5229 | } | |
5230 | return _resultobj; | |
5231 | } | |
5232 | ||
5233 | #define new_wxPreListView() (new wxListView()) | |
5234 | static PyObject *_wrap_new_wxPreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5235 | PyObject * _resultobj; | |
5236 | wxListView * _result; | |
5237 | char *_kwnames[] = { NULL }; | |
5238 | char _ptemp[128]; | |
5239 | ||
5240 | self = self; | |
5241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListView",_kwnames)) | |
5242 | return NULL; | |
5243 | { | |
4268f798 | 5244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5245 | _result = (wxListView *)new_wxPreListView(); |
6d19860f | 5246 | |
4268f798 | 5247 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5248 | if (PyErr_Occurred()) return NULL; |
5249 | } if (_result) { | |
5250 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5251 | _resultobj = Py_BuildValue("s",_ptemp); | |
5252 | } else { | |
5253 | Py_INCREF(Py_None); | |
5254 | _resultobj = Py_None; | |
5255 | } | |
5256 | return _resultobj; | |
5257 | } | |
5258 | ||
5259 | #define wxListView_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5260 | static PyObject *_wrap_wxListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5261 | PyObject * _resultobj; | |
5262 | bool _result; | |
5263 | wxListView * _arg0; | |
5264 | wxWindow * _arg1; | |
5265 | wxWindowID _arg2 = (wxWindowID ) -1; | |
5266 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5267 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5268 | long _arg5 = (long ) (wxLC_REPORT); | |
5269 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 5270 | wxString * _arg7 = (wxString *) &wxPyListCtrlNameStr; |
6d19860f RD |
5271 | PyObject * _argo0 = 0; |
5272 | PyObject * _argo1 = 0; | |
5273 | wxPoint temp; | |
5274 | PyObject * _obj3 = 0; | |
5275 | wxSize temp0; | |
5276 | PyObject * _obj4 = 0; | |
5277 | PyObject * _argo6 = 0; | |
5278 | PyObject * _obj7 = 0; | |
5279 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
5280 | ||
5281 | self = self; | |
5282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListView_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
5283 | return NULL; | |
5284 | if (_argo0) { | |
5285 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5286 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5287 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Create. Expected _wxListView_p."); | |
5288 | return NULL; | |
5289 | } | |
5290 | } | |
5291 | if (_argo1) { | |
5292 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5293 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListView_Create. Expected _wxWindow_p."); | |
5295 | return NULL; | |
5296 | } | |
5297 | } | |
5298 | if (_obj3) | |
5299 | { | |
5300 | _arg3 = &temp; | |
5301 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5302 | return NULL; | |
5303 | } | |
5304 | if (_obj4) | |
5305 | { | |
5306 | _arg4 = &temp0; | |
5307 | if (! wxSize_helper(_obj4, &_arg4)) | |
5308 | return NULL; | |
5309 | } | |
5310 | if (_argo6) { | |
7e50db3f | 5311 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { |
6d19860f RD |
5312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListView_Create. Expected _wxValidator_p."); |
5313 | return NULL; | |
5314 | } | |
5315 | } | |
5316 | if (_obj7) | |
5317 | { | |
c8bc7bb8 RD |
5318 | _arg7 = wxString_in_helper(_obj7); |
5319 | if (_arg7 == NULL) | |
6d19860f | 5320 | return NULL; |
6d19860f RD |
5321 | } |
5322 | { | |
4268f798 | 5323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5324 | _result = (bool )wxListView_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
6d19860f | 5325 | |
4268f798 | 5326 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5327 | if (PyErr_Occurred()) return NULL; |
5328 | } _resultobj = Py_BuildValue("i",_result); | |
5329 | { | |
5330 | if (_obj7) | |
5331 | delete _arg7; | |
5332 | } | |
5333 | return _resultobj; | |
5334 | } | |
5335 | ||
5336 | #define wxListView_Select(_swigobj,_swigarg0,_swigarg1) (_swigobj->Select(_swigarg0,_swigarg1)) | |
5337 | static PyObject *_wrap_wxListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5338 | PyObject * _resultobj; | |
5339 | wxListView * _arg0; | |
5340 | long _arg1; | |
5341 | bool _arg2 = (bool ) TRUE; | |
5342 | PyObject * _argo0 = 0; | |
5343 | int tempbool2 = (int) TRUE; | |
5344 | char *_kwnames[] = { "self","n","on", NULL }; | |
5345 | ||
5346 | self = self; | |
5347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListView_Select",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
5348 | return NULL; | |
5349 | if (_argo0) { | |
5350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Select. Expected _wxListView_p."); | |
5353 | return NULL; | |
5354 | } | |
5355 | } | |
5356 | _arg2 = (bool ) tempbool2; | |
5357 | { | |
4268f798 | 5358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5359 | wxListView_Select(_arg0,_arg1,_arg2); |
6d19860f | 5360 | |
4268f798 | 5361 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5362 | if (PyErr_Occurred()) return NULL; |
5363 | } Py_INCREF(Py_None); | |
5364 | _resultobj = Py_None; | |
5365 | return _resultobj; | |
5366 | } | |
5367 | ||
5368 | #define wxListView_Focus(_swigobj,_swigarg0) (_swigobj->Focus(_swigarg0)) | |
5369 | static PyObject *_wrap_wxListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5370 | PyObject * _resultobj; | |
5371 | wxListView * _arg0; | |
5372 | long _arg1; | |
5373 | PyObject * _argo0 = 0; | |
5374 | char *_kwnames[] = { "self","index", NULL }; | |
5375 | ||
5376 | self = self; | |
5377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_Focus",_kwnames,&_argo0,&_arg1)) | |
5378 | return NULL; | |
5379 | if (_argo0) { | |
5380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Focus. Expected _wxListView_p."); | |
5383 | return NULL; | |
5384 | } | |
5385 | } | |
5386 | { | |
4268f798 | 5387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5388 | wxListView_Focus(_arg0,_arg1); |
6d19860f | 5389 | |
4268f798 | 5390 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5391 | if (PyErr_Occurred()) return NULL; |
5392 | } Py_INCREF(Py_None); | |
5393 | _resultobj = Py_None; | |
5394 | return _resultobj; | |
5395 | } | |
5396 | ||
5397 | #define wxListView_GetFocusedItem(_swigobj) (_swigobj->GetFocusedItem()) | |
5398 | static PyObject *_wrap_wxListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5399 | PyObject * _resultobj; | |
5400 | long _result; | |
5401 | wxListView * _arg0; | |
5402 | PyObject * _argo0 = 0; | |
5403 | char *_kwnames[] = { "self", NULL }; | |
5404 | ||
5405 | self = self; | |
5406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFocusedItem",_kwnames,&_argo0)) | |
5407 | return NULL; | |
5408 | if (_argo0) { | |
5409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFocusedItem. Expected _wxListView_p."); | |
5412 | return NULL; | |
5413 | } | |
5414 | } | |
5415 | { | |
4268f798 | 5416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5417 | _result = (long )wxListView_GetFocusedItem(_arg0); |
6d19860f | 5418 | |
4268f798 | 5419 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5420 | if (PyErr_Occurred()) return NULL; |
5421 | } _resultobj = Py_BuildValue("l",_result); | |
5422 | return _resultobj; | |
5423 | } | |
5424 | ||
5425 | #define wxListView_GetNextSelected(_swigobj,_swigarg0) (_swigobj->GetNextSelected(_swigarg0)) | |
5426 | static PyObject *_wrap_wxListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5427 | PyObject * _resultobj; | |
5428 | long _result; | |
5429 | wxListView * _arg0; | |
5430 | long _arg1; | |
5431 | PyObject * _argo0 = 0; | |
5432 | char *_kwnames[] = { "self","item", NULL }; | |
5433 | ||
5434 | self = self; | |
5435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_GetNextSelected",_kwnames,&_argo0,&_arg1)) | |
5436 | return NULL; | |
5437 | if (_argo0) { | |
5438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetNextSelected. Expected _wxListView_p."); | |
5441 | return NULL; | |
5442 | } | |
5443 | } | |
5444 | { | |
4268f798 | 5445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5446 | _result = (long )wxListView_GetNextSelected(_arg0,_arg1); |
6d19860f | 5447 | |
4268f798 | 5448 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5449 | if (PyErr_Occurred()) return NULL; |
5450 | } _resultobj = Py_BuildValue("l",_result); | |
5451 | return _resultobj; | |
5452 | } | |
5453 | ||
5454 | #define wxListView_GetFirstSelected(_swigobj) (_swigobj->GetFirstSelected()) | |
5455 | static PyObject *_wrap_wxListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5456 | PyObject * _resultobj; | |
5457 | long _result; | |
5458 | wxListView * _arg0; | |
5459 | PyObject * _argo0 = 0; | |
5460 | char *_kwnames[] = { "self", NULL }; | |
5461 | ||
5462 | self = self; | |
5463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFirstSelected",_kwnames,&_argo0)) | |
5464 | return NULL; | |
5465 | if (_argo0) { | |
5466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFirstSelected. Expected _wxListView_p."); | |
5469 | return NULL; | |
5470 | } | |
5471 | } | |
5472 | { | |
4268f798 | 5473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5474 | _result = (long )wxListView_GetFirstSelected(_arg0); |
6d19860f | 5475 | |
4268f798 | 5476 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5477 | if (PyErr_Occurred()) return NULL; |
5478 | } _resultobj = Py_BuildValue("l",_result); | |
5479 | return _resultobj; | |
5480 | } | |
5481 | ||
5482 | #define wxListView_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) | |
5483 | static PyObject *_wrap_wxListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5484 | PyObject * _resultobj; | |
5485 | bool _result; | |
5486 | wxListView * _arg0; | |
5487 | long _arg1; | |
5488 | PyObject * _argo0 = 0; | |
5489 | char *_kwnames[] = { "self","index", NULL }; | |
5490 | ||
5491 | self = self; | |
5492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_IsSelected",_kwnames,&_argo0,&_arg1)) | |
5493 | return NULL; | |
5494 | if (_argo0) { | |
5495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_IsSelected. Expected _wxListView_p."); | |
5498 | return NULL; | |
5499 | } | |
5500 | } | |
5501 | { | |
4268f798 | 5502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5503 | _result = (bool )wxListView_IsSelected(_arg0,_arg1); |
6d19860f | 5504 | |
4268f798 | 5505 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5506 | if (PyErr_Occurred()) return NULL; |
5507 | } _resultobj = Py_BuildValue("i",_result); | |
5508 | return _resultobj; | |
5509 | } | |
5510 | ||
5511 | #define wxListView_SetColumnImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnImage(_swigarg0,_swigarg1)) | |
5512 | static PyObject *_wrap_wxListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5513 | PyObject * _resultobj; | |
5514 | wxListView * _arg0; | |
5515 | int _arg1; | |
5516 | int _arg2; | |
5517 | PyObject * _argo0 = 0; | |
5518 | char *_kwnames[] = { "self","col","image", NULL }; | |
5519 | ||
5520 | self = self; | |
5521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListView_SetColumnImage",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5522 | return NULL; | |
5523 | if (_argo0) { | |
5524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_SetColumnImage. Expected _wxListView_p."); | |
5527 | return NULL; | |
5528 | } | |
5529 | } | |
5530 | { | |
4268f798 | 5531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5532 | wxListView_SetColumnImage(_arg0,_arg1,_arg2); |
6d19860f | 5533 | |
4268f798 | 5534 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5535 | if (PyErr_Occurred()) return NULL; |
5536 | } Py_INCREF(Py_None); | |
5537 | _resultobj = Py_None; | |
5538 | return _resultobj; | |
5539 | } | |
5540 | ||
5541 | #define wxListView_ClearColumnImage(_swigobj,_swigarg0) (_swigobj->ClearColumnImage(_swigarg0)) | |
5542 | static PyObject *_wrap_wxListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5543 | PyObject * _resultobj; | |
5544 | wxListView * _arg0; | |
5545 | int _arg1; | |
5546 | PyObject * _argo0 = 0; | |
5547 | char *_kwnames[] = { "self","col", NULL }; | |
5548 | ||
5549 | self = self; | |
5550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListView_ClearColumnImage",_kwnames,&_argo0,&_arg1)) | |
5551 | return NULL; | |
5552 | if (_argo0) { | |
5553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_ClearColumnImage. Expected _wxListView_p."); | |
5556 | return NULL; | |
5557 | } | |
5558 | } | |
5559 | { | |
4268f798 | 5560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5561 | wxListView_ClearColumnImage(_arg0,_arg1); |
6d19860f | 5562 | |
4268f798 | 5563 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5564 | if (PyErr_Occurred()) return NULL; |
5565 | } Py_INCREF(Py_None); | |
5566 | _resultobj = Py_None; | |
5567 | return _resultobj; | |
5568 | } | |
5569 | ||
00b6c4e3 RD |
5570 | #define new_wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
5571 | static PyObject *_wrap_new_wxTreeItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5572 | PyObject * _resultobj; | |
5573 | wxTreeItemAttr * _result; | |
5574 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5575 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5576 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5577 | wxColour temp; | |
5578 | PyObject * _obj0 = 0; | |
5579 | wxColour temp0; | |
5580 | PyObject * _obj1 = 0; | |
5581 | PyObject * _argo2 = 0; | |
5582 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
5583 | char _ptemp[128]; | |
5584 | ||
5585 | self = self; | |
5586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTreeItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) | |
5587 | return NULL; | |
5588 | if (_obj0) | |
5589 | { | |
5590 | _arg0 = &temp; | |
5591 | if (! wxColour_helper(_obj0, &_arg0)) | |
5592 | return NULL; | |
5593 | } | |
5594 | if (_obj1) | |
5595 | { | |
5596 | _arg1 = &temp0; | |
5597 | if (! wxColour_helper(_obj1, &_arg1)) | |
5598 | return NULL; | |
5599 | } | |
5600 | if (_argo2) { | |
7e50db3f | 5601 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { |
00b6c4e3 RD |
5602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTreeItemAttr. Expected _wxFont_p."); |
5603 | return NULL; | |
5604 | } | |
5605 | } | |
5606 | { | |
4268f798 | 5607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5608 | _result = (wxTreeItemAttr *)new_wxTreeItemAttr(*_arg0,*_arg1,*_arg2); |
00b6c4e3 | 5609 | |
4268f798 | 5610 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5611 | if (PyErr_Occurred()) return NULL; |
5612 | } if (_result) { | |
5613 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemAttr_p"); | |
5614 | _resultobj = Py_BuildValue("s",_ptemp); | |
5615 | } else { | |
5616 | Py_INCREF(Py_None); | |
5617 | _resultobj = Py_None; | |
5618 | } | |
5619 | return _resultobj; | |
5620 | } | |
5621 | ||
5622 | #define wxTreeItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
5623 | static PyObject *_wrap_wxTreeItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5624 | PyObject * _resultobj; | |
5625 | wxTreeItemAttr * _arg0; | |
5626 | wxColour * _arg1; | |
5627 | PyObject * _argo0 = 0; | |
5628 | wxColour temp; | |
5629 | PyObject * _obj1 = 0; | |
5630 | char *_kwnames[] = { "self","colText", NULL }; | |
5631 | ||
5632 | self = self; | |
5633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
5634 | return NULL; | |
5635 | if (_argo0) { | |
5636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetTextColour. Expected _wxTreeItemAttr_p."); | |
5639 | return NULL; | |
5640 | } | |
5641 | } | |
5642 | { | |
5643 | _arg1 = &temp; | |
5644 | if (! wxColour_helper(_obj1, &_arg1)) | |
5645 | return NULL; | |
5646 | } | |
5647 | { | |
4268f798 | 5648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5649 | wxTreeItemAttr_SetTextColour(_arg0,*_arg1); |
00b6c4e3 | 5650 | |
4268f798 | 5651 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5652 | if (PyErr_Occurred()) return NULL; |
5653 | } Py_INCREF(Py_None); | |
5654 | _resultobj = Py_None; | |
5655 | return _resultobj; | |
5656 | } | |
5657 | ||
5658 | #define wxTreeItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
5659 | static PyObject *_wrap_wxTreeItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5660 | PyObject * _resultobj; | |
5661 | wxTreeItemAttr * _arg0; | |
5662 | wxColour * _arg1; | |
5663 | PyObject * _argo0 = 0; | |
5664 | wxColour temp; | |
5665 | PyObject * _obj1 = 0; | |
5666 | char *_kwnames[] = { "self","colBack", NULL }; | |
5667 | ||
5668 | self = self; | |
5669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
5670 | return NULL; | |
5671 | if (_argo0) { | |
5672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5675 | return NULL; | |
5676 | } | |
5677 | } | |
5678 | { | |
5679 | _arg1 = &temp; | |
5680 | if (! wxColour_helper(_obj1, &_arg1)) | |
5681 | return NULL; | |
5682 | } | |
5683 | { | |
4268f798 | 5684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5685 | wxTreeItemAttr_SetBackgroundColour(_arg0,*_arg1); |
00b6c4e3 | 5686 | |
4268f798 | 5687 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5688 | if (PyErr_Occurred()) return NULL; |
5689 | } Py_INCREF(Py_None); | |
5690 | _resultobj = Py_None; | |
5691 | return _resultobj; | |
5692 | } | |
5693 | ||
5694 | #define wxTreeItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
5695 | static PyObject *_wrap_wxTreeItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5696 | PyObject * _resultobj; | |
5697 | wxTreeItemAttr * _arg0; | |
5698 | wxFont * _arg1; | |
5699 | PyObject * _argo0 = 0; | |
5700 | PyObject * _argo1 = 0; | |
5701 | char *_kwnames[] = { "self","font", NULL }; | |
5702 | ||
5703 | self = self; | |
5704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
5705 | return NULL; | |
5706 | if (_argo0) { | |
5707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetFont. Expected _wxTreeItemAttr_p."); | |
5710 | return NULL; | |
5711 | } | |
5712 | } | |
5713 | if (_argo1) { | |
7e50db3f | 5714 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { |
00b6c4e3 RD |
5715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemAttr_SetFont. Expected _wxFont_p."); |
5716 | return NULL; | |
5717 | } | |
5718 | } | |
5719 | { | |
4268f798 | 5720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5721 | wxTreeItemAttr_SetFont(_arg0,*_arg1); |
00b6c4e3 | 5722 | |
4268f798 | 5723 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5724 | if (PyErr_Occurred()) return NULL; |
5725 | } Py_INCREF(Py_None); | |
5726 | _resultobj = Py_None; | |
5727 | return _resultobj; | |
5728 | } | |
5729 | ||
5730 | #define wxTreeItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
5731 | static PyObject *_wrap_wxTreeItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5732 | PyObject * _resultobj; | |
5733 | bool _result; | |
5734 | wxTreeItemAttr * _arg0; | |
5735 | PyObject * _argo0 = 0; | |
5736 | char *_kwnames[] = { "self", NULL }; | |
5737 | ||
5738 | self = self; | |
5739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasTextColour",_kwnames,&_argo0)) | |
5740 | return NULL; | |
5741 | if (_argo0) { | |
5742 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5743 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasTextColour. Expected _wxTreeItemAttr_p."); | |
5745 | return NULL; | |
5746 | } | |
5747 | } | |
5748 | { | |
4268f798 | 5749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5750 | _result = (bool )wxTreeItemAttr_HasTextColour(_arg0); |
00b6c4e3 | 5751 | |
4268f798 | 5752 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5753 | if (PyErr_Occurred()) return NULL; |
5754 | } _resultobj = Py_BuildValue("i",_result); | |
5755 | return _resultobj; | |
5756 | } | |
5757 | ||
5758 | #define wxTreeItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
5759 | static PyObject *_wrap_wxTreeItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5760 | PyObject * _resultobj; | |
5761 | bool _result; | |
5762 | wxTreeItemAttr * _arg0; | |
5763 | PyObject * _argo0 = 0; | |
5764 | char *_kwnames[] = { "self", NULL }; | |
5765 | ||
5766 | self = self; | |
5767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
5768 | return NULL; | |
5769 | if (_argo0) { | |
5770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5773 | return NULL; | |
5774 | } | |
5775 | } | |
5776 | { | |
4268f798 | 5777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5778 | _result = (bool )wxTreeItemAttr_HasBackgroundColour(_arg0); |
00b6c4e3 | 5779 | |
4268f798 | 5780 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5781 | if (PyErr_Occurred()) return NULL; |
5782 | } _resultobj = Py_BuildValue("i",_result); | |
5783 | return _resultobj; | |
5784 | } | |
5785 | ||
5786 | #define wxTreeItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
5787 | static PyObject *_wrap_wxTreeItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5788 | PyObject * _resultobj; | |
5789 | bool _result; | |
5790 | wxTreeItemAttr * _arg0; | |
5791 | PyObject * _argo0 = 0; | |
5792 | char *_kwnames[] = { "self", NULL }; | |
5793 | ||
5794 | self = self; | |
5795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasFont",_kwnames,&_argo0)) | |
5796 | return NULL; | |
5797 | if (_argo0) { | |
5798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasFont. Expected _wxTreeItemAttr_p."); | |
5801 | return NULL; | |
5802 | } | |
5803 | } | |
5804 | { | |
4268f798 | 5805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5806 | _result = (bool )wxTreeItemAttr_HasFont(_arg0); |
00b6c4e3 | 5807 | |
4268f798 | 5808 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5809 | if (PyErr_Occurred()) return NULL; |
5810 | } _resultobj = Py_BuildValue("i",_result); | |
5811 | return _resultobj; | |
5812 | } | |
5813 | ||
5814 | #define wxTreeItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
5815 | static PyObject *_wrap_wxTreeItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5816 | PyObject * _resultobj; | |
5817 | wxColour * _result; | |
5818 | wxTreeItemAttr * _arg0; | |
5819 | PyObject * _argo0 = 0; | |
5820 | char *_kwnames[] = { "self", NULL }; | |
5821 | char _ptemp[128]; | |
5822 | ||
5823 | self = self; | |
5824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetTextColour",_kwnames,&_argo0)) | |
5825 | return NULL; | |
5826 | if (_argo0) { | |
5827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetTextColour. Expected _wxTreeItemAttr_p."); | |
5830 | return NULL; | |
5831 | } | |
5832 | } | |
5833 | { | |
4268f798 | 5834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5835 | _result = new wxColour (wxTreeItemAttr_GetTextColour(_arg0)); |
00b6c4e3 | 5836 | |
4268f798 | 5837 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 | 5838 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
5839 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5840 | _resultobj = Py_BuildValue("s",_ptemp); | |
00b6c4e3 RD |
5841 | return _resultobj; |
5842 | } | |
5843 | ||
5844 | #define wxTreeItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
5845 | static PyObject *_wrap_wxTreeItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5846 | PyObject * _resultobj; | |
5847 | wxColour * _result; | |
5848 | wxTreeItemAttr * _arg0; | |
5849 | PyObject * _argo0 = 0; | |
5850 | char *_kwnames[] = { "self", NULL }; | |
5851 | char _ptemp[128]; | |
5852 | ||
5853 | self = self; | |
5854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
5855 | return NULL; | |
5856 | if (_argo0) { | |
5857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5860 | return NULL; | |
5861 | } | |
5862 | } | |
5863 | { | |
4268f798 | 5864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5865 | _result = new wxColour (wxTreeItemAttr_GetBackgroundColour(_arg0)); |
00b6c4e3 | 5866 | |
4268f798 | 5867 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 | 5868 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
5869 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5870 | _resultobj = Py_BuildValue("s",_ptemp); | |
00b6c4e3 RD |
5871 | return _resultobj; |
5872 | } | |
5873 | ||
5874 | #define wxTreeItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
5875 | static PyObject *_wrap_wxTreeItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5876 | PyObject * _resultobj; | |
5877 | wxFont * _result; | |
5878 | wxTreeItemAttr * _arg0; | |
5879 | PyObject * _argo0 = 0; | |
5880 | char *_kwnames[] = { "self", NULL }; | |
5881 | char _ptemp[128]; | |
5882 | ||
5883 | self = self; | |
5884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetFont",_kwnames,&_argo0)) | |
5885 | return NULL; | |
5886 | if (_argo0) { | |
5887 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5888 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetFont. Expected _wxTreeItemAttr_p."); | |
5890 | return NULL; | |
5891 | } | |
5892 | } | |
5893 | { | |
4268f798 | 5894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5895 | _result = new wxFont (wxTreeItemAttr_GetFont(_arg0)); |
00b6c4e3 | 5896 | |
4268f798 | 5897 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 | 5898 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
5899 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
5900 | _resultobj = Py_BuildValue("s",_ptemp); | |
00b6c4e3 RD |
5901 | return _resultobj; |
5902 | } | |
5903 | ||
d5c9047a | 5904 | #define new_wxTreeItemId() (new wxTreeItemId()) |
efc5f224 | 5905 | static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5906 | PyObject * _resultobj; |
d5c9047a | 5907 | wxTreeItemId * _result; |
efc5f224 | 5908 | char *_kwnames[] = { NULL }; |
d5c9047a | 5909 | char _ptemp[128]; |
8ab979d7 RD |
5910 | |
5911 | self = self; | |
efc5f224 | 5912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames)) |
8ab979d7 | 5913 | return NULL; |
cf694132 | 5914 | { |
4268f798 | 5915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5916 | _result = (wxTreeItemId *)new_wxTreeItemId(); |
cf694132 | 5917 | |
4268f798 | 5918 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5919 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5920 | } if (_result) { |
5921 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
5922 | _resultobj = Py_BuildValue("s",_ptemp); | |
5923 | } else { | |
5924 | Py_INCREF(Py_None); | |
5925 | _resultobj = Py_None; | |
5926 | } | |
8ab979d7 RD |
5927 | return _resultobj; |
5928 | } | |
5929 | ||
d5c9047a | 5930 | #define delete_wxTreeItemId(_swigobj) (delete _swigobj) |
efc5f224 | 5931 | static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5932 | PyObject * _resultobj; |
d5c9047a | 5933 | wxTreeItemId * _arg0; |
1d99702e | 5934 | PyObject * _argo0 = 0; |
efc5f224 | 5935 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5936 | |
5937 | self = self; | |
efc5f224 | 5938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0)) |
8ab979d7 | 5939 | return NULL; |
1d99702e RD |
5940 | if (_argo0) { |
5941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 5943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
5944 | return NULL; |
5945 | } | |
5946 | } | |
cf694132 | 5947 | { |
4268f798 | 5948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5949 | delete_wxTreeItemId(_arg0); |
cf694132 | 5950 | |
4268f798 | 5951 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5952 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5953 | } Py_INCREF(Py_None); |
d5c9047a | 5954 | _resultobj = Py_None; |
8ab979d7 RD |
5955 | return _resultobj; |
5956 | } | |
5957 | ||
d5c9047a | 5958 | #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk()) |
efc5f224 | 5959 | static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5960 | PyObject * _resultobj; |
d5c9047a RD |
5961 | bool _result; |
5962 | wxTreeItemId * _arg0; | |
1d99702e | 5963 | PyObject * _argo0 = 0; |
efc5f224 | 5964 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5965 | |
5966 | self = self; | |
efc5f224 | 5967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0)) |
8ab979d7 | 5968 | return NULL; |
1d99702e RD |
5969 | if (_argo0) { |
5970 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5971 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 5972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
5973 | return NULL; |
5974 | } | |
5975 | } | |
cf694132 | 5976 | { |
4268f798 | 5977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5978 | _result = (bool )wxTreeItemId_IsOk(_arg0); |
cf694132 | 5979 | |
4268f798 | 5980 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5981 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5982 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5983 | return _resultobj; |
5984 | } | |
5985 | ||
f6bcfd97 | 5986 | static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) { |
c368d904 | 5987 | if (! other) return -1; |
f6bcfd97 BP |
5988 | return *self != *other; |
5989 | } | |
5990 | static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5991 | PyObject * _resultobj; | |
5992 | int _result; | |
5993 | wxTreeItemId * _arg0; | |
5994 | wxTreeItemId * _arg1; | |
5995 | PyObject * _argo0 = 0; | |
5996 | PyObject * _argo1 = 0; | |
5997 | char *_kwnames[] = { "self","other", NULL }; | |
5998 | ||
5999 | self = self; | |
6000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1)) | |
6001 | return NULL; | |
6002 | if (_argo0) { | |
6003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
6005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
6006 | return NULL; | |
6007 | } | |
6008 | } | |
6009 | if (_argo1) { | |
6010 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6011 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
6013 | return NULL; | |
6014 | } | |
6015 | } | |
6016 | { | |
4268f798 | 6017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6018 | _result = (int )wxTreeItemId___cmp__(_arg0,_arg1); |
f6bcfd97 | 6019 | |
4268f798 | 6020 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6021 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6022 | } _resultobj = Py_BuildValue("i",_result); |
6023 | return _resultobj; | |
6024 | } | |
6025 | ||
cf694132 | 6026 | #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) |
efc5f224 | 6027 | static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6028 | PyObject * _resultobj; |
cf694132 | 6029 | wxPyTreeItemData * _result; |
1d99702e | 6030 | PyObject * _arg0 = (PyObject *) NULL; |
cf694132 | 6031 | PyObject * _obj0 = 0; |
efc5f224 | 6032 | char *_kwnames[] = { "obj", NULL }; |
d5c9047a | 6033 | char _ptemp[128]; |
8ab979d7 RD |
6034 | |
6035 | self = self; | |
efc5f224 | 6036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0)) |
8ab979d7 | 6037 | return NULL; |
cf694132 RD |
6038 | if (_obj0) |
6039 | { | |
6040 | _arg0 = _obj0; | |
6041 | } | |
6042 | { | |
4268f798 | 6043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6044 | _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0); |
cf694132 | 6045 | |
4268f798 | 6046 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6047 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6048 | } if (_result) { |
6049 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
6050 | _resultobj = Py_BuildValue("s",_ptemp); | |
6051 | } else { | |
6052 | Py_INCREF(Py_None); | |
6053 | _resultobj = Py_None; | |
6054 | } | |
8ab979d7 RD |
6055 | return _resultobj; |
6056 | } | |
6057 | ||
cf694132 | 6058 | #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData()) |
efc5f224 | 6059 | static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
6060 | PyObject * _resultobj; |
6061 | PyObject * _result; | |
6062 | wxPyTreeItemData * _arg0; | |
1d99702e | 6063 | PyObject * _argo0 = 0; |
efc5f224 | 6064 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
6065 | |
6066 | self = self; | |
efc5f224 | 6067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0)) |
cf694132 | 6068 | return NULL; |
1d99702e RD |
6069 | if (_argo0) { |
6070 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6071 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 RD |
6072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p."); |
6073 | return NULL; | |
6074 | } | |
6075 | } | |
6076 | { | |
4268f798 | 6077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6078 | _result = (PyObject *)wxTreeItemData_GetData(_arg0); |
cf694132 | 6079 | |
4268f798 | 6080 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6081 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
6082 | }{ |
6083 | _resultobj = _result; | |
6084 | } | |
6085 | return _resultobj; | |
6086 | } | |
6087 | ||
6088 | #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
efc5f224 | 6089 | static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6090 | PyObject * _resultobj; |
cf694132 RD |
6091 | wxPyTreeItemData * _arg0; |
6092 | PyObject * _arg1; | |
1d99702e | 6093 | PyObject * _argo0 = 0; |
cf694132 | 6094 | PyObject * _obj1 = 0; |
efc5f224 | 6095 | char *_kwnames[] = { "self","obj", NULL }; |
8ab979d7 RD |
6096 | |
6097 | self = self; | |
efc5f224 | 6098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6099 | return NULL; |
1d99702e RD |
6100 | if (_argo0) { |
6101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 6103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
6104 | return NULL; |
6105 | } | |
6106 | } | |
cf694132 RD |
6107 | { |
6108 | _arg1 = _obj1; | |
6109 | } | |
6110 | { | |
4268f798 | 6111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6112 | wxTreeItemData_SetData(_arg0,_arg1); |
cf694132 | 6113 | |
4268f798 | 6114 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6115 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6116 | } Py_INCREF(Py_None); |
d5c9047a | 6117 | _resultobj = Py_None; |
8ab979d7 RD |
6118 | return _resultobj; |
6119 | } | |
6120 | ||
630d84f2 | 6121 | #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 6122 | static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6123 | PyObject * _resultobj; |
d5c9047a | 6124 | wxTreeItemId * _result; |
cf694132 | 6125 | wxPyTreeItemData * _arg0; |
1d99702e | 6126 | PyObject * _argo0 = 0; |
efc5f224 | 6127 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6128 | char _ptemp[128]; |
6129 | ||
6130 | self = self; | |
efc5f224 | 6131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0)) |
8ab979d7 | 6132 | return NULL; |
1d99702e RD |
6133 | if (_argo0) { |
6134 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6135 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 6136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
6137 | return NULL; |
6138 | } | |
6139 | } | |
cf694132 | 6140 | { |
4268f798 | 6141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6142 | const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0); |
d5c9047a | 6143 | _result = (wxTreeItemId *) &_result_ref; |
cf694132 | 6144 | |
4268f798 | 6145 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6146 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6147 | } if (_result) { |
6148 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
6149 | _resultobj = Py_BuildValue("s",_ptemp); | |
6150 | } else { | |
6151 | Py_INCREF(Py_None); | |
6152 | _resultobj = Py_None; | |
6153 | } | |
8ab979d7 RD |
6154 | return _resultobj; |
6155 | } | |
6156 | ||
630d84f2 | 6157 | #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
efc5f224 | 6158 | static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
630d84f2 | 6159 | PyObject * _resultobj; |
cf694132 | 6160 | wxPyTreeItemData * _arg0; |
630d84f2 | 6161 | wxTreeItemId * _arg1; |
1d99702e RD |
6162 | PyObject * _argo0 = 0; |
6163 | PyObject * _argo1 = 0; | |
efc5f224 | 6164 | char *_kwnames[] = { "self","id", NULL }; |
630d84f2 RD |
6165 | |
6166 | self = self; | |
efc5f224 | 6167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1)) |
630d84f2 | 6168 | return NULL; |
1d99702e RD |
6169 | if (_argo0) { |
6170 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6171 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 6172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p."); |
630d84f2 RD |
6173 | return NULL; |
6174 | } | |
6175 | } | |
1d99702e | 6176 | if (_argo1) { |
7e50db3f | 6177 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
630d84f2 RD |
6178 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p."); |
6179 | return NULL; | |
6180 | } | |
6181 | } | |
cf694132 | 6182 | { |
4268f798 | 6183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6184 | wxTreeItemData_SetId(_arg0,*_arg1); |
cf694132 | 6185 | |
4268f798 | 6186 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6187 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6188 | } Py_INCREF(Py_None); |
630d84f2 RD |
6189 | _resultobj = Py_None; |
6190 | return _resultobj; | |
6191 | } | |
6192 | ||
8bf5d46e RD |
6193 | static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) { |
6194 | wxTreeEvent *src; | |
6195 | wxNotifyEvent *dest; | |
6196 | src = (wxTreeEvent *) ptr; | |
6197 | dest = (wxNotifyEvent *) src; | |
6198 | return (void *) dest; | |
6199 | } | |
6200 | ||
8ab979d7 RD |
6201 | static void *SwigwxTreeEventTowxCommandEvent(void *ptr) { |
6202 | wxTreeEvent *src; | |
6203 | wxCommandEvent *dest; | |
6204 | src = (wxTreeEvent *) ptr; | |
6205 | dest = (wxCommandEvent *) src; | |
6206 | return (void *) dest; | |
6207 | } | |
6208 | ||
6209 | static void *SwigwxTreeEventTowxEvent(void *ptr) { | |
6210 | wxTreeEvent *src; | |
6211 | wxEvent *dest; | |
6212 | src = (wxTreeEvent *) ptr; | |
6213 | dest = (wxEvent *) src; | |
6214 | return (void *) dest; | |
6215 | } | |
6216 | ||
9416aa89 RD |
6217 | static void *SwigwxTreeEventTowxObject(void *ptr) { |
6218 | wxTreeEvent *src; | |
6219 | wxObject *dest; | |
6220 | src = (wxTreeEvent *) ptr; | |
6221 | dest = (wxObject *) src; | |
6222 | return (void *) dest; | |
6223 | } | |
6224 | ||
00b6c4e3 RD |
6225 | #define new_wxTreeEvent(_swigarg0,_swigarg1) (new wxTreeEvent(_swigarg0,_swigarg1)) |
6226 | static PyObject *_wrap_new_wxTreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6227 | PyObject * _resultobj; | |
6228 | wxTreeEvent * _result; | |
6229 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
6230 | int _arg1 = (int ) 0; | |
6231 | char *_kwnames[] = { "commandType","id", NULL }; | |
6232 | char _ptemp[128]; | |
6233 | ||
6234 | self = self; | |
6235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxTreeEvent",_kwnames,&_arg0,&_arg1)) | |
6236 | return NULL; | |
6237 | { | |
4268f798 | 6238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6239 | _result = (wxTreeEvent *)new_wxTreeEvent(_arg0,_arg1); |
00b6c4e3 | 6240 | |
4268f798 | 6241 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
6242 | if (PyErr_Occurred()) return NULL; |
6243 | } if (_result) { | |
6244 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeEvent_p"); | |
6245 | _resultobj = Py_BuildValue("s",_ptemp); | |
6246 | } else { | |
6247 | Py_INCREF(Py_None); | |
6248 | _resultobj = Py_None; | |
6249 | } | |
6250 | return _resultobj; | |
6251 | } | |
6252 | ||
d5c9047a | 6253 | #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
efc5f224 | 6254 | static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6255 | PyObject * _resultobj; |
d5c9047a | 6256 | wxTreeItemId * _result; |
8ab979d7 | 6257 | wxTreeEvent * _arg0; |
1d99702e | 6258 | PyObject * _argo0 = 0; |
efc5f224 | 6259 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6260 | char _ptemp[128]; |
8ab979d7 RD |
6261 | |
6262 | self = self; | |
efc5f224 | 6263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 6264 | return NULL; |
1d99702e RD |
6265 | if (_argo0) { |
6266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6269 | return NULL; |
6270 | } | |
6271 | } | |
cf694132 | 6272 | { |
4268f798 | 6273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6274 | _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0)); |
cf694132 | 6275 | |
4268f798 | 6276 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6277 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6278 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 6279 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6280 | return _resultobj; |
6281 | } | |
6282 | ||
5a2a9da2 RD |
6283 | #define wxTreeEvent_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) |
6284 | static PyObject *_wrap_wxTreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6285 | PyObject * _resultobj; | |
6286 | wxTreeEvent * _arg0; | |
6287 | wxTreeItemId * _arg1; | |
6288 | PyObject * _argo0 = 0; | |
6289 | PyObject * _argo1 = 0; | |
6290 | char *_kwnames[] = { "self","item", NULL }; | |
6291 | ||
6292 | self = self; | |
6293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeEvent_SetItem",_kwnames,&_argo0,&_argo1)) | |
6294 | return NULL; | |
6295 | if (_argo0) { | |
6296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_SetItem. Expected _wxTreeEvent_p."); | |
6299 | return NULL; | |
6300 | } | |
6301 | } | |
6302 | if (_argo1) { | |
6303 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeEvent_SetItem. Expected _wxTreeItemId_p."); | |
6305 | return NULL; | |
6306 | } | |
6307 | } | |
6308 | { | |
6309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6310 | wxTreeEvent_SetItem(_arg0,*_arg1); | |
6311 | ||
6312 | wxPyEndAllowThreads(__tstate); | |
6313 | if (PyErr_Occurred()) return NULL; | |
6314 | } Py_INCREF(Py_None); | |
6315 | _resultobj = Py_None; | |
6316 | return _resultobj; | |
6317 | } | |
6318 | ||
d5c9047a | 6319 | #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
efc5f224 | 6320 | static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6321 | PyObject * _resultobj; |
d5c9047a | 6322 | wxTreeItemId * _result; |
8ab979d7 | 6323 | wxTreeEvent * _arg0; |
1d99702e | 6324 | PyObject * _argo0 = 0; |
efc5f224 | 6325 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6326 | char _ptemp[128]; |
6327 | ||
6328 | self = self; | |
efc5f224 | 6329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0)) |
8ab979d7 | 6330 | return NULL; |
1d99702e RD |
6331 | if (_argo0) { |
6332 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6333 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6335 | return NULL; |
6336 | } | |
6337 | } | |
cf694132 | 6338 | { |
4268f798 | 6339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6340 | _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0)); |
cf694132 | 6341 | |
4268f798 | 6342 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6343 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6344 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8ab979d7 RD |
6345 | _resultobj = Py_BuildValue("s",_ptemp); |
6346 | return _resultobj; | |
6347 | } | |
6348 | ||
5a2a9da2 RD |
6349 | #define wxTreeEvent_SetOldItem(_swigobj,_swigarg0) (_swigobj->SetOldItem(_swigarg0)) |
6350 | static PyObject *_wrap_wxTreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6351 | PyObject * _resultobj; | |
6352 | wxTreeEvent * _arg0; | |
6353 | wxTreeItemId * _arg1; | |
6354 | PyObject * _argo0 = 0; | |
6355 | PyObject * _argo1 = 0; | |
6356 | char *_kwnames[] = { "self","item", NULL }; | |
6357 | ||
6358 | self = self; | |
6359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeEvent_SetOldItem",_kwnames,&_argo0,&_argo1)) | |
6360 | return NULL; | |
6361 | if (_argo0) { | |
6362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_SetOldItem. Expected _wxTreeEvent_p."); | |
6365 | return NULL; | |
6366 | } | |
6367 | } | |
6368 | if (_argo1) { | |
6369 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeEvent_SetOldItem. Expected _wxTreeItemId_p."); | |
6371 | return NULL; | |
6372 | } | |
6373 | } | |
6374 | { | |
6375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6376 | wxTreeEvent_SetOldItem(_arg0,*_arg1); | |
6377 | ||
6378 | wxPyEndAllowThreads(__tstate); | |
6379 | if (PyErr_Occurred()) return NULL; | |
6380 | } Py_INCREF(Py_None); | |
6381 | _resultobj = Py_None; | |
6382 | return _resultobj; | |
6383 | } | |
6384 | ||
d5c9047a | 6385 | #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
efc5f224 | 6386 | static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6387 | PyObject * _resultobj; |
d5c9047a | 6388 | wxPoint * _result; |
8ab979d7 | 6389 | wxTreeEvent * _arg0; |
1d99702e | 6390 | PyObject * _argo0 = 0; |
efc5f224 | 6391 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6392 | char _ptemp[128]; |
8ab979d7 RD |
6393 | |
6394 | self = self; | |
efc5f224 | 6395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 6396 | return NULL; |
1d99702e RD |
6397 | if (_argo0) { |
6398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6401 | return NULL; |
6402 | } | |
6403 | } | |
cf694132 | 6404 | { |
4268f798 | 6405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6406 | _result = new wxPoint (wxTreeEvent_GetPoint(_arg0)); |
cf694132 | 6407 | |
4268f798 | 6408 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6409 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6410 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
d5c9047a | 6411 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6412 | return _resultobj; |
6413 | } | |
6414 | ||
5a2a9da2 RD |
6415 | #define wxTreeEvent_SetPoint(_swigobj,_swigarg0) (_swigobj->SetPoint(_swigarg0)) |
6416 | static PyObject *_wrap_wxTreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6417 | PyObject * _resultobj; | |
6418 | wxTreeEvent * _arg0; | |
6419 | wxPoint * _arg1; | |
6420 | PyObject * _argo0 = 0; | |
6421 | wxPoint temp; | |
6422 | PyObject * _obj1 = 0; | |
6423 | char *_kwnames[] = { "self","pt", NULL }; | |
6424 | ||
6425 | self = self; | |
6426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeEvent_SetPoint",_kwnames,&_argo0,&_obj1)) | |
6427 | return NULL; | |
6428 | if (_argo0) { | |
6429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_SetPoint. Expected _wxTreeEvent_p."); | |
6432 | return NULL; | |
6433 | } | |
6434 | } | |
6435 | { | |
6436 | _arg1 = &temp; | |
6437 | if (! wxPoint_helper(_obj1, &_arg1)) | |
6438 | return NULL; | |
6439 | } | |
6440 | { | |
6441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6442 | wxTreeEvent_SetPoint(_arg0,*_arg1); | |
6443 | ||
6444 | wxPyEndAllowThreads(__tstate); | |
6445 | if (PyErr_Occurred()) return NULL; | |
6446 | } Py_INCREF(Py_None); | |
6447 | _resultobj = Py_None; | |
6448 | return _resultobj; | |
6449 | } | |
6450 | ||
ecc08ead RD |
6451 | #define wxTreeEvent_GetKeyEvent(_swigobj) (_swigobj->GetKeyEvent()) |
6452 | static PyObject *_wrap_wxTreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6453 | PyObject * _resultobj; | |
6454 | wxKeyEvent * _result; | |
6455 | wxTreeEvent * _arg0; | |
6456 | PyObject * _argo0 = 0; | |
6457 | char *_kwnames[] = { "self", NULL }; | |
6458 | char _ptemp[128]; | |
6459 | ||
6460 | self = self; | |
6461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetKeyEvent",_kwnames,&_argo0)) | |
6462 | return NULL; | |
6463 | if (_argo0) { | |
6464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetKeyEvent. Expected _wxTreeEvent_p."); | |
6467 | return NULL; | |
6468 | } | |
6469 | } | |
6470 | { | |
4268f798 | 6471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6472 | const wxKeyEvent & _result_ref = wxTreeEvent_GetKeyEvent(_arg0); |
ecc08ead RD |
6473 | _result = (wxKeyEvent *) &_result_ref; |
6474 | ||
4268f798 | 6475 | wxPyEndAllowThreads(__tstate); |
ecc08ead RD |
6476 | if (PyErr_Occurred()) return NULL; |
6477 | } if (_result) { | |
6478 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxKeyEvent_p"); | |
6479 | _resultobj = Py_BuildValue("s",_ptemp); | |
6480 | } else { | |
6481 | Py_INCREF(Py_None); | |
6482 | _resultobj = Py_None; | |
6483 | } | |
6484 | return _resultobj; | |
6485 | } | |
6486 | ||
64c06a50 RD |
6487 | #define wxTreeEvent_GetKeyCode(_swigobj) (_swigobj->GetKeyCode()) |
6488 | static PyObject *_wrap_wxTreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6489 | PyObject * _resultobj; |
d5c9047a | 6490 | int _result; |
8ab979d7 | 6491 | wxTreeEvent * _arg0; |
1d99702e | 6492 | PyObject * _argo0 = 0; |
efc5f224 | 6493 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6494 | |
6495 | self = self; | |
64c06a50 | 6496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetKeyCode",_kwnames,&_argo0)) |
8ab979d7 | 6497 | return NULL; |
1d99702e RD |
6498 | if (_argo0) { |
6499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
64c06a50 | 6501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetKeyCode. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6502 | return NULL; |
6503 | } | |
6504 | } | |
cf694132 | 6505 | { |
4268f798 | 6506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
64c06a50 | 6507 | _result = (int )wxTreeEvent_GetKeyCode(_arg0); |
cf694132 | 6508 | |
4268f798 | 6509 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6510 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6511 | } _resultobj = Py_BuildValue("i",_result); |
d5c9047a RD |
6512 | return _resultobj; |
6513 | } | |
6514 | ||
5a2a9da2 RD |
6515 | #define wxTreeEvent_SetKeyEvent(_swigobj,_swigarg0) (_swigobj->SetKeyEvent(_swigarg0)) |
6516 | static PyObject *_wrap_wxTreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6517 | PyObject * _resultobj; | |
6518 | wxTreeEvent * _arg0; | |
6519 | wxKeyEvent * _arg1; | |
6520 | PyObject * _argo0 = 0; | |
6521 | PyObject * _argo1 = 0; | |
6522 | char *_kwnames[] = { "self","evt", NULL }; | |
6523 | ||
6524 | self = self; | |
6525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeEvent_SetKeyEvent",_kwnames,&_argo0,&_argo1)) | |
6526 | return NULL; | |
6527 | if (_argo0) { | |
6528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_SetKeyEvent. Expected _wxTreeEvent_p."); | |
6531 | return NULL; | |
6532 | } | |
6533 | } | |
6534 | if (_argo1) { | |
6535 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxKeyEvent_p")) { | |
6536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeEvent_SetKeyEvent. Expected _wxKeyEvent_p."); | |
6537 | return NULL; | |
6538 | } | |
6539 | } | |
6540 | { | |
6541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6542 | wxTreeEvent_SetKeyEvent(_arg0,*_arg1); | |
6543 | ||
6544 | wxPyEndAllowThreads(__tstate); | |
6545 | if (PyErr_Occurred()) return NULL; | |
6546 | } Py_INCREF(Py_None); | |
6547 | _resultobj = Py_None; | |
6548 | return _resultobj; | |
6549 | } | |
6550 | ||
8bf5d46e | 6551 | #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 6552 | static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 6553 | PyObject * _resultobj; |
8bf5d46e | 6554 | wxString * _result; |
d5c9047a | 6555 | wxTreeEvent * _arg0; |
1d99702e | 6556 | PyObject * _argo0 = 0; |
efc5f224 | 6557 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
6558 | |
6559 | self = self; | |
efc5f224 | 6560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0)) |
d5c9047a | 6561 | return NULL; |
1d99702e RD |
6562 | if (_argo0) { |
6563 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6564 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
8bf5d46e | 6565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p."); |
d5c9047a RD |
6566 | return NULL; |
6567 | } | |
6568 | } | |
cf694132 | 6569 | { |
4268f798 | 6570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6571 | const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0); |
8bf5d46e | 6572 | _result = (wxString *) &_result_ref; |
cf694132 | 6573 | |
4268f798 | 6574 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6575 | if (PyErr_Occurred()) return NULL; |
8bf5d46e | 6576 | }{ |
c8bc7bb8 | 6577 | #if wxUSE_UNICODE |
7e50db3f | 6578 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6579 | #else |
eec92d76 | 6580 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6581 | #endif |
8bf5d46e | 6582 | } |
8ab979d7 RD |
6583 | return _resultobj; |
6584 | } | |
6585 | ||
5a2a9da2 RD |
6586 | #define wxTreeEvent_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
6587 | static PyObject *_wrap_wxTreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6588 | PyObject * _resultobj; | |
6589 | wxTreeEvent * _arg0; | |
6590 | wxString * _arg1; | |
6591 | PyObject * _argo0 = 0; | |
6592 | PyObject * _obj1 = 0; | |
6593 | char *_kwnames[] = { "self","label", NULL }; | |
6594 | ||
6595 | self = self; | |
6596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeEvent_SetLabel",_kwnames,&_argo0,&_obj1)) | |
6597 | return NULL; | |
6598 | if (_argo0) { | |
6599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_SetLabel. Expected _wxTreeEvent_p."); | |
6602 | return NULL; | |
6603 | } | |
6604 | } | |
6605 | { | |
6606 | _arg1 = wxString_in_helper(_obj1); | |
6607 | if (_arg1 == NULL) | |
6608 | return NULL; | |
6609 | } | |
6610 | { | |
6611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6612 | wxTreeEvent_SetLabel(_arg0,*_arg1); | |
6613 | ||
6614 | wxPyEndAllowThreads(__tstate); | |
6615 | if (PyErr_Occurred()) return NULL; | |
6616 | } Py_INCREF(Py_None); | |
6617 | _resultobj = Py_None; | |
6618 | { | |
6619 | if (_obj1) | |
6620 | delete _arg1; | |
6621 | } | |
6622 | return _resultobj; | |
6623 | } | |
6624 | ||
31988931 RD |
6625 | #define wxTreeEvent_IsEditCancelled(_swigobj) (_swigobj->IsEditCancelled()) |
6626 | static PyObject *_wrap_wxTreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6627 | PyObject * _resultobj; | |
6628 | bool _result; | |
6629 | wxTreeEvent * _arg0; | |
6630 | PyObject * _argo0 = 0; | |
6631 | char *_kwnames[] = { "self", NULL }; | |
6632 | ||
6633 | self = self; | |
6634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_IsEditCancelled",_kwnames,&_argo0)) | |
6635 | return NULL; | |
6636 | if (_argo0) { | |
6637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_IsEditCancelled. Expected _wxTreeEvent_p."); | |
6640 | return NULL; | |
6641 | } | |
6642 | } | |
6643 | { | |
6644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6645 | _result = (bool )wxTreeEvent_IsEditCancelled(_arg0); | |
6646 | ||
6647 | wxPyEndAllowThreads(__tstate); | |
6648 | if (PyErr_Occurred()) return NULL; | |
6649 | } _resultobj = Py_BuildValue("i",_result); | |
6650 | return _resultobj; | |
6651 | } | |
6652 | ||
5a2a9da2 RD |
6653 | #define wxTreeEvent_SetEditCanceled(_swigobj,_swigarg0) (_swigobj->SetEditCanceled(_swigarg0)) |
6654 | static PyObject *_wrap_wxTreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6655 | PyObject * _resultobj; | |
6656 | wxTreeEvent * _arg0; | |
6657 | bool _arg1; | |
6658 | PyObject * _argo0 = 0; | |
6659 | int tempbool1; | |
6660 | char *_kwnames[] = { "self","editCancelled", NULL }; | |
6661 | ||
6662 | self = self; | |
6663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeEvent_SetEditCanceled",_kwnames,&_argo0,&tempbool1)) | |
6664 | return NULL; | |
6665 | if (_argo0) { | |
6666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_SetEditCanceled. Expected _wxTreeEvent_p."); | |
6669 | return NULL; | |
6670 | } | |
6671 | } | |
6672 | _arg1 = (bool ) tempbool1; | |
6673 | { | |
6674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6675 | wxTreeEvent_SetEditCanceled(_arg0,_arg1); | |
6676 | ||
6677 | wxPyEndAllowThreads(__tstate); | |
6678 | if (PyErr_Occurred()) return NULL; | |
6679 | } Py_INCREF(Py_None); | |
6680 | _resultobj = Py_None; | |
6681 | return _resultobj; | |
6682 | } | |
6683 | ||
f6bcfd97 BP |
6684 | static void *SwigwxPyTreeCtrlTowxControl(void *ptr) { |
6685 | wxPyTreeCtrl *src; | |
8ab979d7 | 6686 | wxControl *dest; |
f6bcfd97 | 6687 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6688 | dest = (wxControl *) src; |
6689 | return (void *) dest; | |
6690 | } | |
6691 | ||
f6bcfd97 BP |
6692 | static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) { |
6693 | wxPyTreeCtrl *src; | |
8ab979d7 | 6694 | wxWindow *dest; |
f6bcfd97 | 6695 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6696 | dest = (wxWindow *) src; |
6697 | return (void *) dest; | |
6698 | } | |
6699 | ||
f6bcfd97 BP |
6700 | static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) { |
6701 | wxPyTreeCtrl *src; | |
8ab979d7 | 6702 | wxEvtHandler *dest; |
f6bcfd97 | 6703 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6704 | dest = (wxEvtHandler *) src; |
6705 | return (void *) dest; | |
6706 | } | |
6707 | ||
9416aa89 RD |
6708 | static void *SwigwxPyTreeCtrlTowxObject(void *ptr) { |
6709 | wxPyTreeCtrl *src; | |
6710 | wxObject *dest; | |
6711 | src = (wxPyTreeCtrl *) ptr; | |
6712 | dest = (wxObject *) src; | |
6713 | return (void *) dest; | |
6714 | } | |
6715 | ||
f6bcfd97 | 6716 | #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6717 | static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6718 | PyObject * _resultobj; |
f6bcfd97 | 6719 | wxPyTreeCtrl * _result; |
8ab979d7 | 6720 | wxWindow * _arg0; |
1d99702e | 6721 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
6722 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6723 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5a2a9da2 | 6724 | long _arg4 = (long ) (wxTR_DEFAULT_STYLE); |
e508a2b6 | 6725 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
137b5242 | 6726 | wxString * _arg6 = (wxString *) &wxPy_TreeCtrlNameStr; |
1d99702e | 6727 | PyObject * _argo0 = 0; |
2f90df85 RD |
6728 | wxPoint temp; |
6729 | PyObject * _obj2 = 0; | |
6730 | wxSize temp0; | |
6731 | PyObject * _obj3 = 0; | |
1d99702e | 6732 | PyObject * _argo5 = 0; |
137b5242 | 6733 | PyObject * _obj6 = 0; |
efc5f224 | 6734 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
6735 | char _ptemp[128]; |
6736 | ||
6737 | self = self; | |
137b5242 | 6738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) |
8ab979d7 | 6739 | return NULL; |
1d99702e RD |
6740 | if (_argo0) { |
6741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p."); |
6744 | return NULL; | |
6745 | } | |
6746 | } | |
2f90df85 RD |
6747 | if (_obj2) |
6748 | { | |
6749 | _arg2 = &temp; | |
6750 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6751 | return NULL; |
2f90df85 RD |
6752 | } |
6753 | if (_obj3) | |
6754 | { | |
6755 | _arg3 = &temp0; | |
6756 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6757 | return NULL; |
2f90df85 | 6758 | } |
1d99702e | 6759 | if (_argo5) { |
7e50db3f | 6760 | if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { |
8ab979d7 RD |
6761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p."); |
6762 | return NULL; | |
6763 | } | |
6764 | } | |
137b5242 RD |
6765 | if (_obj6) |
6766 | { | |
6767 | _arg6 = wxString_in_helper(_obj6); | |
6768 | if (_arg6 == NULL) | |
6769 | return NULL; | |
6770 | } | |
cf694132 | 6771 | { |
4268f798 | 6772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 6773 | _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
cf694132 | 6774 | |
4268f798 | 6775 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6776 | if (PyErr_Occurred()) return NULL; |
1d99702e | 6777 | } if (_result) { |
f6bcfd97 | 6778 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); |
1d99702e RD |
6779 | _resultobj = Py_BuildValue("s",_ptemp); |
6780 | } else { | |
6781 | Py_INCREF(Py_None); | |
6782 | _resultobj = Py_None; | |
6783 | } | |
137b5242 RD |
6784 | { |
6785 | if (_obj6) | |
6786 | delete _arg6; | |
6787 | } | |
8ab979d7 RD |
6788 | return _resultobj; |
6789 | } | |
6790 | ||
09f3d4e6 RD |
6791 | #define new_wxPreTreeCtrl() (new wxPyTreeCtrl()) |
6792 | static PyObject *_wrap_new_wxPreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6793 | PyObject * _resultobj; | |
6794 | wxPyTreeCtrl * _result; | |
6795 | char *_kwnames[] = { NULL }; | |
6796 | char _ptemp[128]; | |
6797 | ||
6798 | self = self; | |
6799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTreeCtrl",_kwnames)) | |
6800 | return NULL; | |
6801 | { | |
4268f798 | 6802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6803 | _result = (wxPyTreeCtrl *)new_wxPreTreeCtrl(); |
09f3d4e6 | 6804 | |
4268f798 | 6805 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6806 | if (PyErr_Occurred()) return NULL; |
6807 | } if (_result) { | |
6808 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); | |
6809 | _resultobj = Py_BuildValue("s",_ptemp); | |
6810 | } else { | |
6811 | Py_INCREF(Py_None); | |
6812 | _resultobj = Py_None; | |
6813 | } | |
6814 | return _resultobj; | |
6815 | } | |
6816 | ||
6817 | #define wxTreeCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
6818 | static PyObject *_wrap_wxTreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6819 | PyObject * _resultobj; | |
6820 | bool _result; | |
6821 | wxPyTreeCtrl * _arg0; | |
6822 | wxWindow * _arg1; | |
6823 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6824 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6825 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5a2a9da2 | 6826 | long _arg5 = (long ) (wxTR_DEFAULT_STYLE); |
09f3d4e6 | 6827 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; |
137b5242 | 6828 | wxString * _arg7 = (wxString *) &wxPy_TreeCtrlNameStr; |
09f3d4e6 RD |
6829 | PyObject * _argo0 = 0; |
6830 | PyObject * _argo1 = 0; | |
6831 | wxPoint temp; | |
6832 | PyObject * _obj3 = 0; | |
6833 | wxSize temp0; | |
6834 | PyObject * _obj4 = 0; | |
6835 | PyObject * _argo6 = 0; | |
137b5242 | 6836 | PyObject * _obj7 = 0; |
09f3d4e6 RD |
6837 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; |
6838 | ||
6839 | self = self; | |
137b5242 | 6840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxTreeCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
09f3d4e6 RD |
6841 | return NULL; |
6842 | if (_argo0) { | |
6843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Create. Expected _wxPyTreeCtrl_p."); | |
6846 | return NULL; | |
6847 | } | |
6848 | } | |
6849 | if (_argo1) { | |
6850 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6851 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Create. Expected _wxWindow_p."); | |
6853 | return NULL; | |
6854 | } | |
6855 | } | |
6856 | if (_obj3) | |
6857 | { | |
6858 | _arg3 = &temp; | |
6859 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6860 | return NULL; | |
6861 | } | |
6862 | if (_obj4) | |
6863 | { | |
6864 | _arg4 = &temp0; | |
6865 | if (! wxSize_helper(_obj4, &_arg4)) | |
6866 | return NULL; | |
6867 | } | |
6868 | if (_argo6) { | |
7e50db3f | 6869 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { |
09f3d4e6 RD |
6870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_Create. Expected _wxValidator_p."); |
6871 | return NULL; | |
6872 | } | |
6873 | } | |
137b5242 RD |
6874 | if (_obj7) |
6875 | { | |
6876 | _arg7 = wxString_in_helper(_obj7); | |
6877 | if (_arg7 == NULL) | |
6878 | return NULL; | |
6879 | } | |
09f3d4e6 | 6880 | { |
4268f798 | 6881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 6882 | _result = (bool )wxTreeCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
09f3d4e6 | 6883 | |
4268f798 | 6884 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6885 | if (PyErr_Occurred()) return NULL; |
6886 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
6887 | { |
6888 | if (_obj7) | |
6889 | delete _arg7; | |
6890 | } | |
09f3d4e6 RD |
6891 | return _resultobj; |
6892 | } | |
6893 | ||
0122b7e3 RD |
6894 | #define wxTreeCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
6895 | static PyObject *_wrap_wxTreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 BP |
6896 | PyObject * _resultobj; |
6897 | wxPyTreeCtrl * _arg0; | |
6898 | PyObject * _arg1; | |
6899 | PyObject * _arg2; | |
6900 | PyObject * _argo0 = 0; | |
6901 | PyObject * _obj1 = 0; | |
6902 | PyObject * _obj2 = 0; | |
6903 | char *_kwnames[] = { "self","self","_class", NULL }; | |
6904 | ||
6905 | self = self; | |
0122b7e3 | 6906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
f6bcfd97 BP |
6907 | return NULL; |
6908 | if (_argo0) { | |
6909 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6910 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
0122b7e3 | 6911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setCallbackInfo. Expected _wxPyTreeCtrl_p."); |
f6bcfd97 BP |
6912 | return NULL; |
6913 | } | |
6914 | } | |
6915 | { | |
6916 | _arg1 = _obj1; | |
6917 | } | |
6918 | { | |
6919 | _arg2 = _obj2; | |
6920 | } | |
6921 | { | |
4268f798 | 6922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6923 | wxTreeCtrl__setCallbackInfo(_arg0,_arg1,_arg2); |
f6bcfd97 | 6924 | |
4268f798 | 6925 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6926 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6927 | } Py_INCREF(Py_None); |
6928 | _resultobj = Py_None; | |
6929 | return _resultobj; | |
6930 | } | |
6931 | ||
d5c9047a | 6932 | #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount()) |
efc5f224 | 6933 | static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6934 | PyObject * _resultobj; |
c127177f | 6935 | size_t _result; |
f6bcfd97 | 6936 | wxPyTreeCtrl * _arg0; |
1d99702e | 6937 | PyObject * _argo0 = 0; |
efc5f224 | 6938 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6939 | |
6940 | self = self; | |
efc5f224 | 6941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0)) |
8ab979d7 | 6942 | return NULL; |
1d99702e RD |
6943 | if (_argo0) { |
6944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6947 | return NULL; |
6948 | } | |
6949 | } | |
cf694132 | 6950 | { |
4268f798 | 6951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6952 | _result = (size_t )wxTreeCtrl_GetCount(_arg0); |
cf694132 | 6953 | |
4268f798 | 6954 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6955 | if (PyErr_Occurred()) return NULL; |
c127177f | 6956 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6957 | return _resultobj; |
6958 | } | |
6959 | ||
d5c9047a | 6960 | #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) |
efc5f224 | 6961 | static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6962 | PyObject * _resultobj; |
d5c9047a | 6963 | unsigned int _result; |
f6bcfd97 | 6964 | wxPyTreeCtrl * _arg0; |
1d99702e | 6965 | PyObject * _argo0 = 0; |
efc5f224 | 6966 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6967 | |
6968 | self = self; | |
efc5f224 | 6969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0)) |
8ab979d7 | 6970 | return NULL; |
1d99702e RD |
6971 | if (_argo0) { |
6972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6975 | return NULL; |
6976 | } | |
6977 | } | |
cf694132 | 6978 | { |
4268f798 | 6979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6980 | _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0); |
cf694132 | 6981 | |
4268f798 | 6982 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6983 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6984 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6985 | return _resultobj; |
6986 | } | |
6987 | ||
d5c9047a | 6988 | #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) |
efc5f224 | 6989 | static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6990 | PyObject * _resultobj; |
f6bcfd97 | 6991 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6992 | unsigned int _arg1; |
1d99702e | 6993 | PyObject * _argo0 = 0; |
efc5f224 | 6994 | char *_kwnames[] = { "self","indent", NULL }; |
8ab979d7 RD |
6995 | |
6996 | self = self; | |
efc5f224 | 6997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6998 | return NULL; |
1d99702e RD |
6999 | if (_argo0) { |
7000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7003 | return NULL; |
7004 | } | |
7005 | } | |
cf694132 | 7006 | { |
4268f798 | 7007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7008 | wxTreeCtrl_SetIndent(_arg0,_arg1); |
cf694132 | 7009 | |
4268f798 | 7010 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7011 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7012 | } Py_INCREF(Py_None); |
d5c9047a | 7013 | _resultobj = Py_None; |
8ab979d7 RD |
7014 | return _resultobj; |
7015 | } | |
7016 | ||
d5c9047a | 7017 | #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList()) |
efc5f224 | 7018 | static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7019 | PyObject * _resultobj; |
d5c9047a | 7020 | wxImageList * _result; |
f6bcfd97 | 7021 | wxPyTreeCtrl * _arg0; |
1d99702e | 7022 | PyObject * _argo0 = 0; |
efc5f224 | 7023 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7024 | |
7025 | self = self; | |
efc5f224 | 7026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0)) |
8ab979d7 | 7027 | return NULL; |
1d99702e RD |
7028 | if (_argo0) { |
7029 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7030 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7032 | return NULL; |
7033 | } | |
7034 | } | |
cf694132 | 7035 | { |
4268f798 | 7036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7037 | _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0); |
cf694132 | 7038 | |
4268f798 | 7039 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7040 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7041 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
7042 | return _resultobj; |
7043 | } | |
7044 | ||
d5c9047a | 7045 | #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList()) |
efc5f224 | 7046 | static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7047 | PyObject * _resultobj; |
d5c9047a | 7048 | wxImageList * _result; |
f6bcfd97 | 7049 | wxPyTreeCtrl * _arg0; |
1d99702e | 7050 | PyObject * _argo0 = 0; |
efc5f224 | 7051 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7052 | |
7053 | self = self; | |
efc5f224 | 7054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0)) |
8ab979d7 | 7055 | return NULL; |
1d99702e RD |
7056 | if (_argo0) { |
7057 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7058 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7060 | return NULL; |
7061 | } | |
7062 | } | |
cf694132 | 7063 | { |
4268f798 | 7064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7065 | _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0); |
cf694132 | 7066 | |
4268f798 | 7067 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7068 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 7069 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
7070 | return _resultobj; |
7071 | } | |
7072 | ||
d5c9047a | 7073 | #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) |
efc5f224 | 7074 | static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7075 | PyObject * _resultobj; |
f6bcfd97 | 7076 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7077 | wxImageList * _arg1; |
1d99702e RD |
7078 | PyObject * _argo0 = 0; |
7079 | PyObject * _argo1 = 0; | |
efc5f224 | 7080 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
7081 | |
7082 | self = self; | |
efc5f224 | 7083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7084 | return NULL; |
1d99702e RD |
7085 | if (_argo0) { |
7086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7089 | return NULL; |
7090 | } | |
7091 | } | |
1d99702e RD |
7092 | if (_argo1) { |
7093 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7094 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
7095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p."); |
7096 | return NULL; | |
7097 | } | |
7098 | } | |
cf694132 | 7099 | { |
4268f798 | 7100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7101 | wxTreeCtrl_SetImageList(_arg0,_arg1); |
cf694132 | 7102 | |
4268f798 | 7103 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7104 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7105 | } Py_INCREF(Py_None); |
d5c9047a | 7106 | _resultobj = Py_None; |
8ab979d7 RD |
7107 | return _resultobj; |
7108 | } | |
7109 | ||
d5c9047a | 7110 | #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0)) |
efc5f224 | 7111 | static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7112 | PyObject * _resultobj; |
f6bcfd97 | 7113 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7114 | wxImageList * _arg1; |
1d99702e RD |
7115 | PyObject * _argo0 = 0; |
7116 | PyObject * _argo1 = 0; | |
efc5f224 | 7117 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
7118 | |
7119 | self = self; | |
efc5f224 | 7120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7121 | return NULL; |
1d99702e RD |
7122 | if (_argo0) { |
7123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7126 | return NULL; |
7127 | } | |
7128 | } | |
1d99702e RD |
7129 | if (_argo1) { |
7130 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7131 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
7132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p."); |
7133 | return NULL; | |
7134 | } | |
7135 | } | |
cf694132 | 7136 | { |
4268f798 | 7137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7138 | wxTreeCtrl_SetStateImageList(_arg0,_arg1); |
cf694132 | 7139 | |
4268f798 | 7140 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7141 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7142 | } Py_INCREF(Py_None); |
d5c9047a | 7143 | _resultobj = Py_None; |
8ab979d7 RD |
7144 | return _resultobj; |
7145 | } | |
7146 | ||
00b6c4e3 RD |
7147 | #define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0)) |
7148 | static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7149 | PyObject * _resultobj; | |
7150 | wxPyTreeCtrl * _arg0; | |
7151 | wxImageList * _arg1; | |
7152 | PyObject * _argo0 = 0; | |
7153 | PyObject * _argo1 = 0; | |
7154 | char *_kwnames[] = { "self","imageList", NULL }; | |
7155 | ||
7156 | self = self; | |
7157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1)) | |
7158 | return NULL; | |
7159 | if (_argo0) { | |
7160 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7161 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7162 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p."); | |
7163 | return NULL; | |
7164 | } | |
7165 | } | |
7166 | if (_argo1) { | |
7167 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7168 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
7169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p."); | |
7170 | return NULL; | |
7171 | } | |
7172 | } | |
7173 | { | |
4268f798 | 7174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7175 | wxTreeCtrl_AssignImageList(_arg0,_arg1); |
00b6c4e3 | 7176 | |
4268f798 | 7177 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
7178 | if (PyErr_Occurred()) return NULL; |
7179 | } Py_INCREF(Py_None); | |
7180 | _resultobj = Py_None; | |
7181 | return _resultobj; | |
7182 | } | |
7183 | ||
7184 | #define wxTreeCtrl_AssignStateImageList(_swigobj,_swigarg0) (_swigobj->AssignStateImageList(_swigarg0)) | |
7185 | static PyObject *_wrap_wxTreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7186 | PyObject * _resultobj; | |
7187 | wxPyTreeCtrl * _arg0; | |
7188 | wxImageList * _arg1; | |
7189 | PyObject * _argo0 = 0; | |
7190 | PyObject * _argo1 = 0; | |
7191 | char *_kwnames[] = { "self","imageList", NULL }; | |
7192 | ||
7193 | self = self; | |
7194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignStateImageList",_kwnames,&_argo0,&_argo1)) | |
7195 | return NULL; | |
7196 | if (_argo0) { | |
7197 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7198 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignStateImageList. Expected _wxPyTreeCtrl_p."); | |
7200 | return NULL; | |
7201 | } | |
7202 | } | |
7203 | if (_argo1) { | |
7204 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7205 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
7206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignStateImageList. Expected _wxImageList_p."); | |
7207 | return NULL; | |
7208 | } | |
7209 | } | |
7210 | { | |
4268f798 | 7211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7212 | wxTreeCtrl_AssignStateImageList(_arg0,_arg1); |
00b6c4e3 | 7213 | |
4268f798 | 7214 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
7215 | if (PyErr_Occurred()) return NULL; |
7216 | } Py_INCREF(Py_None); | |
7217 | _resultobj = Py_None; | |
7218 | return _resultobj; | |
7219 | } | |
7220 | ||
b1462dfa RD |
7221 | #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing()) |
7222 | static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7223 | PyObject * _resultobj; | |
7224 | unsigned int _result; | |
f6bcfd97 | 7225 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
7226 | PyObject * _argo0 = 0; |
7227 | char *_kwnames[] = { "self", NULL }; | |
7228 | ||
7229 | self = self; | |
7230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0)) | |
7231 | return NULL; | |
7232 | if (_argo0) { | |
7233 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7234 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
7236 | return NULL; |
7237 | } | |
7238 | } | |
7239 | { | |
4268f798 | 7240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7241 | _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0); |
b1462dfa | 7242 | |
4268f798 | 7243 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7244 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7245 | } _resultobj = Py_BuildValue("i",_result); |
7246 | return _resultobj; | |
7247 | } | |
7248 | ||
7249 | #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0)) | |
7250 | static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7251 | PyObject * _resultobj; | |
f6bcfd97 | 7252 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
7253 | unsigned int _arg1; |
7254 | PyObject * _argo0 = 0; | |
7255 | char *_kwnames[] = { "self","spacing", NULL }; | |
7256 | ||
7257 | self = self; | |
7258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1)) | |
7259 | return NULL; | |
7260 | if (_argo0) { | |
7261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
7264 | return NULL; |
7265 | } | |
7266 | } | |
7267 | { | |
4268f798 | 7268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7269 | wxTreeCtrl_SetSpacing(_arg0,_arg1); |
b1462dfa | 7270 | |
4268f798 | 7271 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7272 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7273 | } Py_INCREF(Py_None); |
7274 | _resultobj = Py_None; | |
7275 | return _resultobj; | |
7276 | } | |
7277 | ||
d5c9047a | 7278 | #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
efc5f224 | 7279 | static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7280 | PyObject * _resultobj; |
d5c9047a | 7281 | wxString * _result; |
f6bcfd97 | 7282 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7283 | wxTreeItemId * _arg1; |
1d99702e RD |
7284 | PyObject * _argo0 = 0; |
7285 | PyObject * _argo1 = 0; | |
efc5f224 | 7286 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7287 | |
7288 | self = self; | |
efc5f224 | 7289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7290 | return NULL; |
1d99702e RD |
7291 | if (_argo0) { |
7292 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7293 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7295 | return NULL; |
7296 | } | |
7297 | } | |
1d99702e | 7298 | if (_argo1) { |
7e50db3f | 7299 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p."); |
7301 | return NULL; | |
7302 | } | |
7303 | } | |
d5c9047a | 7304 | { |
4268f798 | 7305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7306 | _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1)); |
cf694132 | 7307 | |
4268f798 | 7308 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7309 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7310 | }{ |
c8bc7bb8 | 7311 | #if wxUSE_UNICODE |
7e50db3f | 7312 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7313 | #else |
eec92d76 | 7314 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7315 | #endif |
d5c9047a RD |
7316 | } |
7317 | { | |
7318 | delete _result; | |
7319 | } | |
8ab979d7 RD |
7320 | return _resultobj; |
7321 | } | |
7322 | ||
694759cf | 7323 | #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1)) |
efc5f224 | 7324 | static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7325 | PyObject * _resultobj; |
d5c9047a | 7326 | int _result; |
f6bcfd97 | 7327 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7328 | wxTreeItemId * _arg1; |
694759cf | 7329 | wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
7330 | PyObject * _argo0 = 0; |
7331 | PyObject * _argo1 = 0; | |
694759cf | 7332 | char *_kwnames[] = { "self","item","which", NULL }; |
8ab979d7 RD |
7333 | |
7334 | self = self; | |
694759cf | 7335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 7336 | return NULL; |
1d99702e RD |
7337 | if (_argo0) { |
7338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7341 | return NULL; |
7342 | } | |
7343 | } | |
1d99702e | 7344 | if (_argo1) { |
7e50db3f | 7345 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p."); |
7347 | return NULL; | |
7348 | } | |
7349 | } | |
cf694132 | 7350 | { |
4268f798 | 7351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7352 | _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2); |
cf694132 | 7353 | |
4268f798 | 7354 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7355 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7356 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7357 | return _resultobj; |
7358 | } | |
7359 | ||
d5c9047a | 7360 | #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0)) |
efc5f224 | 7361 | static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7362 | PyObject * _resultobj; |
d5c9047a | 7363 | int _result; |
f6bcfd97 | 7364 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7365 | wxTreeItemId * _arg1; |
1d99702e RD |
7366 | PyObject * _argo0 = 0; |
7367 | PyObject * _argo1 = 0; | |
efc5f224 | 7368 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7369 | |
7370 | self = self; | |
efc5f224 | 7371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 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_GetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7377 | return NULL; |
7378 | } | |
7379 | } | |
1d99702e | 7380 | if (_argo1) { |
7e50db3f | 7381 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p."); |
7383 | return NULL; | |
7384 | } | |
7385 | } | |
cf694132 | 7386 | { |
4268f798 | 7387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7388 | _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1); |
8ab979d7 | 7389 | |
4268f798 | 7390 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7391 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7392 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7393 | return _resultobj; |
7394 | } | |
7395 | ||
d5c9047a | 7396 | #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
efc5f224 | 7397 | static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7398 | PyObject * _resultobj; |
f6bcfd97 | 7399 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7400 | wxTreeItemId * _arg1; |
7401 | wxString * _arg2; | |
1d99702e RD |
7402 | PyObject * _argo0 = 0; |
7403 | PyObject * _argo1 = 0; | |
d5c9047a | 7404 | PyObject * _obj2 = 0; |
efc5f224 | 7405 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
7406 | |
7407 | self = self; | |
efc5f224 | 7408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7409 | return NULL; |
1d99702e RD |
7410 | if (_argo0) { |
7411 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7412 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7414 | return NULL; |
7415 | } | |
7416 | } | |
1d99702e | 7417 | if (_argo1) { |
7e50db3f | 7418 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p."); |
7420 | return NULL; | |
7421 | } | |
7422 | } | |
7423 | { | |
c8bc7bb8 RD |
7424 | _arg2 = wxString_in_helper(_obj2); |
7425 | if (_arg2 == NULL) | |
185d7c3e | 7426 | return NULL; |
d5c9047a | 7427 | } |
cf694132 | 7428 | { |
4268f798 | 7429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7430 | wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2); |
cf694132 | 7431 | |
4268f798 | 7432 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7433 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7434 | } Py_INCREF(Py_None); |
d5c9047a RD |
7435 | _resultobj = Py_None; |
7436 | { | |
7437 | if (_obj2) | |
7438 | delete _arg2; | |
7439 | } | |
8ab979d7 RD |
7440 | return _resultobj; |
7441 | } | |
7442 | ||
694759cf | 7443 | #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 7444 | static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7445 | PyObject * _resultobj; |
f6bcfd97 | 7446 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7447 | wxTreeItemId * _arg1; |
7448 | int _arg2; | |
694759cf | 7449 | wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
7450 | PyObject * _argo0 = 0; |
7451 | PyObject * _argo1 = 0; | |
694759cf | 7452 | char *_kwnames[] = { "self","item","image","which", NULL }; |
8ab979d7 RD |
7453 | |
7454 | self = self; | |
694759cf | 7455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 7456 | return NULL; |
1d99702e RD |
7457 | if (_argo0) { |
7458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7461 | return NULL; |
7462 | } | |
7463 | } | |
1d99702e | 7464 | if (_argo1) { |
7e50db3f | 7465 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p."); |
7467 | return NULL; | |
7468 | } | |
7469 | } | |
cf694132 | 7470 | { |
4268f798 | 7471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7472 | wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 7473 | |
4268f798 | 7474 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7475 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7476 | } Py_INCREF(Py_None); |
d5c9047a | 7477 | _resultobj = Py_None; |
8ab979d7 RD |
7478 | return _resultobj; |
7479 | } | |
7480 | ||
d5c9047a | 7481 | #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1)) |
efc5f224 | 7482 | static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7483 | PyObject * _resultobj; |
f6bcfd97 | 7484 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7485 | wxTreeItemId * _arg1; |
7486 | int _arg2; | |
1d99702e RD |
7487 | PyObject * _argo0 = 0; |
7488 | PyObject * _argo1 = 0; | |
efc5f224 | 7489 | char *_kwnames[] = { "self","item","image", NULL }; |
8ab979d7 RD |
7490 | |
7491 | self = self; | |
efc5f224 | 7492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 7493 | return NULL; |
1d99702e RD |
7494 | if (_argo0) { |
7495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7498 | return NULL; |
7499 | } | |
7500 | } | |
1d99702e | 7501 | if (_argo1) { |
7e50db3f | 7502 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p."); |
7504 | return NULL; | |
7505 | } | |
7506 | } | |
cf694132 | 7507 | { |
4268f798 | 7508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7509 | wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2); |
cf694132 | 7510 | |
4268f798 | 7511 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7512 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7513 | } Py_INCREF(Py_None); |
7514 | _resultobj = Py_None; | |
7515 | return _resultobj; | |
7516 | } | |
7517 | ||
7518 | #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1)) | |
efc5f224 | 7519 | static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7520 | PyObject * _resultobj; |
f6bcfd97 | 7521 | wxPyTreeCtrl * _arg0; |
cf694132 | 7522 | wxTreeItemId * _arg1; |
1d99702e RD |
7523 | bool _arg2 = (bool ) TRUE; |
7524 | PyObject * _argo0 = 0; | |
7525 | PyObject * _argo1 = 0; | |
7526 | int tempbool2 = (int) TRUE; | |
efc5f224 | 7527 | char *_kwnames[] = { "self","item","hasChildren", NULL }; |
cf694132 RD |
7528 | |
7529 | self = self; | |
efc5f224 | 7530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2)) |
cf694132 | 7531 | return NULL; |
1d99702e RD |
7532 | if (_argo0) { |
7533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7536 | return NULL; |
7537 | } | |
7538 | } | |
1d99702e | 7539 | if (_argo1) { |
7e50db3f | 7540 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
cf694132 RD |
7541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p."); |
7542 | return NULL; | |
7543 | } | |
7544 | } | |
7545 | _arg2 = (bool ) tempbool2; | |
7546 | { | |
4268f798 | 7547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7548 | wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2); |
cf694132 | 7549 | |
4268f798 | 7550 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7551 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7552 | } Py_INCREF(Py_None); |
d5c9047a | 7553 | _resultobj = Py_None; |
8ab979d7 RD |
7554 | return _resultobj; |
7555 | } | |
7556 | ||
f6bcfd97 | 7557 | static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7558 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7559 | if (data == NULL) { | |
7560 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7561 | data->SetId(item); // set the id |
cf694132 RD |
7562 | self->SetItemData(item, data); |
7563 | } | |
7564 | return data; | |
7565 | } | |
efc5f224 | 7566 | static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
7567 | PyObject * _resultobj; |
7568 | wxPyTreeItemData * _result; | |
f6bcfd97 | 7569 | wxPyTreeCtrl * _arg0; |
cf694132 | 7570 | wxTreeItemId * _arg1; |
1d99702e RD |
7571 | PyObject * _argo0 = 0; |
7572 | PyObject * _argo1 = 0; | |
efc5f224 | 7573 | char *_kwnames[] = { "self","item", NULL }; |
cf694132 RD |
7574 | char _ptemp[128]; |
7575 | ||
7576 | self = self; | |
efc5f224 | 7577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1)) |
cf694132 | 7578 | return NULL; |
1d99702e RD |
7579 | if (_argo0) { |
7580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7583 | return NULL; |
7584 | } | |
7585 | } | |
1d99702e | 7586 | if (_argo1) { |
7e50db3f | 7587 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
cf694132 RD |
7588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p."); |
7589 | return NULL; | |
7590 | } | |
7591 | } | |
7592 | { | |
4268f798 | 7593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7594 | _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1); |
cf694132 | 7595 | |
4268f798 | 7596 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7597 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7598 | } if (_result) { |
7599 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
7600 | _resultobj = Py_BuildValue("s",_ptemp); | |
7601 | } else { | |
7602 | Py_INCREF(Py_None); | |
7603 | _resultobj = Py_None; | |
7604 | } | |
cf694132 RD |
7605 | return _resultobj; |
7606 | } | |
7607 | ||
f6bcfd97 BP |
7608 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) { |
7609 | data->SetId(item); // set the id | |
7610 | self->SetItemData(item, data); | |
c368d904 | 7611 | } |
efc5f224 | 7612 | static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7613 | PyObject * _resultobj; |
f6bcfd97 | 7614 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7615 | wxTreeItemId * _arg1; |
cf694132 | 7616 | wxPyTreeItemData * _arg2; |
1d99702e RD |
7617 | PyObject * _argo0 = 0; |
7618 | PyObject * _argo1 = 0; | |
7619 | PyObject * _argo2 = 0; | |
efc5f224 | 7620 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
7621 | |
7622 | self = self; | |
efc5f224 | 7623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2)) |
8ab979d7 | 7624 | return NULL; |
1d99702e RD |
7625 | if (_argo0) { |
7626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7629 | return NULL; |
7630 | } | |
7631 | } | |
1d99702e | 7632 | if (_argo1) { |
7e50db3f | 7633 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p."); |
7635 | return NULL; | |
7636 | } | |
7637 | } | |
1d99702e RD |
7638 | if (_argo2) { |
7639 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7640 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) { | |
cf694132 | 7641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
7642 | return NULL; |
7643 | } | |
7644 | } | |
cf694132 | 7645 | { |
4268f798 | 7646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7647 | wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2); |
cf694132 | 7648 | |
4268f798 | 7649 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7650 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7651 | } Py_INCREF(Py_None); |
d5c9047a | 7652 | _resultobj = Py_None; |
8ab979d7 RD |
7653 | return _resultobj; |
7654 | } | |
7655 | ||
f6bcfd97 | 7656 | static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7657 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7658 | if (data == NULL) { | |
7659 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7660 | data->SetId(item); // set the id |
cf694132 RD |
7661 | self->SetItemData(item, data); |
7662 | } | |
7663 | return data->GetData(); | |
c368d904 | 7664 | } |
efc5f224 | 7665 | static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 7666 | PyObject * _resultobj; |
cf694132 | 7667 | PyObject * _result; |
f6bcfd97 | 7668 | wxPyTreeCtrl * _arg0; |
08127323 | 7669 | wxTreeItemId * _arg1; |
1d99702e RD |
7670 | PyObject * _argo0 = 0; |
7671 | PyObject * _argo1 = 0; | |
efc5f224 | 7672 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
7673 | |
7674 | self = self; | |
efc5f224 | 7675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1)) |
08127323 | 7676 | return NULL; |
1d99702e RD |
7677 | if (_argo0) { |
7678 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7679 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
7681 | return NULL; |
7682 | } | |
7683 | } | |
1d99702e | 7684 | if (_argo1) { |
7e50db3f | 7685 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
cf694132 | 7686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p."); |
08127323 RD |
7687 | return NULL; |
7688 | } | |
7689 | } | |
cf694132 | 7690 | { |
4268f798 | 7691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7692 | _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1); |
cf694132 | 7693 | |
4268f798 | 7694 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7695 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7696 | }{ |
7697 | _resultobj = _result; | |
7698 | } | |
7699 | return _resultobj; | |
7700 | } | |
7701 | ||
f6bcfd97 | 7702 | static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) { |
cf694132 RD |
7703 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7704 | if (data == NULL) { | |
7705 | data = new wxPyTreeItemData(obj); | |
f6bcfd97 | 7706 | data->SetId(item); // set the id |
cf694132 RD |
7707 | self->SetItemData(item, data); |
7708 | } else | |
7709 | data->SetData(obj); | |
c368d904 | 7710 | } |
efc5f224 | 7711 | static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7712 | PyObject * _resultobj; |
f6bcfd97 | 7713 | wxPyTreeCtrl * _arg0; |
cf694132 RD |
7714 | wxTreeItemId * _arg1; |
7715 | PyObject * _arg2; | |
1d99702e RD |
7716 | PyObject * _argo0 = 0; |
7717 | PyObject * _argo1 = 0; | |
cf694132 | 7718 | PyObject * _obj2 = 0; |
efc5f224 | 7719 | char *_kwnames[] = { "self","item","obj", NULL }; |
cf694132 RD |
7720 | |
7721 | self = self; | |
efc5f224 | 7722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2)) |
cf694132 | 7723 | return NULL; |
1d99702e RD |
7724 | if (_argo0) { |
7725 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7726 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7728 | return NULL; |
7729 | } | |
7730 | } | |
1d99702e | 7731 | if (_argo1) { |
7e50db3f | 7732 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
cf694132 RD |
7733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p."); |
7734 | return NULL; | |
7735 | } | |
7736 | } | |
7737 | { | |
7738 | _arg2 = _obj2; | |
7739 | } | |
7740 | { | |
4268f798 | 7741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7742 | wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2); |
cf694132 | 7743 | |
4268f798 | 7744 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7745 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7746 | } Py_INCREF(Py_None); |
08127323 RD |
7747 | _resultobj = Py_None; |
7748 | return _resultobj; | |
7749 | } | |
7750 | ||
7e50db3f RD |
7751 | #define wxTreeCtrl_GetItemTextColour(_swigobj,_swigarg0) (_swigobj->GetItemTextColour(_swigarg0)) |
7752 | static PyObject *_wrap_wxTreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7753 | PyObject * _resultobj; | |
7754 | wxColour * _result; | |
7755 | wxPyTreeCtrl * _arg0; | |
7756 | wxTreeItemId * _arg1; | |
7757 | PyObject * _argo0 = 0; | |
7758 | PyObject * _argo1 = 0; | |
7759 | char *_kwnames[] = { "self","item", NULL }; | |
7760 | char _ptemp[128]; | |
7761 | ||
7762 | self = self; | |
7763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemTextColour",_kwnames,&_argo0,&_argo1)) | |
7764 | return NULL; | |
7765 | if (_argo0) { | |
7766 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7767 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
7769 | return NULL; | |
7770 | } | |
7771 | } | |
7772 | if (_argo1) { | |
7773 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemTextColour. Expected _wxTreeItemId_p."); | |
7775 | return NULL; | |
7776 | } | |
7777 | } | |
7778 | { | |
7779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7780 | _result = new wxColour (wxTreeCtrl_GetItemTextColour(_arg0,*_arg1)); | |
7781 | ||
7782 | wxPyEndAllowThreads(__tstate); | |
7783 | if (PyErr_Occurred()) return NULL; | |
7784 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
7785 | _resultobj = Py_BuildValue("s",_ptemp); | |
7786 | return _resultobj; | |
7787 | } | |
7788 | ||
7789 | #define wxTreeCtrl_GetItemBackgroundColour(_swigobj,_swigarg0) (_swigobj->GetItemBackgroundColour(_swigarg0)) | |
7790 | static PyObject *_wrap_wxTreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7791 | PyObject * _resultobj; | |
7792 | wxColour * _result; | |
7793 | wxPyTreeCtrl * _arg0; | |
7794 | wxTreeItemId * _arg1; | |
7795 | PyObject * _argo0 = 0; | |
7796 | PyObject * _argo1 = 0; | |
7797 | char *_kwnames[] = { "self","item", NULL }; | |
7798 | char _ptemp[128]; | |
7799 | ||
7800 | self = self; | |
7801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemBackgroundColour",_kwnames,&_argo0,&_argo1)) | |
7802 | return NULL; | |
7803 | if (_argo0) { | |
7804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
7807 | return NULL; | |
7808 | } | |
7809 | } | |
7810 | if (_argo1) { | |
7811 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
7813 | return NULL; | |
7814 | } | |
7815 | } | |
7816 | { | |
7817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7818 | _result = new wxColour (wxTreeCtrl_GetItemBackgroundColour(_arg0,*_arg1)); | |
7819 | ||
7820 | wxPyEndAllowThreads(__tstate); | |
7821 | if (PyErr_Occurred()) return NULL; | |
7822 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
7823 | _resultobj = Py_BuildValue("s",_ptemp); | |
7824 | return _resultobj; | |
7825 | } | |
7826 | ||
7827 | #define wxTreeCtrl_GetItemFont(_swigobj,_swigarg0) (_swigobj->GetItemFont(_swigarg0)) | |
7828 | static PyObject *_wrap_wxTreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7829 | PyObject * _resultobj; | |
7830 | wxFont * _result; | |
7831 | wxPyTreeCtrl * _arg0; | |
7832 | wxTreeItemId * _arg1; | |
7833 | PyObject * _argo0 = 0; | |
7834 | PyObject * _argo1 = 0; | |
7835 | char *_kwnames[] = { "self","item", NULL }; | |
7836 | char _ptemp[128]; | |
7837 | ||
7838 | self = self; | |
7839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemFont",_kwnames,&_argo0,&_argo1)) | |
7840 | return NULL; | |
7841 | if (_argo0) { | |
7842 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7843 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemFont. Expected _wxPyTreeCtrl_p."); | |
7845 | return NULL; | |
7846 | } | |
7847 | } | |
7848 | if (_argo1) { | |
7849 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemFont. Expected _wxTreeItemId_p."); | |
7851 | return NULL; | |
7852 | } | |
7853 | } | |
7854 | { | |
7855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7856 | _result = new wxFont (wxTreeCtrl_GetItemFont(_arg0,*_arg1)); | |
7857 | ||
7858 | wxPyEndAllowThreads(__tstate); | |
7859 | if (PyErr_Occurred()) return NULL; | |
7860 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
7861 | _resultobj = Py_BuildValue("s",_ptemp); | |
7862 | return _resultobj; | |
7863 | } | |
7864 | ||
d5c9047a | 7865 | #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) |
efc5f224 | 7866 | static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7867 | PyObject * _resultobj; |
d5c9047a | 7868 | bool _result; |
f6bcfd97 | 7869 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7870 | wxTreeItemId * _arg1; |
1d99702e RD |
7871 | PyObject * _argo0 = 0; |
7872 | PyObject * _argo1 = 0; | |
efc5f224 | 7873 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7874 | |
7875 | self = self; | |
efc5f224 | 7876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7877 | return NULL; |
1d99702e RD |
7878 | if (_argo0) { |
7879 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7880 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7881 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7882 | return NULL; |
7883 | } | |
7884 | } | |
1d99702e | 7885 | if (_argo1) { |
7e50db3f | 7886 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p."); |
7888 | return NULL; | |
7889 | } | |
7890 | } | |
cf694132 | 7891 | { |
4268f798 | 7892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7893 | _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1); |
cf694132 | 7894 | |
4268f798 | 7895 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7896 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7897 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7898 | return _resultobj; |
7899 | } | |
7900 | ||
d5c9047a | 7901 | #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0)) |
efc5f224 | 7902 | static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7903 | PyObject * _resultobj; |
d5c9047a | 7904 | bool _result; |
f6bcfd97 | 7905 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7906 | wxTreeItemId * _arg1; |
1d99702e RD |
7907 | PyObject * _argo0 = 0; |
7908 | PyObject * _argo1 = 0; | |
efc5f224 | 7909 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7910 | |
7911 | self = self; | |
efc5f224 | 7912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7913 | return NULL; |
1d99702e RD |
7914 | if (_argo0) { |
7915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7918 | return NULL; |
7919 | } | |
7920 | } | |
1d99702e | 7921 | if (_argo1) { |
7e50db3f | 7922 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p."); |
7924 | return NULL; | |
7925 | } | |
7926 | } | |
cf694132 | 7927 | { |
4268f798 | 7928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7929 | _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1); |
cf694132 | 7930 | |
4268f798 | 7931 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7932 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7933 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7934 | return _resultobj; |
7935 | } | |
7936 | ||
d5c9047a | 7937 | #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0)) |
efc5f224 | 7938 | static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7939 | PyObject * _resultobj; |
d5c9047a | 7940 | bool _result; |
f6bcfd97 | 7941 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7942 | wxTreeItemId * _arg1; |
1d99702e RD |
7943 | PyObject * _argo0 = 0; |
7944 | PyObject * _argo1 = 0; | |
efc5f224 | 7945 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7946 | |
7947 | self = self; | |
efc5f224 | 7948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7949 | return NULL; |
1d99702e RD |
7950 | if (_argo0) { |
7951 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7952 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7954 | return NULL; |
7955 | } | |
7956 | } | |
1d99702e | 7957 | if (_argo1) { |
7e50db3f | 7958 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7959 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p."); |
7960 | return NULL; | |
7961 | } | |
7962 | } | |
cf694132 | 7963 | { |
4268f798 | 7964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7965 | _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1); |
cf694132 | 7966 | |
4268f798 | 7967 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7968 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7969 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7970 | return _resultobj; |
7971 | } | |
7972 | ||
d5c9047a | 7973 | #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
efc5f224 | 7974 | static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7975 | PyObject * _resultobj; |
d5c9047a | 7976 | bool _result; |
f6bcfd97 | 7977 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7978 | wxTreeItemId * _arg1; |
1d99702e RD |
7979 | PyObject * _argo0 = 0; |
7980 | PyObject * _argo1 = 0; | |
efc5f224 | 7981 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7982 | |
7983 | self = self; | |
efc5f224 | 7984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7985 | return NULL; |
1d99702e RD |
7986 | if (_argo0) { |
7987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7990 | return NULL; |
7991 | } | |
7992 | } | |
1d99702e | 7993 | if (_argo1) { |
7e50db3f | 7994 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p."); |
7996 | return NULL; | |
7997 | } | |
7998 | } | |
cf694132 | 7999 | { |
4268f798 | 8000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8001 | _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1); |
cf694132 | 8002 | |
4268f798 | 8003 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8004 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8005 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8006 | return _resultobj; |
8007 | } | |
8008 | ||
8009 | #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem()) | |
efc5f224 | 8010 | static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8011 | PyObject * _resultobj; |
d5c9047a | 8012 | wxTreeItemId * _result; |
f6bcfd97 | 8013 | wxPyTreeCtrl * _arg0; |
1d99702e | 8014 | PyObject * _argo0 = 0; |
efc5f224 | 8015 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 8016 | char _ptemp[128]; |
8ab979d7 RD |
8017 | |
8018 | self = self; | |
efc5f224 | 8019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0)) |
8ab979d7 | 8020 | return NULL; |
1d99702e RD |
8021 | if (_argo0) { |
8022 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8023 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8025 | return NULL; |
8026 | } | |
8027 | } | |
cf694132 | 8028 | { |
4268f798 | 8029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8030 | _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0)); |
cf694132 | 8031 | |
4268f798 | 8032 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8033 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8034 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8035 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8036 | return _resultobj; |
8037 | } | |
8038 | ||
8039 | #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 8040 | static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8041 | PyObject * _resultobj; |
d5c9047a | 8042 | wxTreeItemId * _result; |
f6bcfd97 | 8043 | wxPyTreeCtrl * _arg0; |
1d99702e | 8044 | PyObject * _argo0 = 0; |
efc5f224 | 8045 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 8046 | char _ptemp[128]; |
8ab979d7 RD |
8047 | |
8048 | self = self; | |
efc5f224 | 8049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 8050 | return NULL; |
1d99702e RD |
8051 | if (_argo0) { |
8052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8055 | return NULL; |
8056 | } | |
8057 | } | |
cf694132 | 8058 | { |
4268f798 | 8059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8060 | _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0)); |
cf694132 | 8061 | |
4268f798 | 8062 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8063 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8064 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8065 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8066 | return _resultobj; |
8067 | } | |
8068 | ||
7e50db3f | 8069 | #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetItemParent(_swigarg0)) |
eb715945 | 8070 | static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8071 | PyObject * _resultobj; |
d5c9047a | 8072 | wxTreeItemId * _result; |
f6bcfd97 | 8073 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8074 | wxTreeItemId * _arg1; |
1d99702e RD |
8075 | PyObject * _argo0 = 0; |
8076 | PyObject * _argo1 = 0; | |
efc5f224 | 8077 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8078 | char _ptemp[128]; |
8ab979d7 RD |
8079 | |
8080 | self = self; | |
eb715945 | 8081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8082 | return NULL; |
1d99702e RD |
8083 | if (_argo0) { |
8084 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8085 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8086 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8087 | return NULL; |
8088 | } | |
8089 | } | |
1d99702e | 8090 | if (_argo1) { |
7e50db3f | 8091 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
eb715945 | 8092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8093 | return NULL; |
8094 | } | |
8095 | } | |
cf694132 | 8096 | { |
4268f798 | 8097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8098 | _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1)); |
cf694132 | 8099 | |
4268f798 | 8100 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8101 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8102 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8103 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8104 | return _resultobj; |
8105 | } | |
8106 | ||
f6bcfd97 | 8107 | static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) { |
4268f798 | 8108 | wxPyBeginBlockThreads(); |
d426c97e RD |
8109 | PyObject* rval = PyList_New(0); |
8110 | wxArrayTreeItemIds array; | |
8111 | size_t num, x; | |
8112 | num = self->GetSelections(array); | |
8113 | for (x=0; x < num; x++) { | |
c368d904 | 8114 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); |
7e50db3f | 8115 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), TRUE); |
d426c97e RD |
8116 | PyList_Append(rval, item); |
8117 | } | |
4268f798 | 8118 | wxPyEndBlockThreads(); |
d426c97e RD |
8119 | return rval; |
8120 | } | |
8121 | static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8122 | PyObject * _resultobj; | |
8123 | PyObject * _result; | |
f6bcfd97 | 8124 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8125 | PyObject * _argo0 = 0; |
8126 | char *_kwnames[] = { "self", NULL }; | |
8127 | ||
8128 | self = self; | |
8129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0)) | |
8130 | return NULL; | |
8131 | if (_argo0) { | |
8132 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8133 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8134 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8135 | return NULL; |
8136 | } | |
8137 | } | |
8138 | { | |
4268f798 | 8139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8140 | _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0); |
d426c97e | 8141 | |
4268f798 | 8142 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8143 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8144 | }{ |
8145 | _resultobj = _result; | |
8146 | } | |
8147 | return _resultobj; | |
8148 | } | |
8149 | ||
bb0054cd | 8150 | #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1)) |
efc5f224 | 8151 | static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
8152 | PyObject * _resultobj; |
8153 | size_t _result; | |
f6bcfd97 | 8154 | wxPyTreeCtrl * _arg0; |
bb0054cd | 8155 | wxTreeItemId * _arg1; |
1d99702e RD |
8156 | bool _arg2 = (bool ) TRUE; |
8157 | PyObject * _argo0 = 0; | |
8158 | PyObject * _argo1 = 0; | |
8159 | int tempbool2 = (int) TRUE; | |
efc5f224 | 8160 | char *_kwnames[] = { "self","item","recursively", NULL }; |
bb0054cd RD |
8161 | |
8162 | self = self; | |
efc5f224 | 8163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2)) |
bb0054cd | 8164 | return NULL; |
1d99702e RD |
8165 | if (_argo0) { |
8166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p."); | |
bb0054cd RD |
8169 | return NULL; |
8170 | } | |
8171 | } | |
1d99702e | 8172 | if (_argo1) { |
7e50db3f | 8173 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
bb0054cd RD |
8174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p."); |
8175 | return NULL; | |
8176 | } | |
8177 | } | |
8178 | _arg2 = (bool ) tempbool2; | |
8179 | { | |
4268f798 | 8180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8181 | _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2); |
bb0054cd | 8182 | |
4268f798 | 8183 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8184 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
8185 | } _resultobj = Py_BuildValue("i",_result); |
8186 | return _resultobj; | |
8187 | } | |
8188 | ||
d5c9047a | 8189 | #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1)) |
efc5f224 | 8190 | static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8191 | PyObject * _resultobj; |
d5c9047a | 8192 | wxTreeItemId * _result; |
f6bcfd97 | 8193 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8194 | wxTreeItemId * _arg1; |
0815db26 | 8195 | long * _arg2 = (long *) &longzero; |
1d99702e RD |
8196 | PyObject * _argo0 = 0; |
8197 | PyObject * _argo1 = 0; | |
d5c9047a RD |
8198 | long temp; |
8199 | PyObject * _obj2 = 0; | |
efc5f224 | 8200 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 8201 | char _ptemp[128]; |
8ab979d7 RD |
8202 | |
8203 | self = self; | |
f87dfa06 | 8204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 8205 | return NULL; |
1d99702e RD |
8206 | if (_argo0) { |
8207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8210 | return NULL; |
8211 | } | |
8212 | } | |
1d99702e | 8213 | if (_argo1) { |
7e50db3f | 8214 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a | 8215 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8216 | return NULL; |
8217 | } | |
8218 | } | |
f87dfa06 | 8219 | if (_obj2) |
d5c9047a RD |
8220 | { |
8221 | temp = (long) PyInt_AsLong(_obj2); | |
8222 | _arg2 = &temp; | |
8223 | } | |
cf694132 | 8224 | { |
4268f798 | 8225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8226 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); |
cf694132 | 8227 | |
4268f798 | 8228 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8229 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8230 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8231 | _resultobj = Py_BuildValue("s",_ptemp); |
8232 | { | |
8233 | PyObject *o; | |
8234 | o = PyInt_FromLong((long) (*_arg2)); | |
8235 | _resultobj = t_output_helper(_resultobj, o); | |
8236 | } | |
8ab979d7 RD |
8237 | return _resultobj; |
8238 | } | |
8239 | ||
d5c9047a | 8240 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) |
efc5f224 | 8241 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8242 | PyObject * _resultobj; |
d5c9047a | 8243 | wxTreeItemId * _result; |
f6bcfd97 | 8244 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8245 | wxTreeItemId * _arg1; |
8246 | long * _arg2; | |
1d99702e RD |
8247 | PyObject * _argo0 = 0; |
8248 | PyObject * _argo1 = 0; | |
d5c9047a | 8249 | long temp; |
8ab979d7 | 8250 | PyObject * _obj2 = 0; |
efc5f224 | 8251 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 8252 | char _ptemp[128]; |
8ab979d7 RD |
8253 | |
8254 | self = self; | |
efc5f224 | 8255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 8256 | return NULL; |
1d99702e RD |
8257 | if (_argo0) { |
8258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8261 | return NULL; |
8262 | } | |
8263 | } | |
1d99702e | 8264 | if (_argo1) { |
7e50db3f | 8265 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a | 8266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); |
8ab979d7 | 8267 | return NULL; |
d5c9047a | 8268 | } |
8ab979d7 | 8269 | } |
d5c9047a RD |
8270 | { |
8271 | temp = (long) PyInt_AsLong(_obj2); | |
8272 | _arg2 = &temp; | |
8ab979d7 | 8273 | } |
cf694132 | 8274 | { |
4268f798 | 8275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8276 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); |
cf694132 | 8277 | |
4268f798 | 8278 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8279 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8280 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8281 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 | 8282 | { |
d5c9047a RD |
8283 | PyObject *o; |
8284 | o = PyInt_FromLong((long) (*_arg2)); | |
8285 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
8286 | } |
8287 | return _resultobj; | |
8288 | } | |
8289 | ||
d5c9047a | 8290 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) |
efc5f224 | 8291 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8292 | PyObject * _resultobj; |
d5c9047a | 8293 | wxTreeItemId * _result; |
f6bcfd97 | 8294 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8295 | wxTreeItemId * _arg1; |
1d99702e RD |
8296 | PyObject * _argo0 = 0; |
8297 | PyObject * _argo1 = 0; | |
efc5f224 | 8298 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8299 | char _ptemp[128]; |
8ab979d7 RD |
8300 | |
8301 | self = self; | |
efc5f224 | 8302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8303 | return NULL; |
1d99702e RD |
8304 | if (_argo0) { |
8305 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8306 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8308 | return NULL; |
8309 | } | |
8310 | } | |
1d99702e | 8311 | if (_argo1) { |
7e50db3f | 8312 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); |
8314 | return NULL; | |
8315 | } | |
8316 | } | |
cf694132 | 8317 | { |
4268f798 | 8318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8319 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); |
cf694132 | 8320 | |
4268f798 | 8321 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8322 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8323 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8324 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8325 | return _resultobj; |
8326 | } | |
8327 | ||
d5c9047a | 8328 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) |
efc5f224 | 8329 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8330 | PyObject * _resultobj; |
d5c9047a | 8331 | wxTreeItemId * _result; |
f6bcfd97 | 8332 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8333 | wxTreeItemId * _arg1; |
1d99702e RD |
8334 | PyObject * _argo0 = 0; |
8335 | PyObject * _argo1 = 0; | |
efc5f224 | 8336 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8337 | char _ptemp[128]; |
8ab979d7 RD |
8338 | |
8339 | self = self; | |
efc5f224 | 8340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8341 | return NULL; |
1d99702e RD |
8342 | if (_argo0) { |
8343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8346 | return NULL; |
8347 | } | |
8348 | } | |
1d99702e | 8349 | if (_argo1) { |
7e50db3f | 8350 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); |
8352 | return NULL; | |
8353 | } | |
8354 | } | |
cf694132 | 8355 | { |
4268f798 | 8356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8357 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); |
cf694132 | 8358 | |
4268f798 | 8359 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8360 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8361 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8362 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8363 | return _resultobj; |
8364 | } | |
8365 | ||
d5c9047a | 8366 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) |
efc5f224 | 8367 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8368 | PyObject * _resultobj; |
d5c9047a | 8369 | wxTreeItemId * _result; |
f6bcfd97 | 8370 | wxPyTreeCtrl * _arg0; |
1d99702e | 8371 | PyObject * _argo0 = 0; |
efc5f224 | 8372 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 8373 | char _ptemp[128]; |
8ab979d7 RD |
8374 | |
8375 | self = self; | |
efc5f224 | 8376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) |
8ab979d7 | 8377 | return NULL; |
1d99702e RD |
8378 | if (_argo0) { |
8379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8382 | return NULL; |
8383 | } | |
8384 | } | |
cf694132 | 8385 | { |
4268f798 | 8386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8387 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); |
cf694132 | 8388 | |
4268f798 | 8389 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8390 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8391 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8392 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8393 | return _resultobj; |
8394 | } | |
8395 | ||
d5c9047a | 8396 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) |
efc5f224 | 8397 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8398 | PyObject * _resultobj; |
d5c9047a | 8399 | wxTreeItemId * _result; |
f6bcfd97 | 8400 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8401 | wxTreeItemId * _arg1; |
1d99702e RD |
8402 | PyObject * _argo0 = 0; |
8403 | PyObject * _argo1 = 0; | |
efc5f224 | 8404 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8405 | char _ptemp[128]; |
8ab979d7 RD |
8406 | |
8407 | self = self; | |
efc5f224 | 8408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8409 | return NULL; |
1d99702e RD |
8410 | if (_argo0) { |
8411 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8412 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8414 | return NULL; |
8415 | } | |
8416 | } | |
1d99702e | 8417 | if (_argo1) { |
7e50db3f | 8418 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); |
8420 | return NULL; | |
8421 | } | |
8422 | } | |
cf694132 | 8423 | { |
4268f798 | 8424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8425 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); |
cf694132 | 8426 | |
4268f798 | 8427 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8428 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8429 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8430 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8431 | return _resultobj; |
8432 | } | |
8433 | ||
d5c9047a | 8434 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) |
efc5f224 | 8435 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8436 | PyObject * _resultobj; |
d5c9047a | 8437 | wxTreeItemId * _result; |
f6bcfd97 | 8438 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8439 | wxTreeItemId * _arg1; |
1d99702e RD |
8440 | PyObject * _argo0 = 0; |
8441 | PyObject * _argo1 = 0; | |
efc5f224 | 8442 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8443 | char _ptemp[128]; |
8ab979d7 RD |
8444 | |
8445 | self = self; | |
efc5f224 | 8446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8447 | return NULL; |
1d99702e RD |
8448 | if (_argo0) { |
8449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8452 | return NULL; |
8453 | } | |
8454 | } | |
1d99702e | 8455 | if (_argo1) { |
7e50db3f | 8456 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a | 8457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8458 | return NULL; |
8459 | } | |
8460 | } | |
cf694132 | 8461 | { |
4268f798 | 8462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8463 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); |
cf694132 | 8464 | |
4268f798 | 8465 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8466 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8467 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8468 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8469 | return _resultobj; |
8470 | } | |
8471 | ||
d426c97e RD |
8472 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) |
8473 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8474 | PyObject * _resultobj; | |
8475 | wxTreeItemId * _result; | |
f6bcfd97 | 8476 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8477 | wxTreeItemId * _arg1; |
8478 | PyObject * _argo0 = 0; | |
8479 | PyObject * _argo1 = 0; | |
8480 | char *_kwnames[] = { "self","item", NULL }; | |
8481 | char _ptemp[128]; | |
8482 | ||
8483 | self = self; | |
8484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
8485 | return NULL; | |
8486 | if (_argo0) { | |
8487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8490 | return NULL; |
8491 | } | |
8492 | } | |
8493 | if (_argo1) { | |
7e50db3f | 8494 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d426c97e RD |
8495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); |
8496 | return NULL; | |
8497 | } | |
8498 | } | |
8499 | { | |
4268f798 | 8500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8501 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); |
d426c97e | 8502 | |
4268f798 | 8503 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8504 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8505 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8506 | _resultobj = Py_BuildValue("s",_ptemp); | |
8507 | return _resultobj; | |
8508 | } | |
8509 | ||
d5c9047a | 8510 | #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 8511 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8512 | PyObject * _resultobj; |
d5c9047a | 8513 | wxTreeItemId * _result; |
f6bcfd97 | 8514 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8515 | wxString * _arg1; |
1d99702e RD |
8516 | int _arg2 = (int ) -1; |
8517 | int _arg3 = (int ) -1; | |
8518 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
8519 | PyObject * _argo0 = 0; | |
d5c9047a | 8520 | PyObject * _obj1 = 0; |
1d99702e | 8521 | PyObject * _argo4 = 0; |
efc5f224 | 8522 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; |
d5c9047a | 8523 | char _ptemp[128]; |
8ab979d7 RD |
8524 | |
8525 | self = self; | |
efc5f224 | 8526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) |
8ab979d7 | 8527 | return NULL; |
1d99702e RD |
8528 | if (_argo0) { |
8529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8532 | return NULL; |
8533 | } | |
8534 | } | |
d5c9047a | 8535 | { |
c8bc7bb8 RD |
8536 | _arg1 = wxString_in_helper(_obj1); |
8537 | if (_arg1 == NULL) | |
185d7c3e | 8538 | return NULL; |
d5c9047a | 8539 | } |
1d99702e RD |
8540 | if (_argo4) { |
8541 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
8542 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
cf694132 | 8543 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
8544 | return NULL; |
8545 | } | |
8546 | } | |
cf694132 | 8547 | { |
4268f798 | 8548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8549 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); |
cf694132 | 8550 | |
4268f798 | 8551 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8552 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8553 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8554 | _resultobj = Py_BuildValue("s",_ptemp); |
8555 | { | |
8556 | if (_obj1) | |
8557 | delete _arg1; | |
8558 | } | |
8ab979d7 RD |
8559 | return _resultobj; |
8560 | } | |
8561 | ||
d5c9047a | 8562 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8563 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8564 | PyObject * _resultobj; |
d5c9047a | 8565 | wxTreeItemId * _result; |
f6bcfd97 | 8566 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8567 | wxTreeItemId * _arg1; |
8568 | wxString * _arg2; | |
1d99702e RD |
8569 | int _arg3 = (int ) -1; |
8570 | int _arg4 = (int ) -1; | |
8571 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8572 | PyObject * _argo0 = 0; | |
8573 | PyObject * _argo1 = 0; | |
d5c9047a | 8574 | PyObject * _obj2 = 0; |
1d99702e | 8575 | PyObject * _argo5 = 0; |
efc5f224 | 8576 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8577 | char _ptemp[128]; |
8ab979d7 RD |
8578 | |
8579 | self = self; | |
efc5f224 | 8580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8581 | return NULL; |
1d99702e RD |
8582 | if (_argo0) { |
8583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8586 | return NULL; |
8587 | } | |
8588 | } | |
1d99702e | 8589 | if (_argo1) { |
7e50db3f | 8590 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); |
8592 | return NULL; | |
8593 | } | |
8594 | } | |
8595 | { | |
c8bc7bb8 RD |
8596 | _arg2 = wxString_in_helper(_obj2); |
8597 | if (_arg2 == NULL) | |
185d7c3e | 8598 | return NULL; |
d5c9047a | 8599 | } |
1d99702e RD |
8600 | if (_argo5) { |
8601 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8602 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8604 | return NULL; |
8605 | } | |
8606 | } | |
cf694132 | 8607 | { |
4268f798 | 8608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8609 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); |
cf694132 | 8610 | |
4268f798 | 8611 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8612 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8613 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8614 | _resultobj = Py_BuildValue("s",_ptemp); |
8615 | { | |
8616 | if (_obj2) | |
8617 | delete _arg2; | |
8618 | } | |
8ab979d7 RD |
8619 | return _resultobj; |
8620 | } | |
8621 | ||
d5c9047a | 8622 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 8623 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8624 | PyObject * _resultobj; |
d5c9047a | 8625 | wxTreeItemId * _result; |
f6bcfd97 | 8626 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8627 | wxTreeItemId * _arg1; |
8628 | wxTreeItemId * _arg2; | |
8629 | wxString * _arg3; | |
1d99702e RD |
8630 | int _arg4 = (int ) -1; |
8631 | int _arg5 = (int ) -1; | |
8632 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
8633 | PyObject * _argo0 = 0; | |
8634 | PyObject * _argo1 = 0; | |
8635 | PyObject * _argo2 = 0; | |
d5c9047a | 8636 | PyObject * _obj3 = 0; |
1d99702e | 8637 | PyObject * _argo6 = 0; |
efc5f224 | 8638 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; |
d5c9047a | 8639 | char _ptemp[128]; |
8ab979d7 RD |
8640 | |
8641 | self = self; | |
efc5f224 | 8642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) |
8ab979d7 | 8643 | return NULL; |
1d99702e RD |
8644 | if (_argo0) { |
8645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8648 | return NULL; |
8649 | } | |
8650 | } | |
1d99702e | 8651 | if (_argo1) { |
7e50db3f | 8652 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8654 | return NULL; | |
8655 | } | |
8656 | } | |
1d99702e | 8657 | if (_argo2) { |
7e50db3f | 8658 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { |
d5c9047a RD |
8659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8660 | return NULL; | |
8661 | } | |
8662 | } | |
8663 | { | |
c8bc7bb8 RD |
8664 | _arg3 = wxString_in_helper(_obj3); |
8665 | if (_arg3 == NULL) | |
185d7c3e | 8666 | return NULL; |
d5c9047a | 8667 | } |
1d99702e RD |
8668 | if (_argo6) { |
8669 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8670 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
cf694132 | 8671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8672 | return NULL; |
8673 | } | |
8674 | } | |
cf694132 | 8675 | { |
4268f798 | 8676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8677 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); |
cf694132 | 8678 | |
4268f798 | 8679 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8680 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8681 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8682 | _resultobj = Py_BuildValue("s",_ptemp); |
8683 | { | |
8684 | if (_obj3) | |
8685 | delete _arg3; | |
8686 | } | |
8ab979d7 RD |
8687 | return _resultobj; |
8688 | } | |
8689 | ||
f6bcfd97 BP |
8690 | #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
8691 | static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8692 | PyObject * _resultobj; | |
8693 | wxTreeItemId * _result; | |
8694 | wxPyTreeCtrl * _arg0; | |
8695 | wxTreeItemId * _arg1; | |
8696 | size_t _arg2; | |
8697 | wxString * _arg3; | |
8698 | int _arg4 = (int ) -1; | |
8699 | int _arg5 = (int ) -1; | |
3999941a | 8700 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; |
f6bcfd97 BP |
8701 | PyObject * _argo0 = 0; |
8702 | PyObject * _argo1 = 0; | |
8703 | PyObject * _obj3 = 0; | |
8704 | PyObject * _argo6 = 0; | |
8705 | char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL }; | |
8706 | char _ptemp[128]; | |
8707 | ||
8708 | self = self; | |
8709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
8710 | return NULL; | |
8711 | if (_argo0) { | |
8712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p."); | |
8715 | return NULL; | |
8716 | } | |
8717 | } | |
8718 | if (_argo1) { | |
7e50db3f | 8719 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
f6bcfd97 BP |
8720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p."); |
8721 | return NULL; | |
8722 | } | |
8723 | } | |
8724 | { | |
c8bc7bb8 RD |
8725 | _arg3 = wxString_in_helper(_obj3); |
8726 | if (_arg3 == NULL) | |
185d7c3e | 8727 | return NULL; |
f6bcfd97 BP |
8728 | } |
8729 | if (_argo6) { | |
8730 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
3999941a RD |
8731 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { |
8732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeItemData_p."); | |
f6bcfd97 BP |
8733 | return NULL; |
8734 | } | |
8735 | } | |
8736 | { | |
4268f798 | 8737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8738 | _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6)); |
f6bcfd97 | 8739 | |
4268f798 | 8740 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8741 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
8742 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8743 | _resultobj = Py_BuildValue("s",_ptemp); | |
8744 | { | |
8745 | if (_obj3) | |
8746 | delete _arg3; | |
8747 | } | |
8748 | return _resultobj; | |
8749 | } | |
8750 | ||
d5c9047a | 8751 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8752 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8753 | PyObject * _resultobj; |
d5c9047a | 8754 | wxTreeItemId * _result; |
f6bcfd97 | 8755 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8756 | wxTreeItemId * _arg1; |
8ab979d7 | 8757 | wxString * _arg2; |
1d99702e RD |
8758 | int _arg3 = (int ) -1; |
8759 | int _arg4 = (int ) -1; | |
8760 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8761 | PyObject * _argo0 = 0; | |
8762 | PyObject * _argo1 = 0; | |
8ab979d7 | 8763 | PyObject * _obj2 = 0; |
1d99702e | 8764 | PyObject * _argo5 = 0; |
efc5f224 | 8765 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8766 | char _ptemp[128]; |
8ab979d7 RD |
8767 | |
8768 | self = self; | |
efc5f224 | 8769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8770 | return NULL; |
1d99702e RD |
8771 | if (_argo0) { |
8772 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8773 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8775 | return NULL; |
8776 | } | |
8777 | } | |
1d99702e | 8778 | if (_argo1) { |
7e50db3f | 8779 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a | 8780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8781 | return NULL; |
8782 | } | |
8783 | } | |
8784 | { | |
c8bc7bb8 RD |
8785 | _arg2 = wxString_in_helper(_obj2); |
8786 | if (_arg2 == NULL) | |
185d7c3e | 8787 | return NULL; |
8ab979d7 | 8788 | } |
1d99702e RD |
8789 | if (_argo5) { |
8790 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8791 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8793 | return NULL; |
8794 | } | |
8795 | } | |
cf694132 | 8796 | { |
4268f798 | 8797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8798 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); |
cf694132 | 8799 | |
4268f798 | 8800 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8801 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8802 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8803 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8804 | { |
8805 | if (_obj2) | |
8806 | delete _arg2; | |
8807 | } | |
8808 | return _resultobj; | |
8809 | } | |
8810 | ||
d5c9047a | 8811 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
efc5f224 | 8812 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8813 | PyObject * _resultobj; |
f6bcfd97 | 8814 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8815 | wxTreeItemId * _arg1; |
1d99702e RD |
8816 | PyObject * _argo0 = 0; |
8817 | PyObject * _argo1 = 0; | |
efc5f224 | 8818 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
8819 | |
8820 | self = self; | |
efc5f224 | 8821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8822 | return NULL; |
1d99702e RD |
8823 | if (_argo0) { |
8824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8827 | return NULL; |
8828 | } | |
8829 | } | |
1d99702e | 8830 | if (_argo1) { |
7e50db3f | 8831 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); |
8833 | return NULL; | |
8834 | } | |
8835 | } | |
cf694132 | 8836 | { |
4268f798 | 8837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8838 | wxTreeCtrl_Delete(_arg0,*_arg1); |
cf694132 | 8839 | |
4268f798 | 8840 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8841 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8842 | } Py_INCREF(Py_None); |
d5c9047a RD |
8843 | _resultobj = Py_None; |
8844 | return _resultobj; | |
8845 | } | |
8846 | ||
08127323 | 8847 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) |
efc5f224 | 8848 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 8849 | PyObject * _resultobj; |
f6bcfd97 | 8850 | wxPyTreeCtrl * _arg0; |
08127323 | 8851 | wxTreeItemId * _arg1; |
1d99702e RD |
8852 | PyObject * _argo0 = 0; |
8853 | PyObject * _argo1 = 0; | |
efc5f224 | 8854 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
8855 | |
8856 | self = self; | |
efc5f224 | 8857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) |
08127323 | 8858 | return NULL; |
1d99702e RD |
8859 | if (_argo0) { |
8860 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8861 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
8863 | return NULL; |
8864 | } | |
8865 | } | |
1d99702e | 8866 | if (_argo1) { |
7e50db3f | 8867 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
08127323 RD |
8868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); |
8869 | return NULL; | |
8870 | } | |
8871 | } | |
cf694132 | 8872 | { |
4268f798 | 8873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8874 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); |
cf694132 | 8875 | |
4268f798 | 8876 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8877 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8878 | } Py_INCREF(Py_None); |
08127323 RD |
8879 | _resultobj = Py_None; |
8880 | return _resultobj; | |
8881 | } | |
8882 | ||
d5c9047a | 8883 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) |
efc5f224 | 8884 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8885 | PyObject * _resultobj; |
f6bcfd97 | 8886 | wxPyTreeCtrl * _arg0; |
1d99702e | 8887 | PyObject * _argo0 = 0; |
efc5f224 | 8888 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8889 | |
8890 | self = self; | |
efc5f224 | 8891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) |
d5c9047a | 8892 | return NULL; |
1d99702e RD |
8893 | if (_argo0) { |
8894 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8895 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8897 | return NULL; |
8898 | } | |
8899 | } | |
cf694132 | 8900 | { |
4268f798 | 8901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8902 | wxTreeCtrl_DeleteAllItems(_arg0); |
cf694132 | 8903 | |
4268f798 | 8904 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8905 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8906 | } Py_INCREF(Py_None); |
d5c9047a RD |
8907 | _resultobj = Py_None; |
8908 | return _resultobj; | |
8909 | } | |
8910 | ||
8911 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
efc5f224 | 8912 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8913 | PyObject * _resultobj; |
f6bcfd97 | 8914 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8915 | wxTreeItemId * _arg1; |
1d99702e RD |
8916 | PyObject * _argo0 = 0; |
8917 | PyObject * _argo1 = 0; | |
efc5f224 | 8918 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8919 | |
8920 | self = self; | |
efc5f224 | 8921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8922 | return NULL; |
1d99702e RD |
8923 | if (_argo0) { |
8924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8927 | return NULL; |
8928 | } | |
8929 | } | |
1d99702e | 8930 | if (_argo1) { |
7e50db3f | 8931 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); |
8933 | return NULL; | |
8934 | } | |
8935 | } | |
cf694132 | 8936 | { |
4268f798 | 8937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8938 | wxTreeCtrl_Expand(_arg0,*_arg1); |
cf694132 | 8939 | |
4268f798 | 8940 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8941 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8942 | } Py_INCREF(Py_None); |
d5c9047a RD |
8943 | _resultobj = Py_None; |
8944 | return _resultobj; | |
8945 | } | |
8946 | ||
8947 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
efc5f224 | 8948 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8949 | PyObject * _resultobj; |
f6bcfd97 | 8950 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8951 | wxTreeItemId * _arg1; |
1d99702e RD |
8952 | PyObject * _argo0 = 0; |
8953 | PyObject * _argo1 = 0; | |
efc5f224 | 8954 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8955 | |
8956 | self = self; | |
efc5f224 | 8957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8958 | return NULL; |
1d99702e RD |
8959 | if (_argo0) { |
8960 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8961 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8963 | return NULL; |
8964 | } | |
8965 | } | |
1d99702e | 8966 | if (_argo1) { |
7e50db3f | 8967 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p."); |
8969 | return NULL; | |
8970 | } | |
8971 | } | |
cf694132 | 8972 | { |
4268f798 | 8973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8974 | wxTreeCtrl_Collapse(_arg0,*_arg1); |
cf694132 | 8975 | |
4268f798 | 8976 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8977 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8978 | } Py_INCREF(Py_None); |
d5c9047a RD |
8979 | _resultobj = Py_None; |
8980 | return _resultobj; | |
8981 | } | |
8982 | ||
8983 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
efc5f224 | 8984 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8985 | PyObject * _resultobj; |
f6bcfd97 | 8986 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8987 | wxTreeItemId * _arg1; |
1d99702e RD |
8988 | PyObject * _argo0 = 0; |
8989 | PyObject * _argo1 = 0; | |
efc5f224 | 8990 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8991 | |
8992 | self = self; | |
efc5f224 | 8993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8994 | return NULL; |
1d99702e RD |
8995 | if (_argo0) { |
8996 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8997 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8999 | return NULL; |
9000 | } | |
9001 | } | |
1d99702e | 9002 | if (_argo1) { |
7e50db3f | 9003 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
9004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); |
9005 | return NULL; | |
9006 | } | |
9007 | } | |
cf694132 | 9008 | { |
4268f798 | 9009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9010 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); |
cf694132 | 9011 | |
4268f798 | 9012 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9013 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9014 | } Py_INCREF(Py_None); |
d5c9047a RD |
9015 | _resultobj = Py_None; |
9016 | return _resultobj; | |
9017 | } | |
9018 | ||
9019 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
efc5f224 | 9020 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 9021 | PyObject * _resultobj; |
f6bcfd97 | 9022 | wxPyTreeCtrl * _arg0; |
d5c9047a | 9023 | wxTreeItemId * _arg1; |
1d99702e RD |
9024 | PyObject * _argo0 = 0; |
9025 | PyObject * _argo1 = 0; | |
efc5f224 | 9026 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
9027 | |
9028 | self = self; | |
efc5f224 | 9029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 9030 | return NULL; |
1d99702e RD |
9031 | if (_argo0) { |
9032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
9035 | return NULL; |
9036 | } | |
9037 | } | |
1d99702e | 9038 | if (_argo1) { |
7e50db3f | 9039 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
9040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); |
9041 | return NULL; | |
9042 | } | |
9043 | } | |
cf694132 | 9044 | { |
4268f798 | 9045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9046 | wxTreeCtrl_Toggle(_arg0,*_arg1); |
cf694132 | 9047 | |
4268f798 | 9048 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9049 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9050 | } Py_INCREF(Py_None); |
d5c9047a RD |
9051 | _resultobj = Py_None; |
9052 | return _resultobj; | |
9053 | } | |
9054 | ||
9055 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
efc5f224 | 9056 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 9057 | PyObject * _resultobj; |
f6bcfd97 | 9058 | wxPyTreeCtrl * _arg0; |
1d99702e | 9059 | PyObject * _argo0 = 0; |
efc5f224 | 9060 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
9061 | |
9062 | self = self; | |
efc5f224 | 9063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) |
d5c9047a | 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_Unselect. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
9069 | return NULL; |
9070 | } | |
9071 | } | |
cf694132 | 9072 | { |
4268f798 | 9073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9074 | wxTreeCtrl_Unselect(_arg0); |
cf694132 | 9075 | |
4268f798 | 9076 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9077 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9078 | } Py_INCREF(Py_None); |
d5c9047a RD |
9079 | _resultobj = Py_None; |
9080 | return _resultobj; | |
9081 | } | |
9082 | ||
8bf5d46e | 9083 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) |
efc5f224 | 9084 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e | 9085 | PyObject * _resultobj; |
f6bcfd97 | 9086 | wxPyTreeCtrl * _arg0; |
1d99702e | 9087 | PyObject * _argo0 = 0; |
efc5f224 | 9088 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
9089 | |
9090 | self = self; | |
efc5f224 | 9091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) |
8bf5d46e | 9092 | return NULL; |
1d99702e RD |
9093 | if (_argo0) { |
9094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p."); | |
8bf5d46e RD |
9097 | return NULL; |
9098 | } | |
9099 | } | |
9100 | { | |
4268f798 | 9101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9102 | wxTreeCtrl_UnselectAll(_arg0); |
8bf5d46e | 9103 | |
4268f798 | 9104 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9105 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
9106 | } Py_INCREF(Py_None); |
9107 | _resultobj = Py_None; | |
9108 | return _resultobj; | |
9109 | } | |
9110 | ||
d5c9047a | 9111 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) |
efc5f224 | 9112 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 9113 | PyObject * _resultobj; |
f6bcfd97 | 9114 | wxPyTreeCtrl * _arg0; |
d5c9047a | 9115 | wxTreeItemId * _arg1; |
1d99702e RD |
9116 | PyObject * _argo0 = 0; |
9117 | PyObject * _argo1 = 0; | |
efc5f224 | 9118 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
9119 | |
9120 | self = self; | |
efc5f224 | 9121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 9122 | return NULL; |
1d99702e RD |
9123 | if (_argo0) { |
9124 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9125 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9126 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
9127 | return NULL; |
9128 | } | |
9129 | } | |
1d99702e | 9130 | if (_argo1) { |
7e50db3f | 9131 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
9132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); |
9133 | return NULL; | |
9134 | } | |
9135 | } | |
cf694132 | 9136 | { |
4268f798 | 9137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9138 | wxTreeCtrl_SelectItem(_arg0,*_arg1); |
cf694132 | 9139 | |
4268f798 | 9140 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9141 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9142 | } Py_INCREF(Py_None); |
d5c9047a RD |
9143 | _resultobj = Py_None; |
9144 | return _resultobj; | |
9145 | } | |
9146 | ||
9147 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
efc5f224 | 9148 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 9149 | PyObject * _resultobj; |
f6bcfd97 | 9150 | wxPyTreeCtrl * _arg0; |
d5c9047a | 9151 | wxTreeItemId * _arg1; |
1d99702e RD |
9152 | PyObject * _argo0 = 0; |
9153 | PyObject * _argo1 = 0; | |
efc5f224 | 9154 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
9155 | |
9156 | self = self; | |
efc5f224 | 9157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 9158 | return NULL; |
1d99702e RD |
9159 | if (_argo0) { |
9160 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9161 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9162 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
9163 | return NULL; |
9164 | } | |
9165 | } | |
1d99702e | 9166 | if (_argo1) { |
7e50db3f | 9167 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
9168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); |
9169 | return NULL; | |
9170 | } | |
9171 | } | |
cf694132 | 9172 | { |
4268f798 | 9173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9174 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); |
cf694132 | 9175 | |
4268f798 | 9176 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9177 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9178 | } Py_INCREF(Py_None); |
d5c9047a RD |
9179 | _resultobj = Py_None; |
9180 | return _resultobj; | |
9181 | } | |
9182 | ||
9183 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
efc5f224 | 9184 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 9185 | PyObject * _resultobj; |
f6bcfd97 | 9186 | wxPyTreeCtrl * _arg0; |
d5c9047a | 9187 | wxTreeItemId * _arg1; |
1d99702e RD |
9188 | PyObject * _argo0 = 0; |
9189 | PyObject * _argo1 = 0; | |
efc5f224 | 9190 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
9191 | |
9192 | self = self; | |
efc5f224 | 9193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 9194 | return NULL; |
1d99702e RD |
9195 | if (_argo0) { |
9196 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9197 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
9199 | return NULL; |
9200 | } | |
9201 | } | |
1d99702e | 9202 | if (_argo1) { |
7e50db3f | 9203 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
9204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); |
9205 | return NULL; | |
9206 | } | |
9207 | } | |
cf694132 | 9208 | { |
4268f798 | 9209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9210 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); |
cf694132 | 9211 | |
4268f798 | 9212 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9213 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9214 | } Py_INCREF(Py_None); |
d5c9047a RD |
9215 | _resultobj = Py_None; |
9216 | return _resultobj; | |
9217 | } | |
9218 | ||
7e50db3f RD |
9219 | #define wxTreeCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) |
9220 | static PyObject *_wrap_wxTreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d5c9047a RD |
9221 | PyObject * _resultobj; |
9222 | wxTextCtrl * _result; | |
f6bcfd97 | 9223 | wxPyTreeCtrl * _arg0; |
1d99702e | 9224 | PyObject * _argo0 = 0; |
7e50db3f | 9225 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
9226 | |
9227 | self = self; | |
7e50db3f | 9228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetEditControl",_kwnames,&_argo0)) |
d5c9047a | 9229 | return NULL; |
1d99702e RD |
9230 | if (_argo0) { |
9231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 9232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7e50db3f | 9233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetEditControl. Expected _wxPyTreeCtrl_p."); |
d5c9047a RD |
9234 | return NULL; |
9235 | } | |
9236 | } | |
cf694132 | 9237 | { |
4268f798 | 9238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 9239 | _result = (wxTextCtrl *)wxTreeCtrl_GetEditControl(_arg0); |
cf694132 | 9240 | |
4268f798 | 9241 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9242 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9243 | }{ _resultobj = wxPyMake_wxObject(_result); } |
d5c9047a RD |
9244 | return _resultobj; |
9245 | } | |
9246 | ||
7e50db3f RD |
9247 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) |
9248 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d5c9047a | 9249 | PyObject * _resultobj; |
f6bcfd97 | 9250 | wxPyTreeCtrl * _arg0; |
7e50db3f | 9251 | wxTreeItemId * _arg1; |
1d99702e | 9252 | PyObject * _argo0 = 0; |
7e50db3f RD |
9253 | PyObject * _argo1 = 0; |
9254 | char *_kwnames[] = { "self","item", NULL }; | |
d5c9047a RD |
9255 | |
9256 | self = self; | |
7e50db3f | 9257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 9258 | return NULL; |
1d99702e RD |
9259 | if (_argo0) { |
9260 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 9261 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7e50db3f RD |
9262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p."); |
9263 | return NULL; | |
9264 | } | |
9265 | } | |
9266 | if (_argo1) { | |
9267 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); | |
d5c9047a RD |
9269 | return NULL; |
9270 | } | |
9271 | } | |
cf694132 | 9272 | { |
4268f798 | 9273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 9274 | wxTreeCtrl_EditLabel(_arg0,*_arg1); |
cf694132 | 9275 | |
4268f798 | 9276 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9277 | if (PyErr_Occurred()) return NULL; |
7e50db3f RD |
9278 | } Py_INCREF(Py_None); |
9279 | _resultobj = Py_None; | |
d5c9047a RD |
9280 | return _resultobj; |
9281 | } | |
9282 | ||
9283 | #define wxTreeCtrl_EndEditLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->EndEditLabel(_swigarg0,_swigarg1)) | |
efc5f224 | 9284 | static PyObject *_wrap_wxTreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 9285 | PyObject * _resultobj; |
f6bcfd97 | 9286 | wxPyTreeCtrl * _arg0; |
d5c9047a | 9287 | wxTreeItemId * _arg1; |
b1462dfa | 9288 | int _arg2 = (int ) FALSE; |
1d99702e RD |
9289 | PyObject * _argo0 = 0; |
9290 | PyObject * _argo1 = 0; | |
efc5f224 | 9291 | char *_kwnames[] = { "self","item","discardChanges", NULL }; |
d5c9047a RD |
9292 | |
9293 | self = self; | |
b1462dfa | 9294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_EndEditLabel",_kwnames,&_argo0,&_argo1,&_arg2)) |
d5c9047a | 9295 | return NULL; |
1d99702e RD |
9296 | if (_argo0) { |
9297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EndEditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
9300 | return NULL; |
9301 | } | |
9302 | } | |
1d99702e | 9303 | if (_argo1) { |
7e50db3f | 9304 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
9305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EndEditLabel. Expected _wxTreeItemId_p."); |
9306 | return NULL; | |
9307 | } | |
9308 | } | |
cf694132 | 9309 | { |
4268f798 | 9310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9311 | wxTreeCtrl_EndEditLabel(_arg0,*_arg1,_arg2); |
cf694132 | 9312 | |
4268f798 | 9313 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9314 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9315 | } Py_INCREF(Py_None); |
d5c9047a | 9316 | _resultobj = Py_None; |
8ab979d7 RD |
9317 | return _resultobj; |
9318 | } | |
9319 | ||
d426c97e RD |
9320 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) |
9321 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9322 | PyObject * _resultobj; | |
f6bcfd97 | 9323 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
9324 | wxTreeItemId * _arg1; |
9325 | PyObject * _argo0 = 0; | |
9326 | PyObject * _argo1 = 0; | |
9327 | char *_kwnames[] = { "self","item", NULL }; | |
9328 | ||
9329 | self = self; | |
9330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
9331 | return NULL; | |
9332 | if (_argo0) { | |
9333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
9336 | return NULL; |
9337 | } | |
9338 | } | |
9339 | if (_argo1) { | |
7e50db3f | 9340 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d426c97e RD |
9341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); |
9342 | return NULL; | |
9343 | } | |
9344 | } | |
9345 | { | |
4268f798 | 9346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9347 | wxTreeCtrl_SortChildren(_arg0,*_arg1); |
d426c97e | 9348 | |
4268f798 | 9349 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9350 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
9351 | } Py_INCREF(Py_None); |
9352 | _resultobj = Py_None; | |
9353 | return _resultobj; | |
9354 | } | |
9355 | ||
b8b8dda7 | 9356 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) |
efc5f224 | 9357 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 | 9358 | PyObject * _resultobj; |
f6bcfd97 | 9359 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9360 | wxTreeItemId * _arg1; |
b1462dfa | 9361 | int _arg2 = (int ) TRUE; |
1d99702e RD |
9362 | PyObject * _argo0 = 0; |
9363 | PyObject * _argo1 = 0; | |
efc5f224 | 9364 | char *_kwnames[] = { "self","item","bold", NULL }; |
b8b8dda7 RD |
9365 | |
9366 | self = self; | |
b1462dfa | 9367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) |
b8b8dda7 | 9368 | return NULL; |
1d99702e RD |
9369 | if (_argo0) { |
9370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9373 | return NULL; |
9374 | } | |
9375 | } | |
1d99702e | 9376 | if (_argo1) { |
7e50db3f | 9377 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
b8b8dda7 RD |
9378 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); |
9379 | return NULL; | |
9380 | } | |
9381 | } | |
cf694132 | 9382 | { |
4268f798 | 9383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9384 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); |
cf694132 | 9385 | |
4268f798 | 9386 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9387 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9388 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
9389 | _resultobj = Py_None; |
9390 | return _resultobj; | |
9391 | } | |
9392 | ||
9393 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
efc5f224 | 9394 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
9395 | PyObject * _resultobj; |
9396 | bool _result; | |
f6bcfd97 | 9397 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9398 | wxTreeItemId * _arg1; |
1d99702e RD |
9399 | PyObject * _argo0 = 0; |
9400 | PyObject * _argo1 = 0; | |
efc5f224 | 9401 | char *_kwnames[] = { "self","item", NULL }; |
b8b8dda7 RD |
9402 | |
9403 | self = self; | |
efc5f224 | 9404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 9405 | return NULL; |
1d99702e RD |
9406 | if (_argo0) { |
9407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9410 | return NULL; |
9411 | } | |
9412 | } | |
1d99702e | 9413 | if (_argo1) { |
7e50db3f | 9414 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
b8b8dda7 RD |
9415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); |
9416 | return NULL; | |
9417 | } | |
9418 | } | |
cf694132 | 9419 | { |
4268f798 | 9420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9421 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); |
cf694132 | 9422 | |
4268f798 | 9423 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9424 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9425 | } _resultobj = Py_BuildValue("i",_result); |
b8b8dda7 RD |
9426 | return _resultobj; |
9427 | } | |
9428 | ||
164b735b | 9429 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
efc5f224 | 9430 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
9431 | PyObject * _resultobj; |
9432 | wxTreeItemId * _result; | |
f6bcfd97 | 9433 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9434 | wxPoint * _arg1; |
164b735b RD |
9435 | int * _arg2; |
9436 | int temp; | |
1d99702e | 9437 | PyObject * _argo0 = 0; |
164b735b | 9438 | wxPoint temp0; |
2f90df85 | 9439 | PyObject * _obj1 = 0; |
efc5f224 | 9440 | char *_kwnames[] = { "self","point", NULL }; |
b8b8dda7 RD |
9441 | char _ptemp[128]; |
9442 | ||
9443 | self = self; | |
164b735b RD |
9444 | { |
9445 | _arg2 = &temp; | |
9446 | } | |
2f90df85 | 9447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 9448 | return NULL; |
1d99702e RD |
9449 | if (_argo0) { |
9450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9453 | return NULL; |
9454 | } | |
9455 | } | |
2f90df85 | 9456 | { |
164b735b | 9457 | _arg1 = &temp0; |
2f90df85 | 9458 | if (! wxPoint_helper(_obj1, &_arg1)) |
b8b8dda7 | 9459 | return NULL; |
2f90df85 | 9460 | } |
cf694132 | 9461 | { |
4268f798 | 9462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9463 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); |
cf694132 | 9464 | |
4268f798 | 9465 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9466 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9467 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
b8b8dda7 | 9468 | _resultobj = Py_BuildValue("s",_ptemp); |
164b735b RD |
9469 | { |
9470 | PyObject *o; | |
9471 | o = PyInt_FromLong((long) (*_arg2)); | |
9472 | _resultobj = t_output_helper(_resultobj, o); | |
9473 | } | |
b8b8dda7 RD |
9474 | return _resultobj; |
9475 | } | |
9476 | ||
b7e72427 RD |
9477 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
9478 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9479 | PyObject * _resultobj; | |
f6bcfd97 | 9480 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9481 | wxTreeItemId * _arg1; |
9482 | wxColour * _arg2; | |
9483 | PyObject * _argo0 = 0; | |
9484 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9485 | wxColour temp; |
9486 | PyObject * _obj2 = 0; | |
b7e72427 RD |
9487 | char *_kwnames[] = { "self","item","col", NULL }; |
9488 | ||
9489 | self = self; | |
f6bcfd97 | 9490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9491 | return NULL; |
9492 | if (_argo0) { | |
9493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9496 | return NULL; |
9497 | } | |
9498 | } | |
9499 | if (_argo1) { | |
7e50db3f | 9500 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
b7e72427 RD |
9501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); |
9502 | return NULL; | |
9503 | } | |
9504 | } | |
f6bcfd97 BP |
9505 | { |
9506 | _arg2 = &temp; | |
9507 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9508 | return NULL; |
f6bcfd97 | 9509 | } |
b7e72427 | 9510 | { |
4268f798 | 9511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9512 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); |
b7e72427 | 9513 | |
4268f798 | 9514 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9515 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9516 | } Py_INCREF(Py_None); |
9517 | _resultobj = Py_None; | |
9518 | return _resultobj; | |
9519 | } | |
9520 | ||
9521 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
9522 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9523 | PyObject * _resultobj; | |
f6bcfd97 | 9524 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9525 | wxTreeItemId * _arg1; |
9526 | wxColour * _arg2; | |
9527 | PyObject * _argo0 = 0; | |
9528 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9529 | wxColour temp; |
9530 | PyObject * _obj2 = 0; | |
b7e72427 RD |
9531 | char *_kwnames[] = { "self","item","col", NULL }; |
9532 | ||
9533 | self = self; | |
f6bcfd97 | 9534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9535 | return NULL; |
9536 | if (_argo0) { | |
9537 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9538 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9539 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9540 | return NULL; |
9541 | } | |
9542 | } | |
9543 | if (_argo1) { | |
7e50db3f | 9544 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
b7e72427 RD |
9545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); |
9546 | return NULL; | |
9547 | } | |
9548 | } | |
f6bcfd97 BP |
9549 | { |
9550 | _arg2 = &temp; | |
9551 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9552 | return NULL; |
f6bcfd97 | 9553 | } |
b7e72427 | 9554 | { |
4268f798 | 9555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9556 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); |
b7e72427 | 9557 | |
4268f798 | 9558 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9559 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9560 | } Py_INCREF(Py_None); |
9561 | _resultobj = Py_None; | |
9562 | return _resultobj; | |
9563 | } | |
9564 | ||
9565 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
9566 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9567 | PyObject * _resultobj; | |
f6bcfd97 | 9568 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9569 | wxTreeItemId * _arg1; |
9570 | wxFont * _arg2; | |
9571 | PyObject * _argo0 = 0; | |
9572 | PyObject * _argo1 = 0; | |
9573 | PyObject * _argo2 = 0; | |
9574 | char *_kwnames[] = { "self","item","font", NULL }; | |
9575 | ||
9576 | self = self; | |
9577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
9578 | return NULL; | |
9579 | if (_argo0) { | |
9580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9583 | return NULL; |
9584 | } | |
9585 | } | |
9586 | if (_argo1) { | |
7e50db3f | 9587 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
b7e72427 RD |
9588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); |
9589 | return NULL; | |
9590 | } | |
9591 | } | |
9592 | if (_argo2) { | |
7e50db3f | 9593 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { |
b7e72427 RD |
9594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); |
9595 | return NULL; | |
9596 | } | |
9597 | } | |
9598 | { | |
4268f798 | 9599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9600 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); |
b7e72427 | 9601 | |
4268f798 | 9602 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9603 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9604 | } Py_INCREF(Py_None); |
9605 | _resultobj = Py_None; | |
9606 | return _resultobj; | |
9607 | } | |
9608 | ||
b1462dfa RD |
9609 | #define wxTreeCtrl_SetItemDropHighlight(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemDropHighlight(_swigarg0,_swigarg1)) |
9610 | static PyObject *_wrap_wxTreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9611 | PyObject * _resultobj; | |
f6bcfd97 | 9612 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
9613 | wxTreeItemId * _arg1; |
9614 | int _arg2 = (int ) TRUE; | |
9615 | PyObject * _argo0 = 0; | |
9616 | PyObject * _argo1 = 0; | |
9617 | char *_kwnames[] = { "self","item","highlight", NULL }; | |
9618 | ||
9619 | self = self; | |
9620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemDropHighlight",_kwnames,&_argo0,&_argo1,&_arg2)) | |
9621 | return NULL; | |
9622 | if (_argo0) { | |
9623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemDropHighlight. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
9626 | return NULL; |
9627 | } | |
9628 | } | |
9629 | if (_argo1) { | |
7e50db3f | 9630 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
b1462dfa RD |
9631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemDropHighlight. Expected _wxTreeItemId_p."); |
9632 | return NULL; | |
9633 | } | |
9634 | } | |
9635 | { | |
4268f798 | 9636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9637 | wxTreeCtrl_SetItemDropHighlight(_arg0,*_arg1,_arg2); |
b1462dfa | 9638 | |
4268f798 | 9639 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9640 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9641 | } Py_INCREF(Py_None); |
9642 | _resultobj = Py_None; | |
9643 | return _resultobj; | |
9644 | } | |
9645 | ||
f6bcfd97 | 9646 | static PyObject * wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,const wxTreeItemId & item,int textOnly) { |
d426c97e | 9647 | wxRect rect; |
164b735b | 9648 | if (self->GetBoundingRect(item, rect, textOnly)) { |
4268f798 | 9649 | wxPyBeginBlockThreads(); |
164b735b | 9650 | wxRect* r = new wxRect(rect); |
5a2a9da2 | 9651 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), 1); |
4268f798 | 9652 | wxPyEndBlockThreads(); |
164b735b RD |
9653 | return val; |
9654 | } | |
d426c97e RD |
9655 | else { |
9656 | Py_INCREF(Py_None); | |
9657 | return Py_None; | |
9658 | } | |
9659 | } | |
9660 | static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9661 | PyObject * _resultobj; | |
9662 | PyObject * _result; | |
f6bcfd97 | 9663 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
9664 | wxTreeItemId * _arg1; |
9665 | int _arg2 = (int ) FALSE; | |
9666 | PyObject * _argo0 = 0; | |
9667 | PyObject * _argo1 = 0; | |
9668 | char *_kwnames[] = { "self","item","textOnly", NULL }; | |
9669 | ||
9670 | self = self; | |
9671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&_arg2)) | |
9672 | return NULL; | |
9673 | if (_argo0) { | |
9674 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9675 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetBoundingRect. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
9677 | return NULL; |
9678 | } | |
9679 | } | |
9680 | if (_argo1) { | |
7e50db3f | 9681 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d426c97e RD |
9682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeItemId_p."); |
9683 | return NULL; | |
9684 | } | |
9685 | } | |
9686 | { | |
4268f798 | 9687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9688 | _result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(_arg0,*_arg1,_arg2); |
d426c97e | 9689 | |
4268f798 | 9690 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9691 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
9692 | }{ |
9693 | _resultobj = _result; | |
9694 | } | |
9695 | return _resultobj; | |
9696 | } | |
9697 | ||
68320e40 RD |
9698 | static void *SwigwxDirItemDataTowxObject(void *ptr) { |
9699 | wxDirItemData *src; | |
9700 | wxObject *dest; | |
9701 | src = (wxDirItemData *) ptr; | |
9702 | dest = (wxObject *) src; | |
9703 | return (void *) dest; | |
9704 | } | |
9705 | ||
9706 | #define new_wxDirItemData(_swigarg0,_swigarg1,_swigarg2) (new wxDirItemData(_swigarg0,_swigarg1,_swigarg2)) | |
9707 | static PyObject *_wrap_new_wxDirItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9708 | PyObject * _resultobj; | |
9709 | wxDirItemData * _result; | |
9710 | wxString * _arg0; | |
9711 | wxString * _arg1; | |
9712 | bool _arg2; | |
9713 | PyObject * _obj0 = 0; | |
9714 | PyObject * _obj1 = 0; | |
9715 | int tempbool2; | |
9716 | char *_kwnames[] = { "path","name","isDir", NULL }; | |
9717 | char _ptemp[128]; | |
9718 | ||
9719 | self = self; | |
9720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:new_wxDirItemData",_kwnames,&_obj0,&_obj1,&tempbool2)) | |
9721 | return NULL; | |
9722 | { | |
c8bc7bb8 RD |
9723 | _arg0 = wxString_in_helper(_obj0); |
9724 | if (_arg0 == NULL) | |
68320e40 | 9725 | return NULL; |
68320e40 RD |
9726 | } |
9727 | { | |
c8bc7bb8 RD |
9728 | _arg1 = wxString_in_helper(_obj1); |
9729 | if (_arg1 == NULL) | |
68320e40 | 9730 | return NULL; |
68320e40 RD |
9731 | } |
9732 | _arg2 = (bool ) tempbool2; | |
9733 | { | |
9734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9735 | _result = (wxDirItemData *)new_wxDirItemData(*_arg0,*_arg1,_arg2); |
68320e40 RD |
9736 | |
9737 | wxPyEndAllowThreads(__tstate); | |
9738 | if (PyErr_Occurred()) return NULL; | |
9739 | } if (_result) { | |
9740 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirItemData_p"); | |
9741 | _resultobj = Py_BuildValue("s",_ptemp); | |
9742 | } else { | |
9743 | Py_INCREF(Py_None); | |
9744 | _resultobj = Py_None; | |
9745 | } | |
9746 | { | |
9747 | if (_obj0) | |
9748 | delete _arg0; | |
9749 | } | |
9750 | { | |
9751 | if (_obj1) | |
9752 | delete _arg1; | |
9753 | } | |
9754 | return _resultobj; | |
9755 | } | |
9756 | ||
9757 | #define wxDirItemData_SetNewDirName(_swigobj,_swigarg0) (_swigobj->SetNewDirName(_swigarg0)) | |
9758 | static PyObject *_wrap_wxDirItemData_SetNewDirName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9759 | PyObject * _resultobj; | |
9760 | wxDirItemData * _arg0; | |
9761 | wxString * _arg1; | |
9762 | PyObject * _argo0 = 0; | |
9763 | PyObject * _obj1 = 0; | |
9764 | char *_kwnames[] = { "self","path", NULL }; | |
9765 | ||
9766 | self = self; | |
9767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_SetNewDirName",_kwnames,&_argo0,&_obj1)) | |
9768 | return NULL; | |
9769 | if (_argo0) { | |
9770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_SetNewDirName. Expected _wxDirItemData_p."); | |
9773 | return NULL; | |
9774 | } | |
9775 | } | |
9776 | { | |
c8bc7bb8 RD |
9777 | _arg1 = wxString_in_helper(_obj1); |
9778 | if (_arg1 == NULL) | |
68320e40 | 9779 | return NULL; |
68320e40 RD |
9780 | } |
9781 | { | |
9782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9783 | wxDirItemData_SetNewDirName(_arg0,*_arg1); |
68320e40 RD |
9784 | |
9785 | wxPyEndAllowThreads(__tstate); | |
9786 | if (PyErr_Occurred()) return NULL; | |
9787 | } Py_INCREF(Py_None); | |
9788 | _resultobj = Py_None; | |
9789 | { | |
9790 | if (_obj1) | |
9791 | delete _arg1; | |
9792 | } | |
9793 | return _resultobj; | |
9794 | } | |
9795 | ||
9796 | #define wxDirItemData_m_path_set(_swigobj,_swigval) (_swigobj->m_path = *(_swigval),_swigval) | |
9797 | static PyObject *_wrap_wxDirItemData_m_path_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9798 | PyObject * _resultobj; | |
9799 | wxString * _result; | |
9800 | wxDirItemData * _arg0; | |
9801 | wxString * _arg1; | |
9802 | PyObject * _argo0 = 0; | |
9803 | PyObject * _obj1 = 0; | |
9804 | char *_kwnames[] = { "self","m_path", NULL }; | |
9805 | ||
9806 | self = self; | |
9807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_path_set",_kwnames,&_argo0,&_obj1)) | |
9808 | return NULL; | |
9809 | if (_argo0) { | |
9810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_set. Expected _wxDirItemData_p."); | |
9813 | return NULL; | |
9814 | } | |
9815 | } | |
9816 | { | |
c8bc7bb8 RD |
9817 | _arg1 = wxString_in_helper(_obj1); |
9818 | if (_arg1 == NULL) | |
68320e40 | 9819 | return NULL; |
68320e40 RD |
9820 | } |
9821 | { | |
9822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9823 | _result = (wxString *)wxDirItemData_m_path_set(_arg0,_arg1); |
68320e40 RD |
9824 | |
9825 | wxPyEndAllowThreads(__tstate); | |
9826 | if (PyErr_Occurred()) return NULL; | |
9827 | }{ | |
c8bc7bb8 | 9828 | #if wxUSE_UNICODE |
7e50db3f | 9829 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9830 | #else |
68320e40 | 9831 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9832 | #endif |
68320e40 RD |
9833 | } |
9834 | { | |
9835 | if (_obj1) | |
9836 | delete _arg1; | |
9837 | } | |
9838 | return _resultobj; | |
9839 | } | |
9840 | ||
9841 | #define wxDirItemData_m_path_get(_swigobj) (&_swigobj->m_path) | |
9842 | static PyObject *_wrap_wxDirItemData_m_path_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9843 | PyObject * _resultobj; | |
9844 | wxString * _result; | |
9845 | wxDirItemData * _arg0; | |
9846 | PyObject * _argo0 = 0; | |
9847 | char *_kwnames[] = { "self", NULL }; | |
9848 | ||
9849 | self = self; | |
9850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_path_get",_kwnames,&_argo0)) | |
9851 | return NULL; | |
9852 | if (_argo0) { | |
9853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_get. Expected _wxDirItemData_p."); | |
9856 | return NULL; | |
9857 | } | |
9858 | } | |
9859 | { | |
9860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9861 | _result = (wxString *)wxDirItemData_m_path_get(_arg0); |
68320e40 RD |
9862 | |
9863 | wxPyEndAllowThreads(__tstate); | |
9864 | if (PyErr_Occurred()) return NULL; | |
9865 | }{ | |
c8bc7bb8 | 9866 | #if wxUSE_UNICODE |
7e50db3f | 9867 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9868 | #else |
68320e40 | 9869 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9870 | #endif |
68320e40 RD |
9871 | } |
9872 | return _resultobj; | |
9873 | } | |
9874 | ||
9875 | #define wxDirItemData_m_name_set(_swigobj,_swigval) (_swigobj->m_name = *(_swigval),_swigval) | |
9876 | static PyObject *_wrap_wxDirItemData_m_name_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9877 | PyObject * _resultobj; | |
9878 | wxString * _result; | |
9879 | wxDirItemData * _arg0; | |
9880 | wxString * _arg1; | |
9881 | PyObject * _argo0 = 0; | |
9882 | PyObject * _obj1 = 0; | |
9883 | char *_kwnames[] = { "self","m_name", NULL }; | |
9884 | ||
9885 | self = self; | |
9886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_name_set",_kwnames,&_argo0,&_obj1)) | |
9887 | return NULL; | |
9888 | if (_argo0) { | |
9889 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9890 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_set. Expected _wxDirItemData_p."); | |
9892 | return NULL; | |
9893 | } | |
9894 | } | |
9895 | { | |
c8bc7bb8 RD |
9896 | _arg1 = wxString_in_helper(_obj1); |
9897 | if (_arg1 == NULL) | |
68320e40 | 9898 | return NULL; |
68320e40 RD |
9899 | } |
9900 | { | |
9901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9902 | _result = (wxString *)wxDirItemData_m_name_set(_arg0,_arg1); |
68320e40 RD |
9903 | |
9904 | wxPyEndAllowThreads(__tstate); | |
9905 | if (PyErr_Occurred()) return NULL; | |
9906 | }{ | |
c8bc7bb8 | 9907 | #if wxUSE_UNICODE |
7e50db3f | 9908 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9909 | #else |
68320e40 | 9910 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9911 | #endif |
68320e40 RD |
9912 | } |
9913 | { | |
9914 | if (_obj1) | |
9915 | delete _arg1; | |
9916 | } | |
9917 | return _resultobj; | |
9918 | } | |
9919 | ||
9920 | #define wxDirItemData_m_name_get(_swigobj) (&_swigobj->m_name) | |
9921 | static PyObject *_wrap_wxDirItemData_m_name_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9922 | PyObject * _resultobj; | |
9923 | wxString * _result; | |
9924 | wxDirItemData * _arg0; | |
9925 | PyObject * _argo0 = 0; | |
9926 | char *_kwnames[] = { "self", NULL }; | |
9927 | ||
9928 | self = self; | |
9929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_name_get",_kwnames,&_argo0)) | |
9930 | return NULL; | |
9931 | if (_argo0) { | |
9932 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9933 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_get. Expected _wxDirItemData_p."); | |
9935 | return NULL; | |
9936 | } | |
9937 | } | |
9938 | { | |
9939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9940 | _result = (wxString *)wxDirItemData_m_name_get(_arg0); |
68320e40 RD |
9941 | |
9942 | wxPyEndAllowThreads(__tstate); | |
9943 | if (PyErr_Occurred()) return NULL; | |
9944 | }{ | |
c8bc7bb8 | 9945 | #if wxUSE_UNICODE |
7e50db3f | 9946 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9947 | #else |
68320e40 | 9948 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9949 | #endif |
68320e40 RD |
9950 | } |
9951 | return _resultobj; | |
9952 | } | |
9953 | ||
9954 | #define wxDirItemData_m_isHidden_set(_swigobj,_swigval) (_swigobj->m_isHidden = _swigval,_swigval) | |
9955 | static PyObject *_wrap_wxDirItemData_m_isHidden_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9956 | PyObject * _resultobj; | |
9957 | bool _result; | |
9958 | wxDirItemData * _arg0; | |
9959 | bool _arg1; | |
9960 | PyObject * _argo0 = 0; | |
9961 | int tempbool1; | |
9962 | char *_kwnames[] = { "self","m_isHidden", NULL }; | |
9963 | ||
9964 | self = self; | |
9965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isHidden_set",_kwnames,&_argo0,&tempbool1)) | |
9966 | return NULL; | |
9967 | if (_argo0) { | |
9968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_set. Expected _wxDirItemData_p."); | |
9971 | return NULL; | |
9972 | } | |
9973 | } | |
9974 | _arg1 = (bool ) tempbool1; | |
9975 | { | |
9976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9977 | _result = (bool )wxDirItemData_m_isHidden_set(_arg0,_arg1); |
68320e40 RD |
9978 | |
9979 | wxPyEndAllowThreads(__tstate); | |
9980 | if (PyErr_Occurred()) return NULL; | |
9981 | } _resultobj = Py_BuildValue("i",_result); | |
9982 | return _resultobj; | |
9983 | } | |
9984 | ||
9985 | #define wxDirItemData_m_isHidden_get(_swigobj) ((bool ) _swigobj->m_isHidden) | |
9986 | static PyObject *_wrap_wxDirItemData_m_isHidden_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9987 | PyObject * _resultobj; | |
9988 | bool _result; | |
9989 | wxDirItemData * _arg0; | |
9990 | PyObject * _argo0 = 0; | |
9991 | char *_kwnames[] = { "self", NULL }; | |
9992 | ||
9993 | self = self; | |
9994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isHidden_get",_kwnames,&_argo0)) | |
9995 | return NULL; | |
9996 | if (_argo0) { | |
9997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_get. Expected _wxDirItemData_p."); | |
10000 | return NULL; | |
10001 | } | |
10002 | } | |
10003 | { | |
10004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10005 | _result = (bool )wxDirItemData_m_isHidden_get(_arg0); |
68320e40 RD |
10006 | |
10007 | wxPyEndAllowThreads(__tstate); | |
10008 | if (PyErr_Occurred()) return NULL; | |
10009 | } _resultobj = Py_BuildValue("i",_result); | |
10010 | return _resultobj; | |
10011 | } | |
10012 | ||
10013 | #define wxDirItemData_m_isExpanded_set(_swigobj,_swigval) (_swigobj->m_isExpanded = _swigval,_swigval) | |
10014 | static PyObject *_wrap_wxDirItemData_m_isExpanded_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10015 | PyObject * _resultobj; | |
10016 | bool _result; | |
10017 | wxDirItemData * _arg0; | |
10018 | bool _arg1; | |
10019 | PyObject * _argo0 = 0; | |
10020 | int tempbool1; | |
10021 | char *_kwnames[] = { "self","m_isExpanded", NULL }; | |
10022 | ||
10023 | self = self; | |
10024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isExpanded_set",_kwnames,&_argo0,&tempbool1)) | |
10025 | return NULL; | |
10026 | if (_argo0) { | |
10027 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10028 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
10029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_set. Expected _wxDirItemData_p."); | |
10030 | return NULL; | |
10031 | } | |
10032 | } | |
10033 | _arg1 = (bool ) tempbool1; | |
10034 | { | |
10035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10036 | _result = (bool )wxDirItemData_m_isExpanded_set(_arg0,_arg1); |
68320e40 RD |
10037 | |
10038 | wxPyEndAllowThreads(__tstate); | |
10039 | if (PyErr_Occurred()) return NULL; | |
10040 | } _resultobj = Py_BuildValue("i",_result); | |
10041 | return _resultobj; | |
10042 | } | |
10043 | ||
10044 | #define wxDirItemData_m_isExpanded_get(_swigobj) ((bool ) _swigobj->m_isExpanded) | |
10045 | static PyObject *_wrap_wxDirItemData_m_isExpanded_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10046 | PyObject * _resultobj; | |
10047 | bool _result; | |
10048 | wxDirItemData * _arg0; | |
10049 | PyObject * _argo0 = 0; | |
10050 | char *_kwnames[] = { "self", NULL }; | |
10051 | ||
10052 | self = self; | |
10053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isExpanded_get",_kwnames,&_argo0)) | |
10054 | return NULL; | |
10055 | if (_argo0) { | |
10056 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10057 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
10058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_get. Expected _wxDirItemData_p."); | |
10059 | return NULL; | |
10060 | } | |
10061 | } | |
10062 | { | |
10063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10064 | _result = (bool )wxDirItemData_m_isExpanded_get(_arg0); |
68320e40 RD |
10065 | |
10066 | wxPyEndAllowThreads(__tstate); | |
10067 | if (PyErr_Occurred()) return NULL; | |
10068 | } _resultobj = Py_BuildValue("i",_result); | |
10069 | return _resultobj; | |
10070 | } | |
10071 | ||
10072 | #define wxDirItemData_m_isDir_set(_swigobj,_swigval) (_swigobj->m_isDir = _swigval,_swigval) | |
10073 | static PyObject *_wrap_wxDirItemData_m_isDir_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10074 | PyObject * _resultobj; | |
10075 | bool _result; | |
10076 | wxDirItemData * _arg0; | |
10077 | bool _arg1; | |
10078 | PyObject * _argo0 = 0; | |
10079 | int tempbool1; | |
10080 | char *_kwnames[] = { "self","m_isDir", NULL }; | |
10081 | ||
10082 | self = self; | |
10083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isDir_set",_kwnames,&_argo0,&tempbool1)) | |
10084 | return NULL; | |
10085 | if (_argo0) { | |
10086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
10088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_set. Expected _wxDirItemData_p."); | |
10089 | return NULL; | |
10090 | } | |
10091 | } | |
10092 | _arg1 = (bool ) tempbool1; | |
10093 | { | |
10094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10095 | _result = (bool )wxDirItemData_m_isDir_set(_arg0,_arg1); |
68320e40 RD |
10096 | |
10097 | wxPyEndAllowThreads(__tstate); | |
10098 | if (PyErr_Occurred()) return NULL; | |
10099 | } _resultobj = Py_BuildValue("i",_result); | |
10100 | return _resultobj; | |
10101 | } | |
10102 | ||
10103 | #define wxDirItemData_m_isDir_get(_swigobj) ((bool ) _swigobj->m_isDir) | |
10104 | static PyObject *_wrap_wxDirItemData_m_isDir_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10105 | PyObject * _resultobj; | |
10106 | bool _result; | |
10107 | wxDirItemData * _arg0; | |
10108 | PyObject * _argo0 = 0; | |
10109 | char *_kwnames[] = { "self", NULL }; | |
10110 | ||
10111 | self = self; | |
10112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isDir_get",_kwnames,&_argo0)) | |
10113 | return NULL; | |
10114 | if (_argo0) { | |
10115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
10117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_get. Expected _wxDirItemData_p."); | |
10118 | return NULL; | |
10119 | } | |
10120 | } | |
10121 | { | |
10122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10123 | _result = (bool )wxDirItemData_m_isDir_get(_arg0); |
68320e40 RD |
10124 | |
10125 | wxPyEndAllowThreads(__tstate); | |
10126 | if (PyErr_Occurred()) return NULL; | |
10127 | } _resultobj = Py_BuildValue("i",_result); | |
10128 | return _resultobj; | |
10129 | } | |
10130 | ||
10131 | static void *SwigwxGenericDirCtrlTowxControl(void *ptr) { | |
10132 | wxGenericDirCtrl *src; | |
10133 | wxControl *dest; | |
10134 | src = (wxGenericDirCtrl *) ptr; | |
10135 | dest = (wxControl *) src; | |
10136 | return (void *) dest; | |
10137 | } | |
10138 | ||
10139 | static void *SwigwxGenericDirCtrlTowxWindow(void *ptr) { | |
10140 | wxGenericDirCtrl *src; | |
10141 | wxWindow *dest; | |
10142 | src = (wxGenericDirCtrl *) ptr; | |
10143 | dest = (wxWindow *) src; | |
10144 | return (void *) dest; | |
10145 | } | |
10146 | ||
10147 | static void *SwigwxGenericDirCtrlTowxEvtHandler(void *ptr) { | |
10148 | wxGenericDirCtrl *src; | |
10149 | wxEvtHandler *dest; | |
10150 | src = (wxGenericDirCtrl *) ptr; | |
10151 | dest = (wxEvtHandler *) src; | |
10152 | return (void *) dest; | |
10153 | } | |
10154 | ||
10155 | static void *SwigwxGenericDirCtrlTowxObject(void *ptr) { | |
10156 | wxGenericDirCtrl *src; | |
10157 | wxObject *dest; | |
10158 | src = (wxGenericDirCtrl *) ptr; | |
10159 | dest = (wxObject *) src; | |
10160 | return (void *) dest; | |
10161 | } | |
10162 | ||
10163 | #define new_wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
10164 | static PyObject *_wrap_new_wxGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10165 | PyObject * _resultobj; | |
10166 | wxGenericDirCtrl * _result; | |
10167 | wxWindow * _arg0; | |
10168 | wxWindowID _arg1 = (wxWindowID ) -1; | |
137b5242 | 10169 | wxString * _arg2 = (wxString *) &wxPyDirDialogDefaultFolderStr; |
68320e40 RD |
10170 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
10171 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
10172 | long _arg5 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
137b5242 | 10173 | wxString * _arg6 = (wxString *) &wxPyEmptyString; |
68320e40 | 10174 | int _arg7 = (int ) 0; |
137b5242 | 10175 | wxString * _arg8 = (wxString *) &wxPy_TreeCtrlNameStr; |
68320e40 | 10176 | PyObject * _argo0 = 0; |
137b5242 | 10177 | PyObject * _obj2 = 0; |
68320e40 RD |
10178 | wxPoint temp; |
10179 | PyObject * _obj3 = 0; | |
10180 | wxSize temp0; | |
10181 | PyObject * _obj4 = 0; | |
137b5242 RD |
10182 | PyObject * _obj6 = 0; |
10183 | PyObject * _obj8 = 0; | |
68320e40 RD |
10184 | char *_kwnames[] = { "parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; |
10185 | char _ptemp[128]; | |
10186 | ||
10187 | self = self; | |
137b5242 | 10188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOOlOiO:new_wxGenericDirCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6,&_arg7,&_obj8)) |
68320e40 RD |
10189 | return NULL; |
10190 | if (_argo0) { | |
10191 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10192 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGenericDirCtrl. Expected _wxWindow_p."); | |
10194 | return NULL; | |
10195 | } | |
10196 | } | |
137b5242 RD |
10197 | if (_obj2) |
10198 | { | |
10199 | _arg2 = wxString_in_helper(_obj2); | |
10200 | if (_arg2 == NULL) | |
10201 | return NULL; | |
10202 | } | |
68320e40 RD |
10203 | if (_obj3) |
10204 | { | |
10205 | _arg3 = &temp; | |
10206 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10207 | return NULL; | |
10208 | } | |
10209 | if (_obj4) | |
10210 | { | |
10211 | _arg4 = &temp0; | |
10212 | if (! wxSize_helper(_obj4, &_arg4)) | |
10213 | return NULL; | |
137b5242 RD |
10214 | } |
10215 | if (_obj6) | |
10216 | { | |
10217 | _arg6 = wxString_in_helper(_obj6); | |
10218 | if (_arg6 == NULL) | |
10219 | return NULL; | |
10220 | } | |
10221 | if (_obj8) | |
10222 | { | |
10223 | _arg8 = wxString_in_helper(_obj8); | |
10224 | if (_arg8 == NULL) | |
10225 | return NULL; | |
68320e40 RD |
10226 | } |
10227 | { | |
10228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
137b5242 | 10229 | _result = (wxGenericDirCtrl *)new_wxGenericDirCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7,*_arg8); |
68320e40 RD |
10230 | |
10231 | wxPyEndAllowThreads(__tstate); | |
10232 | if (PyErr_Occurred()) return NULL; | |
10233 | } if (_result) { | |
10234 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
10235 | _resultobj = Py_BuildValue("s",_ptemp); | |
10236 | } else { | |
10237 | Py_INCREF(Py_None); | |
10238 | _resultobj = Py_None; | |
10239 | } | |
137b5242 RD |
10240 | { |
10241 | if (_obj2) | |
10242 | delete _arg2; | |
10243 | } | |
10244 | { | |
10245 | if (_obj6) | |
10246 | delete _arg6; | |
10247 | } | |
10248 | { | |
10249 | if (_obj8) | |
10250 | delete _arg8; | |
10251 | } | |
68320e40 RD |
10252 | return _resultobj; |
10253 | } | |
10254 | ||
10255 | #define new_wxPreGenericDirCtrl() (new wxGenericDirCtrl()) | |
10256 | static PyObject *_wrap_new_wxPreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10257 | PyObject * _resultobj; | |
10258 | wxGenericDirCtrl * _result; | |
10259 | char *_kwnames[] = { NULL }; | |
10260 | char _ptemp[128]; | |
10261 | ||
10262 | self = self; | |
10263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGenericDirCtrl",_kwnames)) | |
10264 | return NULL; | |
10265 | { | |
10266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10267 | _result = (wxGenericDirCtrl *)new_wxPreGenericDirCtrl(); |
68320e40 RD |
10268 | |
10269 | wxPyEndAllowThreads(__tstate); | |
10270 | if (PyErr_Occurred()) return NULL; | |
10271 | } if (_result) { | |
10272 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
10273 | _resultobj = Py_BuildValue("s",_ptemp); | |
10274 | } else { | |
10275 | Py_INCREF(Py_None); | |
10276 | _resultobj = Py_None; | |
10277 | } | |
10278 | return _resultobj; | |
10279 | } | |
10280 | ||
10281 | #define wxGenericDirCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
10282 | static PyObject *_wrap_wxGenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10283 | PyObject * _resultobj; | |
10284 | bool _result; | |
10285 | wxGenericDirCtrl * _arg0; | |
10286 | wxWindow * _arg1; | |
10287 | wxWindowID _arg2 = (wxWindowID ) -1; | |
137b5242 | 10288 | wxString * _arg3 = (wxString *) &wxPyDirDialogDefaultFolderStr; |
68320e40 RD |
10289 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
10290 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
10291 | long _arg6 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
137b5242 | 10292 | wxString * _arg7 = (wxString *) &wxPyEmptyString; |
68320e40 | 10293 | int _arg8 = (int ) 0; |
137b5242 | 10294 | wxString * _arg9 = (wxString *) &wxPy_TreeCtrlNameStr; |
68320e40 RD |
10295 | PyObject * _argo0 = 0; |
10296 | PyObject * _argo1 = 0; | |
137b5242 | 10297 | PyObject * _obj3 = 0; |
68320e40 RD |
10298 | wxPoint temp; |
10299 | PyObject * _obj4 = 0; | |
10300 | wxSize temp0; | |
10301 | PyObject * _obj5 = 0; | |
137b5242 RD |
10302 | PyObject * _obj7 = 0; |
10303 | PyObject * _obj9 = 0; | |
68320e40 RD |
10304 | char *_kwnames[] = { "self","parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; |
10305 | ||
10306 | self = self; | |
137b5242 | 10307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOOlOiO:wxGenericDirCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_obj7,&_arg8,&_obj9)) |
68320e40 RD |
10308 | return NULL; |
10309 | if (_argo0) { | |
10310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
10313 | return NULL; | |
10314 | } | |
10315 | } | |
10316 | if (_argo1) { | |
10317 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10318 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
10319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGenericDirCtrl_Create. Expected _wxWindow_p."); | |
10320 | return NULL; | |
10321 | } | |
10322 | } | |
137b5242 RD |
10323 | if (_obj3) |
10324 | { | |
10325 | _arg3 = wxString_in_helper(_obj3); | |
10326 | if (_arg3 == NULL) | |
10327 | return NULL; | |
10328 | } | |
68320e40 RD |
10329 | if (_obj4) |
10330 | { | |
10331 | _arg4 = &temp; | |
10332 | if (! wxPoint_helper(_obj4, &_arg4)) | |
10333 | return NULL; | |
10334 | } | |
10335 | if (_obj5) | |
10336 | { | |
10337 | _arg5 = &temp0; | |
10338 | if (! wxSize_helper(_obj5, &_arg5)) | |
10339 | return NULL; | |
137b5242 RD |
10340 | } |
10341 | if (_obj7) | |
10342 | { | |
10343 | _arg7 = wxString_in_helper(_obj7); | |
10344 | if (_arg7 == NULL) | |
10345 | return NULL; | |
10346 | } | |
10347 | if (_obj9) | |
10348 | { | |
10349 | _arg9 = wxString_in_helper(_obj9); | |
10350 | if (_arg9 == NULL) | |
10351 | return NULL; | |
68320e40 RD |
10352 | } |
10353 | { | |
10354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
137b5242 | 10355 | _result = (bool )wxGenericDirCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8,*_arg9); |
68320e40 RD |
10356 | |
10357 | wxPyEndAllowThreads(__tstate); | |
10358 | if (PyErr_Occurred()) return NULL; | |
10359 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
10360 | { |
10361 | if (_obj3) | |
10362 | delete _arg3; | |
10363 | } | |
10364 | { | |
10365 | if (_obj7) | |
10366 | delete _arg7; | |
10367 | } | |
10368 | { | |
10369 | if (_obj9) | |
10370 | delete _arg9; | |
10371 | } | |
68320e40 RD |
10372 | return _resultobj; |
10373 | } | |
10374 | ||
10375 | #define wxGenericDirCtrl_ExpandPath(_swigobj,_swigarg0) (_swigobj->ExpandPath(_swigarg0)) | |
10376 | static PyObject *_wrap_wxGenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10377 | PyObject * _resultobj; | |
10378 | bool _result; | |
10379 | wxGenericDirCtrl * _arg0; | |
10380 | wxString * _arg1; | |
10381 | PyObject * _argo0 = 0; | |
10382 | PyObject * _obj1 = 0; | |
10383 | char *_kwnames[] = { "self","path", NULL }; | |
10384 | ||
10385 | self = self; | |
10386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_ExpandPath",_kwnames,&_argo0,&_obj1)) | |
10387 | return NULL; | |
10388 | if (_argo0) { | |
10389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ExpandPath. Expected _wxGenericDirCtrl_p."); | |
10392 | return NULL; | |
10393 | } | |
10394 | } | |
10395 | { | |
c8bc7bb8 RD |
10396 | _arg1 = wxString_in_helper(_obj1); |
10397 | if (_arg1 == NULL) | |
68320e40 | 10398 | return NULL; |
68320e40 RD |
10399 | } |
10400 | { | |
10401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10402 | _result = (bool )wxGenericDirCtrl_ExpandPath(_arg0,*_arg1); |
68320e40 RD |
10403 | |
10404 | wxPyEndAllowThreads(__tstate); | |
10405 | if (PyErr_Occurred()) return NULL; | |
10406 | } _resultobj = Py_BuildValue("i",_result); | |
10407 | { | |
10408 | if (_obj1) | |
10409 | delete _arg1; | |
10410 | } | |
10411 | return _resultobj; | |
10412 | } | |
10413 | ||
10414 | #define wxGenericDirCtrl_GetDefaultPath(_swigobj) (_swigobj->GetDefaultPath()) | |
10415 | static PyObject *_wrap_wxGenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10416 | PyObject * _resultobj; | |
10417 | wxString * _result; | |
10418 | wxGenericDirCtrl * _arg0; | |
10419 | PyObject * _argo0 = 0; | |
10420 | char *_kwnames[] = { "self", NULL }; | |
10421 | ||
10422 | self = self; | |
10423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetDefaultPath",_kwnames,&_argo0)) | |
10424 | return NULL; | |
10425 | if (_argo0) { | |
10426 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10427 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
10429 | return NULL; | |
10430 | } | |
10431 | } | |
10432 | { | |
10433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10434 | _result = new wxString (wxGenericDirCtrl_GetDefaultPath(_arg0)); |
68320e40 RD |
10435 | |
10436 | wxPyEndAllowThreads(__tstate); | |
10437 | if (PyErr_Occurred()) return NULL; | |
10438 | }{ | |
c8bc7bb8 | 10439 | #if wxUSE_UNICODE |
7e50db3f | 10440 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10441 | #else |
68320e40 | 10442 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10443 | #endif |
68320e40 RD |
10444 | } |
10445 | { | |
10446 | delete _result; | |
10447 | } | |
10448 | return _resultobj; | |
10449 | } | |
10450 | ||
10451 | #define wxGenericDirCtrl_SetDefaultPath(_swigobj,_swigarg0) (_swigobj->SetDefaultPath(_swigarg0)) | |
10452 | static PyObject *_wrap_wxGenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10453 | PyObject * _resultobj; | |
10454 | wxGenericDirCtrl * _arg0; | |
10455 | wxString * _arg1; | |
10456 | PyObject * _argo0 = 0; | |
10457 | PyObject * _obj1 = 0; | |
10458 | char *_kwnames[] = { "self","path", NULL }; | |
10459 | ||
10460 | self = self; | |
10461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetDefaultPath",_kwnames,&_argo0,&_obj1)) | |
10462 | return NULL; | |
10463 | if (_argo0) { | |
10464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
10467 | return NULL; | |
10468 | } | |
10469 | } | |
10470 | { | |
c8bc7bb8 RD |
10471 | _arg1 = wxString_in_helper(_obj1); |
10472 | if (_arg1 == NULL) | |
68320e40 | 10473 | return NULL; |
68320e40 RD |
10474 | } |
10475 | { | |
10476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10477 | wxGenericDirCtrl_SetDefaultPath(_arg0,*_arg1); |
68320e40 RD |
10478 | |
10479 | wxPyEndAllowThreads(__tstate); | |
10480 | if (PyErr_Occurred()) return NULL; | |
10481 | } Py_INCREF(Py_None); | |
10482 | _resultobj = Py_None; | |
10483 | { | |
10484 | if (_obj1) | |
10485 | delete _arg1; | |
10486 | } | |
10487 | return _resultobj; | |
10488 | } | |
10489 | ||
10490 | #define wxGenericDirCtrl_GetPath(_swigobj) (_swigobj->GetPath()) | |
10491 | static PyObject *_wrap_wxGenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10492 | PyObject * _resultobj; | |
10493 | wxString * _result; | |
10494 | wxGenericDirCtrl * _arg0; | |
10495 | PyObject * _argo0 = 0; | |
10496 | char *_kwnames[] = { "self", NULL }; | |
10497 | ||
10498 | self = self; | |
10499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetPath",_kwnames,&_argo0)) | |
10500 | return NULL; | |
10501 | if (_argo0) { | |
10502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetPath. Expected _wxGenericDirCtrl_p."); | |
10505 | return NULL; | |
10506 | } | |
10507 | } | |
10508 | { | |
10509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10510 | _result = new wxString (wxGenericDirCtrl_GetPath(_arg0)); |
68320e40 RD |
10511 | |
10512 | wxPyEndAllowThreads(__tstate); | |
10513 | if (PyErr_Occurred()) return NULL; | |
10514 | }{ | |
c8bc7bb8 | 10515 | #if wxUSE_UNICODE |
7e50db3f | 10516 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10517 | #else |
68320e40 | 10518 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10519 | #endif |
68320e40 RD |
10520 | } |
10521 | { | |
10522 | delete _result; | |
10523 | } | |
10524 | return _resultobj; | |
10525 | } | |
10526 | ||
10527 | #define wxGenericDirCtrl_GetFilePath(_swigobj) (_swigobj->GetFilePath()) | |
10528 | static PyObject *_wrap_wxGenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10529 | PyObject * _resultobj; | |
10530 | wxString * _result; | |
10531 | wxGenericDirCtrl * _arg0; | |
10532 | PyObject * _argo0 = 0; | |
10533 | char *_kwnames[] = { "self", NULL }; | |
10534 | ||
10535 | self = self; | |
10536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilePath",_kwnames,&_argo0)) | |
10537 | return NULL; | |
10538 | if (_argo0) { | |
10539 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10540 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilePath. Expected _wxGenericDirCtrl_p."); | |
10542 | return NULL; | |
10543 | } | |
10544 | } | |
10545 | { | |
10546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10547 | _result = new wxString (wxGenericDirCtrl_GetFilePath(_arg0)); |
68320e40 RD |
10548 | |
10549 | wxPyEndAllowThreads(__tstate); | |
10550 | if (PyErr_Occurred()) return NULL; | |
10551 | }{ | |
c8bc7bb8 | 10552 | #if wxUSE_UNICODE |
7e50db3f | 10553 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10554 | #else |
68320e40 | 10555 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10556 | #endif |
68320e40 RD |
10557 | } |
10558 | { | |
10559 | delete _result; | |
10560 | } | |
10561 | return _resultobj; | |
10562 | } | |
10563 | ||
10564 | #define wxGenericDirCtrl_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0)) | |
10565 | static PyObject *_wrap_wxGenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10566 | PyObject * _resultobj; | |
10567 | wxGenericDirCtrl * _arg0; | |
10568 | wxString * _arg1; | |
10569 | PyObject * _argo0 = 0; | |
10570 | PyObject * _obj1 = 0; | |
10571 | char *_kwnames[] = { "self","path", NULL }; | |
10572 | ||
10573 | self = self; | |
10574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetPath",_kwnames,&_argo0,&_obj1)) | |
10575 | return NULL; | |
10576 | if (_argo0) { | |
10577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetPath. Expected _wxGenericDirCtrl_p."); | |
10580 | return NULL; | |
10581 | } | |
10582 | } | |
10583 | { | |
c8bc7bb8 RD |
10584 | _arg1 = wxString_in_helper(_obj1); |
10585 | if (_arg1 == NULL) | |
68320e40 | 10586 | return NULL; |
68320e40 RD |
10587 | } |
10588 | { | |
10589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10590 | wxGenericDirCtrl_SetPath(_arg0,*_arg1); |
68320e40 RD |
10591 | |
10592 | wxPyEndAllowThreads(__tstate); | |
10593 | if (PyErr_Occurred()) return NULL; | |
10594 | } Py_INCREF(Py_None); | |
10595 | _resultobj = Py_None; | |
10596 | { | |
10597 | if (_obj1) | |
10598 | delete _arg1; | |
10599 | } | |
10600 | return _resultobj; | |
10601 | } | |
10602 | ||
10603 | #define wxGenericDirCtrl_ShowHidden(_swigobj,_swigarg0) (_swigobj->ShowHidden(_swigarg0)) | |
10604 | static PyObject *_wrap_wxGenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10605 | PyObject * _resultobj; | |
10606 | wxGenericDirCtrl * _arg0; | |
10607 | bool _arg1; | |
10608 | PyObject * _argo0 = 0; | |
10609 | int tempbool1; | |
10610 | char *_kwnames[] = { "self","show", NULL }; | |
10611 | ||
10612 | self = self; | |
10613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_ShowHidden",_kwnames,&_argo0,&tempbool1)) | |
10614 | return NULL; | |
10615 | if (_argo0) { | |
10616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ShowHidden. Expected _wxGenericDirCtrl_p."); | |
10619 | return NULL; | |
10620 | } | |
10621 | } | |
10622 | _arg1 = (bool ) tempbool1; | |
10623 | { | |
10624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10625 | wxGenericDirCtrl_ShowHidden(_arg0,_arg1); |
68320e40 RD |
10626 | |
10627 | wxPyEndAllowThreads(__tstate); | |
10628 | if (PyErr_Occurred()) return NULL; | |
10629 | } Py_INCREF(Py_None); | |
10630 | _resultobj = Py_None; | |
10631 | return _resultobj; | |
10632 | } | |
10633 | ||
10634 | #define wxGenericDirCtrl_GetShowHidden(_swigobj) (_swigobj->GetShowHidden()) | |
10635 | static PyObject *_wrap_wxGenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10636 | PyObject * _resultobj; | |
10637 | bool _result; | |
10638 | wxGenericDirCtrl * _arg0; | |
10639 | PyObject * _argo0 = 0; | |
10640 | char *_kwnames[] = { "self", NULL }; | |
10641 | ||
10642 | self = self; | |
10643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetShowHidden",_kwnames,&_argo0)) | |
10644 | return NULL; | |
10645 | if (_argo0) { | |
10646 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10647 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetShowHidden. Expected _wxGenericDirCtrl_p."); | |
10649 | return NULL; | |
10650 | } | |
10651 | } | |
10652 | { | |
10653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10654 | _result = (bool )wxGenericDirCtrl_GetShowHidden(_arg0); |
68320e40 RD |
10655 | |
10656 | wxPyEndAllowThreads(__tstate); | |
10657 | if (PyErr_Occurred()) return NULL; | |
10658 | } _resultobj = Py_BuildValue("i",_result); | |
10659 | return _resultobj; | |
10660 | } | |
10661 | ||
10662 | #define wxGenericDirCtrl_GetFilter(_swigobj) (_swigobj->GetFilter()) | |
10663 | static PyObject *_wrap_wxGenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10664 | PyObject * _resultobj; | |
10665 | wxString * _result; | |
10666 | wxGenericDirCtrl * _arg0; | |
10667 | PyObject * _argo0 = 0; | |
10668 | char *_kwnames[] = { "self", NULL }; | |
10669 | ||
10670 | self = self; | |
10671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilter",_kwnames,&_argo0)) | |
10672 | return NULL; | |
10673 | if (_argo0) { | |
10674 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10675 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilter. Expected _wxGenericDirCtrl_p."); | |
10677 | return NULL; | |
10678 | } | |
10679 | } | |
10680 | { | |
10681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10682 | _result = new wxString (wxGenericDirCtrl_GetFilter(_arg0)); |
68320e40 RD |
10683 | |
10684 | wxPyEndAllowThreads(__tstate); | |
10685 | if (PyErr_Occurred()) return NULL; | |
10686 | }{ | |
c8bc7bb8 | 10687 | #if wxUSE_UNICODE |
7e50db3f | 10688 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10689 | #else |
68320e40 | 10690 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10691 | #endif |
68320e40 RD |
10692 | } |
10693 | { | |
10694 | delete _result; | |
10695 | } | |
10696 | return _resultobj; | |
10697 | } | |
10698 | ||
10699 | #define wxGenericDirCtrl_SetFilter(_swigobj,_swigarg0) (_swigobj->SetFilter(_swigarg0)) | |
10700 | static PyObject *_wrap_wxGenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10701 | PyObject * _resultobj; | |
10702 | wxGenericDirCtrl * _arg0; | |
10703 | wxString * _arg1; | |
10704 | PyObject * _argo0 = 0; | |
10705 | PyObject * _obj1 = 0; | |
10706 | char *_kwnames[] = { "self","filter", NULL }; | |
10707 | ||
10708 | self = self; | |
10709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetFilter",_kwnames,&_argo0,&_obj1)) | |
10710 | return NULL; | |
10711 | if (_argo0) { | |
10712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilter. Expected _wxGenericDirCtrl_p."); | |
10715 | return NULL; | |
10716 | } | |
10717 | } | |
10718 | { | |
c8bc7bb8 RD |
10719 | _arg1 = wxString_in_helper(_obj1); |
10720 | if (_arg1 == NULL) | |
68320e40 | 10721 | return NULL; |
68320e40 RD |
10722 | } |
10723 | { | |
10724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10725 | wxGenericDirCtrl_SetFilter(_arg0,*_arg1); |
68320e40 RD |
10726 | |
10727 | wxPyEndAllowThreads(__tstate); | |
10728 | if (PyErr_Occurred()) return NULL; | |
10729 | } Py_INCREF(Py_None); | |
10730 | _resultobj = Py_None; | |
10731 | { | |
10732 | if (_obj1) | |
10733 | delete _arg1; | |
10734 | } | |
10735 | return _resultobj; | |
10736 | } | |
10737 | ||
10738 | #define wxGenericDirCtrl_GetFilterIndex(_swigobj) (_swigobj->GetFilterIndex()) | |
10739 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10740 | PyObject * _resultobj; | |
10741 | int _result; | |
10742 | wxGenericDirCtrl * _arg0; | |
10743 | PyObject * _argo0 = 0; | |
10744 | char *_kwnames[] = { "self", NULL }; | |
10745 | ||
10746 | self = self; | |
10747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterIndex",_kwnames,&_argo0)) | |
10748 | return NULL; | |
10749 | if (_argo0) { | |
10750 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10751 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10753 | return NULL; | |
10754 | } | |
10755 | } | |
10756 | { | |
10757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10758 | _result = (int )wxGenericDirCtrl_GetFilterIndex(_arg0); |
68320e40 RD |
10759 | |
10760 | wxPyEndAllowThreads(__tstate); | |
10761 | if (PyErr_Occurred()) return NULL; | |
10762 | } _resultobj = Py_BuildValue("i",_result); | |
10763 | return _resultobj; | |
10764 | } | |
10765 | ||
10766 | #define wxGenericDirCtrl_SetFilterIndex(_swigobj,_swigarg0) (_swigobj->SetFilterIndex(_swigarg0)) | |
10767 | static PyObject *_wrap_wxGenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10768 | PyObject * _resultobj; | |
10769 | wxGenericDirCtrl * _arg0; | |
10770 | int _arg1; | |
10771 | PyObject * _argo0 = 0; | |
10772 | char *_kwnames[] = { "self","n", NULL }; | |
10773 | ||
10774 | self = self; | |
10775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_SetFilterIndex",_kwnames,&_argo0,&_arg1)) | |
10776 | return NULL; | |
10777 | if (_argo0) { | |
10778 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10779 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10781 | return NULL; | |
10782 | } | |
10783 | } | |
10784 | { | |
10785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10786 | wxGenericDirCtrl_SetFilterIndex(_arg0,_arg1); |
68320e40 RD |
10787 | |
10788 | wxPyEndAllowThreads(__tstate); | |
10789 | if (PyErr_Occurred()) return NULL; | |
10790 | } Py_INCREF(Py_None); | |
10791 | _resultobj = Py_None; | |
10792 | return _resultobj; | |
10793 | } | |
10794 | ||
10795 | #define wxGenericDirCtrl_GetRootId(_swigobj) (_swigobj->GetRootId()) | |
10796 | static PyObject *_wrap_wxGenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10797 | PyObject * _resultobj; | |
10798 | wxTreeItemId * _result; | |
10799 | wxGenericDirCtrl * _arg0; | |
10800 | PyObject * _argo0 = 0; | |
10801 | char *_kwnames[] = { "self", NULL }; | |
10802 | char _ptemp[128]; | |
10803 | ||
10804 | self = self; | |
10805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetRootId",_kwnames,&_argo0)) | |
10806 | return NULL; | |
10807 | if (_argo0) { | |
10808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetRootId. Expected _wxGenericDirCtrl_p."); | |
10811 | return NULL; | |
10812 | } | |
10813 | } | |
10814 | { | |
10815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10816 | _result = new wxTreeItemId (wxGenericDirCtrl_GetRootId(_arg0)); |
68320e40 RD |
10817 | |
10818 | wxPyEndAllowThreads(__tstate); | |
10819 | if (PyErr_Occurred()) return NULL; | |
10820 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
10821 | _resultobj = Py_BuildValue("s",_ptemp); | |
10822 | return _resultobj; | |
10823 | } | |
10824 | ||
10825 | #define wxGenericDirCtrl_GetTreeCtrl(_swigobj) (_swigobj->GetTreeCtrl()) | |
10826 | static PyObject *_wrap_wxGenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10827 | PyObject * _resultobj; | |
10828 | wxTreeCtrl * _result; | |
10829 | wxGenericDirCtrl * _arg0; | |
10830 | PyObject * _argo0 = 0; | |
10831 | char *_kwnames[] = { "self", NULL }; | |
68320e40 RD |
10832 | |
10833 | self = self; | |
10834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetTreeCtrl",_kwnames,&_argo0)) | |
10835 | return NULL; | |
10836 | if (_argo0) { | |
10837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetTreeCtrl. Expected _wxGenericDirCtrl_p."); | |
10840 | return NULL; | |
10841 | } | |
10842 | } | |
10843 | { | |
10844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10845 | _result = (wxTreeCtrl *)wxGenericDirCtrl_GetTreeCtrl(_arg0); |
68320e40 RD |
10846 | |
10847 | wxPyEndAllowThreads(__tstate); | |
10848 | if (PyErr_Occurred()) return NULL; | |
9398120d | 10849 | }{ _resultobj = wxPyMake_wxObject(_result); } |
68320e40 RD |
10850 | return _resultobj; |
10851 | } | |
10852 | ||
10853 | #define wxGenericDirCtrl_GetFilterListCtrl(_swigobj) (_swigobj->GetFilterListCtrl()) | |
10854 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10855 | PyObject * _resultobj; | |
10856 | wxDirFilterListCtrl * _result; | |
10857 | wxGenericDirCtrl * _arg0; | |
10858 | PyObject * _argo0 = 0; | |
10859 | char *_kwnames[] = { "self", NULL }; | |
10860 | char _ptemp[128]; | |
10861 | ||
10862 | self = self; | |
10863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterListCtrl",_kwnames,&_argo0)) | |
10864 | return NULL; | |
10865 | if (_argo0) { | |
10866 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10867 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10869 | return NULL; | |
10870 | } | |
10871 | } | |
10872 | { | |
10873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10874 | _result = (wxDirFilterListCtrl *)wxGenericDirCtrl_GetFilterListCtrl(_arg0); |
68320e40 RD |
10875 | |
10876 | wxPyEndAllowThreads(__tstate); | |
10877 | if (PyErr_Occurred()) return NULL; | |
10878 | } if (_result) { | |
10879 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10880 | _resultobj = Py_BuildValue("s",_ptemp); | |
10881 | } else { | |
10882 | Py_INCREF(Py_None); | |
10883 | _resultobj = Py_None; | |
10884 | } | |
10885 | return _resultobj; | |
10886 | } | |
10887 | ||
5a2a9da2 RD |
10888 | #define wxGenericDirCtrl_ReCreateTree(_swigobj) (_swigobj->ReCreateTree()) |
10889 | static PyObject *_wrap_wxGenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10890 | PyObject * _resultobj; | |
10891 | wxGenericDirCtrl * _arg0; | |
10892 | PyObject * _argo0 = 0; | |
10893 | char *_kwnames[] = { "self", NULL }; | |
10894 | ||
10895 | self = self; | |
10896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_ReCreateTree",_kwnames,&_argo0)) | |
10897 | return NULL; | |
10898 | if (_argo0) { | |
10899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ReCreateTree. Expected _wxGenericDirCtrl_p."); | |
10902 | return NULL; | |
10903 | } | |
10904 | } | |
10905 | { | |
10906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10907 | wxGenericDirCtrl_ReCreateTree(_arg0); | |
10908 | ||
10909 | wxPyEndAllowThreads(__tstate); | |
10910 | if (PyErr_Occurred()) return NULL; | |
10911 | } Py_INCREF(Py_None); | |
10912 | _resultobj = Py_None; | |
10913 | return _resultobj; | |
10914 | } | |
10915 | ||
68320e40 RD |
10916 | static void *SwigwxDirFilterListCtrlTowxChoice(void *ptr) { |
10917 | wxDirFilterListCtrl *src; | |
10918 | wxChoice *dest; | |
10919 | src = (wxDirFilterListCtrl *) ptr; | |
10920 | dest = (wxChoice *) src; | |
10921 | return (void *) dest; | |
10922 | } | |
10923 | ||
10924 | static void *SwigwxDirFilterListCtrlTowxControlWithItems(void *ptr) { | |
10925 | wxDirFilterListCtrl *src; | |
10926 | wxControlWithItems *dest; | |
10927 | src = (wxDirFilterListCtrl *) ptr; | |
10928 | dest = (wxControlWithItems *) src; | |
10929 | return (void *) dest; | |
10930 | } | |
10931 | ||
10932 | static void *SwigwxDirFilterListCtrlTowxControl(void *ptr) { | |
10933 | wxDirFilterListCtrl *src; | |
10934 | wxControl *dest; | |
10935 | src = (wxDirFilterListCtrl *) ptr; | |
10936 | dest = (wxControl *) src; | |
10937 | return (void *) dest; | |
10938 | } | |
10939 | ||
10940 | static void *SwigwxDirFilterListCtrlTowxWindow(void *ptr) { | |
10941 | wxDirFilterListCtrl *src; | |
10942 | wxWindow *dest; | |
10943 | src = (wxDirFilterListCtrl *) ptr; | |
10944 | dest = (wxWindow *) src; | |
10945 | return (void *) dest; | |
10946 | } | |
10947 | ||
10948 | static void *SwigwxDirFilterListCtrlTowxEvtHandler(void *ptr) { | |
10949 | wxDirFilterListCtrl *src; | |
10950 | wxEvtHandler *dest; | |
10951 | src = (wxDirFilterListCtrl *) ptr; | |
10952 | dest = (wxEvtHandler *) src; | |
10953 | return (void *) dest; | |
10954 | } | |
10955 | ||
10956 | static void *SwigwxDirFilterListCtrlTowxObject(void *ptr) { | |
10957 | wxDirFilterListCtrl *src; | |
10958 | wxObject *dest; | |
10959 | src = (wxDirFilterListCtrl *) ptr; | |
10960 | dest = (wxObject *) src; | |
10961 | return (void *) dest; | |
10962 | } | |
10963 | ||
10964 | #define new_wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10965 | static PyObject *_wrap_new_wxDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10966 | PyObject * _resultobj; | |
10967 | wxDirFilterListCtrl * _result; | |
10968 | wxGenericDirCtrl * _arg0; | |
10969 | wxWindowID _arg1 = (wxWindowID ) -1; | |
10970 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
10971 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
10972 | long _arg4 = (long ) 0; | |
10973 | PyObject * _argo0 = 0; | |
10974 | wxPoint temp; | |
10975 | PyObject * _obj2 = 0; | |
10976 | wxSize temp0; | |
10977 | PyObject * _obj3 = 0; | |
10978 | char *_kwnames[] = { "parent","id","pos","size","style", NULL }; | |
10979 | char _ptemp[128]; | |
10980 | ||
10981 | self = self; | |
10982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxDirFilterListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
10983 | return NULL; | |
10984 | if (_argo0) { | |
10985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDirFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10988 | return NULL; | |
10989 | } | |
10990 | } | |
10991 | if (_obj2) | |
10992 | { | |
10993 | _arg2 = &temp; | |
10994 | if (! wxPoint_helper(_obj2, &_arg2)) | |
10995 | return NULL; | |
10996 | } | |
10997 | if (_obj3) | |
10998 | { | |
10999 | _arg3 = &temp0; | |
11000 | if (! wxSize_helper(_obj3, &_arg3)) | |
11001 | return NULL; | |
11002 | } | |
11003 | { | |
11004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 11005 | _result = (wxDirFilterListCtrl *)new_wxDirFilterListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
68320e40 RD |
11006 | |
11007 | wxPyEndAllowThreads(__tstate); | |
11008 | if (PyErr_Occurred()) return NULL; | |
11009 | } if (_result) { | |
11010 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
11011 | _resultobj = Py_BuildValue("s",_ptemp); | |
11012 | } else { | |
11013 | Py_INCREF(Py_None); | |
11014 | _resultobj = Py_None; | |
11015 | } | |
11016 | return _resultobj; | |
11017 | } | |
11018 | ||
11019 | #define new_wxPreDirFilterListCtrl() (new wxDirFilterListCtrl()) | |
11020 | static PyObject *_wrap_new_wxPreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11021 | PyObject * _resultobj; | |
11022 | wxDirFilterListCtrl * _result; | |
11023 | char *_kwnames[] = { NULL }; | |
11024 | char _ptemp[128]; | |
11025 | ||
11026 | self = self; | |
11027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreDirFilterListCtrl",_kwnames)) | |
11028 | return NULL; | |
11029 | { | |
11030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 11031 | _result = (wxDirFilterListCtrl *)new_wxPreDirFilterListCtrl(); |
68320e40 RD |
11032 | |
11033 | wxPyEndAllowThreads(__tstate); | |
11034 | if (PyErr_Occurred()) return NULL; | |
11035 | } if (_result) { | |
11036 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
11037 | _resultobj = Py_BuildValue("s",_ptemp); | |
11038 | } else { | |
11039 | Py_INCREF(Py_None); | |
11040 | _resultobj = Py_None; | |
11041 | } | |
11042 | return _resultobj; | |
11043 | } | |
11044 | ||
11045 | #define wxDirFilterListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
11046 | static PyObject *_wrap_wxDirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11047 | PyObject * _resultobj; | |
11048 | bool _result; | |
11049 | wxDirFilterListCtrl * _arg0; | |
11050 | wxGenericDirCtrl * _arg1; | |
11051 | wxWindowID _arg2 = (wxWindowID ) -1; | |
11052 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
11053 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
11054 | long _arg5 = (long ) 0; | |
11055 | PyObject * _argo0 = 0; | |
11056 | PyObject * _argo1 = 0; | |
11057 | wxPoint temp; | |
11058 | PyObject * _obj3 = 0; | |
11059 | wxSize temp0; | |
11060 | PyObject * _obj4 = 0; | |
11061 | char *_kwnames[] = { "self","parent","id","pos","size","style", NULL }; | |
11062 | ||
11063 | self = self; | |
11064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOl:wxDirFilterListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5)) | |
11065 | return NULL; | |
11066 | if (_argo0) { | |
11067 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11068 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
11069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_Create. Expected _wxDirFilterListCtrl_p."); | |
11070 | return NULL; | |
11071 | } | |
11072 | } | |
11073 | if (_argo1) { | |
11074 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11075 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxGenericDirCtrl_p")) { | |
11076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDirFilterListCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
11077 | return NULL; | |
11078 | } | |
11079 | } | |
11080 | if (_obj3) | |
11081 | { | |
11082 | _arg3 = &temp; | |
11083 | if (! wxPoint_helper(_obj3, &_arg3)) | |
11084 | return NULL; | |
11085 | } | |
11086 | if (_obj4) | |
11087 | { | |
11088 | _arg4 = &temp0; | |
11089 | if (! wxSize_helper(_obj4, &_arg4)) | |
11090 | return NULL; | |
11091 | } | |
11092 | { | |
11093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 11094 | _result = (bool )wxDirFilterListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5); |
68320e40 RD |
11095 | |
11096 | wxPyEndAllowThreads(__tstate); | |
11097 | if (PyErr_Occurred()) return NULL; | |
11098 | } _resultobj = Py_BuildValue("i",_result); | |
11099 | return _resultobj; | |
11100 | } | |
11101 | ||
11102 | #define wxDirFilterListCtrl_FillFilterList(_swigobj,_swigarg0,_swigarg1) (_swigobj->FillFilterList(_swigarg0,_swigarg1)) | |
11103 | static PyObject *_wrap_wxDirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11104 | PyObject * _resultobj; | |
11105 | wxDirFilterListCtrl * _arg0; | |
11106 | wxString * _arg1; | |
11107 | int _arg2; | |
11108 | PyObject * _argo0 = 0; | |
11109 | PyObject * _obj1 = 0; | |
11110 | char *_kwnames[] = { "self","filter","defaultFilter", NULL }; | |
11111 | ||
11112 | self = self; | |
11113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxDirFilterListCtrl_FillFilterList",_kwnames,&_argo0,&_obj1,&_arg2)) | |
11114 | return NULL; | |
11115 | if (_argo0) { | |
11116 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11117 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
11118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_FillFilterList. Expected _wxDirFilterListCtrl_p."); | |
11119 | return NULL; | |
11120 | } | |
11121 | } | |
11122 | { | |
c8bc7bb8 RD |
11123 | _arg1 = wxString_in_helper(_obj1); |
11124 | if (_arg1 == NULL) | |
68320e40 | 11125 | return NULL; |
68320e40 RD |
11126 | } |
11127 | { | |
11128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 11129 | wxDirFilterListCtrl_FillFilterList(_arg0,*_arg1,_arg2); |
68320e40 RD |
11130 | |
11131 | wxPyEndAllowThreads(__tstate); | |
11132 | if (PyErr_Occurred()) return NULL; | |
11133 | } Py_INCREF(Py_None); | |
11134 | _resultobj = Py_None; | |
11135 | { | |
11136 | if (_obj1) | |
11137 | delete _arg1; | |
11138 | } | |
11139 | return _resultobj; | |
11140 | } | |
11141 | ||
5a2a9da2 RD |
11142 | #define new_wxFileIconsTable() (new wxFileIconsTable()) |
11143 | static PyObject *_wrap_new_wxFileIconsTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11144 | PyObject * _resultobj; | |
11145 | wxFileIconsTable * _result; | |
11146 | char *_kwnames[] = { NULL }; | |
11147 | char _ptemp[128]; | |
11148 | ||
11149 | self = self; | |
11150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFileIconsTable",_kwnames)) | |
11151 | return NULL; | |
11152 | { | |
11153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11154 | _result = (wxFileIconsTable *)new_wxFileIconsTable(); | |
11155 | ||
11156 | wxPyEndAllowThreads(__tstate); | |
11157 | if (PyErr_Occurred()) return NULL; | |
11158 | } if (_result) { | |
11159 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileIconsTable_p"); | |
11160 | _resultobj = Py_BuildValue("s",_ptemp); | |
11161 | } else { | |
11162 | Py_INCREF(Py_None); | |
11163 | _resultobj = Py_None; | |
11164 | } | |
11165 | return _resultobj; | |
11166 | } | |
11167 | ||
11168 | #define delete_wxFileIconsTable(_swigobj) (delete _swigobj) | |
11169 | static PyObject *_wrap_delete_wxFileIconsTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11170 | PyObject * _resultobj; | |
11171 | wxFileIconsTable * _arg0; | |
11172 | PyObject * _argo0 = 0; | |
11173 | char *_kwnames[] = { "self", NULL }; | |
11174 | ||
11175 | self = self; | |
11176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileIconsTable",_kwnames,&_argo0)) | |
11177 | return NULL; | |
11178 | if (_argo0) { | |
11179 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11180 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileIconsTable_p")) { | |
11181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileIconsTable. Expected _wxFileIconsTable_p."); | |
11182 | return NULL; | |
11183 | } | |
11184 | } | |
11185 | { | |
11186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11187 | delete_wxFileIconsTable(_arg0); | |
11188 | ||
11189 | wxPyEndAllowThreads(__tstate); | |
11190 | if (PyErr_Occurred()) return NULL; | |
11191 | } Py_INCREF(Py_None); | |
11192 | _resultobj = Py_None; | |
11193 | return _resultobj; | |
11194 | } | |
11195 | ||
11196 | #define wxFileIconsTable_GetIconID(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetIconID(_swigarg0,_swigarg1)) | |
11197 | static PyObject *_wrap_wxFileIconsTable_GetIconID(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11198 | PyObject * _resultobj; | |
11199 | int _result; | |
11200 | wxFileIconsTable * _arg0; | |
11201 | wxString * _arg1; | |
11202 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
11203 | PyObject * _argo0 = 0; | |
11204 | PyObject * _obj1 = 0; | |
11205 | PyObject * _obj2 = 0; | |
11206 | char *_kwnames[] = { "self","extension","mime", NULL }; | |
11207 | ||
11208 | self = self; | |
11209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileIconsTable_GetIconID",_kwnames,&_argo0,&_obj1,&_obj2)) | |
11210 | return NULL; | |
11211 | if (_argo0) { | |
11212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileIconsTable_p")) { | |
11214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileIconsTable_GetIconID. Expected _wxFileIconsTable_p."); | |
11215 | return NULL; | |
11216 | } | |
11217 | } | |
11218 | { | |
11219 | _arg1 = wxString_in_helper(_obj1); | |
11220 | if (_arg1 == NULL) | |
11221 | return NULL; | |
11222 | } | |
11223 | if (_obj2) | |
11224 | { | |
11225 | _arg2 = wxString_in_helper(_obj2); | |
11226 | if (_arg2 == NULL) | |
11227 | return NULL; | |
11228 | } | |
11229 | { | |
11230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11231 | _result = (int )wxFileIconsTable_GetIconID(_arg0,*_arg1,*_arg2); | |
11232 | ||
11233 | wxPyEndAllowThreads(__tstate); | |
11234 | if (PyErr_Occurred()) return NULL; | |
11235 | } _resultobj = Py_BuildValue("i",_result); | |
11236 | { | |
11237 | if (_obj1) | |
11238 | delete _arg1; | |
11239 | } | |
11240 | { | |
11241 | if (_obj2) | |
11242 | delete _arg2; | |
11243 | } | |
11244 | return _resultobj; | |
11245 | } | |
11246 | ||
11247 | #define wxFileIconsTable_GetSmallImageList(_swigobj) (_swigobj->GetSmallImageList()) | |
11248 | static PyObject *_wrap_wxFileIconsTable_GetSmallImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11249 | PyObject * _resultobj; | |
11250 | wxImageList * _result; | |
11251 | wxFileIconsTable * _arg0; | |
11252 | PyObject * _argo0 = 0; | |
11253 | char *_kwnames[] = { "self", NULL }; | |
11254 | ||
11255 | self = self; | |
11256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileIconsTable_GetSmallImageList",_kwnames,&_argo0)) | |
11257 | return NULL; | |
11258 | if (_argo0) { | |
11259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileIconsTable_p")) { | |
11261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileIconsTable_GetSmallImageList. Expected _wxFileIconsTable_p."); | |
11262 | return NULL; | |
11263 | } | |
11264 | } | |
11265 | { | |
11266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11267 | _result = (wxImageList *)wxFileIconsTable_GetSmallImageList(_arg0); | |
11268 | ||
11269 | wxPyEndAllowThreads(__tstate); | |
11270 | if (PyErr_Occurred()) return NULL; | |
11271 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
11272 | return _resultobj; | |
11273 | } | |
11274 | ||
8ab979d7 | 11275 | static PyMethodDef controls2cMethods[] = { |
5a2a9da2 RD |
11276 | { "wxFileIconsTable_GetSmallImageList", (PyCFunction) _wrap_wxFileIconsTable_GetSmallImageList, METH_VARARGS | METH_KEYWORDS }, |
11277 | { "wxFileIconsTable_GetIconID", (PyCFunction) _wrap_wxFileIconsTable_GetIconID, METH_VARARGS | METH_KEYWORDS }, | |
11278 | { "delete_wxFileIconsTable", (PyCFunction) _wrap_delete_wxFileIconsTable, METH_VARARGS | METH_KEYWORDS }, | |
11279 | { "new_wxFileIconsTable", (PyCFunction) _wrap_new_wxFileIconsTable, METH_VARARGS | METH_KEYWORDS }, | |
68320e40 RD |
11280 | { "wxDirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_wxDirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, |
11281 | { "wxDirFilterListCtrl_Create", (PyCFunction) _wrap_wxDirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
11282 | { "new_wxPreDirFilterListCtrl", (PyCFunction) _wrap_new_wxPreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11283 | { "new_wxDirFilterListCtrl", (PyCFunction) _wrap_new_wxDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
5a2a9da2 | 11284 | { "wxGenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_wxGenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, |
68320e40 RD |
11285 | { "wxGenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, |
11286 | { "wxGenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11287 | { "wxGenericDirCtrl_GetRootId", (PyCFunction) _wrap_wxGenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
11288 | { "wxGenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
11289 | { "wxGenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
11290 | { "wxGenericDirCtrl_SetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
11291 | { "wxGenericDirCtrl_GetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
11292 | { "wxGenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
11293 | { "wxGenericDirCtrl_ShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
11294 | { "wxGenericDirCtrl_SetPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
11295 | { "wxGenericDirCtrl_GetFilePath", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
11296 | { "wxGenericDirCtrl_GetPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
11297 | { "wxGenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
11298 | { "wxGenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
11299 | { "wxGenericDirCtrl_ExpandPath", (PyCFunction) _wrap_wxGenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
11300 | { "wxGenericDirCtrl_Create", (PyCFunction) _wrap_wxGenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
11301 | { "new_wxPreGenericDirCtrl", (PyCFunction) _wrap_new_wxPreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11302 | { "new_wxGenericDirCtrl", (PyCFunction) _wrap_new_wxGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11303 | { "wxDirItemData_m_isDir_get", (PyCFunction) _wrap_wxDirItemData_m_isDir_get, METH_VARARGS | METH_KEYWORDS }, | |
11304 | { "wxDirItemData_m_isDir_set", (PyCFunction) _wrap_wxDirItemData_m_isDir_set, METH_VARARGS | METH_KEYWORDS }, | |
11305 | { "wxDirItemData_m_isExpanded_get", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_get, METH_VARARGS | METH_KEYWORDS }, | |
11306 | { "wxDirItemData_m_isExpanded_set", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_set, METH_VARARGS | METH_KEYWORDS }, | |
11307 | { "wxDirItemData_m_isHidden_get", (PyCFunction) _wrap_wxDirItemData_m_isHidden_get, METH_VARARGS | METH_KEYWORDS }, | |
11308 | { "wxDirItemData_m_isHidden_set", (PyCFunction) _wrap_wxDirItemData_m_isHidden_set, METH_VARARGS | METH_KEYWORDS }, | |
11309 | { "wxDirItemData_m_name_get", (PyCFunction) _wrap_wxDirItemData_m_name_get, METH_VARARGS | METH_KEYWORDS }, | |
11310 | { "wxDirItemData_m_name_set", (PyCFunction) _wrap_wxDirItemData_m_name_set, METH_VARARGS | METH_KEYWORDS }, | |
11311 | { "wxDirItemData_m_path_get", (PyCFunction) _wrap_wxDirItemData_m_path_get, METH_VARARGS | METH_KEYWORDS }, | |
11312 | { "wxDirItemData_m_path_set", (PyCFunction) _wrap_wxDirItemData_m_path_set, METH_VARARGS | METH_KEYWORDS }, | |
11313 | { "wxDirItemData_SetNewDirName", (PyCFunction) _wrap_wxDirItemData_SetNewDirName, METH_VARARGS | METH_KEYWORDS }, | |
11314 | { "new_wxDirItemData", (PyCFunction) _wrap_new_wxDirItemData, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 11315 | { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11316 | { "wxTreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_wxTreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 RD |
11317 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, |
11318 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11319 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11320 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
11321 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
11322 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 11323 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11324 | { "wxTreeCtrl_EndEditLabel", (PyCFunction) _wrap_wxTreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11325 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, |
7e50db3f | 11326 | { "wxTreeCtrl_GetEditControl", (PyCFunction) _wrap_wxTreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11327 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, |
11328 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
11329 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
11330 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
11331 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
11332 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
11333 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
11334 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
11335 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
11336 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
11337 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
11338 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
11339 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11340 | { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11341 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, |
11342 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
11343 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 11344 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11345 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, |
11346 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
11347 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
11348 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
11349 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
11350 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
11351 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
11352 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 11353 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 11354 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11355 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
11356 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
11357 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
11358 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
11359 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
11360 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
7e50db3f RD |
11361 | { "wxTreeCtrl_GetItemFont", (PyCFunction) _wrap_wxTreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, |
11362 | { "wxTreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11363 | { "wxTreeCtrl_GetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11364 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, |
11365 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
11366 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
11367 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
11368 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
11369 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
11370 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
11371 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
11372 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
11373 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
11374 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
11375 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, |
11376 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
00b6c4e3 RD |
11377 | { "wxTreeCtrl_AssignStateImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, |
11378 | { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11379 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, |
11380 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
11381 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
11382 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
11383 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
11384 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
11385 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 11386 | { "wxTreeCtrl__setCallbackInfo", (PyCFunction) _wrap_wxTreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
11387 | { "wxTreeCtrl_Create", (PyCFunction) _wrap_wxTreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
11388 | { "new_wxPreTreeCtrl", (PyCFunction) _wrap_new_wxPreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11389 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, |
5a2a9da2 | 11390 | { "wxTreeEvent_SetEditCanceled", (PyCFunction) _wrap_wxTreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, |
31988931 | 11391 | { "wxTreeEvent_IsEditCancelled", (PyCFunction) _wrap_wxTreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, |
5a2a9da2 | 11392 | { "wxTreeEvent_SetLabel", (PyCFunction) _wrap_wxTreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11393 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, |
5a2a9da2 | 11394 | { "wxTreeEvent_SetKeyEvent", (PyCFunction) _wrap_wxTreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, |
64c06a50 | 11395 | { "wxTreeEvent_GetKeyCode", (PyCFunction) _wrap_wxTreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, |
ecc08ead | 11396 | { "wxTreeEvent_GetKeyEvent", (PyCFunction) _wrap_wxTreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, |
5a2a9da2 | 11397 | { "wxTreeEvent_SetPoint", (PyCFunction) _wrap_wxTreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11398 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, |
5a2a9da2 | 11399 | { "wxTreeEvent_SetOldItem", (PyCFunction) _wrap_wxTreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11400 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, |
5a2a9da2 | 11401 | { "wxTreeEvent_SetItem", (PyCFunction) _wrap_wxTreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11402 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, |
00b6c4e3 | 11403 | { "new_wxTreeEvent", (PyCFunction) _wrap_new_wxTreeEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11404 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, |
11405 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
11406 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
11407 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
11408 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11409 | { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11410 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, |
11411 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
11412 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
00b6c4e3 RD |
11413 | { "wxTreeItemAttr_GetFont", (PyCFunction) _wrap_wxTreeItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, |
11414 | { "wxTreeItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11415 | { "wxTreeItemAttr_GetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11416 | { "wxTreeItemAttr_HasFont", (PyCFunction) _wrap_wxTreeItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
11417 | { "wxTreeItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11418 | { "wxTreeItemAttr_HasTextColour", (PyCFunction) _wrap_wxTreeItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11419 | { "wxTreeItemAttr_SetFont", (PyCFunction) _wrap_wxTreeItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11420 | { "wxTreeItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11421 | { "wxTreeItemAttr_SetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11422 | { "new_wxTreeItemAttr", (PyCFunction) _wrap_new_wxTreeItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
6d19860f RD |
11423 | { "wxListView_ClearColumnImage", (PyCFunction) _wrap_wxListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, |
11424 | { "wxListView_SetColumnImage", (PyCFunction) _wrap_wxListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
11425 | { "wxListView_IsSelected", (PyCFunction) _wrap_wxListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
11426 | { "wxListView_GetFirstSelected", (PyCFunction) _wrap_wxListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
11427 | { "wxListView_GetNextSelected", (PyCFunction) _wrap_wxListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
11428 | { "wxListView_GetFocusedItem", (PyCFunction) _wrap_wxListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
11429 | { "wxListView_Focus", (PyCFunction) _wrap_wxListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
11430 | { "wxListView_Select", (PyCFunction) _wrap_wxListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
11431 | { "wxListView_Create", (PyCFunction) _wrap_wxListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
11432 | { "new_wxPreListView", (PyCFunction) _wrap_new_wxPreListView, METH_VARARGS | METH_KEYWORDS }, | |
11433 | { "new_wxListView", (PyCFunction) _wrap_new_wxListView, METH_VARARGS | METH_KEYWORDS }, | |
6af85fcd | 11434 | { "wxListCtrl_GetMainWindow", (PyCFunction) _wrap_wxListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, |
dcd38683 | 11435 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, |
3bd1e033 RD |
11436 | { "wxListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_wxListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
11437 | { "wxListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11438 | { "wxListCtrl_GetItemTextColour", (PyCFunction) _wrap_wxListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11439 | { "wxListCtrl_SetItemTextColour", (PyCFunction) _wrap_wxListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11440 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, |
c7e7022c RD |
11441 | { "wxListCtrl_SetItemCount", (PyCFunction) _wrap_wxListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, |
11442 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
11443 | { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11444 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, |
11445 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
11446 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
11447 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11448 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11449 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, |
11450 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
11451 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
11452 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11453 | { "wxListCtrl_EndEditLabel", (PyCFunction) _wrap_wxListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, |
11454 | { "wxListCtrl_EditLabel", (PyCFunction) _wrap_wxListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
11455 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
11456 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
11457 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
11458 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
11459 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
11460 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
c7e7022c RD |
11461 | { "wxListCtrl_RefreshItems", (PyCFunction) _wrap_wxListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, |
11462 | { "wxListCtrl_RefreshItem", (PyCFunction) _wrap_wxListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
11463 | { "wxListCtrl_IsVirtual", (PyCFunction) _wrap_wxListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
11464 | { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
11465 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
11466 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
11467 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
11468 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
11469 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
11470 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
11471 | { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11472 | { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11473 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
11474 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
11475 | { "wxListCtrl_GetColumnCount", (PyCFunction) _wrap_wxListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
11476 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
11477 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
11478 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
11479 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
11480 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
11481 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
11482 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
11483 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
11484 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
11485 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
11486 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
11487 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
11488 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
11489 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
11490 | { "wxListCtrl_GetEditControl", (PyCFunction) _wrap_wxListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
025fa9a9 | 11491 | { "wxListCtrl_GetViewRect", (PyCFunction) _wrap_wxListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, |
c7e7022c RD |
11492 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, |
11493 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
11494 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
11495 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
11496 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
11497 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11498 | { "wxListCtrl_SetForegroundColour", (PyCFunction) _wrap_wxListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 11499 | { "wxListCtrl__setCallbackInfo", (PyCFunction) _wrap_wxListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
11500 | { "wxListCtrl_Create", (PyCFunction) _wrap_wxListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
11501 | { "new_wxPreListCtrl", (PyCFunction) _wrap_new_wxPreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11502 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, |
025fa9a9 RD |
11503 | { "wxListEvent_SetEditCanceled", (PyCFunction) _wrap_wxListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, |
11504 | { "wxListEvent_IsEditCancelled", (PyCFunction) _wrap_wxListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
6d19860f RD |
11505 | { "wxListEvent_GetCacheTo", (PyCFunction) _wrap_wxListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, |
11506 | { "wxListEvent_GetCacheFrom", (PyCFunction) _wrap_wxListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
11507 | { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, |
11508 | { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
11509 | { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
11510 | { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
11511 | { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
11512 | { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11513 | { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11514 | { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 11515 | { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, |
64c06a50 | 11516 | { "wxListEvent_GetKeyCode", (PyCFunction) _wrap_wxListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11517 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11518 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11519 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11520 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
ebf4302c | 11521 | { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11522 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, |
6d19860f | 11523 | { "new_wxListEvent", (PyCFunction) _wrap_new_wxListEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11524 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, |
11525 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
11526 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
11527 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
11528 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
11529 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
11530 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
11531 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
11532 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
11533 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
11534 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
11535 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
11536 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
11537 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
11538 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
11539 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
11540 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
11541 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
11542 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
11543 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
11544 | { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, |
11545 | { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11546 | { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11547 | { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
11548 | { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
11549 | { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
11550 | { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11551 | { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
11552 | { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
11553 | { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
11554 | { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
11555 | { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
11556 | { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
11557 | { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
11558 | { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11559 | { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11560 | { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11561 | { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
11562 | { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11563 | { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
11564 | { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
11565 | { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
11566 | { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
11567 | { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
11568 | { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
11569 | { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
11570 | { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
11571 | { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
11572 | { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11573 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
11574 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
11575 | { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11576 | { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11577 | { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11578 | { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
11579 | { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11580 | { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11581 | { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11582 | { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11583 | { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11584 | { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
11585 | { NULL, NULL } |
11586 | }; | |
1d99702e RD |
11587 | #ifdef __cplusplus |
11588 | } | |
11589 | #endif | |
11590 | /* | |
11591 | * This table is used by the pointer type-checker | |
11592 | */ | |
11593 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 11594 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, |
1d99702e | 11595 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, |
1d99702e | 11596 | { "_signed_long","_long",0}, |
b1462dfa | 11597 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
11598 | { "_wxPrintQuality","_int",0}, |
11599 | { "_wxPrintQuality","_signed_int",0}, | |
11600 | { "_wxPrintQuality","_unsigned_int",0}, | |
11601 | { "_wxPrintQuality","_wxWindowID",0}, | |
11602 | { "_wxPrintQuality","_uint",0}, | |
11603 | { "_wxPrintQuality","_EBool",0}, | |
11604 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11605 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 11606 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, |
c368d904 | 11607 | { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
1d99702e | 11608 | { "_byte","_unsigned_char",0}, |
68320e40 | 11609 | { "_wxChoice","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxChoice}, |
1d99702e RD |
11610 | { "_long","_unsigned_long",0}, |
11611 | { "_long","_signed_long",0}, | |
b1462dfa | 11612 | { "_size_t","_wxCoord",0}, |
1d99702e | 11613 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11614 | { "_size_t","_time_t",0}, |
1d99702e RD |
11615 | { "_size_t","_unsigned_int",0}, |
11616 | { "_size_t","_int",0}, | |
11617 | { "_size_t","_wxWindowID",0}, | |
11618 | { "_size_t","_uint",0}, | |
b1462dfa | 11619 | { "_uint","_wxCoord",0}, |
1d99702e | 11620 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11621 | { "_uint","_time_t",0}, |
1d99702e RD |
11622 | { "_uint","_size_t",0}, |
11623 | { "_uint","_unsigned_int",0}, | |
11624 | { "_uint","_int",0}, | |
11625 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11626 | { "_wxChar","_char",0}, |
1d99702e | 11627 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, |
1d99702e | 11628 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, |
f6bcfd97 | 11629 | { "_char","_wxChar",0}, |
cdf14688 | 11630 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 11631 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
11632 | { "_EBool","_wxPrintQuality",0}, |
11633 | { "_EBool","_signed_int",0}, | |
11634 | { "_EBool","_int",0}, | |
11635 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 11636 | { "_unsigned_long","_long",0}, |
cdf14688 | 11637 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 11638 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
11639 | { "_signed_int","_wxPrintQuality",0}, |
11640 | { "_signed_int","_EBool",0}, | |
11641 | { "_signed_int","_wxWindowID",0}, | |
11642 | { "_signed_int","_int",0}, | |
1d99702e RD |
11643 | { "_WXTYPE","_short",0}, |
11644 | { "_WXTYPE","_signed_short",0}, | |
11645 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
11646 | { "_unsigned_short","_WXTYPE",0}, |
11647 | { "_unsigned_short","_short",0}, | |
68320e40 RD |
11648 | { "_wxObject","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxObject}, |
11649 | { "_wxObject","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxObject}, | |
11650 | { "_wxObject","_wxDirItemData",SwigwxDirItemDataTowxObject}, | |
9416aa89 | 11651 | { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, |
9416aa89 | 11652 | { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject}, |
6d19860f | 11653 | { "_wxObject","_wxListView",SwigwxListViewTowxObject}, |
c7e7022c | 11654 | { "_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, |
9416aa89 | 11655 | { "_wxObject","_wxListEvent",SwigwxListEventTowxObject}, |
9416aa89 | 11656 | { "_wxObject","_wxListItem",SwigwxListItemTowxObject}, |
1d99702e RD |
11657 | { "_signed_short","_WXTYPE",0}, |
11658 | { "_signed_short","_short",0}, | |
1d99702e | 11659 | { "_unsigned_char","_byte",0}, |
68320e40 RD |
11660 | { "_wxControl","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControl}, |
11661 | { "_wxControl","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxControl}, | |
f6bcfd97 | 11662 | { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
6d19860f | 11663 | { "_wxControl","_wxListView",SwigwxListViewTowxControl}, |
c7e7022c | 11664 | { "_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, |
b1462dfa | 11665 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 11666 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 11667 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
11668 | { "_unsigned_int","_size_t",0}, |
11669 | { "_unsigned_int","_uint",0}, | |
11670 | { "_unsigned_int","_wxWindowID",0}, | |
11671 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
11672 | { "_short","_WXTYPE",0}, |
11673 | { "_short","_unsigned_short",0}, | |
11674 | { "_short","_signed_short",0}, | |
68320e40 | 11675 | { "_wxControlWithItems","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControlWithItems}, |
b1462dfa | 11676 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 11677 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 11678 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
11679 | { "_wxWindowID","_size_t",0}, |
11680 | { "_wxWindowID","_EBool",0}, | |
11681 | { "_wxWindowID","_uint",0}, | |
11682 | { "_wxWindowID","_int",0}, | |
11683 | { "_wxWindowID","_signed_int",0}, | |
11684 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 11685 | { "_int","_wxCoord",0}, |
1d99702e | 11686 | { "_int","_wxPrintQuality",0}, |
c368d904 | 11687 | { "_int","_time_t",0}, |
1d99702e RD |
11688 | { "_int","_size_t",0}, |
11689 | { "_int","_EBool",0}, | |
11690 | { "_int","_uint",0}, | |
11691 | { "_int","_wxWindowID",0}, | |
11692 | { "_int","_unsigned_int",0}, | |
11693 | { "_int","_signed_int",0}, | |
c368d904 RD |
11694 | { "_time_t","_wxCoord",0}, |
11695 | { "_time_t","_wxPrintQuality",0}, | |
11696 | { "_time_t","_unsigned_int",0}, | |
11697 | { "_time_t","_int",0}, | |
11698 | { "_time_t","_wxWindowID",0}, | |
11699 | { "_time_t","_uint",0}, | |
11700 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
11701 | { "_wxCoord","_int",0}, |
11702 | { "_wxCoord","_signed_int",0}, | |
11703 | { "_wxCoord","_unsigned_int",0}, | |
11704 | { "_wxCoord","_wxWindowID",0}, | |
11705 | { "_wxCoord","_uint",0}, | |
11706 | { "_wxCoord","_EBool",0}, | |
11707 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11708 | { "_wxCoord","_time_t",0}, |
b1462dfa | 11709 | { "_wxCoord","_wxPrintQuality",0}, |
6d19860f | 11710 | { "_wxPyListCtrl","_wxListView",SwigwxListViewTowxPyListCtrl}, |
68320e40 RD |
11711 | { "_wxEvtHandler","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxEvtHandler}, |
11712 | { "_wxEvtHandler","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxEvtHandler}, | |
f6bcfd97 | 11713 | { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
6d19860f | 11714 | { "_wxEvtHandler","_wxListView",SwigwxListViewTowxEvtHandler}, |
c7e7022c | 11715 | { "_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, |
68320e40 RD |
11716 | { "_wxWindow","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxWindow}, |
11717 | { "_wxWindow","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxWindow}, | |
f6bcfd97 | 11718 | { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
6d19860f | 11719 | { "_wxWindow","_wxListView",SwigwxListViewTowxWindow}, |
c7e7022c | 11720 | { "_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, |
1d99702e RD |
11721 | {0,0,0}}; |
11722 | ||
8ab979d7 RD |
11723 | static PyObject *SWIG_globals; |
11724 | #ifdef __cplusplus | |
11725 | extern "C" | |
11726 | #endif | |
1d99702e | 11727 | SWIGEXPORT(void) initcontrols2c() { |
8ab979d7 RD |
11728 | PyObject *m, *d; |
11729 | SWIG_globals = SWIG_newvarlink(); | |
11730 | m = Py_InitModule("controls2c", controls2cMethods); | |
11731 | d = PyModule_GetDict(m); | |
c7e7022c RD |
11732 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
11733 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
11734 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
11735 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
11736 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
11737 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
11738 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO)); | |
11739 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO)); | |
11740 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
11741 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
11742 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN)); | |
11743 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
11744 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK)); | |
11745 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
11746 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
11747 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
11748 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_CACHE_HINT)); | |
6d19860f RD |
11749 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); |
11750 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
11751 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
11752 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
d8200036 | 11753 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_FOCUSED)); |
c7e7022c RD |
11754 | PyDict_SetItemString(d,"wxLC_VRULES", PyInt_FromLong((long) wxLC_VRULES)); |
11755 | PyDict_SetItemString(d,"wxLC_HRULES", PyInt_FromLong((long) wxLC_HRULES)); | |
11756 | PyDict_SetItemString(d,"wxLC_ICON", PyInt_FromLong((long) wxLC_ICON)); | |
11757 | PyDict_SetItemString(d,"wxLC_SMALL_ICON", PyInt_FromLong((long) wxLC_SMALL_ICON)); | |
11758 | PyDict_SetItemString(d,"wxLC_LIST", PyInt_FromLong((long) wxLC_LIST)); | |
11759 | PyDict_SetItemString(d,"wxLC_REPORT", PyInt_FromLong((long) wxLC_REPORT)); | |
11760 | PyDict_SetItemString(d,"wxLC_ALIGN_TOP", PyInt_FromLong((long) wxLC_ALIGN_TOP)); | |
11761 | PyDict_SetItemString(d,"wxLC_ALIGN_LEFT", PyInt_FromLong((long) wxLC_ALIGN_LEFT)); | |
11762 | PyDict_SetItemString(d,"wxLC_AUTOARRANGE", PyInt_FromLong((long) wxLC_AUTOARRANGE)); | |
11763 | PyDict_SetItemString(d,"wxLC_VIRTUAL", PyInt_FromLong((long) wxLC_VIRTUAL)); | |
11764 | PyDict_SetItemString(d,"wxLC_EDIT_LABELS", PyInt_FromLong((long) wxLC_EDIT_LABELS)); | |
11765 | PyDict_SetItemString(d,"wxLC_NO_HEADER", PyInt_FromLong((long) wxLC_NO_HEADER)); | |
11766 | PyDict_SetItemString(d,"wxLC_NO_SORT_HEADER", PyInt_FromLong((long) wxLC_NO_SORT_HEADER)); | |
11767 | PyDict_SetItemString(d,"wxLC_SINGLE_SEL", PyInt_FromLong((long) wxLC_SINGLE_SEL)); | |
11768 | PyDict_SetItemString(d,"wxLC_SORT_ASCENDING", PyInt_FromLong((long) wxLC_SORT_ASCENDING)); | |
11769 | PyDict_SetItemString(d,"wxLC_SORT_DESCENDING", PyInt_FromLong((long) wxLC_SORT_DESCENDING)); | |
11770 | PyDict_SetItemString(d,"wxLC_MASK_TYPE", PyInt_FromLong((long) wxLC_MASK_TYPE)); | |
11771 | PyDict_SetItemString(d,"wxLC_MASK_ALIGN", PyInt_FromLong((long) wxLC_MASK_ALIGN)); | |
11772 | PyDict_SetItemString(d,"wxLC_MASK_SORT", PyInt_FromLong((long) wxLC_MASK_SORT)); | |
6d19860f | 11773 | PyDict_SetItemString(d,"wxLC_USER_TEXT", PyInt_FromLong((long) wxLC_USER_TEXT)); |
c7e7022c | 11774 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); |
af309447 RD |
11775 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); |
11776 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
11777 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
c7e7022c | 11778 | PyDict_SetItemString(d,"wxLIST_SET_ITEM", PyInt_FromLong((long) wxLIST_SET_ITEM)); |
af309447 RD |
11779 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); |
11780 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
11781 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); | |
11782 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
11783 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
11784 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
11785 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
11786 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
11787 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
11788 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
11789 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
11790 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
11791 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
11792 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
11793 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
11794 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
11795 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
11796 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
11797 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
11798 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
11799 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
11800 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
11801 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
11802 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
11803 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
11804 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
af309447 RD |
11805 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); |
11806 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
11807 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
11808 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
11809 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
11810 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
11811 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
11812 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
11813 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
f6bcfd97 BP |
11814 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); |
11815 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
11816 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
11817 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
00b6c4e3 RD |
11818 | PyDict_SetItemString(d,"wxTR_NO_BUTTONS", PyInt_FromLong((long) wxTR_NO_BUTTONS)); |
11819 | PyDict_SetItemString(d,"wxTR_HAS_BUTTONS", PyInt_FromLong((long) wxTR_HAS_BUTTONS)); | |
00b6c4e3 | 11820 | PyDict_SetItemString(d,"wxTR_NO_LINES", PyInt_FromLong((long) wxTR_NO_LINES)); |
5a2a9da2 | 11821 | PyDict_SetItemString(d,"wxTR_LINES_AT_ROOT", PyInt_FromLong((long) wxTR_LINES_AT_ROOT)); |
00b6c4e3 RD |
11822 | PyDict_SetItemString(d,"wxTR_SINGLE", PyInt_FromLong((long) wxTR_SINGLE)); |
11823 | PyDict_SetItemString(d,"wxTR_MULTIPLE", PyInt_FromLong((long) wxTR_MULTIPLE)); | |
11824 | PyDict_SetItemString(d,"wxTR_EXTENDED", PyInt_FromLong((long) wxTR_EXTENDED)); | |
5a2a9da2 | 11825 | PyDict_SetItemString(d,"wxTR_HAS_VARIABLE_ROW_HEIGHT", PyInt_FromLong((long) wxTR_HAS_VARIABLE_ROW_HEIGHT)); |
00b6c4e3 | 11826 | PyDict_SetItemString(d,"wxTR_EDIT_LABELS", PyInt_FromLong((long) wxTR_EDIT_LABELS)); |
00b6c4e3 RD |
11827 | PyDict_SetItemString(d,"wxTR_HIDE_ROOT", PyInt_FromLong((long) wxTR_HIDE_ROOT)); |
11828 | PyDict_SetItemString(d,"wxTR_ROW_LINES", PyInt_FromLong((long) wxTR_ROW_LINES)); | |
5a2a9da2 | 11829 | PyDict_SetItemString(d,"wxTR_FULL_ROW_HIGHLIGHT", PyInt_FromLong((long) wxTR_FULL_ROW_HIGHLIGHT)); |
00b6c4e3 | 11830 | PyDict_SetItemString(d,"wxTR_DEFAULT_STYLE", PyInt_FromLong((long) wxTR_DEFAULT_STYLE)); |
5a2a9da2 RD |
11831 | PyDict_SetItemString(d,"wxTR_TWIST_BUTTONS", PyInt_FromLong((long) wxTR_TWIST_BUTTONS)); |
11832 | PyDict_SetItemString(d,"wxTR_MAC_BUTTONS", PyInt_FromLong((long) wxTR_MAC_BUTTONS)); | |
11833 | PyDict_SetItemString(d,"wxTR_AQUA_BUTTONS", PyInt_FromLong((long) wxTR_AQUA_BUTTONS)); | |
694759cf RD |
11834 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); |
11835 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
11836 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
11837 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
11838 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
164b735b RD |
11839 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); |
11840 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
11841 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
11842 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
11843 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
11844 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
11845 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
11846 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
11847 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
11848 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
11849 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
11850 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
11851 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
11852 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
1b62f00d RD |
11853 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
11854 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
11855 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
11856 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
11857 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
11858 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO)); | |
11859 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO)); | |
11860 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
11861 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
11862 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
11863 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
11864 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
11865 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
11866 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN)); | |
11867 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
11868 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
11869 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
d1679124 | 11870 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG)); |
5a2a9da2 | 11871 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); |
68320e40 RD |
11872 | PyDict_SetItemString(d,"wxDIRCTRL_DIR_ONLY", PyInt_FromLong((long) wxDIRCTRL_DIR_ONLY)); |
11873 | PyDict_SetItemString(d,"wxDIRCTRL_SELECT_FIRST", PyInt_FromLong((long) wxDIRCTRL_SELECT_FIRST)); | |
11874 | PyDict_SetItemString(d,"wxDIRCTRL_SHOW_FILTERS", PyInt_FromLong((long) wxDIRCTRL_SHOW_FILTERS)); | |
11875 | PyDict_SetItemString(d,"wxDIRCTRL_3D_INTERNAL", PyInt_FromLong((long) wxDIRCTRL_3D_INTERNAL)); | |
7cdaed0b | 11876 | PyDict_SetItemString(d,"wxDIRCTRL_EDIT_LABELS", PyInt_FromLong((long) wxDIRCTRL_EDIT_LABELS)); |
db0ff83e RD |
11877 | PyDict_SetItemString(d,"wxID_TREECTRL", PyInt_FromLong((long) wxID_TREECTRL)); |
11878 | PyDict_SetItemString(d,"wxID_FILTERLISTCTRL", PyInt_FromLong((long) wxID_FILTERLISTCTRL)); | |
9416aa89 | 11879 | |
a3fbed81 | 11880 | // Map renamed classes back to their common name for OOR |
9416aa89 RD |
11881 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); |
11882 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
a3fbed81 | 11883 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); |
5a2a9da2 RD |
11884 | PyDict_SetItemString(d,"wxFileIconsTable_folder", PyInt_FromLong((long) wxFileIconsTable::folder)); |
11885 | PyDict_SetItemString(d,"wxFileIconsTable_folder_open", PyInt_FromLong((long) wxFileIconsTable::folder_open)); | |
11886 | PyDict_SetItemString(d,"wxFileIconsTable_computer", PyInt_FromLong((long) wxFileIconsTable::computer)); | |
11887 | PyDict_SetItemString(d,"wxFileIconsTable_drive", PyInt_FromLong((long) wxFileIconsTable::drive)); | |
11888 | PyDict_SetItemString(d,"wxFileIconsTable_cdrom", PyInt_FromLong((long) wxFileIconsTable::cdrom)); | |
11889 | PyDict_SetItemString(d,"wxFileIconsTable_floppy", PyInt_FromLong((long) wxFileIconsTable::floppy)); | |
11890 | PyDict_SetItemString(d,"wxFileIconsTable_removeable", PyInt_FromLong((long) wxFileIconsTable::removeable)); | |
11891 | PyDict_SetItemString(d,"wxFileIconsTable_file", PyInt_FromLong((long) wxFileIconsTable::file)); | |
11892 | PyDict_SetItemString(d,"wxFileIconsTable_executable", PyInt_FromLong((long) wxFileIconsTable::executable)); | |
1d99702e RD |
11893 | { |
11894 | int i; | |
11895 | for (i = 0; _swig_mapping[i].n1; i++) | |
11896 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11897 | } | |
8ab979d7 | 11898 | } |