]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.20 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
48 | ||
49 | ||
50 | /*********************************************************************** | |
51 | * common.swg for wxPython | |
52 | * | |
53 | * Include only the function prototypes and such from SWIG's common.swg, | |
54 | * but not the runtime functions themselves. This helps keep the | |
55 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
56 | * anyway. | |
57 | * | |
58 | ************************************************************************/ | |
59 | ||
60 | #include <string.h> | |
61 | ||
62 | #if defined(_WIN32) || defined(__WIN32__) | |
63 | # if defined(_MSC_VER) | |
64 | # if defined(STATIC_LINKED) | |
65 | # define SWIGEXPORT(a) a | |
66 | # define SWIGIMPORT(a) extern a | |
67 | # else | |
68 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
69 | # define SWIGIMPORT(a) extern a | |
70 | # endif | |
71 | # else | |
72 | # if defined(__BORLANDC__) | |
73 | # define SWIGEXPORT(a) a _export | |
74 | # define SWIGIMPORT(a) a _export | |
75 | # else | |
76 | # define SWIGEXPORT(a) a | |
77 | # define SWIGIMPORT(a) a | |
78 | # endif | |
79 | # endif | |
80 | #else | |
81 | # define SWIGEXPORT(a) a | |
82 | # define SWIGIMPORT(a) a | |
83 | #endif | |
84 | ||
85 | #ifdef SWIG_GLOBAL | |
86 | #define SWIGRUNTIME(a) SWIGEXPORT(a) | |
87 | #else | |
88 | #define SWIGRUNTIME(a) static a | |
89 | #endif | |
90 | ||
91 | ||
92 | #ifdef __cplusplus | |
93 | extern "C" { | |
94 | #endif | |
95 | ||
96 | typedef void *(*swig_converter_func)(void *); | |
97 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
98 | ||
99 | typedef struct swig_type_info { | |
100 | const char *name; | |
101 | swig_converter_func converter; | |
102 | const char *str; | |
103 | void *clientdata; | |
104 | swig_dycast_func dcast; | |
105 | struct swig_type_info *next; | |
106 | struct swig_type_info *prev; | |
107 | } swig_type_info; | |
108 | ||
109 | ||
110 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
112 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
113 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
114 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
115 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
116 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
117 | ||
118 | ||
119 | #ifdef __cplusplus | |
120 | } | |
121 | #endif | |
122 | ||
123 | /*********************************************************************** | |
124 | * pyrun.swg for wxPython | |
125 | * | |
126 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
127 | * but not the runtime functions themselves. This helps keep the | |
128 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
129 | * anyway. | |
130 | * | |
131 | ************************************************************************/ | |
132 | ||
133 | ||
134 | #include "Python.h" | |
135 | ||
136 | #ifdef __cplusplus | |
137 | extern "C" { | |
138 | #endif | |
139 | ||
140 | #define SWIG_PY_INT 1 | |
141 | #define SWIG_PY_FLOAT 2 | |
142 | #define SWIG_PY_STRING 3 | |
143 | #define SWIG_PY_POINTER 4 | |
144 | #define SWIG_PY_BINARY 5 | |
145 | ||
146 | /* Flags for pointer conversion */ | |
147 | ||
148 | #define SWIG_POINTER_EXCEPTION 0x1 | |
149 | #define SWIG_POINTER_DISOWN 0x2 | |
150 | ||
151 | /* Exception handling in wrappers */ | |
152 | #define SWIG_fail goto fail | |
153 | ||
154 | /* Constant information structure */ | |
155 | typedef struct swig_const_info { | |
156 | int type; | |
157 | char *name; | |
158 | long lvalue; | |
159 | double dvalue; | |
160 | void *pvalue; | |
161 | swig_type_info **ptype; | |
162 | } swig_const_info; | |
163 | ||
164 | ||
165 | ||
166 | /* Common SWIG API */ | |
167 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
168 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
169 | #define SWIG_NewPointerObj(p, type, flags) \ | |
170 | SWIG_Python_NewPointerObj(p, type, flags) | |
171 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
172 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
173 | ||
174 | /* Python-specific SWIG API */ | |
175 | #define SWIG_newvarlink() \ | |
176 | SWIG_Python_newvarlink() | |
177 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
178 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
179 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
180 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
181 | #define SWIG_PackData(c, ptr, sz) \ | |
182 | SWIG_Python_PackData(c, ptr, sz) | |
183 | #define SWIG_UnpackData(c, ptr, sz) \ | |
184 | SWIG_Python_UnpackData(c, ptr, sz) | |
185 | #define SWIG_NewPackedObj(ptr, sz, type) \ | |
186 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
187 | #define SWIG_InstallConstants(d, constants) \ | |
188 | SWIG_Python_InstallConstants(d, constants) | |
189 | ||
190 | ||
191 | SWIGEXPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); | |
192 | SWIGEXPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
193 | SWIGEXPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
194 | ||
195 | SWIGEXPORT(PyObject *) SWIG_Python_newvarlink(void); | |
196 | SWIGEXPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
197 | SWIGEXPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
198 | SWIGEXPORT(char *) SWIG_Python_PackData(char *c, void *, int); | |
199 | SWIGEXPORT(char *) SWIG_Python_UnpackData(char *c, void *, int); | |
200 | SWIGEXPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
201 | SWIGEXPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
202 | ||
203 | ||
204 | /* Contract support */ | |
205 | ||
206 | #define SWIG_preassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else | |
207 | #define SWIG_postassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else | |
208 | ||
209 | #define SWIG_inherit_preassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else | |
210 | #define SWIG_inherit_postassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else | |
211 | ||
212 | #define SWIG_invariant(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else | |
213 | #define SWIG_invariant_begin(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else | |
214 | #define SWIG_invariant_end(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else | |
215 | ||
216 | #ifdef __cplusplus | |
217 | } | |
218 | #endif | |
219 | ||
220 | ||
221 | ||
222 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
223 | ||
224 | #define SWIGTYPE_p_wxWindow swig_types[0] | |
225 | #define SWIGTYPE_p_wxObject swig_types[1] | |
226 | #define SWIGTYPE_p_wxEvtHandler swig_types[2] | |
227 | #define SWIGTYPE_p_wxPalette swig_types[3] | |
228 | #define SWIGTYPE_p_wxGLCanvas swig_types[4] | |
229 | #define SWIGTYPE_p_wxString swig_types[5] | |
230 | #define SWIGTYPE_p_wxGLContext swig_types[6] | |
231 | #define SWIGTYPE_p_int swig_types[7] | |
232 | static swig_type_info *swig_types[9]; | |
233 | ||
234 | /* -------- TYPES TABLE (END) -------- */ | |
235 | ||
236 | ||
237 | /*----------------------------------------------- | |
238 | @(target):= _glcanvas.so | |
239 | ------------------------------------------------*/ | |
240 | #define SWIG_init init_glcanvas | |
241 | ||
242 | #define SWIG_name "_glcanvas" | |
243 | ||
244 | #include "wx/wxPython/wxPython.h" | |
245 | #include "wx/wxPython/pyclasses.h" | |
246 | ||
247 | #include <wx/glcanvas.h> | |
248 | ||
249 | static const wxString wxPyGLCanvasNameStr(wxT("GLCanvas")); | |
250 | static const wxString wxPyEmptyString(wxT("")); | |
251 | ||
252 | #ifdef __cplusplus | |
253 | extern "C" { | |
254 | #endif | |
255 | static PyObject *_wrap_new_GLContext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
256 | PyObject *resultobj; | |
257 | bool arg1 ; | |
258 | wxGLCanvas *arg2 = (wxGLCanvas *) 0 ; | |
259 | wxPalette const &arg3_defvalue = wxNullPalette ; | |
260 | wxPalette *arg3 = (wxPalette *) &arg3_defvalue ; | |
261 | wxGLContext *arg4 = (wxGLContext *) NULL ; | |
262 | wxGLContext *result; | |
263 | PyObject * obj0 = 0 ; | |
264 | PyObject * obj1 = 0 ; | |
265 | PyObject * obj2 = 0 ; | |
266 | PyObject * obj3 = 0 ; | |
267 | char *kwnames[] = { | |
268 | (char *) "isRGB",(char *) "win",(char *) "palette",(char *) "other", NULL | |
269 | }; | |
270 | ||
271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_GLContext",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
272 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
273 | if (PyErr_Occurred()) SWIG_fail; | |
274 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGLCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
275 | if (obj2) { | |
276 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
277 | if (arg3 == NULL) { | |
278 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
279 | } | |
280 | } | |
281 | if (obj3) { | |
282 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
283 | } | |
284 | { | |
285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
286 | result = (wxGLContext *)new wxGLContext(arg1,arg2,(wxPalette const &)*arg3,(wxGLContext const *)arg4); | |
287 | ||
288 | wxPyEndAllowThreads(__tstate); | |
289 | if (PyErr_Occurred()) SWIG_fail; | |
290 | } | |
291 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGLContext, 1); | |
292 | return resultobj; | |
293 | fail: | |
294 | return NULL; | |
295 | } | |
296 | ||
297 | ||
298 | static PyObject *_wrap_delete_GLContext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
299 | PyObject *resultobj; | |
300 | wxGLContext *arg1 = (wxGLContext *) 0 ; | |
301 | PyObject * obj0 = 0 ; | |
302 | char *kwnames[] = { | |
303 | (char *) "self", NULL | |
304 | }; | |
305 | ||
306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GLContext",kwnames,&obj0)) goto fail; | |
307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
308 | { | |
309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
310 | delete arg1; | |
311 | ||
312 | wxPyEndAllowThreads(__tstate); | |
313 | if (PyErr_Occurred()) SWIG_fail; | |
314 | } | |
315 | Py_INCREF(Py_None); resultobj = Py_None; | |
316 | return resultobj; | |
317 | fail: | |
318 | return NULL; | |
319 | } | |
320 | ||
321 | ||
322 | static PyObject *_wrap_GLContext_SetCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
323 | PyObject *resultobj; | |
324 | wxGLContext *arg1 = (wxGLContext *) 0 ; | |
325 | PyObject * obj0 = 0 ; | |
326 | char *kwnames[] = { | |
327 | (char *) "self", NULL | |
328 | }; | |
329 | ||
330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_SetCurrent",kwnames,&obj0)) goto fail; | |
331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
332 | { | |
333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
334 | (arg1)->SetCurrent(); | |
335 | ||
336 | wxPyEndAllowThreads(__tstate); | |
337 | if (PyErr_Occurred()) SWIG_fail; | |
338 | } | |
339 | Py_INCREF(Py_None); resultobj = Py_None; | |
340 | return resultobj; | |
341 | fail: | |
342 | return NULL; | |
343 | } | |
344 | ||
345 | ||
346 | static PyObject *_wrap_GLContext_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
347 | PyObject *resultobj; | |
348 | wxGLContext *arg1 = (wxGLContext *) 0 ; | |
349 | wxString *arg2 = 0 ; | |
e811c8ce | 350 | bool temp2 = False ; |
d14a1e28 RD |
351 | PyObject * obj0 = 0 ; |
352 | PyObject * obj1 = 0 ; | |
353 | char *kwnames[] = { | |
354 | (char *) "self",(char *) "colour", NULL | |
355 | }; | |
356 | ||
357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GLContext_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
359 | { | |
360 | arg2 = wxString_in_helper(obj1); | |
361 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 362 | temp2 = True; |
d14a1e28 RD |
363 | } |
364 | { | |
365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
366 | (arg1)->SetColour((wxString const &)*arg2); | |
367 | ||
368 | wxPyEndAllowThreads(__tstate); | |
369 | if (PyErr_Occurred()) SWIG_fail; | |
370 | } | |
371 | Py_INCREF(Py_None); resultobj = Py_None; | |
372 | { | |
373 | if (temp2) | |
374 | delete arg2; | |
375 | } | |
376 | return resultobj; | |
377 | fail: | |
378 | { | |
379 | if (temp2) | |
380 | delete arg2; | |
381 | } | |
382 | return NULL; | |
383 | } | |
384 | ||
385 | ||
386 | static PyObject *_wrap_GLContext_SwapBuffers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
387 | PyObject *resultobj; | |
388 | wxGLContext *arg1 = (wxGLContext *) 0 ; | |
389 | PyObject * obj0 = 0 ; | |
390 | char *kwnames[] = { | |
391 | (char *) "self", NULL | |
392 | }; | |
393 | ||
394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_SwapBuffers",kwnames,&obj0)) goto fail; | |
395 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
396 | { | |
397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
398 | (arg1)->SwapBuffers(); | |
399 | ||
400 | wxPyEndAllowThreads(__tstate); | |
401 | if (PyErr_Occurred()) SWIG_fail; | |
402 | } | |
403 | Py_INCREF(Py_None); resultobj = Py_None; | |
404 | return resultobj; | |
405 | fail: | |
406 | return NULL; | |
407 | } | |
408 | ||
409 | ||
410 | static PyObject *_wrap_GLContext_SetupPixelFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
411 | PyObject *resultobj; | |
412 | wxGLContext *arg1 = (wxGLContext *) 0 ; | |
413 | PyObject * obj0 = 0 ; | |
414 | char *kwnames[] = { | |
415 | (char *) "self", NULL | |
416 | }; | |
417 | ||
418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_SetupPixelFormat",kwnames,&obj0)) goto fail; | |
419 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
420 | { | |
421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
422 | (arg1)->SetupPixelFormat(); | |
423 | ||
424 | wxPyEndAllowThreads(__tstate); | |
425 | if (PyErr_Occurred()) SWIG_fail; | |
426 | } | |
427 | Py_INCREF(Py_None); resultobj = Py_None; | |
428 | return resultobj; | |
429 | fail: | |
430 | return NULL; | |
431 | } | |
432 | ||
433 | ||
434 | static PyObject *_wrap_GLContext_SetupPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
435 | PyObject *resultobj; | |
436 | wxGLContext *arg1 = (wxGLContext *) 0 ; | |
437 | wxPalette *arg2 = 0 ; | |
438 | PyObject * obj0 = 0 ; | |
439 | PyObject * obj1 = 0 ; | |
440 | char *kwnames[] = { | |
441 | (char *) "self",(char *) "palette", NULL | |
442 | }; | |
443 | ||
444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GLContext_SetupPalette",kwnames,&obj0,&obj1)) goto fail; | |
445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
446 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
447 | if (arg2 == NULL) { | |
448 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
449 | } | |
450 | { | |
451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
452 | (arg1)->SetupPalette((wxPalette const &)*arg2); | |
453 | ||
454 | wxPyEndAllowThreads(__tstate); | |
455 | if (PyErr_Occurred()) SWIG_fail; | |
456 | } | |
457 | Py_INCREF(Py_None); resultobj = Py_None; | |
458 | return resultobj; | |
459 | fail: | |
460 | return NULL; | |
461 | } | |
462 | ||
463 | ||
464 | static PyObject *_wrap_GLContext_CreateDefaultPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
465 | PyObject *resultobj; | |
466 | wxGLContext *arg1 = (wxGLContext *) 0 ; | |
467 | wxPalette result; | |
468 | PyObject * obj0 = 0 ; | |
469 | char *kwnames[] = { | |
470 | (char *) "self", NULL | |
471 | }; | |
472 | ||
473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_CreateDefaultPalette",kwnames,&obj0)) goto fail; | |
474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
475 | { | |
476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
477 | result = (arg1)->CreateDefaultPalette(); | |
478 | ||
479 | wxPyEndAllowThreads(__tstate); | |
480 | if (PyErr_Occurred()) SWIG_fail; | |
481 | } | |
482 | { | |
483 | wxPalette * resultptr; | |
484 | resultptr = new wxPalette((wxPalette &) result); | |
485 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPalette, 1); | |
486 | } | |
487 | return resultobj; | |
488 | fail: | |
489 | return NULL; | |
490 | } | |
491 | ||
492 | ||
493 | static PyObject *_wrap_GLContext_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
494 | PyObject *resultobj; | |
495 | wxGLContext *arg1 = (wxGLContext *) 0 ; | |
496 | wxPalette *result; | |
497 | PyObject * obj0 = 0 ; | |
498 | char *kwnames[] = { | |
499 | (char *) "self", NULL | |
500 | }; | |
501 | ||
502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_GetPalette",kwnames,&obj0)) goto fail; | |
503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
504 | { | |
505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
506 | result = (wxPalette *)(arg1)->GetPalette(); | |
507 | ||
508 | wxPyEndAllowThreads(__tstate); | |
509 | if (PyErr_Occurred()) SWIG_fail; | |
510 | } | |
511 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 0); | |
512 | return resultobj; | |
513 | fail: | |
514 | return NULL; | |
515 | } | |
516 | ||
517 | ||
518 | static PyObject *_wrap_GLContext_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
519 | PyObject *resultobj; | |
520 | wxGLContext *arg1 = (wxGLContext *) 0 ; | |
521 | wxWindow *result; | |
522 | PyObject * obj0 = 0 ; | |
523 | char *kwnames[] = { | |
524 | (char *) "self", NULL | |
525 | }; | |
526 | ||
527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_GetWindow",kwnames,&obj0)) goto fail; | |
528 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
529 | { | |
530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
531 | result = (wxWindow *)(arg1)->GetWindow(); | |
532 | ||
533 | wxPyEndAllowThreads(__tstate); | |
534 | if (PyErr_Occurred()) SWIG_fail; | |
535 | } | |
536 | { | |
537 | resultobj = wxPyMake_wxObject(result); | |
538 | } | |
539 | return resultobj; | |
540 | fail: | |
541 | return NULL; | |
542 | } | |
543 | ||
544 | ||
545 | static PyObject * GLContext_swigregister(PyObject *self, PyObject *args) { | |
546 | PyObject *obj; | |
547 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
548 | SWIG_TypeClientData(SWIGTYPE_p_wxGLContext, obj); | |
549 | Py_INCREF(obj); | |
550 | return Py_BuildValue((char *)""); | |
551 | } | |
552 | static PyObject *_wrap_new_GLCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
553 | PyObject *resultobj; | |
554 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 555 | int arg2 = (int) -1 ; |
d14a1e28 RD |
556 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
557 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
558 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
559 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
560 | long arg5 = (long) 0 ; | |
561 | wxString const &arg6_defvalue = wxPyGLCanvasNameStr ; | |
562 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
563 | int *arg7 = (int *) NULL ; | |
564 | wxPalette const &arg8_defvalue = wxNullPalette ; | |
565 | wxPalette *arg8 = (wxPalette *) &arg8_defvalue ; | |
566 | wxGLCanvas *result; | |
567 | wxPoint temp3 ; | |
568 | wxSize temp4 ; | |
e811c8ce | 569 | bool temp6 = False ; |
d14a1e28 RD |
570 | int *temp7 ; |
571 | PyObject * obj0 = 0 ; | |
572 | PyObject * obj2 = 0 ; | |
573 | PyObject * obj3 = 0 ; | |
574 | PyObject * obj5 = 0 ; | |
575 | PyObject * obj6 = 0 ; | |
576 | PyObject * obj7 = 0 ; | |
577 | char *kwnames[] = { | |
578 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name",(char *) "attribList",(char *) "palette", NULL | |
579 | }; | |
580 | ||
581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlOOO:new_GLCanvas",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6,&obj7)) goto fail; | |
582 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
583 | if (obj2) { | |
584 | { | |
585 | arg3 = &temp3; | |
586 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
587 | } | |
588 | } | |
589 | if (obj3) { | |
590 | { | |
591 | arg4 = &temp4; | |
592 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
593 | } | |
594 | } | |
595 | if (obj5) { | |
596 | { | |
597 | arg6 = wxString_in_helper(obj5); | |
598 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 599 | temp6 = True; |
d14a1e28 RD |
600 | } |
601 | } | |
602 | if (obj6) { | |
603 | { | |
604 | int i; | |
605 | if (PySequence_Check(obj6)) { | |
606 | int size = PyObject_Length(obj6); | |
607 | temp7 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int)); | |
608 | for (i = 0; i < size; i++) { | |
609 | temp7[i] = PyInt_AsLong(PySequence_GetItem(obj6, i)); | |
610 | } | |
611 | temp7[size] = 0; | |
612 | arg7 = temp7; | |
613 | } | |
614 | } | |
615 | } | |
616 | if (obj7) { | |
617 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
618 | if (arg8 == NULL) { | |
619 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
620 | } | |
621 | } | |
622 | { | |
623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
624 | result = (wxGLCanvas *)new wxGLCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6,arg7,(wxPalette const &)*arg8); | |
625 | ||
626 | wxPyEndAllowThreads(__tstate); | |
627 | if (PyErr_Occurred()) SWIG_fail; | |
628 | } | |
629 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGLCanvas, 1); | |
630 | { | |
631 | if (temp6) | |
632 | delete arg6; | |
633 | } | |
634 | { | |
635 | delete [] arg7; | |
636 | } | |
637 | return resultobj; | |
638 | fail: | |
639 | { | |
640 | if (temp6) | |
641 | delete arg6; | |
642 | } | |
643 | { | |
644 | delete [] arg7; | |
645 | } | |
646 | return NULL; | |
647 | } | |
648 | ||
649 | ||
650 | static PyObject *_wrap_new_wxGLCanvasWithContext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
651 | PyObject *resultobj; | |
652 | wxWindow *arg1 = (wxWindow *) 0 ; | |
653 | wxGLContext *arg2 = (wxGLContext *) NULL ; | |
e811c8ce | 654 | int arg3 = (int) -1 ; |
d14a1e28 RD |
655 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
656 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
657 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
658 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
659 | long arg6 = (long) 0 ; | |
660 | wxString const &arg7_defvalue = wxPyGLCanvasNameStr ; | |
661 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
662 | int *arg8 = (int *) NULL ; | |
663 | wxPalette const &arg9_defvalue = wxNullPalette ; | |
664 | wxPalette *arg9 = (wxPalette *) &arg9_defvalue ; | |
665 | wxGLCanvas *result; | |
666 | wxPoint temp4 ; | |
667 | wxSize temp5 ; | |
e811c8ce | 668 | bool temp7 = False ; |
d14a1e28 RD |
669 | int *temp8 ; |
670 | PyObject * obj0 = 0 ; | |
671 | PyObject * obj1 = 0 ; | |
672 | PyObject * obj3 = 0 ; | |
673 | PyObject * obj4 = 0 ; | |
674 | PyObject * obj6 = 0 ; | |
675 | PyObject * obj7 = 0 ; | |
676 | PyObject * obj8 = 0 ; | |
677 | char *kwnames[] = { | |
678 | (char *) "parent",(char *) "shared",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name",(char *) "attribList",(char *) "palette", NULL | |
679 | }; | |
680 | ||
681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OiOOlOOO:new_wxGLCanvasWithContext",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7,&obj8)) goto fail; | |
682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
683 | if (obj1) { | |
684 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
685 | } | |
686 | if (obj3) { | |
687 | { | |
688 | arg4 = &temp4; | |
689 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
690 | } | |
691 | } | |
692 | if (obj4) { | |
693 | { | |
694 | arg5 = &temp5; | |
695 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
696 | } | |
697 | } | |
698 | if (obj6) { | |
699 | { | |
700 | arg7 = wxString_in_helper(obj6); | |
701 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 702 | temp7 = True; |
d14a1e28 RD |
703 | } |
704 | } | |
705 | if (obj7) { | |
706 | { | |
707 | int i; | |
708 | if (PySequence_Check(obj7)) { | |
709 | int size = PyObject_Length(obj7); | |
710 | temp8 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int)); | |
711 | for (i = 0; i < size; i++) { | |
712 | temp8[i] = PyInt_AsLong(PySequence_GetItem(obj7, i)); | |
713 | } | |
714 | temp8[size] = 0; | |
715 | arg8 = temp8; | |
716 | } | |
717 | } | |
718 | } | |
719 | if (obj8) { | |
720 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
721 | if (arg9 == NULL) { | |
722 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
723 | } | |
724 | } | |
725 | { | |
726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
727 | result = (wxGLCanvas *)new wxGLCanvas(arg1,(wxGLContext const *)arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxPalette const &)*arg9); | |
728 | ||
729 | wxPyEndAllowThreads(__tstate); | |
730 | if (PyErr_Occurred()) SWIG_fail; | |
731 | } | |
732 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGLCanvas, 1); | |
733 | { | |
734 | if (temp7) | |
735 | delete arg7; | |
736 | } | |
737 | { | |
738 | delete [] arg8; | |
739 | } | |
740 | return resultobj; | |
741 | fail: | |
742 | { | |
743 | if (temp7) | |
744 | delete arg7; | |
745 | } | |
746 | { | |
747 | delete [] arg8; | |
748 | } | |
749 | return NULL; | |
750 | } | |
751 | ||
752 | ||
753 | static PyObject *_wrap_GLCanvas_SetCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
754 | PyObject *resultobj; | |
755 | wxGLCanvas *arg1 = (wxGLCanvas *) 0 ; | |
756 | PyObject * obj0 = 0 ; | |
757 | char *kwnames[] = { | |
758 | (char *) "self", NULL | |
759 | }; | |
760 | ||
761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_SetCurrent",kwnames,&obj0)) goto fail; | |
762 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
763 | { | |
764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
765 | (arg1)->SetCurrent(); | |
766 | ||
767 | wxPyEndAllowThreads(__tstate); | |
768 | if (PyErr_Occurred()) SWIG_fail; | |
769 | } | |
770 | Py_INCREF(Py_None); resultobj = Py_None; | |
771 | return resultobj; | |
772 | fail: | |
773 | return NULL; | |
774 | } | |
775 | ||
776 | ||
777 | static PyObject *_wrap_GLCanvas_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
778 | PyObject *resultobj; | |
779 | wxGLCanvas *arg1 = (wxGLCanvas *) 0 ; | |
780 | wxString *arg2 = 0 ; | |
e811c8ce | 781 | bool temp2 = False ; |
d14a1e28 RD |
782 | PyObject * obj0 = 0 ; |
783 | PyObject * obj1 = 0 ; | |
784 | char *kwnames[] = { | |
785 | (char *) "self",(char *) "colour", NULL | |
786 | }; | |
787 | ||
788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GLCanvas_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
790 | { | |
791 | arg2 = wxString_in_helper(obj1); | |
792 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 793 | temp2 = True; |
d14a1e28 RD |
794 | } |
795 | { | |
796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
797 | (arg1)->SetColour((wxString const &)*arg2); | |
798 | ||
799 | wxPyEndAllowThreads(__tstate); | |
800 | if (PyErr_Occurred()) SWIG_fail; | |
801 | } | |
802 | Py_INCREF(Py_None); resultobj = Py_None; | |
803 | { | |
804 | if (temp2) | |
805 | delete arg2; | |
806 | } | |
807 | return resultobj; | |
808 | fail: | |
809 | { | |
810 | if (temp2) | |
811 | delete arg2; | |
812 | } | |
813 | return NULL; | |
814 | } | |
815 | ||
816 | ||
817 | static PyObject *_wrap_GLCanvas_SwapBuffers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
818 | PyObject *resultobj; | |
819 | wxGLCanvas *arg1 = (wxGLCanvas *) 0 ; | |
820 | PyObject * obj0 = 0 ; | |
821 | char *kwnames[] = { | |
822 | (char *) "self", NULL | |
823 | }; | |
824 | ||
825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_SwapBuffers",kwnames,&obj0)) goto fail; | |
826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
827 | { | |
828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
829 | (arg1)->SwapBuffers(); | |
830 | ||
831 | wxPyEndAllowThreads(__tstate); | |
832 | if (PyErr_Occurred()) SWIG_fail; | |
833 | } | |
834 | Py_INCREF(Py_None); resultobj = Py_None; | |
835 | return resultobj; | |
836 | fail: | |
837 | return NULL; | |
838 | } | |
839 | ||
840 | ||
841 | static PyObject *_wrap_GLCanvas_GetContext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
842 | PyObject *resultobj; | |
843 | wxGLCanvas *arg1 = (wxGLCanvas *) 0 ; | |
844 | wxGLContext *result; | |
845 | PyObject * obj0 = 0 ; | |
846 | char *kwnames[] = { | |
847 | (char *) "self", NULL | |
848 | }; | |
849 | ||
850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_GetContext",kwnames,&obj0)) goto fail; | |
851 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
852 | { | |
853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
854 | result = (wxGLContext *)(arg1)->GetContext(); | |
855 | ||
856 | wxPyEndAllowThreads(__tstate); | |
857 | if (PyErr_Occurred()) SWIG_fail; | |
858 | } | |
859 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGLContext, 0); | |
860 | return resultobj; | |
861 | fail: | |
862 | return NULL; | |
863 | } | |
864 | ||
865 | ||
866 | static PyObject * GLCanvas_swigregister(PyObject *self, PyObject *args) { | |
867 | PyObject *obj; | |
868 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
869 | SWIG_TypeClientData(SWIGTYPE_p_wxGLCanvas, obj); | |
870 | Py_INCREF(obj); | |
871 | return Py_BuildValue((char *)""); | |
872 | } | |
873 | static PyMethodDef SwigMethods[] = { | |
874 | { (char *)"new_GLContext", (PyCFunction) _wrap_new_GLContext, METH_VARARGS | METH_KEYWORDS }, | |
875 | { (char *)"delete_GLContext", (PyCFunction) _wrap_delete_GLContext, METH_VARARGS | METH_KEYWORDS }, | |
876 | { (char *)"GLContext_SetCurrent", (PyCFunction) _wrap_GLContext_SetCurrent, METH_VARARGS | METH_KEYWORDS }, | |
877 | { (char *)"GLContext_SetColour", (PyCFunction) _wrap_GLContext_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
878 | { (char *)"GLContext_SwapBuffers", (PyCFunction) _wrap_GLContext_SwapBuffers, METH_VARARGS | METH_KEYWORDS }, | |
879 | { (char *)"GLContext_SetupPixelFormat", (PyCFunction) _wrap_GLContext_SetupPixelFormat, METH_VARARGS | METH_KEYWORDS }, | |
880 | { (char *)"GLContext_SetupPalette", (PyCFunction) _wrap_GLContext_SetupPalette, METH_VARARGS | METH_KEYWORDS }, | |
881 | { (char *)"GLContext_CreateDefaultPalette", (PyCFunction) _wrap_GLContext_CreateDefaultPalette, METH_VARARGS | METH_KEYWORDS }, | |
882 | { (char *)"GLContext_GetPalette", (PyCFunction) _wrap_GLContext_GetPalette, METH_VARARGS | METH_KEYWORDS }, | |
883 | { (char *)"GLContext_GetWindow", (PyCFunction) _wrap_GLContext_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
884 | { (char *)"GLContext_swigregister", GLContext_swigregister, METH_VARARGS }, | |
885 | { (char *)"new_GLCanvas", (PyCFunction) _wrap_new_GLCanvas, METH_VARARGS | METH_KEYWORDS }, | |
886 | { (char *)"new_wxGLCanvasWithContext", (PyCFunction) _wrap_new_wxGLCanvasWithContext, METH_VARARGS | METH_KEYWORDS }, | |
887 | { (char *)"GLCanvas_SetCurrent", (PyCFunction) _wrap_GLCanvas_SetCurrent, METH_VARARGS | METH_KEYWORDS }, | |
888 | { (char *)"GLCanvas_SetColour", (PyCFunction) _wrap_GLCanvas_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
889 | { (char *)"GLCanvas_SwapBuffers", (PyCFunction) _wrap_GLCanvas_SwapBuffers, METH_VARARGS | METH_KEYWORDS }, | |
890 | { (char *)"GLCanvas_GetContext", (PyCFunction) _wrap_GLCanvas_GetContext, METH_VARARGS | METH_KEYWORDS }, | |
891 | { (char *)"GLCanvas_swigregister", GLCanvas_swigregister, METH_VARARGS }, | |
892 | { NULL, NULL } | |
893 | }; | |
894 | ||
895 | ||
896 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
897 | ||
898 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
899 | return (void *)((wxWindow *) ((wxControl *) x)); | |
900 | } | |
901 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
902 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
903 | } | |
904 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
905 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
906 | } | |
907 | static void *_p_wxGLCanvasTo_p_wxWindow(void *x) { | |
908 | return (void *)((wxWindow *) ((wxGLCanvas *) x)); | |
909 | } | |
910 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
911 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
912 | } | |
913 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
914 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
915 | } | |
916 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
917 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
918 | } | |
919 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
920 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
921 | } | |
922 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
923 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
924 | } | |
925 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
926 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
927 | } | |
928 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
929 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
930 | } | |
931 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
932 | return (void *)((wxObject *) ((wxSizer *) x)); | |
933 | } | |
934 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
935 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
936 | } | |
937 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
938 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
939 | } | |
940 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
941 | return (void *)((wxObject *) ((wxEvent *) x)); | |
942 | } | |
943 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
944 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
945 | } | |
946 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
947 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
948 | } | |
949 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
950 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
951 | } | |
952 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
953 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
954 | } | |
955 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
956 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
957 | } | |
958 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
959 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
960 | } | |
961 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
962 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
963 | } | |
964 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
965 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
966 | } | |
967 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
968 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
969 | } | |
970 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
971 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
972 | } | |
973 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
974 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
975 | } | |
976 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
977 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
978 | } | |
979 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
980 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
981 | } | |
982 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
983 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
984 | } | |
985 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
986 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
987 | } | |
988 | static void *_p_wxGLContextTo_p_wxObject(void *x) { | |
989 | return (void *)((wxObject *) ((wxGLContext *) x)); | |
990 | } | |
991 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
992 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
993 | } | |
994 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
995 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
996 | } | |
997 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
998 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
999 | } | |
1000 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
1001 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
1002 | } | |
1003 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
1004 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
1005 | } | |
1006 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
1007 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
1008 | } | |
1009 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
1010 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
1011 | } | |
1012 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
1013 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
1014 | } | |
1015 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
1016 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
1017 | } | |
1018 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
1019 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
1020 | } | |
1021 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
1022 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
1023 | } | |
1024 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
1025 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
1026 | } | |
1027 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
1028 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
1029 | } | |
1030 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
1031 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
1032 | } | |
1033 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
1034 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
1035 | } | |
1036 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
1037 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
1038 | } | |
1039 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
1040 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
1041 | } | |
1042 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
1043 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
1044 | } | |
1045 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
1046 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
1047 | } | |
1048 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
1049 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
1050 | } | |
1051 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
1052 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
1053 | } | |
1054 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
1055 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
1056 | } | |
1057 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
1058 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
1059 | } | |
1060 | static void *_p_wxGLCanvasTo_p_wxObject(void *x) { | |
1061 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxGLCanvas *) x)); | |
1062 | } | |
1063 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
1064 | return (void *)((wxObject *) ((wxImage *) x)); | |
1065 | } | |
1066 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
1067 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
1068 | } | |
1069 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
1070 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
1071 | } | |
1072 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
1073 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
1074 | } | |
1075 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
1076 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
1077 | } | |
1078 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
1079 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
1080 | } | |
1081 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
1082 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
1083 | } | |
1084 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
1085 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
1086 | } | |
1087 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
1088 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
1089 | } | |
1090 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
1091 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
1092 | } | |
1093 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
1094 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
1095 | } | |
1096 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
1097 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
1098 | } | |
1099 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
1100 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
1101 | } | |
1102 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
1103 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
1104 | } | |
1105 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
1106 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
1107 | } | |
1108 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
1109 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
1110 | } | |
1111 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
1112 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
1113 | } | |
1114 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
1115 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
1116 | } | |
1117 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
1118 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
1119 | } | |
1120 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
1121 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
1122 | } | |
1123 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
1124 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
1125 | } | |
1126 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
1127 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
1128 | } | |
1129 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
1130 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
1131 | } | |
1132 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
1133 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
1134 | } | |
1135 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
1136 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
1137 | } | |
1138 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
1139 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
1140 | } | |
1141 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
1142 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
1143 | } | |
1144 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
1145 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
1146 | } | |
1147 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
1148 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
1149 | } | |
1150 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
1151 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
1152 | } | |
1153 | static void *_p_wxGLCanvasTo_p_wxEvtHandler(void *x) { | |
1154 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxGLCanvas *) x)); | |
1155 | } | |
1156 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
1157 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
1158 | } | |
1159 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow},{"_p_wxWindow"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow},{"_p_wxGLCanvas", _p_wxGLCanvasTo_p_wxWindow},{0}}; | |
1160 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxGLContext", _p_wxGLContextTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxGLCanvas", _p_wxGLCanvasTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxObject"},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{0}}; | |
1161 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler},{"_p_wxEvtHandler"},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler},{"_p_wxGLCanvas", _p_wxGLCanvasTo_p_wxEvtHandler},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler},{0}}; | |
1162 | static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}}; | |
1163 | static swig_type_info _swigt__p_wxGLCanvas[] = {{"_p_wxGLCanvas", 0, "wxGLCanvas *", 0},{"_p_wxGLCanvas"},{0}}; | |
1164 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
1165 | static swig_type_info _swigt__p_wxGLContext[] = {{"_p_wxGLContext", 0, "wxGLContext *", 0},{"_p_wxGLContext"},{0}}; | |
1166 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
1167 | ||
1168 | static swig_type_info *swig_types_initial[] = { | |
1169 | _swigt__p_wxWindow, | |
1170 | _swigt__p_wxObject, | |
1171 | _swigt__p_wxEvtHandler, | |
1172 | _swigt__p_wxPalette, | |
1173 | _swigt__p_wxGLCanvas, | |
1174 | _swigt__p_wxString, | |
1175 | _swigt__p_wxGLContext, | |
1176 | _swigt__p_int, | |
1177 | 0 | |
1178 | }; | |
1179 | ||
1180 | ||
1181 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
1182 | ||
1183 | static swig_const_info swig_const_table[] = { | |
1184 | { SWIG_PY_INT, (char *)"WX_GL_RGBA", (long) WX_GL_RGBA, 0, 0, 0}, | |
1185 | { SWIG_PY_INT, (char *)"WX_GL_BUFFER_SIZE", (long) WX_GL_BUFFER_SIZE, 0, 0, 0}, | |
1186 | { SWIG_PY_INT, (char *)"WX_GL_LEVEL", (long) WX_GL_LEVEL, 0, 0, 0}, | |
1187 | { SWIG_PY_INT, (char *)"WX_GL_DOUBLEBUFFER", (long) WX_GL_DOUBLEBUFFER, 0, 0, 0}, | |
1188 | { SWIG_PY_INT, (char *)"WX_GL_STEREO", (long) WX_GL_STEREO, 0, 0, 0}, | |
1189 | { SWIG_PY_INT, (char *)"WX_GL_AUX_BUFFERS", (long) WX_GL_AUX_BUFFERS, 0, 0, 0}, | |
1190 | { SWIG_PY_INT, (char *)"WX_GL_MIN_RED", (long) WX_GL_MIN_RED, 0, 0, 0}, | |
1191 | { SWIG_PY_INT, (char *)"WX_GL_MIN_GREEN", (long) WX_GL_MIN_GREEN, 0, 0, 0}, | |
1192 | { SWIG_PY_INT, (char *)"WX_GL_MIN_BLUE", (long) WX_GL_MIN_BLUE, 0, 0, 0}, | |
1193 | { SWIG_PY_INT, (char *)"WX_GL_MIN_ALPHA", (long) WX_GL_MIN_ALPHA, 0, 0, 0}, | |
1194 | { SWIG_PY_INT, (char *)"WX_GL_DEPTH_SIZE", (long) WX_GL_DEPTH_SIZE, 0, 0, 0}, | |
1195 | { SWIG_PY_INT, (char *)"WX_GL_STENCIL_SIZE", (long) WX_GL_STENCIL_SIZE, 0, 0, 0}, | |
1196 | { SWIG_PY_INT, (char *)"WX_GL_MIN_ACCUM_RED", (long) WX_GL_MIN_ACCUM_RED, 0, 0, 0}, | |
1197 | { SWIG_PY_INT, (char *)"WX_GL_MIN_ACCUM_GREEN", (long) WX_GL_MIN_ACCUM_GREEN, 0, 0, 0}, | |
1198 | { SWIG_PY_INT, (char *)"WX_GL_MIN_ACCUM_BLUE", (long) WX_GL_MIN_ACCUM_BLUE, 0, 0, 0}, | |
1199 | { SWIG_PY_INT, (char *)"WX_GL_MIN_ACCUM_ALPHA", (long) WX_GL_MIN_ACCUM_ALPHA, 0, 0, 0}, | |
1200 | {0}}; | |
1201 | ||
1202 | #ifdef __cplusplus | |
1203 | } | |
1204 | #endif | |
1205 | ||
1206 | #ifdef __cplusplus | |
1207 | extern "C" | |
1208 | #endif | |
1209 | SWIGEXPORT(void) SWIG_init(void) { | |
1210 | static PyObject *SWIG_globals = 0; | |
1211 | static int typeinit = 0; | |
1212 | PyObject *m, *d; | |
1213 | int i; | |
1214 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
1215 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
1216 | d = PyModule_GetDict(m); | |
1217 | ||
1218 | if (!typeinit) { | |
1219 | for (i = 0; swig_types_initial[i]; i++) { | |
1220 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
1221 | } | |
1222 | typeinit = 1; | |
1223 | } | |
1224 | SWIG_InstallConstants(d,swig_const_table); | |
1225 | ||
1226 | ||
1227 | ||
1228 | ||
1229 | } | |
1230 |