]>
Commit | Line | Data |
---|---|---|
ebf4302c RD |
1 | /* |
2 | * FILE : contrib/gizmos/gizmos.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
6 | * Version 1.1 (Build 883) | |
7 | * | |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
27 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
30 | # define SWIGEXPORT(a) a _export | |
31 | # else | |
32 | # define SWIGEXPORT(a) a | |
33 | # endif | |
34 | # endif | |
35 | #else | |
36 | # define SWIGEXPORT(a) a | |
37 | #endif | |
38 | ||
39 | #include "Python.h" | |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
44 | ||
45 | extern void SWIG_MakePtr(char *, void *, char *); | |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
54 | #define SWIG_init initgizmosc | |
55 | ||
56 | #define SWIG_name "gizmosc" | |
57 | ||
58 | #include "export.h" | |
611dc22c RD |
59 | #include <wx/gizmos/dynamicsash.h> |
60 | #include <wx/gizmos/editlbox.h> | |
61 | #include <wx/gizmos/splittree.h> | |
950e7faf | 62 | #include <wx/gizmos/ledctrl.h> |
ebf4302c RD |
63 | |
64 | ||
65 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
66 | PyObject* o2; | |
67 | PyObject* o3; | |
68 | ||
69 | if (!target) { | |
70 | target = o; | |
71 | } else if (target == Py_None) { | |
72 | Py_DECREF(Py_None); | |
73 | target = o; | |
74 | } else { | |
75 | if (!PyTuple_Check(target)) { | |
76 | o2 = target; | |
77 | target = PyTuple_New(1); | |
78 | PyTuple_SetItem(target, 0, o2); | |
79 | } | |
80 | o3 = PyTuple_New(1); | |
81 | PyTuple_SetItem(o3, 0, o); | |
82 | ||
83 | o2 = target; | |
84 | target = PySequence_Concat(o2, o3); | |
85 | Py_DECREF(o2); | |
86 | Py_DECREF(o3); | |
87 | } | |
88 | return target; | |
89 | } | |
90 | ||
137b5242 RD |
91 | // Put some wx default wxChar* values into wxStrings. |
92 | static const wxString wxPyDynamicSashNameStr(wxT("dynamicSashWindow")); | |
93 | static const wxString wxPyEditableListBoxNameStr(wxT("editableListBox")); | |
94 | ||
611dc22c RD |
95 | typedef wxTreeCtrl wxPyTreeCtrl; |
96 | ||
97 | class wxPyTreeCompanionWindow: public wxTreeCompanionWindow | |
98 | { | |
99 | public: | |
100 | wxPyTreeCompanionWindow(wxWindow* parent, wxWindowID id = -1, | |
101 | const wxPoint& pos = wxDefaultPosition, | |
102 | const wxSize& size = wxDefaultSize, | |
103 | long style = 0) | |
104 | : wxTreeCompanionWindow(parent, id, pos, size, style) {} | |
105 | ||
106 | ||
107 | virtual void DrawItem(wxDC& dc, wxTreeItemId id, const wxRect& rect) { | |
108 | bool found; | |
4268f798 | 109 | wxPyBeginBlockThreads(); |
611dc22c RD |
110 | if ((found = wxPyCBH_findCallback(m_myInst, "DrawItem"))) { |
111 | PyObject* dcobj = wxPyMake_wxObject(&dc); | |
112 | PyObject* idobj = wxPyConstructObject((void*)&id, "wxTreeItemId", FALSE); | |
113 | PyObject* recobj= wxPyConstructObject((void*)&rect, "wxRect", FALSE); | |
114 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OOO)", dcobj, idobj, recobj)); | |
115 | Py_DECREF(dcobj); | |
116 | Py_DECREF(idobj); | |
117 | Py_DECREF(recobj); | |
118 | } | |
4268f798 | 119 | wxPyEndBlockThreads(); |
611dc22c RD |
120 | if (! found) |
121 | wxTreeCompanionWindow::DrawItem(dc, id, rect); | |
122 | } | |
123 | ||
124 | PYPRIVATE; | |
125 | }; | |
ebf4302c RD |
126 | #ifdef __cplusplus |
127 | extern "C" { | |
128 | #endif | |
129 | static void *SwigwxDynamicSashSplitEventTowxCommandEvent(void *ptr) { | |
130 | wxDynamicSashSplitEvent *src; | |
131 | wxCommandEvent *dest; | |
132 | src = (wxDynamicSashSplitEvent *) ptr; | |
133 | dest = (wxCommandEvent *) src; | |
134 | return (void *) dest; | |
135 | } | |
136 | ||
137 | static void *SwigwxDynamicSashSplitEventTowxEvent(void *ptr) { | |
138 | wxDynamicSashSplitEvent *src; | |
139 | wxEvent *dest; | |
140 | src = (wxDynamicSashSplitEvent *) ptr; | |
141 | dest = (wxEvent *) src; | |
142 | return (void *) dest; | |
143 | } | |
144 | ||
145 | static void *SwigwxDynamicSashSplitEventTowxObject(void *ptr) { | |
146 | wxDynamicSashSplitEvent *src; | |
147 | wxObject *dest; | |
148 | src = (wxDynamicSashSplitEvent *) ptr; | |
149 | dest = (wxObject *) src; | |
150 | return (void *) dest; | |
151 | } | |
152 | ||
153 | #define new_wxDynamicSashSplitEvent(_swigarg0) (new wxDynamicSashSplitEvent(_swigarg0)) | |
154 | static PyObject *_wrap_new_wxDynamicSashSplitEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
155 | PyObject * _resultobj; | |
156 | wxDynamicSashSplitEvent * _result; | |
157 | wxObject * _arg0; | |
158 | PyObject * _argo0 = 0; | |
159 | char *_kwnames[] = { "target", NULL }; | |
160 | char _ptemp[128]; | |
161 | ||
162 | self = self; | |
163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxDynamicSashSplitEvent",_kwnames,&_argo0)) | |
164 | return NULL; | |
165 | if (_argo0) { | |
166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxObject_p")) { | |
168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDynamicSashSplitEvent. Expected _wxObject_p."); | |
169 | return NULL; | |
170 | } | |
171 | } | |
172 | { | |
4268f798 | 173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 174 | _result = (wxDynamicSashSplitEvent *)new_wxDynamicSashSplitEvent(_arg0); |
ebf4302c | 175 | |
4268f798 RD |
176 | wxPyEndAllowThreads(__tstate); |
177 | if (PyErr_Occurred()) return NULL; | |
ebf4302c RD |
178 | } if (_result) { |
179 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDynamicSashSplitEvent_p"); | |
180 | _resultobj = Py_BuildValue("s",_ptemp); | |
181 | } else { | |
182 | Py_INCREF(Py_None); | |
183 | _resultobj = Py_None; | |
184 | } | |
185 | return _resultobj; | |
186 | } | |
187 | ||
188 | static void *SwigwxDynamicSashUnifyEventTowxCommandEvent(void *ptr) { | |
189 | wxDynamicSashUnifyEvent *src; | |
190 | wxCommandEvent *dest; | |
191 | src = (wxDynamicSashUnifyEvent *) ptr; | |
192 | dest = (wxCommandEvent *) src; | |
193 | return (void *) dest; | |
194 | } | |
195 | ||
196 | static void *SwigwxDynamicSashUnifyEventTowxEvent(void *ptr) { | |
197 | wxDynamicSashUnifyEvent *src; | |
198 | wxEvent *dest; | |
199 | src = (wxDynamicSashUnifyEvent *) ptr; | |
200 | dest = (wxEvent *) src; | |
201 | return (void *) dest; | |
202 | } | |
203 | ||
204 | static void *SwigwxDynamicSashUnifyEventTowxObject(void *ptr) { | |
205 | wxDynamicSashUnifyEvent *src; | |
206 | wxObject *dest; | |
207 | src = (wxDynamicSashUnifyEvent *) ptr; | |
208 | dest = (wxObject *) src; | |
209 | return (void *) dest; | |
210 | } | |
211 | ||
212 | #define new_wxDynamicSashUnifyEvent(_swigarg0) (new wxDynamicSashUnifyEvent(_swigarg0)) | |
213 | static PyObject *_wrap_new_wxDynamicSashUnifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
214 | PyObject * _resultobj; | |
215 | wxDynamicSashUnifyEvent * _result; | |
216 | wxObject * _arg0; | |
217 | PyObject * _argo0 = 0; | |
218 | char *_kwnames[] = { "target", NULL }; | |
219 | char _ptemp[128]; | |
220 | ||
221 | self = self; | |
222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxDynamicSashUnifyEvent",_kwnames,&_argo0)) | |
223 | return NULL; | |
224 | if (_argo0) { | |
225 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
226 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxObject_p")) { | |
227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDynamicSashUnifyEvent. Expected _wxObject_p."); | |
228 | return NULL; | |
229 | } | |
230 | } | |
231 | { | |
4268f798 | 232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 233 | _result = (wxDynamicSashUnifyEvent *)new_wxDynamicSashUnifyEvent(_arg0); |
ebf4302c | 234 | |
4268f798 RD |
235 | wxPyEndAllowThreads(__tstate); |
236 | if (PyErr_Occurred()) return NULL; | |
ebf4302c RD |
237 | } if (_result) { |
238 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDynamicSashUnifyEvent_p"); | |
239 | _resultobj = Py_BuildValue("s",_ptemp); | |
240 | } else { | |
241 | Py_INCREF(Py_None); | |
242 | _resultobj = Py_None; | |
243 | } | |
244 | return _resultobj; | |
245 | } | |
246 | ||
247 | static void *SwigwxDynamicSashWindowTowxWindow(void *ptr) { | |
248 | wxDynamicSashWindow *src; | |
249 | wxWindow *dest; | |
250 | src = (wxDynamicSashWindow *) ptr; | |
251 | dest = (wxWindow *) src; | |
252 | return (void *) dest; | |
253 | } | |
254 | ||
255 | static void *SwigwxDynamicSashWindowTowxEvtHandler(void *ptr) { | |
256 | wxDynamicSashWindow *src; | |
257 | wxEvtHandler *dest; | |
258 | src = (wxDynamicSashWindow *) ptr; | |
259 | dest = (wxEvtHandler *) src; | |
260 | return (void *) dest; | |
261 | } | |
262 | ||
263 | static void *SwigwxDynamicSashWindowTowxObject(void *ptr) { | |
264 | wxDynamicSashWindow *src; | |
265 | wxObject *dest; | |
266 | src = (wxDynamicSashWindow *) ptr; | |
267 | dest = (wxObject *) src; | |
268 | return (void *) dest; | |
269 | } | |
270 | ||
271 | #define new_wxDynamicSashWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxDynamicSashWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
272 | static PyObject *_wrap_new_wxDynamicSashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
273 | PyObject * _resultobj; | |
274 | wxDynamicSashWindow * _result; | |
275 | wxWindow * _arg0; | |
276 | wxWindowID _arg1; | |
277 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
278 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
279 | long _arg4 = (long ) wxCLIP_CHILDREN|(wxDS_MANAGE_SCROLLBARS)|(wxDS_DRAG_CORNER); | |
137b5242 | 280 | wxString * _arg5 = (wxString *) &wxPyDynamicSashNameStr; |
ebf4302c RD |
281 | PyObject * _argo0 = 0; |
282 | wxPoint temp; | |
283 | PyObject * _obj2 = 0; | |
284 | wxSize temp0; | |
285 | PyObject * _obj3 = 0; | |
137b5242 | 286 | PyObject * _obj5 = 0; |
ebf4302c RD |
287 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
288 | char _ptemp[128]; | |
289 | ||
290 | self = self; | |
137b5242 | 291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxDynamicSashWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
ebf4302c RD |
292 | return NULL; |
293 | if (_argo0) { | |
294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDynamicSashWindow. Expected _wxWindow_p."); | |
297 | return NULL; | |
298 | } | |
299 | } | |
300 | if (_obj2) | |
301 | { | |
302 | _arg2 = &temp; | |
303 | if (! wxPoint_helper(_obj2, &_arg2)) | |
304 | return NULL; | |
305 | } | |
306 | if (_obj3) | |
307 | { | |
308 | _arg3 = &temp0; | |
309 | if (! wxSize_helper(_obj3, &_arg3)) | |
310 | return NULL; | |
137b5242 RD |
311 | } |
312 | if (_obj5) | |
313 | { | |
314 | _arg5 = wxString_in_helper(_obj5); | |
315 | if (_arg5 == NULL) | |
316 | return NULL; | |
ebf4302c RD |
317 | } |
318 | { | |
4268f798 | 319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 320 | _result = (wxDynamicSashWindow *)new_wxDynamicSashWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
ebf4302c | 321 | |
4268f798 RD |
322 | wxPyEndAllowThreads(__tstate); |
323 | if (PyErr_Occurred()) return NULL; | |
ebf4302c RD |
324 | } if (_result) { |
325 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDynamicSashWindow_p"); | |
326 | _resultobj = Py_BuildValue("s",_ptemp); | |
327 | } else { | |
328 | Py_INCREF(Py_None); | |
329 | _resultobj = Py_None; | |
330 | } | |
137b5242 RD |
331 | { |
332 | if (_obj5) | |
333 | delete _arg5; | |
334 | } | |
ebf4302c RD |
335 | return _resultobj; |
336 | } | |
337 | ||
338 | #define new_wxPreDynamicSashWindow() (new wxDynamicSashWindow()) | |
339 | static PyObject *_wrap_new_wxPreDynamicSashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
340 | PyObject * _resultobj; | |
341 | wxDynamicSashWindow * _result; | |
342 | char *_kwnames[] = { NULL }; | |
343 | char _ptemp[128]; | |
344 | ||
345 | self = self; | |
346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreDynamicSashWindow",_kwnames)) | |
347 | return NULL; | |
348 | { | |
4268f798 | 349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 350 | _result = (wxDynamicSashWindow *)new_wxPreDynamicSashWindow(); |
ebf4302c | 351 | |
4268f798 RD |
352 | wxPyEndAllowThreads(__tstate); |
353 | if (PyErr_Occurred()) return NULL; | |
ebf4302c RD |
354 | } if (_result) { |
355 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDynamicSashWindow_p"); | |
356 | _resultobj = Py_BuildValue("s",_ptemp); | |
357 | } else { | |
358 | Py_INCREF(Py_None); | |
359 | _resultobj = Py_None; | |
360 | } | |
361 | return _resultobj; | |
362 | } | |
363 | ||
364 | #define wxDynamicSashWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
365 | static PyObject *_wrap_wxDynamicSashWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
366 | PyObject * _resultobj; | |
367 | bool _result; | |
368 | wxDynamicSashWindow * _arg0; | |
369 | wxWindow * _arg1; | |
370 | wxWindowID _arg2; | |
371 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
372 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
373 | long _arg5 = (long ) wxCLIP_CHILDREN|(wxDS_MANAGE_SCROLLBARS)|(wxDS_DRAG_CORNER); | |
137b5242 | 374 | wxString * _arg6 = (wxString *) &wxPyDynamicSashNameStr; |
ebf4302c RD |
375 | PyObject * _argo0 = 0; |
376 | PyObject * _argo1 = 0; | |
377 | wxPoint temp; | |
378 | PyObject * _obj3 = 0; | |
379 | wxSize temp0; | |
380 | PyObject * _obj4 = 0; | |
137b5242 | 381 | PyObject * _obj6 = 0; |
ebf4302c RD |
382 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
383 | ||
384 | self = self; | |
137b5242 | 385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxDynamicSashWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
ebf4302c RD |
386 | return NULL; |
387 | if (_argo0) { | |
388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDynamicSashWindow_p")) { | |
390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDynamicSashWindow_Create. Expected _wxDynamicSashWindow_p."); | |
391 | return NULL; | |
392 | } | |
393 | } | |
394 | if (_argo1) { | |
395 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
396 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDynamicSashWindow_Create. Expected _wxWindow_p."); | |
398 | return NULL; | |
399 | } | |
400 | } | |
401 | if (_obj3) | |
402 | { | |
403 | _arg3 = &temp; | |
404 | if (! wxPoint_helper(_obj3, &_arg3)) | |
405 | return NULL; | |
406 | } | |
407 | if (_obj4) | |
408 | { | |
409 | _arg4 = &temp0; | |
410 | if (! wxSize_helper(_obj4, &_arg4)) | |
411 | return NULL; | |
137b5242 RD |
412 | } |
413 | if (_obj6) | |
414 | { | |
415 | _arg6 = wxString_in_helper(_obj6); | |
416 | if (_arg6 == NULL) | |
417 | return NULL; | |
ebf4302c RD |
418 | } |
419 | { | |
4268f798 | 420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 421 | _result = (bool )wxDynamicSashWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
ebf4302c | 422 | |
4268f798 RD |
423 | wxPyEndAllowThreads(__tstate); |
424 | if (PyErr_Occurred()) return NULL; | |
ebf4302c | 425 | } _resultobj = Py_BuildValue("i",_result); |
137b5242 RD |
426 | { |
427 | if (_obj6) | |
428 | delete _arg6; | |
429 | } | |
ebf4302c RD |
430 | return _resultobj; |
431 | } | |
432 | ||
433 | #define wxDynamicSashWindow_GetHScrollBar(_swigobj,_swigarg0) (_swigobj->GetHScrollBar(_swigarg0)) | |
434 | static PyObject *_wrap_wxDynamicSashWindow_GetHScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
435 | PyObject * _resultobj; | |
436 | wxScrollBar * _result; | |
437 | wxDynamicSashWindow * _arg0; | |
438 | wxWindow * _arg1; | |
439 | PyObject * _argo0 = 0; | |
440 | PyObject * _argo1 = 0; | |
441 | char *_kwnames[] = { "self","child", NULL }; | |
442 | char _ptemp[128]; | |
443 | ||
444 | self = self; | |
445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDynamicSashWindow_GetHScrollBar",_kwnames,&_argo0,&_argo1)) | |
446 | return NULL; | |
447 | if (_argo0) { | |
448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDynamicSashWindow_p")) { | |
450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDynamicSashWindow_GetHScrollBar. Expected _wxDynamicSashWindow_p."); | |
451 | return NULL; | |
452 | } | |
453 | } | |
454 | if (_argo1) { | |
455 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
456 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDynamicSashWindow_GetHScrollBar. Expected _wxWindow_p."); | |
458 | return NULL; | |
459 | } | |
460 | } | |
461 | { | |
4268f798 | 462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 463 | _result = (wxScrollBar *)wxDynamicSashWindow_GetHScrollBar(_arg0,_arg1); |
ebf4302c | 464 | |
4268f798 RD |
465 | wxPyEndAllowThreads(__tstate); |
466 | if (PyErr_Occurred()) return NULL; | |
ebf4302c RD |
467 | } if (_result) { |
468 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
469 | _resultobj = Py_BuildValue("s",_ptemp); | |
470 | } else { | |
471 | Py_INCREF(Py_None); | |
472 | _resultobj = Py_None; | |
473 | } | |
474 | return _resultobj; | |
475 | } | |
476 | ||
477 | #define wxDynamicSashWindow_GetVScrollBar(_swigobj,_swigarg0) (_swigobj->GetVScrollBar(_swigarg0)) | |
478 | static PyObject *_wrap_wxDynamicSashWindow_GetVScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
479 | PyObject * _resultobj; | |
480 | wxScrollBar * _result; | |
481 | wxDynamicSashWindow * _arg0; | |
482 | wxWindow * _arg1; | |
483 | PyObject * _argo0 = 0; | |
484 | PyObject * _argo1 = 0; | |
485 | char *_kwnames[] = { "self","child", NULL }; | |
486 | char _ptemp[128]; | |
487 | ||
488 | self = self; | |
489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDynamicSashWindow_GetVScrollBar",_kwnames,&_argo0,&_argo1)) | |
490 | return NULL; | |
491 | if (_argo0) { | |
492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDynamicSashWindow_p")) { | |
494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDynamicSashWindow_GetVScrollBar. Expected _wxDynamicSashWindow_p."); | |
495 | return NULL; | |
496 | } | |
497 | } | |
498 | if (_argo1) { | |
499 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
500 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDynamicSashWindow_GetVScrollBar. Expected _wxWindow_p."); | |
502 | return NULL; | |
503 | } | |
504 | } | |
505 | { | |
4268f798 | 506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 507 | _result = (wxScrollBar *)wxDynamicSashWindow_GetVScrollBar(_arg0,_arg1); |
ebf4302c | 508 | |
4268f798 RD |
509 | wxPyEndAllowThreads(__tstate); |
510 | if (PyErr_Occurred()) return NULL; | |
ebf4302c RD |
511 | } if (_result) { |
512 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p"); | |
513 | _resultobj = Py_BuildValue("s",_ptemp); | |
514 | } else { | |
515 | Py_INCREF(Py_None); | |
516 | _resultobj = Py_None; | |
517 | } | |
518 | return _resultobj; | |
519 | } | |
520 | ||
7b7ac0ab RD |
521 | static void *SwigwxEditableListBoxTowxPanel(void *ptr) { |
522 | wxEditableListBox *src; | |
523 | wxPanel *dest; | |
524 | src = (wxEditableListBox *) ptr; | |
525 | dest = (wxPanel *) src; | |
526 | return (void *) dest; | |
527 | } | |
528 | ||
529 | static void *SwigwxEditableListBoxTowxWindow(void *ptr) { | |
530 | wxEditableListBox *src; | |
531 | wxWindow *dest; | |
532 | src = (wxEditableListBox *) ptr; | |
533 | dest = (wxWindow *) src; | |
534 | return (void *) dest; | |
535 | } | |
536 | ||
537 | static void *SwigwxEditableListBoxTowxEvtHandler(void *ptr) { | |
538 | wxEditableListBox *src; | |
539 | wxEvtHandler *dest; | |
540 | src = (wxEditableListBox *) ptr; | |
541 | dest = (wxEvtHandler *) src; | |
542 | return (void *) dest; | |
543 | } | |
544 | ||
545 | static void *SwigwxEditableListBoxTowxObject(void *ptr) { | |
546 | wxEditableListBox *src; | |
547 | wxObject *dest; | |
548 | src = (wxEditableListBox *) ptr; | |
549 | dest = (wxObject *) src; | |
550 | return (void *) dest; | |
551 | } | |
552 | ||
6187ec8f | 553 | #define new_wxEditableListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxEditableListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
7b7ac0ab RD |
554 | static PyObject *_wrap_new_wxEditableListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
555 | PyObject * _resultobj; | |
556 | wxEditableListBox * _result; | |
557 | wxWindow * _arg0; | |
558 | wxWindowID _arg1; | |
559 | wxString * _arg2; | |
560 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
561 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6187ec8f | 562 | long _arg5 = (long ) (wxEL_ALLOW_NEW)|(wxEL_ALLOW_EDIT)|(wxEL_ALLOW_DELETE); |
137b5242 | 563 | wxString * _arg6 = (wxString *) &wxPyEditableListBoxNameStr; |
7b7ac0ab RD |
564 | PyObject * _argo0 = 0; |
565 | PyObject * _obj2 = 0; | |
566 | wxPoint temp; | |
567 | PyObject * _obj3 = 0; | |
568 | wxSize temp0; | |
569 | PyObject * _obj4 = 0; | |
137b5242 | 570 | PyObject * _obj6 = 0; |
6187ec8f | 571 | char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL }; |
7b7ac0ab RD |
572 | char _ptemp[128]; |
573 | ||
574 | self = self; | |
137b5242 | 575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlO:new_wxEditableListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6)) |
7b7ac0ab RD |
576 | return NULL; |
577 | if (_argo0) { | |
578 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
579 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxEditableListBox. Expected _wxWindow_p."); | |
581 | return NULL; | |
582 | } | |
583 | } | |
584 | { | |
c8bc7bb8 RD |
585 | _arg2 = wxString_in_helper(_obj2); |
586 | if (_arg2 == NULL) | |
7b7ac0ab | 587 | return NULL; |
7b7ac0ab RD |
588 | } |
589 | if (_obj3) | |
590 | { | |
591 | _arg3 = &temp; | |
592 | if (! wxPoint_helper(_obj3, &_arg3)) | |
593 | return NULL; | |
594 | } | |
595 | if (_obj4) | |
596 | { | |
597 | _arg4 = &temp0; | |
598 | if (! wxSize_helper(_obj4, &_arg4)) | |
599 | return NULL; | |
137b5242 RD |
600 | } |
601 | if (_obj6) | |
602 | { | |
603 | _arg6 = wxString_in_helper(_obj6); | |
604 | if (_arg6 == NULL) | |
605 | return NULL; | |
7b7ac0ab RD |
606 | } |
607 | { | |
4268f798 | 608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 609 | _result = (wxEditableListBox *)new_wxEditableListBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
7b7ac0ab | 610 | |
4268f798 RD |
611 | wxPyEndAllowThreads(__tstate); |
612 | if (PyErr_Occurred()) return NULL; | |
7b7ac0ab RD |
613 | } if (_result) { |
614 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEditableListBox_p"); | |
615 | _resultobj = Py_BuildValue("s",_ptemp); | |
616 | } else { | |
617 | Py_INCREF(Py_None); | |
618 | _resultobj = Py_None; | |
619 | } | |
620 | { | |
621 | if (_obj2) | |
622 | delete _arg2; | |
137b5242 RD |
623 | } |
624 | { | |
625 | if (_obj6) | |
626 | delete _arg6; | |
7b7ac0ab RD |
627 | } |
628 | return _resultobj; | |
629 | } | |
630 | ||
631 | #define wxEditableListBox_SetStrings(_swigobj,_swigarg0) (_swigobj->SetStrings(_swigarg0)) | |
632 | static PyObject *_wrap_wxEditableListBox_SetStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
633 | PyObject * _resultobj; | |
634 | wxEditableListBox * _arg0; | |
635 | wxArrayString * _arg1; | |
636 | PyObject * _argo0 = 0; | |
637 | PyObject * _obj1 = 0; | |
638 | char *_kwnames[] = { "self","strings", NULL }; | |
639 | ||
640 | self = self; | |
641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEditableListBox_SetStrings",_kwnames,&_argo0,&_obj1)) | |
642 | return NULL; | |
643 | if (_argo0) { | |
644 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
645 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEditableListBox_p")) { | |
646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEditableListBox_SetStrings. Expected _wxEditableListBox_p."); | |
647 | return NULL; | |
648 | } | |
649 | } | |
650 | { | |
651 | if (! PySequence_Check(_obj1)) { | |
652 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
653 | return NULL; | |
654 | } | |
655 | _arg1 = new wxArrayString; | |
656 | int i, len=PySequence_Length(_obj1); | |
657 | for (i=0; i<len; i++) { | |
658 | PyObject* item = PySequence_GetItem(_obj1, i); | |
c8bc7bb8 RD |
659 | #if wxUSE_UNICODE |
660 | PyObject* str = PyObject_Unicode(item); | |
661 | _arg1->Add(PyUnicode_AsUnicode(str)); | |
662 | #else | |
7b7ac0ab | 663 | PyObject* str = PyObject_Str(item); |
293a0a86 | 664 | _arg1->Add(PyString_AsString(str)); |
c8bc7bb8 | 665 | #endif |
7b7ac0ab RD |
666 | Py_DECREF(item); |
667 | Py_DECREF(str); | |
668 | } | |
669 | } | |
670 | { | |
4268f798 | 671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 672 | wxEditableListBox_SetStrings(_arg0,*_arg1); |
7b7ac0ab | 673 | |
4268f798 RD |
674 | wxPyEndAllowThreads(__tstate); |
675 | if (PyErr_Occurred()) return NULL; | |
7b7ac0ab RD |
676 | } Py_INCREF(Py_None); |
677 | _resultobj = Py_None; | |
678 | { | |
679 | if (_obj1) | |
680 | delete _arg1; | |
681 | } | |
682 | return _resultobj; | |
683 | } | |
684 | ||
685 | static PyObject * wxEditableListBox_GetStrings(wxEditableListBox *self) { | |
686 | wxArrayString strings; | |
687 | self->GetStrings(strings); | |
688 | return wxArrayString2PyList_helper(strings); | |
689 | } | |
690 | static PyObject *_wrap_wxEditableListBox_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
691 | PyObject * _resultobj; | |
692 | PyObject * _result; | |
693 | wxEditableListBox * _arg0; | |
694 | PyObject * _argo0 = 0; | |
695 | char *_kwnames[] = { "self", NULL }; | |
696 | ||
697 | self = self; | |
698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEditableListBox_GetStrings",_kwnames,&_argo0)) | |
699 | return NULL; | |
700 | if (_argo0) { | |
701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEditableListBox_p")) { | |
703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEditableListBox_GetStrings. Expected _wxEditableListBox_p."); | |
704 | return NULL; | |
705 | } | |
706 | } | |
707 | { | |
4268f798 | 708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 709 | _result = (PyObject *)wxEditableListBox_GetStrings(_arg0); |
7b7ac0ab | 710 | |
4268f798 RD |
711 | wxPyEndAllowThreads(__tstate); |
712 | if (PyErr_Occurred()) return NULL; | |
7b7ac0ab RD |
713 | }{ |
714 | _resultobj = _result; | |
715 | } | |
716 | return _resultobj; | |
717 | } | |
718 | ||
611dc22c RD |
719 | static void *SwigwxRemotelyScrolledTreeCtrlTowxPyTreeCtrl(void *ptr) { |
720 | wxRemotelyScrolledTreeCtrl *src; | |
721 | wxPyTreeCtrl *dest; | |
722 | src = (wxRemotelyScrolledTreeCtrl *) ptr; | |
723 | dest = (wxPyTreeCtrl *) src; | |
724 | return (void *) dest; | |
725 | } | |
726 | ||
727 | static void *SwigwxRemotelyScrolledTreeCtrlTowxControl(void *ptr) { | |
728 | wxRemotelyScrolledTreeCtrl *src; | |
729 | wxControl *dest; | |
730 | src = (wxRemotelyScrolledTreeCtrl *) ptr; | |
731 | dest = (wxControl *) src; | |
732 | return (void *) dest; | |
733 | } | |
734 | ||
735 | static void *SwigwxRemotelyScrolledTreeCtrlTowxWindow(void *ptr) { | |
736 | wxRemotelyScrolledTreeCtrl *src; | |
737 | wxWindow *dest; | |
738 | src = (wxRemotelyScrolledTreeCtrl *) ptr; | |
739 | dest = (wxWindow *) src; | |
740 | return (void *) dest; | |
741 | } | |
742 | ||
743 | static void *SwigwxRemotelyScrolledTreeCtrlTowxEvtHandler(void *ptr) { | |
744 | wxRemotelyScrolledTreeCtrl *src; | |
745 | wxEvtHandler *dest; | |
746 | src = (wxRemotelyScrolledTreeCtrl *) ptr; | |
747 | dest = (wxEvtHandler *) src; | |
748 | return (void *) dest; | |
749 | } | |
750 | ||
751 | static void *SwigwxRemotelyScrolledTreeCtrlTowxObject(void *ptr) { | |
752 | wxRemotelyScrolledTreeCtrl *src; | |
753 | wxObject *dest; | |
754 | src = (wxRemotelyScrolledTreeCtrl *) ptr; | |
755 | dest = (wxObject *) src; | |
756 | return (void *) dest; | |
757 | } | |
758 | ||
759 | #define new_wxRemotelyScrolledTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxRemotelyScrolledTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
760 | static PyObject *_wrap_new_wxRemotelyScrolledTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
761 | PyObject * _resultobj; | |
762 | wxRemotelyScrolledTreeCtrl * _result; | |
763 | wxWindow * _arg0; | |
764 | wxWindowID _arg1; | |
765 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
766 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
767 | long _arg4 = (long ) wxTR_HAS_BUTTONS; | |
768 | PyObject * _argo0 = 0; | |
769 | wxPoint temp; | |
770 | PyObject * _obj2 = 0; | |
771 | wxSize temp0; | |
772 | PyObject * _obj3 = 0; | |
773 | char *_kwnames[] = { "parent","id","pos","size","style", NULL }; | |
774 | char _ptemp[128]; | |
775 | ||
776 | self = self; | |
777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOl:new_wxRemotelyScrolledTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
778 | return NULL; | |
779 | if (_argo0) { | |
780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRemotelyScrolledTreeCtrl. Expected _wxWindow_p."); | |
783 | return NULL; | |
784 | } | |
785 | } | |
786 | if (_obj2) | |
787 | { | |
788 | _arg2 = &temp; | |
789 | if (! wxPoint_helper(_obj2, &_arg2)) | |
790 | return NULL; | |
791 | } | |
792 | if (_obj3) | |
793 | { | |
794 | _arg3 = &temp0; | |
795 | if (! wxSize_helper(_obj3, &_arg3)) | |
796 | return NULL; | |
797 | } | |
798 | { | |
4268f798 | 799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 800 | _result = (wxRemotelyScrolledTreeCtrl *)new_wxRemotelyScrolledTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
611dc22c | 801 | |
4268f798 RD |
802 | wxPyEndAllowThreads(__tstate); |
803 | if (PyErr_Occurred()) return NULL; | |
611dc22c RD |
804 | } if (_result) { |
805 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRemotelyScrolledTreeCtrl_p"); | |
806 | _resultobj = Py_BuildValue("s",_ptemp); | |
807 | } else { | |
808 | Py_INCREF(Py_None); | |
809 | _resultobj = Py_None; | |
810 | } | |
811 | return _resultobj; | |
812 | } | |
813 | ||
814 | #define wxRemotelyScrolledTreeCtrl_HideVScrollbar(_swigobj) (_swigobj->HideVScrollbar()) | |
815 | static PyObject *_wrap_wxRemotelyScrolledTreeCtrl_HideVScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
816 | PyObject * _resultobj; | |
817 | wxRemotelyScrolledTreeCtrl * _arg0; | |
818 | PyObject * _argo0 = 0; | |
819 | char *_kwnames[] = { "self", NULL }; | |
820 | ||
821 | self = self; | |
822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRemotelyScrolledTreeCtrl_HideVScrollbar",_kwnames,&_argo0)) | |
823 | return NULL; | |
824 | if (_argo0) { | |
825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRemotelyScrolledTreeCtrl_p")) { | |
827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRemotelyScrolledTreeCtrl_HideVScrollbar. Expected _wxRemotelyScrolledTreeCtrl_p."); | |
828 | return NULL; | |
829 | } | |
830 | } | |
831 | { | |
4268f798 | 832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 833 | wxRemotelyScrolledTreeCtrl_HideVScrollbar(_arg0); |
611dc22c | 834 | |
4268f798 RD |
835 | wxPyEndAllowThreads(__tstate); |
836 | if (PyErr_Occurred()) return NULL; | |
611dc22c RD |
837 | } Py_INCREF(Py_None); |
838 | _resultobj = Py_None; | |
839 | return _resultobj; | |
840 | } | |
841 | ||
842 | #define wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars(_swigobj) (_swigobj->AdjustRemoteScrollbars()) | |
843 | static PyObject *_wrap_wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
844 | PyObject * _resultobj; | |
845 | wxRemotelyScrolledTreeCtrl * _arg0; | |
846 | PyObject * _argo0 = 0; | |
847 | char *_kwnames[] = { "self", NULL }; | |
848 | ||
849 | self = self; | |
850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars",_kwnames,&_argo0)) | |
851 | return NULL; | |
852 | if (_argo0) { | |
853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRemotelyScrolledTreeCtrl_p")) { | |
855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars. Expected _wxRemotelyScrolledTreeCtrl_p."); | |
856 | return NULL; | |
857 | } | |
858 | } | |
859 | { | |
4268f798 | 860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 861 | wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars(_arg0); |
611dc22c | 862 | |
4268f798 RD |
863 | wxPyEndAllowThreads(__tstate); |
864 | if (PyErr_Occurred()) return NULL; | |
611dc22c RD |
865 | } Py_INCREF(Py_None); |
866 | _resultobj = Py_None; | |
867 | return _resultobj; | |
868 | } | |
869 | ||
870 | #define wxRemotelyScrolledTreeCtrl_GetScrolledWindow(_swigobj) (_swigobj->GetScrolledWindow()) | |
871 | static PyObject *_wrap_wxRemotelyScrolledTreeCtrl_GetScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
872 | PyObject * _resultobj; | |
873 | wxScrolledWindow * _result; | |
874 | wxRemotelyScrolledTreeCtrl * _arg0; | |
875 | PyObject * _argo0 = 0; | |
876 | char *_kwnames[] = { "self", NULL }; | |
877 | char _ptemp[128]; | |
878 | ||
879 | self = self; | |
880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRemotelyScrolledTreeCtrl_GetScrolledWindow",_kwnames,&_argo0)) | |
881 | return NULL; | |
882 | if (_argo0) { | |
883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRemotelyScrolledTreeCtrl_p")) { | |
885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRemotelyScrolledTreeCtrl_GetScrolledWindow. Expected _wxRemotelyScrolledTreeCtrl_p."); | |
886 | return NULL; | |
887 | } | |
888 | } | |
889 | { | |
4268f798 | 890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 891 | _result = (wxScrolledWindow *)wxRemotelyScrolledTreeCtrl_GetScrolledWindow(_arg0); |
611dc22c | 892 | |
4268f798 RD |
893 | wxPyEndAllowThreads(__tstate); |
894 | if (PyErr_Occurred()) return NULL; | |
611dc22c RD |
895 | } if (_result) { |
896 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
897 | _resultobj = Py_BuildValue("s",_ptemp); | |
898 | } else { | |
899 | Py_INCREF(Py_None); | |
900 | _resultobj = Py_None; | |
901 | } | |
902 | return _resultobj; | |
903 | } | |
904 | ||
905 | #define wxRemotelyScrolledTreeCtrl_ScrollToLine(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollToLine(_swigarg0,_swigarg1)) | |
906 | static PyObject *_wrap_wxRemotelyScrolledTreeCtrl_ScrollToLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
907 | PyObject * _resultobj; | |
908 | wxRemotelyScrolledTreeCtrl * _arg0; | |
909 | int _arg1; | |
910 | int _arg2; | |
911 | PyObject * _argo0 = 0; | |
912 | char *_kwnames[] = { "self","posHoriz","posVert", NULL }; | |
913 | ||
914 | self = self; | |
915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRemotelyScrolledTreeCtrl_ScrollToLine",_kwnames,&_argo0,&_arg1,&_arg2)) | |
916 | return NULL; | |
917 | if (_argo0) { | |
918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRemotelyScrolledTreeCtrl_p")) { | |
920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRemotelyScrolledTreeCtrl_ScrollToLine. Expected _wxRemotelyScrolledTreeCtrl_p."); | |
921 | return NULL; | |
922 | } | |
923 | } | |
924 | { | |
4268f798 | 925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 926 | wxRemotelyScrolledTreeCtrl_ScrollToLine(_arg0,_arg1,_arg2); |
611dc22c | 927 | |
4268f798 RD |
928 | wxPyEndAllowThreads(__tstate); |
929 | if (PyErr_Occurred()) return NULL; | |
611dc22c RD |
930 | } Py_INCREF(Py_None); |
931 | _resultobj = Py_None; | |
932 | return _resultobj; | |
933 | } | |
934 | ||
935 | #define wxRemotelyScrolledTreeCtrl_SetCompanionWindow(_swigobj,_swigarg0) (_swigobj->SetCompanionWindow(_swigarg0)) | |
936 | static PyObject *_wrap_wxRemotelyScrolledTreeCtrl_SetCompanionWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
937 | PyObject * _resultobj; | |
938 | wxRemotelyScrolledTreeCtrl * _arg0; | |
939 | wxWindow * _arg1; | |
940 | PyObject * _argo0 = 0; | |
941 | PyObject * _argo1 = 0; | |
942 | char *_kwnames[] = { "self","companion", NULL }; | |
943 | ||
944 | self = self; | |
945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRemotelyScrolledTreeCtrl_SetCompanionWindow",_kwnames,&_argo0,&_argo1)) | |
946 | return NULL; | |
947 | if (_argo0) { | |
948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRemotelyScrolledTreeCtrl_p")) { | |
950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRemotelyScrolledTreeCtrl_SetCompanionWindow. Expected _wxRemotelyScrolledTreeCtrl_p."); | |
951 | return NULL; | |
952 | } | |
953 | } | |
954 | if (_argo1) { | |
955 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
956 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRemotelyScrolledTreeCtrl_SetCompanionWindow. Expected _wxWindow_p."); | |
958 | return NULL; | |
959 | } | |
960 | } | |
961 | { | |
4268f798 | 962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 963 | wxRemotelyScrolledTreeCtrl_SetCompanionWindow(_arg0,_arg1); |
611dc22c | 964 | |
4268f798 RD |
965 | wxPyEndAllowThreads(__tstate); |
966 | if (PyErr_Occurred()) return NULL; | |
611dc22c RD |
967 | } Py_INCREF(Py_None); |
968 | _resultobj = Py_None; | |
969 | return _resultobj; | |
970 | } | |
971 | ||
972 | #define wxRemotelyScrolledTreeCtrl_GetCompanionWindow(_swigobj) (_swigobj->GetCompanionWindow()) | |
973 | static PyObject *_wrap_wxRemotelyScrolledTreeCtrl_GetCompanionWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
974 | PyObject * _resultobj; | |
975 | wxWindow * _result; | |
976 | wxRemotelyScrolledTreeCtrl * _arg0; | |
977 | PyObject * _argo0 = 0; | |
978 | char *_kwnames[] = { "self", NULL }; | |
979 | ||
980 | self = self; | |
981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRemotelyScrolledTreeCtrl_GetCompanionWindow",_kwnames,&_argo0)) | |
982 | return NULL; | |
983 | if (_argo0) { | |
984 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
985 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRemotelyScrolledTreeCtrl_p")) { | |
986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRemotelyScrolledTreeCtrl_GetCompanionWindow. Expected _wxRemotelyScrolledTreeCtrl_p."); | |
987 | return NULL; | |
988 | } | |
989 | } | |
990 | { | |
4268f798 | 991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 992 | _result = (wxWindow *)wxRemotelyScrolledTreeCtrl_GetCompanionWindow(_arg0); |
611dc22c | 993 | |
4268f798 RD |
994 | wxPyEndAllowThreads(__tstate); |
995 | if (PyErr_Occurred()) return NULL; | |
611dc22c RD |
996 | }{ _resultobj = wxPyMake_wxObject(_result); } |
997 | return _resultobj; | |
998 | } | |
999 | ||
1000 | static void *SwigwxPyTreeCompanionWindowTowxWindow(void *ptr) { | |
1001 | wxPyTreeCompanionWindow *src; | |
1002 | wxWindow *dest; | |
1003 | src = (wxPyTreeCompanionWindow *) ptr; | |
1004 | dest = (wxWindow *) src; | |
1005 | return (void *) dest; | |
1006 | } | |
1007 | ||
1008 | static void *SwigwxPyTreeCompanionWindowTowxEvtHandler(void *ptr) { | |
1009 | wxPyTreeCompanionWindow *src; | |
1010 | wxEvtHandler *dest; | |
1011 | src = (wxPyTreeCompanionWindow *) ptr; | |
1012 | dest = (wxEvtHandler *) src; | |
1013 | return (void *) dest; | |
1014 | } | |
1015 | ||
1016 | static void *SwigwxPyTreeCompanionWindowTowxObject(void *ptr) { | |
1017 | wxPyTreeCompanionWindow *src; | |
1018 | wxObject *dest; | |
1019 | src = (wxPyTreeCompanionWindow *) ptr; | |
1020 | dest = (wxObject *) src; | |
1021 | return (void *) dest; | |
1022 | } | |
1023 | ||
1024 | #define new_wxTreeCompanionWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxPyTreeCompanionWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
1025 | static PyObject *_wrap_new_wxTreeCompanionWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1026 | PyObject * _resultobj; | |
1027 | wxPyTreeCompanionWindow * _result; | |
1028 | wxWindow * _arg0; | |
1029 | wxWindowID _arg1 = (wxWindowID ) -1; | |
1030 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
1031 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1032 | long _arg4 = (long ) 0; | |
1033 | PyObject * _argo0 = 0; | |
1034 | wxPoint temp; | |
1035 | PyObject * _obj2 = 0; | |
1036 | wxSize temp0; | |
1037 | PyObject * _obj3 = 0; | |
1038 | char *_kwnames[] = { "parent","id","pos","size","style", NULL }; | |
1039 | char _ptemp[128]; | |
1040 | ||
1041 | self = self; | |
1042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxTreeCompanionWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
1043 | return NULL; | |
1044 | if (_argo0) { | |
1045 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1046 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCompanionWindow. Expected _wxWindow_p."); | |
1048 | return NULL; | |
1049 | } | |
1050 | } | |
1051 | if (_obj2) | |
1052 | { | |
1053 | _arg2 = &temp; | |
1054 | if (! wxPoint_helper(_obj2, &_arg2)) | |
1055 | return NULL; | |
1056 | } | |
1057 | if (_obj3) | |
1058 | { | |
1059 | _arg3 = &temp0; | |
1060 | if (! wxSize_helper(_obj3, &_arg3)) | |
1061 | return NULL; | |
1062 | } | |
1063 | { | |
4268f798 | 1064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1065 | _result = (wxPyTreeCompanionWindow *)new_wxTreeCompanionWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
611dc22c | 1066 | |
4268f798 RD |
1067 | wxPyEndAllowThreads(__tstate); |
1068 | if (PyErr_Occurred()) return NULL; | |
611dc22c RD |
1069 | } if (_result) { |
1070 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCompanionWindow_p"); | |
1071 | _resultobj = Py_BuildValue("s",_ptemp); | |
1072 | } else { | |
1073 | Py_INCREF(Py_None); | |
1074 | _resultobj = Py_None; | |
1075 | } | |
1076 | return _resultobj; | |
1077 | } | |
1078 | ||
1079 | #define wxTreeCompanionWindow__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
1080 | static PyObject *_wrap_wxTreeCompanionWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1081 | PyObject * _resultobj; | |
1082 | wxPyTreeCompanionWindow * _arg0; | |
1083 | PyObject * _arg1; | |
1084 | PyObject * _arg2; | |
1085 | PyObject * _argo0 = 0; | |
1086 | PyObject * _obj1 = 0; | |
1087 | PyObject * _obj2 = 0; | |
1088 | char *_kwnames[] = { "self","self","_class", NULL }; | |
1089 | ||
1090 | self = self; | |
1091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCompanionWindow__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
1092 | return NULL; | |
1093 | if (_argo0) { | |
1094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCompanionWindow_p")) { | |
1096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCompanionWindow__setCallbackInfo. Expected _wxPyTreeCompanionWindow_p."); | |
1097 | return NULL; | |
1098 | } | |
1099 | } | |
1100 | { | |
1101 | _arg1 = _obj1; | |
1102 | } | |
1103 | { | |
1104 | _arg2 = _obj2; | |
1105 | } | |
1106 | { | |
4268f798 | 1107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1108 | wxTreeCompanionWindow__setCallbackInfo(_arg0,_arg1,_arg2); |
611dc22c | 1109 | |
4268f798 RD |
1110 | wxPyEndAllowThreads(__tstate); |
1111 | if (PyErr_Occurred()) return NULL; | |
611dc22c RD |
1112 | } Py_INCREF(Py_None); |
1113 | _resultobj = Py_None; | |
1114 | return _resultobj; | |
1115 | } | |
1116 | ||
1117 | #define wxTreeCompanionWindow_GetTreeCtrl(_swigobj) (_swigobj->GetTreeCtrl()) | |
1118 | static PyObject *_wrap_wxTreeCompanionWindow_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1119 | PyObject * _resultobj; | |
1120 | wxRemotelyScrolledTreeCtrl * _result; | |
1121 | wxPyTreeCompanionWindow * _arg0; | |
1122 | PyObject * _argo0 = 0; | |
1123 | char *_kwnames[] = { "self", NULL }; | |
1124 | char _ptemp[128]; | |
1125 | ||
1126 | self = self; | |
1127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCompanionWindow_GetTreeCtrl",_kwnames,&_argo0)) | |
1128 | return NULL; | |
1129 | if (_argo0) { | |
1130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCompanionWindow_p")) { | |
1132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCompanionWindow_GetTreeCtrl. Expected _wxPyTreeCompanionWindow_p."); | |
1133 | return NULL; | |
1134 | } | |
1135 | } | |
1136 | { | |
4268f798 | 1137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1138 | _result = (wxRemotelyScrolledTreeCtrl *)wxTreeCompanionWindow_GetTreeCtrl(_arg0); |
611dc22c | 1139 | |
4268f798 RD |
1140 | wxPyEndAllowThreads(__tstate); |
1141 | if (PyErr_Occurred()) return NULL; | |
611dc22c RD |
1142 | } if (_result) { |
1143 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRemotelyScrolledTreeCtrl_p"); | |
1144 | _resultobj = Py_BuildValue("s",_ptemp); | |
1145 | } else { | |
1146 | Py_INCREF(Py_None); | |
1147 | _resultobj = Py_None; | |
1148 | } | |
1149 | return _resultobj; | |
1150 | } | |
1151 | ||
1152 | #define wxTreeCompanionWindow_SetTreeCtrl(_swigobj,_swigarg0) (_swigobj->SetTreeCtrl(_swigarg0)) | |
1153 | static PyObject *_wrap_wxTreeCompanionWindow_SetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1154 | PyObject * _resultobj; | |
1155 | wxPyTreeCompanionWindow * _arg0; | |
1156 | wxRemotelyScrolledTreeCtrl * _arg1; | |
1157 | PyObject * _argo0 = 0; | |
1158 | PyObject * _argo1 = 0; | |
1159 | char *_kwnames[] = { "self","treeCtrl", NULL }; | |
1160 | ||
1161 | self = self; | |
1162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCompanionWindow_SetTreeCtrl",_kwnames,&_argo0,&_argo1)) | |
1163 | return NULL; | |
1164 | if (_argo0) { | |
1165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCompanionWindow_p")) { | |
1167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCompanionWindow_SetTreeCtrl. Expected _wxPyTreeCompanionWindow_p."); | |
1168 | return NULL; | |
1169 | } | |
1170 | } | |
1171 | if (_argo1) { | |
1172 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1173 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRemotelyScrolledTreeCtrl_p")) { | |
1174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCompanionWindow_SetTreeCtrl. Expected _wxRemotelyScrolledTreeCtrl_p."); | |
1175 | return NULL; | |
1176 | } | |
1177 | } | |
1178 | { | |
4268f798 | 1179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1180 | wxTreeCompanionWindow_SetTreeCtrl(_arg0,_arg1); |
611dc22c | 1181 | |
4268f798 RD |
1182 | wxPyEndAllowThreads(__tstate); |
1183 | if (PyErr_Occurred()) return NULL; | |
611dc22c RD |
1184 | } Py_INCREF(Py_None); |
1185 | _resultobj = Py_None; | |
1186 | return _resultobj; | |
1187 | } | |
1188 | ||
1189 | static void *SwigwxThinSplitterWindowTowxSplitterWindow(void *ptr) { | |
1190 | wxThinSplitterWindow *src; | |
1191 | wxSplitterWindow *dest; | |
1192 | src = (wxThinSplitterWindow *) ptr; | |
1193 | dest = (wxSplitterWindow *) src; | |
1194 | return (void *) dest; | |
1195 | } | |
1196 | ||
1197 | static void *SwigwxThinSplitterWindowTowxWindow(void *ptr) { | |
1198 | wxThinSplitterWindow *src; | |
1199 | wxWindow *dest; | |
1200 | src = (wxThinSplitterWindow *) ptr; | |
1201 | dest = (wxWindow *) src; | |
1202 | return (void *) dest; | |
1203 | } | |
1204 | ||
1205 | static void *SwigwxThinSplitterWindowTowxEvtHandler(void *ptr) { | |
1206 | wxThinSplitterWindow *src; | |
1207 | wxEvtHandler *dest; | |
1208 | src = (wxThinSplitterWindow *) ptr; | |
1209 | dest = (wxEvtHandler *) src; | |
1210 | return (void *) dest; | |
1211 | } | |
1212 | ||
1213 | static void *SwigwxThinSplitterWindowTowxObject(void *ptr) { | |
1214 | wxThinSplitterWindow *src; | |
1215 | wxObject *dest; | |
1216 | src = (wxThinSplitterWindow *) ptr; | |
1217 | dest = (wxObject *) src; | |
1218 | return (void *) dest; | |
1219 | } | |
1220 | ||
1221 | #define new_wxThinSplitterWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxThinSplitterWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
1222 | static PyObject *_wrap_new_wxThinSplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1223 | PyObject * _resultobj; | |
1224 | wxThinSplitterWindow * _result; | |
1225 | wxWindow * _arg0; | |
1226 | wxWindowID _arg1 = (wxWindowID ) -1; | |
1227 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
1228 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1229 | long _arg4 = (long ) wxSP_3D|wxCLIP_CHILDREN; | |
1230 | PyObject * _argo0 = 0; | |
1231 | wxPoint temp; | |
1232 | PyObject * _obj2 = 0; | |
1233 | wxSize temp0; | |
1234 | PyObject * _obj3 = 0; | |
1235 | char *_kwnames[] = { "parent","id","pos","size","style", NULL }; | |
1236 | char _ptemp[128]; | |
1237 | ||
1238 | self = self; | |
1239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxThinSplitterWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
1240 | return NULL; | |
1241 | if (_argo0) { | |
1242 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1243 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxThinSplitterWindow. Expected _wxWindow_p."); | |
1245 | return NULL; | |
1246 | } | |
1247 | } | |
1248 | if (_obj2) | |
1249 | { | |
1250 | _arg2 = &temp; | |
1251 | if (! wxPoint_helper(_obj2, &_arg2)) | |
1252 | return NULL; | |
1253 | } | |
1254 | if (_obj3) | |
1255 | { | |
1256 | _arg3 = &temp0; | |
1257 | if (! wxSize_helper(_obj3, &_arg3)) | |
1258 | return NULL; | |
1259 | } | |
1260 | { | |
4268f798 | 1261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1262 | _result = (wxThinSplitterWindow *)new_wxThinSplitterWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
611dc22c | 1263 | |
4268f798 RD |
1264 | wxPyEndAllowThreads(__tstate); |
1265 | if (PyErr_Occurred()) return NULL; | |
611dc22c RD |
1266 | } if (_result) { |
1267 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxThinSplitterWindow_p"); | |
1268 | _resultobj = Py_BuildValue("s",_ptemp); | |
1269 | } else { | |
1270 | Py_INCREF(Py_None); | |
1271 | _resultobj = Py_None; | |
1272 | } | |
1273 | return _resultobj; | |
1274 | } | |
1275 | ||
1276 | static void *SwigwxSplitterScrolledWindowTowxScrolledWindow(void *ptr) { | |
1277 | wxSplitterScrolledWindow *src; | |
1278 | wxScrolledWindow *dest; | |
1279 | src = (wxSplitterScrolledWindow *) ptr; | |
1280 | dest = (wxScrolledWindow *) src; | |
1281 | return (void *) dest; | |
1282 | } | |
1283 | ||
1284 | static void *SwigwxSplitterScrolledWindowTowxPanel(void *ptr) { | |
1285 | wxSplitterScrolledWindow *src; | |
1286 | wxPanel *dest; | |
1287 | src = (wxSplitterScrolledWindow *) ptr; | |
1288 | dest = (wxPanel *) src; | |
1289 | return (void *) dest; | |
1290 | } | |
1291 | ||
1292 | static void *SwigwxSplitterScrolledWindowTowxWindow(void *ptr) { | |
1293 | wxSplitterScrolledWindow *src; | |
1294 | wxWindow *dest; | |
1295 | src = (wxSplitterScrolledWindow *) ptr; | |
1296 | dest = (wxWindow *) src; | |
1297 | return (void *) dest; | |
1298 | } | |
1299 | ||
1300 | static void *SwigwxSplitterScrolledWindowTowxEvtHandler(void *ptr) { | |
1301 | wxSplitterScrolledWindow *src; | |
1302 | wxEvtHandler *dest; | |
1303 | src = (wxSplitterScrolledWindow *) ptr; | |
1304 | dest = (wxEvtHandler *) src; | |
1305 | return (void *) dest; | |
1306 | } | |
1307 | ||
1308 | static void *SwigwxSplitterScrolledWindowTowxObject(void *ptr) { | |
1309 | wxSplitterScrolledWindow *src; | |
1310 | wxObject *dest; | |
1311 | src = (wxSplitterScrolledWindow *) ptr; | |
1312 | dest = (wxObject *) src; | |
1313 | return (void *) dest; | |
1314 | } | |
1315 | ||
1316 | #define new_wxSplitterScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxSplitterScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
1317 | static PyObject *_wrap_new_wxSplitterScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1318 | PyObject * _resultobj; | |
1319 | wxSplitterScrolledWindow * _result; | |
1320 | wxWindow * _arg0; | |
1321 | wxWindowID _arg1 = (wxWindowID ) -1; | |
1322 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
1323 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1324 | long _arg4 = (long ) 0; | |
1325 | PyObject * _argo0 = 0; | |
1326 | wxPoint temp; | |
1327 | PyObject * _obj2 = 0; | |
1328 | wxSize temp0; | |
1329 | PyObject * _obj3 = 0; | |
1330 | char *_kwnames[] = { "parent","id","pos","size","style", NULL }; | |
1331 | char _ptemp[128]; | |
1332 | ||
1333 | self = self; | |
1334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxSplitterScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
1335 | return NULL; | |
1336 | if (_argo0) { | |
1337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSplitterScrolledWindow. Expected _wxWindow_p."); | |
1340 | return NULL; | |
1341 | } | |
1342 | } | |
1343 | if (_obj2) | |
1344 | { | |
1345 | _arg2 = &temp; | |
1346 | if (! wxPoint_helper(_obj2, &_arg2)) | |
1347 | return NULL; | |
1348 | } | |
1349 | if (_obj3) | |
1350 | { | |
1351 | _arg3 = &temp0; | |
1352 | if (! wxSize_helper(_obj3, &_arg3)) | |
1353 | return NULL; | |
1354 | } | |
1355 | { | |
4268f798 | 1356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1357 | _result = (wxSplitterScrolledWindow *)new_wxSplitterScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
611dc22c | 1358 | |
4268f798 RD |
1359 | wxPyEndAllowThreads(__tstate); |
1360 | if (PyErr_Occurred()) return NULL; | |
611dc22c RD |
1361 | } if (_result) { |
1362 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSplitterScrolledWindow_p"); | |
1363 | _resultobj = Py_BuildValue("s",_ptemp); | |
1364 | } else { | |
1365 | Py_INCREF(Py_None); | |
1366 | _resultobj = Py_None; | |
1367 | } | |
1368 | return _resultobj; | |
1369 | } | |
1370 | ||
950e7faf RD |
1371 | static void *SwigwxLEDNumberCtrlTowxControl(void *ptr) { |
1372 | wxLEDNumberCtrl *src; | |
1373 | wxControl *dest; | |
1374 | src = (wxLEDNumberCtrl *) ptr; | |
1375 | dest = (wxControl *) src; | |
1376 | return (void *) dest; | |
1377 | } | |
1378 | ||
1379 | static void *SwigwxLEDNumberCtrlTowxWindow(void *ptr) { | |
1380 | wxLEDNumberCtrl *src; | |
1381 | wxWindow *dest; | |
1382 | src = (wxLEDNumberCtrl *) ptr; | |
1383 | dest = (wxWindow *) src; | |
1384 | return (void *) dest; | |
1385 | } | |
1386 | ||
1387 | static void *SwigwxLEDNumberCtrlTowxEvtHandler(void *ptr) { | |
1388 | wxLEDNumberCtrl *src; | |
1389 | wxEvtHandler *dest; | |
1390 | src = (wxLEDNumberCtrl *) ptr; | |
1391 | dest = (wxEvtHandler *) src; | |
1392 | return (void *) dest; | |
1393 | } | |
1394 | ||
1395 | static void *SwigwxLEDNumberCtrlTowxObject(void *ptr) { | |
1396 | wxLEDNumberCtrl *src; | |
1397 | wxObject *dest; | |
1398 | src = (wxLEDNumberCtrl *) ptr; | |
1399 | dest = (wxObject *) src; | |
1400 | return (void *) dest; | |
1401 | } | |
1402 | ||
1403 | #define new_wxLEDNumberCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxLEDNumberCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
1404 | static PyObject *_wrap_new_wxLEDNumberCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1405 | PyObject * _resultobj; | |
1406 | wxLEDNumberCtrl * _result; | |
1407 | wxWindow * _arg0; | |
1408 | wxWindowID _arg1 = (wxWindowID ) -1; | |
1409 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
1410 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1411 | long _arg4 = (long ) (wxLED_ALIGN_LEFT)|(wxLED_DRAW_FADED); | |
1412 | PyObject * _argo0 = 0; | |
1413 | wxPoint temp; | |
1414 | PyObject * _obj2 = 0; | |
1415 | wxSize temp0; | |
1416 | PyObject * _obj3 = 0; | |
1417 | char *_kwnames[] = { "parent","id","pos","size","style", NULL }; | |
1418 | char _ptemp[128]; | |
1419 | ||
1420 | self = self; | |
1421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxLEDNumberCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
1422 | return NULL; | |
1423 | if (_argo0) { | |
1424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLEDNumberCtrl. Expected _wxWindow_p."); | |
1427 | return NULL; | |
1428 | } | |
1429 | } | |
1430 | if (_obj2) | |
1431 | { | |
1432 | _arg2 = &temp; | |
1433 | if (! wxPoint_helper(_obj2, &_arg2)) | |
1434 | return NULL; | |
1435 | } | |
1436 | if (_obj3) | |
1437 | { | |
1438 | _arg3 = &temp0; | |
1439 | if (! wxSize_helper(_obj3, &_arg3)) | |
1440 | return NULL; | |
1441 | } | |
1442 | { | |
4268f798 | 1443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1444 | _result = (wxLEDNumberCtrl *)new_wxLEDNumberCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
950e7faf | 1445 | |
4268f798 RD |
1446 | wxPyEndAllowThreads(__tstate); |
1447 | if (PyErr_Occurred()) return NULL; | |
950e7faf RD |
1448 | } if (_result) { |
1449 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLEDNumberCtrl_p"); | |
1450 | _resultobj = Py_BuildValue("s",_ptemp); | |
1451 | } else { | |
1452 | Py_INCREF(Py_None); | |
1453 | _resultobj = Py_None; | |
1454 | } | |
1455 | return _resultobj; | |
1456 | } | |
1457 | ||
1458 | #define new_wxPreLEDNumberCtrl() (new wxLEDNumberCtrl()) | |
1459 | static PyObject *_wrap_new_wxPreLEDNumberCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1460 | PyObject * _resultobj; | |
1461 | wxLEDNumberCtrl * _result; | |
1462 | char *_kwnames[] = { NULL }; | |
1463 | char _ptemp[128]; | |
1464 | ||
1465 | self = self; | |
1466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreLEDNumberCtrl",_kwnames)) | |
1467 | return NULL; | |
1468 | { | |
4268f798 | 1469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1470 | _result = (wxLEDNumberCtrl *)new_wxPreLEDNumberCtrl(); |
950e7faf | 1471 | |
4268f798 RD |
1472 | wxPyEndAllowThreads(__tstate); |
1473 | if (PyErr_Occurred()) return NULL; | |
950e7faf RD |
1474 | } if (_result) { |
1475 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLEDNumberCtrl_p"); | |
1476 | _resultobj = Py_BuildValue("s",_ptemp); | |
1477 | } else { | |
1478 | Py_INCREF(Py_None); | |
1479 | _resultobj = Py_None; | |
1480 | } | |
1481 | return _resultobj; | |
1482 | } | |
1483 | ||
1484 | #define wxLEDNumberCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
1485 | static PyObject *_wrap_wxLEDNumberCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1486 | PyObject * _resultobj; | |
1487 | bool _result; | |
1488 | wxLEDNumberCtrl * _arg0; | |
1489 | wxWindow * _arg1; | |
1490 | wxWindowID _arg2 = (wxWindowID ) -1; | |
1491 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
1492 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1493 | long _arg5 = (long ) (wxLED_ALIGN_LEFT)|(wxLED_DRAW_FADED); | |
1494 | PyObject * _argo0 = 0; | |
1495 | PyObject * _argo1 = 0; | |
1496 | wxPoint temp; | |
1497 | PyObject * _obj3 = 0; | |
1498 | wxSize temp0; | |
1499 | PyObject * _obj4 = 0; | |
1500 | char *_kwnames[] = { "self","parent","id","pos","size","style", NULL }; | |
1501 | ||
1502 | self = self; | |
1503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOl:wxLEDNumberCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5)) | |
1504 | return NULL; | |
1505 | if (_argo0) { | |
1506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLEDNumberCtrl_p")) { | |
1508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLEDNumberCtrl_Create. Expected _wxLEDNumberCtrl_p."); | |
1509 | return NULL; | |
1510 | } | |
1511 | } | |
1512 | if (_argo1) { | |
1513 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1514 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxLEDNumberCtrl_Create. Expected _wxWindow_p."); | |
1516 | return NULL; | |
1517 | } | |
1518 | } | |
1519 | if (_obj3) | |
1520 | { | |
1521 | _arg3 = &temp; | |
1522 | if (! wxPoint_helper(_obj3, &_arg3)) | |
1523 | return NULL; | |
1524 | } | |
1525 | if (_obj4) | |
1526 | { | |
1527 | _arg4 = &temp0; | |
1528 | if (! wxSize_helper(_obj4, &_arg4)) | |
1529 | return NULL; | |
1530 | } | |
1531 | { | |
4268f798 | 1532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1533 | _result = (bool )wxLEDNumberCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5); |
950e7faf | 1534 | |
4268f798 RD |
1535 | wxPyEndAllowThreads(__tstate); |
1536 | if (PyErr_Occurred()) return NULL; | |
950e7faf RD |
1537 | } _resultobj = Py_BuildValue("i",_result); |
1538 | return _resultobj; | |
1539 | } | |
1540 | ||
1541 | #define wxLEDNumberCtrl_GetAlignment(_swigobj) (_swigobj->GetAlignment()) | |
1542 | static PyObject *_wrap_wxLEDNumberCtrl_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1543 | PyObject * _resultobj; | |
1544 | wxLEDValueAlign _result; | |
1545 | wxLEDNumberCtrl * _arg0; | |
1546 | PyObject * _argo0 = 0; | |
1547 | char *_kwnames[] = { "self", NULL }; | |
1548 | ||
1549 | self = self; | |
1550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLEDNumberCtrl_GetAlignment",_kwnames,&_argo0)) | |
1551 | return NULL; | |
1552 | if (_argo0) { | |
1553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLEDNumberCtrl_p")) { | |
1555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLEDNumberCtrl_GetAlignment. Expected _wxLEDNumberCtrl_p."); | |
1556 | return NULL; | |
1557 | } | |
1558 | } | |
1559 | { | |
4268f798 | 1560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1561 | _result = (wxLEDValueAlign )wxLEDNumberCtrl_GetAlignment(_arg0); |
950e7faf | 1562 | |
4268f798 RD |
1563 | wxPyEndAllowThreads(__tstate); |
1564 | if (PyErr_Occurred()) return NULL; | |
950e7faf RD |
1565 | } _resultobj = Py_BuildValue("i",_result); |
1566 | return _resultobj; | |
1567 | } | |
1568 | ||
1569 | #define wxLEDNumberCtrl_GetDrawFaded(_swigobj) (_swigobj->GetDrawFaded()) | |
1570 | static PyObject *_wrap_wxLEDNumberCtrl_GetDrawFaded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1571 | PyObject * _resultobj; | |
1572 | bool _result; | |
1573 | wxLEDNumberCtrl * _arg0; | |
1574 | PyObject * _argo0 = 0; | |
1575 | char *_kwnames[] = { "self", NULL }; | |
1576 | ||
1577 | self = self; | |
1578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLEDNumberCtrl_GetDrawFaded",_kwnames,&_argo0)) | |
1579 | return NULL; | |
1580 | if (_argo0) { | |
1581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLEDNumberCtrl_p")) { | |
1583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLEDNumberCtrl_GetDrawFaded. Expected _wxLEDNumberCtrl_p."); | |
1584 | return NULL; | |
1585 | } | |
1586 | } | |
1587 | { | |
4268f798 | 1588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1589 | _result = (bool )wxLEDNumberCtrl_GetDrawFaded(_arg0); |
950e7faf | 1590 | |
4268f798 RD |
1591 | wxPyEndAllowThreads(__tstate); |
1592 | if (PyErr_Occurred()) return NULL; | |
950e7faf RD |
1593 | } _resultobj = Py_BuildValue("i",_result); |
1594 | return _resultobj; | |
1595 | } | |
1596 | ||
1597 | #define wxLEDNumberCtrl_GetValue(_swigobj) (_swigobj->GetValue()) | |
1598 | static PyObject *_wrap_wxLEDNumberCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1599 | PyObject * _resultobj; | |
1600 | wxString * _result; | |
1601 | wxLEDNumberCtrl * _arg0; | |
1602 | PyObject * _argo0 = 0; | |
1603 | char *_kwnames[] = { "self", NULL }; | |
1604 | ||
1605 | self = self; | |
1606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLEDNumberCtrl_GetValue",_kwnames,&_argo0)) | |
1607 | return NULL; | |
1608 | if (_argo0) { | |
1609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLEDNumberCtrl_p")) { | |
1611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLEDNumberCtrl_GetValue. Expected _wxLEDNumberCtrl_p."); | |
1612 | return NULL; | |
1613 | } | |
1614 | } | |
1615 | { | |
4268f798 | 1616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1617 | const wxString & _result_ref = wxLEDNumberCtrl_GetValue(_arg0); |
950e7faf RD |
1618 | _result = (wxString *) &_result_ref; |
1619 | ||
4268f798 RD |
1620 | wxPyEndAllowThreads(__tstate); |
1621 | if (PyErr_Occurred()) return NULL; | |
950e7faf | 1622 | }{ |
c8bc7bb8 RD |
1623 | #if wxUSE_UNICODE |
1624 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1625 | #else | |
950e7faf | 1626 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1627 | #endif |
950e7faf RD |
1628 | } |
1629 | return _resultobj; | |
1630 | } | |
1631 | ||
1632 | #define wxLEDNumberCtrl_SetAlignment(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAlignment(_swigarg0,_swigarg1)) | |
1633 | static PyObject *_wrap_wxLEDNumberCtrl_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1634 | PyObject * _resultobj; | |
1635 | wxLEDNumberCtrl * _arg0; | |
1636 | wxLEDValueAlign _arg1; | |
1637 | bool _arg2 = (bool ) true; | |
1638 | PyObject * _argo0 = 0; | |
1639 | int tempbool2 = (int) true; | |
1640 | char *_kwnames[] = { "self","Alignment","Redraw", NULL }; | |
1641 | ||
1642 | self = self; | |
1643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxLEDNumberCtrl_SetAlignment",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
1644 | return NULL; | |
1645 | if (_argo0) { | |
1646 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1647 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLEDNumberCtrl_p")) { | |
1648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLEDNumberCtrl_SetAlignment. Expected _wxLEDNumberCtrl_p."); | |
1649 | return NULL; | |
1650 | } | |
1651 | } | |
1652 | _arg2 = (bool ) tempbool2; | |
1653 | { | |
4268f798 | 1654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1655 | wxLEDNumberCtrl_SetAlignment(_arg0,_arg1,_arg2); |
950e7faf | 1656 | |
4268f798 RD |
1657 | wxPyEndAllowThreads(__tstate); |
1658 | if (PyErr_Occurred()) return NULL; | |
950e7faf RD |
1659 | } Py_INCREF(Py_None); |
1660 | _resultobj = Py_None; | |
1661 | return _resultobj; | |
1662 | } | |
1663 | ||
1664 | #define wxLEDNumberCtrl_SetDrawFaded(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDrawFaded(_swigarg0,_swigarg1)) | |
1665 | static PyObject *_wrap_wxLEDNumberCtrl_SetDrawFaded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1666 | PyObject * _resultobj; | |
1667 | wxLEDNumberCtrl * _arg0; | |
1668 | bool _arg1; | |
1669 | bool _arg2 = (bool ) true; | |
1670 | PyObject * _argo0 = 0; | |
1671 | int tempbool1; | |
1672 | int tempbool2 = (int) true; | |
1673 | char *_kwnames[] = { "self","DrawFaded","Redraw", NULL }; | |
1674 | ||
1675 | self = self; | |
1676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxLEDNumberCtrl_SetDrawFaded",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
1677 | return NULL; | |
1678 | if (_argo0) { | |
1679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLEDNumberCtrl_p")) { | |
1681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLEDNumberCtrl_SetDrawFaded. Expected _wxLEDNumberCtrl_p."); | |
1682 | return NULL; | |
1683 | } | |
1684 | } | |
1685 | _arg1 = (bool ) tempbool1; | |
1686 | _arg2 = (bool ) tempbool2; | |
1687 | { | |
4268f798 | 1688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1689 | wxLEDNumberCtrl_SetDrawFaded(_arg0,_arg1,_arg2); |
950e7faf | 1690 | |
4268f798 RD |
1691 | wxPyEndAllowThreads(__tstate); |
1692 | if (PyErr_Occurred()) return NULL; | |
950e7faf RD |
1693 | } Py_INCREF(Py_None); |
1694 | _resultobj = Py_None; | |
1695 | return _resultobj; | |
1696 | } | |
1697 | ||
1698 | #define wxLEDNumberCtrl_SetValue(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetValue(_swigarg0,_swigarg1)) | |
1699 | static PyObject *_wrap_wxLEDNumberCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1700 | PyObject * _resultobj; | |
1701 | wxLEDNumberCtrl * _arg0; | |
1702 | wxString * _arg1; | |
1703 | bool _arg2 = (bool ) true; | |
1704 | PyObject * _argo0 = 0; | |
1705 | PyObject * _obj1 = 0; | |
1706 | int tempbool2 = (int) true; | |
1707 | char *_kwnames[] = { "self","Value","Redraw", NULL }; | |
1708 | ||
1709 | self = self; | |
1710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxLEDNumberCtrl_SetValue",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
1711 | return NULL; | |
1712 | if (_argo0) { | |
1713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLEDNumberCtrl_p")) { | |
1715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLEDNumberCtrl_SetValue. Expected _wxLEDNumberCtrl_p."); | |
1716 | return NULL; | |
1717 | } | |
1718 | } | |
1719 | { | |
c8bc7bb8 RD |
1720 | _arg1 = wxString_in_helper(_obj1); |
1721 | if (_arg1 == NULL) | |
950e7faf | 1722 | return NULL; |
950e7faf RD |
1723 | } |
1724 | _arg2 = (bool ) tempbool2; | |
1725 | { | |
4268f798 | 1726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1727 | wxLEDNumberCtrl_SetValue(_arg0,*_arg1,_arg2); |
950e7faf | 1728 | |
4268f798 RD |
1729 | wxPyEndAllowThreads(__tstate); |
1730 | if (PyErr_Occurred()) return NULL; | |
950e7faf RD |
1731 | } Py_INCREF(Py_None); |
1732 | _resultobj = Py_None; | |
1733 | { | |
1734 | if (_obj1) | |
1735 | delete _arg1; | |
1736 | } | |
1737 | return _resultobj; | |
1738 | } | |
1739 | ||
ebf4302c | 1740 | static PyMethodDef gizmoscMethods[] = { |
950e7faf RD |
1741 | { "wxLEDNumberCtrl_SetValue", (PyCFunction) _wrap_wxLEDNumberCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, |
1742 | { "wxLEDNumberCtrl_SetDrawFaded", (PyCFunction) _wrap_wxLEDNumberCtrl_SetDrawFaded, METH_VARARGS | METH_KEYWORDS }, | |
1743 | { "wxLEDNumberCtrl_SetAlignment", (PyCFunction) _wrap_wxLEDNumberCtrl_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
1744 | { "wxLEDNumberCtrl_GetValue", (PyCFunction) _wrap_wxLEDNumberCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
1745 | { "wxLEDNumberCtrl_GetDrawFaded", (PyCFunction) _wrap_wxLEDNumberCtrl_GetDrawFaded, METH_VARARGS | METH_KEYWORDS }, | |
1746 | { "wxLEDNumberCtrl_GetAlignment", (PyCFunction) _wrap_wxLEDNumberCtrl_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
1747 | { "wxLEDNumberCtrl_Create", (PyCFunction) _wrap_wxLEDNumberCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
1748 | { "new_wxPreLEDNumberCtrl", (PyCFunction) _wrap_new_wxPreLEDNumberCtrl, METH_VARARGS | METH_KEYWORDS }, | |
1749 | { "new_wxLEDNumberCtrl", (PyCFunction) _wrap_new_wxLEDNumberCtrl, METH_VARARGS | METH_KEYWORDS }, | |
611dc22c RD |
1750 | { "new_wxSplitterScrolledWindow", (PyCFunction) _wrap_new_wxSplitterScrolledWindow, METH_VARARGS | METH_KEYWORDS }, |
1751 | { "new_wxThinSplitterWindow", (PyCFunction) _wrap_new_wxThinSplitterWindow, METH_VARARGS | METH_KEYWORDS }, | |
1752 | { "wxTreeCompanionWindow_SetTreeCtrl", (PyCFunction) _wrap_wxTreeCompanionWindow_SetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
1753 | { "wxTreeCompanionWindow_GetTreeCtrl", (PyCFunction) _wrap_wxTreeCompanionWindow_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
1754 | { "wxTreeCompanionWindow__setCallbackInfo", (PyCFunction) _wrap_wxTreeCompanionWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
1755 | { "new_wxTreeCompanionWindow", (PyCFunction) _wrap_new_wxTreeCompanionWindow, METH_VARARGS | METH_KEYWORDS }, | |
1756 | { "wxRemotelyScrolledTreeCtrl_GetCompanionWindow", (PyCFunction) _wrap_wxRemotelyScrolledTreeCtrl_GetCompanionWindow, METH_VARARGS | METH_KEYWORDS }, | |
1757 | { "wxRemotelyScrolledTreeCtrl_SetCompanionWindow", (PyCFunction) _wrap_wxRemotelyScrolledTreeCtrl_SetCompanionWindow, METH_VARARGS | METH_KEYWORDS }, | |
1758 | { "wxRemotelyScrolledTreeCtrl_ScrollToLine", (PyCFunction) _wrap_wxRemotelyScrolledTreeCtrl_ScrollToLine, METH_VARARGS | METH_KEYWORDS }, | |
1759 | { "wxRemotelyScrolledTreeCtrl_GetScrolledWindow", (PyCFunction) _wrap_wxRemotelyScrolledTreeCtrl_GetScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
1760 | { "wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars", (PyCFunction) _wrap_wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
1761 | { "wxRemotelyScrolledTreeCtrl_HideVScrollbar", (PyCFunction) _wrap_wxRemotelyScrolledTreeCtrl_HideVScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
1762 | { "new_wxRemotelyScrolledTreeCtrl", (PyCFunction) _wrap_new_wxRemotelyScrolledTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
7b7ac0ab RD |
1763 | { "wxEditableListBox_GetStrings", (PyCFunction) _wrap_wxEditableListBox_GetStrings, METH_VARARGS | METH_KEYWORDS }, |
1764 | { "wxEditableListBox_SetStrings", (PyCFunction) _wrap_wxEditableListBox_SetStrings, METH_VARARGS | METH_KEYWORDS }, | |
1765 | { "new_wxEditableListBox", (PyCFunction) _wrap_new_wxEditableListBox, METH_VARARGS | METH_KEYWORDS }, | |
ebf4302c RD |
1766 | { "wxDynamicSashWindow_GetVScrollBar", (PyCFunction) _wrap_wxDynamicSashWindow_GetVScrollBar, METH_VARARGS | METH_KEYWORDS }, |
1767 | { "wxDynamicSashWindow_GetHScrollBar", (PyCFunction) _wrap_wxDynamicSashWindow_GetHScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
1768 | { "wxDynamicSashWindow_Create", (PyCFunction) _wrap_wxDynamicSashWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
1769 | { "new_wxPreDynamicSashWindow", (PyCFunction) _wrap_new_wxPreDynamicSashWindow, METH_VARARGS | METH_KEYWORDS }, | |
1770 | { "new_wxDynamicSashWindow", (PyCFunction) _wrap_new_wxDynamicSashWindow, METH_VARARGS | METH_KEYWORDS }, | |
1771 | { "new_wxDynamicSashUnifyEvent", (PyCFunction) _wrap_new_wxDynamicSashUnifyEvent, METH_VARARGS | METH_KEYWORDS }, | |
1772 | { "new_wxDynamicSashSplitEvent", (PyCFunction) _wrap_new_wxDynamicSashSplitEvent, METH_VARARGS | METH_KEYWORDS }, | |
1773 | { NULL, NULL } | |
1774 | }; | |
1775 | #ifdef __cplusplus | |
1776 | } | |
1777 | #endif | |
1778 | /* | |
1779 | * This table is used by the pointer type-checker | |
1780 | */ | |
1781 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1782 | { "_wxEvent","_wxDynamicSashUnifyEvent",SwigwxDynamicSashUnifyEventTowxEvent}, | |
1783 | { "_wxEvent","_wxDynamicSashSplitEvent",SwigwxDynamicSashSplitEventTowxEvent}, | |
1784 | { "_signed_long","_long",0}, | |
1785 | { "_wxPrintQuality","_wxCoord",0}, | |
1786 | { "_wxPrintQuality","_int",0}, | |
1787 | { "_wxPrintQuality","_signed_int",0}, | |
1788 | { "_wxPrintQuality","_unsigned_int",0}, | |
1789 | { "_wxPrintQuality","_wxWindowID",0}, | |
1790 | { "_wxPrintQuality","_uint",0}, | |
1791 | { "_wxPrintQuality","_EBool",0}, | |
1792 | { "_wxPrintQuality","_size_t",0}, | |
1793 | { "_wxPrintQuality","_time_t",0}, | |
611dc22c | 1794 | { "_wxPyTreeCtrl","_wxRemotelyScrolledTreeCtrl",SwigwxRemotelyScrolledTreeCtrlTowxPyTreeCtrl}, |
ebf4302c RD |
1795 | { "_byte","_unsigned_char",0}, |
1796 | { "_long","_unsigned_long",0}, | |
1797 | { "_long","_signed_long",0}, | |
1798 | { "_size_t","_wxCoord",0}, | |
1799 | { "_size_t","_wxPrintQuality",0}, | |
1800 | { "_size_t","_time_t",0}, | |
1801 | { "_size_t","_unsigned_int",0}, | |
1802 | { "_size_t","_int",0}, | |
1803 | { "_size_t","_wxWindowID",0}, | |
1804 | { "_size_t","_uint",0}, | |
611dc22c | 1805 | { "_wxPanel","_wxSplitterScrolledWindow",SwigwxSplitterScrolledWindowTowxPanel}, |
7b7ac0ab | 1806 | { "_wxPanel","_wxEditableListBox",SwigwxEditableListBoxTowxPanel}, |
ebf4302c RD |
1807 | { "_uint","_wxCoord",0}, |
1808 | { "_uint","_wxPrintQuality",0}, | |
1809 | { "_uint","_time_t",0}, | |
1810 | { "_uint","_size_t",0}, | |
1811 | { "_uint","_unsigned_int",0}, | |
1812 | { "_uint","_int",0}, | |
1813 | { "_uint","_wxWindowID",0}, | |
1814 | { "_wxChar","_char",0}, | |
1815 | { "_wxCommandEvent","_wxDynamicSashUnifyEvent",SwigwxDynamicSashUnifyEventTowxCommandEvent}, | |
1816 | { "_wxCommandEvent","_wxDynamicSashSplitEvent",SwigwxDynamicSashSplitEventTowxCommandEvent}, | |
1817 | { "_char","_wxChar",0}, | |
1818 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, | |
1819 | { "_EBool","_wxCoord",0}, | |
1820 | { "_EBool","_wxPrintQuality",0}, | |
1821 | { "_EBool","_signed_int",0}, | |
1822 | { "_EBool","_int",0}, | |
1823 | { "_EBool","_wxWindowID",0}, | |
1824 | { "_unsigned_long","_long",0}, | |
1825 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, | |
1826 | { "_signed_int","_wxCoord",0}, | |
1827 | { "_signed_int","_wxPrintQuality",0}, | |
1828 | { "_signed_int","_EBool",0}, | |
1829 | { "_signed_int","_wxWindowID",0}, | |
1830 | { "_signed_int","_int",0}, | |
1831 | { "_WXTYPE","_wxDateTime_t",0}, | |
1832 | { "_WXTYPE","_short",0}, | |
1833 | { "_WXTYPE","_signed_short",0}, | |
1834 | { "_WXTYPE","_unsigned_short",0}, | |
1835 | { "_unsigned_short","_wxDateTime_t",0}, | |
1836 | { "_unsigned_short","_WXTYPE",0}, | |
1837 | { "_unsigned_short","_short",0}, | |
611dc22c | 1838 | { "_wxSplitterWindow","_wxThinSplitterWindow",SwigwxThinSplitterWindowTowxSplitterWindow}, |
950e7faf | 1839 | { "_wxObject","_wxLEDNumberCtrl",SwigwxLEDNumberCtrlTowxObject}, |
611dc22c RD |
1840 | { "_wxObject","_wxSplitterScrolledWindow",SwigwxSplitterScrolledWindowTowxObject}, |
1841 | { "_wxObject","_wxThinSplitterWindow",SwigwxThinSplitterWindowTowxObject}, | |
1842 | { "_wxObject","_wxPyTreeCompanionWindow",SwigwxPyTreeCompanionWindowTowxObject}, | |
1843 | { "_wxObject","_wxRemotelyScrolledTreeCtrl",SwigwxRemotelyScrolledTreeCtrlTowxObject}, | |
7b7ac0ab | 1844 | { "_wxObject","_wxEditableListBox",SwigwxEditableListBoxTowxObject}, |
ebf4302c RD |
1845 | { "_wxObject","_wxDynamicSashWindow",SwigwxDynamicSashWindowTowxObject}, |
1846 | { "_wxObject","_wxDynamicSashUnifyEvent",SwigwxDynamicSashUnifyEventTowxObject}, | |
1847 | { "_wxObject","_wxDynamicSashSplitEvent",SwigwxDynamicSashSplitEventTowxObject}, | |
1848 | { "_signed_short","_WXTYPE",0}, | |
1849 | { "_signed_short","_short",0}, | |
611dc22c | 1850 | { "_wxScrolledWindow","_wxSplitterScrolledWindow",SwigwxSplitterScrolledWindowTowxScrolledWindow}, |
ebf4302c | 1851 | { "_unsigned_char","_byte",0}, |
950e7faf | 1852 | { "_wxControl","_wxLEDNumberCtrl",SwigwxLEDNumberCtrlTowxControl}, |
611dc22c | 1853 | { "_wxControl","_wxRemotelyScrolledTreeCtrl",SwigwxRemotelyScrolledTreeCtrlTowxControl}, |
ebf4302c RD |
1854 | { "_unsigned_int","_wxCoord",0}, |
1855 | { "_unsigned_int","_wxPrintQuality",0}, | |
1856 | { "_unsigned_int","_time_t",0}, | |
1857 | { "_unsigned_int","_size_t",0}, | |
1858 | { "_unsigned_int","_uint",0}, | |
1859 | { "_unsigned_int","_wxWindowID",0}, | |
1860 | { "_unsigned_int","_int",0}, | |
1861 | { "_short","_wxDateTime_t",0}, | |
1862 | { "_short","_WXTYPE",0}, | |
1863 | { "_short","_unsigned_short",0}, | |
1864 | { "_short","_signed_short",0}, | |
1865 | { "_wxWindowID","_wxCoord",0}, | |
1866 | { "_wxWindowID","_wxPrintQuality",0}, | |
1867 | { "_wxWindowID","_time_t",0}, | |
1868 | { "_wxWindowID","_size_t",0}, | |
1869 | { "_wxWindowID","_EBool",0}, | |
1870 | { "_wxWindowID","_uint",0}, | |
1871 | { "_wxWindowID","_int",0}, | |
1872 | { "_wxWindowID","_signed_int",0}, | |
1873 | { "_wxWindowID","_unsigned_int",0}, | |
1874 | { "_int","_wxCoord",0}, | |
1875 | { "_int","_wxPrintQuality",0}, | |
1876 | { "_int","_time_t",0}, | |
1877 | { "_int","_size_t",0}, | |
1878 | { "_int","_EBool",0}, | |
1879 | { "_int","_uint",0}, | |
1880 | { "_int","_wxWindowID",0}, | |
1881 | { "_int","_unsigned_int",0}, | |
1882 | { "_int","_signed_int",0}, | |
1883 | { "_wxDateTime_t","_unsigned_short",0}, | |
1884 | { "_wxDateTime_t","_short",0}, | |
1885 | { "_wxDateTime_t","_WXTYPE",0}, | |
1886 | { "_time_t","_wxCoord",0}, | |
1887 | { "_time_t","_wxPrintQuality",0}, | |
1888 | { "_time_t","_unsigned_int",0}, | |
1889 | { "_time_t","_int",0}, | |
1890 | { "_time_t","_wxWindowID",0}, | |
1891 | { "_time_t","_uint",0}, | |
1892 | { "_time_t","_size_t",0}, | |
1893 | { "_wxCoord","_int",0}, | |
1894 | { "_wxCoord","_signed_int",0}, | |
1895 | { "_wxCoord","_unsigned_int",0}, | |
1896 | { "_wxCoord","_wxWindowID",0}, | |
1897 | { "_wxCoord","_uint",0}, | |
1898 | { "_wxCoord","_EBool",0}, | |
1899 | { "_wxCoord","_size_t",0}, | |
1900 | { "_wxCoord","_time_t",0}, | |
1901 | { "_wxCoord","_wxPrintQuality",0}, | |
950e7faf | 1902 | { "_wxEvtHandler","_wxLEDNumberCtrl",SwigwxLEDNumberCtrlTowxEvtHandler}, |
611dc22c RD |
1903 | { "_wxEvtHandler","_wxSplitterScrolledWindow",SwigwxSplitterScrolledWindowTowxEvtHandler}, |
1904 | { "_wxEvtHandler","_wxThinSplitterWindow",SwigwxThinSplitterWindowTowxEvtHandler}, | |
1905 | { "_wxEvtHandler","_wxPyTreeCompanionWindow",SwigwxPyTreeCompanionWindowTowxEvtHandler}, | |
1906 | { "_wxEvtHandler","_wxRemotelyScrolledTreeCtrl",SwigwxRemotelyScrolledTreeCtrlTowxEvtHandler}, | |
7b7ac0ab | 1907 | { "_wxEvtHandler","_wxEditableListBox",SwigwxEditableListBoxTowxEvtHandler}, |
ebf4302c | 1908 | { "_wxEvtHandler","_wxDynamicSashWindow",SwigwxDynamicSashWindowTowxEvtHandler}, |
950e7faf | 1909 | { "_wxWindow","_wxLEDNumberCtrl",SwigwxLEDNumberCtrlTowxWindow}, |
611dc22c RD |
1910 | { "_wxWindow","_wxSplitterScrolledWindow",SwigwxSplitterScrolledWindowTowxWindow}, |
1911 | { "_wxWindow","_wxThinSplitterWindow",SwigwxThinSplitterWindowTowxWindow}, | |
1912 | { "_wxWindow","_wxPyTreeCompanionWindow",SwigwxPyTreeCompanionWindowTowxWindow}, | |
1913 | { "_wxWindow","_wxRemotelyScrolledTreeCtrl",SwigwxRemotelyScrolledTreeCtrlTowxWindow}, | |
7b7ac0ab | 1914 | { "_wxWindow","_wxEditableListBox",SwigwxEditableListBoxTowxWindow}, |
ebf4302c RD |
1915 | { "_wxWindow","_wxDynamicSashWindow",SwigwxDynamicSashWindowTowxWindow}, |
1916 | {0,0,0}}; | |
1917 | ||
1918 | static PyObject *SWIG_globals; | |
1919 | #ifdef __cplusplus | |
1920 | extern "C" | |
1921 | #endif | |
1922 | SWIGEXPORT(void) initgizmosc() { | |
1923 | PyObject *m, *d; | |
1924 | SWIG_globals = SWIG_newvarlink(); | |
1925 | m = Py_InitModule("gizmosc", gizmoscMethods); | |
1926 | d = PyModule_GetDict(m); | |
1927 | PyDict_SetItemString(d,"wxEVT_DYNAMIC_SASH_SPLIT", PyInt_FromLong((long) wxEVT_DYNAMIC_SASH_SPLIT)); | |
1928 | PyDict_SetItemString(d,"wxEVT_DYNAMIC_SASH_UNIFY", PyInt_FromLong((long) wxEVT_DYNAMIC_SASH_UNIFY)); | |
1929 | PyDict_SetItemString(d,"wxDS_MANAGE_SCROLLBARS", PyInt_FromLong((long) wxDS_MANAGE_SCROLLBARS)); | |
1930 | PyDict_SetItemString(d,"wxDS_DRAG_CORNER", PyInt_FromLong((long) wxDS_DRAG_CORNER)); | |
6187ec8f RD |
1931 | PyDict_SetItemString(d,"wxEL_ALLOW_NEW", PyInt_FromLong((long) wxEL_ALLOW_NEW)); |
1932 | PyDict_SetItemString(d,"wxEL_ALLOW_EDIT", PyInt_FromLong((long) wxEL_ALLOW_EDIT)); | |
1933 | PyDict_SetItemString(d,"wxEL_ALLOW_DELETE", PyInt_FromLong((long) wxEL_ALLOW_DELETE)); | |
950e7faf RD |
1934 | PyDict_SetItemString(d,"wxLED_ALIGN_LEFT", PyInt_FromLong((long) wxLED_ALIGN_LEFT)); |
1935 | PyDict_SetItemString(d,"wxLED_ALIGN_RIGHT", PyInt_FromLong((long) wxLED_ALIGN_RIGHT)); | |
1936 | PyDict_SetItemString(d,"wxLED_ALIGN_CENTER", PyInt_FromLong((long) wxLED_ALIGN_CENTER)); | |
1937 | PyDict_SetItemString(d,"wxLED_ALIGN_MASK", PyInt_FromLong((long) wxLED_ALIGN_MASK)); | |
1938 | PyDict_SetItemString(d,"wxLED_DRAW_FADED", PyInt_FromLong((long) wxLED_DRAW_FADED)); | |
ebf4302c RD |
1939 | |
1940 | ||
1941 | wxClassInfo::CleanUpClasses(); | |
1942 | wxClassInfo::InitializeClasses(); | |
1943 | ||
611dc22c | 1944 | wxPyPtrTypeMap_Add("wxTreeCompanionWindow", "wxPyTreeCompanionWindow"); |
ebf4302c RD |
1945 | { |
1946 | int i; | |
1947 | for (i = 0; _swig_mapping[i].n1; i++) | |
1948 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
1949 | } | |
1950 | } |