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