]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/glcanvas/gtk/glcanvas_wrap.cpp
Some change notes
[wxWidgets.git] / wxPython / contrib / glcanvas / gtk / 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
421 SWIGSTATICINLINE(int)
422 SWIG_As_int(PyObject* obj)
423 {
424 int v;
425 if (!SWIG_AsVal_int(obj, &v)) {
426 /*
427 this is needed to make valgrind/purify happier. the other
428 solution is throw an exception, but since this code should work
429 with plain C ....
430 */
431 memset((void*)&v, 0, sizeof(int));
432 }
433 return v;
434 }
435
436
437 SWIGSTATICINLINE(long)
438 SWIG_As_long(PyObject* obj)
439 {
440 long v;
441 if (!SWIG_AsVal_long(obj, &v)) {
442 /*
443 this is needed to make valgrind/purify happier. the other
444 solution is throw an exception, but since this code should work
445 with plain C ....
446 */
447 memset((void*)&v, 0, sizeof(long));
448 }
449 return v;
450 }
451
452
453 SWIGSTATICINLINE(int)
454 SWIG_Check_int(PyObject* obj)
455 {
456 return SWIG_AsVal_int(obj, (int*)0);
457 }
458
459
460 SWIGSTATICINLINE(int)
461 SWIG_Check_long(PyObject* obj)
462 {
463 return SWIG_AsVal_long(obj, (long*)0);
464 }
465
466 #ifdef __cplusplus
467 extern "C" {
468 #endif
469 static int _wrap_GLCanvasNameStr_set(PyObject *) {
470 PyErr_SetString(PyExc_TypeError,"Variable GLCanvasNameStr is read-only.");
471 return 1;
472 }
473
474
475 static PyObject *_wrap_GLCanvasNameStr_get() {
476 PyObject *pyobj;
477
478 {
479 #if wxUSE_UNICODE
480 pyobj = PyUnicode_FromWideChar((&wxPyGLCanvasNameStr)->c_str(), (&wxPyGLCanvasNameStr)->Len());
481 #else
482 pyobj = PyString_FromStringAndSize((&wxPyGLCanvasNameStr)->c_str(), (&wxPyGLCanvasNameStr)->Len());
483 #endif
484 }
485 return pyobj;
486 }
487
488
489 static PyObject *_wrap_new_GLContext(PyObject *, PyObject *args, PyObject *kwargs) {
490 PyObject *resultobj;
491 bool arg1 ;
492 wxGLCanvas *arg2 = (wxGLCanvas *) 0 ;
493 wxPalette const &arg3_defvalue = wxNullPalette ;
494 wxPalette *arg3 = (wxPalette *) &arg3_defvalue ;
495 wxGLContext *arg4 = (wxGLContext *) NULL ;
496 wxGLContext *result;
497 PyObject * obj0 = 0 ;
498 PyObject * obj1 = 0 ;
499 PyObject * obj2 = 0 ;
500 PyObject * obj3 = 0 ;
501 char *kwnames[] = {
502 (char *) "isRGB",(char *) "win",(char *) "palette",(char *) "other", NULL
503 };
504
505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_GLContext",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
506 arg1 = (bool)SWIG_As_bool(obj0);
507 if (PyErr_Occurred()) SWIG_fail;
508 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGLCanvas,
509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
510 if (obj2) {
511 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPalette,
512 SWIG_POINTER_EXCEPTION | 0)) == -1)
513 SWIG_fail;
514 if (arg3 == NULL) {
515 PyErr_SetString(PyExc_TypeError,"null reference");
516 SWIG_fail;
517 }
518 }
519 if (obj3) {
520 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGLContext,
521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
522 }
523 {
524 if (!wxPyCheckForApp()) SWIG_fail;
525 PyThreadState* __tstate = wxPyBeginAllowThreads();
526 result = (wxGLContext *)new wxGLContext(arg1,arg2,(wxPalette const &)*arg3,(wxGLContext const *)arg4);
527
528 wxPyEndAllowThreads(__tstate);
529 if (PyErr_Occurred()) SWIG_fail;
530 }
531 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGLContext, 1);
532 return resultobj;
533 fail:
534 return NULL;
535 }
536
537
538 static PyObject *_wrap_delete_GLContext(PyObject *, PyObject *args, PyObject *kwargs) {
539 PyObject *resultobj;
540 wxGLContext *arg1 = (wxGLContext *) 0 ;
541 PyObject * obj0 = 0 ;
542 char *kwnames[] = {
543 (char *) "self", NULL
544 };
545
546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GLContext",kwnames,&obj0)) goto fail;
547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
549 {
550 PyThreadState* __tstate = wxPyBeginAllowThreads();
551 delete arg1;
552
553 wxPyEndAllowThreads(__tstate);
554 if (PyErr_Occurred()) SWIG_fail;
555 }
556 Py_INCREF(Py_None); resultobj = Py_None;
557 return resultobj;
558 fail:
559 return NULL;
560 }
561
562
563 static PyObject *_wrap_GLContext_SetCurrent(PyObject *, PyObject *args, PyObject *kwargs) {
564 PyObject *resultobj;
565 wxGLContext *arg1 = (wxGLContext *) 0 ;
566 PyObject * obj0 = 0 ;
567 char *kwnames[] = {
568 (char *) "self", NULL
569 };
570
571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_SetCurrent",kwnames,&obj0)) goto fail;
572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
574 {
575 PyThreadState* __tstate = wxPyBeginAllowThreads();
576 (arg1)->SetCurrent();
577
578 wxPyEndAllowThreads(__tstate);
579 if (PyErr_Occurred()) SWIG_fail;
580 }
581 Py_INCREF(Py_None); resultobj = Py_None;
582 return resultobj;
583 fail:
584 return NULL;
585 }
586
587
588 static PyObject *_wrap_GLContext_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
589 PyObject *resultobj;
590 wxGLContext *arg1 = (wxGLContext *) 0 ;
591 wxString *arg2 = 0 ;
592 bool temp2 = False ;
593 PyObject * obj0 = 0 ;
594 PyObject * obj1 = 0 ;
595 char *kwnames[] = {
596 (char *) "self",(char *) "colour", NULL
597 };
598
599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GLContext_SetColour",kwnames,&obj0,&obj1)) goto fail;
600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
602 {
603 arg2 = wxString_in_helper(obj1);
604 if (arg2 == NULL) SWIG_fail;
605 temp2 = True;
606 }
607 {
608 PyThreadState* __tstate = wxPyBeginAllowThreads();
609 (arg1)->SetColour((wxString const &)*arg2);
610
611 wxPyEndAllowThreads(__tstate);
612 if (PyErr_Occurred()) SWIG_fail;
613 }
614 Py_INCREF(Py_None); resultobj = Py_None;
615 {
616 if (temp2)
617 delete arg2;
618 }
619 return resultobj;
620 fail:
621 {
622 if (temp2)
623 delete arg2;
624 }
625 return NULL;
626 }
627
628
629 static PyObject *_wrap_GLContext_SwapBuffers(PyObject *, PyObject *args, PyObject *kwargs) {
630 PyObject *resultobj;
631 wxGLContext *arg1 = (wxGLContext *) 0 ;
632 PyObject * obj0 = 0 ;
633 char *kwnames[] = {
634 (char *) "self", NULL
635 };
636
637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_SwapBuffers",kwnames,&obj0)) goto fail;
638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
640 {
641 PyThreadState* __tstate = wxPyBeginAllowThreads();
642 (arg1)->SwapBuffers();
643
644 wxPyEndAllowThreads(__tstate);
645 if (PyErr_Occurred()) SWIG_fail;
646 }
647 Py_INCREF(Py_None); resultobj = Py_None;
648 return resultobj;
649 fail:
650 return NULL;
651 }
652
653
654 static PyObject *_wrap_GLContext_SetupPixelFormat(PyObject *, PyObject *args, PyObject *kwargs) {
655 PyObject *resultobj;
656 wxGLContext *arg1 = (wxGLContext *) 0 ;
657 PyObject * obj0 = 0 ;
658 char *kwnames[] = {
659 (char *) "self", NULL
660 };
661
662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_SetupPixelFormat",kwnames,&obj0)) goto fail;
663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
665 {
666 PyThreadState* __tstate = wxPyBeginAllowThreads();
667 (arg1)->SetupPixelFormat();
668
669 wxPyEndAllowThreads(__tstate);
670 if (PyErr_Occurred()) SWIG_fail;
671 }
672 Py_INCREF(Py_None); resultobj = Py_None;
673 return resultobj;
674 fail:
675 return NULL;
676 }
677
678
679 static PyObject *_wrap_GLContext_SetupPalette(PyObject *, PyObject *args, PyObject *kwargs) {
680 PyObject *resultobj;
681 wxGLContext *arg1 = (wxGLContext *) 0 ;
682 wxPalette *arg2 = 0 ;
683 PyObject * obj0 = 0 ;
684 PyObject * obj1 = 0 ;
685 char *kwnames[] = {
686 (char *) "self",(char *) "palette", NULL
687 };
688
689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GLContext_SetupPalette",kwnames,&obj0,&obj1)) goto fail;
690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
692 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
693 SWIG_POINTER_EXCEPTION | 0)) == -1)
694 SWIG_fail;
695 if (arg2 == NULL) {
696 PyErr_SetString(PyExc_TypeError,"null reference");
697 SWIG_fail;
698 }
699 {
700 PyThreadState* __tstate = wxPyBeginAllowThreads();
701 (arg1)->SetupPalette((wxPalette const &)*arg2);
702
703 wxPyEndAllowThreads(__tstate);
704 if (PyErr_Occurred()) SWIG_fail;
705 }
706 Py_INCREF(Py_None); resultobj = Py_None;
707 return resultobj;
708 fail:
709 return NULL;
710 }
711
712
713 static PyObject *_wrap_GLContext_CreateDefaultPalette(PyObject *, PyObject *args, PyObject *kwargs) {
714 PyObject *resultobj;
715 wxGLContext *arg1 = (wxGLContext *) 0 ;
716 wxPalette result;
717 PyObject * obj0 = 0 ;
718 char *kwnames[] = {
719 (char *) "self", NULL
720 };
721
722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_CreateDefaultPalette",kwnames,&obj0)) goto fail;
723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
725 {
726 PyThreadState* __tstate = wxPyBeginAllowThreads();
727 result = (arg1)->CreateDefaultPalette();
728
729 wxPyEndAllowThreads(__tstate);
730 if (PyErr_Occurred()) SWIG_fail;
731 }
732 {
733 wxPalette * resultptr;
734 resultptr = new wxPalette((wxPalette &) result);
735 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPalette, 1);
736 }
737 return resultobj;
738 fail:
739 return NULL;
740 }
741
742
743 static PyObject *_wrap_GLContext_GetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
744 PyObject *resultobj;
745 wxGLContext *arg1 = (wxGLContext *) 0 ;
746 wxPalette *result;
747 PyObject * obj0 = 0 ;
748 char *kwnames[] = {
749 (char *) "self", NULL
750 };
751
752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_GetPalette",kwnames,&obj0)) goto fail;
753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
755 {
756 PyThreadState* __tstate = wxPyBeginAllowThreads();
757 result = (wxPalette *)(arg1)->GetPalette();
758
759 wxPyEndAllowThreads(__tstate);
760 if (PyErr_Occurred()) SWIG_fail;
761 }
762 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 0);
763 return resultobj;
764 fail:
765 return NULL;
766 }
767
768
769 static PyObject *_wrap_GLContext_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
770 PyObject *resultobj;
771 wxGLContext *arg1 = (wxGLContext *) 0 ;
772 wxWindow *result;
773 PyObject * obj0 = 0 ;
774 char *kwnames[] = {
775 (char *) "self", NULL
776 };
777
778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_GetWindow",kwnames,&obj0)) goto fail;
779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
781 {
782 PyThreadState* __tstate = wxPyBeginAllowThreads();
783 result = (wxWindow *)(arg1)->GetWindow();
784
785 wxPyEndAllowThreads(__tstate);
786 if (PyErr_Occurred()) SWIG_fail;
787 }
788 {
789 resultobj = wxPyMake_wxObject(result, 0);
790 }
791 return resultobj;
792 fail:
793 return NULL;
794 }
795
796
797 static PyObject * GLContext_swigregister(PyObject *, PyObject *args) {
798 PyObject *obj;
799 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
800 SWIG_TypeClientData(SWIGTYPE_p_wxGLContext, obj);
801 Py_INCREF(obj);
802 return Py_BuildValue((char *)"");
803 }
804 static PyObject *_wrap_new_GLCanvas(PyObject *, PyObject *args, PyObject *kwargs) {
805 PyObject *resultobj;
806 wxWindow *arg1 = (wxWindow *) 0 ;
807 int arg2 = (int) -1 ;
808 wxPoint const &arg3_defvalue = wxDefaultPosition ;
809 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
810 wxSize const &arg4_defvalue = wxDefaultSize ;
811 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
812 long arg5 = (long) 0 ;
813 wxString const &arg6_defvalue = wxPyGLCanvasNameStr ;
814 wxString *arg6 = (wxString *) &arg6_defvalue ;
815 int *arg7 = (int *) NULL ;
816 wxPalette const &arg8_defvalue = wxNullPalette ;
817 wxPalette *arg8 = (wxPalette *) &arg8_defvalue ;
818 wxGLCanvas *result;
819 wxPoint temp3 ;
820 wxSize temp4 ;
821 bool temp6 = False ;
822 int *temp7 ;
823 PyObject * obj0 = 0 ;
824 PyObject * obj1 = 0 ;
825 PyObject * obj2 = 0 ;
826 PyObject * obj3 = 0 ;
827 PyObject * obj4 = 0 ;
828 PyObject * obj5 = 0 ;
829 PyObject * obj6 = 0 ;
830 PyObject * obj7 = 0 ;
831 char *kwnames[] = {
832 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name",(char *) "attribList",(char *) "palette", NULL
833 };
834
835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_GLCanvas",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
838 if (obj1) {
839 arg2 = (int)SWIG_As_int(obj1);
840 if (PyErr_Occurred()) SWIG_fail;
841 }
842 if (obj2) {
843 {
844 arg3 = &temp3;
845 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
846 }
847 }
848 if (obj3) {
849 {
850 arg4 = &temp4;
851 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
852 }
853 }
854 if (obj4) {
855 arg5 = (long)SWIG_As_long(obj4);
856 if (PyErr_Occurred()) SWIG_fail;
857 }
858 if (obj5) {
859 {
860 arg6 = wxString_in_helper(obj5);
861 if (arg6 == NULL) SWIG_fail;
862 temp6 = True;
863 }
864 }
865 if (obj6) {
866 {
867 int i;
868 if (PySequence_Check(obj6)) {
869 int size = PyObject_Length(obj6);
870 temp7 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int));
871 for (i = 0; i < size; i++) {
872 temp7[i] = PyInt_AsLong(PySequence_GetItem(obj6, i));
873 }
874 temp7[size] = 0;
875 arg7 = temp7;
876 }
877 }
878 }
879 if (obj7) {
880 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxPalette,
881 SWIG_POINTER_EXCEPTION | 0)) == -1)
882 SWIG_fail;
883 if (arg8 == NULL) {
884 PyErr_SetString(PyExc_TypeError,"null reference");
885 SWIG_fail;
886 }
887 }
888 {
889 if (!wxPyCheckForApp()) SWIG_fail;
890 PyThreadState* __tstate = wxPyBeginAllowThreads();
891 result = (wxGLCanvas *)new wxGLCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6,arg7,(wxPalette const &)*arg8);
892
893 wxPyEndAllowThreads(__tstate);
894 if (PyErr_Occurred()) SWIG_fail;
895 }
896 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGLCanvas, 1);
897 {
898 if (temp6)
899 delete arg6;
900 }
901 {
902 delete [] arg7;
903 }
904 return resultobj;
905 fail:
906 {
907 if (temp6)
908 delete arg6;
909 }
910 {
911 delete [] arg7;
912 }
913 return NULL;
914 }
915
916
917 static PyObject *_wrap_new_GLCanvasWithContext(PyObject *, PyObject *args, PyObject *kwargs) {
918 PyObject *resultobj;
919 wxWindow *arg1 = (wxWindow *) 0 ;
920 wxGLContext *arg2 = (wxGLContext *) NULL ;
921 int arg3 = (int) -1 ;
922 wxPoint const &arg4_defvalue = wxDefaultPosition ;
923 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
924 wxSize const &arg5_defvalue = wxDefaultSize ;
925 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
926 long arg6 = (long) 0 ;
927 wxString const &arg7_defvalue = wxPyGLCanvasNameStr ;
928 wxString *arg7 = (wxString *) &arg7_defvalue ;
929 int *arg8 = (int *) NULL ;
930 wxPalette const &arg9_defvalue = wxNullPalette ;
931 wxPalette *arg9 = (wxPalette *) &arg9_defvalue ;
932 wxGLCanvas *result;
933 wxPoint temp4 ;
934 wxSize temp5 ;
935 bool temp7 = False ;
936 int *temp8 ;
937 PyObject * obj0 = 0 ;
938 PyObject * obj1 = 0 ;
939 PyObject * obj2 = 0 ;
940 PyObject * obj3 = 0 ;
941 PyObject * obj4 = 0 ;
942 PyObject * obj5 = 0 ;
943 PyObject * obj6 = 0 ;
944 PyObject * obj7 = 0 ;
945 PyObject * obj8 = 0 ;
946 char *kwnames[] = {
947 (char *) "parent",(char *) "shared",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name",(char *) "attribList",(char *) "palette", NULL
948 };
949
950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GLCanvasWithContext",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
953 if (obj1) {
954 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGLContext,
955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
956 }
957 if (obj2) {
958 arg3 = (int)SWIG_As_int(obj2);
959 if (PyErr_Occurred()) SWIG_fail;
960 }
961 if (obj3) {
962 {
963 arg4 = &temp4;
964 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
965 }
966 }
967 if (obj4) {
968 {
969 arg5 = &temp5;
970 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
971 }
972 }
973 if (obj5) {
974 arg6 = (long)SWIG_As_long(obj5);
975 if (PyErr_Occurred()) SWIG_fail;
976 }
977 if (obj6) {
978 {
979 arg7 = wxString_in_helper(obj6);
980 if (arg7 == NULL) SWIG_fail;
981 temp7 = True;
982 }
983 }
984 if (obj7) {
985 {
986 int i;
987 if (PySequence_Check(obj7)) {
988 int size = PyObject_Length(obj7);
989 temp8 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int));
990 for (i = 0; i < size; i++) {
991 temp8[i] = PyInt_AsLong(PySequence_GetItem(obj7, i));
992 }
993 temp8[size] = 0;
994 arg8 = temp8;
995 }
996 }
997 }
998 if (obj8) {
999 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxPalette,
1000 SWIG_POINTER_EXCEPTION | 0)) == -1)
1001 SWIG_fail;
1002 if (arg9 == NULL) {
1003 PyErr_SetString(PyExc_TypeError,"null reference");
1004 SWIG_fail;
1005 }
1006 }
1007 {
1008 if (!wxPyCheckForApp()) SWIG_fail;
1009 PyThreadState* __tstate = wxPyBeginAllowThreads();
1010 result = (wxGLCanvas *)new wxGLCanvas(arg1,(wxGLContext const *)arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxPalette const &)*arg9);
1011
1012 wxPyEndAllowThreads(__tstate);
1013 if (PyErr_Occurred()) SWIG_fail;
1014 }
1015 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGLCanvas, 1);
1016 {
1017 if (temp7)
1018 delete arg7;
1019 }
1020 {
1021 delete [] arg8;
1022 }
1023 return resultobj;
1024 fail:
1025 {
1026 if (temp7)
1027 delete arg7;
1028 }
1029 {
1030 delete [] arg8;
1031 }
1032 return NULL;
1033 }
1034
1035
1036 static PyObject *_wrap_GLCanvas_SetCurrent(PyObject *, PyObject *args, PyObject *kwargs) {
1037 PyObject *resultobj;
1038 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
1039 PyObject * obj0 = 0 ;
1040 char *kwnames[] = {
1041 (char *) "self", NULL
1042 };
1043
1044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_SetCurrent",kwnames,&obj0)) goto fail;
1045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
1046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1047 {
1048 PyThreadState* __tstate = wxPyBeginAllowThreads();
1049 (arg1)->SetCurrent();
1050
1051 wxPyEndAllowThreads(__tstate);
1052 if (PyErr_Occurred()) SWIG_fail;
1053 }
1054 Py_INCREF(Py_None); resultobj = Py_None;
1055 return resultobj;
1056 fail:
1057 return NULL;
1058 }
1059
1060
1061 static PyObject *_wrap_GLCanvas_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
1062 PyObject *resultobj;
1063 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
1064 wxString *arg2 = 0 ;
1065 bool temp2 = False ;
1066 PyObject * obj0 = 0 ;
1067 PyObject * obj1 = 0 ;
1068 char *kwnames[] = {
1069 (char *) "self",(char *) "colour", NULL
1070 };
1071
1072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GLCanvas_SetColour",kwnames,&obj0,&obj1)) goto fail;
1073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
1074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1075 {
1076 arg2 = wxString_in_helper(obj1);
1077 if (arg2 == NULL) SWIG_fail;
1078 temp2 = True;
1079 }
1080 {
1081 PyThreadState* __tstate = wxPyBeginAllowThreads();
1082 (arg1)->SetColour((wxString const &)*arg2);
1083
1084 wxPyEndAllowThreads(__tstate);
1085 if (PyErr_Occurred()) SWIG_fail;
1086 }
1087 Py_INCREF(Py_None); resultobj = Py_None;
1088 {
1089 if (temp2)
1090 delete arg2;
1091 }
1092 return resultobj;
1093 fail:
1094 {
1095 if (temp2)
1096 delete arg2;
1097 }
1098 return NULL;
1099 }
1100
1101
1102 static PyObject *_wrap_GLCanvas_SwapBuffers(PyObject *, PyObject *args, PyObject *kwargs) {
1103 PyObject *resultobj;
1104 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
1105 PyObject * obj0 = 0 ;
1106 char *kwnames[] = {
1107 (char *) "self", NULL
1108 };
1109
1110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_SwapBuffers",kwnames,&obj0)) goto fail;
1111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
1112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1113 {
1114 PyThreadState* __tstate = wxPyBeginAllowThreads();
1115 (arg1)->SwapBuffers();
1116
1117 wxPyEndAllowThreads(__tstate);
1118 if (PyErr_Occurred()) SWIG_fail;
1119 }
1120 Py_INCREF(Py_None); resultobj = Py_None;
1121 return resultobj;
1122 fail:
1123 return NULL;
1124 }
1125
1126
1127 static PyObject *_wrap_GLCanvas_GetContext(PyObject *, PyObject *args, PyObject *kwargs) {
1128 PyObject *resultobj;
1129 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
1130 wxGLContext *result;
1131 PyObject * obj0 = 0 ;
1132 char *kwnames[] = {
1133 (char *) "self", NULL
1134 };
1135
1136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_GetContext",kwnames,&obj0)) goto fail;
1137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
1138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1139 {
1140 PyThreadState* __tstate = wxPyBeginAllowThreads();
1141 result = (wxGLContext *)(arg1)->GetContext();
1142
1143 wxPyEndAllowThreads(__tstate);
1144 if (PyErr_Occurred()) SWIG_fail;
1145 }
1146 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGLContext, 0);
1147 return resultobj;
1148 fail:
1149 return NULL;
1150 }
1151
1152
1153 static PyObject * GLCanvas_swigregister(PyObject *, PyObject *args) {
1154 PyObject *obj;
1155 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1156 SWIG_TypeClientData(SWIGTYPE_p_wxGLCanvas, obj);
1157 Py_INCREF(obj);
1158 return Py_BuildValue((char *)"");
1159 }
1160 static PyMethodDef SwigMethods[] = {
1161 { (char *)"new_GLContext", (PyCFunction) _wrap_new_GLContext, METH_VARARGS | METH_KEYWORDS, NULL },
1162 { (char *)"delete_GLContext", (PyCFunction) _wrap_delete_GLContext, METH_VARARGS | METH_KEYWORDS, NULL },
1163 { (char *)"GLContext_SetCurrent", (PyCFunction) _wrap_GLContext_SetCurrent, METH_VARARGS | METH_KEYWORDS, NULL },
1164 { (char *)"GLContext_SetColour", (PyCFunction) _wrap_GLContext_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
1165 { (char *)"GLContext_SwapBuffers", (PyCFunction) _wrap_GLContext_SwapBuffers, METH_VARARGS | METH_KEYWORDS, NULL },
1166 { (char *)"GLContext_SetupPixelFormat", (PyCFunction) _wrap_GLContext_SetupPixelFormat, METH_VARARGS | METH_KEYWORDS, NULL },
1167 { (char *)"GLContext_SetupPalette", (PyCFunction) _wrap_GLContext_SetupPalette, METH_VARARGS | METH_KEYWORDS, NULL },
1168 { (char *)"GLContext_CreateDefaultPalette", (PyCFunction) _wrap_GLContext_CreateDefaultPalette, METH_VARARGS | METH_KEYWORDS, NULL },
1169 { (char *)"GLContext_GetPalette", (PyCFunction) _wrap_GLContext_GetPalette, METH_VARARGS | METH_KEYWORDS, NULL },
1170 { (char *)"GLContext_GetWindow", (PyCFunction) _wrap_GLContext_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
1171 { (char *)"GLContext_swigregister", GLContext_swigregister, METH_VARARGS, NULL },
1172 { (char *)"new_GLCanvas", (PyCFunction) _wrap_new_GLCanvas, METH_VARARGS | METH_KEYWORDS, NULL },
1173 { (char *)"new_GLCanvasWithContext", (PyCFunction) _wrap_new_GLCanvasWithContext, METH_VARARGS | METH_KEYWORDS, NULL },
1174 { (char *)"GLCanvas_SetCurrent", (PyCFunction) _wrap_GLCanvas_SetCurrent, METH_VARARGS | METH_KEYWORDS, NULL },
1175 { (char *)"GLCanvas_SetColour", (PyCFunction) _wrap_GLCanvas_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
1176 { (char *)"GLCanvas_SwapBuffers", (PyCFunction) _wrap_GLCanvas_SwapBuffers, METH_VARARGS | METH_KEYWORDS, NULL },
1177 { (char *)"GLCanvas_GetContext", (PyCFunction) _wrap_GLCanvas_GetContext, METH_VARARGS | METH_KEYWORDS, NULL },
1178 { (char *)"GLCanvas_swigregister", GLCanvas_swigregister, METH_VARARGS, NULL },
1179 { NULL, NULL, 0, NULL }
1180 };
1181
1182
1183 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
1184
1185 static void *_p_wxControlTo_p_wxWindow(void *x) {
1186 return (void *)((wxWindow *) ((wxControl *) x));
1187 }
1188 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
1189 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
1190 }
1191 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
1192 return (void *)((wxWindow *) ((wxMenuBar *) x));
1193 }
1194 static void *_p_wxGLCanvasTo_p_wxWindow(void *x) {
1195 return (void *)((wxWindow *) ((wxGLCanvas *) x));
1196 }
1197 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
1198 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
1199 }
1200 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
1201 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
1202 }
1203 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
1204 return (void *)((wxObject *) ((wxSizerItem *) x));
1205 }
1206 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
1207 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
1208 }
1209 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
1210 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
1211 }
1212 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
1213 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
1214 }
1215 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
1216 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
1217 }
1218 static void *_p_wxSizerTo_p_wxObject(void *x) {
1219 return (void *)((wxObject *) ((wxSizer *) x));
1220 }
1221 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
1222 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
1223 }
1224 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
1225 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
1226 }
1227 static void *_p_wxEventTo_p_wxObject(void *x) {
1228 return (void *)((wxObject *) ((wxEvent *) x));
1229 }
1230 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
1231 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
1232 }
1233 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
1234 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
1235 }
1236 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
1237 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
1238 }
1239 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
1240 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
1241 }
1242 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
1243 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
1244 }
1245 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
1246 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
1247 }
1248 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
1249 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
1250 }
1251 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
1252 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
1253 }
1254 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
1255 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
1256 }
1257 static void *_p_wxControlTo_p_wxObject(void *x) {
1258 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
1259 }
1260 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
1261 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
1262 }
1263 static void *_p_wxFSFileTo_p_wxObject(void *x) {
1264 return (void *)((wxObject *) ((wxFSFile *) x));
1265 }
1266 static void *_p_wxPySizerTo_p_wxObject(void *x) {
1267 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
1268 }
1269 static void *_p_wxPyEventTo_p_wxObject(void *x) {
1270 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
1271 }
1272 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
1273 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
1274 }
1275 static void *_p_wxGLContextTo_p_wxObject(void *x) {
1276 return (void *)((wxObject *) ((wxGLContext *) x));
1277 }
1278 static void *_p_wxShowEventTo_p_wxObject(void *x) {
1279 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
1280 }
1281 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
1282 return (void *)((wxObject *) ((wxMenuItem *) x));
1283 }
1284 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
1285 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
1286 }
1287 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
1288 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
1289 }
1290 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
1291 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
1292 }
1293 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
1294 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
1295 }
1296 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
1297 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
1298 }
1299 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
1300 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
1301 }
1302 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
1303 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
1304 }
1305 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
1306 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
1307 }
1308 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
1309 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
1310 }
1311 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
1312 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
1313 }
1314 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
1315 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
1316 }
1317 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
1318 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
1319 }
1320 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
1321 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
1322 }
1323 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
1324 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
1325 }
1326 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
1327 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
1328 }
1329 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
1330 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
1331 }
1332 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
1333 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
1334 }
1335 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
1336 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
1337 }
1338 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
1339 return (void *)((wxObject *) ((wxImageHandler *) x));
1340 }
1341 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
1342 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
1343 }
1344 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
1345 return (void *)((wxObject *) ((wxEvtHandler *) x));
1346 }
1347 static void *_p_wxGLCanvasTo_p_wxObject(void *x) {
1348 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxGLCanvas *) x));
1349 }
1350 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
1351 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
1352 }
1353 static void *_p_wxImageTo_p_wxObject(void *x) {
1354 return (void *)((wxObject *) ((wxImage *) x));
1355 }
1356 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
1357 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
1358 }
1359 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
1360 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
1361 }
1362 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
1363 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
1364 }
1365 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
1366 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
1367 }
1368 static void *_p_wxWindowTo_p_wxObject(void *x) {
1369 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
1370 }
1371 static void *_p_wxMenuTo_p_wxObject(void *x) {
1372 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
1373 }
1374 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
1375 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
1376 }
1377 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
1378 return (void *)((wxObject *) ((wxFileSystem *) x));
1379 }
1380 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
1381 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
1382 }
1383 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
1384 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
1385 }
1386 static void *_p_wxPyAppTo_p_wxObject(void *x) {
1387 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
1388 }
1389 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
1390 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
1391 }
1392 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
1393 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
1394 }
1395 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
1396 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
1397 }
1398 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
1399 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
1400 }
1401 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
1402 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
1403 }
1404 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
1405 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
1406 }
1407 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
1408 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
1409 }
1410 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
1411 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
1412 }
1413 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
1414 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
1415 }
1416 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
1417 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
1418 }
1419 static void *_p_wxValidatorTo_p_wxObject(void *x) {
1420 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
1421 }
1422 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
1423 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
1424 }
1425 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
1426 return (void *)((wxEvtHandler *) ((wxWindow *) x));
1427 }
1428 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
1429 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
1430 }
1431 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
1432 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
1433 }
1434 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
1435 return (void *)((wxEvtHandler *) ((wxValidator *) x));
1436 }
1437 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
1438 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
1439 }
1440 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
1441 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
1442 }
1443 static void *_p_wxGLCanvasTo_p_wxEvtHandler(void *x) {
1444 return (void *)((wxEvtHandler *) (wxWindow *) ((wxGLCanvas *) x));
1445 }
1446 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
1447 return (void *)((wxEvtHandler *) ((wxMenu *) x));
1448 }
1449 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}};
1450 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}};
1451 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}};
1452 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}};
1453 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}};
1454 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}};
1455 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}};
1456 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}};
1457
1458 static swig_type_info *swig_types_initial[] = {
1459 _swigt__p_wxWindow,
1460 _swigt__p_wxObject,
1461 _swigt__p_wxEvtHandler,
1462 _swigt__p_char,
1463 _swigt__p_wxPalette,
1464 _swigt__p_wxGLCanvas,
1465 _swigt__p_wxGLContext,
1466 _swigt__p_int,
1467 0
1468 };
1469
1470
1471 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
1472
1473 static swig_const_info swig_const_table[] = {
1474 {0, 0, 0, 0.0, 0, 0}};
1475
1476 #ifdef __cplusplus
1477 }
1478 #endif
1479
1480 #ifdef __cplusplus
1481 extern "C"
1482 #endif
1483 SWIGEXPORT(void) SWIG_init(void) {
1484 static PyObject *SWIG_globals = 0;
1485 static int typeinit = 0;
1486 PyObject *m, *d;
1487 int i;
1488 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
1489 m = Py_InitModule((char *) SWIG_name, SwigMethods);
1490 d = PyModule_GetDict(m);
1491
1492 if (!typeinit) {
1493 for (i = 0; swig_types_initial[i]; i++) {
1494 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
1495 }
1496 typeinit = 1;
1497 }
1498 SWIG_InstallConstants(d,swig_const_table);
1499
1500 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
1501 SWIG_addvarlink(SWIG_globals,(char*)"GLCanvasNameStr",_wrap_GLCanvasNameStr_get, _wrap_GLCanvasNameStr_set);
1502 PyDict_SetItemString(d,"WX_GL_RGBA", SWIG_From_int((int)WX_GL_RGBA));
1503 PyDict_SetItemString(d,"WX_GL_BUFFER_SIZE", SWIG_From_int((int)WX_GL_BUFFER_SIZE));
1504 PyDict_SetItemString(d,"WX_GL_LEVEL", SWIG_From_int((int)WX_GL_LEVEL));
1505 PyDict_SetItemString(d,"WX_GL_DOUBLEBUFFER", SWIG_From_int((int)WX_GL_DOUBLEBUFFER));
1506 PyDict_SetItemString(d,"WX_GL_STEREO", SWIG_From_int((int)WX_GL_STEREO));
1507 PyDict_SetItemString(d,"WX_GL_AUX_BUFFERS", SWIG_From_int((int)WX_GL_AUX_BUFFERS));
1508 PyDict_SetItemString(d,"WX_GL_MIN_RED", SWIG_From_int((int)WX_GL_MIN_RED));
1509 PyDict_SetItemString(d,"WX_GL_MIN_GREEN", SWIG_From_int((int)WX_GL_MIN_GREEN));
1510 PyDict_SetItemString(d,"WX_GL_MIN_BLUE", SWIG_From_int((int)WX_GL_MIN_BLUE));
1511 PyDict_SetItemString(d,"WX_GL_MIN_ALPHA", SWIG_From_int((int)WX_GL_MIN_ALPHA));
1512 PyDict_SetItemString(d,"WX_GL_DEPTH_SIZE", SWIG_From_int((int)WX_GL_DEPTH_SIZE));
1513 PyDict_SetItemString(d,"WX_GL_STENCIL_SIZE", SWIG_From_int((int)WX_GL_STENCIL_SIZE));
1514 PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_RED", SWIG_From_int((int)WX_GL_MIN_ACCUM_RED));
1515 PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_GREEN", SWIG_From_int((int)WX_GL_MIN_ACCUM_GREEN));
1516 PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_BLUE", SWIG_From_int((int)WX_GL_MIN_ACCUM_BLUE));
1517 PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_ALPHA", SWIG_From_int((int)WX_GL_MIN_ACCUM_ALPHA));
1518
1519
1520
1521 }
1522