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