]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/glcanvas/msw/glcanvas_wrap.cpp
Some change notes
[wxWidgets.git] / wxPython / contrib / glcanvas / msw / 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 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
266 #define SWIG_From_signed_SS_char PyInt_FromLong
267 /*@@*/
268 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
269 #define SWIG_From_unsigned_SS_char PyInt_FromLong
270 /*@@*/
271 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
272 #define SWIG_From_short PyInt_FromLong
273 /*@@*/
274 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
275 #define SWIG_From_unsigned_SS_short PyInt_FromLong
276 /*@@*/
277 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
278 #define SWIG_From_int PyInt_FromLong
279 /*@@*/
280 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
281 #define SWIG_From_long PyInt_FromLong
282 /*@@*/
283 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
284 #define SWIG_From_float PyFloat_FromDouble
285 /*@@*/
286 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\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_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
655 PyObject *resultobj;
656 wxGLContext *arg1 = (wxGLContext *) 0 ;
657 wxWindow *result;
658 PyObject * obj0 = 0 ;
659 char *kwnames[] = {
660 (char *) "self", NULL
661 };
662
663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_GetWindow",kwnames,&obj0)) goto fail;
664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
666 {
667 PyThreadState* __tstate = wxPyBeginAllowThreads();
668 result = (wxWindow *)(arg1)->GetWindow();
669
670 wxPyEndAllowThreads(__tstate);
671 if (PyErr_Occurred()) SWIG_fail;
672 }
673 {
674 resultobj = wxPyMake_wxObject(result, 0);
675 }
676 return resultobj;
677 fail:
678 return NULL;
679 }
680
681
682 static PyObject * GLContext_swigregister(PyObject *, PyObject *args) {
683 PyObject *obj;
684 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
685 SWIG_TypeClientData(SWIGTYPE_p_wxGLContext, obj);
686 Py_INCREF(obj);
687 return Py_BuildValue((char *)"");
688 }
689 static PyObject *_wrap_new_GLCanvas(PyObject *, PyObject *args, PyObject *kwargs) {
690 PyObject *resultobj;
691 wxWindow *arg1 = (wxWindow *) 0 ;
692 int arg2 = (int) -1 ;
693 wxPoint const &arg3_defvalue = wxDefaultPosition ;
694 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
695 wxSize const &arg4_defvalue = wxDefaultSize ;
696 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
697 long arg5 = (long) 0 ;
698 wxString const &arg6_defvalue = wxPyGLCanvasNameStr ;
699 wxString *arg6 = (wxString *) &arg6_defvalue ;
700 int *arg7 = (int *) NULL ;
701 wxPalette const &arg8_defvalue = wxNullPalette ;
702 wxPalette *arg8 = (wxPalette *) &arg8_defvalue ;
703 wxGLCanvas *result;
704 wxPoint temp3 ;
705 wxSize temp4 ;
706 bool temp6 = False ;
707 int *temp7 ;
708 PyObject * obj0 = 0 ;
709 PyObject * obj1 = 0 ;
710 PyObject * obj2 = 0 ;
711 PyObject * obj3 = 0 ;
712 PyObject * obj4 = 0 ;
713 PyObject * obj5 = 0 ;
714 PyObject * obj6 = 0 ;
715 PyObject * obj7 = 0 ;
716 char *kwnames[] = {
717 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name",(char *) "attribList",(char *) "palette", NULL
718 };
719
720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_GLCanvas",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
723 if (obj1) {
724 arg2 = (int)SWIG_As_int(obj1);
725 if (PyErr_Occurred()) SWIG_fail;
726 }
727 if (obj2) {
728 {
729 arg3 = &temp3;
730 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
731 }
732 }
733 if (obj3) {
734 {
735 arg4 = &temp4;
736 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
737 }
738 }
739 if (obj4) {
740 arg5 = (long)SWIG_As_long(obj4);
741 if (PyErr_Occurred()) SWIG_fail;
742 }
743 if (obj5) {
744 {
745 arg6 = wxString_in_helper(obj5);
746 if (arg6 == NULL) SWIG_fail;
747 temp6 = True;
748 }
749 }
750 if (obj6) {
751 {
752 int i;
753 if (PySequence_Check(obj6)) {
754 int size = PyObject_Length(obj6);
755 temp7 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int));
756 for (i = 0; i < size; i++) {
757 temp7[i] = PyInt_AsLong(PySequence_GetItem(obj6, i));
758 }
759 temp7[size] = 0;
760 arg7 = temp7;
761 }
762 }
763 }
764 if (obj7) {
765 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxPalette,
766 SWIG_POINTER_EXCEPTION | 0)) == -1)
767 SWIG_fail;
768 if (arg8 == NULL) {
769 PyErr_SetString(PyExc_TypeError,"null reference");
770 SWIG_fail;
771 }
772 }
773 {
774 if (!wxPyCheckForApp()) SWIG_fail;
775 PyThreadState* __tstate = wxPyBeginAllowThreads();
776 result = (wxGLCanvas *)new wxGLCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6,arg7,(wxPalette const &)*arg8);
777
778 wxPyEndAllowThreads(__tstate);
779 if (PyErr_Occurred()) SWIG_fail;
780 }
781 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGLCanvas, 1);
782 {
783 if (temp6)
784 delete arg6;
785 }
786 {
787 delete [] arg7;
788 }
789 return resultobj;
790 fail:
791 {
792 if (temp6)
793 delete arg6;
794 }
795 {
796 delete [] arg7;
797 }
798 return NULL;
799 }
800
801
802 static PyObject *_wrap_new_GLCanvasWithContext(PyObject *, PyObject *args, PyObject *kwargs) {
803 PyObject *resultobj;
804 wxWindow *arg1 = (wxWindow *) 0 ;
805 wxGLContext *arg2 = (wxGLContext *) NULL ;
806 int arg3 = (int) -1 ;
807 wxPoint const &arg4_defvalue = wxDefaultPosition ;
808 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
809 wxSize const &arg5_defvalue = wxDefaultSize ;
810 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
811 long arg6 = (long) 0 ;
812 wxString const &arg7_defvalue = wxPyGLCanvasNameStr ;
813 wxString *arg7 = (wxString *) &arg7_defvalue ;
814 int *arg8 = (int *) NULL ;
815 wxPalette const &arg9_defvalue = wxNullPalette ;
816 wxPalette *arg9 = (wxPalette *) &arg9_defvalue ;
817 wxGLCanvas *result;
818 wxPoint temp4 ;
819 wxSize temp5 ;
820 bool temp7 = False ;
821 int *temp8 ;
822 PyObject * obj0 = 0 ;
823 PyObject * obj1 = 0 ;
824 PyObject * obj2 = 0 ;
825 PyObject * obj3 = 0 ;
826 PyObject * obj4 = 0 ;
827 PyObject * obj5 = 0 ;
828 PyObject * obj6 = 0 ;
829 PyObject * obj7 = 0 ;
830 PyObject * obj8 = 0 ;
831 char *kwnames[] = {
832 (char *) "parent",(char *) "shared",(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|OOOOOOOO:new_GLCanvasWithContext",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
838 if (obj1) {
839 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGLContext,
840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
841 }
842 if (obj2) {
843 arg3 = (int)SWIG_As_int(obj2);
844 if (PyErr_Occurred()) SWIG_fail;
845 }
846 if (obj3) {
847 {
848 arg4 = &temp4;
849 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
850 }
851 }
852 if (obj4) {
853 {
854 arg5 = &temp5;
855 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
856 }
857 }
858 if (obj5) {
859 arg6 = (long)SWIG_As_long(obj5);
860 if (PyErr_Occurred()) SWIG_fail;
861 }
862 if (obj6) {
863 {
864 arg7 = wxString_in_helper(obj6);
865 if (arg7 == NULL) SWIG_fail;
866 temp7 = True;
867 }
868 }
869 if (obj7) {
870 {
871 int i;
872 if (PySequence_Check(obj7)) {
873 int size = PyObject_Length(obj7);
874 temp8 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int));
875 for (i = 0; i < size; i++) {
876 temp8[i] = PyInt_AsLong(PySequence_GetItem(obj7, i));
877 }
878 temp8[size] = 0;
879 arg8 = temp8;
880 }
881 }
882 }
883 if (obj8) {
884 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxPalette,
885 SWIG_POINTER_EXCEPTION | 0)) == -1)
886 SWIG_fail;
887 if (arg9 == NULL) {
888 PyErr_SetString(PyExc_TypeError,"null reference");
889 SWIG_fail;
890 }
891 }
892 {
893 if (!wxPyCheckForApp()) SWIG_fail;
894 PyThreadState* __tstate = wxPyBeginAllowThreads();
895 result = (wxGLCanvas *)new wxGLCanvas(arg1,(wxGLContext const *)arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxPalette const &)*arg9);
896
897 wxPyEndAllowThreads(__tstate);
898 if (PyErr_Occurred()) SWIG_fail;
899 }
900 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGLCanvas, 1);
901 {
902 if (temp7)
903 delete arg7;
904 }
905 {
906 delete [] arg8;
907 }
908 return resultobj;
909 fail:
910 {
911 if (temp7)
912 delete arg7;
913 }
914 {
915 delete [] arg8;
916 }
917 return NULL;
918 }
919
920
921 static PyObject *_wrap_GLCanvas_SetCurrent(PyObject *, PyObject *args, PyObject *kwargs) {
922 PyObject *resultobj;
923 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
924 PyObject * obj0 = 0 ;
925 char *kwnames[] = {
926 (char *) "self", NULL
927 };
928
929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_SetCurrent",kwnames,&obj0)) goto fail;
930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
932 {
933 PyThreadState* __tstate = wxPyBeginAllowThreads();
934 (arg1)->SetCurrent();
935
936 wxPyEndAllowThreads(__tstate);
937 if (PyErr_Occurred()) SWIG_fail;
938 }
939 Py_INCREF(Py_None); resultobj = Py_None;
940 return resultobj;
941 fail:
942 return NULL;
943 }
944
945
946 static PyObject *_wrap_GLCanvas_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
947 PyObject *resultobj;
948 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
949 wxString *arg2 = 0 ;
950 bool temp2 = False ;
951 PyObject * obj0 = 0 ;
952 PyObject * obj1 = 0 ;
953 char *kwnames[] = {
954 (char *) "self",(char *) "colour", NULL
955 };
956
957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GLCanvas_SetColour",kwnames,&obj0,&obj1)) goto fail;
958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
960 {
961 arg2 = wxString_in_helper(obj1);
962 if (arg2 == NULL) SWIG_fail;
963 temp2 = True;
964 }
965 {
966 PyThreadState* __tstate = wxPyBeginAllowThreads();
967 (arg1)->SetColour((wxString const &)*arg2);
968
969 wxPyEndAllowThreads(__tstate);
970 if (PyErr_Occurred()) SWIG_fail;
971 }
972 Py_INCREF(Py_None); resultobj = Py_None;
973 {
974 if (temp2)
975 delete arg2;
976 }
977 return resultobj;
978 fail:
979 {
980 if (temp2)
981 delete arg2;
982 }
983 return NULL;
984 }
985
986
987 static PyObject *_wrap_GLCanvas_SwapBuffers(PyObject *, PyObject *args, PyObject *kwargs) {
988 PyObject *resultobj;
989 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
990 PyObject * obj0 = 0 ;
991 char *kwnames[] = {
992 (char *) "self", NULL
993 };
994
995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_SwapBuffers",kwnames,&obj0)) goto fail;
996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
998 {
999 PyThreadState* __tstate = wxPyBeginAllowThreads();
1000 (arg1)->SwapBuffers();
1001
1002 wxPyEndAllowThreads(__tstate);
1003 if (PyErr_Occurred()) SWIG_fail;
1004 }
1005 Py_INCREF(Py_None); resultobj = Py_None;
1006 return resultobj;
1007 fail:
1008 return NULL;
1009 }
1010
1011
1012 static PyObject *_wrap_GLCanvas_GetContext(PyObject *, PyObject *args, PyObject *kwargs) {
1013 PyObject *resultobj;
1014 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
1015 wxGLContext *result;
1016 PyObject * obj0 = 0 ;
1017 char *kwnames[] = {
1018 (char *) "self", NULL
1019 };
1020
1021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_GetContext",kwnames,&obj0)) goto fail;
1022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
1023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1024 {
1025 PyThreadState* __tstate = wxPyBeginAllowThreads();
1026 result = (wxGLContext *)(arg1)->GetContext();
1027
1028 wxPyEndAllowThreads(__tstate);
1029 if (PyErr_Occurred()) SWIG_fail;
1030 }
1031 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGLContext, 0);
1032 return resultobj;
1033 fail:
1034 return NULL;
1035 }
1036
1037
1038 static PyObject *_wrap_GLCanvas_SetupPixelFormat(PyObject *, PyObject *args, PyObject *kwargs) {
1039 PyObject *resultobj;
1040 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
1041 int *arg2 = (int *) NULL ;
1042 int *temp2 ;
1043 PyObject * obj0 = 0 ;
1044 PyObject * obj1 = 0 ;
1045 char *kwnames[] = {
1046 (char *) "self",(char *) "attribList", NULL
1047 };
1048
1049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GLCanvas_SetupPixelFormat",kwnames,&obj0,&obj1)) goto fail;
1050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
1051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1052 if (obj1) {
1053 {
1054 int i;
1055 if (PySequence_Check(obj1)) {
1056 int size = PyObject_Length(obj1);
1057 temp2 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int));
1058 for (i = 0; i < size; i++) {
1059 temp2[i] = PyInt_AsLong(PySequence_GetItem(obj1, i));
1060 }
1061 temp2[size] = 0;
1062 arg2 = temp2;
1063 }
1064 }
1065 }
1066 {
1067 PyThreadState* __tstate = wxPyBeginAllowThreads();
1068 (arg1)->SetupPixelFormat(arg2);
1069
1070 wxPyEndAllowThreads(__tstate);
1071 if (PyErr_Occurred()) SWIG_fail;
1072 }
1073 Py_INCREF(Py_None); resultobj = Py_None;
1074 {
1075 delete [] arg2;
1076 }
1077 return resultobj;
1078 fail:
1079 {
1080 delete [] arg2;
1081 }
1082 return NULL;
1083 }
1084
1085
1086 static PyObject *_wrap_GLCanvas_SetupPalette(PyObject *, PyObject *args, PyObject *kwargs) {
1087 PyObject *resultobj;
1088 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
1089 wxPalette *arg2 = 0 ;
1090 PyObject * obj0 = 0 ;
1091 PyObject * obj1 = 0 ;
1092 char *kwnames[] = {
1093 (char *) "self",(char *) "palette", NULL
1094 };
1095
1096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GLCanvas_SetupPalette",kwnames,&obj0,&obj1)) goto fail;
1097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
1098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1099 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
1100 SWIG_POINTER_EXCEPTION | 0)) == -1)
1101 SWIG_fail;
1102 if (arg2 == NULL) {
1103 PyErr_SetString(PyExc_TypeError,"null reference");
1104 SWIG_fail;
1105 }
1106 {
1107 PyThreadState* __tstate = wxPyBeginAllowThreads();
1108 (arg1)->SetupPalette((wxPalette const &)*arg2);
1109
1110 wxPyEndAllowThreads(__tstate);
1111 if (PyErr_Occurred()) SWIG_fail;
1112 }
1113 Py_INCREF(Py_None); resultobj = Py_None;
1114 return resultobj;
1115 fail:
1116 return NULL;
1117 }
1118
1119
1120 static PyObject *_wrap_GLCanvas_CreateDefaultPalette(PyObject *, PyObject *args, PyObject *kwargs) {
1121 PyObject *resultobj;
1122 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
1123 wxPalette result;
1124 PyObject * obj0 = 0 ;
1125 char *kwnames[] = {
1126 (char *) "self", NULL
1127 };
1128
1129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_CreateDefaultPalette",kwnames,&obj0)) goto fail;
1130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
1131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1132 {
1133 PyThreadState* __tstate = wxPyBeginAllowThreads();
1134 result = (arg1)->CreateDefaultPalette();
1135
1136 wxPyEndAllowThreads(__tstate);
1137 if (PyErr_Occurred()) SWIG_fail;
1138 }
1139 {
1140 wxPalette * resultptr;
1141 resultptr = new wxPalette((wxPalette &) result);
1142 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPalette, 1);
1143 }
1144 return resultobj;
1145 fail:
1146 return NULL;
1147 }
1148
1149
1150 static PyObject *_wrap_GLCanvas_GetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
1151 PyObject *resultobj;
1152 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
1153 wxPalette *result;
1154 PyObject * obj0 = 0 ;
1155 char *kwnames[] = {
1156 (char *) "self", NULL
1157 };
1158
1159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_GetPalette",kwnames,&obj0)) goto fail;
1160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
1161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1162 {
1163 PyThreadState* __tstate = wxPyBeginAllowThreads();
1164 result = (wxPalette *)(arg1)->GetPalette();
1165
1166 wxPyEndAllowThreads(__tstate);
1167 if (PyErr_Occurred()) SWIG_fail;
1168 }
1169 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 0);
1170 return resultobj;
1171 fail:
1172 return NULL;
1173 }
1174
1175
1176 static PyObject * GLCanvas_swigregister(PyObject *, PyObject *args) {
1177 PyObject *obj;
1178 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1179 SWIG_TypeClientData(SWIGTYPE_p_wxGLCanvas, obj);
1180 Py_INCREF(obj);
1181 return Py_BuildValue((char *)"");
1182 }
1183 static PyMethodDef SwigMethods[] = {
1184 { (char *)"new_GLContext", (PyCFunction) _wrap_new_GLContext, METH_VARARGS | METH_KEYWORDS, NULL },
1185 { (char *)"delete_GLContext", (PyCFunction) _wrap_delete_GLContext, METH_VARARGS | METH_KEYWORDS, NULL },
1186 { (char *)"GLContext_SetCurrent", (PyCFunction) _wrap_GLContext_SetCurrent, METH_VARARGS | METH_KEYWORDS, NULL },
1187 { (char *)"GLContext_SetColour", (PyCFunction) _wrap_GLContext_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
1188 { (char *)"GLContext_SwapBuffers", (PyCFunction) _wrap_GLContext_SwapBuffers, METH_VARARGS | METH_KEYWORDS, NULL },
1189 { (char *)"GLContext_GetWindow", (PyCFunction) _wrap_GLContext_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
1190 { (char *)"GLContext_swigregister", GLContext_swigregister, METH_VARARGS, NULL },
1191 { (char *)"new_GLCanvas", (PyCFunction) _wrap_new_GLCanvas, METH_VARARGS | METH_KEYWORDS, NULL },
1192 { (char *)"new_GLCanvasWithContext", (PyCFunction) _wrap_new_GLCanvasWithContext, METH_VARARGS | METH_KEYWORDS, NULL },
1193 { (char *)"GLCanvas_SetCurrent", (PyCFunction) _wrap_GLCanvas_SetCurrent, METH_VARARGS | METH_KEYWORDS, NULL },
1194 { (char *)"GLCanvas_SetColour", (PyCFunction) _wrap_GLCanvas_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
1195 { (char *)"GLCanvas_SwapBuffers", (PyCFunction) _wrap_GLCanvas_SwapBuffers, METH_VARARGS | METH_KEYWORDS, NULL },
1196 { (char *)"GLCanvas_GetContext", (PyCFunction) _wrap_GLCanvas_GetContext, METH_VARARGS | METH_KEYWORDS, NULL },
1197 { (char *)"GLCanvas_SetupPixelFormat", (PyCFunction) _wrap_GLCanvas_SetupPixelFormat, METH_VARARGS | METH_KEYWORDS, NULL },
1198 { (char *)"GLCanvas_SetupPalette", (PyCFunction) _wrap_GLCanvas_SetupPalette, METH_VARARGS | METH_KEYWORDS, NULL },
1199 { (char *)"GLCanvas_CreateDefaultPalette", (PyCFunction) _wrap_GLCanvas_CreateDefaultPalette, METH_VARARGS | METH_KEYWORDS, NULL },
1200 { (char *)"GLCanvas_GetPalette", (PyCFunction) _wrap_GLCanvas_GetPalette, METH_VARARGS | METH_KEYWORDS, NULL },
1201 { (char *)"GLCanvas_swigregister", GLCanvas_swigregister, METH_VARARGS, NULL },
1202 { NULL, NULL, 0, NULL }
1203 };
1204
1205
1206 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
1207
1208 static void *_p_wxControlTo_p_wxWindow(void *x) {
1209 return (void *)((wxWindow *) ((wxControl *) x));
1210 }
1211 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
1212 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
1213 }
1214 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
1215 return (void *)((wxWindow *) ((wxMenuBar *) x));
1216 }
1217 static void *_p_wxGLCanvasTo_p_wxWindow(void *x) {
1218 return (void *)((wxWindow *) ((wxGLCanvas *) x));
1219 }
1220 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
1221 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
1222 }
1223 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
1224 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
1225 }
1226 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
1227 return (void *)((wxObject *) ((wxSizerItem *) x));
1228 }
1229 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
1230 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
1231 }
1232 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
1233 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
1234 }
1235 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
1236 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
1237 }
1238 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
1239 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
1240 }
1241 static void *_p_wxSizerTo_p_wxObject(void *x) {
1242 return (void *)((wxObject *) ((wxSizer *) x));
1243 }
1244 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
1245 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
1246 }
1247 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
1248 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
1249 }
1250 static void *_p_wxEventTo_p_wxObject(void *x) {
1251 return (void *)((wxObject *) ((wxEvent *) x));
1252 }
1253 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
1254 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
1255 }
1256 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
1257 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
1258 }
1259 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
1260 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
1261 }
1262 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
1263 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
1264 }
1265 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
1266 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
1267 }
1268 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
1269 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
1270 }
1271 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
1272 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
1273 }
1274 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
1275 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
1276 }
1277 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
1278 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
1279 }
1280 static void *_p_wxControlTo_p_wxObject(void *x) {
1281 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
1282 }
1283 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
1284 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
1285 }
1286 static void *_p_wxFSFileTo_p_wxObject(void *x) {
1287 return (void *)((wxObject *) ((wxFSFile *) x));
1288 }
1289 static void *_p_wxPySizerTo_p_wxObject(void *x) {
1290 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
1291 }
1292 static void *_p_wxPyEventTo_p_wxObject(void *x) {
1293 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
1294 }
1295 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
1296 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
1297 }
1298 static void *_p_wxGLContextTo_p_wxObject(void *x) {
1299 return (void *)((wxObject *) ((wxGLContext *) x));
1300 }
1301 static void *_p_wxShowEventTo_p_wxObject(void *x) {
1302 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
1303 }
1304 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
1305 return (void *)((wxObject *) ((wxMenuItem *) x));
1306 }
1307 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
1308 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
1309 }
1310 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
1311 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
1312 }
1313 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
1314 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
1315 }
1316 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
1317 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
1318 }
1319 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
1320 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
1321 }
1322 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
1323 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
1324 }
1325 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
1326 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
1327 }
1328 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
1329 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
1330 }
1331 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
1332 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
1333 }
1334 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
1335 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
1336 }
1337 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
1338 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
1339 }
1340 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
1341 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
1342 }
1343 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
1344 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
1345 }
1346 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
1347 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
1348 }
1349 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
1350 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
1351 }
1352 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
1353 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
1354 }
1355 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
1356 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
1357 }
1358 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
1359 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
1360 }
1361 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
1362 return (void *)((wxObject *) ((wxImageHandler *) x));
1363 }
1364 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
1365 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
1366 }
1367 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
1368 return (void *)((wxObject *) ((wxEvtHandler *) x));
1369 }
1370 static void *_p_wxGLCanvasTo_p_wxObject(void *x) {
1371 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxGLCanvas *) x));
1372 }
1373 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
1374 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
1375 }
1376 static void *_p_wxImageTo_p_wxObject(void *x) {
1377 return (void *)((wxObject *) ((wxImage *) x));
1378 }
1379 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
1380 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
1381 }
1382 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
1383 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
1384 }
1385 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
1386 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
1387 }
1388 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
1389 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
1390 }
1391 static void *_p_wxWindowTo_p_wxObject(void *x) {
1392 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
1393 }
1394 static void *_p_wxMenuTo_p_wxObject(void *x) {
1395 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
1396 }
1397 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
1398 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
1399 }
1400 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
1401 return (void *)((wxObject *) ((wxFileSystem *) x));
1402 }
1403 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
1404 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
1405 }
1406 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
1407 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
1408 }
1409 static void *_p_wxPyAppTo_p_wxObject(void *x) {
1410 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
1411 }
1412 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
1413 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
1414 }
1415 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
1416 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
1417 }
1418 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
1419 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
1420 }
1421 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
1422 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
1423 }
1424 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
1425 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
1426 }
1427 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
1428 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
1429 }
1430 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
1431 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
1432 }
1433 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
1434 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
1435 }
1436 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
1437 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
1438 }
1439 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
1440 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
1441 }
1442 static void *_p_wxValidatorTo_p_wxObject(void *x) {
1443 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
1444 }
1445 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
1446 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
1447 }
1448 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
1449 return (void *)((wxEvtHandler *) ((wxWindow *) x));
1450 }
1451 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
1452 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
1453 }
1454 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
1455 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
1456 }
1457 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
1458 return (void *)((wxEvtHandler *) ((wxValidator *) x));
1459 }
1460 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
1461 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
1462 }
1463 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
1464 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
1465 }
1466 static void *_p_wxGLCanvasTo_p_wxEvtHandler(void *x) {
1467 return (void *)((wxEvtHandler *) (wxWindow *) ((wxGLCanvas *) x));
1468 }
1469 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
1470 return (void *)((wxEvtHandler *) ((wxMenu *) x));
1471 }
1472 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}};
1473 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}};
1474 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}};
1475 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}};
1476 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}};
1477 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}};
1478 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}};
1479 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}};
1480
1481 static swig_type_info *swig_types_initial[] = {
1482 _swigt__p_wxWindow,
1483 _swigt__p_wxObject,
1484 _swigt__p_wxEvtHandler,
1485 _swigt__p_char,
1486 _swigt__p_wxPalette,
1487 _swigt__p_wxGLCanvas,
1488 _swigt__p_wxGLContext,
1489 _swigt__p_int,
1490 0
1491 };
1492
1493
1494 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
1495
1496 static swig_const_info swig_const_table[] = {
1497 {0, 0, 0, 0.0, 0, 0}};
1498
1499 #ifdef __cplusplus
1500 }
1501 #endif
1502
1503 #ifdef __cplusplus
1504 extern "C"
1505 #endif
1506 SWIGEXPORT(void) SWIG_init(void) {
1507 static PyObject *SWIG_globals = 0;
1508 static int typeinit = 0;
1509 PyObject *m, *d;
1510 int i;
1511 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
1512 m = Py_InitModule((char *) SWIG_name, SwigMethods);
1513 d = PyModule_GetDict(m);
1514
1515 if (!typeinit) {
1516 for (i = 0; swig_types_initial[i]; i++) {
1517 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
1518 }
1519 typeinit = 1;
1520 }
1521 SWIG_InstallConstants(d,swig_const_table);
1522
1523 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
1524 SWIG_addvarlink(SWIG_globals,(char*)"GLCanvasNameStr",_wrap_GLCanvasNameStr_get, _wrap_GLCanvasNameStr_set);
1525 PyDict_SetItemString(d,"WX_GL_RGBA", SWIG_From_int((int)WX_GL_RGBA));
1526 PyDict_SetItemString(d,"WX_GL_BUFFER_SIZE", SWIG_From_int((int)WX_GL_BUFFER_SIZE));
1527 PyDict_SetItemString(d,"WX_GL_LEVEL", SWIG_From_int((int)WX_GL_LEVEL));
1528 PyDict_SetItemString(d,"WX_GL_DOUBLEBUFFER", SWIG_From_int((int)WX_GL_DOUBLEBUFFER));
1529 PyDict_SetItemString(d,"WX_GL_STEREO", SWIG_From_int((int)WX_GL_STEREO));
1530 PyDict_SetItemString(d,"WX_GL_AUX_BUFFERS", SWIG_From_int((int)WX_GL_AUX_BUFFERS));
1531 PyDict_SetItemString(d,"WX_GL_MIN_RED", SWIG_From_int((int)WX_GL_MIN_RED));
1532 PyDict_SetItemString(d,"WX_GL_MIN_GREEN", SWIG_From_int((int)WX_GL_MIN_GREEN));
1533 PyDict_SetItemString(d,"WX_GL_MIN_BLUE", SWIG_From_int((int)WX_GL_MIN_BLUE));
1534 PyDict_SetItemString(d,"WX_GL_MIN_ALPHA", SWIG_From_int((int)WX_GL_MIN_ALPHA));
1535 PyDict_SetItemString(d,"WX_GL_DEPTH_SIZE", SWIG_From_int((int)WX_GL_DEPTH_SIZE));
1536 PyDict_SetItemString(d,"WX_GL_STENCIL_SIZE", SWIG_From_int((int)WX_GL_STENCIL_SIZE));
1537 PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_RED", SWIG_From_int((int)WX_GL_MIN_ACCUM_RED));
1538 PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_GREEN", SWIG_From_int((int)WX_GL_MIN_ACCUM_GREEN));
1539 PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_BLUE", SWIG_From_int((int)WX_GL_MIN_ACCUM_BLUE));
1540 PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_ALPHA", SWIG_From_int((int)WX_GL_MIN_ACCUM_ALPHA));
1541
1542
1543
1544 }
1545