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