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