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