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