]> git.saurik.com Git - wxWidgets.git/blame - wxPython/contrib/glcanvas/mac/glcanvas_wrap.cpp
Fixed a compile error
[wxWidgets.git] / wxPython / contrib / glcanvas / mac / glcanvas_wrap.cpp
CommitLineData
d14a1e28
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
2dbef272 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
9fd4be55
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
0f774bef
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
0f774bef
RD
83# define SWIGEXPORT(a) a
84# define SWIGIMPORT(a) a
d14a1e28
RD
85#endif
86
87#ifdef SWIG_GLOBAL
0f774bef 88# define SWIGRUNTIME(a) SWIGEXPORT(a)
d14a1e28 89#else
0f774bef 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 {
0f774bef 101 const char *name;
d14a1e28
RD
102 swig_converter_func converter;
103 const char *str;
0f774bef 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 *);
0f774bef
RD
118SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
d14a1e28
RD
120
121
122#ifdef __cplusplus
123}
423f194a 124
d14a1e28
RD
125#endif
126
0f774bef 127
d14a1e28
RD
128/***********************************************************************
129 * pyrun.swg for wxPython
130 *
131 * Include only the function prototypes and such from SWIG's pyrun.swg,
132 * but not the runtime functions themselves. This helps keep the
133 * wrapper files clean of unnecessary stuff that is in the libpy.c file
134 * anyway.
135 *
136 ************************************************************************/
137
d14a1e28
RD
138#include "Python.h"
139
2dbef272
RD
140#include <limits.h>
141#include <float.h>
142
143#ifdef __cplusplus
144#define SWIG_STATIC_INLINE static inline
145#else
146#define SWIG_STATIC_INLINE static
147#endif
148
149SWIG_STATIC_INLINE long
150SPyObj_AsLong(PyObject * obj)
151{
152 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
153}
154
155SWIG_STATIC_INLINE unsigned long
156SPyObj_AsUnsignedLong(PyObject * obj)
157{
158 if (PyLong_Check(obj)) {
159 return PyLong_AsUnsignedLong(obj);
160 } else {
161 long i = PyInt_AsLong(obj);
162 if ( !PyErr_Occurred() && (i < 0)) {
163 PyErr_SetString(PyExc_TypeError, "negative value for unsigned type");
164 }
165 return i;
166 }
167}
168
169#if !defined(_MSC_VER)
170SWIG_STATIC_INLINE PyObject*
171SPyObj_FromLongLong(long long value)
172{
173 return (value > (long)(LONG_MAX)) ?
174 PyLong_FromLongLong(value) : PyInt_FromLong((long)value);
175}
176#endif
177
178SWIG_STATIC_INLINE PyObject*
179SPyObj_FromUnsignedLong(unsigned long value)
180{
181 return (value > (unsigned long)(LONG_MAX)) ?
182 PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value);
183}
184
185#if !defined(_MSC_VER)
186SWIG_STATIC_INLINE PyObject*
187SPyObj_FromUnsignedLongLong(unsigned long long value)
188{
189 return (value > (unsigned long long)(LONG_MAX)) ?
190 PyLong_FromUnsignedLongLong(value) : PyInt_FromLong((long)value);
191}
192#endif
193
194SWIG_STATIC_INLINE long
195SPyObj_AsLongInRange(PyObject * obj, long min_value, long max_value)
196{
197 long value = SPyObj_AsLong(obj);
198 if (!PyErr_Occurred()) {
199 if (value < min_value) {
200 PyErr_SetString(PyExc_OverflowError,"value is smaller than type minimum");
201 } else if (value > max_value) {
202 PyErr_SetString(PyExc_OverflowError,"value is greater than type maximum");
203 }
204 }
205 return value;
206}
207
208SWIG_STATIC_INLINE unsigned long
209SPyObj_AsUnsignedLongInRange(PyObject *obj, unsigned long max_value)
210{
211 unsigned long value = SPyObj_AsUnsignedLong(obj);
212 if (!PyErr_Occurred()) {
213 if (value > max_value) {
214 PyErr_SetString(PyExc_OverflowError,"value is greater than type maximum");
215 }
216 }
217 return value;
218}
219
220SWIG_STATIC_INLINE signed char
221SPyObj_AsSignedChar(PyObject *obj) {
222 return (signed char)SPyObj_AsLongInRange(obj, SCHAR_MIN, SCHAR_MAX);
223}
224
225SWIG_STATIC_INLINE short
226SPyObj_AsShort(PyObject *obj) {
227 return (short)SPyObj_AsLongInRange(obj, SHRT_MIN, SHRT_MAX);
228}
229
230SWIG_STATIC_INLINE int
231SPyObj_AsInt(PyObject *obj) {
232 return SPyObj_AsLongInRange(obj, INT_MIN, INT_MAX);
233}
234
235SWIG_STATIC_INLINE unsigned char
236SPyObj_AsUnsignedChar(PyObject *obj) {
237 return (unsigned char)SPyObj_AsUnsignedLongInRange(obj, UCHAR_MAX);
238}
239
240SWIG_STATIC_INLINE unsigned short
241SPyObj_AsUnsignedShort(PyObject *obj) {
242 return (unsigned short)SPyObj_AsUnsignedLongInRange(obj, USHRT_MAX);
243}
244
245SWIG_STATIC_INLINE unsigned int
246SPyObj_AsUnsignedInt(PyObject *obj) {
247 return SPyObj_AsUnsignedLongInRange(obj, UINT_MAX);
248}
249
250#if !defined(_MSC_VER)
251SWIG_STATIC_INLINE long long
252SPyObj_AsLongLong(PyObject *obj) {
253 return PyInt_Check(obj) ?
254 PyInt_AsLong(obj) : PyLong_AsLongLong(obj);
255}
256
257SWIG_STATIC_INLINE unsigned long long
258SPyObj_AsUnsignedLongLong(PyObject *obj) {
259 return PyLong_Check(obj) ?
260 PyLong_AsUnsignedLongLong(obj) : SPyObj_AsUnsignedLong(obj);
261}
262#endif
263
264SWIG_STATIC_INLINE double
265SPyObj_AsDouble(PyObject *obj) {
266 return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
267 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
268}
269
270SWIG_STATIC_INLINE float
271SPyObj_AsFloat(PyObject *obj) {
272 double value = SPyObj_AsDouble(obj);
273 if (!PyErr_Occurred()) {
274 if (value < FLT_MIN) {
275 PyErr_SetString(PyExc_OverflowError,"float is smaller than flt_min");
276 } else if (value > FLT_MAX) {
277 PyErr_SetString(PyExc_OverflowError,"float is greater than flt_max");
278 }
279 }
280 return (float) value;
281}
282
283SWIG_STATIC_INLINE char
284SPyObj_AsChar(PyObject *obj) {
285 char c = (PyString_Check(obj) && PyString_Size(obj) == 1) ?
286 PyString_AsString(obj)[0]
287 : (char) SPyObj_AsLongInRange(obj, CHAR_MIN, CHAR_MAX);
288 if (PyErr_Occurred()) {
289 PyErr_Clear();
290 PyErr_SetString(PyExc_TypeError, "a char is required");
291 }
292 return c;
293}
294
295SWIG_STATIC_INLINE PyObject *
296SPyObj_FromChar(char c) {
297 return PyString_FromStringAndSize(&c,1);
298}
299
300SWIG_STATIC_INLINE PyObject *
301SPyObj_FromCharPtr(const char* cptr) {
302 return cptr ? PyString_FromString(cptr) : Py_BuildValue((char*)"");
303}
304
305SWIG_STATIC_INLINE int
306SPyObj_AsBool(PyObject *obj) {
307 return SPyObj_AsLong/*Long*/(obj) ? 1 : 0;
308}
309
310
311
d14a1e28
RD
312#ifdef __cplusplus
313extern "C" {
314#endif
315
316#define SWIG_PY_INT 1
317#define SWIG_PY_FLOAT 2
318#define SWIG_PY_STRING 3
319#define SWIG_PY_POINTER 4
320#define SWIG_PY_BINARY 5
321
322/* Flags for pointer conversion */
323
324#define SWIG_POINTER_EXCEPTION 0x1
325#define SWIG_POINTER_DISOWN 0x2
326
327/* Exception handling in wrappers */
328#define SWIG_fail goto fail
329
330/* Constant information structure */
331typedef struct swig_const_info {
332 int type;
333 char *name;
334 long lvalue;
335 double dvalue;
336 void *pvalue;
337 swig_type_info **ptype;
338} swig_const_info;
339
d14a1e28
RD
340/* Common SWIG API */
341#define SWIG_ConvertPtr(obj, pp, type, flags) \
342 SWIG_Python_ConvertPtr(obj, pp, type, flags)
343#define SWIG_NewPointerObj(p, type, flags) \
344 SWIG_Python_NewPointerObj(p, type, flags)
345#define SWIG_MustGetPtr(p, type, argnum, flags) \
346 SWIG_Python_MustGetPtr(p, type, argnum, flags)
2dbef272 347
d14a1e28
RD
348/* Python-specific SWIG API */
349#define SWIG_newvarlink() \
350 SWIG_Python_newvarlink()
351#define SWIG_addvarlink(p, name, get_attr, set_attr) \
352 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
353#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
354 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
d14a1e28
RD
355#define SWIG_NewPackedObj(ptr, sz, type) \
356 SWIG_Python_NewPackedObj(ptr, sz, type)
357#define SWIG_InstallConstants(d, constants) \
358 SWIG_Python_InstallConstants(d, constants)
359
360
0f774bef
RD
361SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
362SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
363SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
364SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
365SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
366SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
367SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
368SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
d14a1e28 369
d14a1e28
RD
370
371
372/* Contract support */
373
423f194a 374#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
d14a1e28 375
d14a1e28
RD
376#ifdef __cplusplus
377}
378#endif
379
380
381
382/* -------- TYPES TABLE (BEGIN) -------- */
383
384#define SWIGTYPE_p_wxWindow swig_types[0]
385#define SWIGTYPE_p_wxObject swig_types[1]
386#define SWIGTYPE_p_wxEvtHandler swig_types[2]
387#define SWIGTYPE_p_wxPalette swig_types[3]
388#define SWIGTYPE_p_wxGLCanvas swig_types[4]
389#define SWIGTYPE_p_wxString swig_types[5]
390#define SWIGTYPE_p_wxGLContext swig_types[6]
391#define SWIGTYPE_p_int swig_types[7]
392static swig_type_info *swig_types[9];
393
394/* -------- TYPES TABLE (END) -------- */
395
396
397/*-----------------------------------------------
398 @(target):= _glcanvas.so
399 ------------------------------------------------*/
400#define SWIG_init init_glcanvas
401
402#define SWIG_name "_glcanvas"
403
404#include "wx/wxPython/wxPython.h"
405#include "wx/wxPython/pyclasses.h"
406
407#include <wx/glcanvas.h>
408
d14a1e28 409
cbd72d4f
RD
410 static const wxString wxPyGLCanvasNameStr(wxT("GLCanvas"));
411 static const wxString wxPyEmptyString(wxEmptyString);
d14a1e28
RD
412wxGLContext *new_wxGLContext(bool isRGB,wxGLCanvas *win,wxPalette const &palette,wxGLContext const *other){
413 AGLPixelFormat fmt; // TODO: How should this be initialized?
414 return new wxGLContext(fmt, win, palette, other);
415 }
416#ifdef __cplusplus
417extern "C" {
418#endif
cbd72d4f
RD
419static int _wrap_GLCanvasNameStr_set(PyObject *_val) {
420 PyErr_SetString(PyExc_TypeError,"Variable GLCanvasNameStr is read-only.");
421 return 1;
422}
423
424
425static PyObject *_wrap_GLCanvasNameStr_get() {
426 PyObject *pyobj;
427
428 {
429#if wxUSE_UNICODE
430 pyobj = PyUnicode_FromWideChar((&wxPyGLCanvasNameStr)->c_str(), (&wxPyGLCanvasNameStr)->Len());
431#else
432 pyobj = PyString_FromStringAndSize((&wxPyGLCanvasNameStr)->c_str(), (&wxPyGLCanvasNameStr)->Len());
433#endif
434 }
435 return pyobj;
436}
437
438
d14a1e28
RD
439static PyObject *_wrap_new_GLContext(PyObject *self, PyObject *args, PyObject *kwargs) {
440 PyObject *resultobj;
441 bool arg1 ;
442 wxGLCanvas *arg2 = (wxGLCanvas *) 0 ;
443 wxPalette const &arg3_defvalue = wxNullPalette ;
444 wxPalette *arg3 = (wxPalette *) &arg3_defvalue ;
445 wxGLContext *arg4 = (wxGLContext *) NULL ;
446 wxGLContext *result;
447 PyObject * obj0 = 0 ;
448 PyObject * obj1 = 0 ;
449 PyObject * obj2 = 0 ;
450 PyObject * obj3 = 0 ;
451 char *kwnames[] = {
452 (char *) "isRGB",(char *) "win",(char *) "palette",(char *) "other", NULL
453 };
454
455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_GLContext",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2dbef272
RD
456 {
457 arg1 = (bool) SPyObj_AsBool(obj0);
458 if (PyErr_Occurred()) SWIG_fail;
459 }
d14a1e28
RD
460 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGLCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
461 if (obj2) {
462 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
463 if (arg3 == NULL) {
464 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
465 }
466 }
467 if (obj3) {
468 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
469 }
470 {
471 PyThreadState* __tstate = wxPyBeginAllowThreads();
472 result = (wxGLContext *)new_wxGLContext(arg1,arg2,(wxPalette const &)*arg3,(wxGLContext const *)arg4);
473
474 wxPyEndAllowThreads(__tstate);
475 if (PyErr_Occurred()) SWIG_fail;
476 }
477 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGLContext, 1);
478 return resultobj;
479 fail:
480 return NULL;
481}
482
483
484static PyObject *_wrap_delete_GLContext(PyObject *self, PyObject *args, PyObject *kwargs) {
485 PyObject *resultobj;
486 wxGLContext *arg1 = (wxGLContext *) 0 ;
487 PyObject * obj0 = 0 ;
488 char *kwnames[] = {
489 (char *) "self", NULL
490 };
491
492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GLContext",kwnames,&obj0)) goto fail;
493 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
494 {
495 PyThreadState* __tstate = wxPyBeginAllowThreads();
496 delete arg1;
497
498 wxPyEndAllowThreads(__tstate);
499 if (PyErr_Occurred()) SWIG_fail;
500 }
501 Py_INCREF(Py_None); resultobj = Py_None;
502 return resultobj;
503 fail:
504 return NULL;
505}
506
507
508static PyObject *_wrap_GLContext_SetCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
509 PyObject *resultobj;
510 wxGLContext *arg1 = (wxGLContext *) 0 ;
511 PyObject * obj0 = 0 ;
512 char *kwnames[] = {
513 (char *) "self", NULL
514 };
515
516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_SetCurrent",kwnames,&obj0)) goto fail;
517 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
518 {
519 PyThreadState* __tstate = wxPyBeginAllowThreads();
520 (arg1)->SetCurrent();
521
522 wxPyEndAllowThreads(__tstate);
523 if (PyErr_Occurred()) SWIG_fail;
524 }
525 Py_INCREF(Py_None); resultobj = Py_None;
526 return resultobj;
527 fail:
528 return NULL;
529}
530
531
532static PyObject *_wrap_GLContext_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
533 PyObject *resultobj;
534 wxGLContext *arg1 = (wxGLContext *) 0 ;
535 wxString *arg2 = 0 ;
423f194a 536 bool temp2 = False ;
d14a1e28
RD
537 PyObject * obj0 = 0 ;
538 PyObject * obj1 = 0 ;
539 char *kwnames[] = {
540 (char *) "self",(char *) "colour", NULL
541 };
542
543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GLContext_SetColour",kwnames,&obj0,&obj1)) goto fail;
544 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
545 {
546 arg2 = wxString_in_helper(obj1);
547 if (arg2 == NULL) SWIG_fail;
423f194a 548 temp2 = True;
d14a1e28
RD
549 }
550 {
551 PyThreadState* __tstate = wxPyBeginAllowThreads();
552 (arg1)->SetColour((wxString const &)*arg2);
553
554 wxPyEndAllowThreads(__tstate);
555 if (PyErr_Occurred()) SWIG_fail;
556 }
557 Py_INCREF(Py_None); resultobj = Py_None;
558 {
559 if (temp2)
560 delete arg2;
561 }
562 return resultobj;
563 fail:
564 {
565 if (temp2)
566 delete arg2;
567 }
568 return NULL;
569}
570
571
572static PyObject *_wrap_GLContext_SwapBuffers(PyObject *self, PyObject *args, PyObject *kwargs) {
573 PyObject *resultobj;
574 wxGLContext *arg1 = (wxGLContext *) 0 ;
575 PyObject * obj0 = 0 ;
576 char *kwnames[] = {
577 (char *) "self", NULL
578 };
579
580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_SwapBuffers",kwnames,&obj0)) goto fail;
581 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
582 {
583 PyThreadState* __tstate = wxPyBeginAllowThreads();
584 (arg1)->SwapBuffers();
585
586 wxPyEndAllowThreads(__tstate);
587 if (PyErr_Occurred()) SWIG_fail;
588 }
589 Py_INCREF(Py_None); resultobj = Py_None;
590 return resultobj;
591 fail:
592 return NULL;
593}
594
595
596static PyObject *_wrap_GLContext_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
597 PyObject *resultobj;
598 wxGLContext *arg1 = (wxGLContext *) 0 ;
599 wxWindow *result;
600 PyObject * obj0 = 0 ;
601 char *kwnames[] = {
602 (char *) "self", NULL
603 };
604
605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_GetWindow",kwnames,&obj0)) goto fail;
606 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
607 {
608 PyThreadState* __tstate = wxPyBeginAllowThreads();
609 result = (wxWindow *)(arg1)->GetWindow();
610
611 wxPyEndAllowThreads(__tstate);
612 if (PyErr_Occurred()) SWIG_fail;
613 }
614 {
615 resultobj = wxPyMake_wxObject(result);
616 }
617 return resultobj;
618 fail:
619 return NULL;
620}
621
622
623static PyObject * GLContext_swigregister(PyObject *self, PyObject *args) {
624 PyObject *obj;
625 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
626 SWIG_TypeClientData(SWIGTYPE_p_wxGLContext, obj);
627 Py_INCREF(obj);
628 return Py_BuildValue((char *)"");
629}
630static PyObject *_wrap_new_GLCanvas(PyObject *self, PyObject *args, PyObject *kwargs) {
631 PyObject *resultobj;
632 wxWindow *arg1 = (wxWindow *) 0 ;
423f194a 633 int arg2 = (int) -1 ;
d14a1e28
RD
634 wxPoint const &arg3_defvalue = wxDefaultPosition ;
635 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
636 wxSize const &arg4_defvalue = wxDefaultSize ;
637 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
638 long arg5 = (long) 0 ;
639 wxString const &arg6_defvalue = wxPyGLCanvasNameStr ;
640 wxString *arg6 = (wxString *) &arg6_defvalue ;
641 int *arg7 = (int *) NULL ;
642 wxPalette const &arg8_defvalue = wxNullPalette ;
643 wxPalette *arg8 = (wxPalette *) &arg8_defvalue ;
644 wxGLCanvas *result;
645 wxPoint temp3 ;
646 wxSize temp4 ;
423f194a 647 bool temp6 = False ;
d14a1e28
RD
648 int *temp7 ;
649 PyObject * obj0 = 0 ;
650 PyObject * obj2 = 0 ;
651 PyObject * obj3 = 0 ;
652 PyObject * obj5 = 0 ;
653 PyObject * obj6 = 0 ;
654 PyObject * obj7 = 0 ;
655 char *kwnames[] = {
656 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name",(char *) "attribList",(char *) "palette", NULL
657 };
658
659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlOOO:new_GLCanvas",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6,&obj7)) goto fail;
660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
661 if (obj2) {
662 {
663 arg3 = &temp3;
664 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
665 }
666 }
667 if (obj3) {
668 {
669 arg4 = &temp4;
670 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
671 }
672 }
673 if (obj5) {
674 {
675 arg6 = wxString_in_helper(obj5);
676 if (arg6 == NULL) SWIG_fail;
423f194a 677 temp6 = True;
d14a1e28
RD
678 }
679 }
680 if (obj6) {
681 {
682 int i;
683 if (PySequence_Check(obj6)) {
684 int size = PyObject_Length(obj6);
685 temp7 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int));
686 for (i = 0; i < size; i++) {
687 temp7[i] = PyInt_AsLong(PySequence_GetItem(obj6, i));
688 }
689 temp7[size] = 0;
690 arg7 = temp7;
691 }
692 }
693 }
694 if (obj7) {
695 if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
696 if (arg8 == NULL) {
697 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
698 }
699 }
700 {
701 PyThreadState* __tstate = wxPyBeginAllowThreads();
702 result = (wxGLCanvas *)new wxGLCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6,arg7,(wxPalette const &)*arg8);
703
704 wxPyEndAllowThreads(__tstate);
705 if (PyErr_Occurred()) SWIG_fail;
706 }
707 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGLCanvas, 1);
708 {
709 if (temp6)
710 delete arg6;
711 }
712 {
713 delete [] arg7;
714 }
715 return resultobj;
716 fail:
717 {
718 if (temp6)
719 delete arg6;
720 }
721 {
722 delete [] arg7;
723 }
724 return NULL;
725}
726
727
58203fa6 728static PyObject *_wrap_new_GLCanvasWithContext(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
729 PyObject *resultobj;
730 wxWindow *arg1 = (wxWindow *) 0 ;
731 wxGLContext *arg2 = (wxGLContext *) NULL ;
423f194a 732 int arg3 = (int) -1 ;
d14a1e28
RD
733 wxPoint const &arg4_defvalue = wxDefaultPosition ;
734 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
735 wxSize const &arg5_defvalue = wxDefaultSize ;
736 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
737 long arg6 = (long) 0 ;
738 wxString const &arg7_defvalue = wxPyGLCanvasNameStr ;
739 wxString *arg7 = (wxString *) &arg7_defvalue ;
740 int *arg8 = (int *) NULL ;
741 wxPalette const &arg9_defvalue = wxNullPalette ;
742 wxPalette *arg9 = (wxPalette *) &arg9_defvalue ;
743 wxGLCanvas *result;
744 wxPoint temp4 ;
745 wxSize temp5 ;
423f194a 746 bool temp7 = False ;
d14a1e28
RD
747 int *temp8 ;
748 PyObject * obj0 = 0 ;
749 PyObject * obj1 = 0 ;
750 PyObject * obj3 = 0 ;
751 PyObject * obj4 = 0 ;
752 PyObject * obj6 = 0 ;
753 PyObject * obj7 = 0 ;
754 PyObject * obj8 = 0 ;
755 char *kwnames[] = {
756 (char *) "parent",(char *) "shared",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name",(char *) "attribList",(char *) "palette", NULL
757 };
758
58203fa6 759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OiOOlOOO:new_GLCanvasWithContext",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7,&obj8)) goto fail;
d14a1e28
RD
760 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
761 if (obj1) {
762 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
763 }
764 if (obj3) {
765 {
766 arg4 = &temp4;
767 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
768 }
769 }
770 if (obj4) {
771 {
772 arg5 = &temp5;
773 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
774 }
775 }
776 if (obj6) {
777 {
778 arg7 = wxString_in_helper(obj6);
779 if (arg7 == NULL) SWIG_fail;
423f194a 780 temp7 = True;
d14a1e28
RD
781 }
782 }
783 if (obj7) {
784 {
785 int i;
786 if (PySequence_Check(obj7)) {
787 int size = PyObject_Length(obj7);
788 temp8 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int));
789 for (i = 0; i < size; i++) {
790 temp8[i] = PyInt_AsLong(PySequence_GetItem(obj7, i));
791 }
792 temp8[size] = 0;
793 arg8 = temp8;
794 }
795 }
796 }
797 if (obj8) {
798 if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
799 if (arg9 == NULL) {
800 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
801 }
802 }
803 {
804 PyThreadState* __tstate = wxPyBeginAllowThreads();
805 result = (wxGLCanvas *)new wxGLCanvas(arg1,(wxGLContext const *)arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxPalette const &)*arg9);
806
807 wxPyEndAllowThreads(__tstate);
808 if (PyErr_Occurred()) SWIG_fail;
809 }
810 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGLCanvas, 1);
811 {
812 if (temp7)
813 delete arg7;
814 }
815 {
816 delete [] arg8;
817 }
818 return resultobj;
819 fail:
820 {
821 if (temp7)
822 delete arg7;
823 }
824 {
825 delete [] arg8;
826 }
827 return NULL;
828}
829
830
831static PyObject *_wrap_GLCanvas_SetCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
832 PyObject *resultobj;
833 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
834 PyObject * obj0 = 0 ;
835 char *kwnames[] = {
836 (char *) "self", NULL
837 };
838
839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_SetCurrent",kwnames,&obj0)) goto fail;
840 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
841 {
842 PyThreadState* __tstate = wxPyBeginAllowThreads();
843 (arg1)->SetCurrent();
844
845 wxPyEndAllowThreads(__tstate);
846 if (PyErr_Occurred()) SWIG_fail;
847 }
848 Py_INCREF(Py_None); resultobj = Py_None;
849 return resultobj;
850 fail:
851 return NULL;
852}
853
854
855static PyObject *_wrap_GLCanvas_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
856 PyObject *resultobj;
857 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
858 wxString *arg2 = 0 ;
423f194a 859 bool temp2 = False ;
d14a1e28
RD
860 PyObject * obj0 = 0 ;
861 PyObject * obj1 = 0 ;
862 char *kwnames[] = {
863 (char *) "self",(char *) "colour", NULL
864 };
865
866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GLCanvas_SetColour",kwnames,&obj0,&obj1)) goto fail;
867 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
868 {
869 arg2 = wxString_in_helper(obj1);
870 if (arg2 == NULL) SWIG_fail;
423f194a 871 temp2 = True;
d14a1e28
RD
872 }
873 {
874 PyThreadState* __tstate = wxPyBeginAllowThreads();
875 (arg1)->SetColour((wxString const &)*arg2);
876
877 wxPyEndAllowThreads(__tstate);
878 if (PyErr_Occurred()) SWIG_fail;
879 }
880 Py_INCREF(Py_None); resultobj = Py_None;
881 {
882 if (temp2)
883 delete arg2;
884 }
885 return resultobj;
886 fail:
887 {
888 if (temp2)
889 delete arg2;
890 }
891 return NULL;
892}
893
894
895static PyObject *_wrap_GLCanvas_SwapBuffers(PyObject *self, PyObject *args, PyObject *kwargs) {
896 PyObject *resultobj;
897 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
898 PyObject * obj0 = 0 ;
899 char *kwnames[] = {
900 (char *) "self", NULL
901 };
902
903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_SwapBuffers",kwnames,&obj0)) goto fail;
904 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
905 {
906 PyThreadState* __tstate = wxPyBeginAllowThreads();
907 (arg1)->SwapBuffers();
908
909 wxPyEndAllowThreads(__tstate);
910 if (PyErr_Occurred()) SWIG_fail;
911 }
912 Py_INCREF(Py_None); resultobj = Py_None;
913 return resultobj;
914 fail:
915 return NULL;
916}
917
918
919static PyObject *_wrap_GLCanvas_GetContext(PyObject *self, PyObject *args, PyObject *kwargs) {
920 PyObject *resultobj;
921 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
922 wxGLContext *result;
923 PyObject * obj0 = 0 ;
924 char *kwnames[] = {
925 (char *) "self", NULL
926 };
927
928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_GetContext",kwnames,&obj0)) goto fail;
929 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
930 {
931 PyThreadState* __tstate = wxPyBeginAllowThreads();
932 result = (wxGLContext *)(arg1)->GetContext();
933
934 wxPyEndAllowThreads(__tstate);
935 if (PyErr_Occurred()) SWIG_fail;
936 }
937 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGLContext, 0);
938 return resultobj;
939 fail:
940 return NULL;
941}
942
943
944static PyObject * GLCanvas_swigregister(PyObject *self, PyObject *args) {
945 PyObject *obj;
946 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
947 SWIG_TypeClientData(SWIGTYPE_p_wxGLCanvas, obj);
948 Py_INCREF(obj);
949 return Py_BuildValue((char *)"");
950}
951static PyMethodDef SwigMethods[] = {
952 { (char *)"new_GLContext", (PyCFunction) _wrap_new_GLContext, METH_VARARGS | METH_KEYWORDS },
953 { (char *)"delete_GLContext", (PyCFunction) _wrap_delete_GLContext, METH_VARARGS | METH_KEYWORDS },
954 { (char *)"GLContext_SetCurrent", (PyCFunction) _wrap_GLContext_SetCurrent, METH_VARARGS | METH_KEYWORDS },
955 { (char *)"GLContext_SetColour", (PyCFunction) _wrap_GLContext_SetColour, METH_VARARGS | METH_KEYWORDS },
956 { (char *)"GLContext_SwapBuffers", (PyCFunction) _wrap_GLContext_SwapBuffers, METH_VARARGS | METH_KEYWORDS },
957 { (char *)"GLContext_GetWindow", (PyCFunction) _wrap_GLContext_GetWindow, METH_VARARGS | METH_KEYWORDS },
958 { (char *)"GLContext_swigregister", GLContext_swigregister, METH_VARARGS },
959 { (char *)"new_GLCanvas", (PyCFunction) _wrap_new_GLCanvas, METH_VARARGS | METH_KEYWORDS },
58203fa6 960 { (char *)"new_GLCanvasWithContext", (PyCFunction) _wrap_new_GLCanvasWithContext, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
961 { (char *)"GLCanvas_SetCurrent", (PyCFunction) _wrap_GLCanvas_SetCurrent, METH_VARARGS | METH_KEYWORDS },
962 { (char *)"GLCanvas_SetColour", (PyCFunction) _wrap_GLCanvas_SetColour, METH_VARARGS | METH_KEYWORDS },
963 { (char *)"GLCanvas_SwapBuffers", (PyCFunction) _wrap_GLCanvas_SwapBuffers, METH_VARARGS | METH_KEYWORDS },
964 { (char *)"GLCanvas_GetContext", (PyCFunction) _wrap_GLCanvas_GetContext, METH_VARARGS | METH_KEYWORDS },
965 { (char *)"GLCanvas_swigregister", GLCanvas_swigregister, METH_VARARGS },
966 { NULL, NULL }
967};
968
969
970/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
971
972static void *_p_wxControlTo_p_wxWindow(void *x) {
973 return (void *)((wxWindow *) ((wxControl *) x));
974}
975static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
976 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
977}
978static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
979 return (void *)((wxWindow *) ((wxMenuBar *) x));
980}
981static void *_p_wxGLCanvasTo_p_wxWindow(void *x) {
982 return (void *)((wxWindow *) ((wxGLCanvas *) x));
983}
984static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
985 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
986}
987static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
988 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
989}
990static void *_p_wxSizerItemTo_p_wxObject(void *x) {
991 return (void *)((wxObject *) ((wxSizerItem *) x));
992}
993static void *_p_wxScrollEventTo_p_wxObject(void *x) {
994 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
995}
996static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
997 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
998}
999static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
1000 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
1001}
1002static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
1003 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
1004}
1005static void *_p_wxSizerTo_p_wxObject(void *x) {
1006 return (void *)((wxObject *) ((wxSizer *) x));
1007}
1008static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
1009 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
1010}
1011static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
1012 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
1013}
1014static void *_p_wxEventTo_p_wxObject(void *x) {
1015 return (void *)((wxObject *) ((wxEvent *) x));
1016}
1017static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
1018 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
1019}
1020static void *_p_wxGridSizerTo_p_wxObject(void *x) {
1021 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
1022}
1023static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
1024 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
1025}
1026static void *_p_wxPaintEventTo_p_wxObject(void *x) {
1027 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
1028}
1029static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
1030 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
1031}
1032static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
1033 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
1034}
1035static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
1036 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
1037}
1038static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
1039 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
1040}
1041static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
1042 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
1043}
1044static void *_p_wxControlTo_p_wxObject(void *x) {
1045 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
1046}
1047static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
1048 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
1049}
1050static void *_p_wxFSFileTo_p_wxObject(void *x) {
1051 return (void *)((wxObject *) ((wxFSFile *) x));
1052}
1053static void *_p_wxPySizerTo_p_wxObject(void *x) {
1054 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
1055}
1056static void *_p_wxPyEventTo_p_wxObject(void *x) {
1057 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
1058}
1059static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
1060 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
1061}
1062static void *_p_wxGLContextTo_p_wxObject(void *x) {
1063 return (void *)((wxObject *) ((wxGLContext *) x));
1064}
1065static void *_p_wxShowEventTo_p_wxObject(void *x) {
1066 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
1067}
1068static void *_p_wxMenuItemTo_p_wxObject(void *x) {
1069 return (void *)((wxObject *) ((wxMenuItem *) x));
1070}
1071static void *_p_wxIdleEventTo_p_wxObject(void *x) {
1072 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
1073}
1074static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
1075 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
1076}
1077static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
1078 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
1079}
1080static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
1081 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
1082}
1083static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
1084 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
1085}
1086static void *_p_wxSizeEventTo_p_wxObject(void *x) {
1087 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
1088}
1089static void *_p_wxMoveEventTo_p_wxObject(void *x) {
1090 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
1091}
1092static void *_p_wxActivateEventTo_p_wxObject(void *x) {
1093 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
1094}
1095static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
1096 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
1097}
1098static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
1099 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
1100}
1101static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
1102 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
1103}
1104static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
1105 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
1106}
1107static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
1108 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
1109}
1110static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
1111 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
1112}
1113static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
1114 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
1115}
1116static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
1117 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
1118}
1119static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
1120 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
1121}
1122static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
1123 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
1124}
1125static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
1126 return (void *)((wxObject *) ((wxImageHandler *) x));
1127}
1128static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
1129 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
1130}
1131static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
1132 return (void *)((wxObject *) ((wxEvtHandler *) x));
1133}
1134static void *_p_wxGLCanvasTo_p_wxObject(void *x) {
1135 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxGLCanvas *) x));
1136}
41f1cec7
RD
1137static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
1138 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
1139}
d14a1e28
RD
1140static void *_p_wxImageTo_p_wxObject(void *x) {
1141 return (void *)((wxObject *) ((wxImage *) x));
1142}
1143static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
1144 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
1145}
1146static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
1147 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
1148}
1149static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
1150 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
1151}
1152static void *_p_wxKeyEventTo_p_wxObject(void *x) {
1153 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
1154}
1155static void *_p_wxWindowTo_p_wxObject(void *x) {
1156 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
1157}
1158static void *_p_wxMenuTo_p_wxObject(void *x) {
1159 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
1160}
1161static void *_p_wxMenuBarTo_p_wxObject(void *x) {
1162 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
1163}
1164static void *_p_wxFileSystemTo_p_wxObject(void *x) {
1165 return (void *)((wxObject *) ((wxFileSystem *) x));
1166}
1167static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
1168 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
1169}
1170static void *_p_wxMenuEventTo_p_wxObject(void *x) {
1171 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
1172}
1173static void *_p_wxPyAppTo_p_wxObject(void *x) {
1174 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
1175}
1176static void *_p_wxCloseEventTo_p_wxObject(void *x) {
1177 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
1178}
1179static void *_p_wxMouseEventTo_p_wxObject(void *x) {
1180 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
1181}
1182static void *_p_wxEraseEventTo_p_wxObject(void *x) {
1183 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
1184}
1185static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
1186 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
1187}
1188static void *_p_wxCommandEventTo_p_wxObject(void *x) {
1189 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
1190}
1191static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
1192 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
1193}
1194static void *_p_wxFocusEventTo_p_wxObject(void *x) {
1195 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
1196}
1197static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
1198 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
1199}
1200static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
1201 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
1202}
1203static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
1204 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
1205}
1206static void *_p_wxValidatorTo_p_wxObject(void *x) {
1207 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
1208}
1209static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
1210 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
1211}
1212static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
1213 return (void *)((wxEvtHandler *) ((wxWindow *) x));
1214}
1215static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
1216 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
1217}
1218static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
1219 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
1220}
1221static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
1222 return (void *)((wxEvtHandler *) ((wxValidator *) x));
1223}
1224static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
1225 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
1226}
1227static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
1228 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
1229}
1230static void *_p_wxGLCanvasTo_p_wxEvtHandler(void *x) {
1231 return (void *)((wxEvtHandler *) (wxWindow *) ((wxGLCanvas *) x));
1232}
1233static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
1234 return (void *)((wxEvtHandler *) ((wxMenu *) x));
1235}
1236static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow},{"_p_wxWindow"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow},{"_p_wxGLCanvas", _p_wxGLCanvasTo_p_wxWindow},{0}};
41f1cec7 1237static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxGLContext", _p_wxGLContextTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxGLCanvas", _p_wxGLCanvasTo_p_wxObject},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxObject"},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{0}};
d14a1e28
RD
1238static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler},{"_p_wxEvtHandler"},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler},{"_p_wxGLCanvas", _p_wxGLCanvasTo_p_wxEvtHandler},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler},{0}};
1239static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}};
1240static swig_type_info _swigt__p_wxGLCanvas[] = {{"_p_wxGLCanvas", 0, "wxGLCanvas *", 0},{"_p_wxGLCanvas"},{0}};
1241static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
1242static swig_type_info _swigt__p_wxGLContext[] = {{"_p_wxGLContext", 0, "wxGLContext *", 0},{"_p_wxGLContext"},{0}};
1243static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
1244
1245static swig_type_info *swig_types_initial[] = {
1246_swigt__p_wxWindow,
1247_swigt__p_wxObject,
1248_swigt__p_wxEvtHandler,
1249_swigt__p_wxPalette,
1250_swigt__p_wxGLCanvas,
1251_swigt__p_wxString,
1252_swigt__p_wxGLContext,
1253_swigt__p_int,
12540
1255};
1256
1257
1258/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
1259
1260static swig_const_info swig_const_table[] = {
1261{ SWIG_PY_INT, (char *)"WX_GL_RGBA", (long) WX_GL_RGBA, 0, 0, 0},
1262{ SWIG_PY_INT, (char *)"WX_GL_BUFFER_SIZE", (long) WX_GL_BUFFER_SIZE, 0, 0, 0},
1263{ SWIG_PY_INT, (char *)"WX_GL_LEVEL", (long) WX_GL_LEVEL, 0, 0, 0},
1264{ SWIG_PY_INT, (char *)"WX_GL_DOUBLEBUFFER", (long) WX_GL_DOUBLEBUFFER, 0, 0, 0},
1265{ SWIG_PY_INT, (char *)"WX_GL_STEREO", (long) WX_GL_STEREO, 0, 0, 0},
1266{ SWIG_PY_INT, (char *)"WX_GL_AUX_BUFFERS", (long) WX_GL_AUX_BUFFERS, 0, 0, 0},
1267{ SWIG_PY_INT, (char *)"WX_GL_MIN_RED", (long) WX_GL_MIN_RED, 0, 0, 0},
1268{ SWIG_PY_INT, (char *)"WX_GL_MIN_GREEN", (long) WX_GL_MIN_GREEN, 0, 0, 0},
1269{ SWIG_PY_INT, (char *)"WX_GL_MIN_BLUE", (long) WX_GL_MIN_BLUE, 0, 0, 0},
1270{ SWIG_PY_INT, (char *)"WX_GL_MIN_ALPHA", (long) WX_GL_MIN_ALPHA, 0, 0, 0},
1271{ SWIG_PY_INT, (char *)"WX_GL_DEPTH_SIZE", (long) WX_GL_DEPTH_SIZE, 0, 0, 0},
1272{ SWIG_PY_INT, (char *)"WX_GL_STENCIL_SIZE", (long) WX_GL_STENCIL_SIZE, 0, 0, 0},
1273{ SWIG_PY_INT, (char *)"WX_GL_MIN_ACCUM_RED", (long) WX_GL_MIN_ACCUM_RED, 0, 0, 0},
1274{ SWIG_PY_INT, (char *)"WX_GL_MIN_ACCUM_GREEN", (long) WX_GL_MIN_ACCUM_GREEN, 0, 0, 0},
1275{ SWIG_PY_INT, (char *)"WX_GL_MIN_ACCUM_BLUE", (long) WX_GL_MIN_ACCUM_BLUE, 0, 0, 0},
1276{ SWIG_PY_INT, (char *)"WX_GL_MIN_ACCUM_ALPHA", (long) WX_GL_MIN_ACCUM_ALPHA, 0, 0, 0},
1277{0}};
1278
1279#ifdef __cplusplus
1280}
1281#endif
1282
1283#ifdef __cplusplus
1284extern "C"
1285#endif
1286SWIGEXPORT(void) SWIG_init(void) {
1287 static PyObject *SWIG_globals = 0;
1288 static int typeinit = 0;
1289 PyObject *m, *d;
1290 int i;
1291 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
1292 m = Py_InitModule((char *) SWIG_name, SwigMethods);
1293 d = PyModule_GetDict(m);
1294
1295 if (!typeinit) {
1296 for (i = 0; swig_types_initial[i]; i++) {
1297 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
1298 }
1299 typeinit = 1;
1300 }
1301 SWIG_InstallConstants(d,swig_const_table);
1302
cbd72d4f
RD
1303 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
1304 SWIG_addvarlink(SWIG_globals,(char*)"GLCanvasNameStr",_wrap_GLCanvasNameStr_get, _wrap_GLCanvasNameStr_set);
d14a1e28
RD
1305
1306
1307
1308}
1309