]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/glcanvas/mac/glcanvas_wrap.cpp
Some change notes
[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.22
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_TypePrettyName SWIG_Python_TypePrettyName
47 #define SWIG_TypeQuery SWIG_Python_TypeQuery
48 #define SWIG_TypeClientData SWIG_Python_TypeClientData
49 #define SWIG_PackData SWIG_Python_PackData
50 #define SWIG_UnpackData SWIG_Python_UnpackData
51
52
53 /***********************************************************************
54 * common.swg for wxPython
55 *
56 * Include only the function prototypes and such from SWIG's common.swg,
57 * but not the runtime functions themselves. This helps keep the
58 * wrapper files clean of unnecessary stuff that is in the libpy.c file
59 * anyway.
60 *
61 ************************************************************************/
62
63 #include <string.h>
64
65 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
66 # if defined(_MSC_VER) || defined(__GNUC__)
67 # if defined(STATIC_LINKED)
68 # define SWIGEXPORT(a) a
69 # define SWIGIMPORT(a) extern a
70 # else
71 # define SWIGEXPORT(a) __declspec(dllexport) a
72 # define SWIGIMPORT(a) extern a
73 # endif
74 # else
75 # if defined(__BORLANDC__)
76 # define SWIGEXPORT(a) a _export
77 # define SWIGIMPORT(a) a _export
78 # else
79 # define SWIGEXPORT(a) a
80 # define SWIGIMPORT(a) a
81 # endif
82 # endif
83 #else
84 # define SWIGEXPORT(a) a
85 # define SWIGIMPORT(a) a
86 #endif
87
88 #ifdef SWIG_GLOBAL
89 # define SWIGRUNTIME(a) SWIGEXPORT(a)
90 #else
91 # define SWIGRUNTIME(a) static a
92 #endif
93
94 #ifdef __cplusplus
95 extern "C" {
96 #endif
97
98 typedef void *(*swig_converter_func)(void *);
99 typedef struct swig_type_info *(*swig_dycast_func)(void **);
100
101 typedef struct swig_type_info {
102 const char *name;
103 swig_converter_func converter;
104 const char *str;
105 void *clientdata;
106 swig_dycast_func dcast;
107 struct swig_type_info *next;
108 struct swig_type_info *prev;
109 } swig_type_info;
110
111
112 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
113 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
114 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
115 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
116 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
117 SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *);
118 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
119 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
120 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
121 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
122
123
124 #ifdef __cplusplus
125 }
126 #endif
127
128
129 /***********************************************************************
130 * pyrun.swg for wxPython
131 *
132 * Include only the function prototypes and such from SWIG's pyrun.swg,
133 * but not the runtime functions themselves. This helps keep the
134 * wrapper files clean of unnecessary stuff that is in the libpy.c file
135 * anyway.
136 *
137 ************************************************************************/
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 typedef double (*py_objasdbl_conv)(PyObject *obj);
188
189 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
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_char swig_types[3]
215 #define SWIGTYPE_p_wxPalette swig_types[4]
216 #define SWIGTYPE_p_wxGLCanvas 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 /* Auxiliar swig macros that appear in the header */
232
233 #define SWIG_OLDOBJ 1
234 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
235 #define SWIG_PYSTR SWIG_NEWOBJ + 1
236
237 #ifdef __cplusplus
238 #define SWIGSTATICINLINE(a) static inline a
239 #define SWIGSTATIC(a) static a
240 #define swig_new_array(size,Type) (new Type[(size)])
241 #define swig_delete(cptr) delete cptr
242 #define swig_delete_array(cptr) delete[] cptr
243 #define swig_const_cast(a,Type) const_cast<Type >(a)
244 #define swig_static_cast(a,Type) static_cast<Type >(a)
245 #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a)
246 #define swig_new_copy(ptr,Type) (new Type(*ptr))
247 #define swig_numeric_cast(a,Type) static_cast<Type >(a)
248
249 #else /* C case */
250
251 #define SWIGSTATICINLINE(a) static a
252 #define SWIGSTATIC(a) static a
253 #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type)))
254 #define swig_delete(cptr) free((char*)cptr)
255 #define swig_delete_array(cptr) free((char*)cptr)
256 #define swig_const_cast(a,Type) (Type)(a)
257 #define swig_static_cast(a,Type) (Type)(a)
258 #define swig_reinterpret_cast(a,Type) (Type)(a)
259 #define swig_numeric_cast(a,Type) (Type)(a)
260 #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type)))
261
262 #endif /* __cplusplus */
263
264
265 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
266 #define SWIG_From_signed_SS_char PyInt_FromLong
267 /*@@*/
268 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
269 #define SWIG_From_unsigned_SS_char PyInt_FromLong
270 /*@@*/
271 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
272 #define SWIG_From_short PyInt_FromLong
273 /*@@*/
274 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
275 #define SWIG_From_unsigned_SS_short PyInt_FromLong
276 /*@@*/
277 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
278 #define SWIG_From_int PyInt_FromLong
279 /*@@*/
280 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
281 #define SWIG_From_long PyInt_FromLong
282 /*@@*/
283 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
284 #define SWIG_From_float PyFloat_FromDouble
285 /*@@*/
286 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
287 #define SWIG_From_double PyFloat_FromDouble
288 /*@@*/
289
290
291 #include "wx/wxPython/wxPython.h"
292 #include "wx/wxPython/pyclasses.h"
293
294 #include <wx/glcanvas.h>
295
296
297 static const wxString wxPyGLCanvasNameStr(wxT("GLCanvas"));
298 static const wxString wxPyEmptyString(wxEmptyString);
299
300 #include <limits.h>
301
302
303 SWIGSTATICINLINE(int)
304 SWIG_CheckLongInRange(long value, long min_value, long max_value,
305 const char *errmsg)
306 {
307 if (value < min_value) {
308 if (errmsg) {
309 PyErr_Format(PyExc_OverflowError,
310 "value %ld is less than '%s' minimum %ld",
311 value, errmsg, min_value);
312 }
313 return 0;
314 } else if (value > max_value) {
315 if (errmsg) {
316 PyErr_Format(PyExc_OverflowError,
317 "value %ld is greater than '%s' maximum %ld",
318 value, errmsg, max_value);
319 }
320 return 0;
321 }
322 return 1;
323 }
324
325
326 // See my_fragments.i
327 SWIGSTATICINLINE(int)
328 SWIG_AsVal_long(PyObject* obj, long* val)
329 {
330 if (PyNumber_Check(obj)) {
331 if (val) *val = PyInt_AsLong(obj);
332 return 1;
333 }
334 else {
335 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
336 obj->ob_type->tp_name);
337 PyErr_SetObject(PyExc_TypeError, errmsg);
338 Py_DECREF(errmsg);
339 }
340 return 0;
341 }
342
343
344 #if INT_MAX != LONG_MAX
345 SWIGSTATICINLINE(int)
346 SWIG_AsVal_int(PyObject *obj, int *val)
347 {
348 const char* errmsg = val ? "int" : 0;
349 long v;
350 if (SWIG_AsVal_long(obj, &v)) {
351 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
352 if (val) *val = swig_numeric_cast(v, int);
353 return 1;
354 } else {
355 return 0;
356 }
357 } else {
358 PyErr_Clear();
359 }
360 if (val) {
361 PyErr_SetString(PyExc_TypeError, "an int is expected");
362 }
363 return 0;
364 }
365 #else
366 SWIGSTATICINLINE(int)
367 SWIG_AsVal_int(PyObject *obj, int *val)
368 {
369 return SWIG_AsVal_long(obj,(long*)val);
370 }
371 #endif
372
373
374 SWIGSTATICINLINE(int)
375 SWIG_AsVal_bool(PyObject *obj, bool *val)
376 {
377 /* if (val) *val = PyObject_IsTrue(obj); return 1; */
378 if (obj == Py_True) {
379 if (val) *val = true;
380 return 1;
381 }
382 if (obj == Py_False) {
383 if (val) *val = false;
384 return 1;
385 }
386 int res = 0;
387 if (SWIG_AsVal_int(obj, &res)) {
388 if (val) *val = (bool)res;
389 return 1;
390 }
391 if (val) {
392 PyErr_SetString(PyExc_TypeError, "a bool is expected");
393 }
394 return 0;
395 }
396
397
398 SWIGSTATICINLINE(bool)
399 SWIG_As_bool(PyObject* obj)
400 {
401 bool v;
402 if (!SWIG_AsVal_bool(obj, &v)) {
403 /*
404 this is needed to make valgrind/purify happier. the other
405 solution is throw an exception, but since this code should work
406 with plain C ....
407 */
408 memset((void*)&v, 0, sizeof(bool));
409 }
410 return v;
411 }
412
413
414 SWIGSTATICINLINE(int)
415 SWIG_Check_bool(PyObject* obj)
416 {
417 return SWIG_AsVal_bool(obj, (bool*)0);
418 }
419
420 wxGLContext *new_wxGLContext(bool isRGB,wxGLCanvas *win,wxPalette const &palette,wxGLContext const *other){
421 AGLPixelFormat fmt; // TODO: How should this be initialized?
422 return new wxGLContext(fmt, win, palette, other);
423 }
424
425 SWIGSTATICINLINE(int)
426 SWIG_As_int(PyObject* obj)
427 {
428 int v;
429 if (!SWIG_AsVal_int(obj, &v)) {
430 /*
431 this is needed to make valgrind/purify happier. the other
432 solution is throw an exception, but since this code should work
433 with plain C ....
434 */
435 memset((void*)&v, 0, sizeof(int));
436 }
437 return v;
438 }
439
440
441 SWIGSTATICINLINE(long)
442 SWIG_As_long(PyObject* obj)
443 {
444 long v;
445 if (!SWIG_AsVal_long(obj, &v)) {
446 /*
447 this is needed to make valgrind/purify happier. the other
448 solution is throw an exception, but since this code should work
449 with plain C ....
450 */
451 memset((void*)&v, 0, sizeof(long));
452 }
453 return v;
454 }
455
456
457 SWIGSTATICINLINE(int)
458 SWIG_Check_int(PyObject* obj)
459 {
460 return SWIG_AsVal_int(obj, (int*)0);
461 }
462
463
464 SWIGSTATICINLINE(int)
465 SWIG_Check_long(PyObject* obj)
466 {
467 return SWIG_AsVal_long(obj, (long*)0);
468 }
469
470 #ifdef __cplusplus
471 extern "C" {
472 #endif
473 static int _wrap_GLCanvasNameStr_set(PyObject *) {
474 PyErr_SetString(PyExc_TypeError,"Variable GLCanvasNameStr is read-only.");
475 return 1;
476 }
477
478
479 static PyObject *_wrap_GLCanvasNameStr_get() {
480 PyObject *pyobj;
481
482 {
483 #if wxUSE_UNICODE
484 pyobj = PyUnicode_FromWideChar((&wxPyGLCanvasNameStr)->c_str(), (&wxPyGLCanvasNameStr)->Len());
485 #else
486 pyobj = PyString_FromStringAndSize((&wxPyGLCanvasNameStr)->c_str(), (&wxPyGLCanvasNameStr)->Len());
487 #endif
488 }
489 return pyobj;
490 }
491
492
493 static PyObject *_wrap_new_GLContext(PyObject *, PyObject *args, PyObject *kwargs) {
494 PyObject *resultobj;
495 bool arg1 ;
496 wxGLCanvas *arg2 = (wxGLCanvas *) 0 ;
497 wxPalette const &arg3_defvalue = wxNullPalette ;
498 wxPalette *arg3 = (wxPalette *) &arg3_defvalue ;
499 wxGLContext *arg4 = (wxGLContext *) NULL ;
500 wxGLContext *result;
501 PyObject * obj0 = 0 ;
502 PyObject * obj1 = 0 ;
503 PyObject * obj2 = 0 ;
504 PyObject * obj3 = 0 ;
505 char *kwnames[] = {
506 (char *) "isRGB",(char *) "win",(char *) "palette",(char *) "other", NULL
507 };
508
509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_GLContext",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
510 arg1 = (bool)SWIG_As_bool(obj0);
511 if (PyErr_Occurred()) SWIG_fail;
512 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGLCanvas,
513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
514 if (obj2) {
515 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPalette,
516 SWIG_POINTER_EXCEPTION | 0)) == -1)
517 SWIG_fail;
518 if (arg3 == NULL) {
519 PyErr_SetString(PyExc_TypeError,"null reference");
520 SWIG_fail;
521 }
522 }
523 if (obj3) {
524 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGLContext,
525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
526 }
527 {
528 if (!wxPyCheckForApp()) SWIG_fail;
529 PyThreadState* __tstate = wxPyBeginAllowThreads();
530 result = (wxGLContext *)new_wxGLContext(arg1,arg2,(wxPalette const &)*arg3,(wxGLContext const *)arg4);
531
532 wxPyEndAllowThreads(__tstate);
533 if (PyErr_Occurred()) SWIG_fail;
534 }
535 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGLContext, 1);
536 return resultobj;
537 fail:
538 return NULL;
539 }
540
541
542 static PyObject *_wrap_delete_GLContext(PyObject *, PyObject *args, PyObject *kwargs) {
543 PyObject *resultobj;
544 wxGLContext *arg1 = (wxGLContext *) 0 ;
545 PyObject * obj0 = 0 ;
546 char *kwnames[] = {
547 (char *) "self", NULL
548 };
549
550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GLContext",kwnames,&obj0)) goto fail;
551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
553 {
554 PyThreadState* __tstate = wxPyBeginAllowThreads();
555 delete arg1;
556
557 wxPyEndAllowThreads(__tstate);
558 if (PyErr_Occurred()) SWIG_fail;
559 }
560 Py_INCREF(Py_None); resultobj = Py_None;
561 return resultobj;
562 fail:
563 return NULL;
564 }
565
566
567 static PyObject *_wrap_GLContext_SetCurrent(PyObject *, PyObject *args, PyObject *kwargs) {
568 PyObject *resultobj;
569 wxGLContext *arg1 = (wxGLContext *) 0 ;
570 PyObject * obj0 = 0 ;
571 char *kwnames[] = {
572 (char *) "self", NULL
573 };
574
575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_SetCurrent",kwnames,&obj0)) goto fail;
576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
578 {
579 PyThreadState* __tstate = wxPyBeginAllowThreads();
580 (arg1)->SetCurrent();
581
582 wxPyEndAllowThreads(__tstate);
583 if (PyErr_Occurred()) SWIG_fail;
584 }
585 Py_INCREF(Py_None); resultobj = Py_None;
586 return resultobj;
587 fail:
588 return NULL;
589 }
590
591
592 static PyObject *_wrap_GLContext_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
593 PyObject *resultobj;
594 wxGLContext *arg1 = (wxGLContext *) 0 ;
595 wxString *arg2 = 0 ;
596 bool temp2 = False ;
597 PyObject * obj0 = 0 ;
598 PyObject * obj1 = 0 ;
599 char *kwnames[] = {
600 (char *) "self",(char *) "colour", NULL
601 };
602
603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GLContext_SetColour",kwnames,&obj0,&obj1)) goto fail;
604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
606 {
607 arg2 = wxString_in_helper(obj1);
608 if (arg2 == NULL) SWIG_fail;
609 temp2 = True;
610 }
611 {
612 PyThreadState* __tstate = wxPyBeginAllowThreads();
613 (arg1)->SetColour((wxString const &)*arg2);
614
615 wxPyEndAllowThreads(__tstate);
616 if (PyErr_Occurred()) SWIG_fail;
617 }
618 Py_INCREF(Py_None); resultobj = Py_None;
619 {
620 if (temp2)
621 delete arg2;
622 }
623 return resultobj;
624 fail:
625 {
626 if (temp2)
627 delete arg2;
628 }
629 return NULL;
630 }
631
632
633 static PyObject *_wrap_GLContext_SwapBuffers(PyObject *, PyObject *args, PyObject *kwargs) {
634 PyObject *resultobj;
635 wxGLContext *arg1 = (wxGLContext *) 0 ;
636 PyObject * obj0 = 0 ;
637 char *kwnames[] = {
638 (char *) "self", NULL
639 };
640
641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_SwapBuffers",kwnames,&obj0)) goto fail;
642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
644 {
645 PyThreadState* __tstate = wxPyBeginAllowThreads();
646 (arg1)->SwapBuffers();
647
648 wxPyEndAllowThreads(__tstate);
649 if (PyErr_Occurred()) SWIG_fail;
650 }
651 Py_INCREF(Py_None); resultobj = Py_None;
652 return resultobj;
653 fail:
654 return NULL;
655 }
656
657
658 static PyObject *_wrap_GLContext_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
659 PyObject *resultobj;
660 wxGLContext *arg1 = (wxGLContext *) 0 ;
661 wxWindow *result;
662 PyObject * obj0 = 0 ;
663 char *kwnames[] = {
664 (char *) "self", NULL
665 };
666
667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_GetWindow",kwnames,&obj0)) goto fail;
668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
670 {
671 PyThreadState* __tstate = wxPyBeginAllowThreads();
672 result = (wxWindow *)(arg1)->GetWindow();
673
674 wxPyEndAllowThreads(__tstate);
675 if (PyErr_Occurred()) SWIG_fail;
676 }
677 {
678 resultobj = wxPyMake_wxObject(result, 0);
679 }
680 return resultobj;
681 fail:
682 return NULL;
683 }
684
685
686 static PyObject * GLContext_swigregister(PyObject *, PyObject *args) {
687 PyObject *obj;
688 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
689 SWIG_TypeClientData(SWIGTYPE_p_wxGLContext, obj);
690 Py_INCREF(obj);
691 return Py_BuildValue((char *)"");
692 }
693 static PyObject *_wrap_new_GLCanvas(PyObject *, PyObject *args, PyObject *kwargs) {
694 PyObject *resultobj;
695 wxWindow *arg1 = (wxWindow *) 0 ;
696 int arg2 = (int) -1 ;
697 wxPoint const &arg3_defvalue = wxDefaultPosition ;
698 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
699 wxSize const &arg4_defvalue = wxDefaultSize ;
700 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
701 long arg5 = (long) 0 ;
702 wxString const &arg6_defvalue = wxPyGLCanvasNameStr ;
703 wxString *arg6 = (wxString *) &arg6_defvalue ;
704 int *arg7 = (int *) NULL ;
705 wxPalette const &arg8_defvalue = wxNullPalette ;
706 wxPalette *arg8 = (wxPalette *) &arg8_defvalue ;
707 wxGLCanvas *result;
708 wxPoint temp3 ;
709 wxSize temp4 ;
710 bool temp6 = False ;
711 int *temp7 ;
712 PyObject * obj0 = 0 ;
713 PyObject * obj1 = 0 ;
714 PyObject * obj2 = 0 ;
715 PyObject * obj3 = 0 ;
716 PyObject * obj4 = 0 ;
717 PyObject * obj5 = 0 ;
718 PyObject * obj6 = 0 ;
719 PyObject * obj7 = 0 ;
720 char *kwnames[] = {
721 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name",(char *) "attribList",(char *) "palette", NULL
722 };
723
724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_GLCanvas",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
727 if (obj1) {
728 arg2 = (int)SWIG_As_int(obj1);
729 if (PyErr_Occurred()) SWIG_fail;
730 }
731 if (obj2) {
732 {
733 arg3 = &temp3;
734 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
735 }
736 }
737 if (obj3) {
738 {
739 arg4 = &temp4;
740 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
741 }
742 }
743 if (obj4) {
744 arg5 = (long)SWIG_As_long(obj4);
745 if (PyErr_Occurred()) SWIG_fail;
746 }
747 if (obj5) {
748 {
749 arg6 = wxString_in_helper(obj5);
750 if (arg6 == NULL) SWIG_fail;
751 temp6 = True;
752 }
753 }
754 if (obj6) {
755 {
756 int i;
757 if (PySequence_Check(obj6)) {
758 int size = PyObject_Length(obj6);
759 temp7 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int));
760 for (i = 0; i < size; i++) {
761 temp7[i] = PyInt_AsLong(PySequence_GetItem(obj6, i));
762 }
763 temp7[size] = 0;
764 arg7 = temp7;
765 }
766 }
767 }
768 if (obj7) {
769 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxPalette,
770 SWIG_POINTER_EXCEPTION | 0)) == -1)
771 SWIG_fail;
772 if (arg8 == NULL) {
773 PyErr_SetString(PyExc_TypeError,"null reference");
774 SWIG_fail;
775 }
776 }
777 {
778 if (!wxPyCheckForApp()) SWIG_fail;
779 PyThreadState* __tstate = wxPyBeginAllowThreads();
780 result = (wxGLCanvas *)new wxGLCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6,arg7,(wxPalette const &)*arg8);
781
782 wxPyEndAllowThreads(__tstate);
783 if (PyErr_Occurred()) SWIG_fail;
784 }
785 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGLCanvas, 1);
786 {
787 if (temp6)
788 delete arg6;
789 }
790 {
791 delete [] arg7;
792 }
793 return resultobj;
794 fail:
795 {
796 if (temp6)
797 delete arg6;
798 }
799 {
800 delete [] arg7;
801 }
802 return NULL;
803 }
804
805
806 static PyObject *_wrap_new_GLCanvasWithContext(PyObject *, PyObject *args, PyObject *kwargs) {
807 PyObject *resultobj;
808 wxWindow *arg1 = (wxWindow *) 0 ;
809 wxGLContext *arg2 = (wxGLContext *) NULL ;
810 int arg3 = (int) -1 ;
811 wxPoint const &arg4_defvalue = wxDefaultPosition ;
812 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
813 wxSize const &arg5_defvalue = wxDefaultSize ;
814 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
815 long arg6 = (long) 0 ;
816 wxString const &arg7_defvalue = wxPyGLCanvasNameStr ;
817 wxString *arg7 = (wxString *) &arg7_defvalue ;
818 int *arg8 = (int *) NULL ;
819 wxPalette const &arg9_defvalue = wxNullPalette ;
820 wxPalette *arg9 = (wxPalette *) &arg9_defvalue ;
821 wxGLCanvas *result;
822 wxPoint temp4 ;
823 wxSize temp5 ;
824 bool temp7 = False ;
825 int *temp8 ;
826 PyObject * obj0 = 0 ;
827 PyObject * obj1 = 0 ;
828 PyObject * obj2 = 0 ;
829 PyObject * obj3 = 0 ;
830 PyObject * obj4 = 0 ;
831 PyObject * obj5 = 0 ;
832 PyObject * obj6 = 0 ;
833 PyObject * obj7 = 0 ;
834 PyObject * obj8 = 0 ;
835 char *kwnames[] = {
836 (char *) "parent",(char *) "shared",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name",(char *) "attribList",(char *) "palette", NULL
837 };
838
839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GLCanvasWithContext",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
842 if (obj1) {
843 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGLContext,
844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
845 }
846 if (obj2) {
847 arg3 = (int)SWIG_As_int(obj2);
848 if (PyErr_Occurred()) SWIG_fail;
849 }
850 if (obj3) {
851 {
852 arg4 = &temp4;
853 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
854 }
855 }
856 if (obj4) {
857 {
858 arg5 = &temp5;
859 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
860 }
861 }
862 if (obj5) {
863 arg6 = (long)SWIG_As_long(obj5);
864 if (PyErr_Occurred()) SWIG_fail;
865 }
866 if (obj6) {
867 {
868 arg7 = wxString_in_helper(obj6);
869 if (arg7 == NULL) SWIG_fail;
870 temp7 = True;
871 }
872 }
873 if (obj7) {
874 {
875 int i;
876 if (PySequence_Check(obj7)) {
877 int size = PyObject_Length(obj7);
878 temp8 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int));
879 for (i = 0; i < size; i++) {
880 temp8[i] = PyInt_AsLong(PySequence_GetItem(obj7, i));
881 }
882 temp8[size] = 0;
883 arg8 = temp8;
884 }
885 }
886 }
887 if (obj8) {
888 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxPalette,
889 SWIG_POINTER_EXCEPTION | 0)) == -1)
890 SWIG_fail;
891 if (arg9 == NULL) {
892 PyErr_SetString(PyExc_TypeError,"null reference");
893 SWIG_fail;
894 }
895 }
896 {
897 if (!wxPyCheckForApp()) SWIG_fail;
898 PyThreadState* __tstate = wxPyBeginAllowThreads();
899 result = (wxGLCanvas *)new wxGLCanvas(arg1,(wxGLContext const *)arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxPalette const &)*arg9);
900
901 wxPyEndAllowThreads(__tstate);
902 if (PyErr_Occurred()) SWIG_fail;
903 }
904 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGLCanvas, 1);
905 {
906 if (temp7)
907 delete arg7;
908 }
909 {
910 delete [] arg8;
911 }
912 return resultobj;
913 fail:
914 {
915 if (temp7)
916 delete arg7;
917 }
918 {
919 delete [] arg8;
920 }
921 return NULL;
922 }
923
924
925 static PyObject *_wrap_GLCanvas_SetCurrent(PyObject *, PyObject *args, PyObject *kwargs) {
926 PyObject *resultobj;
927 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
928 PyObject * obj0 = 0 ;
929 char *kwnames[] = {
930 (char *) "self", NULL
931 };
932
933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_SetCurrent",kwnames,&obj0)) goto fail;
934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
936 {
937 PyThreadState* __tstate = wxPyBeginAllowThreads();
938 (arg1)->SetCurrent();
939
940 wxPyEndAllowThreads(__tstate);
941 if (PyErr_Occurred()) SWIG_fail;
942 }
943 Py_INCREF(Py_None); resultobj = Py_None;
944 return resultobj;
945 fail:
946 return NULL;
947 }
948
949
950 static PyObject *_wrap_GLCanvas_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
951 PyObject *resultobj;
952 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
953 wxString *arg2 = 0 ;
954 bool temp2 = False ;
955 PyObject * obj0 = 0 ;
956 PyObject * obj1 = 0 ;
957 char *kwnames[] = {
958 (char *) "self",(char *) "colour", NULL
959 };
960
961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GLCanvas_SetColour",kwnames,&obj0,&obj1)) goto fail;
962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
964 {
965 arg2 = wxString_in_helper(obj1);
966 if (arg2 == NULL) SWIG_fail;
967 temp2 = True;
968 }
969 {
970 PyThreadState* __tstate = wxPyBeginAllowThreads();
971 (arg1)->SetColour((wxString const &)*arg2);
972
973 wxPyEndAllowThreads(__tstate);
974 if (PyErr_Occurred()) SWIG_fail;
975 }
976 Py_INCREF(Py_None); resultobj = Py_None;
977 {
978 if (temp2)
979 delete arg2;
980 }
981 return resultobj;
982 fail:
983 {
984 if (temp2)
985 delete arg2;
986 }
987 return NULL;
988 }
989
990
991 static PyObject *_wrap_GLCanvas_SwapBuffers(PyObject *, PyObject *args, PyObject *kwargs) {
992 PyObject *resultobj;
993 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
994 PyObject * obj0 = 0 ;
995 char *kwnames[] = {
996 (char *) "self", NULL
997 };
998
999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_SwapBuffers",kwnames,&obj0)) goto fail;
1000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
1001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1002 {
1003 PyThreadState* __tstate = wxPyBeginAllowThreads();
1004 (arg1)->SwapBuffers();
1005
1006 wxPyEndAllowThreads(__tstate);
1007 if (PyErr_Occurred()) SWIG_fail;
1008 }
1009 Py_INCREF(Py_None); resultobj = Py_None;
1010 return resultobj;
1011 fail:
1012 return NULL;
1013 }
1014
1015
1016 static PyObject *_wrap_GLCanvas_GetContext(PyObject *, PyObject *args, PyObject *kwargs) {
1017 PyObject *resultobj;
1018 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
1019 wxGLContext *result;
1020 PyObject * obj0 = 0 ;
1021 char *kwnames[] = {
1022 (char *) "self", NULL
1023 };
1024
1025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_GetContext",kwnames,&obj0)) goto fail;
1026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
1027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1028 {
1029 PyThreadState* __tstate = wxPyBeginAllowThreads();
1030 result = (wxGLContext *)(arg1)->GetContext();
1031
1032 wxPyEndAllowThreads(__tstate);
1033 if (PyErr_Occurred()) SWIG_fail;
1034 }
1035 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGLContext, 0);
1036 return resultobj;
1037 fail:
1038 return NULL;
1039 }
1040
1041
1042 static PyObject * GLCanvas_swigregister(PyObject *, PyObject *args) {
1043 PyObject *obj;
1044 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1045 SWIG_TypeClientData(SWIGTYPE_p_wxGLCanvas, obj);
1046 Py_INCREF(obj);
1047 return Py_BuildValue((char *)"");
1048 }
1049 static PyMethodDef SwigMethods[] = {
1050 { (char *)"new_GLContext", (PyCFunction) _wrap_new_GLContext, METH_VARARGS | METH_KEYWORDS, NULL },
1051 { (char *)"delete_GLContext", (PyCFunction) _wrap_delete_GLContext, METH_VARARGS | METH_KEYWORDS, NULL },
1052 { (char *)"GLContext_SetCurrent", (PyCFunction) _wrap_GLContext_SetCurrent, METH_VARARGS | METH_KEYWORDS, NULL },
1053 { (char *)"GLContext_SetColour", (PyCFunction) _wrap_GLContext_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
1054 { (char *)"GLContext_SwapBuffers", (PyCFunction) _wrap_GLContext_SwapBuffers, METH_VARARGS | METH_KEYWORDS, NULL },
1055 { (char *)"GLContext_GetWindow", (PyCFunction) _wrap_GLContext_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
1056 { (char *)"GLContext_swigregister", GLContext_swigregister, METH_VARARGS, NULL },
1057 { (char *)"new_GLCanvas", (PyCFunction) _wrap_new_GLCanvas, METH_VARARGS | METH_KEYWORDS, NULL },
1058 { (char *)"new_GLCanvasWithContext", (PyCFunction) _wrap_new_GLCanvasWithContext, METH_VARARGS | METH_KEYWORDS, NULL },
1059 { (char *)"GLCanvas_SetCurrent", (PyCFunction) _wrap_GLCanvas_SetCurrent, METH_VARARGS | METH_KEYWORDS, NULL },
1060 { (char *)"GLCanvas_SetColour", (PyCFunction) _wrap_GLCanvas_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
1061 { (char *)"GLCanvas_SwapBuffers", (PyCFunction) _wrap_GLCanvas_SwapBuffers, METH_VARARGS | METH_KEYWORDS, NULL },
1062 { (char *)"GLCanvas_GetContext", (PyCFunction) _wrap_GLCanvas_GetContext, METH_VARARGS | METH_KEYWORDS, NULL },
1063 { (char *)"GLCanvas_swigregister", GLCanvas_swigregister, METH_VARARGS, NULL },
1064 { NULL, NULL, 0, NULL }
1065 };
1066
1067
1068 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
1069
1070 static void *_p_wxControlTo_p_wxWindow(void *x) {
1071 return (void *)((wxWindow *) ((wxControl *) x));
1072 }
1073 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
1074 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
1075 }
1076 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
1077 return (void *)((wxWindow *) ((wxMenuBar *) x));
1078 }
1079 static void *_p_wxGLCanvasTo_p_wxWindow(void *x) {
1080 return (void *)((wxWindow *) ((wxGLCanvas *) x));
1081 }
1082 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
1083 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
1084 }
1085 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
1086 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
1087 }
1088 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
1089 return (void *)((wxObject *) ((wxSizerItem *) x));
1090 }
1091 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
1092 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
1093 }
1094 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
1095 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
1096 }
1097 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
1098 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
1099 }
1100 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
1101 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
1102 }
1103 static void *_p_wxSizerTo_p_wxObject(void *x) {
1104 return (void *)((wxObject *) ((wxSizer *) x));
1105 }
1106 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
1107 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
1108 }
1109 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
1110 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
1111 }
1112 static void *_p_wxEventTo_p_wxObject(void *x) {
1113 return (void *)((wxObject *) ((wxEvent *) x));
1114 }
1115 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
1116 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
1117 }
1118 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
1119 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
1120 }
1121 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
1122 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
1123 }
1124 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
1125 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
1126 }
1127 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
1128 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
1129 }
1130 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
1131 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
1132 }
1133 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
1134 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
1135 }
1136 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
1137 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
1138 }
1139 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
1140 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
1141 }
1142 static void *_p_wxControlTo_p_wxObject(void *x) {
1143 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
1144 }
1145 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
1146 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
1147 }
1148 static void *_p_wxFSFileTo_p_wxObject(void *x) {
1149 return (void *)((wxObject *) ((wxFSFile *) x));
1150 }
1151 static void *_p_wxPySizerTo_p_wxObject(void *x) {
1152 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
1153 }
1154 static void *_p_wxPyEventTo_p_wxObject(void *x) {
1155 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
1156 }
1157 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
1158 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
1159 }
1160 static void *_p_wxGLContextTo_p_wxObject(void *x) {
1161 return (void *)((wxObject *) ((wxGLContext *) x));
1162 }
1163 static void *_p_wxShowEventTo_p_wxObject(void *x) {
1164 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
1165 }
1166 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
1167 return (void *)((wxObject *) ((wxMenuItem *) x));
1168 }
1169 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
1170 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
1171 }
1172 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
1173 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
1174 }
1175 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
1176 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
1177 }
1178 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
1179 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
1180 }
1181 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
1182 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
1183 }
1184 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
1185 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
1186 }
1187 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
1188 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
1189 }
1190 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
1191 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
1192 }
1193 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
1194 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
1195 }
1196 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
1197 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
1198 }
1199 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
1200 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
1201 }
1202 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
1203 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
1204 }
1205 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
1206 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
1207 }
1208 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
1209 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
1210 }
1211 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
1212 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
1213 }
1214 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
1215 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
1216 }
1217 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
1218 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
1219 }
1220 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
1221 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
1222 }
1223 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
1224 return (void *)((wxObject *) ((wxImageHandler *) x));
1225 }
1226 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
1227 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
1228 }
1229 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
1230 return (void *)((wxObject *) ((wxEvtHandler *) x));
1231 }
1232 static void *_p_wxGLCanvasTo_p_wxObject(void *x) {
1233 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxGLCanvas *) x));
1234 }
1235 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
1236 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
1237 }
1238 static void *_p_wxImageTo_p_wxObject(void *x) {
1239 return (void *)((wxObject *) ((wxImage *) x));
1240 }
1241 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
1242 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
1243 }
1244 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
1245 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
1246 }
1247 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
1248 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
1249 }
1250 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
1251 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
1252 }
1253 static void *_p_wxWindowTo_p_wxObject(void *x) {
1254 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
1255 }
1256 static void *_p_wxMenuTo_p_wxObject(void *x) {
1257 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
1258 }
1259 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
1260 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
1261 }
1262 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
1263 return (void *)((wxObject *) ((wxFileSystem *) x));
1264 }
1265 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
1266 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
1267 }
1268 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
1269 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
1270 }
1271 static void *_p_wxPyAppTo_p_wxObject(void *x) {
1272 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
1273 }
1274 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
1275 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
1276 }
1277 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
1278 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
1279 }
1280 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
1281 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
1282 }
1283 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
1284 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
1285 }
1286 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
1287 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
1288 }
1289 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
1290 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
1291 }
1292 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
1293 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
1294 }
1295 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
1296 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
1297 }
1298 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
1299 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
1300 }
1301 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
1302 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
1303 }
1304 static void *_p_wxValidatorTo_p_wxObject(void *x) {
1305 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
1306 }
1307 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
1308 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
1309 }
1310 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
1311 return (void *)((wxEvtHandler *) ((wxWindow *) x));
1312 }
1313 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
1314 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
1315 }
1316 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
1317 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
1318 }
1319 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
1320 return (void *)((wxEvtHandler *) ((wxValidator *) x));
1321 }
1322 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
1323 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
1324 }
1325 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
1326 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
1327 }
1328 static void *_p_wxGLCanvasTo_p_wxEvtHandler(void *x) {
1329 return (void *)((wxEvtHandler *) (wxWindow *) ((wxGLCanvas *) x));
1330 }
1331 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
1332 return (void *)((wxEvtHandler *) ((wxMenu *) x));
1333 }
1334 static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGLCanvas", _p_wxGLCanvasTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1335 static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGLContext", _p_wxGLContextTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGLCanvas", _p_wxGLCanvasTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1336 static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGLCanvas", _p_wxGLCanvasTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1337 static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1338 static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0, 0, 0, 0},{"_p_wxPalette", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1339 static swig_type_info _swigt__p_wxGLCanvas[] = {{"_p_wxGLCanvas", 0, "wxGLCanvas *", 0, 0, 0, 0},{"_p_wxGLCanvas", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1340 static swig_type_info _swigt__p_wxGLContext[] = {{"_p_wxGLContext", 0, "wxGLContext *", 0, 0, 0, 0},{"_p_wxGLContext", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1341 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1342
1343 static swig_type_info *swig_types_initial[] = {
1344 _swigt__p_wxWindow,
1345 _swigt__p_wxObject,
1346 _swigt__p_wxEvtHandler,
1347 _swigt__p_char,
1348 _swigt__p_wxPalette,
1349 _swigt__p_wxGLCanvas,
1350 _swigt__p_wxGLContext,
1351 _swigt__p_int,
1352 0
1353 };
1354
1355
1356 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
1357
1358 static swig_const_info swig_const_table[] = {
1359 {0, 0, 0, 0.0, 0, 0}};
1360
1361 #ifdef __cplusplus
1362 }
1363 #endif
1364
1365 #ifdef __cplusplus
1366 extern "C"
1367 #endif
1368 SWIGEXPORT(void) SWIG_init(void) {
1369 static PyObject *SWIG_globals = 0;
1370 static int typeinit = 0;
1371 PyObject *m, *d;
1372 int i;
1373 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
1374 m = Py_InitModule((char *) SWIG_name, SwigMethods);
1375 d = PyModule_GetDict(m);
1376
1377 if (!typeinit) {
1378 for (i = 0; swig_types_initial[i]; i++) {
1379 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
1380 }
1381 typeinit = 1;
1382 }
1383 SWIG_InstallConstants(d,swig_const_table);
1384
1385 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
1386 SWIG_addvarlink(SWIG_globals,(char*)"GLCanvasNameStr",_wrap_GLCanvasNameStr_get, _wrap_GLCanvasNameStr_set);
1387 PyDict_SetItemString(d,"WX_GL_RGBA", SWIG_From_int((int)WX_GL_RGBA));
1388 PyDict_SetItemString(d,"WX_GL_BUFFER_SIZE", SWIG_From_int((int)WX_GL_BUFFER_SIZE));
1389 PyDict_SetItemString(d,"WX_GL_LEVEL", SWIG_From_int((int)WX_GL_LEVEL));
1390 PyDict_SetItemString(d,"WX_GL_DOUBLEBUFFER", SWIG_From_int((int)WX_GL_DOUBLEBUFFER));
1391 PyDict_SetItemString(d,"WX_GL_STEREO", SWIG_From_int((int)WX_GL_STEREO));
1392 PyDict_SetItemString(d,"WX_GL_AUX_BUFFERS", SWIG_From_int((int)WX_GL_AUX_BUFFERS));
1393 PyDict_SetItemString(d,"WX_GL_MIN_RED", SWIG_From_int((int)WX_GL_MIN_RED));
1394 PyDict_SetItemString(d,"WX_GL_MIN_GREEN", SWIG_From_int((int)WX_GL_MIN_GREEN));
1395 PyDict_SetItemString(d,"WX_GL_MIN_BLUE", SWIG_From_int((int)WX_GL_MIN_BLUE));
1396 PyDict_SetItemString(d,"WX_GL_MIN_ALPHA", SWIG_From_int((int)WX_GL_MIN_ALPHA));
1397 PyDict_SetItemString(d,"WX_GL_DEPTH_SIZE", SWIG_From_int((int)WX_GL_DEPTH_SIZE));
1398 PyDict_SetItemString(d,"WX_GL_STENCIL_SIZE", SWIG_From_int((int)WX_GL_STENCIL_SIZE));
1399 PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_RED", SWIG_From_int((int)WX_GL_MIN_ACCUM_RED));
1400 PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_GREEN", SWIG_From_int((int)WX_GL_MIN_ACCUM_GREEN));
1401 PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_BLUE", SWIG_From_int((int)WX_GL_MIN_ACCUM_BLUE));
1402 PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_ALPHA", SWIG_From_int((int)WX_GL_MIN_ACCUM_ALPHA));
1403
1404
1405
1406 }
1407