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