]>
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 | |
8ab979d7 RD |
66 | |
67 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
68 | PyObject* o2; | |
69 | PyObject* o3; | |
70 | ||
e0672e2f | 71 | if (!target) { |
8ab979d7 | 72 | target = o; |
e0672e2f | 73 | } else if (target == Py_None) { |
8ab979d7 RD |
74 | Py_DECREF(Py_None); |
75 | target = o; | |
e0672e2f | 76 | } else { |
8ab979d7 RD |
77 | if (!PyTuple_Check(target)) { |
78 | o2 = target; | |
79 | target = PyTuple_New(1); | |
80 | PyTuple_SetItem(target, 0, o2); | |
81 | } | |
e0672e2f RD |
82 | o3 = PyTuple_New(1); |
83 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
84 | |
85 | o2 = target; | |
e0672e2f RD |
86 | target = PySequence_Concat(o2, o3); |
87 | Py_DECREF(o2); | |
8ab979d7 RD |
88 | Py_DECREF(o3); |
89 | } | |
90 | return target; | |
91 | } | |
137b5242 RD |
92 | |
93 | // Put some wx default wxChar* values into wxStrings. | |
94 | const wxChar* wxListCtrlNameStr = _T("wxListCtrl"); | |
95 | DECLARE_DEF_STRING(ListCtrlNameStr); | |
96 | ||
3413be75 | 97 | const wxChar* wx_TreeCtrlNameStr = _T("wxTreeCtrl"); |
137b5242 RD |
98 | DECLARE_DEF_STRING(_TreeCtrlNameStr); |
99 | DECLARE_DEF_STRING(DirDialogDefaultFolderStr); | |
100 | ||
101 | static const wxString wxPyEmptyString(wxT("")); | |
0815db26 RD |
102 | |
103 | static const long longzero = 0; | |
09f3d4e6 | 104 | // C++ Version of a Python aware class |
c7e7022c RD |
105 | class wxPyListCtrl : public wxListCtrl { |
106 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
107 | public: | |
09f3d4e6 | 108 | wxPyListCtrl() : wxListCtrl() {} |
c7e7022c RD |
109 | wxPyListCtrl(wxWindow* parent, wxWindowID id, |
110 | const wxPoint& pos, | |
111 | const wxSize& size, | |
112 | long style, | |
113 | const wxValidator& validator, | |
137b5242 | 114 | const wxString& name) : |
c7e7022c RD |
115 | wxListCtrl(parent, id, pos, size, style, validator, name) {} |
116 | ||
09f3d4e6 RD |
117 | bool Create(wxWindow* parent, wxWindowID id, |
118 | const wxPoint& pos, | |
119 | const wxSize& size, | |
120 | long style, | |
121 | const wxValidator& validator, | |
137b5242 | 122 | const wxString& name) { |
09f3d4e6 RD |
123 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); |
124 | } | |
125 | ||
c7e7022c RD |
126 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); |
127 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
128 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
129 | ||
130 | PYPRIVATE; | |
131 | }; | |
132 | ||
133 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
134 | ||
135 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
136 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
137 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
6d19860f | 138 | // Python aware sorting function for wxPyListCtrl |
f6bcfd97 | 139 | int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { |
dcd38683 RD |
140 | int retval = 0; |
141 | PyObject* func = (PyObject*)funcPtr; | |
4268f798 | 142 | wxPyBeginBlockThreads(); |
dcd38683 RD |
143 | |
144 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
145 | PyObject* result = PyEval_CallObject(func, args); | |
146 | Py_DECREF(args); | |
147 | if (result) { | |
148 | retval = PyInt_AsLong(result); | |
149 | Py_DECREF(result); | |
150 | } | |
151 | ||
4268f798 | 152 | wxPyEndBlockThreads(); |
dcd38683 RD |
153 | return retval; |
154 | } | |
155 | ||
156 | ||
cf694132 RD |
157 | class wxPyTreeItemData : public wxTreeItemData { |
158 | public: | |
159 | wxPyTreeItemData(PyObject* obj = NULL) { | |
c368d904 | 160 | if (obj == NULL) |
cf694132 | 161 | obj = Py_None; |
c368d904 RD |
162 | Py_INCREF(obj); |
163 | m_obj = obj; | |
cf694132 RD |
164 | } |
165 | ||
166 | ~wxPyTreeItemData() { | |
4268f798 | 167 | wxPyBeginBlockThreads(); |
c368d904 | 168 | Py_DECREF(m_obj); |
4268f798 | 169 | wxPyEndBlockThreads(); |
cf694132 RD |
170 | } |
171 | ||
172 | PyObject* GetData() { | |
173 | Py_INCREF(m_obj); | |
174 | return m_obj; | |
175 | } | |
176 | ||
177 | void SetData(PyObject* obj) { | |
4268f798 | 178 | wxPyBeginBlockThreads(); |
cf694132 | 179 | Py_DECREF(m_obj); |
4268f798 | 180 | wxPyEndBlockThreads(); |
cf694132 RD |
181 | m_obj = obj; |
182 | Py_INCREF(obj); | |
183 | } | |
184 | ||
185 | PyObject* m_obj; | |
186 | }; | |
09f3d4e6 | 187 | // C++ version of Python aware wxTreeCtrl |
f6bcfd97 | 188 | class wxPyTreeCtrl : public wxTreeCtrl { |
3b36695d | 189 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); |
f6bcfd97 | 190 | public: |
09f3d4e6 | 191 | wxPyTreeCtrl() : wxTreeCtrl() {} |
f6bcfd97 BP |
192 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, |
193 | const wxPoint& pos, | |
194 | const wxSize& size, | |
195 | long style, | |
196 | const wxValidator& validator, | |
137b5242 | 197 | const wxString& name) : |
f6bcfd97 BP |
198 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} |
199 | ||
09f3d4e6 RD |
200 | bool Create(wxWindow *parent, wxWindowID id, |
201 | const wxPoint& pos, | |
202 | const wxSize& size, | |
203 | long style, | |
204 | const wxValidator& validator, | |
137b5242 | 205 | const wxString& name) { |
09f3d4e6 RD |
206 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); |
207 | } | |
208 | ||
209 | ||
f6bcfd97 BP |
210 | int OnCompareItems(const wxTreeItemId& item1, |
211 | const wxTreeItemId& item2) { | |
212 | int rval = 0; | |
19a97bd6 | 213 | bool found; |
4268f798 | 214 | wxPyBeginBlockThreads(); |
a66212dc | 215 | if ((found = m_myInst.findCallback("OnCompareItems"))) { |
7e50db3f RD |
216 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId")); |
217 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId")); | |
a66212dc RD |
218 | rval = m_myInst.callCallback(Py_BuildValue("(OO)",o1,o2)); |
219 | Py_DECREF(o1); | |
220 | Py_DECREF(o2); | |
221 | } | |
4268f798 | 222 | wxPyEndBlockThreads(); |
19a97bd6 | 223 | if (! found) |
f6bcfd97 | 224 | rval = wxTreeCtrl::OnCompareItems(item1, item2); |
f6bcfd97 BP |
225 | return rval; |
226 | } | |
227 | PYPRIVATE; | |
228 | }; | |
229 | ||
3b36695d RD |
230 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); |
231 | ||
1d99702e RD |
232 | #ifdef __cplusplus |
233 | extern "C" { | |
234 | #endif | |
c7e7022c | 235 | #define new_wxListItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxListItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
f6bcfd97 | 236 | static PyObject *_wrap_new_wxListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 | 237 | PyObject * _resultobj; |
f6bcfd97 | 238 | wxListItemAttr * _result; |
c7e7022c RD |
239 | wxColour * _arg0 = (wxColour *) &wxNullColour; |
240 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
241 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
242 | wxColour temp; | |
243 | PyObject * _obj0 = 0; | |
244 | wxColour temp0; | |
245 | PyObject * _obj1 = 0; | |
246 | PyObject * _argo2 = 0; | |
247 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
f6bcfd97 | 248 | char _ptemp[128]; |
af309447 RD |
249 | |
250 | self = self; | |
c7e7022c RD |
251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxListItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) |
252 | return NULL; | |
253 | if (_obj0) | |
254 | { | |
255 | _arg0 = &temp; | |
256 | if (! wxColour_helper(_obj0, &_arg0)) | |
257 | return NULL; | |
258 | } | |
259 | if (_obj1) | |
260 | { | |
261 | _arg1 = &temp0; | |
262 | if (! wxColour_helper(_obj1, &_arg1)) | |
263 | return NULL; | |
264 | } | |
265 | if (_argo2) { | |
7e50db3f | 266 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { |
c7e7022c | 267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxListItemAttr. Expected _wxFont_p."); |
af309447 | 268 | return NULL; |
c7e7022c RD |
269 | } |
270 | } | |
cf694132 | 271 | { |
4268f798 | 272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 273 | _result = (wxListItemAttr *)new_wxListItemAttr(*_arg0,*_arg1,*_arg2); |
cf694132 | 274 | |
4268f798 | 275 | wxPyEndAllowThreads(__tstate); |
493f1553 | 276 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
277 | } if (_result) { |
278 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
279 | _resultobj = Py_BuildValue("s",_ptemp); | |
280 | } else { | |
281 | Py_INCREF(Py_None); | |
282 | _resultobj = Py_None; | |
283 | } | |
af309447 RD |
284 | return _resultobj; |
285 | } | |
286 | ||
f6bcfd97 BP |
287 | #define wxListItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
288 | static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 289 | PyObject * _resultobj; |
f6bcfd97 BP |
290 | wxListItemAttr * _arg0; |
291 | wxColour * _arg1; | |
1d99702e | 292 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
293 | wxColour temp; |
294 | PyObject * _obj1 = 0; | |
295 | char *_kwnames[] = { "self","colText", NULL }; | |
8ab979d7 RD |
296 | |
297 | self = self; | |
f6bcfd97 | 298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 299 | return NULL; |
1d99702e RD |
300 | if (_argo0) { |
301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetTextColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
304 | return NULL; |
305 | } | |
306 | } | |
f6bcfd97 BP |
307 | { |
308 | _arg1 = &temp; | |
309 | if (! wxColour_helper(_obj1, &_arg1)) | |
310 | return NULL; | |
311 | } | |
cf694132 | 312 | { |
4268f798 | 313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 314 | wxListItemAttr_SetTextColour(_arg0,*_arg1); |
cf694132 | 315 | |
4268f798 | 316 | wxPyEndAllowThreads(__tstate); |
493f1553 | 317 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
318 | } Py_INCREF(Py_None); |
319 | _resultobj = Py_None; | |
8ab979d7 RD |
320 | return _resultobj; |
321 | } | |
322 | ||
f6bcfd97 BP |
323 | #define wxListItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
324 | static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 325 | PyObject * _resultobj; |
f6bcfd97 BP |
326 | wxListItemAttr * _arg0; |
327 | wxColour * _arg1; | |
1d99702e | 328 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
329 | wxColour temp; |
330 | PyObject * _obj1 = 0; | |
331 | char *_kwnames[] = { "self","colBack", NULL }; | |
af309447 RD |
332 | |
333 | self = self; | |
f6bcfd97 | 334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
af309447 | 335 | return NULL; |
1d99702e RD |
336 | if (_argo0) { |
337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetBackgroundColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
340 | return NULL; |
341 | } | |
342 | } | |
f6bcfd97 BP |
343 | { |
344 | _arg1 = &temp; | |
345 | if (! wxColour_helper(_obj1, &_arg1)) | |
346 | return NULL; | |
347 | } | |
cf694132 | 348 | { |
4268f798 | 349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 350 | wxListItemAttr_SetBackgroundColour(_arg0,*_arg1); |
cf694132 | 351 | |
4268f798 | 352 | wxPyEndAllowThreads(__tstate); |
493f1553 | 353 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
354 | } Py_INCREF(Py_None); |
355 | _resultobj = Py_None; | |
af309447 RD |
356 | return _resultobj; |
357 | } | |
358 | ||
f6bcfd97 BP |
359 | #define wxListItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
360 | static PyObject *_wrap_wxListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 361 | PyObject * _resultobj; |
f6bcfd97 BP |
362 | wxListItemAttr * _arg0; |
363 | wxFont * _arg1; | |
1d99702e | 364 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
365 | PyObject * _argo1 = 0; |
366 | char *_kwnames[] = { "self","font", NULL }; | |
8ab979d7 RD |
367 | |
368 | self = self; | |
f6bcfd97 | 369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 370 | return NULL; |
1d99702e RD |
371 | if (_argo0) { |
372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetFont. Expected _wxListItemAttr_p."); | |
375 | return NULL; | |
376 | } | |
377 | } | |
378 | if (_argo1) { | |
7e50db3f | 379 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { |
f6bcfd97 | 380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetFont. Expected _wxFont_p."); |
8ab979d7 RD |
381 | return NULL; |
382 | } | |
383 | } | |
cf694132 | 384 | { |
4268f798 | 385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 386 | wxListItemAttr_SetFont(_arg0,*_arg1); |
cf694132 | 387 | |
4268f798 | 388 | wxPyEndAllowThreads(__tstate); |
493f1553 | 389 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
390 | } Py_INCREF(Py_None); |
391 | _resultobj = Py_None; | |
8ab979d7 RD |
392 | return _resultobj; |
393 | } | |
394 | ||
f6bcfd97 BP |
395 | #define wxListItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) |
396 | static PyObject *_wrap_wxListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 397 | PyObject * _resultobj; |
f6bcfd97 BP |
398 | bool _result; |
399 | wxListItemAttr * _arg0; | |
1d99702e | 400 | PyObject * _argo0 = 0; |
f6bcfd97 | 401 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
402 | |
403 | self = self; | |
f6bcfd97 | 404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasTextColour",_kwnames,&_argo0)) |
af309447 | 405 | return NULL; |
1d99702e RD |
406 | if (_argo0) { |
407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasTextColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
410 | return NULL; |
411 | } | |
412 | } | |
cf694132 | 413 | { |
4268f798 | 414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 415 | _result = (bool )wxListItemAttr_HasTextColour(_arg0); |
cf694132 | 416 | |
4268f798 | 417 | wxPyEndAllowThreads(__tstate); |
493f1553 | 418 | if (PyErr_Occurred()) return NULL; |
cf694132 | 419 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
420 | return _resultobj; |
421 | } | |
422 | ||
f6bcfd97 BP |
423 | #define wxListItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) |
424 | static PyObject *_wrap_wxListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 425 | PyObject * _resultobj; |
f6bcfd97 BP |
426 | bool _result; |
427 | wxListItemAttr * _arg0; | |
1d99702e | 428 | PyObject * _argo0 = 0; |
efc5f224 | 429 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
430 | |
431 | self = self; | |
f6bcfd97 | 432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 433 | return NULL; |
1d99702e RD |
434 | if (_argo0) { |
435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasBackgroundColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
438 | return NULL; |
439 | } | |
440 | } | |
cf694132 | 441 | { |
4268f798 | 442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 443 | _result = (bool )wxListItemAttr_HasBackgroundColour(_arg0); |
cf694132 | 444 | |
4268f798 | 445 | wxPyEndAllowThreads(__tstate); |
493f1553 | 446 | if (PyErr_Occurred()) return NULL; |
cf694132 | 447 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
448 | return _resultobj; |
449 | } | |
450 | ||
f6bcfd97 BP |
451 | #define wxListItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) |
452 | static PyObject *_wrap_wxListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 453 | PyObject * _resultobj; |
f6bcfd97 BP |
454 | bool _result; |
455 | wxListItemAttr * _arg0; | |
1d99702e | 456 | PyObject * _argo0 = 0; |
f6bcfd97 | 457 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
458 | |
459 | self = self; | |
f6bcfd97 | 460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasFont",_kwnames,&_argo0)) |
af309447 | 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_HasFont. Expected _wxListItemAttr_p."); | |
af309447 RD |
466 | return NULL; |
467 | } | |
468 | } | |
cf694132 | 469 | { |
4268f798 | 470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 471 | _result = (bool )wxListItemAttr_HasFont(_arg0); |
cf694132 | 472 | |
4268f798 | 473 | wxPyEndAllowThreads(__tstate); |
493f1553 | 474 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 475 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
476 | return _resultobj; |
477 | } | |
478 | ||
f6bcfd97 BP |
479 | #define wxListItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
480 | static PyObject *_wrap_wxListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 481 | PyObject * _resultobj; |
f6bcfd97 BP |
482 | wxColour * _result; |
483 | wxListItemAttr * _arg0; | |
1d99702e | 484 | PyObject * _argo0 = 0; |
efc5f224 | 485 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 486 | char _ptemp[128]; |
8ab979d7 RD |
487 | |
488 | self = self; | |
f6bcfd97 | 489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 490 | return NULL; |
1d99702e RD |
491 | if (_argo0) { |
492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetTextColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
495 | return NULL; |
496 | } | |
497 | } | |
cf694132 | 498 | { |
4268f798 | 499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 500 | _result = new wxColour (wxListItemAttr_GetTextColour(_arg0)); |
cf694132 | 501 | |
4268f798 | 502 | wxPyEndAllowThreads(__tstate); |
493f1553 | 503 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
504 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
505 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
506 | return _resultobj; |
507 | } | |
508 | ||
f6bcfd97 BP |
509 | #define wxListItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) |
510 | static PyObject *_wrap_wxListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 511 | PyObject * _resultobj; |
f6bcfd97 BP |
512 | wxColour * _result; |
513 | wxListItemAttr * _arg0; | |
1d99702e | 514 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
515 | char *_kwnames[] = { "self", NULL }; |
516 | char _ptemp[128]; | |
af309447 RD |
517 | |
518 | self = self; | |
f6bcfd97 | 519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetBackgroundColour",_kwnames,&_argo0)) |
af309447 | 520 | return NULL; |
1d99702e RD |
521 | if (_argo0) { |
522 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
523 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetBackgroundColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
525 | return NULL; |
526 | } | |
527 | } | |
cf694132 | 528 | { |
4268f798 | 529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 530 | _result = new wxColour (wxListItemAttr_GetBackgroundColour(_arg0)); |
cf694132 | 531 | |
4268f798 | 532 | wxPyEndAllowThreads(__tstate); |
493f1553 | 533 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
534 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
535 | _resultobj = Py_BuildValue("s",_ptemp); | |
af309447 RD |
536 | return _resultobj; |
537 | } | |
538 | ||
f6bcfd97 BP |
539 | #define wxListItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) |
540 | static PyObject *_wrap_wxListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 541 | PyObject * _resultobj; |
f6bcfd97 BP |
542 | wxFont * _result; |
543 | wxListItemAttr * _arg0; | |
1d99702e | 544 | PyObject * _argo0 = 0; |
efc5f224 | 545 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 546 | char _ptemp[128]; |
8ab979d7 RD |
547 | |
548 | self = self; | |
f6bcfd97 | 549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 550 | return NULL; |
1d99702e RD |
551 | if (_argo0) { |
552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetFont. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
555 | return NULL; |
556 | } | |
557 | } | |
cf694132 | 558 | { |
4268f798 | 559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 560 | _result = new wxFont (wxListItemAttr_GetFont(_arg0)); |
cf694132 | 561 | |
4268f798 | 562 | wxPyEndAllowThreads(__tstate); |
493f1553 | 563 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
564 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
565 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
566 | return _resultobj; |
567 | } | |
568 | ||
9416aa89 RD |
569 | static void *SwigwxListItemTowxObject(void *ptr) { |
570 | wxListItem *src; | |
571 | wxObject *dest; | |
572 | src = (wxListItem *) ptr; | |
573 | dest = (wxObject *) src; | |
574 | return (void *) dest; | |
575 | } | |
576 | ||
f6bcfd97 BP |
577 | #define new_wxListItem() (new wxListItem()) |
578 | static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 579 | PyObject * _resultobj; |
f6bcfd97 BP |
580 | wxListItem * _result; |
581 | char *_kwnames[] = { NULL }; | |
582 | char _ptemp[128]; | |
af309447 RD |
583 | |
584 | self = self; | |
f6bcfd97 | 585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames)) |
af309447 | 586 | return NULL; |
af309447 | 587 | { |
4268f798 | 588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 589 | _result = (wxListItem *)new_wxListItem(); |
cf694132 | 590 | |
4268f798 | 591 | wxPyEndAllowThreads(__tstate); |
493f1553 | 592 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
593 | } if (_result) { |
594 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
595 | _resultobj = Py_BuildValue("s",_ptemp); | |
596 | } else { | |
597 | Py_INCREF(Py_None); | |
598 | _resultobj = Py_None; | |
599 | } | |
af309447 RD |
600 | return _resultobj; |
601 | } | |
602 | ||
f6bcfd97 BP |
603 | #define delete_wxListItem(_swigobj) (delete _swigobj) |
604 | static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 605 | PyObject * _resultobj; |
8ab979d7 | 606 | wxListItem * _arg0; |
1d99702e | 607 | PyObject * _argo0 = 0; |
efc5f224 | 608 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
609 | |
610 | self = self; | |
f6bcfd97 | 611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0)) |
8ab979d7 | 612 | return NULL; |
1d99702e RD |
613 | if (_argo0) { |
614 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p."); |
8ab979d7 RD |
617 | return NULL; |
618 | } | |
619 | } | |
8ab979d7 | 620 | { |
4268f798 | 621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 622 | delete_wxListItem(_arg0); |
cf694132 | 623 | |
4268f798 | 624 | wxPyEndAllowThreads(__tstate); |
493f1553 | 625 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
626 | } Py_INCREF(Py_None); |
627 | _resultobj = Py_None; | |
8ab979d7 RD |
628 | return _resultobj; |
629 | } | |
630 | ||
f6bcfd97 BP |
631 | #define wxListItem_Clear(_swigobj) (_swigobj->Clear()) |
632 | static PyObject *_wrap_wxListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 633 | PyObject * _resultobj; |
af309447 | 634 | wxListItem * _arg0; |
1d99702e | 635 | PyObject * _argo0 = 0; |
f6bcfd97 | 636 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
637 | |
638 | self = self; | |
f6bcfd97 | 639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_Clear",_kwnames,&_argo0)) |
af309447 | 640 | return NULL; |
1d99702e RD |
641 | if (_argo0) { |
642 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
643 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_Clear. Expected _wxListItem_p."); |
af309447 RD |
645 | return NULL; |
646 | } | |
647 | } | |
cf694132 | 648 | { |
4268f798 | 649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 650 | wxListItem_Clear(_arg0); |
cf694132 | 651 | |
4268f798 | 652 | wxPyEndAllowThreads(__tstate); |
493f1553 | 653 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
654 | } Py_INCREF(Py_None); |
655 | _resultobj = Py_None; | |
af309447 RD |
656 | return _resultobj; |
657 | } | |
658 | ||
f6bcfd97 BP |
659 | #define wxListItem_ClearAttributes(_swigobj) (_swigobj->ClearAttributes()) |
660 | static PyObject *_wrap_wxListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 661 | PyObject * _resultobj; |
8ab979d7 | 662 | wxListItem * _arg0; |
1d99702e | 663 | PyObject * _argo0 = 0; |
efc5f224 | 664 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
665 | |
666 | self = self; | |
f6bcfd97 | 667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_ClearAttributes",_kwnames,&_argo0)) |
8ab979d7 | 668 | return NULL; |
1d99702e RD |
669 | if (_argo0) { |
670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_ClearAttributes. Expected _wxListItem_p."); |
8ab979d7 RD |
673 | return NULL; |
674 | } | |
675 | } | |
cf694132 | 676 | { |
4268f798 | 677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 678 | wxListItem_ClearAttributes(_arg0); |
cf694132 | 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_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
688 | static PyObject *_wrap_wxListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
689 | PyObject * _resultobj; | |
690 | wxListItem * _arg0; | |
691 | long _arg1; | |
692 | PyObject * _argo0 = 0; | |
693 | char *_kwnames[] = { "self","mask", NULL }; | |
694 | ||
695 | self = self; | |
696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetMask",_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_SetMask. Expected _wxListItem_p."); | |
702 | return NULL; | |
703 | } | |
704 | } | |
705 | { | |
4268f798 | 706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 707 | wxListItem_SetMask(_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_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
717 | static PyObject *_wrap_wxListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
718 | PyObject * _resultobj; | |
719 | wxListItem * _arg0; | |
720 | long _arg1; | |
721 | PyObject * _argo0 = 0; | |
722 | char *_kwnames[] = { "self","id", NULL }; | |
723 | ||
724 | self = self; | |
725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetId",_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_SetId. Expected _wxListItem_p."); | |
731 | return NULL; | |
732 | } | |
733 | } | |
734 | { | |
4268f798 | 735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 736 | wxListItem_SetId(_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_SetColumn(_swigobj,_swigarg0) (_swigobj->SetColumn(_swigarg0)) | |
746 | static PyObject *_wrap_wxListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
747 | PyObject * _resultobj; | |
748 | wxListItem * _arg0; | |
749 | int _arg1; | |
750 | PyObject * _argo0 = 0; | |
751 | char *_kwnames[] = { "self","col", NULL }; | |
752 | ||
753 | self = self; | |
754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetColumn",_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_SetColumn. Expected _wxListItem_p."); | |
760 | return NULL; | |
761 | } | |
762 | } | |
763 | { | |
4268f798 | 764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 765 | wxListItem_SetColumn(_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_SetState(_swigobj,_swigarg0) (_swigobj->SetState(_swigarg0)) | |
775 | static PyObject *_wrap_wxListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
776 | PyObject * _resultobj; | |
777 | wxListItem * _arg0; | |
778 | long _arg1; | |
779 | PyObject * _argo0 = 0; | |
780 | char *_kwnames[] = { "self","state", NULL }; | |
781 | ||
782 | self = self; | |
783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetState",_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_SetState. Expected _wxListItem_p."); | |
789 | return NULL; | |
790 | } | |
791 | } | |
792 | { | |
4268f798 | 793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 794 | wxListItem_SetState(_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_SetStateMask(_swigobj,_swigarg0) (_swigobj->SetStateMask(_swigarg0)) | |
804 | static PyObject *_wrap_wxListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
805 | PyObject * _resultobj; | |
806 | wxListItem * _arg0; | |
807 | long _arg1; | |
808 | PyObject * _argo0 = 0; | |
809 | char *_kwnames[] = { "self","stateMask", NULL }; | |
810 | ||
811 | self = self; | |
812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetStateMask",_kwnames,&_argo0,&_arg1)) | |
813 | return NULL; | |
814 | if (_argo0) { | |
815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetStateMask. Expected _wxListItem_p."); | |
818 | return NULL; | |
819 | } | |
820 | } | |
821 | { | |
4268f798 | 822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 823 | wxListItem_SetStateMask(_arg0,_arg1); |
f6bcfd97 | 824 | |
4268f798 | 825 | wxPyEndAllowThreads(__tstate); |
493f1553 | 826 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
827 | } Py_INCREF(Py_None); |
828 | _resultobj = Py_None; | |
829 | return _resultobj; | |
830 | } | |
831 | ||
832 | #define wxListItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
833 | static PyObject *_wrap_wxListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
834 | PyObject * _resultobj; | |
835 | wxListItem * _arg0; | |
836 | wxString * _arg1; | |
837 | PyObject * _argo0 = 0; | |
838 | PyObject * _obj1 = 0; | |
839 | char *_kwnames[] = { "self","text", NULL }; | |
840 | ||
841 | self = self; | |
842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetText",_kwnames,&_argo0,&_obj1)) | |
843 | return NULL; | |
844 | if (_argo0) { | |
845 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
846 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
847 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetText. Expected _wxListItem_p."); | |
848 | return NULL; | |
849 | } | |
850 | } | |
851 | { | |
c8bc7bb8 RD |
852 | _arg1 = wxString_in_helper(_obj1); |
853 | if (_arg1 == NULL) | |
f6bcfd97 | 854 | return NULL; |
f6bcfd97 BP |
855 | } |
856 | { | |
4268f798 | 857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 858 | wxListItem_SetText(_arg0,*_arg1); |
f6bcfd97 | 859 | |
4268f798 | 860 | wxPyEndAllowThreads(__tstate); |
493f1553 | 861 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
862 | } Py_INCREF(Py_None); |
863 | _resultobj = Py_None; | |
864 | { | |
865 | if (_obj1) | |
866 | delete _arg1; | |
867 | } | |
868 | return _resultobj; | |
869 | } | |
870 | ||
871 | #define wxListItem_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0)) | |
872 | static PyObject *_wrap_wxListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
873 | PyObject * _resultobj; | |
874 | wxListItem * _arg0; | |
875 | int _arg1; | |
876 | PyObject * _argo0 = 0; | |
877 | char *_kwnames[] = { "self","image", NULL }; | |
878 | ||
879 | self = self; | |
880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetImage",_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_SetImage. Expected _wxListItem_p."); | |
886 | return NULL; | |
887 | } | |
888 | } | |
889 | { | |
4268f798 | 890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 891 | wxListItem_SetImage(_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_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
901 | static PyObject *_wrap_wxListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
902 | PyObject * _resultobj; | |
903 | wxListItem * _arg0; | |
904 | long _arg1; | |
905 | PyObject * _argo0 = 0; | |
906 | char *_kwnames[] = { "self","data", NULL }; | |
907 | ||
908 | self = self; | |
909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetData",_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_SetData. Expected _wxListItem_p."); | |
915 | return NULL; | |
916 | } | |
917 | } | |
918 | { | |
4268f798 | 919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 920 | wxListItem_SetData(_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_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
930 | static PyObject *_wrap_wxListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
931 | PyObject * _resultobj; | |
932 | wxListItem * _arg0; | |
933 | int _arg1; | |
934 | PyObject * _argo0 = 0; | |
935 | char *_kwnames[] = { "self","width", NULL }; | |
936 | ||
937 | self = self; | |
938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetWidth",_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_SetWidth. Expected _wxListItem_p."); | |
944 | return NULL; | |
945 | } | |
946 | } | |
947 | { | |
4268f798 | 948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 949 | wxListItem_SetWidth(_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_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0)) | |
959 | static PyObject *_wrap_wxListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
960 | PyObject * _resultobj; | |
961 | wxListItem * _arg0; | |
962 | wxListColumnFormat _arg1; | |
963 | PyObject * _argo0 = 0; | |
964 | char *_kwnames[] = { "self","align", NULL }; | |
965 | ||
966 | self = self; | |
967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetAlign",_kwnames,&_argo0,&_arg1)) | |
968 | return NULL; | |
969 | if (_argo0) { | |
970 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
971 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetAlign. Expected _wxListItem_p."); | |
973 | return NULL; | |
974 | } | |
975 | } | |
976 | { | |
4268f798 | 977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 978 | wxListItem_SetAlign(_arg0,_arg1); |
f6bcfd97 | 979 | |
4268f798 | 980 | wxPyEndAllowThreads(__tstate); |
493f1553 | 981 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
982 | } Py_INCREF(Py_None); |
983 | _resultobj = Py_None; | |
984 | return _resultobj; | |
985 | } | |
986 | ||
987 | #define wxListItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
988 | static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
989 | PyObject * _resultobj; | |
990 | wxListItem * _arg0; | |
991 | wxColour * _arg1; | |
992 | PyObject * _argo0 = 0; | |
993 | wxColour temp; | |
994 | PyObject * _obj1 = 0; | |
995 | char *_kwnames[] = { "self","colText", NULL }; | |
996 | ||
997 | self = self; | |
998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
999 | return NULL; | |
1000 | if (_argo0) { | |
1001 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1002 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetTextColour. Expected _wxListItem_p."); | |
1004 | return NULL; | |
1005 | } | |
1006 | } | |
1007 | { | |
1008 | _arg1 = &temp; | |
1009 | if (! wxColour_helper(_obj1, &_arg1)) | |
1010 | return NULL; | |
1011 | } | |
1012 | { | |
4268f798 | 1013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1014 | wxListItem_SetTextColour(_arg0,*_arg1); |
f6bcfd97 | 1015 | |
4268f798 | 1016 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1017 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1018 | } Py_INCREF(Py_None); |
1019 | _resultobj = Py_None; | |
1020 | return _resultobj; | |
1021 | } | |
1022 | ||
1023 | #define wxListItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
1024 | static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1025 | PyObject * _resultobj; | |
1026 | wxListItem * _arg0; | |
1027 | wxColour * _arg1; | |
1028 | PyObject * _argo0 = 0; | |
1029 | wxColour temp; | |
1030 | PyObject * _obj1 = 0; | |
1031 | char *_kwnames[] = { "self","colBack", NULL }; | |
1032 | ||
1033 | self = self; | |
1034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
1035 | return NULL; | |
1036 | if (_argo0) { | |
1037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetBackgroundColour. Expected _wxListItem_p."); | |
1040 | return NULL; | |
1041 | } | |
1042 | } | |
1043 | { | |
1044 | _arg1 = &temp; | |
1045 | if (! wxColour_helper(_obj1, &_arg1)) | |
1046 | return NULL; | |
1047 | } | |
1048 | { | |
4268f798 | 1049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1050 | wxListItem_SetBackgroundColour(_arg0,*_arg1); |
f6bcfd97 | 1051 | |
4268f798 | 1052 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1053 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1054 | } Py_INCREF(Py_None); |
1055 | _resultobj = Py_None; | |
1056 | return _resultobj; | |
1057 | } | |
1058 | ||
1059 | #define wxListItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1060 | static PyObject *_wrap_wxListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1061 | PyObject * _resultobj; | |
1062 | wxListItem * _arg0; | |
1063 | wxFont * _arg1; | |
1064 | PyObject * _argo0 = 0; | |
1065 | PyObject * _argo1 = 0; | |
1066 | char *_kwnames[] = { "self","font", NULL }; | |
1067 | ||
1068 | self = self; | |
1069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
1070 | return NULL; | |
1071 | if (_argo0) { | |
1072 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetFont. Expected _wxListItem_p."); | |
1075 | return NULL; | |
1076 | } | |
1077 | } | |
1078 | if (_argo1) { | |
7e50db3f | 1079 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { |
f6bcfd97 BP |
1080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetFont. Expected _wxFont_p."); |
1081 | return NULL; | |
1082 | } | |
1083 | } | |
1084 | { | |
4268f798 | 1085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1086 | wxListItem_SetFont(_arg0,*_arg1); |
f6bcfd97 | 1087 | |
4268f798 | 1088 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1089 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1090 | } Py_INCREF(Py_None); |
1091 | _resultobj = Py_None; | |
1092 | return _resultobj; | |
1093 | } | |
1094 | ||
1095 | #define wxListItem_GetMask(_swigobj) (_swigobj->GetMask()) | |
1096 | static PyObject *_wrap_wxListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1097 | PyObject * _resultobj; | |
1098 | long _result; | |
1099 | wxListItem * _arg0; | |
1100 | PyObject * _argo0 = 0; | |
1101 | char *_kwnames[] = { "self", NULL }; | |
1102 | ||
1103 | self = self; | |
1104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetMask",_kwnames,&_argo0)) | |
1105 | return NULL; | |
1106 | if (_argo0) { | |
1107 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1108 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetMask. Expected _wxListItem_p."); | |
1110 | return NULL; | |
1111 | } | |
1112 | } | |
1113 | { | |
4268f798 | 1114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1115 | _result = (long )wxListItem_GetMask(_arg0); |
f6bcfd97 | 1116 | |
4268f798 | 1117 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1118 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1119 | } _resultobj = Py_BuildValue("l",_result); |
1120 | return _resultobj; | |
1121 | } | |
1122 | ||
1123 | #define wxListItem_GetId(_swigobj) (_swigobj->GetId()) | |
1124 | static PyObject *_wrap_wxListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1125 | PyObject * _resultobj; | |
1126 | long _result; | |
1127 | wxListItem * _arg0; | |
1128 | PyObject * _argo0 = 0; | |
1129 | char *_kwnames[] = { "self", NULL }; | |
1130 | ||
1131 | self = self; | |
1132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetId",_kwnames,&_argo0)) | |
1133 | return NULL; | |
1134 | if (_argo0) { | |
1135 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1136 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetId. Expected _wxListItem_p."); | |
1138 | return NULL; | |
1139 | } | |
1140 | } | |
1141 | { | |
4268f798 | 1142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1143 | _result = (long )wxListItem_GetId(_arg0); |
f6bcfd97 | 1144 | |
4268f798 | 1145 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1146 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1147 | } _resultobj = Py_BuildValue("l",_result); |
1148 | return _resultobj; | |
1149 | } | |
1150 | ||
1151 | #define wxListItem_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
1152 | static PyObject *_wrap_wxListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1153 | PyObject * _resultobj; | |
1154 | int _result; | |
1155 | wxListItem * _arg0; | |
1156 | PyObject * _argo0 = 0; | |
1157 | char *_kwnames[] = { "self", NULL }; | |
1158 | ||
1159 | self = self; | |
1160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetColumn",_kwnames,&_argo0)) | |
1161 | return NULL; | |
1162 | if (_argo0) { | |
1163 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1164 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetColumn. Expected _wxListItem_p."); | |
1166 | return NULL; | |
1167 | } | |
1168 | } | |
1169 | { | |
4268f798 | 1170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1171 | _result = (int )wxListItem_GetColumn(_arg0); |
f6bcfd97 | 1172 | |
4268f798 | 1173 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1174 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1175 | } _resultobj = Py_BuildValue("i",_result); |
1176 | return _resultobj; | |
1177 | } | |
1178 | ||
1179 | #define wxListItem_GetState(_swigobj) (_swigobj->GetState()) | |
1180 | static PyObject *_wrap_wxListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1181 | PyObject * _resultobj; | |
1182 | long _result; | |
1183 | wxListItem * _arg0; | |
1184 | PyObject * _argo0 = 0; | |
1185 | char *_kwnames[] = { "self", NULL }; | |
1186 | ||
1187 | self = self; | |
1188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetState",_kwnames,&_argo0)) | |
1189 | return NULL; | |
1190 | if (_argo0) { | |
1191 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1192 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetState. Expected _wxListItem_p."); | |
1194 | return NULL; | |
1195 | } | |
1196 | } | |
1197 | { | |
4268f798 | 1198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1199 | _result = (long )wxListItem_GetState(_arg0); |
f6bcfd97 | 1200 | |
4268f798 | 1201 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1202 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1203 | } _resultobj = Py_BuildValue("l",_result); |
1204 | return _resultobj; | |
1205 | } | |
1206 | ||
1207 | #define wxListItem_GetText(_swigobj) (_swigobj->GetText()) | |
1208 | static PyObject *_wrap_wxListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1209 | PyObject * _resultobj; | |
1210 | wxString * _result; | |
1211 | wxListItem * _arg0; | |
1212 | PyObject * _argo0 = 0; | |
1213 | char *_kwnames[] = { "self", NULL }; | |
1214 | ||
1215 | self = self; | |
1216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetText",_kwnames,&_argo0)) | |
1217 | return NULL; | |
1218 | if (_argo0) { | |
1219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetText. Expected _wxListItem_p."); | |
1222 | return NULL; | |
1223 | } | |
1224 | } | |
1225 | { | |
4268f798 | 1226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1227 | const wxString & _result_ref = wxListItem_GetText(_arg0); |
f6bcfd97 BP |
1228 | _result = (wxString *) &_result_ref; |
1229 | ||
4268f798 | 1230 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1231 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1232 | }{ |
c8bc7bb8 | 1233 | #if wxUSE_UNICODE |
7e50db3f | 1234 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1235 | #else |
f6bcfd97 | 1236 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1237 | #endif |
f6bcfd97 BP |
1238 | } |
1239 | return _resultobj; | |
1240 | } | |
1241 | ||
1242 | #define wxListItem_GetImage(_swigobj) (_swigobj->GetImage()) | |
1243 | static PyObject *_wrap_wxListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1244 | PyObject * _resultobj; | |
1245 | int _result; | |
1246 | wxListItem * _arg0; | |
1247 | PyObject * _argo0 = 0; | |
1248 | char *_kwnames[] = { "self", NULL }; | |
1249 | ||
1250 | self = self; | |
1251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetImage",_kwnames,&_argo0)) | |
1252 | return NULL; | |
1253 | if (_argo0) { | |
1254 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1255 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetImage. Expected _wxListItem_p."); | |
1257 | return NULL; | |
1258 | } | |
1259 | } | |
1260 | { | |
4268f798 | 1261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1262 | _result = (int )wxListItem_GetImage(_arg0); |
f6bcfd97 | 1263 | |
4268f798 | 1264 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1265 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1266 | } _resultobj = Py_BuildValue("i",_result); |
1267 | return _resultobj; | |
1268 | } | |
1269 | ||
1270 | #define wxListItem_GetData(_swigobj) (_swigobj->GetData()) | |
1271 | static PyObject *_wrap_wxListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1272 | PyObject * _resultobj; | |
1273 | long _result; | |
1274 | wxListItem * _arg0; | |
1275 | PyObject * _argo0 = 0; | |
1276 | char *_kwnames[] = { "self", NULL }; | |
1277 | ||
1278 | self = self; | |
1279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetData",_kwnames,&_argo0)) | |
1280 | return NULL; | |
1281 | if (_argo0) { | |
1282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetData. Expected _wxListItem_p."); | |
1285 | return NULL; | |
1286 | } | |
1287 | } | |
1288 | { | |
4268f798 | 1289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1290 | _result = (long )wxListItem_GetData(_arg0); |
f6bcfd97 | 1291 | |
4268f798 | 1292 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1293 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1294 | } _resultobj = Py_BuildValue("l",_result); |
1295 | return _resultobj; | |
1296 | } | |
1297 | ||
1298 | #define wxListItem_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1299 | static PyObject *_wrap_wxListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1300 | PyObject * _resultobj; | |
1301 | int _result; | |
1302 | wxListItem * _arg0; | |
1303 | PyObject * _argo0 = 0; | |
1304 | char *_kwnames[] = { "self", NULL }; | |
1305 | ||
1306 | self = self; | |
1307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetWidth",_kwnames,&_argo0)) | |
1308 | return NULL; | |
1309 | if (_argo0) { | |
1310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetWidth. Expected _wxListItem_p."); | |
1313 | return NULL; | |
1314 | } | |
1315 | } | |
1316 | { | |
4268f798 | 1317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1318 | _result = (int )wxListItem_GetWidth(_arg0); |
f6bcfd97 | 1319 | |
4268f798 | 1320 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1321 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1322 | } _resultobj = Py_BuildValue("i",_result); |
1323 | return _resultobj; | |
1324 | } | |
1325 | ||
1326 | #define wxListItem_GetAlign(_swigobj) (_swigobj->GetAlign()) | |
1327 | static PyObject *_wrap_wxListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1328 | PyObject * _resultobj; | |
1329 | wxListColumnFormat _result; | |
1330 | wxListItem * _arg0; | |
1331 | PyObject * _argo0 = 0; | |
1332 | char *_kwnames[] = { "self", NULL }; | |
1333 | ||
1334 | self = self; | |
1335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAlign",_kwnames,&_argo0)) | |
1336 | return NULL; | |
1337 | if (_argo0) { | |
1338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAlign. Expected _wxListItem_p."); | |
1341 | return NULL; | |
1342 | } | |
1343 | } | |
1344 | { | |
4268f798 | 1345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1346 | _result = (wxListColumnFormat )wxListItem_GetAlign(_arg0); |
f6bcfd97 | 1347 | |
4268f798 | 1348 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1349 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1350 | } _resultobj = Py_BuildValue("i",_result); |
1351 | return _resultobj; | |
1352 | } | |
1353 | ||
1354 | #define wxListItem_GetAttributes(_swigobj) (_swigobj->GetAttributes()) | |
1355 | static PyObject *_wrap_wxListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1356 | PyObject * _resultobj; | |
1357 | wxListItemAttr * _result; | |
1358 | wxListItem * _arg0; | |
1359 | PyObject * _argo0 = 0; | |
1360 | char *_kwnames[] = { "self", NULL }; | |
1361 | char _ptemp[128]; | |
1362 | ||
1363 | self = self; | |
1364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAttributes",_kwnames,&_argo0)) | |
1365 | return NULL; | |
1366 | if (_argo0) { | |
1367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAttributes. Expected _wxListItem_p."); | |
1370 | return NULL; | |
1371 | } | |
1372 | } | |
1373 | { | |
4268f798 | 1374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1375 | _result = (wxListItemAttr *)wxListItem_GetAttributes(_arg0); |
f6bcfd97 | 1376 | |
4268f798 | 1377 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1378 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1379 | } if (_result) { |
1380 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
1381 | _resultobj = Py_BuildValue("s",_ptemp); | |
1382 | } else { | |
1383 | Py_INCREF(Py_None); | |
1384 | _resultobj = Py_None; | |
1385 | } | |
1386 | return _resultobj; | |
1387 | } | |
1388 | ||
1389 | #define wxListItem_HasAttributes(_swigobj) (_swigobj->HasAttributes()) | |
1390 | static PyObject *_wrap_wxListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1391 | PyObject * _resultobj; | |
1392 | bool _result; | |
1393 | wxListItem * _arg0; | |
1394 | PyObject * _argo0 = 0; | |
1395 | char *_kwnames[] = { "self", NULL }; | |
1396 | ||
1397 | self = self; | |
1398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_HasAttributes",_kwnames,&_argo0)) | |
1399 | return NULL; | |
1400 | if (_argo0) { | |
1401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_HasAttributes. Expected _wxListItem_p."); | |
1404 | return NULL; | |
1405 | } | |
1406 | } | |
1407 | { | |
4268f798 | 1408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1409 | _result = (bool )wxListItem_HasAttributes(_arg0); |
f6bcfd97 | 1410 | |
4268f798 | 1411 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1412 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1413 | } _resultobj = Py_BuildValue("i",_result); |
1414 | return _resultobj; | |
1415 | } | |
1416 | ||
1417 | #define wxListItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
1418 | static PyObject *_wrap_wxListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1419 | PyObject * _resultobj; | |
1420 | wxColour * _result; | |
1421 | wxListItem * _arg0; | |
1422 | PyObject * _argo0 = 0; | |
1423 | char *_kwnames[] = { "self", NULL }; | |
1424 | char _ptemp[128]; | |
1425 | ||
1426 | self = self; | |
1427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetTextColour",_kwnames,&_argo0)) | |
1428 | return NULL; | |
1429 | if (_argo0) { | |
1430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetTextColour. Expected _wxListItem_p."); | |
1433 | return NULL; | |
1434 | } | |
1435 | } | |
1436 | { | |
4268f798 | 1437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1438 | _result = new wxColour (wxListItem_GetTextColour(_arg0)); |
f6bcfd97 | 1439 | |
4268f798 | 1440 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1441 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1442 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1443 | _resultobj = Py_BuildValue("s",_ptemp); | |
1444 | return _resultobj; | |
1445 | } | |
1446 | ||
1447 | #define wxListItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1448 | static PyObject *_wrap_wxListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1449 | PyObject * _resultobj; | |
1450 | wxColour * _result; | |
1451 | wxListItem * _arg0; | |
1452 | PyObject * _argo0 = 0; | |
1453 | char *_kwnames[] = { "self", NULL }; | |
1454 | char _ptemp[128]; | |
1455 | ||
1456 | self = self; | |
1457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetBackgroundColour",_kwnames,&_argo0)) | |
1458 | return NULL; | |
1459 | if (_argo0) { | |
1460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetBackgroundColour. Expected _wxListItem_p."); | |
1463 | return NULL; | |
1464 | } | |
1465 | } | |
1466 | { | |
4268f798 | 1467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1468 | _result = new wxColour (wxListItem_GetBackgroundColour(_arg0)); |
f6bcfd97 | 1469 | |
4268f798 | 1470 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1471 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1472 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1473 | _resultobj = Py_BuildValue("s",_ptemp); | |
1474 | return _resultobj; | |
1475 | } | |
1476 | ||
1477 | #define wxListItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
1478 | static PyObject *_wrap_wxListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1479 | PyObject * _resultobj; | |
1480 | wxFont * _result; | |
1481 | wxListItem * _arg0; | |
1482 | PyObject * _argo0 = 0; | |
1483 | char *_kwnames[] = { "self", NULL }; | |
1484 | char _ptemp[128]; | |
1485 | ||
1486 | self = self; | |
1487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetFont",_kwnames,&_argo0)) | |
1488 | return NULL; | |
1489 | if (_argo0) { | |
1490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetFont. Expected _wxListItem_p."); | |
1493 | return NULL; | |
1494 | } | |
1495 | } | |
1496 | { | |
4268f798 | 1497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1498 | _result = new wxFont (wxListItem_GetFont(_arg0)); |
f6bcfd97 | 1499 | |
4268f798 | 1500 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1501 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1502 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
1503 | _resultobj = Py_BuildValue("s",_ptemp); | |
1504 | return _resultobj; | |
1505 | } | |
1506 | ||
1507 | #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval) | |
1508 | static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1509 | PyObject * _resultobj; | |
1510 | long _result; | |
1511 | wxListItem * _arg0; | |
1512 | long _arg1; | |
1513 | PyObject * _argo0 = 0; | |
1514 | char *_kwnames[] = { "self","m_mask", NULL }; | |
1515 | ||
1516 | self = self; | |
1517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1)) | |
1518 | return NULL; | |
1519 | if (_argo0) { | |
1520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p."); | |
1523 | return NULL; | |
1524 | } | |
1525 | } | |
1526 | { | |
4268f798 | 1527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1528 | _result = (long )wxListItem_m_mask_set(_arg0,_arg1); |
f6bcfd97 | 1529 | |
4268f798 | 1530 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1531 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1532 | } _resultobj = Py_BuildValue("l",_result); |
1533 | return _resultobj; | |
1534 | } | |
1535 | ||
1536 | #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask) | |
1537 | static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1538 | PyObject * _resultobj; | |
1539 | long _result; | |
1540 | wxListItem * _arg0; | |
1541 | PyObject * _argo0 = 0; | |
1542 | char *_kwnames[] = { "self", NULL }; | |
1543 | ||
1544 | self = self; | |
1545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0)) | |
1546 | return NULL; | |
1547 | if (_argo0) { | |
1548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p."); | |
1551 | return NULL; | |
1552 | } | |
1553 | } | |
1554 | { | |
4268f798 | 1555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1556 | _result = (long )wxListItem_m_mask_get(_arg0); |
f6bcfd97 | 1557 | |
4268f798 | 1558 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1559 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1560 | } _resultobj = Py_BuildValue("l",_result); |
1561 | return _resultobj; | |
1562 | } | |
1563 | ||
1564 | #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval) | |
1565 | static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1566 | PyObject * _resultobj; | |
1567 | long _result; | |
1568 | wxListItem * _arg0; | |
1569 | long _arg1; | |
1570 | PyObject * _argo0 = 0; | |
1571 | char *_kwnames[] = { "self","m_itemId", NULL }; | |
1572 | ||
1573 | self = self; | |
1574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1)) | |
1575 | return NULL; | |
1576 | if (_argo0) { | |
1577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p."); | |
1580 | return NULL; | |
1581 | } | |
1582 | } | |
1583 | { | |
4268f798 | 1584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1585 | _result = (long )wxListItem_m_itemId_set(_arg0,_arg1); |
f6bcfd97 | 1586 | |
4268f798 | 1587 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1588 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1589 | } _resultobj = Py_BuildValue("l",_result); |
1590 | return _resultobj; | |
1591 | } | |
1592 | ||
1593 | #define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId) | |
1594 | static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1595 | PyObject * _resultobj; | |
1596 | long _result; | |
1597 | wxListItem * _arg0; | |
1598 | PyObject * _argo0 = 0; | |
1599 | char *_kwnames[] = { "self", NULL }; | |
1600 | ||
1601 | self = self; | |
1602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0)) | |
1603 | return NULL; | |
1604 | if (_argo0) { | |
1605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p."); | |
1608 | return NULL; | |
1609 | } | |
1610 | } | |
1611 | { | |
4268f798 | 1612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1613 | _result = (long )wxListItem_m_itemId_get(_arg0); |
f6bcfd97 | 1614 | |
4268f798 | 1615 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1616 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1617 | } _resultobj = Py_BuildValue("l",_result); |
1618 | return _resultobj; | |
1619 | } | |
1620 | ||
1621 | #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
1622 | static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1623 | PyObject * _resultobj; | |
1624 | int _result; | |
1625 | wxListItem * _arg0; | |
1626 | int _arg1; | |
1627 | PyObject * _argo0 = 0; | |
1628 | char *_kwnames[] = { "self","m_col", NULL }; | |
1629 | ||
1630 | self = self; | |
1631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1)) | |
1632 | return NULL; | |
1633 | if (_argo0) { | |
1634 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1635 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p."); | |
1637 | return NULL; | |
1638 | } | |
1639 | } | |
1640 | { | |
4268f798 | 1641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1642 | _result = (int )wxListItem_m_col_set(_arg0,_arg1); |
f6bcfd97 | 1643 | |
4268f798 | 1644 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1645 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1646 | } _resultobj = Py_BuildValue("i",_result); |
1647 | return _resultobj; | |
1648 | } | |
1649 | ||
1650 | #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
1651 | static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1652 | PyObject * _resultobj; | |
1653 | int _result; | |
1654 | wxListItem * _arg0; | |
1655 | PyObject * _argo0 = 0; | |
1656 | char *_kwnames[] = { "self", NULL }; | |
1657 | ||
1658 | self = self; | |
1659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0)) | |
1660 | return NULL; | |
1661 | if (_argo0) { | |
1662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p."); | |
1665 | return NULL; | |
1666 | } | |
1667 | } | |
1668 | { | |
4268f798 | 1669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1670 | _result = (int )wxListItem_m_col_get(_arg0); |
f6bcfd97 | 1671 | |
4268f798 | 1672 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1673 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1674 | } _resultobj = Py_BuildValue("i",_result); |
1675 | return _resultobj; | |
1676 | } | |
1677 | ||
1678 | #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval) | |
1679 | static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1680 | PyObject * _resultobj; | |
1681 | long _result; | |
1682 | wxListItem * _arg0; | |
1683 | long _arg1; | |
1684 | PyObject * _argo0 = 0; | |
1685 | char *_kwnames[] = { "self","m_state", NULL }; | |
1686 | ||
1687 | self = self; | |
1688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1)) | |
1689 | return NULL; | |
1690 | if (_argo0) { | |
1691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p."); | |
1694 | return NULL; | |
1695 | } | |
1696 | } | |
1697 | { | |
4268f798 | 1698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1699 | _result = (long )wxListItem_m_state_set(_arg0,_arg1); |
f6bcfd97 | 1700 | |
4268f798 | 1701 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1702 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1703 | } _resultobj = Py_BuildValue("l",_result); |
1704 | return _resultobj; | |
1705 | } | |
1706 | ||
1707 | #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state) | |
1708 | static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1709 | PyObject * _resultobj; | |
1710 | long _result; | |
1711 | wxListItem * _arg0; | |
1712 | PyObject * _argo0 = 0; | |
1713 | char *_kwnames[] = { "self", NULL }; | |
1714 | ||
1715 | self = self; | |
1716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0)) | |
1717 | return NULL; | |
1718 | if (_argo0) { | |
1719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p."); | |
1722 | return NULL; | |
1723 | } | |
1724 | } | |
1725 | { | |
4268f798 | 1726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1727 | _result = (long )wxListItem_m_state_get(_arg0); |
f6bcfd97 | 1728 | |
4268f798 | 1729 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1730 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1731 | } _resultobj = Py_BuildValue("l",_result); |
1732 | return _resultobj; | |
1733 | } | |
1734 | ||
1735 | #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval) | |
1736 | static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1737 | PyObject * _resultobj; | |
1738 | long _result; | |
1739 | wxListItem * _arg0; | |
1740 | long _arg1; | |
1741 | PyObject * _argo0 = 0; | |
1742 | char *_kwnames[] = { "self","m_stateMask", NULL }; | |
1743 | ||
1744 | self = self; | |
1745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1)) | |
1746 | return NULL; | |
1747 | if (_argo0) { | |
1748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p."); | |
1751 | return NULL; | |
1752 | } | |
1753 | } | |
1754 | { | |
4268f798 | 1755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1756 | _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1); |
f6bcfd97 | 1757 | |
4268f798 | 1758 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1759 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1760 | } _resultobj = Py_BuildValue("l",_result); |
1761 | return _resultobj; | |
1762 | } | |
1763 | ||
1764 | #define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask) | |
1765 | static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1766 | PyObject * _resultobj; | |
1767 | long _result; | |
1768 | wxListItem * _arg0; | |
1769 | PyObject * _argo0 = 0; | |
1770 | char *_kwnames[] = { "self", NULL }; | |
1771 | ||
1772 | self = self; | |
1773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0)) | |
1774 | return NULL; | |
1775 | if (_argo0) { | |
1776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p."); | |
1779 | return NULL; | |
1780 | } | |
1781 | } | |
1782 | { | |
4268f798 | 1783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1784 | _result = (long )wxListItem_m_stateMask_get(_arg0); |
f6bcfd97 | 1785 | |
4268f798 | 1786 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1787 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1788 | } _resultobj = Py_BuildValue("l",_result); |
1789 | return _resultobj; | |
1790 | } | |
1791 | ||
1792 | #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval) | |
1793 | static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1794 | PyObject * _resultobj; | |
1795 | wxString * _result; | |
1796 | wxListItem * _arg0; | |
1797 | wxString * _arg1; | |
1798 | PyObject * _argo0 = 0; | |
1799 | PyObject * _obj1 = 0; | |
1800 | char *_kwnames[] = { "self","m_text", NULL }; | |
1801 | ||
1802 | self = self; | |
1803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1)) | |
1804 | return NULL; | |
1805 | if (_argo0) { | |
1806 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1807 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p."); | |
1809 | return NULL; | |
1810 | } | |
1811 | } | |
1812 | { | |
c8bc7bb8 RD |
1813 | _arg1 = wxString_in_helper(_obj1); |
1814 | if (_arg1 == NULL) | |
f6bcfd97 | 1815 | return NULL; |
f6bcfd97 BP |
1816 | } |
1817 | { | |
4268f798 | 1818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1819 | _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1); |
f6bcfd97 | 1820 | |
4268f798 | 1821 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1822 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1823 | }{ |
c8bc7bb8 | 1824 | #if wxUSE_UNICODE |
7e50db3f | 1825 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1826 | #else |
f6bcfd97 | 1827 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1828 | #endif |
f6bcfd97 BP |
1829 | } |
1830 | { | |
1831 | if (_obj1) | |
1832 | delete _arg1; | |
1833 | } | |
1834 | return _resultobj; | |
1835 | } | |
1836 | ||
1837 | #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text) | |
1838 | static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1839 | PyObject * _resultobj; | |
1840 | wxString * _result; | |
1841 | wxListItem * _arg0; | |
1842 | PyObject * _argo0 = 0; | |
1843 | char *_kwnames[] = { "self", NULL }; | |
1844 | ||
1845 | self = self; | |
1846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0)) | |
1847 | return NULL; | |
1848 | if (_argo0) { | |
1849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p."); | |
1852 | return NULL; | |
1853 | } | |
1854 | } | |
1855 | { | |
4268f798 | 1856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1857 | _result = (wxString *)wxListItem_m_text_get(_arg0); |
f6bcfd97 | 1858 | |
4268f798 | 1859 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1860 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1861 | }{ |
c8bc7bb8 | 1862 | #if wxUSE_UNICODE |
7e50db3f | 1863 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1864 | #else |
f6bcfd97 | 1865 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1866 | #endif |
f6bcfd97 BP |
1867 | } |
1868 | return _resultobj; | |
1869 | } | |
1870 | ||
1871 | #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval) | |
1872 | static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1873 | PyObject * _resultobj; | |
1874 | int _result; | |
1875 | wxListItem * _arg0; | |
1876 | int _arg1; | |
1877 | PyObject * _argo0 = 0; | |
1878 | char *_kwnames[] = { "self","m_image", NULL }; | |
1879 | ||
1880 | self = self; | |
1881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1)) | |
1882 | return NULL; | |
1883 | if (_argo0) { | |
1884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p."); | |
1887 | return NULL; | |
1888 | } | |
1889 | } | |
1890 | { | |
4268f798 | 1891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1892 | _result = (int )wxListItem_m_image_set(_arg0,_arg1); |
f6bcfd97 | 1893 | |
4268f798 | 1894 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1895 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1896 | } _resultobj = Py_BuildValue("i",_result); |
1897 | return _resultobj; | |
1898 | } | |
1899 | ||
1900 | #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image) | |
1901 | static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1902 | PyObject * _resultobj; | |
1903 | int _result; | |
1904 | wxListItem * _arg0; | |
1905 | PyObject * _argo0 = 0; | |
1906 | char *_kwnames[] = { "self", NULL }; | |
1907 | ||
1908 | self = self; | |
1909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0)) | |
1910 | return NULL; | |
1911 | if (_argo0) { | |
1912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p."); | |
1915 | return NULL; | |
1916 | } | |
1917 | } | |
1918 | { | |
4268f798 | 1919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1920 | _result = (int )wxListItem_m_image_get(_arg0); |
f6bcfd97 | 1921 | |
4268f798 | 1922 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1923 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1924 | } _resultobj = Py_BuildValue("i",_result); |
1925 | return _resultobj; | |
1926 | } | |
1927 | ||
1928 | #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval) | |
1929 | static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1930 | PyObject * _resultobj; | |
1931 | long _result; | |
1932 | wxListItem * _arg0; | |
1933 | long _arg1; | |
1934 | PyObject * _argo0 = 0; | |
1935 | char *_kwnames[] = { "self","m_data", NULL }; | |
1936 | ||
1937 | self = self; | |
1938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1)) | |
1939 | return NULL; | |
1940 | if (_argo0) { | |
1941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p."); | |
1944 | return NULL; | |
1945 | } | |
1946 | } | |
1947 | { | |
4268f798 | 1948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1949 | _result = (long )wxListItem_m_data_set(_arg0,_arg1); |
f6bcfd97 | 1950 | |
4268f798 | 1951 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1952 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1953 | } _resultobj = Py_BuildValue("l",_result); |
1954 | return _resultobj; | |
1955 | } | |
1956 | ||
1957 | #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data) | |
1958 | static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1959 | PyObject * _resultobj; | |
1960 | long _result; | |
1961 | wxListItem * _arg0; | |
1962 | PyObject * _argo0 = 0; | |
1963 | char *_kwnames[] = { "self", NULL }; | |
1964 | ||
1965 | self = self; | |
1966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0)) | |
1967 | return NULL; | |
1968 | if (_argo0) { | |
1969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p."); | |
1972 | return NULL; | |
1973 | } | |
1974 | } | |
1975 | { | |
4268f798 | 1976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1977 | _result = (long )wxListItem_m_data_get(_arg0); |
f6bcfd97 | 1978 | |
4268f798 | 1979 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1980 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1981 | } _resultobj = Py_BuildValue("l",_result); |
1982 | return _resultobj; | |
1983 | } | |
1984 | ||
1985 | #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval) | |
1986 | static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1987 | PyObject * _resultobj; | |
1988 | int _result; | |
1989 | wxListItem * _arg0; | |
1990 | int _arg1; | |
1991 | PyObject * _argo0 = 0; | |
1992 | char *_kwnames[] = { "self","m_format", NULL }; | |
1993 | ||
1994 | self = self; | |
1995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1)) | |
1996 | return NULL; | |
1997 | if (_argo0) { | |
1998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
2000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p."); | |
2001 | return NULL; | |
2002 | } | |
2003 | } | |
2004 | { | |
4268f798 | 2005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2006 | _result = (int )wxListItem_m_format_set(_arg0,_arg1); |
f6bcfd97 | 2007 | |
4268f798 | 2008 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2009 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2010 | } _resultobj = Py_BuildValue("i",_result); |
2011 | return _resultobj; | |
2012 | } | |
2013 | ||
2014 | #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format) | |
2015 | static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2016 | PyObject * _resultobj; | |
2017 | int _result; | |
2018 | wxListItem * _arg0; | |
2019 | PyObject * _argo0 = 0; | |
2020 | char *_kwnames[] = { "self", NULL }; | |
2021 | ||
2022 | self = self; | |
2023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0)) | |
2024 | return NULL; | |
2025 | if (_argo0) { | |
2026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
2028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p."); | |
2029 | return NULL; | |
2030 | } | |
2031 | } | |
2032 | { | |
4268f798 | 2033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2034 | _result = (int )wxListItem_m_format_get(_arg0); |
f6bcfd97 | 2035 | |
4268f798 | 2036 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2037 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2038 | } _resultobj = Py_BuildValue("i",_result); |
2039 | return _resultobj; | |
8ab979d7 RD |
2040 | } |
2041 | ||
f6bcfd97 BP |
2042 | #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval) |
2043 | static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2044 | PyObject * _resultobj; |
f6bcfd97 | 2045 | int _result; |
af309447 | 2046 | wxListItem * _arg0; |
f6bcfd97 | 2047 | int _arg1; |
1d99702e | 2048 | PyObject * _argo0 = 0; |
f6bcfd97 | 2049 | char *_kwnames[] = { "self","m_width", NULL }; |
af309447 RD |
2050 | |
2051 | self = self; | |
f6bcfd97 | 2052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2053 | return NULL; |
1d99702e RD |
2054 | if (_argo0) { |
2055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p."); |
af309447 RD |
2058 | return NULL; |
2059 | } | |
2060 | } | |
cf694132 | 2061 | { |
4268f798 | 2062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2063 | _result = (int )wxListItem_m_width_set(_arg0,_arg1); |
cf694132 | 2064 | |
4268f798 | 2065 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2066 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2067 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2068 | return _resultobj; |
2069 | } | |
2070 | ||
f6bcfd97 BP |
2071 | #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width) |
2072 | static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2073 | PyObject * _resultobj; |
f6bcfd97 | 2074 | int _result; |
8ab979d7 | 2075 | wxListItem * _arg0; |
1d99702e | 2076 | PyObject * _argo0 = 0; |
efc5f224 | 2077 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2078 | |
2079 | self = self; | |
f6bcfd97 | 2080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0)) |
8ab979d7 | 2081 | return NULL; |
1d99702e RD |
2082 | if (_argo0) { |
2083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 BP |
2085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p."); |
2086 | return NULL; | |
2087 | } | |
2088 | } | |
2089 | { | |
4268f798 | 2090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2091 | _result = (int )wxListItem_m_width_get(_arg0); |
f6bcfd97 | 2092 | |
4268f798 | 2093 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2094 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2095 | } _resultobj = Py_BuildValue("i",_result); |
2096 | return _resultobj; | |
2097 | } | |
2098 | ||
c368d904 RD |
2099 | static void *SwigwxListEventTowxNotifyEvent(void *ptr) { |
2100 | wxListEvent *src; | |
2101 | wxNotifyEvent *dest; | |
2102 | src = (wxListEvent *) ptr; | |
2103 | dest = (wxNotifyEvent *) src; | |
2104 | return (void *) dest; | |
2105 | } | |
2106 | ||
f6bcfd97 BP |
2107 | static void *SwigwxListEventTowxCommandEvent(void *ptr) { |
2108 | wxListEvent *src; | |
2109 | wxCommandEvent *dest; | |
2110 | src = (wxListEvent *) ptr; | |
2111 | dest = (wxCommandEvent *) src; | |
2112 | return (void *) dest; | |
2113 | } | |
2114 | ||
2115 | static void *SwigwxListEventTowxEvent(void *ptr) { | |
2116 | wxListEvent *src; | |
2117 | wxEvent *dest; | |
2118 | src = (wxListEvent *) ptr; | |
2119 | dest = (wxEvent *) src; | |
2120 | return (void *) dest; | |
2121 | } | |
2122 | ||
9416aa89 RD |
2123 | static void *SwigwxListEventTowxObject(void *ptr) { |
2124 | wxListEvent *src; | |
2125 | wxObject *dest; | |
2126 | src = (wxListEvent *) ptr; | |
2127 | dest = (wxObject *) src; | |
2128 | return (void *) dest; | |
2129 | } | |
2130 | ||
6d19860f RD |
2131 | #define new_wxListEvent(_swigarg0,_swigarg1) (new wxListEvent(_swigarg0,_swigarg1)) |
2132 | static PyObject *_wrap_new_wxListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2133 | PyObject * _resultobj; | |
2134 | wxListEvent * _result; | |
2135 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
2136 | int _arg1 = (int ) 0; | |
2137 | char *_kwnames[] = { "commandType","id", NULL }; | |
2138 | char _ptemp[128]; | |
2139 | ||
2140 | self = self; | |
2141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxListEvent",_kwnames,&_arg0,&_arg1)) | |
2142 | return NULL; | |
2143 | { | |
4268f798 | 2144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2145 | _result = (wxListEvent *)new_wxListEvent(_arg0,_arg1); |
6d19860f | 2146 | |
4268f798 | 2147 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
2148 | if (PyErr_Occurred()) return NULL; |
2149 | } if (_result) { | |
2150 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListEvent_p"); | |
2151 | _resultobj = Py_BuildValue("s",_ptemp); | |
2152 | } else { | |
2153 | Py_INCREF(Py_None); | |
2154 | _resultobj = Py_None; | |
2155 | } | |
2156 | return _resultobj; | |
2157 | } | |
2158 | ||
f6bcfd97 BP |
2159 | #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code) |
2160 | static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2161 | PyObject * _resultobj; | |
2162 | int _result; | |
2163 | wxListEvent * _arg0; | |
2164 | PyObject * _argo0 = 0; | |
2165 | char *_kwnames[] = { "self", NULL }; | |
2166 | ||
2167 | self = self; | |
2168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0)) | |
2169 | return NULL; | |
2170 | if (_argo0) { | |
2171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_get. Expected _wxListEvent_p."); | |
2174 | return NULL; | |
2175 | } | |
2176 | } | |
2177 | { | |
4268f798 | 2178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2179 | _result = (int )wxListEvent_m_code_get(_arg0); |
f6bcfd97 | 2180 | |
4268f798 | 2181 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2182 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2183 | } _resultobj = Py_BuildValue("i",_result); |
2184 | return _resultobj; | |
2185 | } | |
2186 | ||
ebf4302c RD |
2187 | #define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex) |
2188 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 BP |
2189 | PyObject * _resultobj; |
2190 | long _result; | |
2191 | wxListEvent * _arg0; | |
2192 | PyObject * _argo0 = 0; | |
2193 | char *_kwnames[] = { "self", NULL }; | |
2194 | ||
2195 | self = self; | |
ebf4302c | 2196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0)) |
f6bcfd97 BP |
2197 | return NULL; |
2198 | if (_argo0) { | |
2199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
ebf4302c | 2201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p."); |
f6bcfd97 BP |
2202 | return NULL; |
2203 | } | |
2204 | } | |
2205 | { | |
4268f798 | 2206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2207 | _result = (long )wxListEvent_m_oldItemIndex_get(_arg0); |
f6bcfd97 | 2208 | |
4268f798 | 2209 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2210 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2211 | } _resultobj = Py_BuildValue("l",_result); |
2212 | return _resultobj; | |
2213 | } | |
2214 | ||
ebf4302c RD |
2215 | #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex) |
2216 | static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2217 | PyObject * _resultobj; |
ebf4302c | 2218 | long _result; |
f6bcfd97 | 2219 | wxListEvent * _arg0; |
1d99702e | 2220 | PyObject * _argo0 = 0; |
f6bcfd97 | 2221 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2222 | |
2223 | self = self; | |
ebf4302c | 2224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0)) |
af309447 | 2225 | return NULL; |
1d99702e RD |
2226 | if (_argo0) { |
2227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
ebf4302c | 2229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p."); |
af309447 RD |
2230 | return NULL; |
2231 | } | |
2232 | } | |
cf694132 | 2233 | { |
4268f798 | 2234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2235 | _result = (long )wxListEvent_m_itemIndex_get(_arg0); |
cf694132 | 2236 | |
4268f798 | 2237 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2238 | if (PyErr_Occurred()) return NULL; |
ebf4302c | 2239 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2240 | return _resultobj; |
2241 | } | |
2242 | ||
ebf4302c RD |
2243 | #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col) |
2244 | static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2245 | PyObject * _resultobj; |
ebf4302c | 2246 | int _result; |
f6bcfd97 | 2247 | wxListEvent * _arg0; |
1d99702e | 2248 | PyObject * _argo0 = 0; |
f6bcfd97 | 2249 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2250 | |
2251 | self = self; | |
ebf4302c | 2252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0)) |
af309447 | 2253 | return NULL; |
1d99702e RD |
2254 | if (_argo0) { |
2255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
ebf4302c | 2257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p."); |
af309447 RD |
2258 | return NULL; |
2259 | } | |
2260 | } | |
cf694132 | 2261 | { |
4268f798 | 2262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2263 | _result = (int )wxListEvent_m_col_get(_arg0); |
cf694132 | 2264 | |
4268f798 | 2265 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2266 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2267 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2268 | return _resultobj; |
2269 | } | |
2270 | ||
f6bcfd97 BP |
2271 | #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag) |
2272 | static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2273 | PyObject * _resultobj; |
f6bcfd97 BP |
2274 | wxPoint * _result; |
2275 | wxListEvent * _arg0; | |
2276 | PyObject * _argo0 = 0; | |
2277 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
2278 | char _ptemp[128]; |
2279 | ||
2280 | self = self; | |
f6bcfd97 BP |
2281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0)) |
2282 | return NULL; | |
2283 | if (_argo0) { | |
2284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p."); | |
8ab979d7 | 2287 | return NULL; |
f6bcfd97 BP |
2288 | } |
2289 | } | |
cf694132 | 2290 | { |
4268f798 | 2291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2292 | _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0); |
cf694132 | 2293 | |
4268f798 | 2294 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2295 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2296 | } if (_result) { |
f6bcfd97 | 2297 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); |
1d99702e RD |
2298 | _resultobj = Py_BuildValue("s",_ptemp); |
2299 | } else { | |
2300 | Py_INCREF(Py_None); | |
2301 | _resultobj = Py_None; | |
2302 | } | |
8ab979d7 RD |
2303 | return _resultobj; |
2304 | } | |
2305 | ||
f6bcfd97 BP |
2306 | #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item) |
2307 | static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2308 | PyObject * _resultobj; |
f6bcfd97 | 2309 | wxListItem * _result; |
af309447 | 2310 | wxListEvent * _arg0; |
1d99702e | 2311 | PyObject * _argo0 = 0; |
f6bcfd97 | 2312 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2313 | |
2314 | self = self; | |
f6bcfd97 | 2315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0)) |
af309447 | 2316 | return NULL; |
1d99702e RD |
2317 | if (_argo0) { |
2318 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2319 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p."); |
af309447 RD |
2321 | return NULL; |
2322 | } | |
2323 | } | |
cf694132 | 2324 | { |
4268f798 | 2325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2326 | _result = (wxListItem *)wxListEvent_m_item_get(_arg0); |
cf694132 | 2327 | |
4268f798 | 2328 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2329 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2330 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
2331 | return _resultobj; |
2332 | } | |
2333 | ||
64c06a50 RD |
2334 | #define wxListEvent_GetKeyCode(_swigobj) (_swigobj->GetKeyCode()) |
2335 | static PyObject *_wrap_wxListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2336 | PyObject * _resultobj; |
2337 | int _result; | |
2338 | wxListEvent * _arg0; | |
1d99702e | 2339 | PyObject * _argo0 = 0; |
efc5f224 | 2340 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2341 | |
2342 | self = self; | |
64c06a50 | 2343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetKeyCode",_kwnames,&_argo0)) |
8ab979d7 | 2344 | return NULL; |
1d99702e RD |
2345 | if (_argo0) { |
2346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
64c06a50 | 2348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetKeyCode. Expected _wxListEvent_p."); |
8ab979d7 RD |
2349 | return NULL; |
2350 | } | |
2351 | } | |
cf694132 | 2352 | { |
4268f798 | 2353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
64c06a50 | 2354 | _result = (int )wxListEvent_GetKeyCode(_arg0); |
cf694132 | 2355 | |
4268f798 | 2356 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2357 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2358 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2359 | return _resultobj; |
2360 | } | |
2361 | ||
f6bcfd97 BP |
2362 | #define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex()) |
2363 | static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2364 | PyObject * _resultobj; |
2365 | long _result; | |
2366 | wxListEvent * _arg0; | |
1d99702e | 2367 | PyObject * _argo0 = 0; |
f6bcfd97 | 2368 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2369 | |
2370 | self = self; | |
f6bcfd97 | 2371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0)) |
af309447 | 2372 | return NULL; |
1d99702e RD |
2373 | if (_argo0) { |
2374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p."); |
af309447 RD |
2377 | return NULL; |
2378 | } | |
2379 | } | |
cf694132 | 2380 | { |
4268f798 | 2381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2382 | _result = (long )wxListEvent_GetIndex(_arg0); |
cf694132 | 2383 | |
4268f798 | 2384 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2385 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2386 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2387 | return _resultobj; |
2388 | } | |
2389 | ||
f6bcfd97 BP |
2390 | #define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn()) |
2391 | static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2392 | PyObject * _resultobj; |
f6bcfd97 | 2393 | int _result; |
8ab979d7 | 2394 | wxListEvent * _arg0; |
1d99702e | 2395 | PyObject * _argo0 = 0; |
efc5f224 | 2396 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2397 | |
2398 | self = self; | |
f6bcfd97 | 2399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0)) |
8ab979d7 | 2400 | return NULL; |
1d99702e RD |
2401 | if (_argo0) { |
2402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p."); |
8ab979d7 RD |
2405 | return NULL; |
2406 | } | |
2407 | } | |
cf694132 | 2408 | { |
4268f798 | 2409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2410 | _result = (int )wxListEvent_GetColumn(_arg0); |
cf694132 | 2411 | |
4268f798 | 2412 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2413 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2414 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2415 | return _resultobj; |
2416 | } | |
2417 | ||
f6bcfd97 BP |
2418 | #define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
2419 | static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2420 | PyObject * _resultobj; |
f6bcfd97 | 2421 | wxPoint * _result; |
8ab979d7 | 2422 | wxListEvent * _arg0; |
1d99702e | 2423 | PyObject * _argo0 = 0; |
efc5f224 | 2424 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2425 | char _ptemp[128]; |
8ab979d7 RD |
2426 | |
2427 | self = self; | |
f6bcfd97 | 2428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 2429 | return NULL; |
1d99702e RD |
2430 | if (_argo0) { |
2431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetPoint. Expected _wxListEvent_p."); |
8ab979d7 RD |
2434 | return NULL; |
2435 | } | |
2436 | } | |
cf694132 | 2437 | { |
4268f798 | 2438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2439 | _result = new wxPoint (wxListEvent_GetPoint(_arg0)); |
cf694132 | 2440 | |
4268f798 | 2441 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2442 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2443 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2444 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
2445 | return _resultobj; |
2446 | } | |
2447 | ||
f6bcfd97 BP |
2448 | #define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
2449 | static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2450 | PyObject * _resultobj; |
f6bcfd97 | 2451 | wxString * _result; |
af309447 | 2452 | wxListEvent * _arg0; |
1d99702e | 2453 | PyObject * _argo0 = 0; |
f6bcfd97 | 2454 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2455 | |
2456 | self = self; | |
f6bcfd97 | 2457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetLabel",_kwnames,&_argo0)) |
af309447 | 2458 | return NULL; |
1d99702e RD |
2459 | if (_argo0) { |
2460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetLabel. Expected _wxListEvent_p."); |
af309447 RD |
2463 | return NULL; |
2464 | } | |
2465 | } | |
cf694132 | 2466 | { |
4268f798 | 2467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2468 | const wxString & _result_ref = wxListEvent_GetLabel(_arg0); |
f6bcfd97 | 2469 | _result = (wxString *) &_result_ref; |
cf694132 | 2470 | |
4268f798 | 2471 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2472 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2473 | }{ |
c8bc7bb8 | 2474 | #if wxUSE_UNICODE |
7e50db3f | 2475 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2476 | #else |
f6bcfd97 | 2477 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2478 | #endif |
f6bcfd97 | 2479 | } |
af309447 RD |
2480 | return _resultobj; |
2481 | } | |
2482 | ||
f6bcfd97 BP |
2483 | #define wxListEvent_GetText(_swigobj) (_swigobj->GetText()) |
2484 | static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2485 | PyObject * _resultobj; |
f6bcfd97 | 2486 | wxString * _result; |
8ab979d7 | 2487 | wxListEvent * _arg0; |
1d99702e | 2488 | PyObject * _argo0 = 0; |
efc5f224 | 2489 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2490 | |
2491 | self = self; | |
f6bcfd97 | 2492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0)) |
8ab979d7 | 2493 | return NULL; |
1d99702e RD |
2494 | if (_argo0) { |
2495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p."); |
8ab979d7 RD |
2498 | return NULL; |
2499 | } | |
2500 | } | |
cf694132 | 2501 | { |
4268f798 | 2502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2503 | const wxString & _result_ref = wxListEvent_GetText(_arg0); |
f6bcfd97 | 2504 | _result = (wxString *) &_result_ref; |
cf694132 | 2505 | |
4268f798 | 2506 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2507 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2508 | }{ |
c8bc7bb8 | 2509 | #if wxUSE_UNICODE |
7e50db3f | 2510 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2511 | #else |
f6bcfd97 | 2512 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2513 | #endif |
f6bcfd97 | 2514 | } |
8ab979d7 RD |
2515 | return _resultobj; |
2516 | } | |
2517 | ||
f6bcfd97 BP |
2518 | #define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage()) |
2519 | static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2520 | PyObject * _resultobj; |
f6bcfd97 | 2521 | int _result; |
af309447 | 2522 | wxListEvent * _arg0; |
1d99702e | 2523 | PyObject * _argo0 = 0; |
f6bcfd97 | 2524 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2525 | |
2526 | self = self; | |
f6bcfd97 | 2527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0)) |
af309447 | 2528 | return NULL; |
1d99702e RD |
2529 | if (_argo0) { |
2530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p."); |
af309447 RD |
2533 | return NULL; |
2534 | } | |
2535 | } | |
cf694132 | 2536 | { |
4268f798 | 2537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2538 | _result = (int )wxListEvent_GetImage(_arg0); |
cf694132 | 2539 | |
4268f798 | 2540 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2541 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2542 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2543 | return _resultobj; |
2544 | } | |
2545 | ||
f6bcfd97 BP |
2546 | #define wxListEvent_GetData(_swigobj) (_swigobj->GetData()) |
2547 | static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2548 | PyObject * _resultobj; |
f6bcfd97 | 2549 | long _result; |
8ab979d7 | 2550 | wxListEvent * _arg0; |
1d99702e | 2551 | PyObject * _argo0 = 0; |
efc5f224 | 2552 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2553 | |
2554 | self = self; | |
f6bcfd97 | 2555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0)) |
8ab979d7 | 2556 | return NULL; |
1d99702e RD |
2557 | if (_argo0) { |
2558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p."); |
8ab979d7 RD |
2561 | return NULL; |
2562 | } | |
2563 | } | |
cf694132 | 2564 | { |
4268f798 | 2565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2566 | _result = (long )wxListEvent_GetData(_arg0); |
cf694132 | 2567 | |
4268f798 | 2568 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2569 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2570 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2571 | return _resultobj; |
2572 | } | |
2573 | ||
f6bcfd97 BP |
2574 | #define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask()) |
2575 | static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2576 | PyObject * _resultobj; |
f6bcfd97 | 2577 | long _result; |
af309447 | 2578 | wxListEvent * _arg0; |
1d99702e | 2579 | PyObject * _argo0 = 0; |
f6bcfd97 | 2580 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2581 | |
2582 | self = self; | |
f6bcfd97 | 2583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetMask",_kwnames,&_argo0)) |
af309447 | 2584 | return NULL; |
1d99702e RD |
2585 | if (_argo0) { |
2586 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2587 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetMask. Expected _wxListEvent_p."); |
af309447 RD |
2589 | return NULL; |
2590 | } | |
2591 | } | |
cf694132 | 2592 | { |
4268f798 | 2593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2594 | _result = (long )wxListEvent_GetMask(_arg0); |
cf694132 | 2595 | |
4268f798 | 2596 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2597 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2598 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2599 | return _resultobj; |
2600 | } | |
2601 | ||
f6bcfd97 BP |
2602 | #define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
2603 | static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2604 | PyObject * _resultobj; |
2605 | wxListItem * _result; | |
2606 | wxListEvent * _arg0; | |
1d99702e | 2607 | PyObject * _argo0 = 0; |
efc5f224 | 2608 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2609 | |
2610 | self = self; | |
f6bcfd97 | 2611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 2612 | return NULL; |
1d99702e RD |
2613 | if (_argo0) { |
2614 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p."); |
8ab979d7 RD |
2617 | return NULL; |
2618 | } | |
2619 | } | |
cf694132 | 2620 | { |
4268f798 | 2621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2622 | const wxListItem & _result_ref = wxListEvent_GetItem(_arg0); |
f6bcfd97 | 2623 | _result = (wxListItem *) &_result_ref; |
cf694132 | 2624 | |
4268f798 | 2625 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2626 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2627 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2628 | return _resultobj; |
2629 | } | |
2630 | ||
6d19860f RD |
2631 | #define wxListEvent_GetCacheFrom(_swigobj) (_swigobj->GetCacheFrom()) |
2632 | static PyObject *_wrap_wxListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2633 | PyObject * _resultobj; | |
2634 | long _result; | |
2635 | wxListEvent * _arg0; | |
2636 | PyObject * _argo0 = 0; | |
2637 | char *_kwnames[] = { "self", NULL }; | |
2638 | ||
2639 | self = self; | |
2640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheFrom",_kwnames,&_argo0)) | |
2641 | return NULL; | |
2642 | if (_argo0) { | |
2643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheFrom. Expected _wxListEvent_p."); | |
2646 | return NULL; | |
2647 | } | |
2648 | } | |
2649 | { | |
4268f798 | 2650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2651 | _result = (long )wxListEvent_GetCacheFrom(_arg0); |
6d19860f | 2652 | |
4268f798 | 2653 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
2654 | if (PyErr_Occurred()) return NULL; |
2655 | } _resultobj = Py_BuildValue("l",_result); | |
2656 | return _resultobj; | |
2657 | } | |
2658 | ||
2659 | #define wxListEvent_GetCacheTo(_swigobj) (_swigobj->GetCacheTo()) | |
2660 | static PyObject *_wrap_wxListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2661 | PyObject * _resultobj; | |
2662 | long _result; | |
2663 | wxListEvent * _arg0; | |
2664 | PyObject * _argo0 = 0; | |
2665 | char *_kwnames[] = { "self", NULL }; | |
2666 | ||
2667 | self = self; | |
2668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheTo",_kwnames,&_argo0)) | |
2669 | return NULL; | |
2670 | if (_argo0) { | |
2671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheTo. Expected _wxListEvent_p."); | |
2674 | return NULL; | |
2675 | } | |
2676 | } | |
2677 | { | |
4268f798 | 2678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2679 | _result = (long )wxListEvent_GetCacheTo(_arg0); |
6d19860f | 2680 | |
4268f798 | 2681 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
2682 | if (PyErr_Occurred()) return NULL; |
2683 | } _resultobj = Py_BuildValue("l",_result); | |
2684 | return _resultobj; | |
2685 | } | |
2686 | ||
c7e7022c RD |
2687 | static void *SwigwxPyListCtrlTowxControl(void *ptr) { |
2688 | wxPyListCtrl *src; | |
8ab979d7 | 2689 | wxControl *dest; |
c7e7022c | 2690 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2691 | dest = (wxControl *) src; |
2692 | return (void *) dest; | |
2693 | } | |
2694 | ||
c7e7022c RD |
2695 | static void *SwigwxPyListCtrlTowxWindow(void *ptr) { |
2696 | wxPyListCtrl *src; | |
8ab979d7 | 2697 | wxWindow *dest; |
c7e7022c | 2698 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2699 | dest = (wxWindow *) src; |
2700 | return (void *) dest; | |
2701 | } | |
2702 | ||
c7e7022c RD |
2703 | static void *SwigwxPyListCtrlTowxEvtHandler(void *ptr) { |
2704 | wxPyListCtrl *src; | |
8ab979d7 | 2705 | wxEvtHandler *dest; |
c7e7022c | 2706 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2707 | dest = (wxEvtHandler *) src; |
2708 | return (void *) dest; | |
2709 | } | |
2710 | ||
c7e7022c RD |
2711 | static void *SwigwxPyListCtrlTowxObject(void *ptr) { |
2712 | wxPyListCtrl *src; | |
9416aa89 | 2713 | wxObject *dest; |
c7e7022c | 2714 | src = (wxPyListCtrl *) ptr; |
9416aa89 RD |
2715 | dest = (wxObject *) src; |
2716 | return (void *) dest; | |
2717 | } | |
2718 | ||
c7e7022c | 2719 | #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 2720 | static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 2721 | PyObject * _resultobj; |
c7e7022c | 2722 | wxPyListCtrl * _result; |
8ab979d7 | 2723 | wxWindow * _arg0; |
c7e7022c | 2724 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
2725 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
2726 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
0adbc166 | 2727 | long _arg4 = (long ) (wxLC_ICON); |
e508a2b6 | 2728 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
137b5242 | 2729 | wxString * _arg6 = (wxString *) &wxPyListCtrlNameStr; |
1d99702e | 2730 | PyObject * _argo0 = 0; |
2f90df85 RD |
2731 | wxPoint temp; |
2732 | PyObject * _obj2 = 0; | |
2733 | wxSize temp0; | |
2734 | PyObject * _obj3 = 0; | |
1d99702e | 2735 | PyObject * _argo5 = 0; |
137b5242 | 2736 | PyObject * _obj6 = 0; |
efc5f224 | 2737 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
2738 | char _ptemp[128]; |
2739 | ||
2740 | self = self; | |
137b5242 | 2741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) |
8ab979d7 | 2742 | return NULL; |
1d99702e RD |
2743 | if (_argo0) { |
2744 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p."); |
2747 | return NULL; | |
2748 | } | |
2749 | } | |
2f90df85 RD |
2750 | if (_obj2) |
2751 | { | |
2752 | _arg2 = &temp; | |
2753 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 2754 | return NULL; |
2f90df85 RD |
2755 | } |
2756 | if (_obj3) | |
2757 | { | |
2758 | _arg3 = &temp0; | |
2759 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 2760 | return NULL; |
2f90df85 | 2761 | } |
1d99702e | 2762 | if (_argo5) { |
7e50db3f | 2763 | if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { |
8ab979d7 RD |
2764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p."); |
2765 | return NULL; | |
2766 | } | |
2767 | } | |
137b5242 RD |
2768 | if (_obj6) |
2769 | { | |
2770 | _arg6 = wxString_in_helper(_obj6); | |
2771 | if (_arg6 == NULL) | |
2772 | return NULL; | |
2773 | } | |
cf694132 | 2774 | { |
4268f798 | 2775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 2776 | _result = (wxPyListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
cf694132 | 2777 | |
4268f798 | 2778 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2779 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2780 | } if (_result) { |
c7e7022c | 2781 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); |
1d99702e RD |
2782 | _resultobj = Py_BuildValue("s",_ptemp); |
2783 | } else { | |
2784 | Py_INCREF(Py_None); | |
2785 | _resultobj = Py_None; | |
2786 | } | |
137b5242 RD |
2787 | { |
2788 | if (_obj6) | |
2789 | delete _arg6; | |
2790 | } | |
8ab979d7 RD |
2791 | return _resultobj; |
2792 | } | |
2793 | ||
09f3d4e6 RD |
2794 | #define new_wxPreListCtrl() (new wxPyListCtrl()) |
2795 | static PyObject *_wrap_new_wxPreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2796 | PyObject * _resultobj; | |
2797 | wxPyListCtrl * _result; | |
2798 | char *_kwnames[] = { NULL }; | |
2799 | char _ptemp[128]; | |
2800 | ||
2801 | self = self; | |
2802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListCtrl",_kwnames)) | |
2803 | return NULL; | |
2804 | { | |
4268f798 | 2805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2806 | _result = (wxPyListCtrl *)new_wxPreListCtrl(); |
09f3d4e6 | 2807 | |
4268f798 | 2808 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
2809 | if (PyErr_Occurred()) return NULL; |
2810 | } if (_result) { | |
2811 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); | |
2812 | _resultobj = Py_BuildValue("s",_ptemp); | |
2813 | } else { | |
2814 | Py_INCREF(Py_None); | |
2815 | _resultobj = Py_None; | |
2816 | } | |
2817 | return _resultobj; | |
2818 | } | |
2819 | ||
2820 | #define wxListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
2821 | static PyObject *_wrap_wxListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2822 | PyObject * _resultobj; | |
2823 | bool _result; | |
2824 | wxPyListCtrl * _arg0; | |
2825 | wxWindow * _arg1; | |
2826 | wxWindowID _arg2 = (wxWindowID ) -1; | |
2827 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
2828 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2829 | long _arg5 = (long ) (wxLC_ICON); | |
2830 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 2831 | wxString * _arg7 = (wxString *) &wxPyListCtrlNameStr; |
09f3d4e6 RD |
2832 | PyObject * _argo0 = 0; |
2833 | PyObject * _argo1 = 0; | |
2834 | wxPoint temp; | |
2835 | PyObject * _obj3 = 0; | |
2836 | wxSize temp0; | |
2837 | PyObject * _obj4 = 0; | |
2838 | PyObject * _argo6 = 0; | |
137b5242 | 2839 | PyObject * _obj7 = 0; |
09f3d4e6 RD |
2840 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; |
2841 | ||
2842 | self = self; | |
137b5242 | 2843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
09f3d4e6 RD |
2844 | return NULL; |
2845 | if (_argo0) { | |
2846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
2848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Create. Expected _wxPyListCtrl_p."); | |
2849 | return NULL; | |
2850 | } | |
2851 | } | |
2852 | if (_argo1) { | |
2853 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2854 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_Create. Expected _wxWindow_p."); | |
2856 | return NULL; | |
2857 | } | |
2858 | } | |
2859 | if (_obj3) | |
2860 | { | |
2861 | _arg3 = &temp; | |
2862 | if (! wxPoint_helper(_obj3, &_arg3)) | |
2863 | return NULL; | |
2864 | } | |
2865 | if (_obj4) | |
2866 | { | |
2867 | _arg4 = &temp0; | |
2868 | if (! wxSize_helper(_obj4, &_arg4)) | |
2869 | return NULL; | |
2870 | } | |
2871 | if (_argo6) { | |
7e50db3f | 2872 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { |
09f3d4e6 RD |
2873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListCtrl_Create. Expected _wxValidator_p."); |
2874 | return NULL; | |
2875 | } | |
2876 | } | |
137b5242 RD |
2877 | if (_obj7) |
2878 | { | |
2879 | _arg7 = wxString_in_helper(_obj7); | |
2880 | if (_arg7 == NULL) | |
2881 | return NULL; | |
2882 | } | |
09f3d4e6 | 2883 | { |
4268f798 | 2884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 2885 | _result = (bool )wxListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
09f3d4e6 | 2886 | |
4268f798 | 2887 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
2888 | if (PyErr_Occurred()) return NULL; |
2889 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
2890 | { |
2891 | if (_obj7) | |
2892 | delete _arg7; | |
2893 | } | |
09f3d4e6 RD |
2894 | return _resultobj; |
2895 | } | |
2896 | ||
0122b7e3 RD |
2897 | #define wxListCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
2898 | static PyObject *_wrap_wxListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2899 | PyObject * _resultobj; |
c7e7022c RD |
2900 | wxPyListCtrl * _arg0; |
2901 | PyObject * _arg1; | |
2902 | PyObject * _arg2; | |
1d99702e | 2903 | PyObject * _argo0 = 0; |
c7e7022c RD |
2904 | PyObject * _obj1 = 0; |
2905 | PyObject * _obj2 = 0; | |
2906 | char *_kwnames[] = { "self","self","_class", NULL }; | |
8ab979d7 RD |
2907 | |
2908 | self = self; | |
0122b7e3 | 2909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxListCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 2910 | return NULL; |
1d99702e RD |
2911 | if (_argo0) { |
2912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c | 2913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
0122b7e3 | 2914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl__setCallbackInfo. Expected _wxPyListCtrl_p."); |
8ab979d7 RD |
2915 | return NULL; |
2916 | } | |
2917 | } | |
c7e7022c RD |
2918 | { |
2919 | _arg1 = _obj1; | |
2920 | } | |
2921 | { | |
2922 | _arg2 = _obj2; | |
2923 | } | |
cf694132 | 2924 | { |
4268f798 | 2925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2926 | wxListCtrl__setCallbackInfo(_arg0,_arg1,_arg2); |
cf694132 | 2927 | |
4268f798 | 2928 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2929 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
2930 | } Py_INCREF(Py_None); |
2931 | _resultobj = Py_None; | |
8ab979d7 RD |
2932 | return _resultobj; |
2933 | } | |
2934 | ||
c7e7022c RD |
2935 | #define wxListCtrl_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) |
2936 | static PyObject *_wrap_wxListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1b62f00d | 2937 | PyObject * _resultobj; |
c7e7022c RD |
2938 | bool _result; |
2939 | wxPyListCtrl * _arg0; | |
2940 | wxColour * _arg1; | |
1b62f00d | 2941 | PyObject * _argo0 = 0; |
c7e7022c RD |
2942 | wxColour temp; |
2943 | PyObject * _obj1 = 0; | |
2944 | char *_kwnames[] = { "self","col", NULL }; | |
1b62f00d RD |
2945 | |
2946 | self = self; | |
c7e7022c | 2947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
1b62f00d RD |
2948 | return NULL; |
2949 | if (_argo0) { | |
2950 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
2951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
2952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetForegroundColour. Expected _wxPyListCtrl_p."); | |
1b62f00d RD |
2953 | return NULL; |
2954 | } | |
2955 | } | |
c7e7022c RD |
2956 | { |
2957 | _arg1 = &temp; | |
2958 | if (! wxColour_helper(_obj1, &_arg1)) | |
1b62f00d | 2959 | return NULL; |
c7e7022c | 2960 | } |
1b62f00d | 2961 | { |
4268f798 | 2962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2963 | _result = (bool )wxListCtrl_SetForegroundColour(_arg0,*_arg1); |
1b62f00d | 2964 | |
4268f798 | 2965 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2966 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 2967 | } _resultobj = Py_BuildValue("i",_result); |
1b62f00d RD |
2968 | return _resultobj; |
2969 | } | |
2970 | ||
c7e7022c RD |
2971 | #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
2972 | static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2973 | PyObject * _resultobj; |
2974 | bool _result; | |
c7e7022c RD |
2975 | wxPyListCtrl * _arg0; |
2976 | wxColour * _arg1; | |
1d99702e | 2977 | PyObject * _argo0 = 0; |
c7e7022c RD |
2978 | wxColour temp; |
2979 | PyObject * _obj1 = 0; | |
2980 | char *_kwnames[] = { "self","col", NULL }; | |
8ab979d7 RD |
2981 | |
2982 | self = self; | |
c7e7022c | 2983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2984 | return NULL; |
1d99702e RD |
2985 | if (_argo0) { |
2986 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
2987 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
2988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
2989 | return NULL; |
2990 | } | |
2991 | } | |
c7e7022c RD |
2992 | { |
2993 | _arg1 = &temp; | |
2994 | if (! wxColour_helper(_obj1, &_arg1)) | |
2995 | return NULL; | |
2996 | } | |
cf694132 | 2997 | { |
4268f798 | 2998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2999 | _result = (bool )wxListCtrl_SetBackgroundColour(_arg0,*_arg1); |
cf694132 | 3000 | |
4268f798 | 3001 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3002 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3003 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3004 | return _resultobj; |
3005 | } | |
3006 | ||
14afa2cb RD |
3007 | static wxListItem * wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col) { |
3008 | wxListItem item; | |
be13a6af | 3009 | item.SetMask(0xFFFF); |
14afa2cb RD |
3010 | if (self->GetColumn(col, item)) |
3011 | return new wxListItem(item); | |
3012 | else | |
3013 | return NULL; | |
3014 | } | |
c7e7022c | 3015 | static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3016 | PyObject * _resultobj; |
14afa2cb | 3017 | wxListItem * _result; |
c7e7022c RD |
3018 | wxPyListCtrl * _arg0; |
3019 | int _arg1; | |
1d99702e | 3020 | PyObject * _argo0 = 0; |
14afa2cb | 3021 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3022 | |
3023 | self = self; | |
14afa2cb | 3024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3025 | return NULL; |
1d99702e RD |
3026 | if (_argo0) { |
3027 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3028 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxPyListCtrl_p."); | |
3030 | return NULL; | |
3031 | } | |
3032 | } | |
cf694132 | 3033 | { |
4268f798 | 3034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3035 | _result = (wxListItem *)wxPyListCtrl_GetColumn(_arg0,_arg1); |
cf694132 | 3036 | |
4268f798 | 3037 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3038 | if (PyErr_Occurred()) return NULL; |
14afa2cb | 3039 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
3040 | return _resultobj; |
3041 | } | |
3042 | ||
c7e7022c RD |
3043 | #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1)) |
3044 | static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3045 | PyObject * _resultobj; |
3046 | bool _result; | |
c7e7022c | 3047 | wxPyListCtrl * _arg0; |
8ab979d7 | 3048 | int _arg1; |
c7e7022c | 3049 | wxListItem * _arg2; |
1d99702e | 3050 | PyObject * _argo0 = 0; |
c7e7022c RD |
3051 | PyObject * _argo2 = 0; |
3052 | char *_kwnames[] = { "self","col","item", NULL }; | |
8ab979d7 RD |
3053 | |
3054 | self = self; | |
c7e7022c | 3055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3056 | return NULL; |
1d99702e RD |
3057 | if (_argo0) { |
3058 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3059 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxPyListCtrl_p."); | |
3061 | return NULL; | |
3062 | } | |
3063 | } | |
3064 | if (_argo2) { | |
7e50db3f | 3065 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { |
c7e7022c | 3066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p."); |
8ab979d7 RD |
3067 | return NULL; |
3068 | } | |
3069 | } | |
cf694132 | 3070 | { |
4268f798 | 3071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3072 | _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2); |
cf694132 | 3073 | |
4268f798 | 3074 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3075 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3076 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3077 | return _resultobj; |
3078 | } | |
3079 | ||
c7e7022c RD |
3080 | #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0)) |
3081 | static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3082 | PyObject * _resultobj; |
c7e7022c RD |
3083 | int _result; |
3084 | wxPyListCtrl * _arg0; | |
3085 | int _arg1; | |
1d99702e | 3086 | PyObject * _argo0 = 0; |
c7e7022c | 3087 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3088 | |
3089 | self = self; | |
c7e7022c | 3090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3091 | return NULL; |
1d99702e RD |
3092 | if (_argo0) { |
3093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3096 | return NULL; |
3097 | } | |
3098 | } | |
cf694132 | 3099 | { |
4268f798 | 3100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3101 | _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1); |
cf694132 | 3102 | |
4268f798 | 3103 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3104 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3105 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3106 | return _resultobj; |
3107 | } | |
3108 | ||
c7e7022c RD |
3109 | #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1)) |
3110 | static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3111 | PyObject * _resultobj; |
c7e7022c RD |
3112 | bool _result; |
3113 | wxPyListCtrl * _arg0; | |
3114 | int _arg1; | |
3115 | int _arg2; | |
1d99702e | 3116 | PyObject * _argo0 = 0; |
c7e7022c | 3117 | char *_kwnames[] = { "self","col","width", NULL }; |
8ab979d7 RD |
3118 | |
3119 | self = self; | |
c7e7022c | 3120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2)) |
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_SetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3126 | return NULL; |
3127 | } | |
3128 | } | |
cf694132 | 3129 | { |
4268f798 | 3130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3131 | _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2); |
cf694132 | 3132 | |
4268f798 | 3133 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3134 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3135 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3136 | return _resultobj; |
3137 | } | |
3138 | ||
c7e7022c RD |
3139 | #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage()) |
3140 | static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3141 | PyObject * _resultobj; |
c7e7022c RD |
3142 | int _result; |
3143 | wxPyListCtrl * _arg0; | |
1d99702e | 3144 | PyObject * _argo0 = 0; |
c7e7022c | 3145 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3146 | |
3147 | self = self; | |
c7e7022c | 3148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0)) |
8ab979d7 | 3149 | return NULL; |
1d99702e RD |
3150 | if (_argo0) { |
3151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3154 | return NULL; |
3155 | } | |
3156 | } | |
cf694132 | 3157 | { |
4268f798 | 3158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3159 | _result = (int )wxListCtrl_GetCountPerPage(_arg0); |
cf694132 | 3160 | |
4268f798 | 3161 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3162 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3163 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3164 | return _resultobj; |
3165 | } | |
3166 | ||
c7e7022c RD |
3167 | #define wxListCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) |
3168 | static PyObject *_wrap_wxListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3169 | PyObject * _resultobj; |
c7e7022c RD |
3170 | wxTextCtrl * _result; |
3171 | wxPyListCtrl * _arg0; | |
1d99702e | 3172 | PyObject * _argo0 = 0; |
c7e7022c | 3173 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3174 | |
3175 | self = self; | |
c7e7022c | 3176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetEditControl",_kwnames,&_argo0)) |
8ab979d7 | 3177 | return NULL; |
1d99702e RD |
3178 | if (_argo0) { |
3179 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3180 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetEditControl. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3182 | return NULL; |
3183 | } | |
3184 | } | |
cf694132 | 3185 | { |
4268f798 | 3186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3187 | _result = (wxTextCtrl *)wxListCtrl_GetEditControl(_arg0); |
cf694132 | 3188 | |
4268f798 | 3189 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3190 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3191 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
3192 | return _resultobj; |
3193 | } | |
3194 | ||
c7e7022c RD |
3195 | static wxListItem * wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col) { |
3196 | wxListItem* info = new wxListItem; | |
3197 | info->m_itemId = itemId; | |
3198 | info->m_col = col; | |
3199 | info->m_mask = 0xFFFF; | |
3200 | self->GetItem(*info); | |
3201 | return info; | |
3202 | } | |
3203 | static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 3204 | PyObject * _resultobj; |
c7e7022c RD |
3205 | wxListItem * _result; |
3206 | wxPyListCtrl * _arg0; | |
3207 | long _arg1; | |
3208 | int _arg2 = (int ) 0; | |
1d99702e | 3209 | PyObject * _argo0 = 0; |
c7e7022c | 3210 | char *_kwnames[] = { "self","itemId","col", NULL }; |
be4d9c1f RD |
3211 | |
3212 | self = self; | |
c7e7022c | 3213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
be4d9c1f | 3214 | return NULL; |
1d99702e RD |
3215 | if (_argo0) { |
3216 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3217 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxPyListCtrl_p."); | |
be4d9c1f RD |
3219 | return NULL; |
3220 | } | |
3221 | } | |
cf694132 | 3222 | { |
4268f798 | 3223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3224 | _result = (wxListItem *)wxPyListCtrl_GetItem(_arg0,_arg1,_arg2); |
cf694132 | 3225 | |
4268f798 | 3226 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3227 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 3228 | }{ _resultobj = wxPyMake_wxObject(_result); } |
be4d9c1f RD |
3229 | return _resultobj; |
3230 | } | |
3231 | ||
c7e7022c RD |
3232 | #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) |
3233 | static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3234 | PyObject * _resultobj; |
3235 | bool _result; | |
c7e7022c RD |
3236 | wxPyListCtrl * _arg0; |
3237 | wxListItem * _arg1; | |
1d99702e | 3238 | PyObject * _argo0 = 0; |
c7e7022c RD |
3239 | PyObject * _argo1 = 0; |
3240 | char *_kwnames[] = { "self","info", NULL }; | |
8ab979d7 RD |
3241 | |
3242 | self = self; | |
c7e7022c | 3243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3244 | return NULL; |
1d99702e RD |
3245 | if (_argo0) { |
3246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxPyListCtrl_p."); | |
3249 | return NULL; | |
3250 | } | |
3251 | } | |
3252 | if (_argo1) { | |
7e50db3f | 3253 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { |
c7e7022c | 3254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p."); |
8ab979d7 RD |
3255 | return NULL; |
3256 | } | |
3257 | } | |
cf694132 | 3258 | { |
4268f798 | 3259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3260 | _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1); |
cf694132 | 3261 | |
4268f798 | 3262 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3263 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3264 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3265 | return _resultobj; |
3266 | } | |
3267 | ||
c7e7022c RD |
3268 | #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3269 | static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3270 | PyObject * _resultobj; |
3271 | long _result; | |
c7e7022c | 3272 | wxPyListCtrl * _arg0; |
8ab979d7 | 3273 | long _arg1; |
c7e7022c RD |
3274 | int _arg2; |
3275 | wxString * _arg3; | |
3276 | int _arg4 = (int ) -1; | |
1d99702e | 3277 | PyObject * _argo0 = 0; |
c7e7022c RD |
3278 | PyObject * _obj3 = 0; |
3279 | char *_kwnames[] = { "self","index","col","label","imageId", NULL }; | |
8ab979d7 RD |
3280 | |
3281 | self = self; | |
c7e7022c | 3282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
8ab979d7 | 3283 | return NULL; |
1d99702e RD |
3284 | if (_argo0) { |
3285 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3286 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3287 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3288 | return NULL; |
3289 | } | |
3290 | } | |
3291 | { | |
c8bc7bb8 RD |
3292 | _arg3 = wxString_in_helper(_obj3); |
3293 | if (_arg3 == NULL) | |
185d7c3e | 3294 | return NULL; |
8ab979d7 | 3295 | } |
cf694132 | 3296 | { |
4268f798 | 3297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3298 | _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4); |
cf694132 | 3299 | |
4268f798 | 3300 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3301 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3302 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 3303 | { |
c7e7022c RD |
3304 | if (_obj3) |
3305 | delete _arg3; | |
8ab979d7 RD |
3306 | } |
3307 | return _resultobj; | |
3308 | } | |
3309 | ||
c7e7022c RD |
3310 | #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1)) |
3311 | static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3312 | PyObject * _resultobj; |
c7e7022c RD |
3313 | int _result; |
3314 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
3315 | long _arg1; |
3316 | long _arg2; | |
1d99702e | 3317 | PyObject * _argo0 = 0; |
c7e7022c | 3318 | char *_kwnames[] = { "self","item","stateMask", NULL }; |
8ab979d7 RD |
3319 | |
3320 | self = self; | |
c7e7022c | 3321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3322 | return NULL; |
1d99702e RD |
3323 | if (_argo0) { |
3324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3327 | return NULL; |
3328 | } | |
3329 | } | |
cf694132 | 3330 | { |
4268f798 | 3331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3332 | _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2); |
cf694132 | 3333 | |
4268f798 | 3334 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3335 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3336 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3337 | return _resultobj; |
3338 | } | |
3339 | ||
c7e7022c RD |
3340 | #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2)) |
3341 | static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3342 | PyObject * _resultobj; |
c7e7022c RD |
3343 | bool _result; |
3344 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3345 | long _arg1; |
c7e7022c RD |
3346 | long _arg2; |
3347 | long _arg3; | |
1d99702e | 3348 | PyObject * _argo0 = 0; |
c7e7022c | 3349 | char *_kwnames[] = { "self","item","state","stateMask", NULL }; |
8ab979d7 RD |
3350 | |
3351 | self = self; | |
c7e7022c | 3352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3353 | return NULL; |
1d99702e RD |
3354 | if (_argo0) { |
3355 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3356 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3358 | return NULL; |
3359 | } | |
3360 | } | |
cf694132 | 3361 | { |
4268f798 | 3362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3363 | _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3364 | |
4268f798 | 3365 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3366 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3367 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3368 | return _resultobj; |
3369 | } | |
3370 | ||
c7e7022c RD |
3371 | #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
3372 | static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3373 | PyObject * _resultobj; |
3374 | bool _result; | |
c7e7022c RD |
3375 | wxPyListCtrl * _arg0; |
3376 | long _arg1; | |
3377 | int _arg2; | |
3378 | int _arg3; | |
1d99702e | 3379 | PyObject * _argo0 = 0; |
c7e7022c | 3380 | char *_kwnames[] = { "self","item","image","selImage", NULL }; |
8ab979d7 RD |
3381 | |
3382 | self = self; | |
c7e7022c | 3383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3384 | return NULL; |
1d99702e RD |
3385 | if (_argo0) { |
3386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3389 | return NULL; |
3390 | } | |
3391 | } | |
cf694132 | 3392 | { |
4268f798 | 3393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3394 | _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3395 | |
4268f798 | 3396 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3397 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3398 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3399 | return _resultobj; |
3400 | } | |
3401 | ||
c7e7022c RD |
3402 | #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
3403 | static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3404 | PyObject * _resultobj; |
c7e7022c RD |
3405 | wxString * _result; |
3406 | wxPyListCtrl * _arg0; | |
3407 | long _arg1; | |
1d99702e | 3408 | PyObject * _argo0 = 0; |
c7e7022c | 3409 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3410 | |
3411 | self = self; | |
c7e7022c | 3412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1)) |
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_GetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3418 | return NULL; |
3419 | } | |
3420 | } | |
cf694132 | 3421 | { |
4268f798 | 3422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3423 | _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1)); |
cf694132 | 3424 | |
4268f798 | 3425 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3426 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3427 | }{ |
c8bc7bb8 | 3428 | #if wxUSE_UNICODE |
7e50db3f | 3429 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3430 | #else |
c7e7022c | 3431 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3432 | #endif |
c7e7022c RD |
3433 | } |
3434 | { | |
3435 | delete _result; | |
3436 | } | |
8ab979d7 RD |
3437 | return _resultobj; |
3438 | } | |
3439 | ||
c7e7022c RD |
3440 | #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
3441 | static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3442 | PyObject * _resultobj; |
c7e7022c RD |
3443 | wxPyListCtrl * _arg0; |
3444 | long _arg1; | |
3445 | wxString * _arg2; | |
1d99702e | 3446 | PyObject * _argo0 = 0; |
c7e7022c RD |
3447 | PyObject * _obj2 = 0; |
3448 | char *_kwnames[] = { "self","item","str", NULL }; | |
8ab979d7 RD |
3449 | |
3450 | self = self; | |
c7e7022c | 3451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3452 | return NULL; |
1d99702e RD |
3453 | if (_argo0) { |
3454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3457 | return NULL; |
3458 | } | |
3459 | } | |
cf694132 | 3460 | { |
c8bc7bb8 RD |
3461 | _arg2 = wxString_in_helper(_obj2); |
3462 | if (_arg2 == NULL) | |
8ab979d7 | 3463 | return NULL; |
c7e7022c | 3464 | } |
cf694132 | 3465 | { |
4268f798 | 3466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3467 | wxListCtrl_SetItemText(_arg0,_arg1,*_arg2); |
cf694132 | 3468 | |
4268f798 | 3469 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3470 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
3471 | } Py_INCREF(Py_None); |
3472 | _resultobj = Py_None; | |
3473 | { | |
3474 | if (_obj2) | |
3475 | delete _arg2; | |
3476 | } | |
8ab979d7 RD |
3477 | return _resultobj; |
3478 | } | |
3479 | ||
3480 | #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0)) | |
efc5f224 | 3481 | static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3482 | PyObject * _resultobj; |
3483 | long _result; | |
c7e7022c | 3484 | wxPyListCtrl * _arg0; |
8ab979d7 | 3485 | long _arg1; |
1d99702e | 3486 | PyObject * _argo0 = 0; |
efc5f224 | 3487 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3488 | |
3489 | self = self; | |
efc5f224 | 3490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3491 | return NULL; |
1d99702e RD |
3492 | if (_argo0) { |
3493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3496 | return NULL; |
3497 | } | |
3498 | } | |
cf694132 | 3499 | { |
4268f798 | 3500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3501 | _result = (long )wxListCtrl_GetItemData(_arg0,_arg1); |
cf694132 | 3502 | |
4268f798 | 3503 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3504 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3505 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
3506 | return _resultobj; |
3507 | } | |
3508 | ||
c7e7022c RD |
3509 | #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1)) |
3510 | static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3511 | PyObject * _resultobj; |
c7e7022c RD |
3512 | bool _result; |
3513 | wxPyListCtrl * _arg0; | |
0699c864 | 3514 | long _arg1; |
c7e7022c | 3515 | long _arg2; |
1d99702e | 3516 | PyObject * _argo0 = 0; |
c7e7022c | 3517 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
3518 | |
3519 | self = self; | |
c7e7022c | 3520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3521 | return NULL; |
1d99702e RD |
3522 | if (_argo0) { |
3523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3526 | return NULL; |
3527 | } | |
3528 | } | |
cf694132 | 3529 | { |
4268f798 | 3530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3531 | _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2); |
cf694132 | 3532 | |
4268f798 | 3533 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3534 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3535 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3536 | return _resultobj; |
3537 | } | |
3538 | ||
c7e7022c | 3539 | static wxPoint * wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item) { |
8ab979d7 RD |
3540 | wxPoint* pos = new wxPoint; |
3541 | self->GetItemPosition(item, *pos); | |
3542 | return pos; | |
3543 | } | |
efc5f224 | 3544 | static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3545 | PyObject * _resultobj; |
3546 | wxPoint * _result; | |
c7e7022c | 3547 | wxPyListCtrl * _arg0; |
8ab979d7 | 3548 | long _arg1; |
1d99702e | 3549 | PyObject * _argo0 = 0; |
efc5f224 | 3550 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3551 | char _ptemp[128]; |
3552 | ||
3553 | self = self; | |
efc5f224 | 3554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3555 | return NULL; |
1d99702e RD |
3556 | if (_argo0) { |
3557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3560 | return NULL; |
3561 | } | |
3562 | } | |
cf694132 | 3563 | { |
4268f798 | 3564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3565 | _result = (wxPoint *)wxPyListCtrl_GetItemPosition(_arg0,_arg1); |
cf694132 | 3566 | |
4268f798 | 3567 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3568 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3569 | } if (_result) { |
3570 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
3571 | _resultobj = Py_BuildValue("s",_ptemp); | |
3572 | } else { | |
3573 | Py_INCREF(Py_None); | |
3574 | _resultobj = Py_None; | |
3575 | } | |
8ab979d7 RD |
3576 | return _resultobj; |
3577 | } | |
3578 | ||
c7e7022c | 3579 | static wxRect * wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code) { |
8ab979d7 RD |
3580 | wxRect* rect= new wxRect; |
3581 | self->GetItemRect(item, *rect, code); | |
3582 | return rect; | |
3583 | } | |
efc5f224 | 3584 | static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3585 | PyObject * _resultobj; |
3586 | wxRect * _result; | |
c7e7022c | 3587 | wxPyListCtrl * _arg0; |
8ab979d7 | 3588 | long _arg1; |
1d99702e RD |
3589 | int _arg2 = (int ) (wxLIST_RECT_BOUNDS); |
3590 | PyObject * _argo0 = 0; | |
efc5f224 | 3591 | char *_kwnames[] = { "self","item","code", NULL }; |
8ab979d7 RD |
3592 | char _ptemp[128]; |
3593 | ||
3594 | self = self; | |
efc5f224 | 3595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3596 | return NULL; |
1d99702e RD |
3597 | if (_argo0) { |
3598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3601 | return NULL; |
3602 | } | |
3603 | } | |
cf694132 | 3604 | { |
4268f798 | 3605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3606 | _result = (wxRect *)wxPyListCtrl_GetItemRect(_arg0,_arg1,_arg2); |
cf694132 | 3607 | |
4268f798 | 3608 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3609 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3610 | } if (_result) { |
3611 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
3612 | _resultobj = Py_BuildValue("s",_ptemp); | |
3613 | } else { | |
3614 | Py_INCREF(Py_None); | |
3615 | _resultobj = Py_None; | |
3616 | } | |
8ab979d7 RD |
3617 | return _resultobj; |
3618 | } | |
3619 | ||
c7e7022c RD |
3620 | #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1)) |
3621 | static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3622 | PyObject * _resultobj; |
c7e7022c RD |
3623 | bool _result; |
3624 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3625 | long _arg1; |
c7e7022c | 3626 | wxPoint * _arg2; |
1d99702e | 3627 | PyObject * _argo0 = 0; |
c7e7022c RD |
3628 | wxPoint temp; |
3629 | PyObject * _obj2 = 0; | |
3630 | char *_kwnames[] = { "self","item","pos", NULL }; | |
8ab979d7 RD |
3631 | |
3632 | self = self; | |
c7e7022c | 3633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3634 | return NULL; |
1d99702e RD |
3635 | if (_argo0) { |
3636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3639 | return NULL; |
3640 | } | |
3641 | } | |
c7e7022c RD |
3642 | { |
3643 | _arg2 = &temp; | |
3644 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3645 | return NULL; | |
3646 | } | |
cf694132 | 3647 | { |
4268f798 | 3648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3649 | _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2); |
cf694132 | 3650 | |
4268f798 | 3651 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3652 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3653 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3654 | return _resultobj; |
3655 | } | |
3656 | ||
3657 | #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
efc5f224 | 3658 | static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3659 | PyObject * _resultobj; |
3660 | int _result; | |
c7e7022c | 3661 | wxPyListCtrl * _arg0; |
1d99702e | 3662 | PyObject * _argo0 = 0; |
efc5f224 | 3663 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3664 | |
3665 | self = self; | |
efc5f224 | 3666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3667 | return NULL; |
1d99702e RD |
3668 | if (_argo0) { |
3669 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3670 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3672 | return NULL; |
3673 | } | |
3674 | } | |
cf694132 | 3675 | { |
4268f798 | 3676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3677 | _result = (int )wxListCtrl_GetItemCount(_arg0); |
cf694132 | 3678 | |
4268f798 | 3679 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3680 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3681 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3682 | return _resultobj; |
3683 | } | |
3684 | ||
c7e7022c RD |
3685 | #define wxListCtrl_GetColumnCount(_swigobj) (_swigobj->GetColumnCount()) |
3686 | static PyObject *_wrap_wxListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3687 | PyObject * _resultobj; |
3688 | int _result; | |
c7e7022c | 3689 | wxPyListCtrl * _arg0; |
1d99702e | 3690 | PyObject * _argo0 = 0; |
c7e7022c | 3691 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3692 | |
3693 | self = self; | |
c7e7022c | 3694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetColumnCount",_kwnames,&_argo0)) |
8ab979d7 | 3695 | return NULL; |
1d99702e RD |
3696 | if (_argo0) { |
3697 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3698 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3700 | return NULL; |
3701 | } | |
3702 | } | |
cf694132 | 3703 | { |
4268f798 | 3704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3705 | _result = (int )wxListCtrl_GetColumnCount(_arg0); |
cf694132 | 3706 | |
4268f798 | 3707 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3708 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3709 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3710 | return _resultobj; |
3711 | } | |
3712 | ||
c7e7022c RD |
3713 | #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0)) |
3714 | static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3715 | PyObject * _resultobj; |
c7e7022c RD |
3716 | int _result; |
3717 | wxPyListCtrl * _arg0; | |
3718 | bool _arg1; | |
1d99702e | 3719 | PyObject * _argo0 = 0; |
c7e7022c RD |
3720 | int tempbool1; |
3721 | char *_kwnames[] = { "self","isSmall", NULL }; | |
8ab979d7 RD |
3722 | |
3723 | self = self; | |
c7e7022c | 3724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3725 | return NULL; |
1d99702e RD |
3726 | if (_argo0) { |
3727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3730 | return NULL; |
3731 | } | |
3732 | } | |
c7e7022c | 3733 | _arg1 = (bool ) tempbool1; |
8ab979d7 | 3734 | { |
4268f798 | 3735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3736 | _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1); |
cf694132 | 3737 | |
4268f798 | 3738 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3739 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3740 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3741 | return _resultobj; |
3742 | } | |
3743 | ||
c7e7022c RD |
3744 | #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount()) |
3745 | static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3746 | PyObject * _resultobj; |
c7e7022c RD |
3747 | int _result; |
3748 | wxPyListCtrl * _arg0; | |
1d99702e | 3749 | PyObject * _argo0 = 0; |
c7e7022c | 3750 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3751 | |
3752 | self = self; | |
c7e7022c | 3753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3754 | return NULL; |
1d99702e RD |
3755 | if (_argo0) { |
3756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3759 | return NULL; |
3760 | } | |
3761 | } | |
cf694132 | 3762 | { |
4268f798 | 3763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3764 | _result = (int )wxListCtrl_GetSelectedItemCount(_arg0); |
cf694132 | 3765 | |
4268f798 | 3766 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3767 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3768 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3769 | return _resultobj; |
3770 | } | |
3771 | ||
c7e7022c RD |
3772 | #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
3773 | static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3774 | PyObject * _resultobj; |
c7e7022c RD |
3775 | wxColour * _result; |
3776 | wxPyListCtrl * _arg0; | |
1d99702e | 3777 | PyObject * _argo0 = 0; |
efc5f224 | 3778 | char *_kwnames[] = { "self", NULL }; |
c7e7022c | 3779 | char _ptemp[128]; |
8ab979d7 RD |
3780 | |
3781 | self = self; | |
c7e7022c | 3782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 3783 | return NULL; |
1d99702e RD |
3784 | if (_argo0) { |
3785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3788 | return NULL; |
3789 | } | |
3790 | } | |
cf694132 | 3791 | { |
4268f798 | 3792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3793 | _result = new wxColour (wxListCtrl_GetTextColour(_arg0)); |
cf694132 | 3794 | |
4268f798 | 3795 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3796 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3797 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
3798 | _resultobj = Py_BuildValue("s",_ptemp); |
3799 | return _resultobj; | |
3800 | } | |
3801 | ||
be4d9c1f | 3802 | #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
efc5f224 | 3803 | static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
be4d9c1f | 3804 | PyObject * _resultobj; |
c7e7022c | 3805 | wxPyListCtrl * _arg0; |
be4d9c1f | 3806 | wxColour * _arg1; |
1d99702e | 3807 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3808 | wxColour temp; |
3809 | PyObject * _obj1 = 0; | |
efc5f224 | 3810 | char *_kwnames[] = { "self","col", NULL }; |
be4d9c1f RD |
3811 | |
3812 | self = self; | |
f6bcfd97 | 3813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1)) |
be4d9c1f | 3814 | return NULL; |
1d99702e RD |
3815 | if (_argo0) { |
3816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxPyListCtrl_p."); | |
be4d9c1f RD |
3819 | return NULL; |
3820 | } | |
3821 | } | |
f6bcfd97 BP |
3822 | { |
3823 | _arg1 = &temp; | |
3824 | if (! wxColour_helper(_obj1, &_arg1)) | |
be4d9c1f | 3825 | return NULL; |
f6bcfd97 | 3826 | } |
cf694132 | 3827 | { |
4268f798 | 3828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3829 | wxListCtrl_SetTextColour(_arg0,*_arg1); |
cf694132 | 3830 | |
4268f798 | 3831 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3832 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3833 | } Py_INCREF(Py_None); |
be4d9c1f RD |
3834 | _resultobj = Py_None; |
3835 | return _resultobj; | |
3836 | } | |
3837 | ||
8ab979d7 | 3838 | #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem()) |
efc5f224 | 3839 | static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3840 | PyObject * _resultobj; |
3841 | long _result; | |
c7e7022c | 3842 | wxPyListCtrl * _arg0; |
1d99702e | 3843 | PyObject * _argo0 = 0; |
efc5f224 | 3844 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3845 | |
3846 | self = self; | |
efc5f224 | 3847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0)) |
8ab979d7 | 3848 | return NULL; |
1d99702e RD |
3849 | if (_argo0) { |
3850 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3851 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3853 | return NULL; |
3854 | } | |
3855 | } | |
cf694132 | 3856 | { |
4268f798 | 3857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3858 | _result = (long )wxListCtrl_GetTopItem(_arg0); |
cf694132 | 3859 | |
4268f798 | 3860 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3861 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3862 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
3863 | return _resultobj; |
3864 | } | |
3865 | ||
c7e7022c RD |
3866 | #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1)) |
3867 | static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3868 | PyObject * _resultobj; |
c7e7022c RD |
3869 | wxPyListCtrl * _arg0; |
3870 | long _arg1; | |
3871 | bool _arg2 = (bool ) TRUE; | |
1d99702e | 3872 | PyObject * _argo0 = 0; |
c7e7022c RD |
3873 | int tempbool2 = (int) TRUE; |
3874 | char *_kwnames[] = { "self","style","add", NULL }; | |
8ab979d7 RD |
3875 | |
3876 | self = self; | |
c7e7022c | 3877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 3878 | return NULL; |
1d99702e RD |
3879 | if (_argo0) { |
3880 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3881 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3883 | return NULL; |
3884 | } | |
3885 | } | |
c7e7022c | 3886 | _arg2 = (bool ) tempbool2; |
cf694132 | 3887 | { |
4268f798 | 3888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3889 | wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2); |
cf694132 | 3890 | |
4268f798 | 3891 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3892 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
3893 | } Py_INCREF(Py_None); |
3894 | _resultobj = Py_None; | |
8ab979d7 RD |
3895 | return _resultobj; |
3896 | } | |
3897 | ||
c7e7022c RD |
3898 | #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
3899 | static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3900 | PyObject * _resultobj; |
c7e7022c | 3901 | wxPyListCtrl * _arg0; |
8ab979d7 | 3902 | long _arg1; |
1d99702e | 3903 | PyObject * _argo0 = 0; |
c7e7022c | 3904 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
3905 | |
3906 | self = self; | |
c7e7022c | 3907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3908 | return NULL; |
1d99702e RD |
3909 | if (_argo0) { |
3910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3913 | return NULL; |
3914 | } | |
3915 | } | |
cf694132 | 3916 | { |
4268f798 | 3917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3918 | wxListCtrl_SetWindowStyleFlag(_arg0,_arg1); |
cf694132 | 3919 | |
4268f798 | 3920 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3921 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
3922 | } Py_INCREF(Py_None); |
3923 | _resultobj = Py_None; | |
8ab979d7 RD |
3924 | return _resultobj; |
3925 | } | |
3926 | ||
c7e7022c RD |
3927 | #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2)) |
3928 | static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3929 | PyObject * _resultobj; |
3930 | long _result; | |
c7e7022c | 3931 | wxPyListCtrl * _arg0; |
8ab979d7 | 3932 | long _arg1; |
c7e7022c RD |
3933 | int _arg2 = (int ) (wxLIST_NEXT_ALL); |
3934 | int _arg3 = (int ) (wxLIST_STATE_DONTCARE); | |
1d99702e | 3935 | PyObject * _argo0 = 0; |
c7e7022c | 3936 | char *_kwnames[] = { "self","item","geometry","state", NULL }; |
8ab979d7 RD |
3937 | |
3938 | self = self; | |
c7e7022c | 3939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3940 | return NULL; |
1d99702e RD |
3941 | if (_argo0) { |
3942 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3943 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3945 | return NULL; |
3946 | } | |
3947 | } | |
3948 | { | |
4268f798 | 3949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3950 | _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3); |
c7e7022c | 3951 | |
4268f798 | 3952 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
3953 | if (PyErr_Occurred()) return NULL; |
3954 | } _resultobj = Py_BuildValue("l",_result); | |
3955 | return _resultobj; | |
3956 | } | |
3957 | ||
3958 | #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0)) | |
3959 | static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3960 | PyObject * _resultobj; | |
3961 | wxImageList * _result; | |
3962 | wxPyListCtrl * _arg0; | |
3963 | int _arg1; | |
3964 | PyObject * _argo0 = 0; | |
3965 | char *_kwnames[] = { "self","which", NULL }; | |
3966 | ||
3967 | self = self; | |
3968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1)) | |
185d7c3e | 3969 | return NULL; |
c7e7022c RD |
3970 | if (_argo0) { |
3971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 | 3974 | return NULL; |
c7e7022c | 3975 | } |
8ab979d7 | 3976 | } |
cf694132 | 3977 | { |
4268f798 | 3978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3979 | _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1); |
cf694132 | 3980 | |
4268f798 | 3981 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3982 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3983 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
3984 | return _resultobj; |
3985 | } | |
3986 | ||
c7e7022c RD |
3987 | #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1)) |
3988 | static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3989 | PyObject * _resultobj; |
c7e7022c RD |
3990 | wxPyListCtrl * _arg0; |
3991 | wxImageList * _arg1; | |
3992 | int _arg2; | |
1d99702e RD |
3993 | PyObject * _argo0 = 0; |
3994 | PyObject * _argo1 = 0; | |
c7e7022c | 3995 | char *_kwnames[] = { "self","imageList","which", NULL }; |
8ab979d7 RD |
3996 | |
3997 | self = self; | |
c7e7022c | 3998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
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_SetImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4004 | return NULL; |
4005 | } | |
4006 | } | |
1d99702e RD |
4007 | if (_argo1) { |
4008 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
c7e7022c RD |
4009 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { |
4010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p."); | |
8ab979d7 RD |
4011 | return NULL; |
4012 | } | |
4013 | } | |
cf694132 | 4014 | { |
4268f798 | 4015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4016 | wxListCtrl_SetImageList(_arg0,_arg1,_arg2); |
cf694132 | 4017 | |
4268f798 | 4018 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4019 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4020 | } Py_INCREF(Py_None); |
4021 | _resultobj = Py_None; | |
8ab979d7 RD |
4022 | return _resultobj; |
4023 | } | |
4024 | ||
c7e7022c RD |
4025 | #define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1)) |
4026 | static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4027 | PyObject * _resultobj; |
c7e7022c RD |
4028 | wxPyListCtrl * _arg0; |
4029 | wxImageList * _arg1; | |
4030 | int _arg2; | |
1d99702e | 4031 | PyObject * _argo0 = 0; |
c7e7022c RD |
4032 | PyObject * _argo1 = 0; |
4033 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
8ab979d7 RD |
4034 | |
4035 | self = self; | |
c7e7022c | 4036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4037 | return NULL; |
1d99702e RD |
4038 | if (_argo0) { |
4039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4042 | return NULL; |
4043 | } | |
4044 | } | |
c7e7022c RD |
4045 | if (_argo1) { |
4046 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4047 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p."); | |
8ab979d7 | 4049 | return NULL; |
c7e7022c | 4050 | } |
8ab979d7 | 4051 | } |
cf694132 | 4052 | { |
4268f798 | 4053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4054 | wxListCtrl_AssignImageList(_arg0,_arg1,_arg2); |
cf694132 | 4055 | |
4268f798 | 4056 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4057 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4058 | } Py_INCREF(Py_None); |
4059 | _resultobj = Py_None; | |
8ab979d7 RD |
4060 | return _resultobj; |
4061 | } | |
4062 | ||
c7e7022c RD |
4063 | #define wxListCtrl_IsVirtual(_swigobj) (_swigobj->IsVirtual()) |
4064 | static PyObject *_wrap_wxListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4065 | PyObject * _resultobj; |
c7e7022c RD |
4066 | bool _result; |
4067 | wxPyListCtrl * _arg0; | |
1d99702e | 4068 | PyObject * _argo0 = 0; |
c7e7022c | 4069 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4070 | |
4071 | self = self; | |
c7e7022c | 4072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_IsVirtual",_kwnames,&_argo0)) |
8ab979d7 | 4073 | return NULL; |
1d99702e RD |
4074 | if (_argo0) { |
4075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_IsVirtual. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4078 | return NULL; |
4079 | } | |
4080 | } | |
cf694132 | 4081 | { |
4268f798 | 4082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4083 | _result = (bool )wxListCtrl_IsVirtual(_arg0); |
cf694132 | 4084 | |
4268f798 | 4085 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4086 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4087 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4088 | return _resultobj; |
4089 | } | |
4090 | ||
c7e7022c RD |
4091 | #define wxListCtrl_RefreshItem(_swigobj,_swigarg0) (_swigobj->RefreshItem(_swigarg0)) |
4092 | static PyObject *_wrap_wxListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4093 | PyObject * _resultobj; |
c7e7022c | 4094 | wxPyListCtrl * _arg0; |
8ab979d7 | 4095 | long _arg1; |
1d99702e | 4096 | PyObject * _argo0 = 0; |
c7e7022c | 4097 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4098 | |
4099 | self = self; | |
c7e7022c | 4100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_RefreshItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4101 | return NULL; |
1d99702e RD |
4102 | if (_argo0) { |
4103 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4104 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4106 | return NULL; |
4107 | } | |
4108 | } | |
cf694132 | 4109 | { |
4268f798 | 4110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4111 | wxListCtrl_RefreshItem(_arg0,_arg1); |
cf694132 | 4112 | |
4268f798 | 4113 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4114 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4115 | } Py_INCREF(Py_None); |
4116 | _resultobj = Py_None; | |
8ab979d7 RD |
4117 | return _resultobj; |
4118 | } | |
4119 | ||
c7e7022c RD |
4120 | #define wxListCtrl_RefreshItems(_swigobj,_swigarg0,_swigarg1) (_swigobj->RefreshItems(_swigarg0,_swigarg1)) |
4121 | static PyObject *_wrap_wxListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4122 | PyObject * _resultobj; |
c7e7022c RD |
4123 | wxPyListCtrl * _arg0; |
4124 | long _arg1; | |
4125 | long _arg2; | |
1d99702e | 4126 | PyObject * _argo0 = 0; |
c7e7022c | 4127 | char *_kwnames[] = { "self","itemFrom","itemTo", NULL }; |
8ab979d7 RD |
4128 | |
4129 | self = self; | |
c7e7022c | 4130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_RefreshItems",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4131 | return NULL; |
1d99702e RD |
4132 | if (_argo0) { |
4133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItems. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4136 | return NULL; |
4137 | } | |
4138 | } | |
cf694132 | 4139 | { |
4268f798 | 4140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4141 | wxListCtrl_RefreshItems(_arg0,_arg1,_arg2); |
cf694132 | 4142 | |
4268f798 | 4143 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4144 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4145 | } Py_INCREF(Py_None); |
4146 | _resultobj = Py_None; | |
8ab979d7 RD |
4147 | return _resultobj; |
4148 | } | |
4149 | ||
c7e7022c RD |
4150 | #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0)) |
4151 | static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4152 | PyObject * _resultobj; |
c7e7022c RD |
4153 | bool _result; |
4154 | wxPyListCtrl * _arg0; | |
4155 | int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT); | |
1d99702e | 4156 | PyObject * _argo0 = 0; |
c7e7022c | 4157 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
4158 | |
4159 | self = self; | |
c7e7022c | 4160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4161 | return NULL; |
1d99702e RD |
4162 | if (_argo0) { |
4163 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4164 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4166 | return NULL; |
4167 | } | |
4168 | } | |
cf694132 | 4169 | { |
4268f798 | 4170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4171 | _result = (bool )wxListCtrl_Arrange(_arg0,_arg1); |
cf694132 | 4172 | |
4268f798 | 4173 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4174 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4175 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4176 | return _resultobj; |
4177 | } | |
4178 | ||
c7e7022c RD |
4179 | #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0)) |
4180 | static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4181 | PyObject * _resultobj; |
4182 | bool _result; | |
c7e7022c RD |
4183 | wxPyListCtrl * _arg0; |
4184 | long _arg1; | |
1d99702e | 4185 | PyObject * _argo0 = 0; |
c7e7022c | 4186 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4187 | |
4188 | self = self; | |
c7e7022c | 4189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1)) |
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_DeleteItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4195 | return NULL; |
4196 | } | |
4197 | } | |
c7e7022c | 4198 | { |
4268f798 | 4199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4200 | _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1); |
c7e7022c | 4201 | |
4268f798 | 4202 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4203 | if (PyErr_Occurred()) return NULL; |
4204 | } _resultobj = Py_BuildValue("i",_result); | |
4205 | return _resultobj; | |
4206 | } | |
4207 | ||
4208 | #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
4209 | static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4210 | PyObject * _resultobj; | |
4211 | bool _result; | |
4212 | wxPyListCtrl * _arg0; | |
4213 | PyObject * _argo0 = 0; | |
4214 | char *_kwnames[] = { "self", NULL }; | |
4215 | ||
4216 | self = self; | |
4217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0)) | |
4218 | return NULL; | |
4219 | if (_argo0) { | |
4220 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4221 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4223 | return NULL; |
4224 | } | |
4225 | } | |
cf694132 | 4226 | { |
4268f798 | 4227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4228 | _result = (bool )wxListCtrl_DeleteAllItems(_arg0); |
cf694132 | 4229 | |
4268f798 | 4230 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4231 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4232 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4233 | return _resultobj; |
4234 | } | |
4235 | ||
c7e7022c RD |
4236 | #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0)) |
4237 | static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4238 | PyObject * _resultobj; |
4239 | bool _result; | |
c7e7022c | 4240 | wxPyListCtrl * _arg0; |
8ab979d7 | 4241 | int _arg1; |
1d99702e | 4242 | PyObject * _argo0 = 0; |
c7e7022c | 4243 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
4244 | |
4245 | self = self; | |
c7e7022c | 4246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4247 | return NULL; |
1d99702e RD |
4248 | if (_argo0) { |
4249 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4250 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4251 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4252 | return NULL; |
4253 | } | |
4254 | } | |
cf694132 | 4255 | { |
4268f798 | 4256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4257 | _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1); |
cf694132 | 4258 | |
4268f798 | 4259 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4260 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4261 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4262 | return _resultobj; |
4263 | } | |
4264 | ||
c7e7022c RD |
4265 | #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns()) |
4266 | static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4267 | PyObject * _resultobj; |
c7e7022c RD |
4268 | bool _result; |
4269 | wxPyListCtrl * _arg0; | |
1d99702e | 4270 | PyObject * _argo0 = 0; |
c7e7022c | 4271 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4272 | |
4273 | self = self; | |
c7e7022c | 4274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0)) |
8ab979d7 | 4275 | return NULL; |
1d99702e RD |
4276 | if (_argo0) { |
4277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4280 | return NULL; |
4281 | } | |
4282 | } | |
c7e7022c | 4283 | { |
4268f798 | 4284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4285 | _result = (bool )wxListCtrl_DeleteAllColumns(_arg0); |
c7e7022c | 4286 | |
4268f798 | 4287 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4288 | if (PyErr_Occurred()) return NULL; |
4289 | } _resultobj = Py_BuildValue("i",_result); | |
4290 | return _resultobj; | |
4291 | } | |
4292 | ||
4293 | #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll()) | |
4294 | static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4295 | PyObject * _resultobj; | |
4296 | wxPyListCtrl * _arg0; | |
4297 | PyObject * _argo0 = 0; | |
4298 | char *_kwnames[] = { "self", NULL }; | |
4299 | ||
4300 | self = self; | |
4301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0)) | |
4302 | return NULL; | |
4303 | if (_argo0) { | |
4304 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4307 | return NULL; |
4308 | } | |
4309 | } | |
cf694132 | 4310 | { |
4268f798 | 4311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4312 | wxListCtrl_ClearAll(_arg0); |
cf694132 | 4313 | |
4268f798 | 4314 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4315 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4316 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4317 | _resultobj = Py_None; |
4318 | return _resultobj; | |
4319 | } | |
4320 | ||
c7e7022c RD |
4321 | #define wxListCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) |
4322 | static PyObject *_wrap_wxListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4323 | PyObject * _resultobj; | |
4324 | wxTextCtrl * _result; | |
4325 | wxPyListCtrl * _arg0; | |
4326 | long _arg1; | |
4327 | PyObject * _argo0 = 0; | |
4328 | char *_kwnames[] = { "self","item", NULL }; | |
4329 | ||
4330 | self = self; | |
4331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EditLabel",_kwnames,&_argo0,&_arg1)) | |
4332 | return NULL; | |
4333 | if (_argo0) { | |
4334 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4335 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EditLabel. Expected _wxPyListCtrl_p."); | |
4337 | return NULL; | |
4338 | } | |
4339 | } | |
4340 | { | |
4268f798 | 4341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4342 | _result = (wxTextCtrl *)wxListCtrl_EditLabel(_arg0,_arg1); |
c7e7022c | 4343 | |
4268f798 | 4344 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4345 | if (PyErr_Occurred()) return NULL; |
4346 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
4347 | return _resultobj; | |
4348 | } | |
4349 | ||
4350 | #define wxListCtrl_EndEditLabel(_swigobj,_swigarg0) (_swigobj->EndEditLabel(_swigarg0)) | |
4351 | static PyObject *_wrap_wxListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4352 | PyObject * _resultobj; |
4353 | bool _result; | |
c7e7022c RD |
4354 | wxPyListCtrl * _arg0; |
4355 | bool _arg1; | |
1d99702e | 4356 | PyObject * _argo0 = 0; |
c7e7022c RD |
4357 | int tempbool1; |
4358 | char *_kwnames[] = { "self","cancel", NULL }; | |
8ab979d7 RD |
4359 | |
4360 | self = self; | |
c7e7022c | 4361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_EndEditLabel",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4362 | return NULL; |
1d99702e RD |
4363 | if (_argo0) { |
4364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EndEditLabel. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4367 | return NULL; |
4368 | } | |
4369 | } | |
c7e7022c RD |
4370 | _arg1 = (bool ) tempbool1; |
4371 | { | |
4268f798 | 4372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4373 | _result = (bool )wxListCtrl_EndEditLabel(_arg0,_arg1); |
c7e7022c | 4374 | |
4268f798 | 4375 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4376 | if (PyErr_Occurred()) return NULL; |
4377 | } _resultobj = Py_BuildValue("i",_result); | |
4378 | return _resultobj; | |
4379 | } | |
4380 | ||
4381 | #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
4382 | static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4383 | PyObject * _resultobj; | |
4384 | bool _result; | |
4385 | wxPyListCtrl * _arg0; | |
4386 | long _arg1; | |
4387 | PyObject * _argo0 = 0; | |
4388 | char *_kwnames[] = { "self","item", NULL }; | |
4389 | ||
4390 | self = self; | |
4391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1)) | |
4392 | return NULL; | |
4393 | if (_argo0) { | |
4394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4397 | return NULL; |
4398 | } | |
4399 | } | |
cf694132 | 4400 | { |
4268f798 | 4401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4402 | _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1); |
cf694132 | 4403 | |
4268f798 | 4404 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4405 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4406 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4407 | return _resultobj; |
4408 | } | |
4409 | ||
c7e7022c RD |
4410 | #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4411 | static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4412 | PyObject * _resultobj; |
4413 | long _result; | |
c7e7022c | 4414 | wxPyListCtrl * _arg0; |
8ab979d7 | 4415 | long _arg1; |
c7e7022c RD |
4416 | wxString * _arg2; |
4417 | bool _arg3 = (bool ) FALSE; | |
1d99702e | 4418 | PyObject * _argo0 = 0; |
c7e7022c RD |
4419 | PyObject * _obj2 = 0; |
4420 | int tempbool3 = (int) FALSE; | |
4421 | char *_kwnames[] = { "self","start","str","partial", NULL }; | |
8ab979d7 RD |
4422 | |
4423 | self = self; | |
c7e7022c | 4424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
8ab979d7 | 4425 | return NULL; |
1d99702e RD |
4426 | if (_argo0) { |
4427 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4428 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4430 | return NULL; |
4431 | } | |
4432 | } | |
4433 | { | |
c8bc7bb8 RD |
4434 | _arg2 = wxString_in_helper(_obj2); |
4435 | if (_arg2 == NULL) | |
8ab979d7 | 4436 | return NULL; |
8ab979d7 | 4437 | } |
c7e7022c | 4438 | _arg3 = (bool ) tempbool3; |
cf694132 | 4439 | { |
4268f798 | 4440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4441 | _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4442 | |
4268f798 | 4443 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4444 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4445 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 4446 | { |
c7e7022c RD |
4447 | if (_obj2) |
4448 | delete _arg2; | |
8ab979d7 RD |
4449 | } |
4450 | return _resultobj; | |
4451 | } | |
4452 | ||
c7e7022c RD |
4453 | #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1)) |
4454 | static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4455 | PyObject * _resultobj; |
c7e7022c RD |
4456 | long _result; |
4457 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4458 | long _arg1; |
4459 | long _arg2; | |
1d99702e | 4460 | PyObject * _argo0 = 0; |
c7e7022c | 4461 | char *_kwnames[] = { "self","start","data", NULL }; |
8ab979d7 RD |
4462 | |
4463 | self = self; | |
c7e7022c | 4464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4465 | return NULL; |
1d99702e RD |
4466 | if (_argo0) { |
4467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4470 | return NULL; |
4471 | } | |
4472 | } | |
cf694132 | 4473 | { |
4268f798 | 4474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4475 | _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2); |
cf694132 | 4476 | |
4268f798 | 4477 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4478 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4479 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4480 | return _resultobj; |
4481 | } | |
4482 | ||
c7e7022c RD |
4483 | #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4484 | static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4485 | PyObject * _resultobj; |
c7e7022c RD |
4486 | long _result; |
4487 | wxPyListCtrl * _arg0; | |
4488 | long _arg1; | |
4489 | wxPoint * _arg2; | |
4490 | int _arg3; | |
4491 | PyObject * _argo0 = 0; | |
4492 | wxPoint temp; | |
4493 | PyObject * _obj2 = 0; | |
4494 | char *_kwnames[] = { "self","start","pt","direction", NULL }; | |
4495 | ||
4496 | self = self; | |
4497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) | |
4498 | return NULL; | |
4499 | if (_argo0) { | |
4500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxPyListCtrl_p."); | |
4503 | return NULL; | |
4504 | } | |
4505 | } | |
4506 | { | |
4507 | _arg2 = &temp; | |
4508 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4509 | return NULL; | |
4510 | } | |
4511 | { | |
4268f798 | 4512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4513 | _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3); |
c7e7022c | 4514 | |
4268f798 | 4515 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4516 | if (PyErr_Occurred()) return NULL; |
4517 | } _resultobj = Py_BuildValue("l",_result); | |
4518 | return _resultobj; | |
4519 | } | |
4520 | ||
4521 | #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) | |
4522 | static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4523 | PyObject * _resultobj; | |
4524 | long _result; | |
4525 | wxPyListCtrl * _arg0; | |
4526 | wxPoint * _arg1; | |
4527 | int * _arg2; | |
4528 | int temp; | |
4529 | PyObject * _argo0 = 0; | |
4530 | wxPoint temp0; | |
4531 | PyObject * _obj1 = 0; | |
4532 | char *_kwnames[] = { "self","point", NULL }; | |
4533 | ||
4534 | self = self; | |
4535 | { | |
4536 | _arg2 = &temp; | |
4537 | } | |
4538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1)) | |
4539 | return NULL; | |
4540 | if (_argo0) { | |
4541 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4542 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4543 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxPyListCtrl_p."); | |
4544 | return NULL; | |
4545 | } | |
4546 | } | |
4547 | { | |
4548 | _arg1 = &temp0; | |
4549 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4550 | return NULL; | |
4551 | } | |
4552 | { | |
4268f798 | 4553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4554 | _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2); |
c7e7022c | 4555 | |
4268f798 | 4556 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4557 | if (PyErr_Occurred()) return NULL; |
4558 | } _resultobj = Py_BuildValue("l",_result); | |
4559 | { | |
4560 | PyObject *o; | |
4561 | o = PyInt_FromLong((long) (*_arg2)); | |
4562 | _resultobj = t_output_helper(_resultobj, o); | |
4563 | } | |
4564 | return _resultobj; | |
4565 | } | |
4566 | ||
4567 | #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0)) | |
4568 | static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4569 | PyObject * _resultobj; | |
4570 | long _result; | |
4571 | wxPyListCtrl * _arg0; | |
4572 | wxListItem * _arg1; | |
4573 | PyObject * _argo0 = 0; | |
4574 | PyObject * _argo1 = 0; | |
4575 | char *_kwnames[] = { "self","info", NULL }; | |
4576 | ||
4577 | self = self; | |
4578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1)) | |
4579 | return NULL; | |
4580 | if (_argo0) { | |
4581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxPyListCtrl_p."); | |
4584 | return NULL; | |
4585 | } | |
4586 | } | |
4587 | if (_argo1) { | |
7e50db3f | 4588 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { |
c7e7022c RD |
4589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p."); |
4590 | return NULL; | |
4591 | } | |
4592 | } | |
4593 | { | |
4268f798 | 4594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4595 | _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1); |
c7e7022c | 4596 | |
4268f798 | 4597 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4598 | if (PyErr_Occurred()) return NULL; |
4599 | } _resultobj = Py_BuildValue("l",_result); | |
4600 | return _resultobj; | |
4601 | } | |
4602 | ||
4603 | #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
4604 | static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4605 | PyObject * _resultobj; | |
4606 | long _result; | |
4607 | wxPyListCtrl * _arg0; | |
4608 | long _arg1; | |
4609 | wxString * _arg2; | |
4610 | PyObject * _argo0 = 0; | |
4611 | PyObject * _obj2 = 0; | |
4612 | char *_kwnames[] = { "self","index","label", NULL }; | |
4613 | ||
4614 | self = self; | |
4615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4616 | return NULL; | |
4617 | if (_argo0) { | |
4618 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4619 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxPyListCtrl_p."); | |
4621 | return NULL; | |
4622 | } | |
4623 | } | |
4624 | { | |
c8bc7bb8 RD |
4625 | _arg2 = wxString_in_helper(_obj2); |
4626 | if (_arg2 == NULL) | |
c7e7022c | 4627 | return NULL; |
c7e7022c RD |
4628 | } |
4629 | { | |
4268f798 | 4630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4631 | _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2); |
c7e7022c | 4632 | |
4268f798 | 4633 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
4634 | if (PyErr_Occurred()) return NULL; |
4635 | } _resultobj = Py_BuildValue("l",_result); | |
4636 | { | |
4637 | if (_obj2) | |
4638 | delete _arg2; | |
4639 | } | |
4640 | return _resultobj; | |
4641 | } | |
4642 | ||
4643 | #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
4644 | static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4645 | PyObject * _resultobj; | |
4646 | long _result; | |
4647 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4648 | long _arg1; |
4649 | int _arg2; | |
1d99702e | 4650 | PyObject * _argo0 = 0; |
c7e7022c | 4651 | char *_kwnames[] = { "self","index","imageIndex", NULL }; |
8ab979d7 RD |
4652 | |
4653 | self = self; | |
c7e7022c | 4654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4655 | return NULL; |
1d99702e RD |
4656 | if (_argo0) { |
4657 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4658 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4660 | return NULL; |
4661 | } | |
4662 | } | |
cf694132 | 4663 | { |
4268f798 | 4664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4665 | _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2); |
cf694132 | 4666 | |
4268f798 | 4667 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4668 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4669 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4670 | return _resultobj; |
4671 | } | |
4672 | ||
c7e7022c RD |
4673 | #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2)) |
4674 | static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4675 | PyObject * _resultobj; |
c7e7022c RD |
4676 | long _result; |
4677 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4678 | long _arg1; |
c7e7022c RD |
4679 | wxString * _arg2; |
4680 | int _arg3; | |
1d99702e | 4681 | PyObject * _argo0 = 0; |
2f90df85 | 4682 | PyObject * _obj2 = 0; |
c7e7022c | 4683 | char *_kwnames[] = { "self","index","label","imageIndex", NULL }; |
8ab979d7 RD |
4684 | |
4685 | self = self; | |
c7e7022c | 4686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4687 | return NULL; |
1d99702e RD |
4688 | if (_argo0) { |
4689 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4690 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4691 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4692 | return NULL; |
4693 | } | |
4694 | } | |
2f90df85 | 4695 | { |
c8bc7bb8 RD |
4696 | _arg2 = wxString_in_helper(_obj2); |
4697 | if (_arg2 == NULL) | |
8ab979d7 | 4698 | return NULL; |
2f90df85 | 4699 | } |
cf694132 | 4700 | { |
4268f798 | 4701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4702 | _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 4703 | |
4268f798 | 4704 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4705 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4706 | } _resultobj = Py_BuildValue("l",_result); |
4707 | { | |
4708 | if (_obj2) | |
4709 | delete _arg2; | |
4710 | } | |
8ab979d7 RD |
4711 | return _resultobj; |
4712 | } | |
4713 | ||
c7e7022c RD |
4714 | #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) |
4715 | static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4716 | PyObject * _resultobj; |
c7e7022c RD |
4717 | long _result; |
4718 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4719 | long _arg1; |
c7e7022c | 4720 | wxListItem * _arg2; |
1d99702e | 4721 | PyObject * _argo0 = 0; |
c7e7022c RD |
4722 | PyObject * _argo2 = 0; |
4723 | char *_kwnames[] = { "self","col","info", NULL }; | |
8ab979d7 RD |
4724 | |
4725 | self = self; | |
c7e7022c | 4726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 4727 | return NULL; |
1d99702e RD |
4728 | if (_argo0) { |
4729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxPyListCtrl_p."); | |
4732 | return NULL; | |
4733 | } | |
4734 | } | |
4735 | if (_argo2) { | |
7e50db3f | 4736 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { |
c7e7022c | 4737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p."); |
8ab979d7 RD |
4738 | return NULL; |
4739 | } | |
4740 | } | |
cf694132 | 4741 | { |
4268f798 | 4742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4743 | _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2); |
cf694132 | 4744 | |
4268f798 | 4745 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4746 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4747 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4748 | return _resultobj; |
4749 | } | |
4750 | ||
c7e7022c RD |
4751 | #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4752 | static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4753 | PyObject * _resultobj; |
c7e7022c RD |
4754 | long _result; |
4755 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4756 | long _arg1; |
4757 | wxString * _arg2; | |
c7e7022c RD |
4758 | int _arg3 = (int ) (wxLIST_FORMAT_LEFT); |
4759 | int _arg4 = (int ) -1; | |
1d99702e | 4760 | PyObject * _argo0 = 0; |
8ab979d7 | 4761 | PyObject * _obj2 = 0; |
c7e7022c | 4762 | char *_kwnames[] = { "self","col","heading","format","width", NULL }; |
8ab979d7 RD |
4763 | |
4764 | self = self; | |
c7e7022c | 4765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 4766 | return NULL; |
1d99702e RD |
4767 | if (_argo0) { |
4768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4771 | return NULL; |
4772 | } | |
4773 | } | |
4774 | { | |
c8bc7bb8 RD |
4775 | _arg2 = wxString_in_helper(_obj2); |
4776 | if (_arg2 == NULL) | |
8ab979d7 | 4777 | return NULL; |
8ab979d7 | 4778 | } |
cf694132 | 4779 | { |
4268f798 | 4780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4781 | _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4); |
cf694132 | 4782 | |
4268f798 | 4783 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4784 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4785 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4786 | { |
4787 | if (_obj2) | |
4788 | delete _arg2; | |
4789 | } | |
4790 | return _resultobj; | |
4791 | } | |
4792 | ||
c7e7022c RD |
4793 | #define wxListCtrl_SetItemCount(_swigobj,_swigarg0) (_swigobj->SetItemCount(_swigarg0)) |
4794 | static PyObject *_wrap_wxListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4795 | PyObject * _resultobj; |
c7e7022c | 4796 | wxPyListCtrl * _arg0; |
8ab979d7 | 4797 | long _arg1; |
1d99702e | 4798 | PyObject * _argo0 = 0; |
c7e7022c | 4799 | char *_kwnames[] = { "self","count", NULL }; |
8ab979d7 RD |
4800 | |
4801 | self = self; | |
c7e7022c | 4802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetItemCount",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4803 | return NULL; |
1d99702e RD |
4804 | if (_argo0) { |
4805 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4806 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4808 | return NULL; |
4809 | } | |
4810 | } | |
cf694132 | 4811 | { |
4268f798 | 4812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4813 | wxListCtrl_SetItemCount(_arg0,_arg1); |
cf694132 | 4814 | |
4268f798 | 4815 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4816 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4817 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4818 | _resultobj = Py_None; |
4819 | return _resultobj; | |
4820 | } | |
4821 | ||
c7e7022c RD |
4822 | #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1)) |
4823 | static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4824 | PyObject * _resultobj; |
c7e7022c RD |
4825 | bool _result; |
4826 | wxPyListCtrl * _arg0; | |
4827 | int _arg1; | |
4828 | int _arg2; | |
1d99702e | 4829 | PyObject * _argo0 = 0; |
c7e7022c | 4830 | char *_kwnames[] = { "self","dx","dy", NULL }; |
8ab979d7 RD |
4831 | |
4832 | self = self; | |
c7e7022c | 4833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4834 | return NULL; |
1d99702e RD |
4835 | if (_argo0) { |
4836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4839 | return NULL; |
4840 | } | |
4841 | } | |
cf694132 | 4842 | { |
4268f798 | 4843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4844 | _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2); |
cf694132 | 4845 | |
4268f798 | 4846 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4847 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4848 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4849 | return _resultobj; |
4850 | } | |
4851 | ||
3bd1e033 RD |
4852 | #define wxListCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
4853 | static PyObject *_wrap_wxListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4854 | PyObject * _resultobj; | |
4855 | wxPyListCtrl * _arg0; | |
4856 | long _arg1; | |
4857 | wxColour * _arg2; | |
4858 | PyObject * _argo0 = 0; | |
4859 | wxColour temp; | |
4860 | PyObject * _obj2 = 0; | |
4861 | char *_kwnames[] = { "self","item","col", NULL }; | |
4862 | ||
4863 | self = self; | |
4864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemTextColour",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4865 | return NULL; | |
4866 | if (_argo0) { | |
4867 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4868 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemTextColour. Expected _wxPyListCtrl_p."); | |
4870 | return NULL; | |
4871 | } | |
4872 | } | |
4873 | { | |
4874 | _arg2 = &temp; | |
4875 | if (! wxColour_helper(_obj2, &_arg2)) | |
4876 | return NULL; | |
4877 | } | |
4878 | { | |
4879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4880 | wxListCtrl_SetItemTextColour(_arg0,_arg1,*_arg2); | |
4881 | ||
4882 | wxPyEndAllowThreads(__tstate); | |
4883 | if (PyErr_Occurred()) return NULL; | |
4884 | } Py_INCREF(Py_None); | |
4885 | _resultobj = Py_None; | |
4886 | return _resultobj; | |
4887 | } | |
4888 | ||
4889 | #define wxListCtrl_GetItemTextColour(_swigobj,_swigarg0) (_swigobj->GetItemTextColour(_swigarg0)) | |
4890 | static PyObject *_wrap_wxListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4891 | PyObject * _resultobj; | |
4892 | wxColour * _result; | |
4893 | wxPyListCtrl * _arg0; | |
4894 | long _arg1; | |
4895 | PyObject * _argo0 = 0; | |
4896 | char *_kwnames[] = { "self","item", NULL }; | |
4897 | char _ptemp[128]; | |
4898 | ||
4899 | self = self; | |
4900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemTextColour",_kwnames,&_argo0,&_arg1)) | |
4901 | return NULL; | |
4902 | if (_argo0) { | |
4903 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4904 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemTextColour. Expected _wxPyListCtrl_p."); | |
4906 | return NULL; | |
4907 | } | |
4908 | } | |
4909 | { | |
4910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4911 | _result = new wxColour (wxListCtrl_GetItemTextColour(_arg0,_arg1)); | |
4912 | ||
4913 | wxPyEndAllowThreads(__tstate); | |
4914 | if (PyErr_Occurred()) return NULL; | |
4915 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
4916 | _resultobj = Py_BuildValue("s",_ptemp); | |
4917 | return _resultobj; | |
4918 | } | |
4919 | ||
4920 | #define wxListCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
4921 | static PyObject *_wrap_wxListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4922 | PyObject * _resultobj; | |
4923 | wxPyListCtrl * _arg0; | |
4924 | long _arg1; | |
4925 | wxColour * _arg2; | |
4926 | PyObject * _argo0 = 0; | |
4927 | wxColour temp; | |
4928 | PyObject * _obj2 = 0; | |
4929 | char *_kwnames[] = { "self","item","col", NULL }; | |
4930 | ||
4931 | self = self; | |
4932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4933 | return NULL; | |
4934 | if (_argo0) { | |
4935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemBackgroundColour. Expected _wxPyListCtrl_p."); | |
4938 | return NULL; | |
4939 | } | |
4940 | } | |
4941 | { | |
4942 | _arg2 = &temp; | |
4943 | if (! wxColour_helper(_obj2, &_arg2)) | |
4944 | return NULL; | |
4945 | } | |
4946 | { | |
4947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4948 | wxListCtrl_SetItemBackgroundColour(_arg0,_arg1,*_arg2); | |
4949 | ||
4950 | wxPyEndAllowThreads(__tstate); | |
4951 | if (PyErr_Occurred()) return NULL; | |
4952 | } Py_INCREF(Py_None); | |
4953 | _resultobj = Py_None; | |
4954 | return _resultobj; | |
4955 | } | |
4956 | ||
4957 | #define wxListCtrl_GetItemBackgroundColour(_swigobj,_swigarg0) (_swigobj->GetItemBackgroundColour(_swigarg0)) | |
4958 | static PyObject *_wrap_wxListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4959 | PyObject * _resultobj; | |
4960 | wxColour * _result; | |
4961 | wxPyListCtrl * _arg0; | |
4962 | long _arg1; | |
4963 | PyObject * _argo0 = 0; | |
4964 | char *_kwnames[] = { "self","item", NULL }; | |
4965 | char _ptemp[128]; | |
4966 | ||
4967 | self = self; | |
4968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemBackgroundColour",_kwnames,&_argo0,&_arg1)) | |
4969 | return NULL; | |
4970 | if (_argo0) { | |
4971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemBackgroundColour. Expected _wxPyListCtrl_p."); | |
4974 | return NULL; | |
4975 | } | |
4976 | } | |
4977 | { | |
4978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4979 | _result = new wxColour (wxListCtrl_GetItemBackgroundColour(_arg0,_arg1)); | |
4980 | ||
4981 | wxPyEndAllowThreads(__tstate); | |
4982 | if (PyErr_Occurred()) return NULL; | |
4983 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
4984 | _resultobj = Py_BuildValue("s",_ptemp); | |
4985 | return _resultobj; | |
4986 | } | |
4987 | ||
c7e7022c | 4988 | static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject * func) { |
dcd38683 RD |
4989 | if (!PyCallable_Check(func)) |
4990 | return FALSE; | |
f6bcfd97 | 4991 | return self->SortItems(wxPyListCtrl_SortItems, (long)func); |
dcd38683 RD |
4992 | } |
4993 | static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4994 | PyObject * _resultobj; | |
4995 | bool _result; | |
c7e7022c | 4996 | wxPyListCtrl * _arg0; |
dcd38683 RD |
4997 | PyObject * _arg1; |
4998 | PyObject * _argo0 = 0; | |
4999 | PyObject * _obj1 = 0; | |
5000 | char *_kwnames[] = { "self","func", NULL }; | |
5001 | ||
5002 | self = self; | |
5003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1)) | |
5004 | return NULL; | |
5005 | if (_argo0) { | |
5006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
5007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxPyListCtrl_p."); | |
dcd38683 RD |
5009 | return NULL; |
5010 | } | |
5011 | } | |
5012 | { | |
5013 | _arg1 = _obj1; | |
5014 | } | |
5015 | { | |
4268f798 | 5016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5017 | _result = (bool )wxPyListCtrl_SortItems(_arg0,_arg1); |
dcd38683 | 5018 | |
4268f798 | 5019 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5020 | if (PyErr_Occurred()) return NULL; |
dcd38683 RD |
5021 | } _resultobj = Py_BuildValue("i",_result); |
5022 | return _resultobj; | |
5023 | } | |
5024 | ||
6af85fcd RD |
5025 | static wxWindow * wxPyListCtrl_GetMainWindow(wxPyListCtrl *self) { |
5026 | #ifdef __WXMSW__ | |
5027 | return self; | |
5028 | #else | |
032b1ef1 | 5029 | return (wxWindow*)self->m_mainWin; |
6af85fcd RD |
5030 | #endif |
5031 | } | |
5032 | static PyObject *_wrap_wxListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5033 | PyObject * _resultobj; | |
5034 | wxWindow * _result; | |
5035 | wxPyListCtrl * _arg0; | |
5036 | PyObject * _argo0 = 0; | |
5037 | char *_kwnames[] = { "self", NULL }; | |
5038 | ||
5039 | self = self; | |
5040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetMainWindow",_kwnames,&_argo0)) | |
5041 | return NULL; | |
5042 | if (_argo0) { | |
5043 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5044 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
5045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetMainWindow. Expected _wxPyListCtrl_p."); | |
5046 | return NULL; | |
5047 | } | |
5048 | } | |
5049 | { | |
5050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5051 | _result = (wxWindow *)wxPyListCtrl_GetMainWindow(_arg0); | |
5052 | ||
5053 | wxPyEndAllowThreads(__tstate); | |
5054 | if (PyErr_Occurred()) return NULL; | |
5055 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5056 | return _resultobj; | |
5057 | } | |
5058 | ||
6d19860f RD |
5059 | static void *SwigwxListViewTowxPyListCtrl(void *ptr) { |
5060 | wxListView *src; | |
5061 | wxPyListCtrl *dest; | |
5062 | src = (wxListView *) ptr; | |
5063 | dest = (wxPyListCtrl *) src; | |
5064 | return (void *) dest; | |
5065 | } | |
5066 | ||
5067 | static void *SwigwxListViewTowxControl(void *ptr) { | |
5068 | wxListView *src; | |
5069 | wxControl *dest; | |
5070 | src = (wxListView *) ptr; | |
5071 | dest = (wxControl *) src; | |
5072 | return (void *) dest; | |
5073 | } | |
5074 | ||
5075 | static void *SwigwxListViewTowxWindow(void *ptr) { | |
5076 | wxListView *src; | |
5077 | wxWindow *dest; | |
5078 | src = (wxListView *) ptr; | |
5079 | dest = (wxWindow *) src; | |
5080 | return (void *) dest; | |
5081 | } | |
5082 | ||
5083 | static void *SwigwxListViewTowxEvtHandler(void *ptr) { | |
5084 | wxListView *src; | |
5085 | wxEvtHandler *dest; | |
5086 | src = (wxListView *) ptr; | |
5087 | dest = (wxEvtHandler *) src; | |
5088 | return (void *) dest; | |
5089 | } | |
5090 | ||
5091 | static void *SwigwxListViewTowxObject(void *ptr) { | |
5092 | wxListView *src; | |
5093 | wxObject *dest; | |
5094 | src = (wxListView *) ptr; | |
5095 | dest = (wxObject *) src; | |
5096 | return (void *) dest; | |
5097 | } | |
5098 | ||
5099 | #define new_wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5100 | static PyObject *_wrap_new_wxListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5101 | PyObject * _resultobj; | |
5102 | wxListView * _result; | |
5103 | wxWindow * _arg0; | |
5104 | wxWindowID _arg1 = (wxWindowID ) -1; | |
5105 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
5106 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5107 | long _arg4 = (long ) (wxLC_REPORT); | |
5108 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 5109 | wxString * _arg6 = (wxString *) &wxPyListCtrlNameStr; |
6d19860f RD |
5110 | PyObject * _argo0 = 0; |
5111 | wxPoint temp; | |
5112 | PyObject * _obj2 = 0; | |
5113 | wxSize temp0; | |
5114 | PyObject * _obj3 = 0; | |
5115 | PyObject * _argo5 = 0; | |
5116 | PyObject * _obj6 = 0; | |
5117 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
5118 | char _ptemp[128]; | |
5119 | ||
5120 | self = self; | |
5121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListView",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) | |
5122 | return NULL; | |
5123 | if (_argo0) { | |
5124 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5125 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5126 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListView. Expected _wxWindow_p."); | |
5127 | return NULL; | |
5128 | } | |
5129 | } | |
5130 | if (_obj2) | |
5131 | { | |
5132 | _arg2 = &temp; | |
5133 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5134 | return NULL; | |
5135 | } | |
5136 | if (_obj3) | |
5137 | { | |
5138 | _arg3 = &temp0; | |
5139 | if (! wxSize_helper(_obj3, &_arg3)) | |
5140 | return NULL; | |
5141 | } | |
5142 | if (_argo5) { | |
7e50db3f | 5143 | if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { |
6d19860f RD |
5144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListView. Expected _wxValidator_p."); |
5145 | return NULL; | |
5146 | } | |
5147 | } | |
5148 | if (_obj6) | |
5149 | { | |
c8bc7bb8 RD |
5150 | _arg6 = wxString_in_helper(_obj6); |
5151 | if (_arg6 == NULL) | |
6d19860f | 5152 | return NULL; |
6d19860f RD |
5153 | } |
5154 | { | |
4268f798 | 5155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5156 | _result = (wxListView *)new_wxListView(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
6d19860f | 5157 | |
4268f798 | 5158 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5159 | if (PyErr_Occurred()) return NULL; |
5160 | } if (_result) { | |
5161 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5162 | _resultobj = Py_BuildValue("s",_ptemp); | |
5163 | } else { | |
5164 | Py_INCREF(Py_None); | |
5165 | _resultobj = Py_None; | |
5166 | } | |
5167 | { | |
5168 | if (_obj6) | |
5169 | delete _arg6; | |
5170 | } | |
5171 | return _resultobj; | |
5172 | } | |
5173 | ||
5174 | #define new_wxPreListView() (new wxListView()) | |
5175 | static PyObject *_wrap_new_wxPreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5176 | PyObject * _resultobj; | |
5177 | wxListView * _result; | |
5178 | char *_kwnames[] = { NULL }; | |
5179 | char _ptemp[128]; | |
5180 | ||
5181 | self = self; | |
5182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListView",_kwnames)) | |
5183 | return NULL; | |
5184 | { | |
4268f798 | 5185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5186 | _result = (wxListView *)new_wxPreListView(); |
6d19860f | 5187 | |
4268f798 | 5188 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5189 | if (PyErr_Occurred()) return NULL; |
5190 | } if (_result) { | |
5191 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5192 | _resultobj = Py_BuildValue("s",_ptemp); | |
5193 | } else { | |
5194 | Py_INCREF(Py_None); | |
5195 | _resultobj = Py_None; | |
5196 | } | |
5197 | return _resultobj; | |
5198 | } | |
5199 | ||
5200 | #define wxListView_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5201 | static PyObject *_wrap_wxListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5202 | PyObject * _resultobj; | |
5203 | bool _result; | |
5204 | wxListView * _arg0; | |
5205 | wxWindow * _arg1; | |
5206 | wxWindowID _arg2 = (wxWindowID ) -1; | |
5207 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5208 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5209 | long _arg5 = (long ) (wxLC_REPORT); | |
5210 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 5211 | wxString * _arg7 = (wxString *) &wxPyListCtrlNameStr; |
6d19860f RD |
5212 | PyObject * _argo0 = 0; |
5213 | PyObject * _argo1 = 0; | |
5214 | wxPoint temp; | |
5215 | PyObject * _obj3 = 0; | |
5216 | wxSize temp0; | |
5217 | PyObject * _obj4 = 0; | |
5218 | PyObject * _argo6 = 0; | |
5219 | PyObject * _obj7 = 0; | |
5220 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
5221 | ||
5222 | self = self; | |
5223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListView_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
5224 | return NULL; | |
5225 | if (_argo0) { | |
5226 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5227 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Create. Expected _wxListView_p."); | |
5229 | return NULL; | |
5230 | } | |
5231 | } | |
5232 | if (_argo1) { | |
5233 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5234 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListView_Create. Expected _wxWindow_p."); | |
5236 | return NULL; | |
5237 | } | |
5238 | } | |
5239 | if (_obj3) | |
5240 | { | |
5241 | _arg3 = &temp; | |
5242 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5243 | return NULL; | |
5244 | } | |
5245 | if (_obj4) | |
5246 | { | |
5247 | _arg4 = &temp0; | |
5248 | if (! wxSize_helper(_obj4, &_arg4)) | |
5249 | return NULL; | |
5250 | } | |
5251 | if (_argo6) { | |
7e50db3f | 5252 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { |
6d19860f RD |
5253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListView_Create. Expected _wxValidator_p."); |
5254 | return NULL; | |
5255 | } | |
5256 | } | |
5257 | if (_obj7) | |
5258 | { | |
c8bc7bb8 RD |
5259 | _arg7 = wxString_in_helper(_obj7); |
5260 | if (_arg7 == NULL) | |
6d19860f | 5261 | return NULL; |
6d19860f RD |
5262 | } |
5263 | { | |
4268f798 | 5264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5265 | _result = (bool )wxListView_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
6d19860f | 5266 | |
4268f798 | 5267 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5268 | if (PyErr_Occurred()) return NULL; |
5269 | } _resultobj = Py_BuildValue("i",_result); | |
5270 | { | |
5271 | if (_obj7) | |
5272 | delete _arg7; | |
5273 | } | |
5274 | return _resultobj; | |
5275 | } | |
5276 | ||
5277 | #define wxListView_Select(_swigobj,_swigarg0,_swigarg1) (_swigobj->Select(_swigarg0,_swigarg1)) | |
5278 | static PyObject *_wrap_wxListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5279 | PyObject * _resultobj; | |
5280 | wxListView * _arg0; | |
5281 | long _arg1; | |
5282 | bool _arg2 = (bool ) TRUE; | |
5283 | PyObject * _argo0 = 0; | |
5284 | int tempbool2 = (int) TRUE; | |
5285 | char *_kwnames[] = { "self","n","on", NULL }; | |
5286 | ||
5287 | self = self; | |
5288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListView_Select",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
5289 | return NULL; | |
5290 | if (_argo0) { | |
5291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Select. Expected _wxListView_p."); | |
5294 | return NULL; | |
5295 | } | |
5296 | } | |
5297 | _arg2 = (bool ) tempbool2; | |
5298 | { | |
4268f798 | 5299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5300 | wxListView_Select(_arg0,_arg1,_arg2); |
6d19860f | 5301 | |
4268f798 | 5302 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5303 | if (PyErr_Occurred()) return NULL; |
5304 | } Py_INCREF(Py_None); | |
5305 | _resultobj = Py_None; | |
5306 | return _resultobj; | |
5307 | } | |
5308 | ||
5309 | #define wxListView_Focus(_swigobj,_swigarg0) (_swigobj->Focus(_swigarg0)) | |
5310 | static PyObject *_wrap_wxListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5311 | PyObject * _resultobj; | |
5312 | wxListView * _arg0; | |
5313 | long _arg1; | |
5314 | PyObject * _argo0 = 0; | |
5315 | char *_kwnames[] = { "self","index", NULL }; | |
5316 | ||
5317 | self = self; | |
5318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_Focus",_kwnames,&_argo0,&_arg1)) | |
5319 | return NULL; | |
5320 | if (_argo0) { | |
5321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Focus. Expected _wxListView_p."); | |
5324 | return NULL; | |
5325 | } | |
5326 | } | |
5327 | { | |
4268f798 | 5328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5329 | wxListView_Focus(_arg0,_arg1); |
6d19860f | 5330 | |
4268f798 | 5331 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5332 | if (PyErr_Occurred()) return NULL; |
5333 | } Py_INCREF(Py_None); | |
5334 | _resultobj = Py_None; | |
5335 | return _resultobj; | |
5336 | } | |
5337 | ||
5338 | #define wxListView_GetFocusedItem(_swigobj) (_swigobj->GetFocusedItem()) | |
5339 | static PyObject *_wrap_wxListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5340 | PyObject * _resultobj; | |
5341 | long _result; | |
5342 | wxListView * _arg0; | |
5343 | PyObject * _argo0 = 0; | |
5344 | char *_kwnames[] = { "self", NULL }; | |
5345 | ||
5346 | self = self; | |
5347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFocusedItem",_kwnames,&_argo0)) | |
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_GetFocusedItem. Expected _wxListView_p."); | |
5353 | return NULL; | |
5354 | } | |
5355 | } | |
5356 | { | |
4268f798 | 5357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5358 | _result = (long )wxListView_GetFocusedItem(_arg0); |
6d19860f | 5359 | |
4268f798 | 5360 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5361 | if (PyErr_Occurred()) return NULL; |
5362 | } _resultobj = Py_BuildValue("l",_result); | |
5363 | return _resultobj; | |
5364 | } | |
5365 | ||
5366 | #define wxListView_GetNextSelected(_swigobj,_swigarg0) (_swigobj->GetNextSelected(_swigarg0)) | |
5367 | static PyObject *_wrap_wxListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5368 | PyObject * _resultobj; | |
5369 | long _result; | |
5370 | wxListView * _arg0; | |
5371 | long _arg1; | |
5372 | PyObject * _argo0 = 0; | |
5373 | char *_kwnames[] = { "self","item", NULL }; | |
5374 | ||
5375 | self = self; | |
5376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_GetNextSelected",_kwnames,&_argo0,&_arg1)) | |
5377 | return NULL; | |
5378 | if (_argo0) { | |
5379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetNextSelected. Expected _wxListView_p."); | |
5382 | return NULL; | |
5383 | } | |
5384 | } | |
5385 | { | |
4268f798 | 5386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5387 | _result = (long )wxListView_GetNextSelected(_arg0,_arg1); |
6d19860f | 5388 | |
4268f798 | 5389 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5390 | if (PyErr_Occurred()) return NULL; |
5391 | } _resultobj = Py_BuildValue("l",_result); | |
5392 | return _resultobj; | |
5393 | } | |
5394 | ||
5395 | #define wxListView_GetFirstSelected(_swigobj) (_swigobj->GetFirstSelected()) | |
5396 | static PyObject *_wrap_wxListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5397 | PyObject * _resultobj; | |
5398 | long _result; | |
5399 | wxListView * _arg0; | |
5400 | PyObject * _argo0 = 0; | |
5401 | char *_kwnames[] = { "self", NULL }; | |
5402 | ||
5403 | self = self; | |
5404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFirstSelected",_kwnames,&_argo0)) | |
5405 | return NULL; | |
5406 | if (_argo0) { | |
5407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFirstSelected. Expected _wxListView_p."); | |
5410 | return NULL; | |
5411 | } | |
5412 | } | |
5413 | { | |
4268f798 | 5414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5415 | _result = (long )wxListView_GetFirstSelected(_arg0); |
6d19860f | 5416 | |
4268f798 | 5417 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5418 | if (PyErr_Occurred()) return NULL; |
5419 | } _resultobj = Py_BuildValue("l",_result); | |
5420 | return _resultobj; | |
5421 | } | |
5422 | ||
5423 | #define wxListView_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) | |
5424 | static PyObject *_wrap_wxListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5425 | PyObject * _resultobj; | |
5426 | bool _result; | |
5427 | wxListView * _arg0; | |
5428 | long _arg1; | |
5429 | PyObject * _argo0 = 0; | |
5430 | char *_kwnames[] = { "self","index", NULL }; | |
5431 | ||
5432 | self = self; | |
5433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_IsSelected",_kwnames,&_argo0,&_arg1)) | |
5434 | return NULL; | |
5435 | if (_argo0) { | |
5436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_IsSelected. Expected _wxListView_p."); | |
5439 | return NULL; | |
5440 | } | |
5441 | } | |
5442 | { | |
4268f798 | 5443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5444 | _result = (bool )wxListView_IsSelected(_arg0,_arg1); |
6d19860f | 5445 | |
4268f798 | 5446 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5447 | if (PyErr_Occurred()) return NULL; |
5448 | } _resultobj = Py_BuildValue("i",_result); | |
5449 | return _resultobj; | |
5450 | } | |
5451 | ||
5452 | #define wxListView_SetColumnImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnImage(_swigarg0,_swigarg1)) | |
5453 | static PyObject *_wrap_wxListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5454 | PyObject * _resultobj; | |
5455 | wxListView * _arg0; | |
5456 | int _arg1; | |
5457 | int _arg2; | |
5458 | PyObject * _argo0 = 0; | |
5459 | char *_kwnames[] = { "self","col","image", NULL }; | |
5460 | ||
5461 | self = self; | |
5462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListView_SetColumnImage",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5463 | return NULL; | |
5464 | if (_argo0) { | |
5465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_SetColumnImage. Expected _wxListView_p."); | |
5468 | return NULL; | |
5469 | } | |
5470 | } | |
5471 | { | |
4268f798 | 5472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5473 | wxListView_SetColumnImage(_arg0,_arg1,_arg2); |
6d19860f | 5474 | |
4268f798 | 5475 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5476 | if (PyErr_Occurred()) return NULL; |
5477 | } Py_INCREF(Py_None); | |
5478 | _resultobj = Py_None; | |
5479 | return _resultobj; | |
5480 | } | |
5481 | ||
5482 | #define wxListView_ClearColumnImage(_swigobj,_swigarg0) (_swigobj->ClearColumnImage(_swigarg0)) | |
5483 | static PyObject *_wrap_wxListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5484 | PyObject * _resultobj; | |
5485 | wxListView * _arg0; | |
5486 | int _arg1; | |
5487 | PyObject * _argo0 = 0; | |
5488 | char *_kwnames[] = { "self","col", NULL }; | |
5489 | ||
5490 | self = self; | |
5491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListView_ClearColumnImage",_kwnames,&_argo0,&_arg1)) | |
5492 | return NULL; | |
5493 | if (_argo0) { | |
5494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_ClearColumnImage. Expected _wxListView_p."); | |
5497 | return NULL; | |
5498 | } | |
5499 | } | |
5500 | { | |
4268f798 | 5501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5502 | wxListView_ClearColumnImage(_arg0,_arg1); |
6d19860f | 5503 | |
4268f798 | 5504 | wxPyEndAllowThreads(__tstate); |
6d19860f RD |
5505 | if (PyErr_Occurred()) return NULL; |
5506 | } Py_INCREF(Py_None); | |
5507 | _resultobj = Py_None; | |
5508 | return _resultobj; | |
5509 | } | |
5510 | ||
00b6c4e3 RD |
5511 | #define new_wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
5512 | static PyObject *_wrap_new_wxTreeItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5513 | PyObject * _resultobj; | |
5514 | wxTreeItemAttr * _result; | |
5515 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5516 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5517 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5518 | wxColour temp; | |
5519 | PyObject * _obj0 = 0; | |
5520 | wxColour temp0; | |
5521 | PyObject * _obj1 = 0; | |
5522 | PyObject * _argo2 = 0; | |
5523 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
5524 | char _ptemp[128]; | |
5525 | ||
5526 | self = self; | |
5527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTreeItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) | |
5528 | return NULL; | |
5529 | if (_obj0) | |
5530 | { | |
5531 | _arg0 = &temp; | |
5532 | if (! wxColour_helper(_obj0, &_arg0)) | |
5533 | return NULL; | |
5534 | } | |
5535 | if (_obj1) | |
5536 | { | |
5537 | _arg1 = &temp0; | |
5538 | if (! wxColour_helper(_obj1, &_arg1)) | |
5539 | return NULL; | |
5540 | } | |
5541 | if (_argo2) { | |
7e50db3f | 5542 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { |
00b6c4e3 RD |
5543 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTreeItemAttr. Expected _wxFont_p."); |
5544 | return NULL; | |
5545 | } | |
5546 | } | |
5547 | { | |
4268f798 | 5548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5549 | _result = (wxTreeItemAttr *)new_wxTreeItemAttr(*_arg0,*_arg1,*_arg2); |
00b6c4e3 | 5550 | |
4268f798 | 5551 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5552 | if (PyErr_Occurred()) return NULL; |
5553 | } if (_result) { | |
5554 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemAttr_p"); | |
5555 | _resultobj = Py_BuildValue("s",_ptemp); | |
5556 | } else { | |
5557 | Py_INCREF(Py_None); | |
5558 | _resultobj = Py_None; | |
5559 | } | |
5560 | return _resultobj; | |
5561 | } | |
5562 | ||
5563 | #define wxTreeItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
5564 | static PyObject *_wrap_wxTreeItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5565 | PyObject * _resultobj; | |
5566 | wxTreeItemAttr * _arg0; | |
5567 | wxColour * _arg1; | |
5568 | PyObject * _argo0 = 0; | |
5569 | wxColour temp; | |
5570 | PyObject * _obj1 = 0; | |
5571 | char *_kwnames[] = { "self","colText", NULL }; | |
5572 | ||
5573 | self = self; | |
5574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
5575 | return NULL; | |
5576 | if (_argo0) { | |
5577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetTextColour. Expected _wxTreeItemAttr_p."); | |
5580 | return NULL; | |
5581 | } | |
5582 | } | |
5583 | { | |
5584 | _arg1 = &temp; | |
5585 | if (! wxColour_helper(_obj1, &_arg1)) | |
5586 | return NULL; | |
5587 | } | |
5588 | { | |
4268f798 | 5589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5590 | wxTreeItemAttr_SetTextColour(_arg0,*_arg1); |
00b6c4e3 | 5591 | |
4268f798 | 5592 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5593 | if (PyErr_Occurred()) return NULL; |
5594 | } Py_INCREF(Py_None); | |
5595 | _resultobj = Py_None; | |
5596 | return _resultobj; | |
5597 | } | |
5598 | ||
5599 | #define wxTreeItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
5600 | static PyObject *_wrap_wxTreeItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5601 | PyObject * _resultobj; | |
5602 | wxTreeItemAttr * _arg0; | |
5603 | wxColour * _arg1; | |
5604 | PyObject * _argo0 = 0; | |
5605 | wxColour temp; | |
5606 | PyObject * _obj1 = 0; | |
5607 | char *_kwnames[] = { "self","colBack", NULL }; | |
5608 | ||
5609 | self = self; | |
5610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
5611 | return NULL; | |
5612 | if (_argo0) { | |
5613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5616 | return NULL; | |
5617 | } | |
5618 | } | |
5619 | { | |
5620 | _arg1 = &temp; | |
5621 | if (! wxColour_helper(_obj1, &_arg1)) | |
5622 | return NULL; | |
5623 | } | |
5624 | { | |
4268f798 | 5625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5626 | wxTreeItemAttr_SetBackgroundColour(_arg0,*_arg1); |
00b6c4e3 | 5627 | |
4268f798 | 5628 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5629 | if (PyErr_Occurred()) return NULL; |
5630 | } Py_INCREF(Py_None); | |
5631 | _resultobj = Py_None; | |
5632 | return _resultobj; | |
5633 | } | |
5634 | ||
5635 | #define wxTreeItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
5636 | static PyObject *_wrap_wxTreeItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5637 | PyObject * _resultobj; | |
5638 | wxTreeItemAttr * _arg0; | |
5639 | wxFont * _arg1; | |
5640 | PyObject * _argo0 = 0; | |
5641 | PyObject * _argo1 = 0; | |
5642 | char *_kwnames[] = { "self","font", NULL }; | |
5643 | ||
5644 | self = self; | |
5645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
5646 | return NULL; | |
5647 | if (_argo0) { | |
5648 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5649 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5650 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetFont. Expected _wxTreeItemAttr_p."); | |
5651 | return NULL; | |
5652 | } | |
5653 | } | |
5654 | if (_argo1) { | |
7e50db3f | 5655 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { |
00b6c4e3 RD |
5656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemAttr_SetFont. Expected _wxFont_p."); |
5657 | return NULL; | |
5658 | } | |
5659 | } | |
5660 | { | |
4268f798 | 5661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5662 | wxTreeItemAttr_SetFont(_arg0,*_arg1); |
00b6c4e3 | 5663 | |
4268f798 | 5664 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5665 | if (PyErr_Occurred()) return NULL; |
5666 | } Py_INCREF(Py_None); | |
5667 | _resultobj = Py_None; | |
5668 | return _resultobj; | |
5669 | } | |
5670 | ||
5671 | #define wxTreeItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
5672 | static PyObject *_wrap_wxTreeItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5673 | PyObject * _resultobj; | |
5674 | bool _result; | |
5675 | wxTreeItemAttr * _arg0; | |
5676 | PyObject * _argo0 = 0; | |
5677 | char *_kwnames[] = { "self", NULL }; | |
5678 | ||
5679 | self = self; | |
5680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasTextColour",_kwnames,&_argo0)) | |
5681 | return NULL; | |
5682 | if (_argo0) { | |
5683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasTextColour. Expected _wxTreeItemAttr_p."); | |
5686 | return NULL; | |
5687 | } | |
5688 | } | |
5689 | { | |
4268f798 | 5690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5691 | _result = (bool )wxTreeItemAttr_HasTextColour(_arg0); |
00b6c4e3 | 5692 | |
4268f798 | 5693 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5694 | if (PyErr_Occurred()) return NULL; |
5695 | } _resultobj = Py_BuildValue("i",_result); | |
5696 | return _resultobj; | |
5697 | } | |
5698 | ||
5699 | #define wxTreeItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
5700 | static PyObject *_wrap_wxTreeItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5701 | PyObject * _resultobj; | |
5702 | bool _result; | |
5703 | wxTreeItemAttr * _arg0; | |
5704 | PyObject * _argo0 = 0; | |
5705 | char *_kwnames[] = { "self", NULL }; | |
5706 | ||
5707 | self = self; | |
5708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
5709 | return NULL; | |
5710 | if (_argo0) { | |
5711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5714 | return NULL; | |
5715 | } | |
5716 | } | |
5717 | { | |
4268f798 | 5718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5719 | _result = (bool )wxTreeItemAttr_HasBackgroundColour(_arg0); |
00b6c4e3 | 5720 | |
4268f798 | 5721 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5722 | if (PyErr_Occurred()) return NULL; |
5723 | } _resultobj = Py_BuildValue("i",_result); | |
5724 | return _resultobj; | |
5725 | } | |
5726 | ||
5727 | #define wxTreeItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
5728 | static PyObject *_wrap_wxTreeItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5729 | PyObject * _resultobj; | |
5730 | bool _result; | |
5731 | wxTreeItemAttr * _arg0; | |
5732 | PyObject * _argo0 = 0; | |
5733 | char *_kwnames[] = { "self", NULL }; | |
5734 | ||
5735 | self = self; | |
5736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasFont",_kwnames,&_argo0)) | |
5737 | return NULL; | |
5738 | if (_argo0) { | |
5739 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5740 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasFont. Expected _wxTreeItemAttr_p."); | |
5742 | return NULL; | |
5743 | } | |
5744 | } | |
5745 | { | |
4268f798 | 5746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5747 | _result = (bool )wxTreeItemAttr_HasFont(_arg0); |
00b6c4e3 | 5748 | |
4268f798 | 5749 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
5750 | if (PyErr_Occurred()) return NULL; |
5751 | } _resultobj = Py_BuildValue("i",_result); | |
5752 | return _resultobj; | |
5753 | } | |
5754 | ||
5755 | #define wxTreeItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
5756 | static PyObject *_wrap_wxTreeItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5757 | PyObject * _resultobj; | |
5758 | wxColour * _result; | |
5759 | wxTreeItemAttr * _arg0; | |
5760 | PyObject * _argo0 = 0; | |
5761 | char *_kwnames[] = { "self", NULL }; | |
5762 | char _ptemp[128]; | |
5763 | ||
5764 | self = self; | |
5765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetTextColour",_kwnames,&_argo0)) | |
5766 | return NULL; | |
5767 | if (_argo0) { | |
5768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetTextColour. Expected _wxTreeItemAttr_p."); | |
5771 | return NULL; | |
5772 | } | |
5773 | } | |
5774 | { | |
4268f798 | 5775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5776 | _result = new wxColour (wxTreeItemAttr_GetTextColour(_arg0)); |
00b6c4e3 | 5777 | |
4268f798 | 5778 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 | 5779 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
5780 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5781 | _resultobj = Py_BuildValue("s",_ptemp); | |
00b6c4e3 RD |
5782 | return _resultobj; |
5783 | } | |
5784 | ||
5785 | #define wxTreeItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
5786 | static PyObject *_wrap_wxTreeItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5787 | PyObject * _resultobj; | |
5788 | wxColour * _result; | |
5789 | wxTreeItemAttr * _arg0; | |
5790 | PyObject * _argo0 = 0; | |
5791 | char *_kwnames[] = { "self", NULL }; | |
5792 | char _ptemp[128]; | |
5793 | ||
5794 | self = self; | |
5795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetBackgroundColour",_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_GetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5801 | return NULL; | |
5802 | } | |
5803 | } | |
5804 | { | |
4268f798 | 5805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5806 | _result = new wxColour (wxTreeItemAttr_GetBackgroundColour(_arg0)); |
00b6c4e3 | 5807 | |
4268f798 | 5808 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 | 5809 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
5810 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5811 | _resultobj = Py_BuildValue("s",_ptemp); | |
00b6c4e3 RD |
5812 | return _resultobj; |
5813 | } | |
5814 | ||
5815 | #define wxTreeItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
5816 | static PyObject *_wrap_wxTreeItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5817 | PyObject * _resultobj; | |
5818 | wxFont * _result; | |
5819 | wxTreeItemAttr * _arg0; | |
5820 | PyObject * _argo0 = 0; | |
5821 | char *_kwnames[] = { "self", NULL }; | |
5822 | char _ptemp[128]; | |
5823 | ||
5824 | self = self; | |
5825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetFont",_kwnames,&_argo0)) | |
5826 | return NULL; | |
5827 | if (_argo0) { | |
5828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetFont. Expected _wxTreeItemAttr_p."); | |
5831 | return NULL; | |
5832 | } | |
5833 | } | |
5834 | { | |
4268f798 | 5835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5836 | _result = new wxFont (wxTreeItemAttr_GetFont(_arg0)); |
00b6c4e3 | 5837 | |
4268f798 | 5838 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 | 5839 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
5840 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
5841 | _resultobj = Py_BuildValue("s",_ptemp); | |
00b6c4e3 RD |
5842 | return _resultobj; |
5843 | } | |
5844 | ||
d5c9047a | 5845 | #define new_wxTreeItemId() (new wxTreeItemId()) |
efc5f224 | 5846 | static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5847 | PyObject * _resultobj; |
d5c9047a | 5848 | wxTreeItemId * _result; |
efc5f224 | 5849 | char *_kwnames[] = { NULL }; |
d5c9047a | 5850 | char _ptemp[128]; |
8ab979d7 RD |
5851 | |
5852 | self = self; | |
efc5f224 | 5853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames)) |
8ab979d7 | 5854 | return NULL; |
cf694132 | 5855 | { |
4268f798 | 5856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5857 | _result = (wxTreeItemId *)new_wxTreeItemId(); |
cf694132 | 5858 | |
4268f798 | 5859 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5860 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5861 | } if (_result) { |
5862 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
5863 | _resultobj = Py_BuildValue("s",_ptemp); | |
5864 | } else { | |
5865 | Py_INCREF(Py_None); | |
5866 | _resultobj = Py_None; | |
5867 | } | |
8ab979d7 RD |
5868 | return _resultobj; |
5869 | } | |
5870 | ||
d5c9047a | 5871 | #define delete_wxTreeItemId(_swigobj) (delete _swigobj) |
efc5f224 | 5872 | static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5873 | PyObject * _resultobj; |
d5c9047a | 5874 | wxTreeItemId * _arg0; |
1d99702e | 5875 | PyObject * _argo0 = 0; |
efc5f224 | 5876 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5877 | |
5878 | self = self; | |
efc5f224 | 5879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0)) |
8ab979d7 | 5880 | return NULL; |
1d99702e RD |
5881 | if (_argo0) { |
5882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 5884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
5885 | return NULL; |
5886 | } | |
5887 | } | |
cf694132 | 5888 | { |
4268f798 | 5889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5890 | delete_wxTreeItemId(_arg0); |
cf694132 | 5891 | |
4268f798 | 5892 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5893 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5894 | } Py_INCREF(Py_None); |
d5c9047a | 5895 | _resultobj = Py_None; |
8ab979d7 RD |
5896 | return _resultobj; |
5897 | } | |
5898 | ||
d5c9047a | 5899 | #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk()) |
efc5f224 | 5900 | static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5901 | PyObject * _resultobj; |
d5c9047a RD |
5902 | bool _result; |
5903 | wxTreeItemId * _arg0; | |
1d99702e | 5904 | PyObject * _argo0 = 0; |
efc5f224 | 5905 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5906 | |
5907 | self = self; | |
efc5f224 | 5908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0)) |
8ab979d7 | 5909 | return NULL; |
1d99702e RD |
5910 | if (_argo0) { |
5911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 5913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
5914 | return NULL; |
5915 | } | |
5916 | } | |
cf694132 | 5917 | { |
4268f798 | 5918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5919 | _result = (bool )wxTreeItemId_IsOk(_arg0); |
cf694132 | 5920 | |
4268f798 | 5921 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5922 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5923 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5924 | return _resultobj; |
5925 | } | |
5926 | ||
f6bcfd97 | 5927 | static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) { |
c368d904 | 5928 | if (! other) return -1; |
f6bcfd97 BP |
5929 | return *self != *other; |
5930 | } | |
5931 | static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5932 | PyObject * _resultobj; | |
5933 | int _result; | |
5934 | wxTreeItemId * _arg0; | |
5935 | wxTreeItemId * _arg1; | |
5936 | PyObject * _argo0 = 0; | |
5937 | PyObject * _argo1 = 0; | |
5938 | char *_kwnames[] = { "self","other", NULL }; | |
5939 | ||
5940 | self = self; | |
5941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1)) | |
5942 | return NULL; | |
5943 | if (_argo0) { | |
5944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5947 | return NULL; | |
5948 | } | |
5949 | } | |
5950 | if (_argo1) { | |
5951 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5952 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
5953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5954 | return NULL; | |
5955 | } | |
5956 | } | |
5957 | { | |
4268f798 | 5958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5959 | _result = (int )wxTreeItemId___cmp__(_arg0,_arg1); |
f6bcfd97 | 5960 | |
4268f798 | 5961 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5962 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5963 | } _resultobj = Py_BuildValue("i",_result); |
5964 | return _resultobj; | |
5965 | } | |
5966 | ||
9416aa89 RD |
5967 | static void *SwigwxPyTreeItemDataTowxObject(void *ptr) { |
5968 | wxPyTreeItemData *src; | |
5969 | wxObject *dest; | |
5970 | src = (wxPyTreeItemData *) ptr; | |
5971 | dest = (wxObject *) src; | |
5972 | return (void *) dest; | |
5973 | } | |
5974 | ||
cf694132 | 5975 | #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) |
efc5f224 | 5976 | static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5977 | PyObject * _resultobj; |
cf694132 | 5978 | wxPyTreeItemData * _result; |
1d99702e | 5979 | PyObject * _arg0 = (PyObject *) NULL; |
cf694132 | 5980 | PyObject * _obj0 = 0; |
efc5f224 | 5981 | char *_kwnames[] = { "obj", NULL }; |
d5c9047a | 5982 | char _ptemp[128]; |
8ab979d7 RD |
5983 | |
5984 | self = self; | |
efc5f224 | 5985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0)) |
8ab979d7 | 5986 | return NULL; |
cf694132 RD |
5987 | if (_obj0) |
5988 | { | |
5989 | _arg0 = _obj0; | |
5990 | } | |
5991 | { | |
4268f798 | 5992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5993 | _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0); |
cf694132 | 5994 | |
4268f798 | 5995 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5996 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5997 | } if (_result) { |
5998 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
5999 | _resultobj = Py_BuildValue("s",_ptemp); | |
6000 | } else { | |
6001 | Py_INCREF(Py_None); | |
6002 | _resultobj = Py_None; | |
6003 | } | |
8ab979d7 RD |
6004 | return _resultobj; |
6005 | } | |
6006 | ||
cf694132 | 6007 | #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData()) |
efc5f224 | 6008 | static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
6009 | PyObject * _resultobj; |
6010 | PyObject * _result; | |
6011 | wxPyTreeItemData * _arg0; | |
1d99702e | 6012 | PyObject * _argo0 = 0; |
efc5f224 | 6013 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
6014 | |
6015 | self = self; | |
efc5f224 | 6016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0)) |
cf694132 | 6017 | return NULL; |
1d99702e RD |
6018 | if (_argo0) { |
6019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 RD |
6021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p."); |
6022 | return NULL; | |
6023 | } | |
6024 | } | |
6025 | { | |
4268f798 | 6026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6027 | _result = (PyObject *)wxTreeItemData_GetData(_arg0); |
cf694132 | 6028 | |
4268f798 | 6029 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6030 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
6031 | }{ |
6032 | _resultobj = _result; | |
6033 | } | |
6034 | return _resultobj; | |
6035 | } | |
6036 | ||
6037 | #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
efc5f224 | 6038 | static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6039 | PyObject * _resultobj; |
cf694132 RD |
6040 | wxPyTreeItemData * _arg0; |
6041 | PyObject * _arg1; | |
1d99702e | 6042 | PyObject * _argo0 = 0; |
cf694132 | 6043 | PyObject * _obj1 = 0; |
efc5f224 | 6044 | char *_kwnames[] = { "self","obj", NULL }; |
8ab979d7 RD |
6045 | |
6046 | self = self; | |
efc5f224 | 6047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6048 | return NULL; |
1d99702e RD |
6049 | if (_argo0) { |
6050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 6052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
6053 | return NULL; |
6054 | } | |
6055 | } | |
cf694132 RD |
6056 | { |
6057 | _arg1 = _obj1; | |
6058 | } | |
6059 | { | |
4268f798 | 6060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6061 | wxTreeItemData_SetData(_arg0,_arg1); |
cf694132 | 6062 | |
4268f798 | 6063 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6064 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6065 | } Py_INCREF(Py_None); |
d5c9047a | 6066 | _resultobj = Py_None; |
8ab979d7 RD |
6067 | return _resultobj; |
6068 | } | |
6069 | ||
630d84f2 | 6070 | #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 6071 | static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6072 | PyObject * _resultobj; |
d5c9047a | 6073 | wxTreeItemId * _result; |
cf694132 | 6074 | wxPyTreeItemData * _arg0; |
1d99702e | 6075 | PyObject * _argo0 = 0; |
efc5f224 | 6076 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6077 | char _ptemp[128]; |
6078 | ||
6079 | self = self; | |
efc5f224 | 6080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0)) |
8ab979d7 | 6081 | return NULL; |
1d99702e RD |
6082 | if (_argo0) { |
6083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 6085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
6086 | return NULL; |
6087 | } | |
6088 | } | |
cf694132 | 6089 | { |
4268f798 | 6090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6091 | const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0); |
d5c9047a | 6092 | _result = (wxTreeItemId *) &_result_ref; |
cf694132 | 6093 | |
4268f798 | 6094 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6095 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6096 | } if (_result) { |
6097 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
6098 | _resultobj = Py_BuildValue("s",_ptemp); | |
6099 | } else { | |
6100 | Py_INCREF(Py_None); | |
6101 | _resultobj = Py_None; | |
6102 | } | |
8ab979d7 RD |
6103 | return _resultobj; |
6104 | } | |
6105 | ||
630d84f2 | 6106 | #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
efc5f224 | 6107 | static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
630d84f2 | 6108 | PyObject * _resultobj; |
cf694132 | 6109 | wxPyTreeItemData * _arg0; |
630d84f2 | 6110 | wxTreeItemId * _arg1; |
1d99702e RD |
6111 | PyObject * _argo0 = 0; |
6112 | PyObject * _argo1 = 0; | |
efc5f224 | 6113 | char *_kwnames[] = { "self","id", NULL }; |
630d84f2 RD |
6114 | |
6115 | self = self; | |
efc5f224 | 6116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1)) |
630d84f2 | 6117 | return NULL; |
1d99702e RD |
6118 | if (_argo0) { |
6119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 6121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p."); |
630d84f2 RD |
6122 | return NULL; |
6123 | } | |
6124 | } | |
1d99702e | 6125 | if (_argo1) { |
7e50db3f | 6126 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
630d84f2 RD |
6127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p."); |
6128 | return NULL; | |
6129 | } | |
6130 | } | |
cf694132 | 6131 | { |
4268f798 | 6132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6133 | wxTreeItemData_SetId(_arg0,*_arg1); |
cf694132 | 6134 | |
4268f798 | 6135 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6136 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6137 | } Py_INCREF(Py_None); |
630d84f2 RD |
6138 | _resultobj = Py_None; |
6139 | return _resultobj; | |
6140 | } | |
6141 | ||
8bf5d46e RD |
6142 | static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) { |
6143 | wxTreeEvent *src; | |
6144 | wxNotifyEvent *dest; | |
6145 | src = (wxTreeEvent *) ptr; | |
6146 | dest = (wxNotifyEvent *) src; | |
6147 | return (void *) dest; | |
6148 | } | |
6149 | ||
8ab979d7 RD |
6150 | static void *SwigwxTreeEventTowxCommandEvent(void *ptr) { |
6151 | wxTreeEvent *src; | |
6152 | wxCommandEvent *dest; | |
6153 | src = (wxTreeEvent *) ptr; | |
6154 | dest = (wxCommandEvent *) src; | |
6155 | return (void *) dest; | |
6156 | } | |
6157 | ||
6158 | static void *SwigwxTreeEventTowxEvent(void *ptr) { | |
6159 | wxTreeEvent *src; | |
6160 | wxEvent *dest; | |
6161 | src = (wxTreeEvent *) ptr; | |
6162 | dest = (wxEvent *) src; | |
6163 | return (void *) dest; | |
6164 | } | |
6165 | ||
9416aa89 RD |
6166 | static void *SwigwxTreeEventTowxObject(void *ptr) { |
6167 | wxTreeEvent *src; | |
6168 | wxObject *dest; | |
6169 | src = (wxTreeEvent *) ptr; | |
6170 | dest = (wxObject *) src; | |
6171 | return (void *) dest; | |
6172 | } | |
6173 | ||
00b6c4e3 RD |
6174 | #define new_wxTreeEvent(_swigarg0,_swigarg1) (new wxTreeEvent(_swigarg0,_swigarg1)) |
6175 | static PyObject *_wrap_new_wxTreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6176 | PyObject * _resultobj; | |
6177 | wxTreeEvent * _result; | |
6178 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
6179 | int _arg1 = (int ) 0; | |
6180 | char *_kwnames[] = { "commandType","id", NULL }; | |
6181 | char _ptemp[128]; | |
6182 | ||
6183 | self = self; | |
6184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxTreeEvent",_kwnames,&_arg0,&_arg1)) | |
6185 | return NULL; | |
6186 | { | |
4268f798 | 6187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6188 | _result = (wxTreeEvent *)new_wxTreeEvent(_arg0,_arg1); |
00b6c4e3 | 6189 | |
4268f798 | 6190 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
6191 | if (PyErr_Occurred()) return NULL; |
6192 | } if (_result) { | |
6193 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeEvent_p"); | |
6194 | _resultobj = Py_BuildValue("s",_ptemp); | |
6195 | } else { | |
6196 | Py_INCREF(Py_None); | |
6197 | _resultobj = Py_None; | |
6198 | } | |
6199 | return _resultobj; | |
6200 | } | |
6201 | ||
d5c9047a | 6202 | #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
efc5f224 | 6203 | static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6204 | PyObject * _resultobj; |
d5c9047a | 6205 | wxTreeItemId * _result; |
8ab979d7 | 6206 | wxTreeEvent * _arg0; |
1d99702e | 6207 | PyObject * _argo0 = 0; |
efc5f224 | 6208 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6209 | char _ptemp[128]; |
8ab979d7 RD |
6210 | |
6211 | self = self; | |
efc5f224 | 6212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 6213 | return NULL; |
1d99702e RD |
6214 | if (_argo0) { |
6215 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6218 | return NULL; |
6219 | } | |
6220 | } | |
cf694132 | 6221 | { |
4268f798 | 6222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6223 | _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0)); |
cf694132 | 6224 | |
4268f798 | 6225 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6226 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6227 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 6228 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6229 | return _resultobj; |
6230 | } | |
6231 | ||
d5c9047a | 6232 | #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
efc5f224 | 6233 | static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6234 | PyObject * _resultobj; |
d5c9047a | 6235 | wxTreeItemId * _result; |
8ab979d7 | 6236 | wxTreeEvent * _arg0; |
1d99702e | 6237 | PyObject * _argo0 = 0; |
efc5f224 | 6238 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6239 | char _ptemp[128]; |
6240 | ||
6241 | self = self; | |
efc5f224 | 6242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0)) |
8ab979d7 | 6243 | return NULL; |
1d99702e RD |
6244 | if (_argo0) { |
6245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6248 | return NULL; |
6249 | } | |
6250 | } | |
cf694132 | 6251 | { |
4268f798 | 6252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6253 | _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0)); |
cf694132 | 6254 | |
4268f798 | 6255 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6256 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6257 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8ab979d7 RD |
6258 | _resultobj = Py_BuildValue("s",_ptemp); |
6259 | return _resultobj; | |
6260 | } | |
6261 | ||
d5c9047a | 6262 | #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
efc5f224 | 6263 | static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6264 | PyObject * _resultobj; |
d5c9047a | 6265 | wxPoint * _result; |
8ab979d7 | 6266 | wxTreeEvent * _arg0; |
1d99702e | 6267 | PyObject * _argo0 = 0; |
efc5f224 | 6268 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6269 | char _ptemp[128]; |
8ab979d7 RD |
6270 | |
6271 | self = self; | |
efc5f224 | 6272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 6273 | return NULL; |
1d99702e RD |
6274 | if (_argo0) { |
6275 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6276 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6278 | return NULL; |
6279 | } | |
6280 | } | |
cf694132 | 6281 | { |
4268f798 | 6282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6283 | _result = new wxPoint (wxTreeEvent_GetPoint(_arg0)); |
cf694132 | 6284 | |
4268f798 | 6285 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6286 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6287 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
d5c9047a | 6288 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6289 | return _resultobj; |
6290 | } | |
6291 | ||
ecc08ead RD |
6292 | #define wxTreeEvent_GetKeyEvent(_swigobj) (_swigobj->GetKeyEvent()) |
6293 | static PyObject *_wrap_wxTreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6294 | PyObject * _resultobj; | |
6295 | wxKeyEvent * _result; | |
6296 | wxTreeEvent * _arg0; | |
6297 | PyObject * _argo0 = 0; | |
6298 | char *_kwnames[] = { "self", NULL }; | |
6299 | char _ptemp[128]; | |
6300 | ||
6301 | self = self; | |
6302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetKeyEvent",_kwnames,&_argo0)) | |
6303 | return NULL; | |
6304 | if (_argo0) { | |
6305 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6306 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetKeyEvent. Expected _wxTreeEvent_p."); | |
6308 | return NULL; | |
6309 | } | |
6310 | } | |
6311 | { | |
4268f798 | 6312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6313 | const wxKeyEvent & _result_ref = wxTreeEvent_GetKeyEvent(_arg0); |
ecc08ead RD |
6314 | _result = (wxKeyEvent *) &_result_ref; |
6315 | ||
4268f798 | 6316 | wxPyEndAllowThreads(__tstate); |
ecc08ead RD |
6317 | if (PyErr_Occurred()) return NULL; |
6318 | } if (_result) { | |
6319 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxKeyEvent_p"); | |
6320 | _resultobj = Py_BuildValue("s",_ptemp); | |
6321 | } else { | |
6322 | Py_INCREF(Py_None); | |
6323 | _resultobj = Py_None; | |
6324 | } | |
6325 | return _resultobj; | |
6326 | } | |
6327 | ||
64c06a50 RD |
6328 | #define wxTreeEvent_GetKeyCode(_swigobj) (_swigobj->GetKeyCode()) |
6329 | static PyObject *_wrap_wxTreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6330 | PyObject * _resultobj; |
d5c9047a | 6331 | int _result; |
8ab979d7 | 6332 | wxTreeEvent * _arg0; |
1d99702e | 6333 | PyObject * _argo0 = 0; |
efc5f224 | 6334 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6335 | |
6336 | self = self; | |
64c06a50 | 6337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetKeyCode",_kwnames,&_argo0)) |
8ab979d7 | 6338 | return NULL; |
1d99702e RD |
6339 | if (_argo0) { |
6340 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6341 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
64c06a50 | 6342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetKeyCode. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6343 | return NULL; |
6344 | } | |
6345 | } | |
cf694132 | 6346 | { |
4268f798 | 6347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
64c06a50 | 6348 | _result = (int )wxTreeEvent_GetKeyCode(_arg0); |
cf694132 | 6349 | |
4268f798 | 6350 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6351 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6352 | } _resultobj = Py_BuildValue("i",_result); |
d5c9047a RD |
6353 | return _resultobj; |
6354 | } | |
6355 | ||
8bf5d46e | 6356 | #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 6357 | static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 6358 | PyObject * _resultobj; |
8bf5d46e | 6359 | wxString * _result; |
d5c9047a | 6360 | wxTreeEvent * _arg0; |
1d99702e | 6361 | PyObject * _argo0 = 0; |
efc5f224 | 6362 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
6363 | |
6364 | self = self; | |
efc5f224 | 6365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0)) |
d5c9047a | 6366 | return NULL; |
1d99702e RD |
6367 | if (_argo0) { |
6368 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6369 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
8bf5d46e | 6370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p."); |
d5c9047a RD |
6371 | return NULL; |
6372 | } | |
6373 | } | |
cf694132 | 6374 | { |
4268f798 | 6375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6376 | const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0); |
8bf5d46e | 6377 | _result = (wxString *) &_result_ref; |
cf694132 | 6378 | |
4268f798 | 6379 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6380 | if (PyErr_Occurred()) return NULL; |
8bf5d46e | 6381 | }{ |
c8bc7bb8 | 6382 | #if wxUSE_UNICODE |
7e50db3f | 6383 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6384 | #else |
eec92d76 | 6385 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6386 | #endif |
8bf5d46e | 6387 | } |
8ab979d7 RD |
6388 | return _resultobj; |
6389 | } | |
6390 | ||
31988931 RD |
6391 | #define wxTreeEvent_IsEditCancelled(_swigobj) (_swigobj->IsEditCancelled()) |
6392 | static PyObject *_wrap_wxTreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6393 | PyObject * _resultobj; | |
6394 | bool _result; | |
6395 | wxTreeEvent * _arg0; | |
6396 | PyObject * _argo0 = 0; | |
6397 | char *_kwnames[] = { "self", NULL }; | |
6398 | ||
6399 | self = self; | |
6400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_IsEditCancelled",_kwnames,&_argo0)) | |
6401 | return NULL; | |
6402 | if (_argo0) { | |
6403 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6404 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_IsEditCancelled. Expected _wxTreeEvent_p."); | |
6406 | return NULL; | |
6407 | } | |
6408 | } | |
6409 | { | |
6410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6411 | _result = (bool )wxTreeEvent_IsEditCancelled(_arg0); | |
6412 | ||
6413 | wxPyEndAllowThreads(__tstate); | |
6414 | if (PyErr_Occurred()) return NULL; | |
6415 | } _resultobj = Py_BuildValue("i",_result); | |
6416 | return _resultobj; | |
6417 | } | |
6418 | ||
f6bcfd97 BP |
6419 | static void *SwigwxPyTreeCtrlTowxControl(void *ptr) { |
6420 | wxPyTreeCtrl *src; | |
8ab979d7 | 6421 | wxControl *dest; |
f6bcfd97 | 6422 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6423 | dest = (wxControl *) src; |
6424 | return (void *) dest; | |
6425 | } | |
6426 | ||
f6bcfd97 BP |
6427 | static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) { |
6428 | wxPyTreeCtrl *src; | |
8ab979d7 | 6429 | wxWindow *dest; |
f6bcfd97 | 6430 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6431 | dest = (wxWindow *) src; |
6432 | return (void *) dest; | |
6433 | } | |
6434 | ||
f6bcfd97 BP |
6435 | static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) { |
6436 | wxPyTreeCtrl *src; | |
8ab979d7 | 6437 | wxEvtHandler *dest; |
f6bcfd97 | 6438 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6439 | dest = (wxEvtHandler *) src; |
6440 | return (void *) dest; | |
6441 | } | |
6442 | ||
9416aa89 RD |
6443 | static void *SwigwxPyTreeCtrlTowxObject(void *ptr) { |
6444 | wxPyTreeCtrl *src; | |
6445 | wxObject *dest; | |
6446 | src = (wxPyTreeCtrl *) ptr; | |
6447 | dest = (wxObject *) src; | |
6448 | return (void *) dest; | |
6449 | } | |
6450 | ||
f6bcfd97 | 6451 | #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6452 | static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6453 | PyObject * _resultobj; |
f6bcfd97 | 6454 | wxPyTreeCtrl * _result; |
8ab979d7 | 6455 | wxWindow * _arg0; |
1d99702e | 6456 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
6457 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6458 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
00b6c4e3 | 6459 | long _arg4 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); |
e508a2b6 | 6460 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
137b5242 | 6461 | wxString * _arg6 = (wxString *) &wxPy_TreeCtrlNameStr; |
1d99702e | 6462 | PyObject * _argo0 = 0; |
2f90df85 RD |
6463 | wxPoint temp; |
6464 | PyObject * _obj2 = 0; | |
6465 | wxSize temp0; | |
6466 | PyObject * _obj3 = 0; | |
1d99702e | 6467 | PyObject * _argo5 = 0; |
137b5242 | 6468 | PyObject * _obj6 = 0; |
efc5f224 | 6469 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
6470 | char _ptemp[128]; |
6471 | ||
6472 | self = self; | |
137b5242 | 6473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) |
8ab979d7 | 6474 | return NULL; |
1d99702e RD |
6475 | if (_argo0) { |
6476 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6477 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p."); |
6479 | return NULL; | |
6480 | } | |
6481 | } | |
2f90df85 RD |
6482 | if (_obj2) |
6483 | { | |
6484 | _arg2 = &temp; | |
6485 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6486 | return NULL; |
2f90df85 RD |
6487 | } |
6488 | if (_obj3) | |
6489 | { | |
6490 | _arg3 = &temp0; | |
6491 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6492 | return NULL; |
2f90df85 | 6493 | } |
1d99702e | 6494 | if (_argo5) { |
7e50db3f | 6495 | if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { |
8ab979d7 RD |
6496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p."); |
6497 | return NULL; | |
6498 | } | |
6499 | } | |
137b5242 RD |
6500 | if (_obj6) |
6501 | { | |
6502 | _arg6 = wxString_in_helper(_obj6); | |
6503 | if (_arg6 == NULL) | |
6504 | return NULL; | |
6505 | } | |
cf694132 | 6506 | { |
4268f798 | 6507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 6508 | _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
cf694132 | 6509 | |
4268f798 | 6510 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6511 | if (PyErr_Occurred()) return NULL; |
1d99702e | 6512 | } if (_result) { |
f6bcfd97 | 6513 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); |
1d99702e RD |
6514 | _resultobj = Py_BuildValue("s",_ptemp); |
6515 | } else { | |
6516 | Py_INCREF(Py_None); | |
6517 | _resultobj = Py_None; | |
6518 | } | |
137b5242 RD |
6519 | { |
6520 | if (_obj6) | |
6521 | delete _arg6; | |
6522 | } | |
8ab979d7 RD |
6523 | return _resultobj; |
6524 | } | |
6525 | ||
09f3d4e6 RD |
6526 | #define new_wxPreTreeCtrl() (new wxPyTreeCtrl()) |
6527 | static PyObject *_wrap_new_wxPreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6528 | PyObject * _resultobj; | |
6529 | wxPyTreeCtrl * _result; | |
6530 | char *_kwnames[] = { NULL }; | |
6531 | char _ptemp[128]; | |
6532 | ||
6533 | self = self; | |
6534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTreeCtrl",_kwnames)) | |
6535 | return NULL; | |
6536 | { | |
4268f798 | 6537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6538 | _result = (wxPyTreeCtrl *)new_wxPreTreeCtrl(); |
09f3d4e6 | 6539 | |
4268f798 | 6540 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6541 | if (PyErr_Occurred()) return NULL; |
6542 | } if (_result) { | |
6543 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); | |
6544 | _resultobj = Py_BuildValue("s",_ptemp); | |
6545 | } else { | |
6546 | Py_INCREF(Py_None); | |
6547 | _resultobj = Py_None; | |
6548 | } | |
6549 | return _resultobj; | |
6550 | } | |
6551 | ||
6552 | #define wxTreeCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
6553 | static PyObject *_wrap_wxTreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6554 | PyObject * _resultobj; | |
6555 | bool _result; | |
6556 | wxPyTreeCtrl * _arg0; | |
6557 | wxWindow * _arg1; | |
6558 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6559 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6560 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6561 | long _arg5 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); | |
6562 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
137b5242 | 6563 | wxString * _arg7 = (wxString *) &wxPy_TreeCtrlNameStr; |
09f3d4e6 RD |
6564 | PyObject * _argo0 = 0; |
6565 | PyObject * _argo1 = 0; | |
6566 | wxPoint temp; | |
6567 | PyObject * _obj3 = 0; | |
6568 | wxSize temp0; | |
6569 | PyObject * _obj4 = 0; | |
6570 | PyObject * _argo6 = 0; | |
137b5242 | 6571 | PyObject * _obj7 = 0; |
09f3d4e6 RD |
6572 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; |
6573 | ||
6574 | self = self; | |
137b5242 | 6575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxTreeCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) |
09f3d4e6 RD |
6576 | return NULL; |
6577 | if (_argo0) { | |
6578 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6579 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Create. Expected _wxPyTreeCtrl_p."); | |
6581 | return NULL; | |
6582 | } | |
6583 | } | |
6584 | if (_argo1) { | |
6585 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6586 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Create. Expected _wxWindow_p."); | |
6588 | return NULL; | |
6589 | } | |
6590 | } | |
6591 | if (_obj3) | |
6592 | { | |
6593 | _arg3 = &temp; | |
6594 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6595 | return NULL; | |
6596 | } | |
6597 | if (_obj4) | |
6598 | { | |
6599 | _arg4 = &temp0; | |
6600 | if (! wxSize_helper(_obj4, &_arg4)) | |
6601 | return NULL; | |
6602 | } | |
6603 | if (_argo6) { | |
7e50db3f | 6604 | if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { |
09f3d4e6 RD |
6605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_Create. Expected _wxValidator_p."); |
6606 | return NULL; | |
6607 | } | |
6608 | } | |
137b5242 RD |
6609 | if (_obj7) |
6610 | { | |
6611 | _arg7 = wxString_in_helper(_obj7); | |
6612 | if (_arg7 == NULL) | |
6613 | return NULL; | |
6614 | } | |
09f3d4e6 | 6615 | { |
4268f798 | 6616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 6617 | _result = (bool )wxTreeCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
09f3d4e6 | 6618 | |
4268f798 | 6619 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6620 | if (PyErr_Occurred()) return NULL; |
6621 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
6622 | { |
6623 | if (_obj7) | |
6624 | delete _arg7; | |
6625 | } | |
09f3d4e6 RD |
6626 | return _resultobj; |
6627 | } | |
6628 | ||
0122b7e3 RD |
6629 | #define wxTreeCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
6630 | static PyObject *_wrap_wxTreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 BP |
6631 | PyObject * _resultobj; |
6632 | wxPyTreeCtrl * _arg0; | |
6633 | PyObject * _arg1; | |
6634 | PyObject * _arg2; | |
6635 | PyObject * _argo0 = 0; | |
6636 | PyObject * _obj1 = 0; | |
6637 | PyObject * _obj2 = 0; | |
6638 | char *_kwnames[] = { "self","self","_class", NULL }; | |
6639 | ||
6640 | self = self; | |
0122b7e3 | 6641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
f6bcfd97 BP |
6642 | return NULL; |
6643 | if (_argo0) { | |
6644 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6645 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
0122b7e3 | 6646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setCallbackInfo. Expected _wxPyTreeCtrl_p."); |
f6bcfd97 BP |
6647 | return NULL; |
6648 | } | |
6649 | } | |
6650 | { | |
6651 | _arg1 = _obj1; | |
6652 | } | |
6653 | { | |
6654 | _arg2 = _obj2; | |
6655 | } | |
6656 | { | |
4268f798 | 6657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6658 | wxTreeCtrl__setCallbackInfo(_arg0,_arg1,_arg2); |
f6bcfd97 | 6659 | |
4268f798 | 6660 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6661 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6662 | } Py_INCREF(Py_None); |
6663 | _resultobj = Py_None; | |
6664 | return _resultobj; | |
6665 | } | |
6666 | ||
d5c9047a | 6667 | #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount()) |
efc5f224 | 6668 | static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6669 | PyObject * _resultobj; |
c127177f | 6670 | size_t _result; |
f6bcfd97 | 6671 | wxPyTreeCtrl * _arg0; |
1d99702e | 6672 | PyObject * _argo0 = 0; |
efc5f224 | 6673 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6674 | |
6675 | self = self; | |
efc5f224 | 6676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0)) |
8ab979d7 | 6677 | return NULL; |
1d99702e RD |
6678 | if (_argo0) { |
6679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6682 | return NULL; |
6683 | } | |
6684 | } | |
cf694132 | 6685 | { |
4268f798 | 6686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6687 | _result = (size_t )wxTreeCtrl_GetCount(_arg0); |
cf694132 | 6688 | |
4268f798 | 6689 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6690 | if (PyErr_Occurred()) return NULL; |
c127177f | 6691 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6692 | return _resultobj; |
6693 | } | |
6694 | ||
d5c9047a | 6695 | #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) |
efc5f224 | 6696 | static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6697 | PyObject * _resultobj; |
d5c9047a | 6698 | unsigned int _result; |
f6bcfd97 | 6699 | wxPyTreeCtrl * _arg0; |
1d99702e | 6700 | PyObject * _argo0 = 0; |
efc5f224 | 6701 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6702 | |
6703 | self = self; | |
efc5f224 | 6704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0)) |
8ab979d7 | 6705 | return NULL; |
1d99702e RD |
6706 | if (_argo0) { |
6707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6710 | return NULL; |
6711 | } | |
6712 | } | |
cf694132 | 6713 | { |
4268f798 | 6714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6715 | _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0); |
cf694132 | 6716 | |
4268f798 | 6717 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6718 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6719 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6720 | return _resultobj; |
6721 | } | |
6722 | ||
d5c9047a | 6723 | #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) |
efc5f224 | 6724 | static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6725 | PyObject * _resultobj; |
f6bcfd97 | 6726 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6727 | unsigned int _arg1; |
1d99702e | 6728 | PyObject * _argo0 = 0; |
efc5f224 | 6729 | char *_kwnames[] = { "self","indent", NULL }; |
8ab979d7 RD |
6730 | |
6731 | self = self; | |
efc5f224 | 6732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6733 | return NULL; |
1d99702e RD |
6734 | if (_argo0) { |
6735 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6736 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6738 | return NULL; |
6739 | } | |
6740 | } | |
cf694132 | 6741 | { |
4268f798 | 6742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6743 | wxTreeCtrl_SetIndent(_arg0,_arg1); |
cf694132 | 6744 | |
4268f798 | 6745 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6746 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6747 | } Py_INCREF(Py_None); |
d5c9047a | 6748 | _resultobj = Py_None; |
8ab979d7 RD |
6749 | return _resultobj; |
6750 | } | |
6751 | ||
d5c9047a | 6752 | #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList()) |
efc5f224 | 6753 | static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6754 | PyObject * _resultobj; |
d5c9047a | 6755 | wxImageList * _result; |
f6bcfd97 | 6756 | wxPyTreeCtrl * _arg0; |
1d99702e | 6757 | PyObject * _argo0 = 0; |
efc5f224 | 6758 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6759 | |
6760 | self = self; | |
efc5f224 | 6761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0)) |
8ab979d7 | 6762 | return NULL; |
1d99702e RD |
6763 | if (_argo0) { |
6764 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6765 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6766 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6767 | return NULL; |
6768 | } | |
6769 | } | |
cf694132 | 6770 | { |
4268f798 | 6771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6772 | _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0); |
cf694132 | 6773 | |
4268f798 | 6774 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6775 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 6776 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
6777 | return _resultobj; |
6778 | } | |
6779 | ||
d5c9047a | 6780 | #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList()) |
efc5f224 | 6781 | static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6782 | PyObject * _resultobj; |
d5c9047a | 6783 | wxImageList * _result; |
f6bcfd97 | 6784 | wxPyTreeCtrl * _arg0; |
1d99702e | 6785 | PyObject * _argo0 = 0; |
efc5f224 | 6786 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6787 | |
6788 | self = self; | |
efc5f224 | 6789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0)) |
8ab979d7 | 6790 | return NULL; |
1d99702e RD |
6791 | if (_argo0) { |
6792 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6793 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6795 | return NULL; |
6796 | } | |
6797 | } | |
cf694132 | 6798 | { |
4268f798 | 6799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6800 | _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0); |
cf694132 | 6801 | |
4268f798 | 6802 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6803 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 6804 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
6805 | return _resultobj; |
6806 | } | |
6807 | ||
d5c9047a | 6808 | #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) |
efc5f224 | 6809 | static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6810 | PyObject * _resultobj; |
f6bcfd97 | 6811 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6812 | wxImageList * _arg1; |
1d99702e RD |
6813 | PyObject * _argo0 = 0; |
6814 | PyObject * _argo1 = 0; | |
efc5f224 | 6815 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
6816 | |
6817 | self = self; | |
efc5f224 | 6818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6819 | return NULL; |
1d99702e RD |
6820 | if (_argo0) { |
6821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6824 | return NULL; |
6825 | } | |
6826 | } | |
1d99702e RD |
6827 | if (_argo1) { |
6828 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6829 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
6830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p."); |
6831 | return NULL; | |
6832 | } | |
6833 | } | |
cf694132 | 6834 | { |
4268f798 | 6835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6836 | wxTreeCtrl_SetImageList(_arg0,_arg1); |
cf694132 | 6837 | |
4268f798 | 6838 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6839 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6840 | } Py_INCREF(Py_None); |
d5c9047a | 6841 | _resultobj = Py_None; |
8ab979d7 RD |
6842 | return _resultobj; |
6843 | } | |
6844 | ||
d5c9047a | 6845 | #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0)) |
efc5f224 | 6846 | static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6847 | PyObject * _resultobj; |
f6bcfd97 | 6848 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6849 | wxImageList * _arg1; |
1d99702e RD |
6850 | PyObject * _argo0 = 0; |
6851 | PyObject * _argo1 = 0; | |
efc5f224 | 6852 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
6853 | |
6854 | self = self; | |
efc5f224 | 6855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6856 | return NULL; |
1d99702e RD |
6857 | if (_argo0) { |
6858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6861 | return NULL; |
6862 | } | |
6863 | } | |
1d99702e RD |
6864 | if (_argo1) { |
6865 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6866 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
6867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p."); |
6868 | return NULL; | |
6869 | } | |
6870 | } | |
cf694132 | 6871 | { |
4268f798 | 6872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6873 | wxTreeCtrl_SetStateImageList(_arg0,_arg1); |
cf694132 | 6874 | |
4268f798 | 6875 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6876 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6877 | } Py_INCREF(Py_None); |
d5c9047a | 6878 | _resultobj = Py_None; |
8ab979d7 RD |
6879 | return _resultobj; |
6880 | } | |
6881 | ||
00b6c4e3 RD |
6882 | #define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0)) |
6883 | static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6884 | PyObject * _resultobj; | |
6885 | wxPyTreeCtrl * _arg0; | |
6886 | wxImageList * _arg1; | |
6887 | PyObject * _argo0 = 0; | |
6888 | PyObject * _argo1 = 0; | |
6889 | char *_kwnames[] = { "self","imageList", NULL }; | |
6890 | ||
6891 | self = self; | |
6892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1)) | |
6893 | return NULL; | |
6894 | if (_argo0) { | |
6895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p."); | |
6898 | return NULL; | |
6899 | } | |
6900 | } | |
6901 | if (_argo1) { | |
6902 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6903 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p."); | |
6905 | return NULL; | |
6906 | } | |
6907 | } | |
6908 | { | |
4268f798 | 6909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6910 | wxTreeCtrl_AssignImageList(_arg0,_arg1); |
00b6c4e3 | 6911 | |
4268f798 | 6912 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
6913 | if (PyErr_Occurred()) return NULL; |
6914 | } Py_INCREF(Py_None); | |
6915 | _resultobj = Py_None; | |
6916 | return _resultobj; | |
6917 | } | |
6918 | ||
6919 | #define wxTreeCtrl_AssignStateImageList(_swigobj,_swigarg0) (_swigobj->AssignStateImageList(_swigarg0)) | |
6920 | static PyObject *_wrap_wxTreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6921 | PyObject * _resultobj; | |
6922 | wxPyTreeCtrl * _arg0; | |
6923 | wxImageList * _arg1; | |
6924 | PyObject * _argo0 = 0; | |
6925 | PyObject * _argo1 = 0; | |
6926 | char *_kwnames[] = { "self","imageList", NULL }; | |
6927 | ||
6928 | self = self; | |
6929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignStateImageList",_kwnames,&_argo0,&_argo1)) | |
6930 | return NULL; | |
6931 | if (_argo0) { | |
6932 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6933 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignStateImageList. Expected _wxPyTreeCtrl_p."); | |
6935 | return NULL; | |
6936 | } | |
6937 | } | |
6938 | if (_argo1) { | |
6939 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6940 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignStateImageList. Expected _wxImageList_p."); | |
6942 | return NULL; | |
6943 | } | |
6944 | } | |
6945 | { | |
4268f798 | 6946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6947 | wxTreeCtrl_AssignStateImageList(_arg0,_arg1); |
00b6c4e3 | 6948 | |
4268f798 | 6949 | wxPyEndAllowThreads(__tstate); |
00b6c4e3 RD |
6950 | if (PyErr_Occurred()) return NULL; |
6951 | } Py_INCREF(Py_None); | |
6952 | _resultobj = Py_None; | |
6953 | return _resultobj; | |
6954 | } | |
6955 | ||
b1462dfa RD |
6956 | #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing()) |
6957 | static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6958 | PyObject * _resultobj; | |
6959 | unsigned int _result; | |
f6bcfd97 | 6960 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
6961 | PyObject * _argo0 = 0; |
6962 | char *_kwnames[] = { "self", NULL }; | |
6963 | ||
6964 | self = self; | |
6965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0)) | |
6966 | return NULL; | |
6967 | if (_argo0) { | |
6968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
6971 | return NULL; |
6972 | } | |
6973 | } | |
6974 | { | |
4268f798 | 6975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6976 | _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0); |
b1462dfa | 6977 | |
4268f798 | 6978 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6979 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
6980 | } _resultobj = Py_BuildValue("i",_result); |
6981 | return _resultobj; | |
6982 | } | |
6983 | ||
6984 | #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0)) | |
6985 | static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6986 | PyObject * _resultobj; | |
f6bcfd97 | 6987 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
6988 | unsigned int _arg1; |
6989 | PyObject * _argo0 = 0; | |
6990 | char *_kwnames[] = { "self","spacing", NULL }; | |
6991 | ||
6992 | self = self; | |
6993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1)) | |
6994 | return NULL; | |
6995 | if (_argo0) { | |
6996 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6997 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
6999 | return NULL; |
7000 | } | |
7001 | } | |
7002 | { | |
4268f798 | 7003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7004 | wxTreeCtrl_SetSpacing(_arg0,_arg1); |
b1462dfa | 7005 | |
4268f798 | 7006 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7007 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7008 | } Py_INCREF(Py_None); |
7009 | _resultobj = Py_None; | |
7010 | return _resultobj; | |
7011 | } | |
7012 | ||
d5c9047a | 7013 | #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
efc5f224 | 7014 | static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7015 | PyObject * _resultobj; |
d5c9047a | 7016 | wxString * _result; |
f6bcfd97 | 7017 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7018 | wxTreeItemId * _arg1; |
1d99702e RD |
7019 | PyObject * _argo0 = 0; |
7020 | PyObject * _argo1 = 0; | |
efc5f224 | 7021 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7022 | |
7023 | self = self; | |
efc5f224 | 7024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7025 | return NULL; |
1d99702e RD |
7026 | if (_argo0) { |
7027 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7028 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7030 | return NULL; |
7031 | } | |
7032 | } | |
1d99702e | 7033 | if (_argo1) { |
7e50db3f | 7034 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p."); |
7036 | return NULL; | |
7037 | } | |
7038 | } | |
d5c9047a | 7039 | { |
4268f798 | 7040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7041 | _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1)); |
cf694132 | 7042 | |
4268f798 | 7043 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7044 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7045 | }{ |
c8bc7bb8 | 7046 | #if wxUSE_UNICODE |
7e50db3f | 7047 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7048 | #else |
eec92d76 | 7049 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7050 | #endif |
d5c9047a RD |
7051 | } |
7052 | { | |
7053 | delete _result; | |
7054 | } | |
8ab979d7 RD |
7055 | return _resultobj; |
7056 | } | |
7057 | ||
694759cf | 7058 | #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1)) |
efc5f224 | 7059 | static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7060 | PyObject * _resultobj; |
d5c9047a | 7061 | int _result; |
f6bcfd97 | 7062 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7063 | wxTreeItemId * _arg1; |
694759cf | 7064 | wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
7065 | PyObject * _argo0 = 0; |
7066 | PyObject * _argo1 = 0; | |
694759cf | 7067 | char *_kwnames[] = { "self","item","which", NULL }; |
8ab979d7 RD |
7068 | |
7069 | self = self; | |
694759cf | 7070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 7071 | return NULL; |
1d99702e RD |
7072 | if (_argo0) { |
7073 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7076 | return NULL; |
7077 | } | |
7078 | } | |
1d99702e | 7079 | if (_argo1) { |
7e50db3f | 7080 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p."); |
7082 | return NULL; | |
7083 | } | |
7084 | } | |
cf694132 | 7085 | { |
4268f798 | 7086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7087 | _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2); |
cf694132 | 7088 | |
4268f798 | 7089 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7090 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7091 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7092 | return _resultobj; |
7093 | } | |
7094 | ||
d5c9047a | 7095 | #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0)) |
efc5f224 | 7096 | static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7097 | PyObject * _resultobj; |
d5c9047a | 7098 | int _result; |
f6bcfd97 | 7099 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7100 | wxTreeItemId * _arg1; |
1d99702e RD |
7101 | PyObject * _argo0 = 0; |
7102 | PyObject * _argo1 = 0; | |
efc5f224 | 7103 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7104 | |
7105 | self = self; | |
efc5f224 | 7106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7107 | return NULL; |
1d99702e RD |
7108 | if (_argo0) { |
7109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7112 | return NULL; |
7113 | } | |
7114 | } | |
1d99702e | 7115 | if (_argo1) { |
7e50db3f | 7116 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p."); |
7118 | return NULL; | |
7119 | } | |
7120 | } | |
cf694132 | 7121 | { |
4268f798 | 7122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7123 | _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1); |
8ab979d7 | 7124 | |
4268f798 | 7125 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7126 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7127 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7128 | return _resultobj; |
7129 | } | |
7130 | ||
d5c9047a | 7131 | #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
efc5f224 | 7132 | static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7133 | PyObject * _resultobj; |
f6bcfd97 | 7134 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7135 | wxTreeItemId * _arg1; |
7136 | wxString * _arg2; | |
1d99702e RD |
7137 | PyObject * _argo0 = 0; |
7138 | PyObject * _argo1 = 0; | |
d5c9047a | 7139 | PyObject * _obj2 = 0; |
efc5f224 | 7140 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
7141 | |
7142 | self = self; | |
efc5f224 | 7143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7144 | return NULL; |
1d99702e RD |
7145 | if (_argo0) { |
7146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7149 | return NULL; |
7150 | } | |
7151 | } | |
1d99702e | 7152 | if (_argo1) { |
7e50db3f | 7153 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p."); |
7155 | return NULL; | |
7156 | } | |
7157 | } | |
7158 | { | |
c8bc7bb8 RD |
7159 | _arg2 = wxString_in_helper(_obj2); |
7160 | if (_arg2 == NULL) | |
185d7c3e | 7161 | return NULL; |
d5c9047a | 7162 | } |
cf694132 | 7163 | { |
4268f798 | 7164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7165 | wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2); |
cf694132 | 7166 | |
4268f798 | 7167 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7168 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7169 | } Py_INCREF(Py_None); |
d5c9047a RD |
7170 | _resultobj = Py_None; |
7171 | { | |
7172 | if (_obj2) | |
7173 | delete _arg2; | |
7174 | } | |
8ab979d7 RD |
7175 | return _resultobj; |
7176 | } | |
7177 | ||
694759cf | 7178 | #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 7179 | static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7180 | PyObject * _resultobj; |
f6bcfd97 | 7181 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7182 | wxTreeItemId * _arg1; |
7183 | int _arg2; | |
694759cf | 7184 | wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
7185 | PyObject * _argo0 = 0; |
7186 | PyObject * _argo1 = 0; | |
694759cf | 7187 | char *_kwnames[] = { "self","item","image","which", NULL }; |
8ab979d7 RD |
7188 | |
7189 | self = self; | |
694759cf | 7190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 7191 | return NULL; |
1d99702e RD |
7192 | if (_argo0) { |
7193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7196 | return NULL; |
7197 | } | |
7198 | } | |
1d99702e | 7199 | if (_argo1) { |
7e50db3f | 7200 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p."); |
7202 | return NULL; | |
7203 | } | |
7204 | } | |
cf694132 | 7205 | { |
4268f798 | 7206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7207 | wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 7208 | |
4268f798 | 7209 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7210 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7211 | } Py_INCREF(Py_None); |
d5c9047a | 7212 | _resultobj = Py_None; |
8ab979d7 RD |
7213 | return _resultobj; |
7214 | } | |
7215 | ||
d5c9047a | 7216 | #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1)) |
efc5f224 | 7217 | static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7218 | PyObject * _resultobj; |
f6bcfd97 | 7219 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7220 | wxTreeItemId * _arg1; |
7221 | int _arg2; | |
1d99702e RD |
7222 | PyObject * _argo0 = 0; |
7223 | PyObject * _argo1 = 0; | |
efc5f224 | 7224 | char *_kwnames[] = { "self","item","image", NULL }; |
8ab979d7 RD |
7225 | |
7226 | self = self; | |
efc5f224 | 7227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 7228 | return NULL; |
1d99702e RD |
7229 | if (_argo0) { |
7230 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7231 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7233 | return NULL; |
7234 | } | |
7235 | } | |
1d99702e | 7236 | if (_argo1) { |
7e50db3f | 7237 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p."); |
7239 | return NULL; | |
7240 | } | |
7241 | } | |
cf694132 | 7242 | { |
4268f798 | 7243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7244 | wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2); |
cf694132 | 7245 | |
4268f798 | 7246 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7247 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7248 | } Py_INCREF(Py_None); |
7249 | _resultobj = Py_None; | |
7250 | return _resultobj; | |
7251 | } | |
7252 | ||
7253 | #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1)) | |
efc5f224 | 7254 | static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7255 | PyObject * _resultobj; |
f6bcfd97 | 7256 | wxPyTreeCtrl * _arg0; |
cf694132 | 7257 | wxTreeItemId * _arg1; |
1d99702e RD |
7258 | bool _arg2 = (bool ) TRUE; |
7259 | PyObject * _argo0 = 0; | |
7260 | PyObject * _argo1 = 0; | |
7261 | int tempbool2 = (int) TRUE; | |
efc5f224 | 7262 | char *_kwnames[] = { "self","item","hasChildren", NULL }; |
cf694132 RD |
7263 | |
7264 | self = self; | |
efc5f224 | 7265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2)) |
cf694132 | 7266 | return NULL; |
1d99702e RD |
7267 | if (_argo0) { |
7268 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7269 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7270 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7271 | return NULL; |
7272 | } | |
7273 | } | |
1d99702e | 7274 | if (_argo1) { |
7e50db3f | 7275 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
cf694132 RD |
7276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p."); |
7277 | return NULL; | |
7278 | } | |
7279 | } | |
7280 | _arg2 = (bool ) tempbool2; | |
7281 | { | |
4268f798 | 7282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7283 | wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2); |
cf694132 | 7284 | |
4268f798 | 7285 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7286 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7287 | } Py_INCREF(Py_None); |
d5c9047a | 7288 | _resultobj = Py_None; |
8ab979d7 RD |
7289 | return _resultobj; |
7290 | } | |
7291 | ||
f6bcfd97 | 7292 | static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7293 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7294 | if (data == NULL) { | |
7295 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7296 | data->SetId(item); // set the id |
cf694132 RD |
7297 | self->SetItemData(item, data); |
7298 | } | |
7299 | return data; | |
7300 | } | |
efc5f224 | 7301 | static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
7302 | PyObject * _resultobj; |
7303 | wxPyTreeItemData * _result; | |
f6bcfd97 | 7304 | wxPyTreeCtrl * _arg0; |
cf694132 | 7305 | wxTreeItemId * _arg1; |
1d99702e RD |
7306 | PyObject * _argo0 = 0; |
7307 | PyObject * _argo1 = 0; | |
efc5f224 | 7308 | char *_kwnames[] = { "self","item", NULL }; |
cf694132 RD |
7309 | char _ptemp[128]; |
7310 | ||
7311 | self = self; | |
efc5f224 | 7312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1)) |
cf694132 | 7313 | return NULL; |
1d99702e RD |
7314 | if (_argo0) { |
7315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7318 | return NULL; |
7319 | } | |
7320 | } | |
1d99702e | 7321 | if (_argo1) { |
7e50db3f | 7322 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
cf694132 RD |
7323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p."); |
7324 | return NULL; | |
7325 | } | |
7326 | } | |
7327 | { | |
4268f798 | 7328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7329 | _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1); |
cf694132 | 7330 | |
4268f798 | 7331 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7332 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7333 | } if (_result) { |
7334 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
7335 | _resultobj = Py_BuildValue("s",_ptemp); | |
7336 | } else { | |
7337 | Py_INCREF(Py_None); | |
7338 | _resultobj = Py_None; | |
7339 | } | |
cf694132 RD |
7340 | return _resultobj; |
7341 | } | |
7342 | ||
f6bcfd97 BP |
7343 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) { |
7344 | data->SetId(item); // set the id | |
7345 | self->SetItemData(item, data); | |
c368d904 | 7346 | } |
efc5f224 | 7347 | static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7348 | PyObject * _resultobj; |
f6bcfd97 | 7349 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7350 | wxTreeItemId * _arg1; |
cf694132 | 7351 | wxPyTreeItemData * _arg2; |
1d99702e RD |
7352 | PyObject * _argo0 = 0; |
7353 | PyObject * _argo1 = 0; | |
7354 | PyObject * _argo2 = 0; | |
efc5f224 | 7355 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
7356 | |
7357 | self = self; | |
efc5f224 | 7358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2)) |
8ab979d7 | 7359 | return NULL; |
1d99702e RD |
7360 | if (_argo0) { |
7361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7364 | return NULL; |
7365 | } | |
7366 | } | |
1d99702e | 7367 | if (_argo1) { |
7e50db3f | 7368 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p."); |
7370 | return NULL; | |
7371 | } | |
7372 | } | |
1d99702e RD |
7373 | if (_argo2) { |
7374 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7375 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) { | |
cf694132 | 7376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
7377 | return NULL; |
7378 | } | |
7379 | } | |
cf694132 | 7380 | { |
4268f798 | 7381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7382 | wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2); |
cf694132 | 7383 | |
4268f798 | 7384 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7385 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7386 | } Py_INCREF(Py_None); |
d5c9047a | 7387 | _resultobj = Py_None; |
8ab979d7 RD |
7388 | return _resultobj; |
7389 | } | |
7390 | ||
f6bcfd97 | 7391 | static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7392 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7393 | if (data == NULL) { | |
7394 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7395 | data->SetId(item); // set the id |
cf694132 RD |
7396 | self->SetItemData(item, data); |
7397 | } | |
7398 | return data->GetData(); | |
c368d904 | 7399 | } |
efc5f224 | 7400 | static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 7401 | PyObject * _resultobj; |
cf694132 | 7402 | PyObject * _result; |
f6bcfd97 | 7403 | wxPyTreeCtrl * _arg0; |
08127323 | 7404 | wxTreeItemId * _arg1; |
1d99702e RD |
7405 | PyObject * _argo0 = 0; |
7406 | PyObject * _argo1 = 0; | |
efc5f224 | 7407 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
7408 | |
7409 | self = self; | |
efc5f224 | 7410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1)) |
08127323 | 7411 | return NULL; |
1d99702e RD |
7412 | if (_argo0) { |
7413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
7416 | return NULL; |
7417 | } | |
7418 | } | |
1d99702e | 7419 | if (_argo1) { |
7e50db3f | 7420 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
cf694132 | 7421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p."); |
08127323 RD |
7422 | return NULL; |
7423 | } | |
7424 | } | |
cf694132 | 7425 | { |
4268f798 | 7426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7427 | _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1); |
cf694132 | 7428 | |
4268f798 | 7429 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7430 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7431 | }{ |
7432 | _resultobj = _result; | |
7433 | } | |
7434 | return _resultobj; | |
7435 | } | |
7436 | ||
f6bcfd97 | 7437 | static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) { |
cf694132 RD |
7438 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7439 | if (data == NULL) { | |
7440 | data = new wxPyTreeItemData(obj); | |
f6bcfd97 | 7441 | data->SetId(item); // set the id |
cf694132 RD |
7442 | self->SetItemData(item, data); |
7443 | } else | |
7444 | data->SetData(obj); | |
c368d904 | 7445 | } |
efc5f224 | 7446 | static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7447 | PyObject * _resultobj; |
f6bcfd97 | 7448 | wxPyTreeCtrl * _arg0; |
cf694132 RD |
7449 | wxTreeItemId * _arg1; |
7450 | PyObject * _arg2; | |
1d99702e RD |
7451 | PyObject * _argo0 = 0; |
7452 | PyObject * _argo1 = 0; | |
cf694132 | 7453 | PyObject * _obj2 = 0; |
efc5f224 | 7454 | char *_kwnames[] = { "self","item","obj", NULL }; |
cf694132 RD |
7455 | |
7456 | self = self; | |
efc5f224 | 7457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2)) |
cf694132 | 7458 | return NULL; |
1d99702e RD |
7459 | if (_argo0) { |
7460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7463 | return NULL; |
7464 | } | |
7465 | } | |
1d99702e | 7466 | if (_argo1) { |
7e50db3f | 7467 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
cf694132 RD |
7468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p."); |
7469 | return NULL; | |
7470 | } | |
7471 | } | |
7472 | { | |
7473 | _arg2 = _obj2; | |
7474 | } | |
7475 | { | |
4268f798 | 7476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7477 | wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2); |
cf694132 | 7478 | |
4268f798 | 7479 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7480 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7481 | } Py_INCREF(Py_None); |
08127323 RD |
7482 | _resultobj = Py_None; |
7483 | return _resultobj; | |
7484 | } | |
7485 | ||
7e50db3f RD |
7486 | #define wxTreeCtrl_GetItemTextColour(_swigobj,_swigarg0) (_swigobj->GetItemTextColour(_swigarg0)) |
7487 | static PyObject *_wrap_wxTreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7488 | PyObject * _resultobj; | |
7489 | wxColour * _result; | |
7490 | wxPyTreeCtrl * _arg0; | |
7491 | wxTreeItemId * _arg1; | |
7492 | PyObject * _argo0 = 0; | |
7493 | PyObject * _argo1 = 0; | |
7494 | char *_kwnames[] = { "self","item", NULL }; | |
7495 | char _ptemp[128]; | |
7496 | ||
7497 | self = self; | |
7498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemTextColour",_kwnames,&_argo0,&_argo1)) | |
7499 | return NULL; | |
7500 | if (_argo0) { | |
7501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
7504 | return NULL; | |
7505 | } | |
7506 | } | |
7507 | if (_argo1) { | |
7508 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemTextColour. Expected _wxTreeItemId_p."); | |
7510 | return NULL; | |
7511 | } | |
7512 | } | |
7513 | { | |
7514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7515 | _result = new wxColour (wxTreeCtrl_GetItemTextColour(_arg0,*_arg1)); | |
7516 | ||
7517 | wxPyEndAllowThreads(__tstate); | |
7518 | if (PyErr_Occurred()) return NULL; | |
7519 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
7520 | _resultobj = Py_BuildValue("s",_ptemp); | |
7521 | return _resultobj; | |
7522 | } | |
7523 | ||
7524 | #define wxTreeCtrl_GetItemBackgroundColour(_swigobj,_swigarg0) (_swigobj->GetItemBackgroundColour(_swigarg0)) | |
7525 | static PyObject *_wrap_wxTreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7526 | PyObject * _resultobj; | |
7527 | wxColour * _result; | |
7528 | wxPyTreeCtrl * _arg0; | |
7529 | wxTreeItemId * _arg1; | |
7530 | PyObject * _argo0 = 0; | |
7531 | PyObject * _argo1 = 0; | |
7532 | char *_kwnames[] = { "self","item", NULL }; | |
7533 | char _ptemp[128]; | |
7534 | ||
7535 | self = self; | |
7536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemBackgroundColour",_kwnames,&_argo0,&_argo1)) | |
7537 | return NULL; | |
7538 | if (_argo0) { | |
7539 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7540 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
7542 | return NULL; | |
7543 | } | |
7544 | } | |
7545 | if (_argo1) { | |
7546 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
7548 | return NULL; | |
7549 | } | |
7550 | } | |
7551 | { | |
7552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7553 | _result = new wxColour (wxTreeCtrl_GetItemBackgroundColour(_arg0,*_arg1)); | |
7554 | ||
7555 | wxPyEndAllowThreads(__tstate); | |
7556 | if (PyErr_Occurred()) return NULL; | |
7557 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
7558 | _resultobj = Py_BuildValue("s",_ptemp); | |
7559 | return _resultobj; | |
7560 | } | |
7561 | ||
7562 | #define wxTreeCtrl_GetItemFont(_swigobj,_swigarg0) (_swigobj->GetItemFont(_swigarg0)) | |
7563 | static PyObject *_wrap_wxTreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7564 | PyObject * _resultobj; | |
7565 | wxFont * _result; | |
7566 | wxPyTreeCtrl * _arg0; | |
7567 | wxTreeItemId * _arg1; | |
7568 | PyObject * _argo0 = 0; | |
7569 | PyObject * _argo1 = 0; | |
7570 | char *_kwnames[] = { "self","item", NULL }; | |
7571 | char _ptemp[128]; | |
7572 | ||
7573 | self = self; | |
7574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemFont",_kwnames,&_argo0,&_argo1)) | |
7575 | return NULL; | |
7576 | if (_argo0) { | |
7577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemFont. Expected _wxPyTreeCtrl_p."); | |
7580 | return NULL; | |
7581 | } | |
7582 | } | |
7583 | if (_argo1) { | |
7584 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemFont. Expected _wxTreeItemId_p."); | |
7586 | return NULL; | |
7587 | } | |
7588 | } | |
7589 | { | |
7590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7591 | _result = new wxFont (wxTreeCtrl_GetItemFont(_arg0,*_arg1)); | |
7592 | ||
7593 | wxPyEndAllowThreads(__tstate); | |
7594 | if (PyErr_Occurred()) return NULL; | |
7595 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
7596 | _resultobj = Py_BuildValue("s",_ptemp); | |
7597 | return _resultobj; | |
7598 | } | |
7599 | ||
d5c9047a | 7600 | #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) |
efc5f224 | 7601 | static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7602 | PyObject * _resultobj; |
d5c9047a | 7603 | bool _result; |
f6bcfd97 | 7604 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7605 | wxTreeItemId * _arg1; |
1d99702e RD |
7606 | PyObject * _argo0 = 0; |
7607 | PyObject * _argo1 = 0; | |
efc5f224 | 7608 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7609 | |
7610 | self = self; | |
efc5f224 | 7611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7612 | return NULL; |
1d99702e RD |
7613 | if (_argo0) { |
7614 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7617 | return NULL; |
7618 | } | |
7619 | } | |
1d99702e | 7620 | if (_argo1) { |
7e50db3f | 7621 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p."); |
7623 | return NULL; | |
7624 | } | |
7625 | } | |
cf694132 | 7626 | { |
4268f798 | 7627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7628 | _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1); |
cf694132 | 7629 | |
4268f798 | 7630 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7631 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7632 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7633 | return _resultobj; |
7634 | } | |
7635 | ||
d5c9047a | 7636 | #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0)) |
efc5f224 | 7637 | static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7638 | PyObject * _resultobj; |
d5c9047a | 7639 | bool _result; |
f6bcfd97 | 7640 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7641 | wxTreeItemId * _arg1; |
1d99702e RD |
7642 | PyObject * _argo0 = 0; |
7643 | PyObject * _argo1 = 0; | |
efc5f224 | 7644 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7645 | |
7646 | self = self; | |
efc5f224 | 7647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7648 | return NULL; |
1d99702e RD |
7649 | if (_argo0) { |
7650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7653 | return NULL; |
7654 | } | |
7655 | } | |
1d99702e | 7656 | if (_argo1) { |
7e50db3f | 7657 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p."); |
7659 | return NULL; | |
7660 | } | |
7661 | } | |
cf694132 | 7662 | { |
4268f798 | 7663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7664 | _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1); |
cf694132 | 7665 | |
4268f798 | 7666 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7667 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7668 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7669 | return _resultobj; |
7670 | } | |
7671 | ||
d5c9047a | 7672 | #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0)) |
efc5f224 | 7673 | static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7674 | PyObject * _resultobj; |
d5c9047a | 7675 | bool _result; |
f6bcfd97 | 7676 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7677 | wxTreeItemId * _arg1; |
1d99702e RD |
7678 | PyObject * _argo0 = 0; |
7679 | PyObject * _argo1 = 0; | |
efc5f224 | 7680 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7681 | |
7682 | self = self; | |
efc5f224 | 7683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7684 | return NULL; |
1d99702e RD |
7685 | if (_argo0) { |
7686 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7687 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7689 | return NULL; |
7690 | } | |
7691 | } | |
1d99702e | 7692 | if (_argo1) { |
7e50db3f | 7693 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p."); |
7695 | return NULL; | |
7696 | } | |
7697 | } | |
cf694132 | 7698 | { |
4268f798 | 7699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7700 | _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1); |
cf694132 | 7701 | |
4268f798 | 7702 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7703 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7704 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7705 | return _resultobj; |
7706 | } | |
7707 | ||
d5c9047a | 7708 | #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
efc5f224 | 7709 | static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7710 | PyObject * _resultobj; |
d5c9047a | 7711 | bool _result; |
f6bcfd97 | 7712 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7713 | wxTreeItemId * _arg1; |
1d99702e RD |
7714 | PyObject * _argo0 = 0; |
7715 | PyObject * _argo1 = 0; | |
efc5f224 | 7716 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7717 | |
7718 | self = self; | |
efc5f224 | 7719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7720 | return NULL; |
1d99702e RD |
7721 | if (_argo0) { |
7722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7725 | return NULL; |
7726 | } | |
7727 | } | |
1d99702e | 7728 | if (_argo1) { |
7e50db3f | 7729 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
7730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p."); |
7731 | return NULL; | |
7732 | } | |
7733 | } | |
cf694132 | 7734 | { |
4268f798 | 7735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7736 | _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1); |
cf694132 | 7737 | |
4268f798 | 7738 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7739 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7740 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7741 | return _resultobj; |
7742 | } | |
7743 | ||
7744 | #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem()) | |
efc5f224 | 7745 | static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7746 | PyObject * _resultobj; |
d5c9047a | 7747 | wxTreeItemId * _result; |
f6bcfd97 | 7748 | wxPyTreeCtrl * _arg0; |
1d99702e | 7749 | PyObject * _argo0 = 0; |
efc5f224 | 7750 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7751 | char _ptemp[128]; |
8ab979d7 RD |
7752 | |
7753 | self = self; | |
efc5f224 | 7754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0)) |
8ab979d7 | 7755 | return NULL; |
1d99702e RD |
7756 | if (_argo0) { |
7757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7760 | return NULL; |
7761 | } | |
7762 | } | |
cf694132 | 7763 | { |
4268f798 | 7764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7765 | _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0)); |
cf694132 | 7766 | |
4268f798 | 7767 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7768 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7769 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7770 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7771 | return _resultobj; |
7772 | } | |
7773 | ||
7774 | #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 7775 | static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7776 | PyObject * _resultobj; |
d5c9047a | 7777 | wxTreeItemId * _result; |
f6bcfd97 | 7778 | wxPyTreeCtrl * _arg0; |
1d99702e | 7779 | PyObject * _argo0 = 0; |
efc5f224 | 7780 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7781 | char _ptemp[128]; |
8ab979d7 RD |
7782 | |
7783 | self = self; | |
efc5f224 | 7784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 7785 | return NULL; |
1d99702e RD |
7786 | if (_argo0) { |
7787 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7788 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7790 | return NULL; |
7791 | } | |
7792 | } | |
cf694132 | 7793 | { |
4268f798 | 7794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7795 | _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0)); |
cf694132 | 7796 | |
4268f798 | 7797 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7798 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7799 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7800 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7801 | return _resultobj; |
7802 | } | |
7803 | ||
7e50db3f | 7804 | #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetItemParent(_swigarg0)) |
eb715945 | 7805 | static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7806 | PyObject * _resultobj; |
d5c9047a | 7807 | wxTreeItemId * _result; |
f6bcfd97 | 7808 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7809 | wxTreeItemId * _arg1; |
1d99702e RD |
7810 | PyObject * _argo0 = 0; |
7811 | PyObject * _argo1 = 0; | |
efc5f224 | 7812 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7813 | char _ptemp[128]; |
8ab979d7 RD |
7814 | |
7815 | self = self; | |
eb715945 | 7816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7817 | return NULL; |
1d99702e RD |
7818 | if (_argo0) { |
7819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7822 | return NULL; |
7823 | } | |
7824 | } | |
1d99702e | 7825 | if (_argo1) { |
7e50db3f | 7826 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
eb715945 | 7827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7828 | return NULL; |
7829 | } | |
7830 | } | |
cf694132 | 7831 | { |
4268f798 | 7832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7833 | _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1)); |
cf694132 | 7834 | |
4268f798 | 7835 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7836 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7837 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7838 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7839 | return _resultobj; |
7840 | } | |
7841 | ||
f6bcfd97 | 7842 | static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) { |
4268f798 | 7843 | wxPyBeginBlockThreads(); |
d426c97e RD |
7844 | PyObject* rval = PyList_New(0); |
7845 | wxArrayTreeItemIds array; | |
7846 | size_t num, x; | |
7847 | num = self->GetSelections(array); | |
7848 | for (x=0; x < num; x++) { | |
c368d904 | 7849 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); |
7e50db3f | 7850 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), TRUE); |
d426c97e RD |
7851 | PyList_Append(rval, item); |
7852 | } | |
4268f798 | 7853 | wxPyEndBlockThreads(); |
d426c97e RD |
7854 | return rval; |
7855 | } | |
7856 | static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7857 | PyObject * _resultobj; | |
7858 | PyObject * _result; | |
f6bcfd97 | 7859 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
7860 | PyObject * _argo0 = 0; |
7861 | char *_kwnames[] = { "self", NULL }; | |
7862 | ||
7863 | self = self; | |
7864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0)) | |
7865 | return NULL; | |
7866 | if (_argo0) { | |
7867 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7868 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
7870 | return NULL; |
7871 | } | |
7872 | } | |
7873 | { | |
4268f798 | 7874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7875 | _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0); |
d426c97e | 7876 | |
4268f798 | 7877 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7878 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
7879 | }{ |
7880 | _resultobj = _result; | |
7881 | } | |
7882 | return _resultobj; | |
7883 | } | |
7884 | ||
bb0054cd | 7885 | #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1)) |
efc5f224 | 7886 | static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
7887 | PyObject * _resultobj; |
7888 | size_t _result; | |
f6bcfd97 | 7889 | wxPyTreeCtrl * _arg0; |
bb0054cd | 7890 | wxTreeItemId * _arg1; |
1d99702e RD |
7891 | bool _arg2 = (bool ) TRUE; |
7892 | PyObject * _argo0 = 0; | |
7893 | PyObject * _argo1 = 0; | |
7894 | int tempbool2 = (int) TRUE; | |
efc5f224 | 7895 | char *_kwnames[] = { "self","item","recursively", NULL }; |
bb0054cd RD |
7896 | |
7897 | self = self; | |
efc5f224 | 7898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2)) |
bb0054cd | 7899 | return NULL; |
1d99702e RD |
7900 | if (_argo0) { |
7901 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7902 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p."); | |
bb0054cd RD |
7904 | return NULL; |
7905 | } | |
7906 | } | |
1d99702e | 7907 | if (_argo1) { |
7e50db3f | 7908 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
bb0054cd RD |
7909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p."); |
7910 | return NULL; | |
7911 | } | |
7912 | } | |
7913 | _arg2 = (bool ) tempbool2; | |
7914 | { | |
4268f798 | 7915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7916 | _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2); |
bb0054cd | 7917 | |
4268f798 | 7918 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7919 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
7920 | } _resultobj = Py_BuildValue("i",_result); |
7921 | return _resultobj; | |
7922 | } | |
7923 | ||
d5c9047a | 7924 | #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1)) |
efc5f224 | 7925 | static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7926 | PyObject * _resultobj; |
d5c9047a | 7927 | wxTreeItemId * _result; |
f6bcfd97 | 7928 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7929 | wxTreeItemId * _arg1; |
0815db26 | 7930 | long * _arg2 = (long *) &longzero; |
1d99702e RD |
7931 | PyObject * _argo0 = 0; |
7932 | PyObject * _argo1 = 0; | |
d5c9047a RD |
7933 | long temp; |
7934 | PyObject * _obj2 = 0; | |
efc5f224 | 7935 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 7936 | char _ptemp[128]; |
8ab979d7 RD |
7937 | |
7938 | self = self; | |
f87dfa06 | 7939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7940 | return NULL; |
1d99702e RD |
7941 | if (_argo0) { |
7942 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7943 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7945 | return NULL; |
7946 | } | |
7947 | } | |
1d99702e | 7948 | if (_argo1) { |
7e50db3f | 7949 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a | 7950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7951 | return NULL; |
7952 | } | |
7953 | } | |
f87dfa06 | 7954 | if (_obj2) |
d5c9047a RD |
7955 | { |
7956 | temp = (long) PyInt_AsLong(_obj2); | |
7957 | _arg2 = &temp; | |
7958 | } | |
cf694132 | 7959 | { |
4268f798 | 7960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7961 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); |
cf694132 | 7962 | |
4268f798 | 7963 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7964 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7965 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
7966 | _resultobj = Py_BuildValue("s",_ptemp); |
7967 | { | |
7968 | PyObject *o; | |
7969 | o = PyInt_FromLong((long) (*_arg2)); | |
7970 | _resultobj = t_output_helper(_resultobj, o); | |
7971 | } | |
8ab979d7 RD |
7972 | return _resultobj; |
7973 | } | |
7974 | ||
d5c9047a | 7975 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) |
efc5f224 | 7976 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7977 | PyObject * _resultobj; |
d5c9047a | 7978 | wxTreeItemId * _result; |
f6bcfd97 | 7979 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7980 | wxTreeItemId * _arg1; |
7981 | long * _arg2; | |
1d99702e RD |
7982 | PyObject * _argo0 = 0; |
7983 | PyObject * _argo1 = 0; | |
d5c9047a | 7984 | long temp; |
8ab979d7 | 7985 | PyObject * _obj2 = 0; |
efc5f224 | 7986 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 7987 | char _ptemp[128]; |
8ab979d7 RD |
7988 | |
7989 | self = self; | |
efc5f224 | 7990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7991 | return NULL; |
1d99702e RD |
7992 | if (_argo0) { |
7993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7996 | return NULL; |
7997 | } | |
7998 | } | |
1d99702e | 7999 | if (_argo1) { |
7e50db3f | 8000 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a | 8001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); |
8ab979d7 | 8002 | return NULL; |
d5c9047a | 8003 | } |
8ab979d7 | 8004 | } |
d5c9047a RD |
8005 | { |
8006 | temp = (long) PyInt_AsLong(_obj2); | |
8007 | _arg2 = &temp; | |
8ab979d7 | 8008 | } |
cf694132 | 8009 | { |
4268f798 | 8010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8011 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); |
cf694132 | 8012 | |
4268f798 | 8013 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8014 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8015 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8016 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 | 8017 | { |
d5c9047a RD |
8018 | PyObject *o; |
8019 | o = PyInt_FromLong((long) (*_arg2)); | |
8020 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
8021 | } |
8022 | return _resultobj; | |
8023 | } | |
8024 | ||
d5c9047a | 8025 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) |
efc5f224 | 8026 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8027 | PyObject * _resultobj; |
d5c9047a | 8028 | wxTreeItemId * _result; |
f6bcfd97 | 8029 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8030 | wxTreeItemId * _arg1; |
1d99702e RD |
8031 | PyObject * _argo0 = 0; |
8032 | PyObject * _argo1 = 0; | |
efc5f224 | 8033 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8034 | char _ptemp[128]; |
8ab979d7 RD |
8035 | |
8036 | self = self; | |
efc5f224 | 8037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8038 | return NULL; |
1d99702e RD |
8039 | if (_argo0) { |
8040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8043 | return NULL; |
8044 | } | |
8045 | } | |
1d99702e | 8046 | if (_argo1) { |
7e50db3f | 8047 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); |
8049 | return NULL; | |
8050 | } | |
8051 | } | |
cf694132 | 8052 | { |
4268f798 | 8053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8054 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); |
cf694132 | 8055 | |
4268f798 | 8056 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8057 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8058 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8059 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8060 | return _resultobj; |
8061 | } | |
8062 | ||
d5c9047a | 8063 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) |
efc5f224 | 8064 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8065 | PyObject * _resultobj; |
d5c9047a | 8066 | wxTreeItemId * _result; |
f6bcfd97 | 8067 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8068 | wxTreeItemId * _arg1; |
1d99702e RD |
8069 | PyObject * _argo0 = 0; |
8070 | PyObject * _argo1 = 0; | |
efc5f224 | 8071 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8072 | char _ptemp[128]; |
8ab979d7 RD |
8073 | |
8074 | self = self; | |
efc5f224 | 8075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8076 | return NULL; |
1d99702e RD |
8077 | if (_argo0) { |
8078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8081 | return NULL; |
8082 | } | |
8083 | } | |
1d99702e | 8084 | if (_argo1) { |
7e50db3f | 8085 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8086 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); |
8087 | return NULL; | |
8088 | } | |
8089 | } | |
cf694132 | 8090 | { |
4268f798 | 8091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8092 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); |
cf694132 | 8093 | |
4268f798 | 8094 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8095 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8096 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8097 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8098 | return _resultobj; |
8099 | } | |
8100 | ||
d5c9047a | 8101 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) |
efc5f224 | 8102 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8103 | PyObject * _resultobj; |
d5c9047a | 8104 | wxTreeItemId * _result; |
f6bcfd97 | 8105 | wxPyTreeCtrl * _arg0; |
1d99702e | 8106 | PyObject * _argo0 = 0; |
efc5f224 | 8107 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 8108 | char _ptemp[128]; |
8ab979d7 RD |
8109 | |
8110 | self = self; | |
efc5f224 | 8111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) |
8ab979d7 | 8112 | return NULL; |
1d99702e RD |
8113 | if (_argo0) { |
8114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8117 | return NULL; |
8118 | } | |
8119 | } | |
cf694132 | 8120 | { |
4268f798 | 8121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8122 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); |
cf694132 | 8123 | |
4268f798 | 8124 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8125 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8126 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8127 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8128 | return _resultobj; |
8129 | } | |
8130 | ||
d5c9047a | 8131 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) |
efc5f224 | 8132 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8133 | PyObject * _resultobj; |
d5c9047a | 8134 | wxTreeItemId * _result; |
f6bcfd97 | 8135 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8136 | wxTreeItemId * _arg1; |
1d99702e RD |
8137 | PyObject * _argo0 = 0; |
8138 | PyObject * _argo1 = 0; | |
efc5f224 | 8139 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8140 | char _ptemp[128]; |
8ab979d7 RD |
8141 | |
8142 | self = self; | |
efc5f224 | 8143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8144 | return NULL; |
1d99702e RD |
8145 | if (_argo0) { |
8146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8149 | return NULL; |
8150 | } | |
8151 | } | |
1d99702e | 8152 | if (_argo1) { |
7e50db3f | 8153 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); |
8155 | return NULL; | |
8156 | } | |
8157 | } | |
cf694132 | 8158 | { |
4268f798 | 8159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8160 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); |
cf694132 | 8161 | |
4268f798 | 8162 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8163 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8164 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8165 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8166 | return _resultobj; |
8167 | } | |
8168 | ||
d5c9047a | 8169 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) |
efc5f224 | 8170 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8171 | PyObject * _resultobj; |
d5c9047a | 8172 | wxTreeItemId * _result; |
f6bcfd97 | 8173 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8174 | wxTreeItemId * _arg1; |
1d99702e RD |
8175 | PyObject * _argo0 = 0; |
8176 | PyObject * _argo1 = 0; | |
efc5f224 | 8177 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8178 | char _ptemp[128]; |
8ab979d7 RD |
8179 | |
8180 | self = self; | |
efc5f224 | 8181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8182 | return NULL; |
1d99702e RD |
8183 | if (_argo0) { |
8184 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8185 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8187 | return NULL; |
8188 | } | |
8189 | } | |
1d99702e | 8190 | if (_argo1) { |
7e50db3f | 8191 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a | 8192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8193 | return NULL; |
8194 | } | |
8195 | } | |
cf694132 | 8196 | { |
4268f798 | 8197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8198 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); |
cf694132 | 8199 | |
4268f798 | 8200 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8201 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8202 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8203 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8204 | return _resultobj; |
8205 | } | |
8206 | ||
d426c97e RD |
8207 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) |
8208 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8209 | PyObject * _resultobj; | |
8210 | wxTreeItemId * _result; | |
f6bcfd97 | 8211 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8212 | wxTreeItemId * _arg1; |
8213 | PyObject * _argo0 = 0; | |
8214 | PyObject * _argo1 = 0; | |
8215 | char *_kwnames[] = { "self","item", NULL }; | |
8216 | char _ptemp[128]; | |
8217 | ||
8218 | self = self; | |
8219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
8220 | return NULL; | |
8221 | if (_argo0) { | |
8222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8225 | return NULL; |
8226 | } | |
8227 | } | |
8228 | if (_argo1) { | |
7e50db3f | 8229 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d426c97e RD |
8230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); |
8231 | return NULL; | |
8232 | } | |
8233 | } | |
8234 | { | |
4268f798 | 8235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8236 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); |
d426c97e | 8237 | |
4268f798 | 8238 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8239 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8240 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8241 | _resultobj = Py_BuildValue("s",_ptemp); | |
8242 | return _resultobj; | |
8243 | } | |
8244 | ||
d5c9047a | 8245 | #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 8246 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8247 | PyObject * _resultobj; |
d5c9047a | 8248 | wxTreeItemId * _result; |
f6bcfd97 | 8249 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8250 | wxString * _arg1; |
1d99702e RD |
8251 | int _arg2 = (int ) -1; |
8252 | int _arg3 = (int ) -1; | |
8253 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
8254 | PyObject * _argo0 = 0; | |
d5c9047a | 8255 | PyObject * _obj1 = 0; |
1d99702e | 8256 | PyObject * _argo4 = 0; |
efc5f224 | 8257 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; |
d5c9047a | 8258 | char _ptemp[128]; |
8ab979d7 RD |
8259 | |
8260 | self = self; | |
efc5f224 | 8261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) |
8ab979d7 | 8262 | return NULL; |
1d99702e RD |
8263 | if (_argo0) { |
8264 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8265 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8267 | return NULL; |
8268 | } | |
8269 | } | |
d5c9047a | 8270 | { |
c8bc7bb8 RD |
8271 | _arg1 = wxString_in_helper(_obj1); |
8272 | if (_arg1 == NULL) | |
185d7c3e | 8273 | return NULL; |
d5c9047a | 8274 | } |
1d99702e RD |
8275 | if (_argo4) { |
8276 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
8277 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
cf694132 | 8278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
8279 | return NULL; |
8280 | } | |
8281 | } | |
cf694132 | 8282 | { |
4268f798 | 8283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8284 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); |
cf694132 | 8285 | |
4268f798 | 8286 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8287 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8288 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8289 | _resultobj = Py_BuildValue("s",_ptemp); |
8290 | { | |
8291 | if (_obj1) | |
8292 | delete _arg1; | |
8293 | } | |
8ab979d7 RD |
8294 | return _resultobj; |
8295 | } | |
8296 | ||
d5c9047a | 8297 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8298 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8299 | PyObject * _resultobj; |
d5c9047a | 8300 | wxTreeItemId * _result; |
f6bcfd97 | 8301 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8302 | wxTreeItemId * _arg1; |
8303 | wxString * _arg2; | |
1d99702e RD |
8304 | int _arg3 = (int ) -1; |
8305 | int _arg4 = (int ) -1; | |
8306 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8307 | PyObject * _argo0 = 0; | |
8308 | PyObject * _argo1 = 0; | |
d5c9047a | 8309 | PyObject * _obj2 = 0; |
1d99702e | 8310 | PyObject * _argo5 = 0; |
efc5f224 | 8311 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8312 | char _ptemp[128]; |
8ab979d7 RD |
8313 | |
8314 | self = self; | |
efc5f224 | 8315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8316 | return NULL; |
1d99702e RD |
8317 | if (_argo0) { |
8318 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8319 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8321 | return NULL; |
8322 | } | |
8323 | } | |
1d99702e | 8324 | if (_argo1) { |
7e50db3f | 8325 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); |
8327 | return NULL; | |
8328 | } | |
8329 | } | |
8330 | { | |
c8bc7bb8 RD |
8331 | _arg2 = wxString_in_helper(_obj2); |
8332 | if (_arg2 == NULL) | |
185d7c3e | 8333 | return NULL; |
d5c9047a | 8334 | } |
1d99702e RD |
8335 | if (_argo5) { |
8336 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8337 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8339 | return NULL; |
8340 | } | |
8341 | } | |
cf694132 | 8342 | { |
4268f798 | 8343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8344 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); |
cf694132 | 8345 | |
4268f798 | 8346 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8347 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8348 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8349 | _resultobj = Py_BuildValue("s",_ptemp); |
8350 | { | |
8351 | if (_obj2) | |
8352 | delete _arg2; | |
8353 | } | |
8ab979d7 RD |
8354 | return _resultobj; |
8355 | } | |
8356 | ||
d5c9047a | 8357 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 8358 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8359 | PyObject * _resultobj; |
d5c9047a | 8360 | wxTreeItemId * _result; |
f6bcfd97 | 8361 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8362 | wxTreeItemId * _arg1; |
8363 | wxTreeItemId * _arg2; | |
8364 | wxString * _arg3; | |
1d99702e RD |
8365 | int _arg4 = (int ) -1; |
8366 | int _arg5 = (int ) -1; | |
8367 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
8368 | PyObject * _argo0 = 0; | |
8369 | PyObject * _argo1 = 0; | |
8370 | PyObject * _argo2 = 0; | |
d5c9047a | 8371 | PyObject * _obj3 = 0; |
1d99702e | 8372 | PyObject * _argo6 = 0; |
efc5f224 | 8373 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; |
d5c9047a | 8374 | char _ptemp[128]; |
8ab979d7 RD |
8375 | |
8376 | self = self; | |
efc5f224 | 8377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) |
8ab979d7 | 8378 | return NULL; |
1d99702e RD |
8379 | if (_argo0) { |
8380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8383 | return NULL; |
8384 | } | |
8385 | } | |
1d99702e | 8386 | if (_argo1) { |
7e50db3f | 8387 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8389 | return NULL; | |
8390 | } | |
8391 | } | |
1d99702e | 8392 | if (_argo2) { |
7e50db3f | 8393 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { |
d5c9047a RD |
8394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8395 | return NULL; | |
8396 | } | |
8397 | } | |
8398 | { | |
c8bc7bb8 RD |
8399 | _arg3 = wxString_in_helper(_obj3); |
8400 | if (_arg3 == NULL) | |
185d7c3e | 8401 | return NULL; |
d5c9047a | 8402 | } |
1d99702e RD |
8403 | if (_argo6) { |
8404 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8405 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
cf694132 | 8406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8407 | return NULL; |
8408 | } | |
8409 | } | |
cf694132 | 8410 | { |
4268f798 | 8411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8412 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); |
cf694132 | 8413 | |
4268f798 | 8414 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8415 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8416 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8417 | _resultobj = Py_BuildValue("s",_ptemp); |
8418 | { | |
8419 | if (_obj3) | |
8420 | delete _arg3; | |
8421 | } | |
8ab979d7 RD |
8422 | return _resultobj; |
8423 | } | |
8424 | ||
f6bcfd97 BP |
8425 | #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
8426 | static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8427 | PyObject * _resultobj; | |
8428 | wxTreeItemId * _result; | |
8429 | wxPyTreeCtrl * _arg0; | |
8430 | wxTreeItemId * _arg1; | |
8431 | size_t _arg2; | |
8432 | wxString * _arg3; | |
8433 | int _arg4 = (int ) -1; | |
8434 | int _arg5 = (int ) -1; | |
3999941a | 8435 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; |
f6bcfd97 BP |
8436 | PyObject * _argo0 = 0; |
8437 | PyObject * _argo1 = 0; | |
8438 | PyObject * _obj3 = 0; | |
8439 | PyObject * _argo6 = 0; | |
8440 | char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL }; | |
8441 | char _ptemp[128]; | |
8442 | ||
8443 | self = self; | |
8444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
8445 | return NULL; | |
8446 | if (_argo0) { | |
8447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p."); | |
8450 | return NULL; | |
8451 | } | |
8452 | } | |
8453 | if (_argo1) { | |
7e50db3f | 8454 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
f6bcfd97 BP |
8455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p."); |
8456 | return NULL; | |
8457 | } | |
8458 | } | |
8459 | { | |
c8bc7bb8 RD |
8460 | _arg3 = wxString_in_helper(_obj3); |
8461 | if (_arg3 == NULL) | |
185d7c3e | 8462 | return NULL; |
f6bcfd97 BP |
8463 | } |
8464 | if (_argo6) { | |
8465 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
3999941a RD |
8466 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { |
8467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeItemData_p."); | |
f6bcfd97 BP |
8468 | return NULL; |
8469 | } | |
8470 | } | |
8471 | { | |
4268f798 | 8472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8473 | _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6)); |
f6bcfd97 | 8474 | |
4268f798 | 8475 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8476 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
8477 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8478 | _resultobj = Py_BuildValue("s",_ptemp); | |
8479 | { | |
8480 | if (_obj3) | |
8481 | delete _arg3; | |
8482 | } | |
8483 | return _resultobj; | |
8484 | } | |
8485 | ||
d5c9047a | 8486 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8487 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8488 | PyObject * _resultobj; |
d5c9047a | 8489 | wxTreeItemId * _result; |
f6bcfd97 | 8490 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8491 | wxTreeItemId * _arg1; |
8ab979d7 | 8492 | wxString * _arg2; |
1d99702e RD |
8493 | int _arg3 = (int ) -1; |
8494 | int _arg4 = (int ) -1; | |
8495 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8496 | PyObject * _argo0 = 0; | |
8497 | PyObject * _argo1 = 0; | |
8ab979d7 | 8498 | PyObject * _obj2 = 0; |
1d99702e | 8499 | PyObject * _argo5 = 0; |
efc5f224 | 8500 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8501 | char _ptemp[128]; |
8ab979d7 RD |
8502 | |
8503 | self = self; | |
efc5f224 | 8504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8505 | return NULL; |
1d99702e RD |
8506 | if (_argo0) { |
8507 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8508 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8510 | return NULL; |
8511 | } | |
8512 | } | |
1d99702e | 8513 | if (_argo1) { |
7e50db3f | 8514 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a | 8515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8516 | return NULL; |
8517 | } | |
8518 | } | |
8519 | { | |
c8bc7bb8 RD |
8520 | _arg2 = wxString_in_helper(_obj2); |
8521 | if (_arg2 == NULL) | |
185d7c3e | 8522 | return NULL; |
8ab979d7 | 8523 | } |
1d99702e RD |
8524 | if (_argo5) { |
8525 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8526 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8528 | return NULL; |
8529 | } | |
8530 | } | |
cf694132 | 8531 | { |
4268f798 | 8532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8533 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); |
cf694132 | 8534 | |
4268f798 | 8535 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8536 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8537 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8538 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8539 | { |
8540 | if (_obj2) | |
8541 | delete _arg2; | |
8542 | } | |
8543 | return _resultobj; | |
8544 | } | |
8545 | ||
d5c9047a | 8546 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
efc5f224 | 8547 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8548 | PyObject * _resultobj; |
f6bcfd97 | 8549 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8550 | wxTreeItemId * _arg1; |
1d99702e RD |
8551 | PyObject * _argo0 = 0; |
8552 | PyObject * _argo1 = 0; | |
efc5f224 | 8553 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
8554 | |
8555 | self = self; | |
efc5f224 | 8556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8557 | return NULL; |
1d99702e RD |
8558 | if (_argo0) { |
8559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8562 | return NULL; |
8563 | } | |
8564 | } | |
1d99702e | 8565 | if (_argo1) { |
7e50db3f | 8566 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); |
8568 | return NULL; | |
8569 | } | |
8570 | } | |
cf694132 | 8571 | { |
4268f798 | 8572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8573 | wxTreeCtrl_Delete(_arg0,*_arg1); |
cf694132 | 8574 | |
4268f798 | 8575 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8576 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8577 | } Py_INCREF(Py_None); |
d5c9047a RD |
8578 | _resultobj = Py_None; |
8579 | return _resultobj; | |
8580 | } | |
8581 | ||
08127323 | 8582 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) |
efc5f224 | 8583 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 8584 | PyObject * _resultobj; |
f6bcfd97 | 8585 | wxPyTreeCtrl * _arg0; |
08127323 | 8586 | wxTreeItemId * _arg1; |
1d99702e RD |
8587 | PyObject * _argo0 = 0; |
8588 | PyObject * _argo1 = 0; | |
efc5f224 | 8589 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
8590 | |
8591 | self = self; | |
efc5f224 | 8592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) |
08127323 | 8593 | return NULL; |
1d99702e RD |
8594 | if (_argo0) { |
8595 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8596 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
8598 | return NULL; |
8599 | } | |
8600 | } | |
1d99702e | 8601 | if (_argo1) { |
7e50db3f | 8602 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
08127323 RD |
8603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); |
8604 | return NULL; | |
8605 | } | |
8606 | } | |
cf694132 | 8607 | { |
4268f798 | 8608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8609 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); |
cf694132 | 8610 | |
4268f798 | 8611 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8612 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8613 | } Py_INCREF(Py_None); |
08127323 RD |
8614 | _resultobj = Py_None; |
8615 | return _resultobj; | |
8616 | } | |
8617 | ||
d5c9047a | 8618 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) |
efc5f224 | 8619 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8620 | PyObject * _resultobj; |
f6bcfd97 | 8621 | wxPyTreeCtrl * _arg0; |
1d99702e | 8622 | PyObject * _argo0 = 0; |
efc5f224 | 8623 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8624 | |
8625 | self = self; | |
efc5f224 | 8626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) |
d5c9047a | 8627 | return NULL; |
1d99702e RD |
8628 | if (_argo0) { |
8629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8632 | return NULL; |
8633 | } | |
8634 | } | |
cf694132 | 8635 | { |
4268f798 | 8636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8637 | wxTreeCtrl_DeleteAllItems(_arg0); |
cf694132 | 8638 | |
4268f798 | 8639 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8640 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8641 | } Py_INCREF(Py_None); |
d5c9047a RD |
8642 | _resultobj = Py_None; |
8643 | return _resultobj; | |
8644 | } | |
8645 | ||
8646 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
efc5f224 | 8647 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8648 | PyObject * _resultobj; |
f6bcfd97 | 8649 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8650 | wxTreeItemId * _arg1; |
1d99702e RD |
8651 | PyObject * _argo0 = 0; |
8652 | PyObject * _argo1 = 0; | |
efc5f224 | 8653 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8654 | |
8655 | self = self; | |
efc5f224 | 8656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8657 | return NULL; |
1d99702e RD |
8658 | if (_argo0) { |
8659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8662 | return NULL; |
8663 | } | |
8664 | } | |
1d99702e | 8665 | if (_argo1) { |
7e50db3f | 8666 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); |
8668 | return NULL; | |
8669 | } | |
8670 | } | |
cf694132 | 8671 | { |
4268f798 | 8672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8673 | wxTreeCtrl_Expand(_arg0,*_arg1); |
cf694132 | 8674 | |
4268f798 | 8675 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8676 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8677 | } Py_INCREF(Py_None); |
d5c9047a RD |
8678 | _resultobj = Py_None; |
8679 | return _resultobj; | |
8680 | } | |
8681 | ||
8682 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
efc5f224 | 8683 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8684 | PyObject * _resultobj; |
f6bcfd97 | 8685 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8686 | wxTreeItemId * _arg1; |
1d99702e RD |
8687 | PyObject * _argo0 = 0; |
8688 | PyObject * _argo1 = 0; | |
efc5f224 | 8689 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8690 | |
8691 | self = self; | |
efc5f224 | 8692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8693 | return NULL; |
1d99702e RD |
8694 | if (_argo0) { |
8695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8698 | return NULL; |
8699 | } | |
8700 | } | |
1d99702e | 8701 | if (_argo1) { |
7e50db3f | 8702 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p."); |
8704 | return NULL; | |
8705 | } | |
8706 | } | |
cf694132 | 8707 | { |
4268f798 | 8708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8709 | wxTreeCtrl_Collapse(_arg0,*_arg1); |
cf694132 | 8710 | |
4268f798 | 8711 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8712 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8713 | } Py_INCREF(Py_None); |
d5c9047a RD |
8714 | _resultobj = Py_None; |
8715 | return _resultobj; | |
8716 | } | |
8717 | ||
8718 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
efc5f224 | 8719 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8720 | PyObject * _resultobj; |
f6bcfd97 | 8721 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8722 | wxTreeItemId * _arg1; |
1d99702e RD |
8723 | PyObject * _argo0 = 0; |
8724 | PyObject * _argo1 = 0; | |
efc5f224 | 8725 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8726 | |
8727 | self = self; | |
efc5f224 | 8728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8729 | return NULL; |
1d99702e RD |
8730 | if (_argo0) { |
8731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8734 | return NULL; |
8735 | } | |
8736 | } | |
1d99702e | 8737 | if (_argo1) { |
7e50db3f | 8738 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); |
8740 | return NULL; | |
8741 | } | |
8742 | } | |
cf694132 | 8743 | { |
4268f798 | 8744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8745 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); |
cf694132 | 8746 | |
4268f798 | 8747 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8748 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8749 | } Py_INCREF(Py_None); |
d5c9047a RD |
8750 | _resultobj = Py_None; |
8751 | return _resultobj; | |
8752 | } | |
8753 | ||
8754 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
efc5f224 | 8755 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8756 | PyObject * _resultobj; |
f6bcfd97 | 8757 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8758 | wxTreeItemId * _arg1; |
1d99702e RD |
8759 | PyObject * _argo0 = 0; |
8760 | PyObject * _argo1 = 0; | |
efc5f224 | 8761 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8762 | |
8763 | self = self; | |
efc5f224 | 8764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8765 | return NULL; |
1d99702e RD |
8766 | if (_argo0) { |
8767 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8768 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8770 | return NULL; |
8771 | } | |
8772 | } | |
1d99702e | 8773 | if (_argo1) { |
7e50db3f | 8774 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); |
8776 | return NULL; | |
8777 | } | |
8778 | } | |
cf694132 | 8779 | { |
4268f798 | 8780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8781 | wxTreeCtrl_Toggle(_arg0,*_arg1); |
cf694132 | 8782 | |
4268f798 | 8783 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8784 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8785 | } Py_INCREF(Py_None); |
d5c9047a RD |
8786 | _resultobj = Py_None; |
8787 | return _resultobj; | |
8788 | } | |
8789 | ||
8790 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
efc5f224 | 8791 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8792 | PyObject * _resultobj; |
f6bcfd97 | 8793 | wxPyTreeCtrl * _arg0; |
1d99702e | 8794 | PyObject * _argo0 = 0; |
efc5f224 | 8795 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8796 | |
8797 | self = self; | |
efc5f224 | 8798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) |
d5c9047a | 8799 | return NULL; |
1d99702e RD |
8800 | if (_argo0) { |
8801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8804 | return NULL; |
8805 | } | |
8806 | } | |
cf694132 | 8807 | { |
4268f798 | 8808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8809 | wxTreeCtrl_Unselect(_arg0); |
cf694132 | 8810 | |
4268f798 | 8811 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8812 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8813 | } Py_INCREF(Py_None); |
d5c9047a RD |
8814 | _resultobj = Py_None; |
8815 | return _resultobj; | |
8816 | } | |
8817 | ||
8bf5d46e | 8818 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) |
efc5f224 | 8819 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e | 8820 | PyObject * _resultobj; |
f6bcfd97 | 8821 | wxPyTreeCtrl * _arg0; |
1d99702e | 8822 | PyObject * _argo0 = 0; |
efc5f224 | 8823 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
8824 | |
8825 | self = self; | |
efc5f224 | 8826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) |
8bf5d46e | 8827 | return NULL; |
1d99702e RD |
8828 | if (_argo0) { |
8829 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8830 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8831 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p."); | |
8bf5d46e RD |
8832 | return NULL; |
8833 | } | |
8834 | } | |
8835 | { | |
4268f798 | 8836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8837 | wxTreeCtrl_UnselectAll(_arg0); |
8bf5d46e | 8838 | |
4268f798 | 8839 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8840 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
8841 | } Py_INCREF(Py_None); |
8842 | _resultobj = Py_None; | |
8843 | return _resultobj; | |
8844 | } | |
8845 | ||
d5c9047a | 8846 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) |
efc5f224 | 8847 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8848 | PyObject * _resultobj; |
f6bcfd97 | 8849 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8850 | wxTreeItemId * _arg1; |
1d99702e RD |
8851 | PyObject * _argo0 = 0; |
8852 | PyObject * _argo1 = 0; | |
efc5f224 | 8853 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8854 | |
8855 | self = self; | |
efc5f224 | 8856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8857 | return NULL; |
1d99702e RD |
8858 | if (_argo0) { |
8859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8862 | return NULL; |
8863 | } | |
8864 | } | |
1d99702e | 8865 | if (_argo1) { |
7e50db3f | 8866 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); |
8868 | return NULL; | |
8869 | } | |
8870 | } | |
cf694132 | 8871 | { |
4268f798 | 8872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8873 | wxTreeCtrl_SelectItem(_arg0,*_arg1); |
cf694132 | 8874 | |
4268f798 | 8875 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8876 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8877 | } Py_INCREF(Py_None); |
d5c9047a RD |
8878 | _resultobj = Py_None; |
8879 | return _resultobj; | |
8880 | } | |
8881 | ||
8882 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
efc5f224 | 8883 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8884 | PyObject * _resultobj; |
f6bcfd97 | 8885 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8886 | wxTreeItemId * _arg1; |
1d99702e RD |
8887 | PyObject * _argo0 = 0; |
8888 | PyObject * _argo1 = 0; | |
efc5f224 | 8889 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8890 | |
8891 | self = self; | |
efc5f224 | 8892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8893 | return NULL; |
1d99702e RD |
8894 | if (_argo0) { |
8895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8898 | return NULL; |
8899 | } | |
8900 | } | |
1d99702e | 8901 | if (_argo1) { |
7e50db3f | 8902 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); |
8904 | return NULL; | |
8905 | } | |
8906 | } | |
cf694132 | 8907 | { |
4268f798 | 8908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8909 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); |
cf694132 | 8910 | |
4268f798 | 8911 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8912 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8913 | } Py_INCREF(Py_None); |
d5c9047a RD |
8914 | _resultobj = Py_None; |
8915 | return _resultobj; | |
8916 | } | |
8917 | ||
8918 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
efc5f224 | 8919 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8920 | PyObject * _resultobj; |
f6bcfd97 | 8921 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8922 | wxTreeItemId * _arg1; |
1d99702e RD |
8923 | PyObject * _argo0 = 0; |
8924 | PyObject * _argo1 = 0; | |
efc5f224 | 8925 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8926 | |
8927 | self = self; | |
efc5f224 | 8928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8929 | return NULL; |
1d99702e RD |
8930 | if (_argo0) { |
8931 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8932 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8933 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8934 | return NULL; |
8935 | } | |
8936 | } | |
1d99702e | 8937 | if (_argo1) { |
7e50db3f | 8938 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d5c9047a RD |
8939 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); |
8940 | return NULL; | |
8941 | } | |
8942 | } | |
cf694132 | 8943 | { |
4268f798 | 8944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8945 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); |
cf694132 | 8946 | |
4268f798 | 8947 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8948 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8949 | } Py_INCREF(Py_None); |
d5c9047a RD |
8950 | _resultobj = Py_None; |
8951 | return _resultobj; | |
8952 | } | |
8953 | ||
7e50db3f RD |
8954 | #define wxTreeCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) |
8955 | static PyObject *_wrap_wxTreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d5c9047a RD |
8956 | PyObject * _resultobj; |
8957 | wxTextCtrl * _result; | |
f6bcfd97 | 8958 | wxPyTreeCtrl * _arg0; |
1d99702e | 8959 | PyObject * _argo0 = 0; |
7e50db3f | 8960 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8961 | |
8962 | self = self; | |
7e50db3f | 8963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetEditControl",_kwnames,&_argo0)) |
d5c9047a | 8964 | return NULL; |
1d99702e RD |
8965 | if (_argo0) { |
8966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 8967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7e50db3f | 8968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetEditControl. Expected _wxPyTreeCtrl_p."); |
d5c9047a RD |
8969 | return NULL; |
8970 | } | |
8971 | } | |
cf694132 | 8972 | { |
4268f798 | 8973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 8974 | _result = (wxTextCtrl *)wxTreeCtrl_GetEditControl(_arg0); |
cf694132 | 8975 | |
4268f798 | 8976 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8977 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8978 | }{ _resultobj = wxPyMake_wxObject(_result); } |
d5c9047a RD |
8979 | return _resultobj; |
8980 | } | |
8981 | ||
7e50db3f RD |
8982 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) |
8983 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d5c9047a | 8984 | PyObject * _resultobj; |
f6bcfd97 | 8985 | wxPyTreeCtrl * _arg0; |
7e50db3f | 8986 | wxTreeItemId * _arg1; |
1d99702e | 8987 | PyObject * _argo0 = 0; |
7e50db3f RD |
8988 | PyObject * _argo1 = 0; |
8989 | char *_kwnames[] = { "self","item", NULL }; | |
d5c9047a RD |
8990 | |
8991 | self = self; | |
7e50db3f | 8992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8993 | return NULL; |
1d99702e RD |
8994 | if (_argo0) { |
8995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 8996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7e50db3f RD |
8997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p."); |
8998 | return NULL; | |
8999 | } | |
9000 | } | |
9001 | if (_argo1) { | |
9002 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); | |
d5c9047a RD |
9004 | return NULL; |
9005 | } | |
9006 | } | |
cf694132 | 9007 | { |
4268f798 | 9008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 9009 | wxTreeCtrl_EditLabel(_arg0,*_arg1); |
cf694132 | 9010 | |
4268f798 | 9011 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9012 | if (PyErr_Occurred()) return NULL; |
7e50db3f RD |
9013 | } Py_INCREF(Py_None); |
9014 | _resultobj = Py_None; | |
d5c9047a RD |
9015 | return _resultobj; |
9016 | } | |
9017 | ||
9018 | #define wxTreeCtrl_EndEditLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->EndEditLabel(_swigarg0,_swigarg1)) | |
efc5f224 | 9019 | static PyObject *_wrap_wxTreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 9020 | PyObject * _resultobj; |
f6bcfd97 | 9021 | wxPyTreeCtrl * _arg0; |
d5c9047a | 9022 | wxTreeItemId * _arg1; |
b1462dfa | 9023 | int _arg2 = (int ) FALSE; |
1d99702e RD |
9024 | PyObject * _argo0 = 0; |
9025 | PyObject * _argo1 = 0; | |
efc5f224 | 9026 | char *_kwnames[] = { "self","item","discardChanges", NULL }; |
d5c9047a RD |
9027 | |
9028 | self = self; | |
b1462dfa | 9029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_EndEditLabel",_kwnames,&_argo0,&_argo1,&_arg2)) |
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_EndEditLabel. 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_EndEditLabel. Expected _wxTreeItemId_p."); |
9041 | return NULL; | |
9042 | } | |
9043 | } | |
cf694132 | 9044 | { |
4268f798 | 9045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9046 | wxTreeCtrl_EndEditLabel(_arg0,*_arg1,_arg2); |
cf694132 | 9047 | |
4268f798 | 9048 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9049 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9050 | } Py_INCREF(Py_None); |
d5c9047a | 9051 | _resultobj = Py_None; |
8ab979d7 RD |
9052 | return _resultobj; |
9053 | } | |
9054 | ||
d426c97e RD |
9055 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) |
9056 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9057 | PyObject * _resultobj; | |
f6bcfd97 | 9058 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
9059 | wxTreeItemId * _arg1; |
9060 | PyObject * _argo0 = 0; | |
9061 | PyObject * _argo1 = 0; | |
9062 | char *_kwnames[] = { "self","item", NULL }; | |
9063 | ||
9064 | self = self; | |
9065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
9066 | return NULL; | |
9067 | if (_argo0) { | |
9068 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
9071 | return NULL; |
9072 | } | |
9073 | } | |
9074 | if (_argo1) { | |
7e50db3f | 9075 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d426c97e RD |
9076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); |
9077 | return NULL; | |
9078 | } | |
9079 | } | |
9080 | { | |
4268f798 | 9081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9082 | wxTreeCtrl_SortChildren(_arg0,*_arg1); |
d426c97e | 9083 | |
4268f798 | 9084 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9085 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
9086 | } Py_INCREF(Py_None); |
9087 | _resultobj = Py_None; | |
9088 | return _resultobj; | |
9089 | } | |
9090 | ||
b8b8dda7 | 9091 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) |
efc5f224 | 9092 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 | 9093 | PyObject * _resultobj; |
f6bcfd97 | 9094 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9095 | wxTreeItemId * _arg1; |
b1462dfa | 9096 | int _arg2 = (int ) TRUE; |
1d99702e RD |
9097 | PyObject * _argo0 = 0; |
9098 | PyObject * _argo1 = 0; | |
efc5f224 | 9099 | char *_kwnames[] = { "self","item","bold", NULL }; |
b8b8dda7 RD |
9100 | |
9101 | self = self; | |
b1462dfa | 9102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) |
b8b8dda7 | 9103 | return NULL; |
1d99702e RD |
9104 | if (_argo0) { |
9105 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9106 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9107 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9108 | return NULL; |
9109 | } | |
9110 | } | |
1d99702e | 9111 | if (_argo1) { |
7e50db3f | 9112 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
b8b8dda7 RD |
9113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); |
9114 | return NULL; | |
9115 | } | |
9116 | } | |
cf694132 | 9117 | { |
4268f798 | 9118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9119 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); |
cf694132 | 9120 | |
4268f798 | 9121 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9122 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9123 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
9124 | _resultobj = Py_None; |
9125 | return _resultobj; | |
9126 | } | |
9127 | ||
9128 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
efc5f224 | 9129 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
9130 | PyObject * _resultobj; |
9131 | bool _result; | |
f6bcfd97 | 9132 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9133 | wxTreeItemId * _arg1; |
1d99702e RD |
9134 | PyObject * _argo0 = 0; |
9135 | PyObject * _argo1 = 0; | |
efc5f224 | 9136 | char *_kwnames[] = { "self","item", NULL }; |
b8b8dda7 RD |
9137 | |
9138 | self = self; | |
efc5f224 | 9139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 9140 | return NULL; |
1d99702e RD |
9141 | if (_argo0) { |
9142 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9143 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9145 | return NULL; |
9146 | } | |
9147 | } | |
1d99702e | 9148 | if (_argo1) { |
7e50db3f | 9149 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
b8b8dda7 RD |
9150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); |
9151 | return NULL; | |
9152 | } | |
9153 | } | |
cf694132 | 9154 | { |
4268f798 | 9155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9156 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); |
cf694132 | 9157 | |
4268f798 | 9158 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9159 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9160 | } _resultobj = Py_BuildValue("i",_result); |
b8b8dda7 RD |
9161 | return _resultobj; |
9162 | } | |
9163 | ||
164b735b | 9164 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
efc5f224 | 9165 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
9166 | PyObject * _resultobj; |
9167 | wxTreeItemId * _result; | |
f6bcfd97 | 9168 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9169 | wxPoint * _arg1; |
164b735b RD |
9170 | int * _arg2; |
9171 | int temp; | |
1d99702e | 9172 | PyObject * _argo0 = 0; |
164b735b | 9173 | wxPoint temp0; |
2f90df85 | 9174 | PyObject * _obj1 = 0; |
efc5f224 | 9175 | char *_kwnames[] = { "self","point", NULL }; |
b8b8dda7 RD |
9176 | char _ptemp[128]; |
9177 | ||
9178 | self = self; | |
164b735b RD |
9179 | { |
9180 | _arg2 = &temp; | |
9181 | } | |
2f90df85 | 9182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 9183 | return NULL; |
1d99702e RD |
9184 | if (_argo0) { |
9185 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9186 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9188 | return NULL; |
9189 | } | |
9190 | } | |
2f90df85 | 9191 | { |
164b735b | 9192 | _arg1 = &temp0; |
2f90df85 | 9193 | if (! wxPoint_helper(_obj1, &_arg1)) |
b8b8dda7 | 9194 | return NULL; |
2f90df85 | 9195 | } |
cf694132 | 9196 | { |
4268f798 | 9197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9198 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); |
cf694132 | 9199 | |
4268f798 | 9200 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9201 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9202 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
b8b8dda7 | 9203 | _resultobj = Py_BuildValue("s",_ptemp); |
164b735b RD |
9204 | { |
9205 | PyObject *o; | |
9206 | o = PyInt_FromLong((long) (*_arg2)); | |
9207 | _resultobj = t_output_helper(_resultobj, o); | |
9208 | } | |
b8b8dda7 RD |
9209 | return _resultobj; |
9210 | } | |
9211 | ||
b7e72427 RD |
9212 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
9213 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9214 | PyObject * _resultobj; | |
f6bcfd97 | 9215 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9216 | wxTreeItemId * _arg1; |
9217 | wxColour * _arg2; | |
9218 | PyObject * _argo0 = 0; | |
9219 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9220 | wxColour temp; |
9221 | PyObject * _obj2 = 0; | |
b7e72427 RD |
9222 | char *_kwnames[] = { "self","item","col", NULL }; |
9223 | ||
9224 | self = self; | |
f6bcfd97 | 9225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9226 | return NULL; |
9227 | if (_argo0) { | |
9228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9231 | return NULL; |
9232 | } | |
9233 | } | |
9234 | if (_argo1) { | |
7e50db3f | 9235 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
b7e72427 RD |
9236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); |
9237 | return NULL; | |
9238 | } | |
9239 | } | |
f6bcfd97 BP |
9240 | { |
9241 | _arg2 = &temp; | |
9242 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9243 | return NULL; |
f6bcfd97 | 9244 | } |
b7e72427 | 9245 | { |
4268f798 | 9246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9247 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); |
b7e72427 | 9248 | |
4268f798 | 9249 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9250 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9251 | } Py_INCREF(Py_None); |
9252 | _resultobj = Py_None; | |
9253 | return _resultobj; | |
9254 | } | |
9255 | ||
9256 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
9257 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9258 | PyObject * _resultobj; | |
f6bcfd97 | 9259 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9260 | wxTreeItemId * _arg1; |
9261 | wxColour * _arg2; | |
9262 | PyObject * _argo0 = 0; | |
9263 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9264 | wxColour temp; |
9265 | PyObject * _obj2 = 0; | |
b7e72427 RD |
9266 | char *_kwnames[] = { "self","item","col", NULL }; |
9267 | ||
9268 | self = self; | |
f6bcfd97 | 9269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9270 | return NULL; |
9271 | if (_argo0) { | |
9272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9275 | return NULL; |
9276 | } | |
9277 | } | |
9278 | if (_argo1) { | |
7e50db3f | 9279 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
b7e72427 RD |
9280 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); |
9281 | return NULL; | |
9282 | } | |
9283 | } | |
f6bcfd97 BP |
9284 | { |
9285 | _arg2 = &temp; | |
9286 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9287 | return NULL; |
f6bcfd97 | 9288 | } |
b7e72427 | 9289 | { |
4268f798 | 9290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9291 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); |
b7e72427 | 9292 | |
4268f798 | 9293 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9294 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9295 | } Py_INCREF(Py_None); |
9296 | _resultobj = Py_None; | |
9297 | return _resultobj; | |
9298 | } | |
9299 | ||
9300 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
9301 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9302 | PyObject * _resultobj; | |
f6bcfd97 | 9303 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9304 | wxTreeItemId * _arg1; |
9305 | wxFont * _arg2; | |
9306 | PyObject * _argo0 = 0; | |
9307 | PyObject * _argo1 = 0; | |
9308 | PyObject * _argo2 = 0; | |
9309 | char *_kwnames[] = { "self","item","font", NULL }; | |
9310 | ||
9311 | self = self; | |
9312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
9313 | return NULL; | |
9314 | if (_argo0) { | |
9315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9318 | return NULL; |
9319 | } | |
9320 | } | |
9321 | if (_argo1) { | |
7e50db3f | 9322 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
b7e72427 RD |
9323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); |
9324 | return NULL; | |
9325 | } | |
9326 | } | |
9327 | if (_argo2) { | |
7e50db3f | 9328 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { |
b7e72427 RD |
9329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); |
9330 | return NULL; | |
9331 | } | |
9332 | } | |
9333 | { | |
4268f798 | 9334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9335 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); |
b7e72427 | 9336 | |
4268f798 | 9337 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9338 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9339 | } Py_INCREF(Py_None); |
9340 | _resultobj = Py_None; | |
9341 | return _resultobj; | |
9342 | } | |
9343 | ||
b1462dfa RD |
9344 | #define wxTreeCtrl_SetItemDropHighlight(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemDropHighlight(_swigarg0,_swigarg1)) |
9345 | static PyObject *_wrap_wxTreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9346 | PyObject * _resultobj; | |
f6bcfd97 | 9347 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
9348 | wxTreeItemId * _arg1; |
9349 | int _arg2 = (int ) TRUE; | |
9350 | PyObject * _argo0 = 0; | |
9351 | PyObject * _argo1 = 0; | |
9352 | char *_kwnames[] = { "self","item","highlight", NULL }; | |
9353 | ||
9354 | self = self; | |
9355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemDropHighlight",_kwnames,&_argo0,&_argo1,&_arg2)) | |
9356 | return NULL; | |
9357 | if (_argo0) { | |
9358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemDropHighlight. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
9361 | return NULL; |
9362 | } | |
9363 | } | |
9364 | if (_argo1) { | |
7e50db3f | 9365 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
b1462dfa RD |
9366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemDropHighlight. Expected _wxTreeItemId_p."); |
9367 | return NULL; | |
9368 | } | |
9369 | } | |
9370 | { | |
4268f798 | 9371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9372 | wxTreeCtrl_SetItemDropHighlight(_arg0,*_arg1,_arg2); |
b1462dfa | 9373 | |
4268f798 | 9374 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9375 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9376 | } Py_INCREF(Py_None); |
9377 | _resultobj = Py_None; | |
9378 | return _resultobj; | |
9379 | } | |
9380 | ||
f6bcfd97 | 9381 | static PyObject * wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,const wxTreeItemId & item,int textOnly) { |
d426c97e | 9382 | wxRect rect; |
164b735b | 9383 | if (self->GetBoundingRect(item, rect, textOnly)) { |
4268f798 | 9384 | wxPyBeginBlockThreads(); |
164b735b | 9385 | wxRect* r = new wxRect(rect); |
7e50db3f | 9386 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect")); |
4268f798 | 9387 | wxPyEndBlockThreads(); |
164b735b RD |
9388 | return val; |
9389 | } | |
d426c97e RD |
9390 | else { |
9391 | Py_INCREF(Py_None); | |
9392 | return Py_None; | |
9393 | } | |
9394 | } | |
9395 | static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9396 | PyObject * _resultobj; | |
9397 | PyObject * _result; | |
f6bcfd97 | 9398 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
9399 | wxTreeItemId * _arg1; |
9400 | int _arg2 = (int ) FALSE; | |
9401 | PyObject * _argo0 = 0; | |
9402 | PyObject * _argo1 = 0; | |
9403 | char *_kwnames[] = { "self","item","textOnly", NULL }; | |
9404 | ||
9405 | self = self; | |
9406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&_arg2)) | |
9407 | return NULL; | |
9408 | if (_argo0) { | |
9409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetBoundingRect. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
9412 | return NULL; |
9413 | } | |
9414 | } | |
9415 | if (_argo1) { | |
7e50db3f | 9416 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
d426c97e RD |
9417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeItemId_p."); |
9418 | return NULL; | |
9419 | } | |
9420 | } | |
9421 | { | |
4268f798 | 9422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9423 | _result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(_arg0,*_arg1,_arg2); |
d426c97e | 9424 | |
4268f798 | 9425 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9426 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
9427 | }{ |
9428 | _resultobj = _result; | |
9429 | } | |
9430 | return _resultobj; | |
9431 | } | |
9432 | ||
68320e40 RD |
9433 | static void *SwigwxDirItemDataTowxObject(void *ptr) { |
9434 | wxDirItemData *src; | |
9435 | wxObject *dest; | |
9436 | src = (wxDirItemData *) ptr; | |
9437 | dest = (wxObject *) src; | |
9438 | return (void *) dest; | |
9439 | } | |
9440 | ||
9441 | #define new_wxDirItemData(_swigarg0,_swigarg1,_swigarg2) (new wxDirItemData(_swigarg0,_swigarg1,_swigarg2)) | |
9442 | static PyObject *_wrap_new_wxDirItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9443 | PyObject * _resultobj; | |
9444 | wxDirItemData * _result; | |
9445 | wxString * _arg0; | |
9446 | wxString * _arg1; | |
9447 | bool _arg2; | |
9448 | PyObject * _obj0 = 0; | |
9449 | PyObject * _obj1 = 0; | |
9450 | int tempbool2; | |
9451 | char *_kwnames[] = { "path","name","isDir", NULL }; | |
9452 | char _ptemp[128]; | |
9453 | ||
9454 | self = self; | |
9455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:new_wxDirItemData",_kwnames,&_obj0,&_obj1,&tempbool2)) | |
9456 | return NULL; | |
9457 | { | |
c8bc7bb8 RD |
9458 | _arg0 = wxString_in_helper(_obj0); |
9459 | if (_arg0 == NULL) | |
68320e40 | 9460 | return NULL; |
68320e40 RD |
9461 | } |
9462 | { | |
c8bc7bb8 RD |
9463 | _arg1 = wxString_in_helper(_obj1); |
9464 | if (_arg1 == NULL) | |
68320e40 | 9465 | return NULL; |
68320e40 RD |
9466 | } |
9467 | _arg2 = (bool ) tempbool2; | |
9468 | { | |
9469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9470 | _result = (wxDirItemData *)new_wxDirItemData(*_arg0,*_arg1,_arg2); |
68320e40 RD |
9471 | |
9472 | wxPyEndAllowThreads(__tstate); | |
9473 | if (PyErr_Occurred()) return NULL; | |
9474 | } if (_result) { | |
9475 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirItemData_p"); | |
9476 | _resultobj = Py_BuildValue("s",_ptemp); | |
9477 | } else { | |
9478 | Py_INCREF(Py_None); | |
9479 | _resultobj = Py_None; | |
9480 | } | |
9481 | { | |
9482 | if (_obj0) | |
9483 | delete _arg0; | |
9484 | } | |
9485 | { | |
9486 | if (_obj1) | |
9487 | delete _arg1; | |
9488 | } | |
9489 | return _resultobj; | |
9490 | } | |
9491 | ||
9492 | #define wxDirItemData_SetNewDirName(_swigobj,_swigarg0) (_swigobj->SetNewDirName(_swigarg0)) | |
9493 | static PyObject *_wrap_wxDirItemData_SetNewDirName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9494 | PyObject * _resultobj; | |
9495 | wxDirItemData * _arg0; | |
9496 | wxString * _arg1; | |
9497 | PyObject * _argo0 = 0; | |
9498 | PyObject * _obj1 = 0; | |
9499 | char *_kwnames[] = { "self","path", NULL }; | |
9500 | ||
9501 | self = self; | |
9502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_SetNewDirName",_kwnames,&_argo0,&_obj1)) | |
9503 | return NULL; | |
9504 | if (_argo0) { | |
9505 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9506 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_SetNewDirName. Expected _wxDirItemData_p."); | |
9508 | return NULL; | |
9509 | } | |
9510 | } | |
9511 | { | |
c8bc7bb8 RD |
9512 | _arg1 = wxString_in_helper(_obj1); |
9513 | if (_arg1 == NULL) | |
68320e40 | 9514 | return NULL; |
68320e40 RD |
9515 | } |
9516 | { | |
9517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9518 | wxDirItemData_SetNewDirName(_arg0,*_arg1); |
68320e40 RD |
9519 | |
9520 | wxPyEndAllowThreads(__tstate); | |
9521 | if (PyErr_Occurred()) return NULL; | |
9522 | } Py_INCREF(Py_None); | |
9523 | _resultobj = Py_None; | |
9524 | { | |
9525 | if (_obj1) | |
9526 | delete _arg1; | |
9527 | } | |
9528 | return _resultobj; | |
9529 | } | |
9530 | ||
9531 | #define wxDirItemData_m_path_set(_swigobj,_swigval) (_swigobj->m_path = *(_swigval),_swigval) | |
9532 | static PyObject *_wrap_wxDirItemData_m_path_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9533 | PyObject * _resultobj; | |
9534 | wxString * _result; | |
9535 | wxDirItemData * _arg0; | |
9536 | wxString * _arg1; | |
9537 | PyObject * _argo0 = 0; | |
9538 | PyObject * _obj1 = 0; | |
9539 | char *_kwnames[] = { "self","m_path", NULL }; | |
9540 | ||
9541 | self = self; | |
9542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_path_set",_kwnames,&_argo0,&_obj1)) | |
9543 | return NULL; | |
9544 | if (_argo0) { | |
9545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_set. Expected _wxDirItemData_p."); | |
9548 | return NULL; | |
9549 | } | |
9550 | } | |
9551 | { | |
c8bc7bb8 RD |
9552 | _arg1 = wxString_in_helper(_obj1); |
9553 | if (_arg1 == NULL) | |
68320e40 | 9554 | return NULL; |
68320e40 RD |
9555 | } |
9556 | { | |
9557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9558 | _result = (wxString *)wxDirItemData_m_path_set(_arg0,_arg1); |
68320e40 RD |
9559 | |
9560 | wxPyEndAllowThreads(__tstate); | |
9561 | if (PyErr_Occurred()) return NULL; | |
9562 | }{ | |
c8bc7bb8 | 9563 | #if wxUSE_UNICODE |
7e50db3f | 9564 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9565 | #else |
68320e40 | 9566 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9567 | #endif |
68320e40 RD |
9568 | } |
9569 | { | |
9570 | if (_obj1) | |
9571 | delete _arg1; | |
9572 | } | |
9573 | return _resultobj; | |
9574 | } | |
9575 | ||
9576 | #define wxDirItemData_m_path_get(_swigobj) (&_swigobj->m_path) | |
9577 | static PyObject *_wrap_wxDirItemData_m_path_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9578 | PyObject * _resultobj; | |
9579 | wxString * _result; | |
9580 | wxDirItemData * _arg0; | |
9581 | PyObject * _argo0 = 0; | |
9582 | char *_kwnames[] = { "self", NULL }; | |
9583 | ||
9584 | self = self; | |
9585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_path_get",_kwnames,&_argo0)) | |
9586 | return NULL; | |
9587 | if (_argo0) { | |
9588 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9589 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_get. Expected _wxDirItemData_p."); | |
9591 | return NULL; | |
9592 | } | |
9593 | } | |
9594 | { | |
9595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9596 | _result = (wxString *)wxDirItemData_m_path_get(_arg0); |
68320e40 RD |
9597 | |
9598 | wxPyEndAllowThreads(__tstate); | |
9599 | if (PyErr_Occurred()) return NULL; | |
9600 | }{ | |
c8bc7bb8 | 9601 | #if wxUSE_UNICODE |
7e50db3f | 9602 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9603 | #else |
68320e40 | 9604 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9605 | #endif |
68320e40 RD |
9606 | } |
9607 | return _resultobj; | |
9608 | } | |
9609 | ||
9610 | #define wxDirItemData_m_name_set(_swigobj,_swigval) (_swigobj->m_name = *(_swigval),_swigval) | |
9611 | static PyObject *_wrap_wxDirItemData_m_name_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9612 | PyObject * _resultobj; | |
9613 | wxString * _result; | |
9614 | wxDirItemData * _arg0; | |
9615 | wxString * _arg1; | |
9616 | PyObject * _argo0 = 0; | |
9617 | PyObject * _obj1 = 0; | |
9618 | char *_kwnames[] = { "self","m_name", NULL }; | |
9619 | ||
9620 | self = self; | |
9621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_name_set",_kwnames,&_argo0,&_obj1)) | |
9622 | return NULL; | |
9623 | if (_argo0) { | |
9624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_set. Expected _wxDirItemData_p."); | |
9627 | return NULL; | |
9628 | } | |
9629 | } | |
9630 | { | |
c8bc7bb8 RD |
9631 | _arg1 = wxString_in_helper(_obj1); |
9632 | if (_arg1 == NULL) | |
68320e40 | 9633 | return NULL; |
68320e40 RD |
9634 | } |
9635 | { | |
9636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9637 | _result = (wxString *)wxDirItemData_m_name_set(_arg0,_arg1); |
68320e40 RD |
9638 | |
9639 | wxPyEndAllowThreads(__tstate); | |
9640 | if (PyErr_Occurred()) return NULL; | |
9641 | }{ | |
c8bc7bb8 | 9642 | #if wxUSE_UNICODE |
7e50db3f | 9643 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9644 | #else |
68320e40 | 9645 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9646 | #endif |
68320e40 RD |
9647 | } |
9648 | { | |
9649 | if (_obj1) | |
9650 | delete _arg1; | |
9651 | } | |
9652 | return _resultobj; | |
9653 | } | |
9654 | ||
9655 | #define wxDirItemData_m_name_get(_swigobj) (&_swigobj->m_name) | |
9656 | static PyObject *_wrap_wxDirItemData_m_name_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9657 | PyObject * _resultobj; | |
9658 | wxString * _result; | |
9659 | wxDirItemData * _arg0; | |
9660 | PyObject * _argo0 = 0; | |
9661 | char *_kwnames[] = { "self", NULL }; | |
9662 | ||
9663 | self = self; | |
9664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_name_get",_kwnames,&_argo0)) | |
9665 | return NULL; | |
9666 | if (_argo0) { | |
9667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_get. Expected _wxDirItemData_p."); | |
9670 | return NULL; | |
9671 | } | |
9672 | } | |
9673 | { | |
9674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9675 | _result = (wxString *)wxDirItemData_m_name_get(_arg0); |
68320e40 RD |
9676 | |
9677 | wxPyEndAllowThreads(__tstate); | |
9678 | if (PyErr_Occurred()) return NULL; | |
9679 | }{ | |
c8bc7bb8 | 9680 | #if wxUSE_UNICODE |
7e50db3f | 9681 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9682 | #else |
68320e40 | 9683 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9684 | #endif |
68320e40 RD |
9685 | } |
9686 | return _resultobj; | |
9687 | } | |
9688 | ||
9689 | #define wxDirItemData_m_isHidden_set(_swigobj,_swigval) (_swigobj->m_isHidden = _swigval,_swigval) | |
9690 | static PyObject *_wrap_wxDirItemData_m_isHidden_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9691 | PyObject * _resultobj; | |
9692 | bool _result; | |
9693 | wxDirItemData * _arg0; | |
9694 | bool _arg1; | |
9695 | PyObject * _argo0 = 0; | |
9696 | int tempbool1; | |
9697 | char *_kwnames[] = { "self","m_isHidden", NULL }; | |
9698 | ||
9699 | self = self; | |
9700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isHidden_set",_kwnames,&_argo0,&tempbool1)) | |
9701 | return NULL; | |
9702 | if (_argo0) { | |
9703 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9704 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_set. Expected _wxDirItemData_p."); | |
9706 | return NULL; | |
9707 | } | |
9708 | } | |
9709 | _arg1 = (bool ) tempbool1; | |
9710 | { | |
9711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9712 | _result = (bool )wxDirItemData_m_isHidden_set(_arg0,_arg1); |
68320e40 RD |
9713 | |
9714 | wxPyEndAllowThreads(__tstate); | |
9715 | if (PyErr_Occurred()) return NULL; | |
9716 | } _resultobj = Py_BuildValue("i",_result); | |
9717 | return _resultobj; | |
9718 | } | |
9719 | ||
9720 | #define wxDirItemData_m_isHidden_get(_swigobj) ((bool ) _swigobj->m_isHidden) | |
9721 | static PyObject *_wrap_wxDirItemData_m_isHidden_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9722 | PyObject * _resultobj; | |
9723 | bool _result; | |
9724 | wxDirItemData * _arg0; | |
9725 | PyObject * _argo0 = 0; | |
9726 | char *_kwnames[] = { "self", NULL }; | |
9727 | ||
9728 | self = self; | |
9729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isHidden_get",_kwnames,&_argo0)) | |
9730 | return NULL; | |
9731 | if (_argo0) { | |
9732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_get. Expected _wxDirItemData_p."); | |
9735 | return NULL; | |
9736 | } | |
9737 | } | |
9738 | { | |
9739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9740 | _result = (bool )wxDirItemData_m_isHidden_get(_arg0); |
68320e40 RD |
9741 | |
9742 | wxPyEndAllowThreads(__tstate); | |
9743 | if (PyErr_Occurred()) return NULL; | |
9744 | } _resultobj = Py_BuildValue("i",_result); | |
9745 | return _resultobj; | |
9746 | } | |
9747 | ||
9748 | #define wxDirItemData_m_isExpanded_set(_swigobj,_swigval) (_swigobj->m_isExpanded = _swigval,_swigval) | |
9749 | static PyObject *_wrap_wxDirItemData_m_isExpanded_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9750 | PyObject * _resultobj; | |
9751 | bool _result; | |
9752 | wxDirItemData * _arg0; | |
9753 | bool _arg1; | |
9754 | PyObject * _argo0 = 0; | |
9755 | int tempbool1; | |
9756 | char *_kwnames[] = { "self","m_isExpanded", NULL }; | |
9757 | ||
9758 | self = self; | |
9759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isExpanded_set",_kwnames,&_argo0,&tempbool1)) | |
9760 | return NULL; | |
9761 | if (_argo0) { | |
9762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_set. Expected _wxDirItemData_p."); | |
9765 | return NULL; | |
9766 | } | |
9767 | } | |
9768 | _arg1 = (bool ) tempbool1; | |
9769 | { | |
9770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9771 | _result = (bool )wxDirItemData_m_isExpanded_set(_arg0,_arg1); |
68320e40 RD |
9772 | |
9773 | wxPyEndAllowThreads(__tstate); | |
9774 | if (PyErr_Occurred()) return NULL; | |
9775 | } _resultobj = Py_BuildValue("i",_result); | |
9776 | return _resultobj; | |
9777 | } | |
9778 | ||
9779 | #define wxDirItemData_m_isExpanded_get(_swigobj) ((bool ) _swigobj->m_isExpanded) | |
9780 | static PyObject *_wrap_wxDirItemData_m_isExpanded_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9781 | PyObject * _resultobj; | |
9782 | bool _result; | |
9783 | wxDirItemData * _arg0; | |
9784 | PyObject * _argo0 = 0; | |
9785 | char *_kwnames[] = { "self", NULL }; | |
9786 | ||
9787 | self = self; | |
9788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isExpanded_get",_kwnames,&_argo0)) | |
9789 | return NULL; | |
9790 | if (_argo0) { | |
9791 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9792 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9793 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_get. Expected _wxDirItemData_p."); | |
9794 | return NULL; | |
9795 | } | |
9796 | } | |
9797 | { | |
9798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9799 | _result = (bool )wxDirItemData_m_isExpanded_get(_arg0); |
68320e40 RD |
9800 | |
9801 | wxPyEndAllowThreads(__tstate); | |
9802 | if (PyErr_Occurred()) return NULL; | |
9803 | } _resultobj = Py_BuildValue("i",_result); | |
9804 | return _resultobj; | |
9805 | } | |
9806 | ||
9807 | #define wxDirItemData_m_isDir_set(_swigobj,_swigval) (_swigobj->m_isDir = _swigval,_swigval) | |
9808 | static PyObject *_wrap_wxDirItemData_m_isDir_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9809 | PyObject * _resultobj; | |
9810 | bool _result; | |
9811 | wxDirItemData * _arg0; | |
9812 | bool _arg1; | |
9813 | PyObject * _argo0 = 0; | |
9814 | int tempbool1; | |
9815 | char *_kwnames[] = { "self","m_isDir", NULL }; | |
9816 | ||
9817 | self = self; | |
9818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isDir_set",_kwnames,&_argo0,&tempbool1)) | |
9819 | return NULL; | |
9820 | if (_argo0) { | |
9821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_set. Expected _wxDirItemData_p."); | |
9824 | return NULL; | |
9825 | } | |
9826 | } | |
9827 | _arg1 = (bool ) tempbool1; | |
9828 | { | |
9829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9830 | _result = (bool )wxDirItemData_m_isDir_set(_arg0,_arg1); |
68320e40 RD |
9831 | |
9832 | wxPyEndAllowThreads(__tstate); | |
9833 | if (PyErr_Occurred()) return NULL; | |
9834 | } _resultobj = Py_BuildValue("i",_result); | |
9835 | return _resultobj; | |
9836 | } | |
9837 | ||
9838 | #define wxDirItemData_m_isDir_get(_swigobj) ((bool ) _swigobj->m_isDir) | |
9839 | static PyObject *_wrap_wxDirItemData_m_isDir_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9840 | PyObject * _resultobj; | |
9841 | bool _result; | |
9842 | wxDirItemData * _arg0; | |
9843 | PyObject * _argo0 = 0; | |
9844 | char *_kwnames[] = { "self", NULL }; | |
9845 | ||
9846 | self = self; | |
9847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isDir_get",_kwnames,&_argo0)) | |
9848 | return NULL; | |
9849 | if (_argo0) { | |
9850 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9851 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_get. Expected _wxDirItemData_p."); | |
9853 | return NULL; | |
9854 | } | |
9855 | } | |
9856 | { | |
9857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 9858 | _result = (bool )wxDirItemData_m_isDir_get(_arg0); |
68320e40 RD |
9859 | |
9860 | wxPyEndAllowThreads(__tstate); | |
9861 | if (PyErr_Occurred()) return NULL; | |
9862 | } _resultobj = Py_BuildValue("i",_result); | |
9863 | return _resultobj; | |
9864 | } | |
9865 | ||
9866 | static void *SwigwxGenericDirCtrlTowxControl(void *ptr) { | |
9867 | wxGenericDirCtrl *src; | |
9868 | wxControl *dest; | |
9869 | src = (wxGenericDirCtrl *) ptr; | |
9870 | dest = (wxControl *) src; | |
9871 | return (void *) dest; | |
9872 | } | |
9873 | ||
9874 | static void *SwigwxGenericDirCtrlTowxWindow(void *ptr) { | |
9875 | wxGenericDirCtrl *src; | |
9876 | wxWindow *dest; | |
9877 | src = (wxGenericDirCtrl *) ptr; | |
9878 | dest = (wxWindow *) src; | |
9879 | return (void *) dest; | |
9880 | } | |
9881 | ||
9882 | static void *SwigwxGenericDirCtrlTowxEvtHandler(void *ptr) { | |
9883 | wxGenericDirCtrl *src; | |
9884 | wxEvtHandler *dest; | |
9885 | src = (wxGenericDirCtrl *) ptr; | |
9886 | dest = (wxEvtHandler *) src; | |
9887 | return (void *) dest; | |
9888 | } | |
9889 | ||
9890 | static void *SwigwxGenericDirCtrlTowxObject(void *ptr) { | |
9891 | wxGenericDirCtrl *src; | |
9892 | wxObject *dest; | |
9893 | src = (wxGenericDirCtrl *) ptr; | |
9894 | dest = (wxObject *) src; | |
9895 | return (void *) dest; | |
9896 | } | |
9897 | ||
9898 | #define new_wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
9899 | static PyObject *_wrap_new_wxGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9900 | PyObject * _resultobj; | |
9901 | wxGenericDirCtrl * _result; | |
9902 | wxWindow * _arg0; | |
9903 | wxWindowID _arg1 = (wxWindowID ) -1; | |
137b5242 | 9904 | wxString * _arg2 = (wxString *) &wxPyDirDialogDefaultFolderStr; |
68320e40 RD |
9905 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
9906 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
9907 | long _arg5 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
137b5242 | 9908 | wxString * _arg6 = (wxString *) &wxPyEmptyString; |
68320e40 | 9909 | int _arg7 = (int ) 0; |
137b5242 | 9910 | wxString * _arg8 = (wxString *) &wxPy_TreeCtrlNameStr; |
68320e40 | 9911 | PyObject * _argo0 = 0; |
137b5242 | 9912 | PyObject * _obj2 = 0; |
68320e40 RD |
9913 | wxPoint temp; |
9914 | PyObject * _obj3 = 0; | |
9915 | wxSize temp0; | |
9916 | PyObject * _obj4 = 0; | |
137b5242 RD |
9917 | PyObject * _obj6 = 0; |
9918 | PyObject * _obj8 = 0; | |
68320e40 RD |
9919 | char *_kwnames[] = { "parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; |
9920 | char _ptemp[128]; | |
9921 | ||
9922 | self = self; | |
137b5242 | 9923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOOlOiO:new_wxGenericDirCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6,&_arg7,&_obj8)) |
68320e40 RD |
9924 | return NULL; |
9925 | if (_argo0) { | |
9926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGenericDirCtrl. Expected _wxWindow_p."); | |
9929 | return NULL; | |
9930 | } | |
9931 | } | |
137b5242 RD |
9932 | if (_obj2) |
9933 | { | |
9934 | _arg2 = wxString_in_helper(_obj2); | |
9935 | if (_arg2 == NULL) | |
9936 | return NULL; | |
9937 | } | |
68320e40 RD |
9938 | if (_obj3) |
9939 | { | |
9940 | _arg3 = &temp; | |
9941 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9942 | return NULL; | |
9943 | } | |
9944 | if (_obj4) | |
9945 | { | |
9946 | _arg4 = &temp0; | |
9947 | if (! wxSize_helper(_obj4, &_arg4)) | |
9948 | return NULL; | |
137b5242 RD |
9949 | } |
9950 | if (_obj6) | |
9951 | { | |
9952 | _arg6 = wxString_in_helper(_obj6); | |
9953 | if (_arg6 == NULL) | |
9954 | return NULL; | |
9955 | } | |
9956 | if (_obj8) | |
9957 | { | |
9958 | _arg8 = wxString_in_helper(_obj8); | |
9959 | if (_arg8 == NULL) | |
9960 | return NULL; | |
68320e40 RD |
9961 | } |
9962 | { | |
9963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
137b5242 | 9964 | _result = (wxGenericDirCtrl *)new_wxGenericDirCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7,*_arg8); |
68320e40 RD |
9965 | |
9966 | wxPyEndAllowThreads(__tstate); | |
9967 | if (PyErr_Occurred()) return NULL; | |
9968 | } if (_result) { | |
9969 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
9970 | _resultobj = Py_BuildValue("s",_ptemp); | |
9971 | } else { | |
9972 | Py_INCREF(Py_None); | |
9973 | _resultobj = Py_None; | |
9974 | } | |
137b5242 RD |
9975 | { |
9976 | if (_obj2) | |
9977 | delete _arg2; | |
9978 | } | |
9979 | { | |
9980 | if (_obj6) | |
9981 | delete _arg6; | |
9982 | } | |
9983 | { | |
9984 | if (_obj8) | |
9985 | delete _arg8; | |
9986 | } | |
68320e40 RD |
9987 | return _resultobj; |
9988 | } | |
9989 | ||
9990 | #define new_wxPreGenericDirCtrl() (new wxGenericDirCtrl()) | |
9991 | static PyObject *_wrap_new_wxPreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9992 | PyObject * _resultobj; | |
9993 | wxGenericDirCtrl * _result; | |
9994 | char *_kwnames[] = { NULL }; | |
9995 | char _ptemp[128]; | |
9996 | ||
9997 | self = self; | |
9998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGenericDirCtrl",_kwnames)) | |
9999 | return NULL; | |
10000 | { | |
10001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10002 | _result = (wxGenericDirCtrl *)new_wxPreGenericDirCtrl(); |
68320e40 RD |
10003 | |
10004 | wxPyEndAllowThreads(__tstate); | |
10005 | if (PyErr_Occurred()) return NULL; | |
10006 | } if (_result) { | |
10007 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
10008 | _resultobj = Py_BuildValue("s",_ptemp); | |
10009 | } else { | |
10010 | Py_INCREF(Py_None); | |
10011 | _resultobj = Py_None; | |
10012 | } | |
10013 | return _resultobj; | |
10014 | } | |
10015 | ||
10016 | #define wxGenericDirCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
10017 | static PyObject *_wrap_wxGenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10018 | PyObject * _resultobj; | |
10019 | bool _result; | |
10020 | wxGenericDirCtrl * _arg0; | |
10021 | wxWindow * _arg1; | |
10022 | wxWindowID _arg2 = (wxWindowID ) -1; | |
137b5242 | 10023 | wxString * _arg3 = (wxString *) &wxPyDirDialogDefaultFolderStr; |
68320e40 RD |
10024 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
10025 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
10026 | long _arg6 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
137b5242 | 10027 | wxString * _arg7 = (wxString *) &wxPyEmptyString; |
68320e40 | 10028 | int _arg8 = (int ) 0; |
137b5242 | 10029 | wxString * _arg9 = (wxString *) &wxPy_TreeCtrlNameStr; |
68320e40 RD |
10030 | PyObject * _argo0 = 0; |
10031 | PyObject * _argo1 = 0; | |
137b5242 | 10032 | PyObject * _obj3 = 0; |
68320e40 RD |
10033 | wxPoint temp; |
10034 | PyObject * _obj4 = 0; | |
10035 | wxSize temp0; | |
10036 | PyObject * _obj5 = 0; | |
137b5242 RD |
10037 | PyObject * _obj7 = 0; |
10038 | PyObject * _obj9 = 0; | |
68320e40 RD |
10039 | char *_kwnames[] = { "self","parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; |
10040 | ||
10041 | self = self; | |
137b5242 | 10042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOOlOiO:wxGenericDirCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_obj7,&_arg8,&_obj9)) |
68320e40 RD |
10043 | return NULL; |
10044 | if (_argo0) { | |
10045 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10046 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
10048 | return NULL; | |
10049 | } | |
10050 | } | |
10051 | if (_argo1) { | |
10052 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10053 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
10054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGenericDirCtrl_Create. Expected _wxWindow_p."); | |
10055 | return NULL; | |
10056 | } | |
10057 | } | |
137b5242 RD |
10058 | if (_obj3) |
10059 | { | |
10060 | _arg3 = wxString_in_helper(_obj3); | |
10061 | if (_arg3 == NULL) | |
10062 | return NULL; | |
10063 | } | |
68320e40 RD |
10064 | if (_obj4) |
10065 | { | |
10066 | _arg4 = &temp; | |
10067 | if (! wxPoint_helper(_obj4, &_arg4)) | |
10068 | return NULL; | |
10069 | } | |
10070 | if (_obj5) | |
10071 | { | |
10072 | _arg5 = &temp0; | |
10073 | if (! wxSize_helper(_obj5, &_arg5)) | |
10074 | return NULL; | |
137b5242 RD |
10075 | } |
10076 | if (_obj7) | |
10077 | { | |
10078 | _arg7 = wxString_in_helper(_obj7); | |
10079 | if (_arg7 == NULL) | |
10080 | return NULL; | |
10081 | } | |
10082 | if (_obj9) | |
10083 | { | |
10084 | _arg9 = wxString_in_helper(_obj9); | |
10085 | if (_arg9 == NULL) | |
10086 | return NULL; | |
68320e40 RD |
10087 | } |
10088 | { | |
10089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
137b5242 | 10090 | _result = (bool )wxGenericDirCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8,*_arg9); |
68320e40 RD |
10091 | |
10092 | wxPyEndAllowThreads(__tstate); | |
10093 | if (PyErr_Occurred()) return NULL; | |
10094 | } _resultobj = Py_BuildValue("i",_result); | |
137b5242 RD |
10095 | { |
10096 | if (_obj3) | |
10097 | delete _arg3; | |
10098 | } | |
10099 | { | |
10100 | if (_obj7) | |
10101 | delete _arg7; | |
10102 | } | |
10103 | { | |
10104 | if (_obj9) | |
10105 | delete _arg9; | |
10106 | } | |
68320e40 RD |
10107 | return _resultobj; |
10108 | } | |
10109 | ||
10110 | #define wxGenericDirCtrl_ExpandPath(_swigobj,_swigarg0) (_swigobj->ExpandPath(_swigarg0)) | |
10111 | static PyObject *_wrap_wxGenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10112 | PyObject * _resultobj; | |
10113 | bool _result; | |
10114 | wxGenericDirCtrl * _arg0; | |
10115 | wxString * _arg1; | |
10116 | PyObject * _argo0 = 0; | |
10117 | PyObject * _obj1 = 0; | |
10118 | char *_kwnames[] = { "self","path", NULL }; | |
10119 | ||
10120 | self = self; | |
10121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_ExpandPath",_kwnames,&_argo0,&_obj1)) | |
10122 | return NULL; | |
10123 | if (_argo0) { | |
10124 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10125 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10126 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ExpandPath. Expected _wxGenericDirCtrl_p."); | |
10127 | return NULL; | |
10128 | } | |
10129 | } | |
10130 | { | |
c8bc7bb8 RD |
10131 | _arg1 = wxString_in_helper(_obj1); |
10132 | if (_arg1 == NULL) | |
68320e40 | 10133 | return NULL; |
68320e40 RD |
10134 | } |
10135 | { | |
10136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10137 | _result = (bool )wxGenericDirCtrl_ExpandPath(_arg0,*_arg1); |
68320e40 RD |
10138 | |
10139 | wxPyEndAllowThreads(__tstate); | |
10140 | if (PyErr_Occurred()) return NULL; | |
10141 | } _resultobj = Py_BuildValue("i",_result); | |
10142 | { | |
10143 | if (_obj1) | |
10144 | delete _arg1; | |
10145 | } | |
10146 | return _resultobj; | |
10147 | } | |
10148 | ||
10149 | #define wxGenericDirCtrl_GetDefaultPath(_swigobj) (_swigobj->GetDefaultPath()) | |
10150 | static PyObject *_wrap_wxGenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10151 | PyObject * _resultobj; | |
10152 | wxString * _result; | |
10153 | wxGenericDirCtrl * _arg0; | |
10154 | PyObject * _argo0 = 0; | |
10155 | char *_kwnames[] = { "self", NULL }; | |
10156 | ||
10157 | self = self; | |
10158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetDefaultPath",_kwnames,&_argo0)) | |
10159 | return NULL; | |
10160 | if (_argo0) { | |
10161 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10162 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
10164 | return NULL; | |
10165 | } | |
10166 | } | |
10167 | { | |
10168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10169 | _result = new wxString (wxGenericDirCtrl_GetDefaultPath(_arg0)); |
68320e40 RD |
10170 | |
10171 | wxPyEndAllowThreads(__tstate); | |
10172 | if (PyErr_Occurred()) return NULL; | |
10173 | }{ | |
c8bc7bb8 | 10174 | #if wxUSE_UNICODE |
7e50db3f | 10175 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10176 | #else |
68320e40 | 10177 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10178 | #endif |
68320e40 RD |
10179 | } |
10180 | { | |
10181 | delete _result; | |
10182 | } | |
10183 | return _resultobj; | |
10184 | } | |
10185 | ||
10186 | #define wxGenericDirCtrl_SetDefaultPath(_swigobj,_swigarg0) (_swigobj->SetDefaultPath(_swigarg0)) | |
10187 | static PyObject *_wrap_wxGenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10188 | PyObject * _resultobj; | |
10189 | wxGenericDirCtrl * _arg0; | |
10190 | wxString * _arg1; | |
10191 | PyObject * _argo0 = 0; | |
10192 | PyObject * _obj1 = 0; | |
10193 | char *_kwnames[] = { "self","path", NULL }; | |
10194 | ||
10195 | self = self; | |
10196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetDefaultPath",_kwnames,&_argo0,&_obj1)) | |
10197 | return NULL; | |
10198 | if (_argo0) { | |
10199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
10202 | return NULL; | |
10203 | } | |
10204 | } | |
10205 | { | |
c8bc7bb8 RD |
10206 | _arg1 = wxString_in_helper(_obj1); |
10207 | if (_arg1 == NULL) | |
68320e40 | 10208 | return NULL; |
68320e40 RD |
10209 | } |
10210 | { | |
10211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10212 | wxGenericDirCtrl_SetDefaultPath(_arg0,*_arg1); |
68320e40 RD |
10213 | |
10214 | wxPyEndAllowThreads(__tstate); | |
10215 | if (PyErr_Occurred()) return NULL; | |
10216 | } Py_INCREF(Py_None); | |
10217 | _resultobj = Py_None; | |
10218 | { | |
10219 | if (_obj1) | |
10220 | delete _arg1; | |
10221 | } | |
10222 | return _resultobj; | |
10223 | } | |
10224 | ||
10225 | #define wxGenericDirCtrl_GetPath(_swigobj) (_swigobj->GetPath()) | |
10226 | static PyObject *_wrap_wxGenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10227 | PyObject * _resultobj; | |
10228 | wxString * _result; | |
10229 | wxGenericDirCtrl * _arg0; | |
10230 | PyObject * _argo0 = 0; | |
10231 | char *_kwnames[] = { "self", NULL }; | |
10232 | ||
10233 | self = self; | |
10234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetPath",_kwnames,&_argo0)) | |
10235 | return NULL; | |
10236 | if (_argo0) { | |
10237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetPath. Expected _wxGenericDirCtrl_p."); | |
10240 | return NULL; | |
10241 | } | |
10242 | } | |
10243 | { | |
10244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10245 | _result = new wxString (wxGenericDirCtrl_GetPath(_arg0)); |
68320e40 RD |
10246 | |
10247 | wxPyEndAllowThreads(__tstate); | |
10248 | if (PyErr_Occurred()) return NULL; | |
10249 | }{ | |
c8bc7bb8 | 10250 | #if wxUSE_UNICODE |
7e50db3f | 10251 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10252 | #else |
68320e40 | 10253 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10254 | #endif |
68320e40 RD |
10255 | } |
10256 | { | |
10257 | delete _result; | |
10258 | } | |
10259 | return _resultobj; | |
10260 | } | |
10261 | ||
10262 | #define wxGenericDirCtrl_GetFilePath(_swigobj) (_swigobj->GetFilePath()) | |
10263 | static PyObject *_wrap_wxGenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10264 | PyObject * _resultobj; | |
10265 | wxString * _result; | |
10266 | wxGenericDirCtrl * _arg0; | |
10267 | PyObject * _argo0 = 0; | |
10268 | char *_kwnames[] = { "self", NULL }; | |
10269 | ||
10270 | self = self; | |
10271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilePath",_kwnames,&_argo0)) | |
10272 | return NULL; | |
10273 | if (_argo0) { | |
10274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilePath. Expected _wxGenericDirCtrl_p."); | |
10277 | return NULL; | |
10278 | } | |
10279 | } | |
10280 | { | |
10281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10282 | _result = new wxString (wxGenericDirCtrl_GetFilePath(_arg0)); |
68320e40 RD |
10283 | |
10284 | wxPyEndAllowThreads(__tstate); | |
10285 | if (PyErr_Occurred()) return NULL; | |
10286 | }{ | |
c8bc7bb8 | 10287 | #if wxUSE_UNICODE |
7e50db3f | 10288 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10289 | #else |
68320e40 | 10290 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10291 | #endif |
68320e40 RD |
10292 | } |
10293 | { | |
10294 | delete _result; | |
10295 | } | |
10296 | return _resultobj; | |
10297 | } | |
10298 | ||
10299 | #define wxGenericDirCtrl_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0)) | |
10300 | static PyObject *_wrap_wxGenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10301 | PyObject * _resultobj; | |
10302 | wxGenericDirCtrl * _arg0; | |
10303 | wxString * _arg1; | |
10304 | PyObject * _argo0 = 0; | |
10305 | PyObject * _obj1 = 0; | |
10306 | char *_kwnames[] = { "self","path", NULL }; | |
10307 | ||
10308 | self = self; | |
10309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetPath",_kwnames,&_argo0,&_obj1)) | |
10310 | return NULL; | |
10311 | if (_argo0) { | |
10312 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10313 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10314 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetPath. Expected _wxGenericDirCtrl_p."); | |
10315 | return NULL; | |
10316 | } | |
10317 | } | |
10318 | { | |
c8bc7bb8 RD |
10319 | _arg1 = wxString_in_helper(_obj1); |
10320 | if (_arg1 == NULL) | |
68320e40 | 10321 | return NULL; |
68320e40 RD |
10322 | } |
10323 | { | |
10324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10325 | wxGenericDirCtrl_SetPath(_arg0,*_arg1); |
68320e40 RD |
10326 | |
10327 | wxPyEndAllowThreads(__tstate); | |
10328 | if (PyErr_Occurred()) return NULL; | |
10329 | } Py_INCREF(Py_None); | |
10330 | _resultobj = Py_None; | |
10331 | { | |
10332 | if (_obj1) | |
10333 | delete _arg1; | |
10334 | } | |
10335 | return _resultobj; | |
10336 | } | |
10337 | ||
10338 | #define wxGenericDirCtrl_ShowHidden(_swigobj,_swigarg0) (_swigobj->ShowHidden(_swigarg0)) | |
10339 | static PyObject *_wrap_wxGenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10340 | PyObject * _resultobj; | |
10341 | wxGenericDirCtrl * _arg0; | |
10342 | bool _arg1; | |
10343 | PyObject * _argo0 = 0; | |
10344 | int tempbool1; | |
10345 | char *_kwnames[] = { "self","show", NULL }; | |
10346 | ||
10347 | self = self; | |
10348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_ShowHidden",_kwnames,&_argo0,&tempbool1)) | |
10349 | return NULL; | |
10350 | if (_argo0) { | |
10351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ShowHidden. Expected _wxGenericDirCtrl_p."); | |
10354 | return NULL; | |
10355 | } | |
10356 | } | |
10357 | _arg1 = (bool ) tempbool1; | |
10358 | { | |
10359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10360 | wxGenericDirCtrl_ShowHidden(_arg0,_arg1); |
68320e40 RD |
10361 | |
10362 | wxPyEndAllowThreads(__tstate); | |
10363 | if (PyErr_Occurred()) return NULL; | |
10364 | } Py_INCREF(Py_None); | |
10365 | _resultobj = Py_None; | |
10366 | return _resultobj; | |
10367 | } | |
10368 | ||
10369 | #define wxGenericDirCtrl_GetShowHidden(_swigobj) (_swigobj->GetShowHidden()) | |
10370 | static PyObject *_wrap_wxGenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10371 | PyObject * _resultobj; | |
10372 | bool _result; | |
10373 | wxGenericDirCtrl * _arg0; | |
10374 | PyObject * _argo0 = 0; | |
10375 | char *_kwnames[] = { "self", NULL }; | |
10376 | ||
10377 | self = self; | |
10378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetShowHidden",_kwnames,&_argo0)) | |
10379 | return NULL; | |
10380 | if (_argo0) { | |
10381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetShowHidden. Expected _wxGenericDirCtrl_p."); | |
10384 | return NULL; | |
10385 | } | |
10386 | } | |
10387 | { | |
10388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10389 | _result = (bool )wxGenericDirCtrl_GetShowHidden(_arg0); |
68320e40 RD |
10390 | |
10391 | wxPyEndAllowThreads(__tstate); | |
10392 | if (PyErr_Occurred()) return NULL; | |
10393 | } _resultobj = Py_BuildValue("i",_result); | |
10394 | return _resultobj; | |
10395 | } | |
10396 | ||
10397 | #define wxGenericDirCtrl_GetFilter(_swigobj) (_swigobj->GetFilter()) | |
10398 | static PyObject *_wrap_wxGenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10399 | PyObject * _resultobj; | |
10400 | wxString * _result; | |
10401 | wxGenericDirCtrl * _arg0; | |
10402 | PyObject * _argo0 = 0; | |
10403 | char *_kwnames[] = { "self", NULL }; | |
10404 | ||
10405 | self = self; | |
10406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilter",_kwnames,&_argo0)) | |
10407 | return NULL; | |
10408 | if (_argo0) { | |
10409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilter. Expected _wxGenericDirCtrl_p."); | |
10412 | return NULL; | |
10413 | } | |
10414 | } | |
10415 | { | |
10416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10417 | _result = new wxString (wxGenericDirCtrl_GetFilter(_arg0)); |
68320e40 RD |
10418 | |
10419 | wxPyEndAllowThreads(__tstate); | |
10420 | if (PyErr_Occurred()) return NULL; | |
10421 | }{ | |
c8bc7bb8 | 10422 | #if wxUSE_UNICODE |
7e50db3f | 10423 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10424 | #else |
68320e40 | 10425 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10426 | #endif |
68320e40 RD |
10427 | } |
10428 | { | |
10429 | delete _result; | |
10430 | } | |
10431 | return _resultobj; | |
10432 | } | |
10433 | ||
10434 | #define wxGenericDirCtrl_SetFilter(_swigobj,_swigarg0) (_swigobj->SetFilter(_swigarg0)) | |
10435 | static PyObject *_wrap_wxGenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10436 | PyObject * _resultobj; | |
10437 | wxGenericDirCtrl * _arg0; | |
10438 | wxString * _arg1; | |
10439 | PyObject * _argo0 = 0; | |
10440 | PyObject * _obj1 = 0; | |
10441 | char *_kwnames[] = { "self","filter", NULL }; | |
10442 | ||
10443 | self = self; | |
10444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetFilter",_kwnames,&_argo0,&_obj1)) | |
10445 | return NULL; | |
10446 | if (_argo0) { | |
10447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilter. Expected _wxGenericDirCtrl_p."); | |
10450 | return NULL; | |
10451 | } | |
10452 | } | |
10453 | { | |
c8bc7bb8 RD |
10454 | _arg1 = wxString_in_helper(_obj1); |
10455 | if (_arg1 == NULL) | |
68320e40 | 10456 | return NULL; |
68320e40 RD |
10457 | } |
10458 | { | |
10459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10460 | wxGenericDirCtrl_SetFilter(_arg0,*_arg1); |
68320e40 RD |
10461 | |
10462 | wxPyEndAllowThreads(__tstate); | |
10463 | if (PyErr_Occurred()) return NULL; | |
10464 | } Py_INCREF(Py_None); | |
10465 | _resultobj = Py_None; | |
10466 | { | |
10467 | if (_obj1) | |
10468 | delete _arg1; | |
10469 | } | |
10470 | return _resultobj; | |
10471 | } | |
10472 | ||
10473 | #define wxGenericDirCtrl_GetFilterIndex(_swigobj) (_swigobj->GetFilterIndex()) | |
10474 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10475 | PyObject * _resultobj; | |
10476 | int _result; | |
10477 | wxGenericDirCtrl * _arg0; | |
10478 | PyObject * _argo0 = 0; | |
10479 | char *_kwnames[] = { "self", NULL }; | |
10480 | ||
10481 | self = self; | |
10482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterIndex",_kwnames,&_argo0)) | |
10483 | return NULL; | |
10484 | if (_argo0) { | |
10485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10488 | return NULL; | |
10489 | } | |
10490 | } | |
10491 | { | |
10492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10493 | _result = (int )wxGenericDirCtrl_GetFilterIndex(_arg0); |
68320e40 RD |
10494 | |
10495 | wxPyEndAllowThreads(__tstate); | |
10496 | if (PyErr_Occurred()) return NULL; | |
10497 | } _resultobj = Py_BuildValue("i",_result); | |
10498 | return _resultobj; | |
10499 | } | |
10500 | ||
10501 | #define wxGenericDirCtrl_SetFilterIndex(_swigobj,_swigarg0) (_swigobj->SetFilterIndex(_swigarg0)) | |
10502 | static PyObject *_wrap_wxGenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10503 | PyObject * _resultobj; | |
10504 | wxGenericDirCtrl * _arg0; | |
10505 | int _arg1; | |
10506 | PyObject * _argo0 = 0; | |
10507 | char *_kwnames[] = { "self","n", NULL }; | |
10508 | ||
10509 | self = self; | |
10510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_SetFilterIndex",_kwnames,&_argo0,&_arg1)) | |
10511 | return NULL; | |
10512 | if (_argo0) { | |
10513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10516 | return NULL; | |
10517 | } | |
10518 | } | |
10519 | { | |
10520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10521 | wxGenericDirCtrl_SetFilterIndex(_arg0,_arg1); |
68320e40 RD |
10522 | |
10523 | wxPyEndAllowThreads(__tstate); | |
10524 | if (PyErr_Occurred()) return NULL; | |
10525 | } Py_INCREF(Py_None); | |
10526 | _resultobj = Py_None; | |
10527 | return _resultobj; | |
10528 | } | |
10529 | ||
10530 | #define wxGenericDirCtrl_GetRootId(_swigobj) (_swigobj->GetRootId()) | |
10531 | static PyObject *_wrap_wxGenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10532 | PyObject * _resultobj; | |
10533 | wxTreeItemId * _result; | |
10534 | wxGenericDirCtrl * _arg0; | |
10535 | PyObject * _argo0 = 0; | |
10536 | char *_kwnames[] = { "self", NULL }; | |
10537 | char _ptemp[128]; | |
10538 | ||
10539 | self = self; | |
10540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetRootId",_kwnames,&_argo0)) | |
10541 | return NULL; | |
10542 | if (_argo0) { | |
10543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetRootId. Expected _wxGenericDirCtrl_p."); | |
10546 | return NULL; | |
10547 | } | |
10548 | } | |
10549 | { | |
10550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10551 | _result = new wxTreeItemId (wxGenericDirCtrl_GetRootId(_arg0)); |
68320e40 RD |
10552 | |
10553 | wxPyEndAllowThreads(__tstate); | |
10554 | if (PyErr_Occurred()) return NULL; | |
10555 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
10556 | _resultobj = Py_BuildValue("s",_ptemp); | |
10557 | return _resultobj; | |
10558 | } | |
10559 | ||
10560 | #define wxGenericDirCtrl_GetTreeCtrl(_swigobj) (_swigobj->GetTreeCtrl()) | |
10561 | static PyObject *_wrap_wxGenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10562 | PyObject * _resultobj; | |
10563 | wxTreeCtrl * _result; | |
10564 | wxGenericDirCtrl * _arg0; | |
10565 | PyObject * _argo0 = 0; | |
10566 | char *_kwnames[] = { "self", NULL }; | |
68320e40 RD |
10567 | |
10568 | self = self; | |
10569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetTreeCtrl",_kwnames,&_argo0)) | |
10570 | return NULL; | |
10571 | if (_argo0) { | |
10572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetTreeCtrl. Expected _wxGenericDirCtrl_p."); | |
10575 | return NULL; | |
10576 | } | |
10577 | } | |
10578 | { | |
10579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10580 | _result = (wxTreeCtrl *)wxGenericDirCtrl_GetTreeCtrl(_arg0); |
68320e40 RD |
10581 | |
10582 | wxPyEndAllowThreads(__tstate); | |
10583 | if (PyErr_Occurred()) return NULL; | |
9398120d | 10584 | }{ _resultobj = wxPyMake_wxObject(_result); } |
68320e40 RD |
10585 | return _resultobj; |
10586 | } | |
10587 | ||
10588 | #define wxGenericDirCtrl_GetFilterListCtrl(_swigobj) (_swigobj->GetFilterListCtrl()) | |
10589 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10590 | PyObject * _resultobj; | |
10591 | wxDirFilterListCtrl * _result; | |
10592 | wxGenericDirCtrl * _arg0; | |
10593 | PyObject * _argo0 = 0; | |
10594 | char *_kwnames[] = { "self", NULL }; | |
10595 | char _ptemp[128]; | |
10596 | ||
10597 | self = self; | |
10598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterListCtrl",_kwnames,&_argo0)) | |
10599 | return NULL; | |
10600 | if (_argo0) { | |
10601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10604 | return NULL; | |
10605 | } | |
10606 | } | |
10607 | { | |
10608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10609 | _result = (wxDirFilterListCtrl *)wxGenericDirCtrl_GetFilterListCtrl(_arg0); |
68320e40 RD |
10610 | |
10611 | wxPyEndAllowThreads(__tstate); | |
10612 | if (PyErr_Occurred()) return NULL; | |
10613 | } if (_result) { | |
10614 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10615 | _resultobj = Py_BuildValue("s",_ptemp); | |
10616 | } else { | |
10617 | Py_INCREF(Py_None); | |
10618 | _resultobj = Py_None; | |
10619 | } | |
10620 | return _resultobj; | |
10621 | } | |
10622 | ||
10623 | static void *SwigwxDirFilterListCtrlTowxChoice(void *ptr) { | |
10624 | wxDirFilterListCtrl *src; | |
10625 | wxChoice *dest; | |
10626 | src = (wxDirFilterListCtrl *) ptr; | |
10627 | dest = (wxChoice *) src; | |
10628 | return (void *) dest; | |
10629 | } | |
10630 | ||
10631 | static void *SwigwxDirFilterListCtrlTowxControlWithItems(void *ptr) { | |
10632 | wxDirFilterListCtrl *src; | |
10633 | wxControlWithItems *dest; | |
10634 | src = (wxDirFilterListCtrl *) ptr; | |
10635 | dest = (wxControlWithItems *) src; | |
10636 | return (void *) dest; | |
10637 | } | |
10638 | ||
10639 | static void *SwigwxDirFilterListCtrlTowxControl(void *ptr) { | |
10640 | wxDirFilterListCtrl *src; | |
10641 | wxControl *dest; | |
10642 | src = (wxDirFilterListCtrl *) ptr; | |
10643 | dest = (wxControl *) src; | |
10644 | return (void *) dest; | |
10645 | } | |
10646 | ||
10647 | static void *SwigwxDirFilterListCtrlTowxWindow(void *ptr) { | |
10648 | wxDirFilterListCtrl *src; | |
10649 | wxWindow *dest; | |
10650 | src = (wxDirFilterListCtrl *) ptr; | |
10651 | dest = (wxWindow *) src; | |
10652 | return (void *) dest; | |
10653 | } | |
10654 | ||
10655 | static void *SwigwxDirFilterListCtrlTowxEvtHandler(void *ptr) { | |
10656 | wxDirFilterListCtrl *src; | |
10657 | wxEvtHandler *dest; | |
10658 | src = (wxDirFilterListCtrl *) ptr; | |
10659 | dest = (wxEvtHandler *) src; | |
10660 | return (void *) dest; | |
10661 | } | |
10662 | ||
10663 | static void *SwigwxDirFilterListCtrlTowxObject(void *ptr) { | |
10664 | wxDirFilterListCtrl *src; | |
10665 | wxObject *dest; | |
10666 | src = (wxDirFilterListCtrl *) ptr; | |
10667 | dest = (wxObject *) src; | |
10668 | return (void *) dest; | |
10669 | } | |
10670 | ||
10671 | #define new_wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10672 | static PyObject *_wrap_new_wxDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10673 | PyObject * _resultobj; | |
10674 | wxDirFilterListCtrl * _result; | |
10675 | wxGenericDirCtrl * _arg0; | |
10676 | wxWindowID _arg1 = (wxWindowID ) -1; | |
10677 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
10678 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
10679 | long _arg4 = (long ) 0; | |
10680 | PyObject * _argo0 = 0; | |
10681 | wxPoint temp; | |
10682 | PyObject * _obj2 = 0; | |
10683 | wxSize temp0; | |
10684 | PyObject * _obj3 = 0; | |
10685 | char *_kwnames[] = { "parent","id","pos","size","style", NULL }; | |
10686 | char _ptemp[128]; | |
10687 | ||
10688 | self = self; | |
10689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxDirFilterListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
10690 | return NULL; | |
10691 | if (_argo0) { | |
10692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDirFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10695 | return NULL; | |
10696 | } | |
10697 | } | |
10698 | if (_obj2) | |
10699 | { | |
10700 | _arg2 = &temp; | |
10701 | if (! wxPoint_helper(_obj2, &_arg2)) | |
10702 | return NULL; | |
10703 | } | |
10704 | if (_obj3) | |
10705 | { | |
10706 | _arg3 = &temp0; | |
10707 | if (! wxSize_helper(_obj3, &_arg3)) | |
10708 | return NULL; | |
10709 | } | |
10710 | { | |
10711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10712 | _result = (wxDirFilterListCtrl *)new_wxDirFilterListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
68320e40 RD |
10713 | |
10714 | wxPyEndAllowThreads(__tstate); | |
10715 | if (PyErr_Occurred()) return NULL; | |
10716 | } if (_result) { | |
10717 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10718 | _resultobj = Py_BuildValue("s",_ptemp); | |
10719 | } else { | |
10720 | Py_INCREF(Py_None); | |
10721 | _resultobj = Py_None; | |
10722 | } | |
10723 | return _resultobj; | |
10724 | } | |
10725 | ||
10726 | #define new_wxPreDirFilterListCtrl() (new wxDirFilterListCtrl()) | |
10727 | static PyObject *_wrap_new_wxPreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10728 | PyObject * _resultobj; | |
10729 | wxDirFilterListCtrl * _result; | |
10730 | char *_kwnames[] = { NULL }; | |
10731 | char _ptemp[128]; | |
10732 | ||
10733 | self = self; | |
10734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreDirFilterListCtrl",_kwnames)) | |
10735 | return NULL; | |
10736 | { | |
10737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10738 | _result = (wxDirFilterListCtrl *)new_wxPreDirFilterListCtrl(); |
68320e40 RD |
10739 | |
10740 | wxPyEndAllowThreads(__tstate); | |
10741 | if (PyErr_Occurred()) return NULL; | |
10742 | } if (_result) { | |
10743 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10744 | _resultobj = Py_BuildValue("s",_ptemp); | |
10745 | } else { | |
10746 | Py_INCREF(Py_None); | |
10747 | _resultobj = Py_None; | |
10748 | } | |
10749 | return _resultobj; | |
10750 | } | |
10751 | ||
10752 | #define wxDirFilterListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10753 | static PyObject *_wrap_wxDirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10754 | PyObject * _resultobj; | |
10755 | bool _result; | |
10756 | wxDirFilterListCtrl * _arg0; | |
10757 | wxGenericDirCtrl * _arg1; | |
10758 | wxWindowID _arg2 = (wxWindowID ) -1; | |
10759 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
10760 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
10761 | long _arg5 = (long ) 0; | |
10762 | PyObject * _argo0 = 0; | |
10763 | PyObject * _argo1 = 0; | |
10764 | wxPoint temp; | |
10765 | PyObject * _obj3 = 0; | |
10766 | wxSize temp0; | |
10767 | PyObject * _obj4 = 0; | |
10768 | char *_kwnames[] = { "self","parent","id","pos","size","style", NULL }; | |
10769 | ||
10770 | self = self; | |
10771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOl:wxDirFilterListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5)) | |
10772 | return NULL; | |
10773 | if (_argo0) { | |
10774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
10776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_Create. Expected _wxDirFilterListCtrl_p."); | |
10777 | return NULL; | |
10778 | } | |
10779 | } | |
10780 | if (_argo1) { | |
10781 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10782 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxGenericDirCtrl_p")) { | |
10783 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDirFilterListCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
10784 | return NULL; | |
10785 | } | |
10786 | } | |
10787 | if (_obj3) | |
10788 | { | |
10789 | _arg3 = &temp; | |
10790 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10791 | return NULL; | |
10792 | } | |
10793 | if (_obj4) | |
10794 | { | |
10795 | _arg4 = &temp0; | |
10796 | if (! wxSize_helper(_obj4, &_arg4)) | |
10797 | return NULL; | |
10798 | } | |
10799 | { | |
10800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10801 | _result = (bool )wxDirFilterListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5); |
68320e40 RD |
10802 | |
10803 | wxPyEndAllowThreads(__tstate); | |
10804 | if (PyErr_Occurred()) return NULL; | |
10805 | } _resultobj = Py_BuildValue("i",_result); | |
10806 | return _resultobj; | |
10807 | } | |
10808 | ||
10809 | #define wxDirFilterListCtrl_FillFilterList(_swigobj,_swigarg0,_swigarg1) (_swigobj->FillFilterList(_swigarg0,_swigarg1)) | |
10810 | static PyObject *_wrap_wxDirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10811 | PyObject * _resultobj; | |
10812 | wxDirFilterListCtrl * _arg0; | |
10813 | wxString * _arg1; | |
10814 | int _arg2; | |
10815 | PyObject * _argo0 = 0; | |
10816 | PyObject * _obj1 = 0; | |
10817 | char *_kwnames[] = { "self","filter","defaultFilter", NULL }; | |
10818 | ||
10819 | self = self; | |
10820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxDirFilterListCtrl_FillFilterList",_kwnames,&_argo0,&_obj1,&_arg2)) | |
10821 | return NULL; | |
10822 | if (_argo0) { | |
10823 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10824 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
10825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_FillFilterList. Expected _wxDirFilterListCtrl_p."); | |
10826 | return NULL; | |
10827 | } | |
10828 | } | |
10829 | { | |
c8bc7bb8 RD |
10830 | _arg1 = wxString_in_helper(_obj1); |
10831 | if (_arg1 == NULL) | |
68320e40 | 10832 | return NULL; |
68320e40 RD |
10833 | } |
10834 | { | |
10835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10836 | wxDirFilterListCtrl_FillFilterList(_arg0,*_arg1,_arg2); |
68320e40 RD |
10837 | |
10838 | wxPyEndAllowThreads(__tstate); | |
10839 | if (PyErr_Occurred()) return NULL; | |
10840 | } Py_INCREF(Py_None); | |
10841 | _resultobj = Py_None; | |
10842 | { | |
10843 | if (_obj1) | |
10844 | delete _arg1; | |
10845 | } | |
10846 | return _resultobj; | |
10847 | } | |
10848 | ||
8ab979d7 | 10849 | static PyMethodDef controls2cMethods[] = { |
68320e40 RD |
10850 | { "wxDirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_wxDirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, |
10851 | { "wxDirFilterListCtrl_Create", (PyCFunction) _wrap_wxDirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10852 | { "new_wxPreDirFilterListCtrl", (PyCFunction) _wrap_new_wxPreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10853 | { "new_wxDirFilterListCtrl", (PyCFunction) _wrap_new_wxDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10854 | { "wxGenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10855 | { "wxGenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10856 | { "wxGenericDirCtrl_GetRootId", (PyCFunction) _wrap_wxGenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
10857 | { "wxGenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
10858 | { "wxGenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
10859 | { "wxGenericDirCtrl_SetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
10860 | { "wxGenericDirCtrl_GetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
10861 | { "wxGenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
10862 | { "wxGenericDirCtrl_ShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
10863 | { "wxGenericDirCtrl_SetPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
10864 | { "wxGenericDirCtrl_GetFilePath", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
10865 | { "wxGenericDirCtrl_GetPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
10866 | { "wxGenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
10867 | { "wxGenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
10868 | { "wxGenericDirCtrl_ExpandPath", (PyCFunction) _wrap_wxGenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
10869 | { "wxGenericDirCtrl_Create", (PyCFunction) _wrap_wxGenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10870 | { "new_wxPreGenericDirCtrl", (PyCFunction) _wrap_new_wxPreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10871 | { "new_wxGenericDirCtrl", (PyCFunction) _wrap_new_wxGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10872 | { "wxDirItemData_m_isDir_get", (PyCFunction) _wrap_wxDirItemData_m_isDir_get, METH_VARARGS | METH_KEYWORDS }, | |
10873 | { "wxDirItemData_m_isDir_set", (PyCFunction) _wrap_wxDirItemData_m_isDir_set, METH_VARARGS | METH_KEYWORDS }, | |
10874 | { "wxDirItemData_m_isExpanded_get", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_get, METH_VARARGS | METH_KEYWORDS }, | |
10875 | { "wxDirItemData_m_isExpanded_set", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_set, METH_VARARGS | METH_KEYWORDS }, | |
10876 | { "wxDirItemData_m_isHidden_get", (PyCFunction) _wrap_wxDirItemData_m_isHidden_get, METH_VARARGS | METH_KEYWORDS }, | |
10877 | { "wxDirItemData_m_isHidden_set", (PyCFunction) _wrap_wxDirItemData_m_isHidden_set, METH_VARARGS | METH_KEYWORDS }, | |
10878 | { "wxDirItemData_m_name_get", (PyCFunction) _wrap_wxDirItemData_m_name_get, METH_VARARGS | METH_KEYWORDS }, | |
10879 | { "wxDirItemData_m_name_set", (PyCFunction) _wrap_wxDirItemData_m_name_set, METH_VARARGS | METH_KEYWORDS }, | |
10880 | { "wxDirItemData_m_path_get", (PyCFunction) _wrap_wxDirItemData_m_path_get, METH_VARARGS | METH_KEYWORDS }, | |
10881 | { "wxDirItemData_m_path_set", (PyCFunction) _wrap_wxDirItemData_m_path_set, METH_VARARGS | METH_KEYWORDS }, | |
10882 | { "wxDirItemData_SetNewDirName", (PyCFunction) _wrap_wxDirItemData_SetNewDirName, METH_VARARGS | METH_KEYWORDS }, | |
10883 | { "new_wxDirItemData", (PyCFunction) _wrap_new_wxDirItemData, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10884 | { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10885 | { "wxTreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_wxTreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 RD |
10886 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, |
10887 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10888 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10889 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
10890 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
10891 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10892 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10893 | { "wxTreeCtrl_EndEditLabel", (PyCFunction) _wrap_wxTreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10894 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, |
7e50db3f | 10895 | { "wxTreeCtrl_GetEditControl", (PyCFunction) _wrap_wxTreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10896 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, |
10897 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
10898 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
10899 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
10900 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
10901 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
10902 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
10903 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
10904 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
10905 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
10906 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
10907 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
10908 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10909 | { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10910 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, |
10911 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
10912 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10913 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10914 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, |
10915 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
10916 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
10917 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
10918 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
10919 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
10920 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
10921 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10922 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 10923 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10924 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
10925 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
10926 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
10927 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
10928 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
10929 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
7e50db3f RD |
10930 | { "wxTreeCtrl_GetItemFont", (PyCFunction) _wrap_wxTreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, |
10931 | { "wxTreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10932 | { "wxTreeCtrl_GetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10933 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, |
10934 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
10935 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10936 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10937 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
10938 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
10939 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10940 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10941 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
10942 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10943 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
10944 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, |
10945 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
00b6c4e3 RD |
10946 | { "wxTreeCtrl_AssignStateImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, |
10947 | { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10948 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, |
10949 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10950 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
10951 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10952 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
10953 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
10954 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 10955 | { "wxTreeCtrl__setCallbackInfo", (PyCFunction) _wrap_wxTreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
10956 | { "wxTreeCtrl_Create", (PyCFunction) _wrap_wxTreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
10957 | { "new_wxPreTreeCtrl", (PyCFunction) _wrap_new_wxPreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10958 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, |
31988931 | 10959 | { "wxTreeEvent_IsEditCancelled", (PyCFunction) _wrap_wxTreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10960 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, |
64c06a50 | 10961 | { "wxTreeEvent_GetKeyCode", (PyCFunction) _wrap_wxTreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, |
ecc08ead | 10962 | { "wxTreeEvent_GetKeyEvent", (PyCFunction) _wrap_wxTreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10963 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, |
10964 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
10965 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
00b6c4e3 | 10966 | { "new_wxTreeEvent", (PyCFunction) _wrap_new_wxTreeEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10967 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, |
10968 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
10969 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
10970 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10971 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10972 | { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10973 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, |
10974 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
10975 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
00b6c4e3 RD |
10976 | { "wxTreeItemAttr_GetFont", (PyCFunction) _wrap_wxTreeItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, |
10977 | { "wxTreeItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10978 | { "wxTreeItemAttr_GetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10979 | { "wxTreeItemAttr_HasFont", (PyCFunction) _wrap_wxTreeItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
10980 | { "wxTreeItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10981 | { "wxTreeItemAttr_HasTextColour", (PyCFunction) _wrap_wxTreeItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10982 | { "wxTreeItemAttr_SetFont", (PyCFunction) _wrap_wxTreeItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10983 | { "wxTreeItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10984 | { "wxTreeItemAttr_SetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10985 | { "new_wxTreeItemAttr", (PyCFunction) _wrap_new_wxTreeItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
6d19860f RD |
10986 | { "wxListView_ClearColumnImage", (PyCFunction) _wrap_wxListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, |
10987 | { "wxListView_SetColumnImage", (PyCFunction) _wrap_wxListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
10988 | { "wxListView_IsSelected", (PyCFunction) _wrap_wxListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
10989 | { "wxListView_GetFirstSelected", (PyCFunction) _wrap_wxListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
10990 | { "wxListView_GetNextSelected", (PyCFunction) _wrap_wxListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
10991 | { "wxListView_GetFocusedItem", (PyCFunction) _wrap_wxListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
10992 | { "wxListView_Focus", (PyCFunction) _wrap_wxListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
10993 | { "wxListView_Select", (PyCFunction) _wrap_wxListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
10994 | { "wxListView_Create", (PyCFunction) _wrap_wxListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
10995 | { "new_wxPreListView", (PyCFunction) _wrap_new_wxPreListView, METH_VARARGS | METH_KEYWORDS }, | |
10996 | { "new_wxListView", (PyCFunction) _wrap_new_wxListView, METH_VARARGS | METH_KEYWORDS }, | |
6af85fcd | 10997 | { "wxListCtrl_GetMainWindow", (PyCFunction) _wrap_wxListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, |
dcd38683 | 10998 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, |
3bd1e033 RD |
10999 | { "wxListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_wxListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
11000 | { "wxListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11001 | { "wxListCtrl_GetItemTextColour", (PyCFunction) _wrap_wxListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11002 | { "wxListCtrl_SetItemTextColour", (PyCFunction) _wrap_wxListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11003 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, |
c7e7022c RD |
11004 | { "wxListCtrl_SetItemCount", (PyCFunction) _wrap_wxListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, |
11005 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
11006 | { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11007 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, |
11008 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
11009 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
11010 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11011 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11012 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, |
11013 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
11014 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
11015 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11016 | { "wxListCtrl_EndEditLabel", (PyCFunction) _wrap_wxListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, |
11017 | { "wxListCtrl_EditLabel", (PyCFunction) _wrap_wxListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
11018 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
11019 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
11020 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
11021 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
11022 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
11023 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
c7e7022c RD |
11024 | { "wxListCtrl_RefreshItems", (PyCFunction) _wrap_wxListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, |
11025 | { "wxListCtrl_RefreshItem", (PyCFunction) _wrap_wxListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
11026 | { "wxListCtrl_IsVirtual", (PyCFunction) _wrap_wxListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
11027 | { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
11028 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
11029 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
11030 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
11031 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
11032 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
11033 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
11034 | { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11035 | { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11036 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
11037 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
11038 | { "wxListCtrl_GetColumnCount", (PyCFunction) _wrap_wxListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
11039 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
11040 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
11041 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
11042 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
11043 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
11044 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
11045 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
11046 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
11047 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
11048 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
11049 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
11050 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
11051 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
11052 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
11053 | { "wxListCtrl_GetEditControl", (PyCFunction) _wrap_wxListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
11054 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
11055 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
11056 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
11057 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
11058 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
11059 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11060 | { "wxListCtrl_SetForegroundColour", (PyCFunction) _wrap_wxListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 11061 | { "wxListCtrl__setCallbackInfo", (PyCFunction) _wrap_wxListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
11062 | { "wxListCtrl_Create", (PyCFunction) _wrap_wxListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
11063 | { "new_wxPreListCtrl", (PyCFunction) _wrap_new_wxPreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11064 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, |
6d19860f RD |
11065 | { "wxListEvent_GetCacheTo", (PyCFunction) _wrap_wxListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, |
11066 | { "wxListEvent_GetCacheFrom", (PyCFunction) _wrap_wxListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
11067 | { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, |
11068 | { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
11069 | { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
11070 | { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
11071 | { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
11072 | { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11073 | { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11074 | { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 11075 | { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, |
64c06a50 | 11076 | { "wxListEvent_GetKeyCode", (PyCFunction) _wrap_wxListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11077 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11078 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11079 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11080 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
ebf4302c | 11081 | { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11082 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, |
6d19860f | 11083 | { "new_wxListEvent", (PyCFunction) _wrap_new_wxListEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11084 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, |
11085 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
11086 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
11087 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
11088 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
11089 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
11090 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
11091 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
11092 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
11093 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
11094 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
11095 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
11096 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
11097 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
11098 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
11099 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
11100 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
11101 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
11102 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
11103 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
11104 | { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, |
11105 | { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11106 | { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11107 | { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
11108 | { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
11109 | { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
11110 | { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11111 | { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
11112 | { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
11113 | { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
11114 | { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
11115 | { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
11116 | { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
11117 | { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
11118 | { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11119 | { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11120 | { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11121 | { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
11122 | { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11123 | { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
11124 | { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
11125 | { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
11126 | { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
11127 | { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
11128 | { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
11129 | { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
11130 | { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
11131 | { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
11132 | { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11133 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
11134 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
11135 | { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11136 | { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11137 | { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11138 | { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
11139 | { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11140 | { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11141 | { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11142 | { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11143 | { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11144 | { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
11145 | { NULL, NULL } |
11146 | }; | |
1d99702e RD |
11147 | #ifdef __cplusplus |
11148 | } | |
11149 | #endif | |
11150 | /* | |
11151 | * This table is used by the pointer type-checker | |
11152 | */ | |
11153 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 11154 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, |
1d99702e | 11155 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, |
1d99702e | 11156 | { "_signed_long","_long",0}, |
b1462dfa | 11157 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
11158 | { "_wxPrintQuality","_int",0}, |
11159 | { "_wxPrintQuality","_signed_int",0}, | |
11160 | { "_wxPrintQuality","_unsigned_int",0}, | |
11161 | { "_wxPrintQuality","_wxWindowID",0}, | |
11162 | { "_wxPrintQuality","_uint",0}, | |
11163 | { "_wxPrintQuality","_EBool",0}, | |
11164 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11165 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 11166 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, |
c368d904 | 11167 | { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
1d99702e | 11168 | { "_byte","_unsigned_char",0}, |
68320e40 | 11169 | { "_wxChoice","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxChoice}, |
1d99702e RD |
11170 | { "_long","_unsigned_long",0}, |
11171 | { "_long","_signed_long",0}, | |
b1462dfa | 11172 | { "_size_t","_wxCoord",0}, |
1d99702e | 11173 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11174 | { "_size_t","_time_t",0}, |
1d99702e RD |
11175 | { "_size_t","_unsigned_int",0}, |
11176 | { "_size_t","_int",0}, | |
11177 | { "_size_t","_wxWindowID",0}, | |
11178 | { "_size_t","_uint",0}, | |
b1462dfa | 11179 | { "_uint","_wxCoord",0}, |
1d99702e | 11180 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11181 | { "_uint","_time_t",0}, |
1d99702e RD |
11182 | { "_uint","_size_t",0}, |
11183 | { "_uint","_unsigned_int",0}, | |
11184 | { "_uint","_int",0}, | |
11185 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11186 | { "_wxChar","_char",0}, |
1d99702e | 11187 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, |
1d99702e | 11188 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, |
f6bcfd97 | 11189 | { "_char","_wxChar",0}, |
cdf14688 | 11190 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 11191 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
11192 | { "_EBool","_wxPrintQuality",0}, |
11193 | { "_EBool","_signed_int",0}, | |
11194 | { "_EBool","_int",0}, | |
11195 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 11196 | { "_unsigned_long","_long",0}, |
cdf14688 | 11197 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 11198 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
11199 | { "_signed_int","_wxPrintQuality",0}, |
11200 | { "_signed_int","_EBool",0}, | |
11201 | { "_signed_int","_wxWindowID",0}, | |
11202 | { "_signed_int","_int",0}, | |
1d99702e RD |
11203 | { "_WXTYPE","_short",0}, |
11204 | { "_WXTYPE","_signed_short",0}, | |
11205 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
11206 | { "_unsigned_short","_WXTYPE",0}, |
11207 | { "_unsigned_short","_short",0}, | |
68320e40 RD |
11208 | { "_wxObject","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxObject}, |
11209 | { "_wxObject","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxObject}, | |
11210 | { "_wxObject","_wxDirItemData",SwigwxDirItemDataTowxObject}, | |
9416aa89 | 11211 | { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, |
9416aa89 | 11212 | { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject}, |
9416aa89 | 11213 | { "_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, |
6d19860f | 11214 | { "_wxObject","_wxListView",SwigwxListViewTowxObject}, |
c7e7022c | 11215 | { "_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, |
9416aa89 | 11216 | { "_wxObject","_wxListEvent",SwigwxListEventTowxObject}, |
9416aa89 | 11217 | { "_wxObject","_wxListItem",SwigwxListItemTowxObject}, |
1d99702e RD |
11218 | { "_signed_short","_WXTYPE",0}, |
11219 | { "_signed_short","_short",0}, | |
1d99702e | 11220 | { "_unsigned_char","_byte",0}, |
68320e40 RD |
11221 | { "_wxControl","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControl}, |
11222 | { "_wxControl","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxControl}, | |
f6bcfd97 | 11223 | { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
6d19860f | 11224 | { "_wxControl","_wxListView",SwigwxListViewTowxControl}, |
c7e7022c | 11225 | { "_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, |
b1462dfa | 11226 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 11227 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 11228 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
11229 | { "_unsigned_int","_size_t",0}, |
11230 | { "_unsigned_int","_uint",0}, | |
11231 | { "_unsigned_int","_wxWindowID",0}, | |
11232 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
11233 | { "_short","_WXTYPE",0}, |
11234 | { "_short","_unsigned_short",0}, | |
11235 | { "_short","_signed_short",0}, | |
68320e40 | 11236 | { "_wxControlWithItems","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControlWithItems}, |
b1462dfa | 11237 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 11238 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 11239 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
11240 | { "_wxWindowID","_size_t",0}, |
11241 | { "_wxWindowID","_EBool",0}, | |
11242 | { "_wxWindowID","_uint",0}, | |
11243 | { "_wxWindowID","_int",0}, | |
11244 | { "_wxWindowID","_signed_int",0}, | |
11245 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 11246 | { "_int","_wxCoord",0}, |
1d99702e | 11247 | { "_int","_wxPrintQuality",0}, |
c368d904 | 11248 | { "_int","_time_t",0}, |
1d99702e RD |
11249 | { "_int","_size_t",0}, |
11250 | { "_int","_EBool",0}, | |
11251 | { "_int","_uint",0}, | |
11252 | { "_int","_wxWindowID",0}, | |
11253 | { "_int","_unsigned_int",0}, | |
11254 | { "_int","_signed_int",0}, | |
c368d904 RD |
11255 | { "_time_t","_wxCoord",0}, |
11256 | { "_time_t","_wxPrintQuality",0}, | |
11257 | { "_time_t","_unsigned_int",0}, | |
11258 | { "_time_t","_int",0}, | |
11259 | { "_time_t","_wxWindowID",0}, | |
11260 | { "_time_t","_uint",0}, | |
11261 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
11262 | { "_wxCoord","_int",0}, |
11263 | { "_wxCoord","_signed_int",0}, | |
11264 | { "_wxCoord","_unsigned_int",0}, | |
11265 | { "_wxCoord","_wxWindowID",0}, | |
11266 | { "_wxCoord","_uint",0}, | |
11267 | { "_wxCoord","_EBool",0}, | |
11268 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11269 | { "_wxCoord","_time_t",0}, |
b1462dfa | 11270 | { "_wxCoord","_wxPrintQuality",0}, |
6d19860f | 11271 | { "_wxPyListCtrl","_wxListView",SwigwxListViewTowxPyListCtrl}, |
68320e40 RD |
11272 | { "_wxEvtHandler","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxEvtHandler}, |
11273 | { "_wxEvtHandler","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxEvtHandler}, | |
f6bcfd97 | 11274 | { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
6d19860f | 11275 | { "_wxEvtHandler","_wxListView",SwigwxListViewTowxEvtHandler}, |
c7e7022c | 11276 | { "_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, |
68320e40 RD |
11277 | { "_wxWindow","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxWindow}, |
11278 | { "_wxWindow","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxWindow}, | |
f6bcfd97 | 11279 | { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
6d19860f | 11280 | { "_wxWindow","_wxListView",SwigwxListViewTowxWindow}, |
c7e7022c | 11281 | { "_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, |
1d99702e RD |
11282 | {0,0,0}}; |
11283 | ||
8ab979d7 RD |
11284 | static PyObject *SWIG_globals; |
11285 | #ifdef __cplusplus | |
11286 | extern "C" | |
11287 | #endif | |
1d99702e | 11288 | SWIGEXPORT(void) initcontrols2c() { |
8ab979d7 RD |
11289 | PyObject *m, *d; |
11290 | SWIG_globals = SWIG_newvarlink(); | |
11291 | m = Py_InitModule("controls2c", controls2cMethods); | |
11292 | d = PyModule_GetDict(m); | |
c7e7022c RD |
11293 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
11294 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
11295 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
11296 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
11297 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
11298 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
11299 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO)); | |
11300 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO)); | |
11301 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
11302 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
11303 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN)); | |
11304 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
11305 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK)); | |
11306 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
11307 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
11308 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
11309 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_CACHE_HINT)); | |
6d19860f RD |
11310 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); |
11311 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
11312 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
11313 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
d8200036 | 11314 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_FOCUSED)); |
c7e7022c RD |
11315 | PyDict_SetItemString(d,"wxLC_VRULES", PyInt_FromLong((long) wxLC_VRULES)); |
11316 | PyDict_SetItemString(d,"wxLC_HRULES", PyInt_FromLong((long) wxLC_HRULES)); | |
11317 | PyDict_SetItemString(d,"wxLC_ICON", PyInt_FromLong((long) wxLC_ICON)); | |
11318 | PyDict_SetItemString(d,"wxLC_SMALL_ICON", PyInt_FromLong((long) wxLC_SMALL_ICON)); | |
11319 | PyDict_SetItemString(d,"wxLC_LIST", PyInt_FromLong((long) wxLC_LIST)); | |
11320 | PyDict_SetItemString(d,"wxLC_REPORT", PyInt_FromLong((long) wxLC_REPORT)); | |
11321 | PyDict_SetItemString(d,"wxLC_ALIGN_TOP", PyInt_FromLong((long) wxLC_ALIGN_TOP)); | |
11322 | PyDict_SetItemString(d,"wxLC_ALIGN_LEFT", PyInt_FromLong((long) wxLC_ALIGN_LEFT)); | |
11323 | PyDict_SetItemString(d,"wxLC_AUTOARRANGE", PyInt_FromLong((long) wxLC_AUTOARRANGE)); | |
11324 | PyDict_SetItemString(d,"wxLC_VIRTUAL", PyInt_FromLong((long) wxLC_VIRTUAL)); | |
11325 | PyDict_SetItemString(d,"wxLC_EDIT_LABELS", PyInt_FromLong((long) wxLC_EDIT_LABELS)); | |
11326 | PyDict_SetItemString(d,"wxLC_NO_HEADER", PyInt_FromLong((long) wxLC_NO_HEADER)); | |
11327 | PyDict_SetItemString(d,"wxLC_NO_SORT_HEADER", PyInt_FromLong((long) wxLC_NO_SORT_HEADER)); | |
11328 | PyDict_SetItemString(d,"wxLC_SINGLE_SEL", PyInt_FromLong((long) wxLC_SINGLE_SEL)); | |
11329 | PyDict_SetItemString(d,"wxLC_SORT_ASCENDING", PyInt_FromLong((long) wxLC_SORT_ASCENDING)); | |
11330 | PyDict_SetItemString(d,"wxLC_SORT_DESCENDING", PyInt_FromLong((long) wxLC_SORT_DESCENDING)); | |
11331 | PyDict_SetItemString(d,"wxLC_MASK_TYPE", PyInt_FromLong((long) wxLC_MASK_TYPE)); | |
11332 | PyDict_SetItemString(d,"wxLC_MASK_ALIGN", PyInt_FromLong((long) wxLC_MASK_ALIGN)); | |
11333 | PyDict_SetItemString(d,"wxLC_MASK_SORT", PyInt_FromLong((long) wxLC_MASK_SORT)); | |
6d19860f | 11334 | PyDict_SetItemString(d,"wxLC_USER_TEXT", PyInt_FromLong((long) wxLC_USER_TEXT)); |
c7e7022c | 11335 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); |
af309447 RD |
11336 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); |
11337 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
11338 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
c7e7022c | 11339 | PyDict_SetItemString(d,"wxLIST_SET_ITEM", PyInt_FromLong((long) wxLIST_SET_ITEM)); |
af309447 RD |
11340 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); |
11341 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
11342 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); | |
11343 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
11344 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
11345 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
11346 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
11347 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
11348 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
11349 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
11350 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
11351 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
11352 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
11353 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
11354 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
11355 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
11356 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
11357 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
11358 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
11359 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
11360 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
11361 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
11362 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
11363 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
11364 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
11365 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
af309447 RD |
11366 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); |
11367 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
11368 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
11369 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
11370 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
11371 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
11372 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
11373 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
11374 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
f6bcfd97 BP |
11375 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); |
11376 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
11377 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
11378 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
00b6c4e3 RD |
11379 | PyDict_SetItemString(d,"wxTR_NO_BUTTONS", PyInt_FromLong((long) wxTR_NO_BUTTONS)); |
11380 | PyDict_SetItemString(d,"wxTR_HAS_BUTTONS", PyInt_FromLong((long) wxTR_HAS_BUTTONS)); | |
11381 | PyDict_SetItemString(d,"wxTR_TWIST_BUTTONS", PyInt_FromLong((long) wxTR_TWIST_BUTTONS)); | |
11382 | PyDict_SetItemString(d,"wxTR_NO_LINES", PyInt_FromLong((long) wxTR_NO_LINES)); | |
11383 | PyDict_SetItemString(d,"wxTR_MAC_BUTTONS", PyInt_FromLong((long) wxTR_MAC_BUTTONS)); | |
b5a5d647 | 11384 | PyDict_SetItemString(d,"wxTR_AQUA_BUTTONS", PyInt_FromLong((long) wxTR_AQUA_BUTTONS)); |
00b6c4e3 RD |
11385 | PyDict_SetItemString(d,"wxTR_SINGLE", PyInt_FromLong((long) wxTR_SINGLE)); |
11386 | PyDict_SetItemString(d,"wxTR_MULTIPLE", PyInt_FromLong((long) wxTR_MULTIPLE)); | |
11387 | PyDict_SetItemString(d,"wxTR_EXTENDED", PyInt_FromLong((long) wxTR_EXTENDED)); | |
b5a5d647 | 11388 | PyDict_SetItemString(d,"wxTR_FULL_ROW_HIGHLIGHT", PyInt_FromLong((long) wxTR_FULL_ROW_HIGHLIGHT)); |
00b6c4e3 RD |
11389 | PyDict_SetItemString(d,"wxTR_EDIT_LABELS", PyInt_FromLong((long) wxTR_EDIT_LABELS)); |
11390 | PyDict_SetItemString(d,"wxTR_LINES_AT_ROOT", PyInt_FromLong((long) wxTR_LINES_AT_ROOT)); | |
11391 | PyDict_SetItemString(d,"wxTR_HIDE_ROOT", PyInt_FromLong((long) wxTR_HIDE_ROOT)); | |
11392 | PyDict_SetItemString(d,"wxTR_ROW_LINES", PyInt_FromLong((long) wxTR_ROW_LINES)); | |
11393 | PyDict_SetItemString(d,"wxTR_HAS_VARIABLE_ROW_HEIGHT", PyInt_FromLong((long) wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
11394 | PyDict_SetItemString(d,"wxTR_DEFAULT_STYLE", PyInt_FromLong((long) wxTR_DEFAULT_STYLE)); | |
694759cf RD |
11395 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); |
11396 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
11397 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
11398 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
11399 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
164b735b RD |
11400 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); |
11401 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
11402 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
11403 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
11404 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
11405 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
11406 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
11407 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
11408 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
11409 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
11410 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
11411 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
11412 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
11413 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
1b62f00d RD |
11414 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
11415 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
11416 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
11417 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
11418 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
11419 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO)); | |
11420 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO)); | |
11421 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
11422 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
11423 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
11424 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
11425 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
11426 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
11427 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN)); | |
11428 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
11429 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
11430 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
d1679124 | 11431 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG)); |
68320e40 RD |
11432 | PyDict_SetItemString(d,"wxDIRCTRL_DIR_ONLY", PyInt_FromLong((long) wxDIRCTRL_DIR_ONLY)); |
11433 | PyDict_SetItemString(d,"wxDIRCTRL_SELECT_FIRST", PyInt_FromLong((long) wxDIRCTRL_SELECT_FIRST)); | |
11434 | PyDict_SetItemString(d,"wxDIRCTRL_SHOW_FILTERS", PyInt_FromLong((long) wxDIRCTRL_SHOW_FILTERS)); | |
11435 | PyDict_SetItemString(d,"wxDIRCTRL_3D_INTERNAL", PyInt_FromLong((long) wxDIRCTRL_3D_INTERNAL)); | |
7cdaed0b | 11436 | PyDict_SetItemString(d,"wxDIRCTRL_EDIT_LABELS", PyInt_FromLong((long) wxDIRCTRL_EDIT_LABELS)); |
db0ff83e RD |
11437 | PyDict_SetItemString(d,"wxID_TREECTRL", PyInt_FromLong((long) wxID_TREECTRL)); |
11438 | PyDict_SetItemString(d,"wxID_FILTERLISTCTRL", PyInt_FromLong((long) wxID_FILTERLISTCTRL)); | |
9416aa89 | 11439 | |
a3fbed81 | 11440 | // Map renamed classes back to their common name for OOR |
9416aa89 RD |
11441 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); |
11442 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
a3fbed81 | 11443 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); |
1d99702e RD |
11444 | { |
11445 | int i; | |
11446 | for (i = 0; _swig_mapping[i].n1; i++) | |
11447 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11448 | } | |
8ab979d7 | 11449 | } |