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