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