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