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