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