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