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