]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/glcanvas/mac/glcanvas_wrap.cpp
Fixed the double traceback when an exception happens in OnInit
[wxWidgets.git] / wxPython / contrib / glcanvas / mac / glcanvas_wrap.cpp
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 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51 /***********************************************************************
52 * common.swg for wxPython
53 *
54 * Include only the function prototypes and such from SWIG's common.swg,
55 * but not the runtime functions themselves. This helps keep the
56 * wrapper files clean of unnecessary stuff that is in the libpy.c file
57 * anyway.
58 *
59 ************************************************************************/
60
61 #include <string.h>
62
63 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
64 # if defined(_MSC_VER) || defined(__GNUC__)
65 # if defined(STATIC_LINKED)
66 # define SWIGEXPORT(a) a
67 # define SWIGIMPORT(a) extern a
68 # else
69 # define SWIGEXPORT(a) __declspec(dllexport) a
70 # define SWIGIMPORT(a) extern a
71 # endif
72 # else
73 # if defined(__BORLANDC__)
74 # define SWIGEXPORT(a) a _export
75 # define SWIGIMPORT(a) a _export
76 # else
77 # define SWIGEXPORT(a) a
78 # define SWIGIMPORT(a) a
79 # endif
80 # endif
81 #else
82 # define SWIGEXPORT(a) a
83 # define SWIGIMPORT(a) a
84 #endif
85
86 #ifdef SWIG_GLOBAL
87 # define SWIGRUNTIME(a) SWIGEXPORT(a)
88 #else
89 # define SWIGRUNTIME(a) static a
90 #endif
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 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
118 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
119
120
121 #ifdef __cplusplus
122 }
123
124 #endif
125
126
127 /***********************************************************************
128 * pyrun.swg for wxPython
129 *
130 * Include only the function prototypes and such from SWIG's pyrun.swg,
131 * but not the runtime functions themselves. This helps keep the
132 * wrapper files clean of unnecessary stuff that is in the libpy.c file
133 * anyway.
134 *
135 ************************************************************************/
136
137 #include "Python.h"
138
139 #ifdef __cplusplus
140 extern "C" {
141 #endif
142
143 #define SWIG_PY_INT 1
144 #define SWIG_PY_FLOAT 2
145 #define SWIG_PY_STRING 3
146 #define SWIG_PY_POINTER 4
147 #define SWIG_PY_BINARY 5
148
149 /* Flags for pointer conversion */
150
151 #define SWIG_POINTER_EXCEPTION 0x1
152 #define SWIG_POINTER_DISOWN 0x2
153
154 /* Exception handling in wrappers */
155 #define SWIG_fail goto fail
156
157 /* Constant information structure */
158 typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165 } swig_const_info;
166
167 /* Common SWIG API */
168 #define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170 #define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172 #define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174
175 /* Python-specific SWIG API */
176 #define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182 #define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184 #define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198
199 /* Contract support */
200
201 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
202
203 #ifdef __cplusplus
204 }
205 #endif
206
207
208
209 /* -------- TYPES TABLE (BEGIN) -------- */
210
211 #define SWIGTYPE_p_wxWindow swig_types[0]
212 #define SWIGTYPE_p_wxObject swig_types[1]
213 #define SWIGTYPE_p_wxEvtHandler swig_types[2]
214 #define SWIGTYPE_p_wxPalette swig_types[3]
215 #define SWIGTYPE_p_wxGLCanvas swig_types[4]
216 #define SWIGTYPE_p_wxString swig_types[5]
217 #define SWIGTYPE_p_wxGLContext swig_types[6]
218 #define SWIGTYPE_p_int swig_types[7]
219 static swig_type_info *swig_types[9];
220
221 /* -------- TYPES TABLE (END) -------- */
222
223
224 /*-----------------------------------------------
225 @(target):= _glcanvas.so
226 ------------------------------------------------*/
227 #define SWIG_init init_glcanvas
228
229 #define SWIG_name "_glcanvas"
230
231 #include "wx/wxPython/wxPython.h"
232 #include "wx/wxPython/pyclasses.h"
233
234 #include <wx/glcanvas.h>
235
236 static const wxString wxPyGLCanvasNameStr(wxT("GLCanvas"));
237 static const wxString wxPyEmptyString(wxT(""));
238
239 wxGLContext *new_wxGLContext(bool isRGB,wxGLCanvas *win,wxPalette const &palette,wxGLContext const *other){
240 AGLPixelFormat fmt; // TODO: How should this be initialized?
241 return new wxGLContext(fmt, win, palette, other);
242 }
243 #ifdef __cplusplus
244 extern "C" {
245 #endif
246 static PyObject *_wrap_new_GLContext(PyObject *self, PyObject *args, PyObject *kwargs) {
247 PyObject *resultobj;
248 bool arg1 ;
249 wxGLCanvas *arg2 = (wxGLCanvas *) 0 ;
250 wxPalette const &arg3_defvalue = wxNullPalette ;
251 wxPalette *arg3 = (wxPalette *) &arg3_defvalue ;
252 wxGLContext *arg4 = (wxGLContext *) NULL ;
253 wxGLContext *result;
254 PyObject * obj0 = 0 ;
255 PyObject * obj1 = 0 ;
256 PyObject * obj2 = 0 ;
257 PyObject * obj3 = 0 ;
258 char *kwnames[] = {
259 (char *) "isRGB",(char *) "win",(char *) "palette",(char *) "other", NULL
260 };
261
262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_GLContext",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
263 arg1 = PyInt_AsLong(obj0) ? true : false;
264 if (PyErr_Occurred()) SWIG_fail;
265 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGLCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
266 if (obj2) {
267 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
268 if (arg3 == NULL) {
269 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
270 }
271 }
272 if (obj3) {
273 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
274 }
275 {
276 PyThreadState* __tstate = wxPyBeginAllowThreads();
277 result = (wxGLContext *)new_wxGLContext(arg1,arg2,(wxPalette const &)*arg3,(wxGLContext const *)arg4);
278
279 wxPyEndAllowThreads(__tstate);
280 if (PyErr_Occurred()) SWIG_fail;
281 }
282 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGLContext, 1);
283 return resultobj;
284 fail:
285 return NULL;
286 }
287
288
289 static PyObject *_wrap_delete_GLContext(PyObject *self, PyObject *args, PyObject *kwargs) {
290 PyObject *resultobj;
291 wxGLContext *arg1 = (wxGLContext *) 0 ;
292 PyObject * obj0 = 0 ;
293 char *kwnames[] = {
294 (char *) "self", NULL
295 };
296
297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GLContext",kwnames,&obj0)) goto fail;
298 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
299 {
300 PyThreadState* __tstate = wxPyBeginAllowThreads();
301 delete arg1;
302
303 wxPyEndAllowThreads(__tstate);
304 if (PyErr_Occurred()) SWIG_fail;
305 }
306 Py_INCREF(Py_None); resultobj = Py_None;
307 return resultobj;
308 fail:
309 return NULL;
310 }
311
312
313 static PyObject *_wrap_GLContext_SetCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
314 PyObject *resultobj;
315 wxGLContext *arg1 = (wxGLContext *) 0 ;
316 PyObject * obj0 = 0 ;
317 char *kwnames[] = {
318 (char *) "self", NULL
319 };
320
321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_SetCurrent",kwnames,&obj0)) goto fail;
322 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
323 {
324 PyThreadState* __tstate = wxPyBeginAllowThreads();
325 (arg1)->SetCurrent();
326
327 wxPyEndAllowThreads(__tstate);
328 if (PyErr_Occurred()) SWIG_fail;
329 }
330 Py_INCREF(Py_None); resultobj = Py_None;
331 return resultobj;
332 fail:
333 return NULL;
334 }
335
336
337 static PyObject *_wrap_GLContext_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
338 PyObject *resultobj;
339 wxGLContext *arg1 = (wxGLContext *) 0 ;
340 wxString *arg2 = 0 ;
341 bool temp2 = False ;
342 PyObject * obj0 = 0 ;
343 PyObject * obj1 = 0 ;
344 char *kwnames[] = {
345 (char *) "self",(char *) "colour", NULL
346 };
347
348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GLContext_SetColour",kwnames,&obj0,&obj1)) goto fail;
349 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
350 {
351 arg2 = wxString_in_helper(obj1);
352 if (arg2 == NULL) SWIG_fail;
353 temp2 = True;
354 }
355 {
356 PyThreadState* __tstate = wxPyBeginAllowThreads();
357 (arg1)->SetColour((wxString const &)*arg2);
358
359 wxPyEndAllowThreads(__tstate);
360 if (PyErr_Occurred()) SWIG_fail;
361 }
362 Py_INCREF(Py_None); resultobj = Py_None;
363 {
364 if (temp2)
365 delete arg2;
366 }
367 return resultobj;
368 fail:
369 {
370 if (temp2)
371 delete arg2;
372 }
373 return NULL;
374 }
375
376
377 static PyObject *_wrap_GLContext_SwapBuffers(PyObject *self, PyObject *args, PyObject *kwargs) {
378 PyObject *resultobj;
379 wxGLContext *arg1 = (wxGLContext *) 0 ;
380 PyObject * obj0 = 0 ;
381 char *kwnames[] = {
382 (char *) "self", NULL
383 };
384
385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_SwapBuffers",kwnames,&obj0)) goto fail;
386 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
387 {
388 PyThreadState* __tstate = wxPyBeginAllowThreads();
389 (arg1)->SwapBuffers();
390
391 wxPyEndAllowThreads(__tstate);
392 if (PyErr_Occurred()) SWIG_fail;
393 }
394 Py_INCREF(Py_None); resultobj = Py_None;
395 return resultobj;
396 fail:
397 return NULL;
398 }
399
400
401 static PyObject *_wrap_GLContext_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
402 PyObject *resultobj;
403 wxGLContext *arg1 = (wxGLContext *) 0 ;
404 wxWindow *result;
405 PyObject * obj0 = 0 ;
406 char *kwnames[] = {
407 (char *) "self", NULL
408 };
409
410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_GetWindow",kwnames,&obj0)) goto fail;
411 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
412 {
413 PyThreadState* __tstate = wxPyBeginAllowThreads();
414 result = (wxWindow *)(arg1)->GetWindow();
415
416 wxPyEndAllowThreads(__tstate);
417 if (PyErr_Occurred()) SWIG_fail;
418 }
419 {
420 resultobj = wxPyMake_wxObject(result);
421 }
422 return resultobj;
423 fail:
424 return NULL;
425 }
426
427
428 static PyObject * GLContext_swigregister(PyObject *self, PyObject *args) {
429 PyObject *obj;
430 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
431 SWIG_TypeClientData(SWIGTYPE_p_wxGLContext, obj);
432 Py_INCREF(obj);
433 return Py_BuildValue((char *)"");
434 }
435 static PyObject *_wrap_new_GLCanvas(PyObject *self, PyObject *args, PyObject *kwargs) {
436 PyObject *resultobj;
437 wxWindow *arg1 = (wxWindow *) 0 ;
438 int arg2 = (int) -1 ;
439 wxPoint const &arg3_defvalue = wxDefaultPosition ;
440 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
441 wxSize const &arg4_defvalue = wxDefaultSize ;
442 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
443 long arg5 = (long) 0 ;
444 wxString const &arg6_defvalue = wxPyGLCanvasNameStr ;
445 wxString *arg6 = (wxString *) &arg6_defvalue ;
446 int *arg7 = (int *) NULL ;
447 wxPalette const &arg8_defvalue = wxNullPalette ;
448 wxPalette *arg8 = (wxPalette *) &arg8_defvalue ;
449 wxGLCanvas *result;
450 wxPoint temp3 ;
451 wxSize temp4 ;
452 bool temp6 = False ;
453 int *temp7 ;
454 PyObject * obj0 = 0 ;
455 PyObject * obj2 = 0 ;
456 PyObject * obj3 = 0 ;
457 PyObject * obj5 = 0 ;
458 PyObject * obj6 = 0 ;
459 PyObject * obj7 = 0 ;
460 char *kwnames[] = {
461 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name",(char *) "attribList",(char *) "palette", NULL
462 };
463
464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlOOO:new_GLCanvas",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6,&obj7)) goto fail;
465 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
466 if (obj2) {
467 {
468 arg3 = &temp3;
469 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
470 }
471 }
472 if (obj3) {
473 {
474 arg4 = &temp4;
475 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
476 }
477 }
478 if (obj5) {
479 {
480 arg6 = wxString_in_helper(obj5);
481 if (arg6 == NULL) SWIG_fail;
482 temp6 = True;
483 }
484 }
485 if (obj6) {
486 {
487 int i;
488 if (PySequence_Check(obj6)) {
489 int size = PyObject_Length(obj6);
490 temp7 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int));
491 for (i = 0; i < size; i++) {
492 temp7[i] = PyInt_AsLong(PySequence_GetItem(obj6, i));
493 }
494 temp7[size] = 0;
495 arg7 = temp7;
496 }
497 }
498 }
499 if (obj7) {
500 if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
501 if (arg8 == NULL) {
502 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
503 }
504 }
505 {
506 PyThreadState* __tstate = wxPyBeginAllowThreads();
507 result = (wxGLCanvas *)new wxGLCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6,arg7,(wxPalette const &)*arg8);
508
509 wxPyEndAllowThreads(__tstate);
510 if (PyErr_Occurred()) SWIG_fail;
511 }
512 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGLCanvas, 1);
513 {
514 if (temp6)
515 delete arg6;
516 }
517 {
518 delete [] arg7;
519 }
520 return resultobj;
521 fail:
522 {
523 if (temp6)
524 delete arg6;
525 }
526 {
527 delete [] arg7;
528 }
529 return NULL;
530 }
531
532
533 static PyObject *_wrap_new_wxGLCanvasWithContext(PyObject *self, PyObject *args, PyObject *kwargs) {
534 PyObject *resultobj;
535 wxWindow *arg1 = (wxWindow *) 0 ;
536 wxGLContext *arg2 = (wxGLContext *) NULL ;
537 int arg3 = (int) -1 ;
538 wxPoint const &arg4_defvalue = wxDefaultPosition ;
539 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
540 wxSize const &arg5_defvalue = wxDefaultSize ;
541 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
542 long arg6 = (long) 0 ;
543 wxString const &arg7_defvalue = wxPyGLCanvasNameStr ;
544 wxString *arg7 = (wxString *) &arg7_defvalue ;
545 int *arg8 = (int *) NULL ;
546 wxPalette const &arg9_defvalue = wxNullPalette ;
547 wxPalette *arg9 = (wxPalette *) &arg9_defvalue ;
548 wxGLCanvas *result;
549 wxPoint temp4 ;
550 wxSize temp5 ;
551 bool temp7 = False ;
552 int *temp8 ;
553 PyObject * obj0 = 0 ;
554 PyObject * obj1 = 0 ;
555 PyObject * obj3 = 0 ;
556 PyObject * obj4 = 0 ;
557 PyObject * obj6 = 0 ;
558 PyObject * obj7 = 0 ;
559 PyObject * obj8 = 0 ;
560 char *kwnames[] = {
561 (char *) "parent",(char *) "shared",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name",(char *) "attribList",(char *) "palette", NULL
562 };
563
564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OiOOlOOO:new_wxGLCanvasWithContext",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7,&obj8)) goto fail;
565 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
566 if (obj1) {
567 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
568 }
569 if (obj3) {
570 {
571 arg4 = &temp4;
572 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
573 }
574 }
575 if (obj4) {
576 {
577 arg5 = &temp5;
578 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
579 }
580 }
581 if (obj6) {
582 {
583 arg7 = wxString_in_helper(obj6);
584 if (arg7 == NULL) SWIG_fail;
585 temp7 = True;
586 }
587 }
588 if (obj7) {
589 {
590 int i;
591 if (PySequence_Check(obj7)) {
592 int size = PyObject_Length(obj7);
593 temp8 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int));
594 for (i = 0; i < size; i++) {
595 temp8[i] = PyInt_AsLong(PySequence_GetItem(obj7, i));
596 }
597 temp8[size] = 0;
598 arg8 = temp8;
599 }
600 }
601 }
602 if (obj8) {
603 if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
604 if (arg9 == NULL) {
605 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
606 }
607 }
608 {
609 PyThreadState* __tstate = wxPyBeginAllowThreads();
610 result = (wxGLCanvas *)new wxGLCanvas(arg1,(wxGLContext const *)arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxPalette const &)*arg9);
611
612 wxPyEndAllowThreads(__tstate);
613 if (PyErr_Occurred()) SWIG_fail;
614 }
615 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGLCanvas, 1);
616 {
617 if (temp7)
618 delete arg7;
619 }
620 {
621 delete [] arg8;
622 }
623 return resultobj;
624 fail:
625 {
626 if (temp7)
627 delete arg7;
628 }
629 {
630 delete [] arg8;
631 }
632 return NULL;
633 }
634
635
636 static PyObject *_wrap_GLCanvas_SetCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
637 PyObject *resultobj;
638 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
639 PyObject * obj0 = 0 ;
640 char *kwnames[] = {
641 (char *) "self", NULL
642 };
643
644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_SetCurrent",kwnames,&obj0)) goto fail;
645 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
646 {
647 PyThreadState* __tstate = wxPyBeginAllowThreads();
648 (arg1)->SetCurrent();
649
650 wxPyEndAllowThreads(__tstate);
651 if (PyErr_Occurred()) SWIG_fail;
652 }
653 Py_INCREF(Py_None); resultobj = Py_None;
654 return resultobj;
655 fail:
656 return NULL;
657 }
658
659
660 static PyObject *_wrap_GLCanvas_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
661 PyObject *resultobj;
662 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
663 wxString *arg2 = 0 ;
664 bool temp2 = False ;
665 PyObject * obj0 = 0 ;
666 PyObject * obj1 = 0 ;
667 char *kwnames[] = {
668 (char *) "self",(char *) "colour", NULL
669 };
670
671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GLCanvas_SetColour",kwnames,&obj0,&obj1)) goto fail;
672 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
673 {
674 arg2 = wxString_in_helper(obj1);
675 if (arg2 == NULL) SWIG_fail;
676 temp2 = True;
677 }
678 {
679 PyThreadState* __tstate = wxPyBeginAllowThreads();
680 (arg1)->SetColour((wxString const &)*arg2);
681
682 wxPyEndAllowThreads(__tstate);
683 if (PyErr_Occurred()) SWIG_fail;
684 }
685 Py_INCREF(Py_None); resultobj = Py_None;
686 {
687 if (temp2)
688 delete arg2;
689 }
690 return resultobj;
691 fail:
692 {
693 if (temp2)
694 delete arg2;
695 }
696 return NULL;
697 }
698
699
700 static PyObject *_wrap_GLCanvas_SwapBuffers(PyObject *self, PyObject *args, PyObject *kwargs) {
701 PyObject *resultobj;
702 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
703 PyObject * obj0 = 0 ;
704 char *kwnames[] = {
705 (char *) "self", NULL
706 };
707
708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_SwapBuffers",kwnames,&obj0)) goto fail;
709 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
710 {
711 PyThreadState* __tstate = wxPyBeginAllowThreads();
712 (arg1)->SwapBuffers();
713
714 wxPyEndAllowThreads(__tstate);
715 if (PyErr_Occurred()) SWIG_fail;
716 }
717 Py_INCREF(Py_None); resultobj = Py_None;
718 return resultobj;
719 fail:
720 return NULL;
721 }
722
723
724 static PyObject *_wrap_GLCanvas_GetContext(PyObject *self, PyObject *args, PyObject *kwargs) {
725 PyObject *resultobj;
726 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
727 wxGLContext *result;
728 PyObject * obj0 = 0 ;
729 char *kwnames[] = {
730 (char *) "self", NULL
731 };
732
733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_GetContext",kwnames,&obj0)) goto fail;
734 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
735 {
736 PyThreadState* __tstate = wxPyBeginAllowThreads();
737 result = (wxGLContext *)(arg1)->GetContext();
738
739 wxPyEndAllowThreads(__tstate);
740 if (PyErr_Occurred()) SWIG_fail;
741 }
742 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGLContext, 0);
743 return resultobj;
744 fail:
745 return NULL;
746 }
747
748
749 static PyObject * GLCanvas_swigregister(PyObject *self, PyObject *args) {
750 PyObject *obj;
751 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
752 SWIG_TypeClientData(SWIGTYPE_p_wxGLCanvas, obj);
753 Py_INCREF(obj);
754 return Py_BuildValue((char *)"");
755 }
756 static PyMethodDef SwigMethods[] = {
757 { (char *)"new_GLContext", (PyCFunction) _wrap_new_GLContext, METH_VARARGS | METH_KEYWORDS },
758 { (char *)"delete_GLContext", (PyCFunction) _wrap_delete_GLContext, METH_VARARGS | METH_KEYWORDS },
759 { (char *)"GLContext_SetCurrent", (PyCFunction) _wrap_GLContext_SetCurrent, METH_VARARGS | METH_KEYWORDS },
760 { (char *)"GLContext_SetColour", (PyCFunction) _wrap_GLContext_SetColour, METH_VARARGS | METH_KEYWORDS },
761 { (char *)"GLContext_SwapBuffers", (PyCFunction) _wrap_GLContext_SwapBuffers, METH_VARARGS | METH_KEYWORDS },
762 { (char *)"GLContext_GetWindow", (PyCFunction) _wrap_GLContext_GetWindow, METH_VARARGS | METH_KEYWORDS },
763 { (char *)"GLContext_swigregister", GLContext_swigregister, METH_VARARGS },
764 { (char *)"new_GLCanvas", (PyCFunction) _wrap_new_GLCanvas, METH_VARARGS | METH_KEYWORDS },
765 { (char *)"new_wxGLCanvasWithContext", (PyCFunction) _wrap_new_wxGLCanvasWithContext, METH_VARARGS | METH_KEYWORDS },
766 { (char *)"GLCanvas_SetCurrent", (PyCFunction) _wrap_GLCanvas_SetCurrent, METH_VARARGS | METH_KEYWORDS },
767 { (char *)"GLCanvas_SetColour", (PyCFunction) _wrap_GLCanvas_SetColour, METH_VARARGS | METH_KEYWORDS },
768 { (char *)"GLCanvas_SwapBuffers", (PyCFunction) _wrap_GLCanvas_SwapBuffers, METH_VARARGS | METH_KEYWORDS },
769 { (char *)"GLCanvas_GetContext", (PyCFunction) _wrap_GLCanvas_GetContext, METH_VARARGS | METH_KEYWORDS },
770 { (char *)"GLCanvas_swigregister", GLCanvas_swigregister, METH_VARARGS },
771 { NULL, NULL }
772 };
773
774
775 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
776
777 static void *_p_wxControlTo_p_wxWindow(void *x) {
778 return (void *)((wxWindow *) ((wxControl *) x));
779 }
780 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
781 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
782 }
783 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
784 return (void *)((wxWindow *) ((wxMenuBar *) x));
785 }
786 static void *_p_wxGLCanvasTo_p_wxWindow(void *x) {
787 return (void *)((wxWindow *) ((wxGLCanvas *) x));
788 }
789 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
790 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
791 }
792 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
793 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
794 }
795 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
796 return (void *)((wxObject *) ((wxSizerItem *) x));
797 }
798 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
799 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
800 }
801 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
802 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
803 }
804 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
805 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
806 }
807 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
808 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
809 }
810 static void *_p_wxSizerTo_p_wxObject(void *x) {
811 return (void *)((wxObject *) ((wxSizer *) x));
812 }
813 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
814 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
815 }
816 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
817 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
818 }
819 static void *_p_wxEventTo_p_wxObject(void *x) {
820 return (void *)((wxObject *) ((wxEvent *) x));
821 }
822 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
823 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
824 }
825 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
826 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
827 }
828 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
829 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
830 }
831 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
832 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
833 }
834 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
835 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
836 }
837 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
838 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
839 }
840 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
841 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
842 }
843 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
844 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
845 }
846 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
847 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
848 }
849 static void *_p_wxControlTo_p_wxObject(void *x) {
850 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
851 }
852 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
853 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
854 }
855 static void *_p_wxFSFileTo_p_wxObject(void *x) {
856 return (void *)((wxObject *) ((wxFSFile *) x));
857 }
858 static void *_p_wxPySizerTo_p_wxObject(void *x) {
859 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
860 }
861 static void *_p_wxPyEventTo_p_wxObject(void *x) {
862 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
863 }
864 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
865 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
866 }
867 static void *_p_wxGLContextTo_p_wxObject(void *x) {
868 return (void *)((wxObject *) ((wxGLContext *) x));
869 }
870 static void *_p_wxShowEventTo_p_wxObject(void *x) {
871 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
872 }
873 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
874 return (void *)((wxObject *) ((wxMenuItem *) x));
875 }
876 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
877 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
878 }
879 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
880 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
881 }
882 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
883 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
884 }
885 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
886 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
887 }
888 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
889 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
890 }
891 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
892 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
893 }
894 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
895 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
896 }
897 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
898 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
899 }
900 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
901 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
902 }
903 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
904 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
905 }
906 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
907 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
908 }
909 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
910 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
911 }
912 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
913 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
914 }
915 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
916 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
917 }
918 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
919 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
920 }
921 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
922 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
923 }
924 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
925 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
926 }
927 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
928 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
929 }
930 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
931 return (void *)((wxObject *) ((wxImageHandler *) x));
932 }
933 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
934 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
935 }
936 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
937 return (void *)((wxObject *) ((wxEvtHandler *) x));
938 }
939 static void *_p_wxGLCanvasTo_p_wxObject(void *x) {
940 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxGLCanvas *) x));
941 }
942 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
943 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
944 }
945 static void *_p_wxImageTo_p_wxObject(void *x) {
946 return (void *)((wxObject *) ((wxImage *) x));
947 }
948 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
949 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
950 }
951 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
952 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
953 }
954 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
955 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
956 }
957 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
958 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
959 }
960 static void *_p_wxWindowTo_p_wxObject(void *x) {
961 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
962 }
963 static void *_p_wxMenuTo_p_wxObject(void *x) {
964 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
965 }
966 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
967 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
968 }
969 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
970 return (void *)((wxObject *) ((wxFileSystem *) x));
971 }
972 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
973 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
974 }
975 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
976 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
977 }
978 static void *_p_wxPyAppTo_p_wxObject(void *x) {
979 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
980 }
981 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
982 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
983 }
984 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
985 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
986 }
987 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
988 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
989 }
990 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
991 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
992 }
993 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
994 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
995 }
996 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
997 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
998 }
999 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
1000 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
1001 }
1002 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
1003 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
1004 }
1005 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
1006 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
1007 }
1008 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
1009 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
1010 }
1011 static void *_p_wxValidatorTo_p_wxObject(void *x) {
1012 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
1013 }
1014 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
1015 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
1016 }
1017 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
1018 return (void *)((wxEvtHandler *) ((wxWindow *) x));
1019 }
1020 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
1021 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
1022 }
1023 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
1024 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
1025 }
1026 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
1027 return (void *)((wxEvtHandler *) ((wxValidator *) x));
1028 }
1029 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
1030 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
1031 }
1032 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
1033 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
1034 }
1035 static void *_p_wxGLCanvasTo_p_wxEvtHandler(void *x) {
1036 return (void *)((wxEvtHandler *) (wxWindow *) ((wxGLCanvas *) x));
1037 }
1038 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
1039 return (void *)((wxEvtHandler *) ((wxMenu *) x));
1040 }
1041 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}};
1042 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_wxAcceleratorTable", _p_wxAcceleratorTableTo_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_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_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}};
1043 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}};
1044 static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}};
1045 static swig_type_info _swigt__p_wxGLCanvas[] = {{"_p_wxGLCanvas", 0, "wxGLCanvas *", 0},{"_p_wxGLCanvas"},{0}};
1046 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
1047 static swig_type_info _swigt__p_wxGLContext[] = {{"_p_wxGLContext", 0, "wxGLContext *", 0},{"_p_wxGLContext"},{0}};
1048 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
1049
1050 static swig_type_info *swig_types_initial[] = {
1051 _swigt__p_wxWindow,
1052 _swigt__p_wxObject,
1053 _swigt__p_wxEvtHandler,
1054 _swigt__p_wxPalette,
1055 _swigt__p_wxGLCanvas,
1056 _swigt__p_wxString,
1057 _swigt__p_wxGLContext,
1058 _swigt__p_int,
1059 0
1060 };
1061
1062
1063 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
1064
1065 static swig_const_info swig_const_table[] = {
1066 { SWIG_PY_INT, (char *)"WX_GL_RGBA", (long) WX_GL_RGBA, 0, 0, 0},
1067 { SWIG_PY_INT, (char *)"WX_GL_BUFFER_SIZE", (long) WX_GL_BUFFER_SIZE, 0, 0, 0},
1068 { SWIG_PY_INT, (char *)"WX_GL_LEVEL", (long) WX_GL_LEVEL, 0, 0, 0},
1069 { SWIG_PY_INT, (char *)"WX_GL_DOUBLEBUFFER", (long) WX_GL_DOUBLEBUFFER, 0, 0, 0},
1070 { SWIG_PY_INT, (char *)"WX_GL_STEREO", (long) WX_GL_STEREO, 0, 0, 0},
1071 { SWIG_PY_INT, (char *)"WX_GL_AUX_BUFFERS", (long) WX_GL_AUX_BUFFERS, 0, 0, 0},
1072 { SWIG_PY_INT, (char *)"WX_GL_MIN_RED", (long) WX_GL_MIN_RED, 0, 0, 0},
1073 { SWIG_PY_INT, (char *)"WX_GL_MIN_GREEN", (long) WX_GL_MIN_GREEN, 0, 0, 0},
1074 { SWIG_PY_INT, (char *)"WX_GL_MIN_BLUE", (long) WX_GL_MIN_BLUE, 0, 0, 0},
1075 { SWIG_PY_INT, (char *)"WX_GL_MIN_ALPHA", (long) WX_GL_MIN_ALPHA, 0, 0, 0},
1076 { SWIG_PY_INT, (char *)"WX_GL_DEPTH_SIZE", (long) WX_GL_DEPTH_SIZE, 0, 0, 0},
1077 { SWIG_PY_INT, (char *)"WX_GL_STENCIL_SIZE", (long) WX_GL_STENCIL_SIZE, 0, 0, 0},
1078 { SWIG_PY_INT, (char *)"WX_GL_MIN_ACCUM_RED", (long) WX_GL_MIN_ACCUM_RED, 0, 0, 0},
1079 { SWIG_PY_INT, (char *)"WX_GL_MIN_ACCUM_GREEN", (long) WX_GL_MIN_ACCUM_GREEN, 0, 0, 0},
1080 { SWIG_PY_INT, (char *)"WX_GL_MIN_ACCUM_BLUE", (long) WX_GL_MIN_ACCUM_BLUE, 0, 0, 0},
1081 { SWIG_PY_INT, (char *)"WX_GL_MIN_ACCUM_ALPHA", (long) WX_GL_MIN_ACCUM_ALPHA, 0, 0, 0},
1082 {0}};
1083
1084 #ifdef __cplusplus
1085 }
1086 #endif
1087
1088 #ifdef __cplusplus
1089 extern "C"
1090 #endif
1091 SWIGEXPORT(void) SWIG_init(void) {
1092 static PyObject *SWIG_globals = 0;
1093 static int typeinit = 0;
1094 PyObject *m, *d;
1095 int i;
1096 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
1097 m = Py_InitModule((char *) SWIG_name, SwigMethods);
1098 d = PyModule_GetDict(m);
1099
1100 if (!typeinit) {
1101 for (i = 0; swig_types_initial[i]; i++) {
1102 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
1103 }
1104 typeinit = 1;
1105 }
1106 SWIG_InstallConstants(d,swig_const_table);
1107
1108
1109
1110
1111 }
1112