]> git.saurik.com Git - wxWidgets.git/blame - wxPython/contrib/glcanvas/msw/glcanvas_wrap.cpp
compilation fix for not MSW
[wxWidgets.git] / wxPython / contrib / glcanvas / msw / glcanvas_wrap.cpp
CommitLineData
d14a1e28
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
83448d71 3 * Version 1.3.22
d14a1e28
RD
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
c32bde28 46#define SWIG_TypePrettyName SWIG_Python_TypePrettyName
d14a1e28
RD
47#define SWIG_TypeQuery SWIG_Python_TypeQuery
48#define SWIG_TypeClientData SWIG_Python_TypeClientData
9fd4be55
RD
49#define SWIG_PackData SWIG_Python_PackData
50#define SWIG_UnpackData SWIG_Python_UnpackData
51
d14a1e28
RD
52
53/***********************************************************************
54 * common.swg for wxPython
55 *
56 * Include only the function prototypes and such from SWIG's common.swg,
57 * but not the runtime functions themselves. This helps keep the
58 * wrapper files clean of unnecessary stuff that is in the libpy.c file
59 * anyway.
60 *
61 ************************************************************************/
62
63#include <string.h>
64
f0983263
RD
65#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
66# if defined(_MSC_VER) || defined(__GNUC__)
67# if defined(STATIC_LINKED)
68# define SWIGEXPORT(a) a
69# define SWIGIMPORT(a) extern a
70# else
71# define SWIGEXPORT(a) __declspec(dllexport) a
72# define SWIGIMPORT(a) extern a
73# endif
74# else
75# if defined(__BORLANDC__)
76# define SWIGEXPORT(a) a _export
77# define SWIGIMPORT(a) a _export
78# else
79# define SWIGEXPORT(a) a
80# define SWIGIMPORT(a) a
81# endif
82# endif
d14a1e28 83#else
f0983263
RD
84# define SWIGEXPORT(a) a
85# define SWIGIMPORT(a) a
d14a1e28
RD
86#endif
87
88#ifdef SWIG_GLOBAL
f0983263 89# define SWIGRUNTIME(a) SWIGEXPORT(a)
d14a1e28 90#else
f0983263 91# define SWIGRUNTIME(a) static a
d14a1e28
RD
92#endif
93
d14a1e28
RD
94#ifdef __cplusplus
95extern "C" {
96#endif
97
98typedef void *(*swig_converter_func)(void *);
99typedef struct swig_type_info *(*swig_dycast_func)(void **);
100
101typedef struct swig_type_info {
f0983263 102 const char *name;
d14a1e28
RD
103 swig_converter_func converter;
104 const char *str;
f0983263 105 void *clientdata;
d14a1e28
RD
106 swig_dycast_func dcast;
107 struct swig_type_info *next;
108 struct swig_type_info *prev;
109} swig_type_info;
110
111
112SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
113SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
114SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
115SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
116SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
c32bde28 117SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *);
d14a1e28
RD
118SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
119SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
f0983263
RD
120SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
121SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
d14a1e28
RD
122
123
124#ifdef __cplusplus
125}
126#endif
127
c32bde28 128
d14a1e28
RD
129/***********************************************************************
130 * pyrun.swg for wxPython
131 *
132 * Include only the function prototypes and such from SWIG's pyrun.swg,
133 * but not the runtime functions themselves. This helps keep the
134 * wrapper files clean of unnecessary stuff that is in the libpy.c file
135 * anyway.
136 *
137 ************************************************************************/
138
d14a1e28
RD
139#ifdef __cplusplus
140extern "C" {
141#endif
142
143#define SWIG_PY_INT 1
144#define SWIG_PY_FLOAT 2
145#define SWIG_PY_STRING 3
146#define SWIG_PY_POINTER 4
147#define SWIG_PY_BINARY 5
148
149/* Flags for pointer conversion */
150
151#define SWIG_POINTER_EXCEPTION 0x1
152#define SWIG_POINTER_DISOWN 0x2
153
154/* Exception handling in wrappers */
155#define SWIG_fail goto fail
156
157/* Constant information structure */
158typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165} swig_const_info;
166
d14a1e28
RD
167/* Common SWIG API */
168#define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170#define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172#define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
83448d71 174
d14a1e28
RD
175/* Python-specific SWIG API */
176#define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178#define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
d14a1e28
RD
182#define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184#define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
8edf1c75 187typedef double (*py_objasdbl_conv)(PyObject *obj);
d14a1e28 188
f0983263
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/* Contract support */
200
423f194a 201#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
d14a1e28 202
d14a1e28
RD
203#ifdef __cplusplus
204}
205#endif
206
207
c32bde28 208
d14a1e28
RD
209/* -------- TYPES TABLE (BEGIN) -------- */
210
211#define SWIGTYPE_p_wxWindow swig_types[0]
212#define SWIGTYPE_p_wxObject swig_types[1]
213#define SWIGTYPE_p_wxEvtHandler swig_types[2]
8edf1c75
RD
214#define SWIGTYPE_p_char swig_types[3]
215#define SWIGTYPE_p_wxPalette swig_types[4]
216#define SWIGTYPE_p_wxGLCanvas swig_types[5]
4e760a36
RD
217#define SWIGTYPE_p_wxGLContext swig_types[6]
218#define SWIGTYPE_p_int swig_types[7]
219static swig_type_info *swig_types[9];
d14a1e28
RD
220
221/* -------- TYPES TABLE (END) -------- */
222
223
224/*-----------------------------------------------
225 @(target):= _glcanvas.so
226 ------------------------------------------------*/
227#define SWIG_init init_glcanvas
228
229#define SWIG_name "_glcanvas"
230
c32bde28
RD
231/* Auxiliar swig macros that appear in the header */
232
233#define SWIG_OLDOBJ 1
234#define SWIG_NEWOBJ SWIG_OLDOBJ + 1
235#define SWIG_PYSTR SWIG_NEWOBJ + 1
8edf1c75 236
8edf1c75 237#ifdef __cplusplus
2f4c0a16 238#define SWIGSTATICINLINE(a) static inline a
8edf1c75 239#define SWIGSTATIC(a) static a
c32bde28
RD
240#define swig_new_array(size,Type) (new Type[(size)])
241#define swig_delete(cptr) delete cptr
2f4c0a16 242#define swig_delete_array(cptr) delete[] cptr
c32bde28
RD
243#define swig_const_cast(a,Type) const_cast<Type >(a)
244#define swig_static_cast(a,Type) static_cast<Type >(a)
245#define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a)
246#define swig_new_copy(ptr,Type) (new Type(*ptr))
247#define swig_numeric_cast(a,Type) static_cast<Type >(a)
8edf1c75 248
2f4c0a16
RD
249#else /* C case */
250
251#define SWIGSTATICINLINE(a) static a
252#define SWIGSTATIC(a) static a
c32bde28
RD
253#define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type)))
254#define swig_delete(cptr) free((char*)cptr)
2f4c0a16 255#define swig_delete_array(cptr) free((char*)cptr)
c32bde28
RD
256#define swig_const_cast(a,Type) (Type)(a)
257#define swig_static_cast(a,Type) (Type)(a)
258#define swig_reinterpret_cast(a,Type) (Type)(a)
259#define swig_numeric_cast(a,Type) (Type)(a)
260#define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type)))
8edf1c75 261
2f4c0a16 262#endif /* __cplusplus */
8edf1c75 263
2f4c0a16 264
c32bde28
RD
265/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
266#define SWIG_From_signed_SS_char PyInt_FromLong
267/*@@*/
268/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
269#define SWIG_From_unsigned_SS_char PyInt_FromLong
270/*@@*/
271/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
272#define SWIG_From_short PyInt_FromLong
273/*@@*/
274/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
275#define SWIG_From_unsigned_SS_short PyInt_FromLong
276/*@@*/
277/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
278#define SWIG_From_int PyInt_FromLong
279/*@@*/
280/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
281#define SWIG_From_long PyInt_FromLong
282/*@@*/
283/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
284#define SWIG_From_float PyFloat_FromDouble
285/*@@*/
286/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
287#define SWIG_From_double PyFloat_FromDouble
288/*@@*/
8edf1c75
RD
289
290
d14a1e28
RD
291#include "wx/wxPython/wxPython.h"
292#include "wx/wxPython/pyclasses.h"
293
294#include <wx/glcanvas.h>
295
d14a1e28 296
d03fd34d
RD
297 static const wxString wxPyGLCanvasNameStr(wxT("GLCanvas"));
298 static const wxString wxPyEmptyString(wxEmptyString);
8edf1c75 299
c32bde28 300#include <limits.h>
8edf1c75
RD
301
302
2f4c0a16 303SWIGSTATICINLINE(int)
c32bde28
RD
304 SWIG_CheckLongInRange(long value, long min_value, long max_value,
305 const char *errmsg)
2f4c0a16 306{
c32bde28
RD
307 if (value < min_value) {
308 if (errmsg) {
309 PyErr_Format(PyExc_OverflowError,
310 "value %ld is less than '%s' minimum %ld",
311 value, errmsg, min_value);
312 }
313 return 0;
314 } else if (value > max_value) {
315 if (errmsg) {
316 PyErr_Format(PyExc_OverflowError,
317 "value %ld is greater than '%s' maximum %ld",
318 value, errmsg, max_value);
319 }
2f4c0a16 320 return 0;
2f4c0a16 321 }
c32bde28 322 return 1;
2f4c0a16
RD
323}
324
325
c32bde28
RD
326// See my_fragments.i
327SWIGSTATICINLINE(int)
328SWIG_AsVal_long(PyObject* obj, long* val)
2f4c0a16 329{
c32bde28
RD
330 if (PyNumber_Check(obj)) {
331 if (val) *val = PyInt_AsLong(obj);
332 return 1;
2f4c0a16 333 }
69223c70
RD
334 else {
335 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
336 obj->ob_type->tp_name);
337 PyErr_SetObject(PyExc_TypeError, errmsg);
338 Py_DECREF(errmsg);
69223c70 339 }
c32bde28 340 return 0;
8edf1c75
RD
341}
342
2f4c0a16
RD
343
344#if INT_MAX != LONG_MAX
345SWIGSTATICINLINE(int)
c32bde28 346 SWIG_AsVal_int(PyObject *obj, int *val)
2f4c0a16 347{
c32bde28
RD
348 const char* errmsg = val ? "int" : 0;
349 long v;
350 if (SWIG_AsVal_long(obj, &v)) {
351 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
352 if (val) *val = swig_numeric_cast(v, int);
353 return 1;
354 } else {
355 return 0;
356 }
357 } else {
358 PyErr_Clear();
359 }
360 if (val) {
361 PyErr_SetString(PyExc_TypeError, "an int is expected");
362 }
363 return 0;
2f4c0a16
RD
364}
365#else
c32bde28
RD
366SWIGSTATICINLINE(int)
367 SWIG_AsVal_int(PyObject *obj, int *val)
368{
369 return SWIG_AsVal_long(obj,(long*)val);
370}
2f4c0a16
RD
371#endif
372
373
374SWIGSTATICINLINE(int)
c32bde28 375 SWIG_AsVal_bool(PyObject *obj, bool *val)
2f4c0a16 376{
c32bde28
RD
377 /* if (val) *val = PyObject_IsTrue(obj); return 1; */
378 if (obj == Py_True) {
379 if (val) *val = true;
380 return 1;
381 }
382 if (obj == Py_False) {
383 if (val) *val = false;
2f4c0a16
RD
384 return 1;
385 }
c32bde28
RD
386 int res = 0;
387 if (SWIG_AsVal_int(obj, &res)) {
388 if (val) *val = (bool)res;
389 return 1;
390 }
391 if (val) {
392 PyErr_SetString(PyExc_TypeError, "a bool is expected");
393 }
394 return 0;
2f4c0a16
RD
395}
396
397
c32bde28
RD
398SWIGSTATICINLINE(bool)
399SWIG_As_bool(PyObject* obj)
400{
401 bool v;
402 if (!SWIG_AsVal_bool(obj, &v)) {
403 /*
404 this is needed to make valgrind/purify happier. the other
405 solution is throw an exception, but since this code should work
406 with plain C ....
407 */
408 memset((void*)&v, 0, sizeof(bool));
409 }
410 return v;
411}
412
413
2f4c0a16 414SWIGSTATICINLINE(int)
c32bde28 415SWIG_Check_bool(PyObject* obj)
2f4c0a16 416{
c32bde28
RD
417 return SWIG_AsVal_bool(obj, (bool*)0);
418}
419
420
421SWIGSTATICINLINE(int)
422SWIG_As_int(PyObject* obj)
423{
424 int v;
425 if (!SWIG_AsVal_int(obj, &v)) {
426 /*
427 this is needed to make valgrind/purify happier. the other
428 solution is throw an exception, but since this code should work
429 with plain C ....
430 */
431 memset((void*)&v, 0, sizeof(int));
432 }
433 return v;
434}
435
436
437SWIGSTATICINLINE(long)
438SWIG_As_long(PyObject* obj)
439{
440 long v;
441 if (!SWIG_AsVal_long(obj, &v)) {
442 /*
443 this is needed to make valgrind/purify happier. the other
444 solution is throw an exception, but since this code should work
445 with plain C ....
446 */
447 memset((void*)&v, 0, sizeof(long));
2f4c0a16 448 }
c32bde28
RD
449 return v;
450}
451
452
453SWIGSTATICINLINE(int)
454SWIG_Check_int(PyObject* obj)
455{
456 return SWIG_AsVal_int(obj, (int*)0);
457}
458
459
460SWIGSTATICINLINE(int)
461SWIG_Check_long(PyObject* obj)
462{
463 return SWIG_AsVal_long(obj, (long*)0);
2f4c0a16
RD
464}
465
d14a1e28
RD
466#ifdef __cplusplus
467extern "C" {
468#endif
c32bde28 469static int _wrap_GLCanvasNameStr_set(PyObject *) {
d03fd34d
RD
470 PyErr_SetString(PyExc_TypeError,"Variable GLCanvasNameStr is read-only.");
471 return 1;
472}
473
474
475static PyObject *_wrap_GLCanvasNameStr_get() {
476 PyObject *pyobj;
477
478 {
479#if wxUSE_UNICODE
480 pyobj = PyUnicode_FromWideChar((&wxPyGLCanvasNameStr)->c_str(), (&wxPyGLCanvasNameStr)->Len());
481#else
482 pyobj = PyString_FromStringAndSize((&wxPyGLCanvasNameStr)->c_str(), (&wxPyGLCanvasNameStr)->Len());
483#endif
484 }
485 return pyobj;
486}
487
488
c32bde28 489static PyObject *_wrap_new_GLContext(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
490 PyObject *resultobj;
491 bool arg1 ;
492 wxGLCanvas *arg2 = (wxGLCanvas *) 0 ;
493 wxPalette const &arg3_defvalue = wxNullPalette ;
494 wxPalette *arg3 = (wxPalette *) &arg3_defvalue ;
495 wxGLContext *arg4 = (wxGLContext *) NULL ;
496 wxGLContext *result;
497 PyObject * obj0 = 0 ;
498 PyObject * obj1 = 0 ;
499 PyObject * obj2 = 0 ;
500 PyObject * obj3 = 0 ;
501 char *kwnames[] = {
502 (char *) "isRGB",(char *) "win",(char *) "palette",(char *) "other", NULL
503 };
504
505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_GLContext",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
c32bde28 506 arg1 = (bool)SWIG_As_bool(obj0);
2f4c0a16
RD
507 if (PyErr_Occurred()) SWIG_fail;
508 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGLCanvas,
509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 510 if (obj2) {
2f4c0a16
RD
511 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPalette,
512 SWIG_POINTER_EXCEPTION | 0)) == -1)
513 SWIG_fail;
d14a1e28 514 if (arg3 == NULL) {
2f4c0a16
RD
515 PyErr_SetString(PyExc_TypeError,"null reference");
516 SWIG_fail;
d14a1e28
RD
517 }
518 }
519 if (obj3) {
2f4c0a16
RD
520 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGLContext,
521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
522 }
523 {
0439c23b 524 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
525 PyThreadState* __tstate = wxPyBeginAllowThreads();
526 result = (wxGLContext *)new wxGLContext(arg1,arg2,(wxPalette const &)*arg3,(wxGLContext const *)arg4);
527
528 wxPyEndAllowThreads(__tstate);
110da5b0 529 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 530 }
2f4c0a16 531 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGLContext, 1);
d14a1e28
RD
532 return resultobj;
533 fail:
534 return NULL;
535}
536
537
c32bde28 538static PyObject *_wrap_delete_GLContext(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
539 PyObject *resultobj;
540 wxGLContext *arg1 = (wxGLContext *) 0 ;
541 PyObject * obj0 = 0 ;
542 char *kwnames[] = {
543 (char *) "self", NULL
544 };
545
546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GLContext",kwnames,&obj0)) goto fail;
2f4c0a16
RD
547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
549 {
550 PyThreadState* __tstate = wxPyBeginAllowThreads();
551 delete arg1;
552
553 wxPyEndAllowThreads(__tstate);
554 if (PyErr_Occurred()) SWIG_fail;
555 }
556 Py_INCREF(Py_None); resultobj = Py_None;
557 return resultobj;
558 fail:
559 return NULL;
560}
561
562
c32bde28 563static PyObject *_wrap_GLContext_SetCurrent(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
564 PyObject *resultobj;
565 wxGLContext *arg1 = (wxGLContext *) 0 ;
566 PyObject * obj0 = 0 ;
567 char *kwnames[] = {
568 (char *) "self", NULL
569 };
570
571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_SetCurrent",kwnames,&obj0)) goto fail;
2f4c0a16
RD
572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
574 {
575 PyThreadState* __tstate = wxPyBeginAllowThreads();
576 (arg1)->SetCurrent();
577
578 wxPyEndAllowThreads(__tstate);
579 if (PyErr_Occurred()) SWIG_fail;
580 }
581 Py_INCREF(Py_None); resultobj = Py_None;
582 return resultobj;
583 fail:
584 return NULL;
585}
586
587
c32bde28 588static PyObject *_wrap_GLContext_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
589 PyObject *resultobj;
590 wxGLContext *arg1 = (wxGLContext *) 0 ;
591 wxString *arg2 = 0 ;
423f194a 592 bool temp2 = False ;
d14a1e28
RD
593 PyObject * obj0 = 0 ;
594 PyObject * obj1 = 0 ;
595 char *kwnames[] = {
596 (char *) "self",(char *) "colour", NULL
597 };
598
599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GLContext_SetColour",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
602 {
603 arg2 = wxString_in_helper(obj1);
604 if (arg2 == NULL) SWIG_fail;
423f194a 605 temp2 = True;
d14a1e28
RD
606 }
607 {
608 PyThreadState* __tstate = wxPyBeginAllowThreads();
609 (arg1)->SetColour((wxString const &)*arg2);
610
611 wxPyEndAllowThreads(__tstate);
612 if (PyErr_Occurred()) SWIG_fail;
613 }
614 Py_INCREF(Py_None); resultobj = Py_None;
615 {
616 if (temp2)
617 delete arg2;
618 }
619 return resultobj;
620 fail:
621 {
622 if (temp2)
623 delete arg2;
624 }
625 return NULL;
626}
627
628
c32bde28 629static PyObject *_wrap_GLContext_SwapBuffers(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
630 PyObject *resultobj;
631 wxGLContext *arg1 = (wxGLContext *) 0 ;
632 PyObject * obj0 = 0 ;
633 char *kwnames[] = {
634 (char *) "self", NULL
635 };
636
637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_SwapBuffers",kwnames,&obj0)) goto fail;
2f4c0a16
RD
638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
640 {
641 PyThreadState* __tstate = wxPyBeginAllowThreads();
642 (arg1)->SwapBuffers();
643
644 wxPyEndAllowThreads(__tstate);
645 if (PyErr_Occurred()) SWIG_fail;
646 }
647 Py_INCREF(Py_None); resultobj = Py_None;
648 return resultobj;
649 fail:
650 return NULL;
651}
652
653
c32bde28 654static PyObject *_wrap_GLContext_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
655 PyObject *resultobj;
656 wxGLContext *arg1 = (wxGLContext *) 0 ;
657 wxWindow *result;
658 PyObject * obj0 = 0 ;
659 char *kwnames[] = {
660 (char *) "self", NULL
661 };
662
663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_GetWindow",kwnames,&obj0)) goto fail;
2f4c0a16
RD
664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
666 {
667 PyThreadState* __tstate = wxPyBeginAllowThreads();
668 result = (wxWindow *)(arg1)->GetWindow();
669
670 wxPyEndAllowThreads(__tstate);
671 if (PyErr_Occurred()) SWIG_fail;
672 }
673 {
412d302d 674 resultobj = wxPyMake_wxObject(result, 0);
d14a1e28
RD
675 }
676 return resultobj;
677 fail:
678 return NULL;
679}
680
681
c32bde28 682static PyObject * GLContext_swigregister(PyObject *, PyObject *args) {
d14a1e28
RD
683 PyObject *obj;
684 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
685 SWIG_TypeClientData(SWIGTYPE_p_wxGLContext, obj);
686 Py_INCREF(obj);
687 return Py_BuildValue((char *)"");
688}
c32bde28 689static PyObject *_wrap_new_GLCanvas(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
690 PyObject *resultobj;
691 wxWindow *arg1 = (wxWindow *) 0 ;
423f194a 692 int arg2 = (int) -1 ;
d14a1e28
RD
693 wxPoint const &arg3_defvalue = wxDefaultPosition ;
694 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
695 wxSize const &arg4_defvalue = wxDefaultSize ;
696 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
697 long arg5 = (long) 0 ;
698 wxString const &arg6_defvalue = wxPyGLCanvasNameStr ;
699 wxString *arg6 = (wxString *) &arg6_defvalue ;
700 int *arg7 = (int *) NULL ;
701 wxPalette const &arg8_defvalue = wxNullPalette ;
702 wxPalette *arg8 = (wxPalette *) &arg8_defvalue ;
703 wxGLCanvas *result;
704 wxPoint temp3 ;
705 wxSize temp4 ;
423f194a 706 bool temp6 = False ;
d14a1e28
RD
707 int *temp7 ;
708 PyObject * obj0 = 0 ;
8edf1c75 709 PyObject * obj1 = 0 ;
d14a1e28
RD
710 PyObject * obj2 = 0 ;
711 PyObject * obj3 = 0 ;
8edf1c75 712 PyObject * obj4 = 0 ;
d14a1e28
RD
713 PyObject * obj5 = 0 ;
714 PyObject * obj6 = 0 ;
715 PyObject * obj7 = 0 ;
716 char *kwnames[] = {
717 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name",(char *) "attribList",(char *) "palette", NULL
718 };
719
8edf1c75 720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_GLCanvas",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2f4c0a16
RD
721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8edf1c75 723 if (obj1) {
c32bde28 724 arg2 = (int)SWIG_As_int(obj1);
2f4c0a16 725 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 726 }
d14a1e28
RD
727 if (obj2) {
728 {
729 arg3 = &temp3;
730 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
731 }
732 }
733 if (obj3) {
734 {
735 arg4 = &temp4;
736 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
737 }
738 }
8edf1c75 739 if (obj4) {
c32bde28 740 arg5 = (long)SWIG_As_long(obj4);
2f4c0a16 741 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 742 }
d14a1e28
RD
743 if (obj5) {
744 {
745 arg6 = wxString_in_helper(obj5);
746 if (arg6 == NULL) SWIG_fail;
423f194a 747 temp6 = True;
d14a1e28
RD
748 }
749 }
750 if (obj6) {
751 {
752 int i;
753 if (PySequence_Check(obj6)) {
754 int size = PyObject_Length(obj6);
755 temp7 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int));
756 for (i = 0; i < size; i++) {
757 temp7[i] = PyInt_AsLong(PySequence_GetItem(obj6, i));
758 }
759 temp7[size] = 0;
760 arg7 = temp7;
761 }
762 }
763 }
764 if (obj7) {
2f4c0a16
RD
765 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxPalette,
766 SWIG_POINTER_EXCEPTION | 0)) == -1)
767 SWIG_fail;
d14a1e28 768 if (arg8 == NULL) {
2f4c0a16
RD
769 PyErr_SetString(PyExc_TypeError,"null reference");
770 SWIG_fail;
d14a1e28
RD
771 }
772 }
773 {
0439c23b 774 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
775 PyThreadState* __tstate = wxPyBeginAllowThreads();
776 result = (wxGLCanvas *)new wxGLCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6,arg7,(wxPalette const &)*arg8);
777
778 wxPyEndAllowThreads(__tstate);
110da5b0 779 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 780 }
2f4c0a16 781 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGLCanvas, 1);
d14a1e28
RD
782 {
783 if (temp6)
784 delete arg6;
785 }
786 {
787 delete [] arg7;
788 }
789 return resultobj;
790 fail:
791 {
792 if (temp6)
793 delete arg6;
794 }
795 {
796 delete [] arg7;
797 }
798 return NULL;
799}
800
801
c32bde28 802static PyObject *_wrap_new_GLCanvasWithContext(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
803 PyObject *resultobj;
804 wxWindow *arg1 = (wxWindow *) 0 ;
805 wxGLContext *arg2 = (wxGLContext *) NULL ;
423f194a 806 int arg3 = (int) -1 ;
d14a1e28
RD
807 wxPoint const &arg4_defvalue = wxDefaultPosition ;
808 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
809 wxSize const &arg5_defvalue = wxDefaultSize ;
810 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
811 long arg6 = (long) 0 ;
812 wxString const &arg7_defvalue = wxPyGLCanvasNameStr ;
813 wxString *arg7 = (wxString *) &arg7_defvalue ;
814 int *arg8 = (int *) NULL ;
815 wxPalette const &arg9_defvalue = wxNullPalette ;
816 wxPalette *arg9 = (wxPalette *) &arg9_defvalue ;
817 wxGLCanvas *result;
818 wxPoint temp4 ;
819 wxSize temp5 ;
423f194a 820 bool temp7 = False ;
d14a1e28
RD
821 int *temp8 ;
822 PyObject * obj0 = 0 ;
823 PyObject * obj1 = 0 ;
8edf1c75 824 PyObject * obj2 = 0 ;
d14a1e28
RD
825 PyObject * obj3 = 0 ;
826 PyObject * obj4 = 0 ;
8edf1c75 827 PyObject * obj5 = 0 ;
d14a1e28
RD
828 PyObject * obj6 = 0 ;
829 PyObject * obj7 = 0 ;
830 PyObject * obj8 = 0 ;
831 char *kwnames[] = {
832 (char *) "parent",(char *) "shared",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name",(char *) "attribList",(char *) "palette", NULL
833 };
834
8edf1c75 835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GLCanvasWithContext",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2f4c0a16
RD
836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 838 if (obj1) {
2f4c0a16
RD
839 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGLContext,
840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 841 }
8edf1c75 842 if (obj2) {
c32bde28 843 arg3 = (int)SWIG_As_int(obj2);
2f4c0a16 844 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 845 }
d14a1e28
RD
846 if (obj3) {
847 {
848 arg4 = &temp4;
849 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
850 }
851 }
852 if (obj4) {
853 {
854 arg5 = &temp5;
855 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
856 }
857 }
8edf1c75 858 if (obj5) {
c32bde28 859 arg6 = (long)SWIG_As_long(obj5);
2f4c0a16 860 if (PyErr_Occurred()) SWIG_fail;
8edf1c75 861 }
d14a1e28
RD
862 if (obj6) {
863 {
864 arg7 = wxString_in_helper(obj6);
865 if (arg7 == NULL) SWIG_fail;
423f194a 866 temp7 = True;
d14a1e28
RD
867 }
868 }
869 if (obj7) {
870 {
871 int i;
872 if (PySequence_Check(obj7)) {
873 int size = PyObject_Length(obj7);
874 temp8 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int));
875 for (i = 0; i < size; i++) {
876 temp8[i] = PyInt_AsLong(PySequence_GetItem(obj7, i));
877 }
878 temp8[size] = 0;
879 arg8 = temp8;
880 }
881 }
882 }
883 if (obj8) {
2f4c0a16
RD
884 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxPalette,
885 SWIG_POINTER_EXCEPTION | 0)) == -1)
886 SWIG_fail;
d14a1e28 887 if (arg9 == NULL) {
2f4c0a16
RD
888 PyErr_SetString(PyExc_TypeError,"null reference");
889 SWIG_fail;
d14a1e28
RD
890 }
891 }
892 {
0439c23b 893 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
894 PyThreadState* __tstate = wxPyBeginAllowThreads();
895 result = (wxGLCanvas *)new wxGLCanvas(arg1,(wxGLContext const *)arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxPalette const &)*arg9);
896
897 wxPyEndAllowThreads(__tstate);
110da5b0 898 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 899 }
2f4c0a16 900 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGLCanvas, 1);
d14a1e28
RD
901 {
902 if (temp7)
903 delete arg7;
904 }
905 {
906 delete [] arg8;
907 }
908 return resultobj;
909 fail:
910 {
911 if (temp7)
912 delete arg7;
913 }
914 {
915 delete [] arg8;
916 }
917 return NULL;
918}
919
920
c32bde28 921static PyObject *_wrap_GLCanvas_SetCurrent(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
922 PyObject *resultobj;
923 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
924 PyObject * obj0 = 0 ;
925 char *kwnames[] = {
926 (char *) "self", NULL
927 };
928
929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_SetCurrent",kwnames,&obj0)) goto fail;
2f4c0a16
RD
930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
932 {
933 PyThreadState* __tstate = wxPyBeginAllowThreads();
934 (arg1)->SetCurrent();
935
936 wxPyEndAllowThreads(__tstate);
937 if (PyErr_Occurred()) SWIG_fail;
938 }
939 Py_INCREF(Py_None); resultobj = Py_None;
940 return resultobj;
941 fail:
942 return NULL;
943}
944
945
c32bde28 946static PyObject *_wrap_GLCanvas_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
947 PyObject *resultobj;
948 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
949 wxString *arg2 = 0 ;
423f194a 950 bool temp2 = False ;
d14a1e28
RD
951 PyObject * obj0 = 0 ;
952 PyObject * obj1 = 0 ;
953 char *kwnames[] = {
954 (char *) "self",(char *) "colour", NULL
955 };
956
957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GLCanvas_SetColour",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
960 {
961 arg2 = wxString_in_helper(obj1);
962 if (arg2 == NULL) SWIG_fail;
423f194a 963 temp2 = True;
d14a1e28
RD
964 }
965 {
966 PyThreadState* __tstate = wxPyBeginAllowThreads();
967 (arg1)->SetColour((wxString const &)*arg2);
968
969 wxPyEndAllowThreads(__tstate);
970 if (PyErr_Occurred()) SWIG_fail;
971 }
972 Py_INCREF(Py_None); resultobj = Py_None;
973 {
974 if (temp2)
975 delete arg2;
976 }
977 return resultobj;
978 fail:
979 {
980 if (temp2)
981 delete arg2;
982 }
983 return NULL;
984}
985
986
c32bde28 987static PyObject *_wrap_GLCanvas_SwapBuffers(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
988 PyObject *resultobj;
989 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
990 PyObject * obj0 = 0 ;
991 char *kwnames[] = {
992 (char *) "self", NULL
993 };
994
995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_SwapBuffers",kwnames,&obj0)) goto fail;
2f4c0a16
RD
996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
998 {
999 PyThreadState* __tstate = wxPyBeginAllowThreads();
1000 (arg1)->SwapBuffers();
1001
1002 wxPyEndAllowThreads(__tstate);
1003 if (PyErr_Occurred()) SWIG_fail;
1004 }
1005 Py_INCREF(Py_None); resultobj = Py_None;
1006 return resultobj;
1007 fail:
1008 return NULL;
1009}
1010
1011
c32bde28 1012static PyObject *_wrap_GLCanvas_GetContext(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
1013 PyObject *resultobj;
1014 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
1015 wxGLContext *result;
1016 PyObject * obj0 = 0 ;
1017 char *kwnames[] = {
1018 (char *) "self", NULL
1019 };
1020
1021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_GetContext",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
1023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1024 {
1025 PyThreadState* __tstate = wxPyBeginAllowThreads();
1026 result = (wxGLContext *)(arg1)->GetContext();
1027
1028 wxPyEndAllowThreads(__tstate);
1029 if (PyErr_Occurred()) SWIG_fail;
1030 }
2f4c0a16 1031 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGLContext, 0);
d14a1e28
RD
1032 return resultobj;
1033 fail:
1034 return NULL;
1035}
1036
1037
c32bde28 1038static PyObject *_wrap_GLCanvas_SetupPixelFormat(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
1039 PyObject *resultobj;
1040 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
1041 int *arg2 = (int *) NULL ;
1042 int *temp2 ;
1043 PyObject * obj0 = 0 ;
1044 PyObject * obj1 = 0 ;
1045 char *kwnames[] = {
1046 (char *) "self",(char *) "attribList", NULL
1047 };
1048
1049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GLCanvas_SetupPixelFormat",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
1050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
1051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1052 if (obj1) {
1053 {
1054 int i;
1055 if (PySequence_Check(obj1)) {
1056 int size = PyObject_Length(obj1);
1057 temp2 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int));
1058 for (i = 0; i < size; i++) {
1059 temp2[i] = PyInt_AsLong(PySequence_GetItem(obj1, i));
1060 }
1061 temp2[size] = 0;
1062 arg2 = temp2;
1063 }
1064 }
1065 }
1066 {
1067 PyThreadState* __tstate = wxPyBeginAllowThreads();
1068 (arg1)->SetupPixelFormat(arg2);
1069
1070 wxPyEndAllowThreads(__tstate);
1071 if (PyErr_Occurred()) SWIG_fail;
1072 }
1073 Py_INCREF(Py_None); resultobj = Py_None;
1074 {
1075 delete [] arg2;
1076 }
1077 return resultobj;
1078 fail:
1079 {
1080 delete [] arg2;
1081 }
1082 return NULL;
1083}
1084
1085
c32bde28 1086static PyObject *_wrap_GLCanvas_SetupPalette(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
1087 PyObject *resultobj;
1088 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
1089 wxPalette *arg2 = 0 ;
1090 PyObject * obj0 = 0 ;
1091 PyObject * obj1 = 0 ;
1092 char *kwnames[] = {
1093 (char *) "self",(char *) "palette", NULL
1094 };
1095
1096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GLCanvas_SetupPalette",kwnames,&obj0,&obj1)) goto fail;
2f4c0a16
RD
1097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
1098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1099 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
1100 SWIG_POINTER_EXCEPTION | 0)) == -1)
1101 SWIG_fail;
d14a1e28 1102 if (arg2 == NULL) {
2f4c0a16
RD
1103 PyErr_SetString(PyExc_TypeError,"null reference");
1104 SWIG_fail;
d14a1e28
RD
1105 }
1106 {
1107 PyThreadState* __tstate = wxPyBeginAllowThreads();
1108 (arg1)->SetupPalette((wxPalette const &)*arg2);
1109
1110 wxPyEndAllowThreads(__tstate);
1111 if (PyErr_Occurred()) SWIG_fail;
1112 }
1113 Py_INCREF(Py_None); resultobj = Py_None;
1114 return resultobj;
1115 fail:
1116 return NULL;
1117}
1118
1119
c32bde28 1120static PyObject *_wrap_GLCanvas_CreateDefaultPalette(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
1121 PyObject *resultobj;
1122 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
1123 wxPalette result;
1124 PyObject * obj0 = 0 ;
1125 char *kwnames[] = {
1126 (char *) "self", NULL
1127 };
1128
1129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_CreateDefaultPalette",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
1131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1132 {
1133 PyThreadState* __tstate = wxPyBeginAllowThreads();
1134 result = (arg1)->CreateDefaultPalette();
1135
1136 wxPyEndAllowThreads(__tstate);
1137 if (PyErr_Occurred()) SWIG_fail;
1138 }
1139 {
1140 wxPalette * resultptr;
1141 resultptr = new wxPalette((wxPalette &) result);
2f4c0a16 1142 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPalette, 1);
d14a1e28
RD
1143 }
1144 return resultobj;
1145 fail:
1146 return NULL;
1147}
1148
1149
c32bde28 1150static PyObject *_wrap_GLCanvas_GetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
1151 PyObject *resultobj;
1152 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
1153 wxPalette *result;
1154 PyObject * obj0 = 0 ;
1155 char *kwnames[] = {
1156 (char *) "self", NULL
1157 };
1158
1159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_GetPalette",kwnames,&obj0)) goto fail;
2f4c0a16
RD
1160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
1161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
1162 {
1163 PyThreadState* __tstate = wxPyBeginAllowThreads();
1164 result = (wxPalette *)(arg1)->GetPalette();
1165
1166 wxPyEndAllowThreads(__tstate);
1167 if (PyErr_Occurred()) SWIG_fail;
1168 }
2f4c0a16 1169 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 0);
d14a1e28
RD
1170 return resultobj;
1171 fail:
1172 return NULL;
1173}
1174
1175
c32bde28 1176static PyObject * GLCanvas_swigregister(PyObject *, PyObject *args) {
d14a1e28
RD
1177 PyObject *obj;
1178 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1179 SWIG_TypeClientData(SWIGTYPE_p_wxGLCanvas, obj);
1180 Py_INCREF(obj);
1181 return Py_BuildValue((char *)"");
1182}
1183static PyMethodDef SwigMethods[] = {
c32bde28
RD
1184 { (char *)"new_GLContext", (PyCFunction) _wrap_new_GLContext, METH_VARARGS | METH_KEYWORDS, NULL },
1185 { (char *)"delete_GLContext", (PyCFunction) _wrap_delete_GLContext, METH_VARARGS | METH_KEYWORDS, NULL },
1186 { (char *)"GLContext_SetCurrent", (PyCFunction) _wrap_GLContext_SetCurrent, METH_VARARGS | METH_KEYWORDS, NULL },
1187 { (char *)"GLContext_SetColour", (PyCFunction) _wrap_GLContext_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
1188 { (char *)"GLContext_SwapBuffers", (PyCFunction) _wrap_GLContext_SwapBuffers, METH_VARARGS | METH_KEYWORDS, NULL },
1189 { (char *)"GLContext_GetWindow", (PyCFunction) _wrap_GLContext_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
1190 { (char *)"GLContext_swigregister", GLContext_swigregister, METH_VARARGS, NULL },
1191 { (char *)"new_GLCanvas", (PyCFunction) _wrap_new_GLCanvas, METH_VARARGS | METH_KEYWORDS, NULL },
1192 { (char *)"new_GLCanvasWithContext", (PyCFunction) _wrap_new_GLCanvasWithContext, METH_VARARGS | METH_KEYWORDS, NULL },
1193 { (char *)"GLCanvas_SetCurrent", (PyCFunction) _wrap_GLCanvas_SetCurrent, METH_VARARGS | METH_KEYWORDS, NULL },
1194 { (char *)"GLCanvas_SetColour", (PyCFunction) _wrap_GLCanvas_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
1195 { (char *)"GLCanvas_SwapBuffers", (PyCFunction) _wrap_GLCanvas_SwapBuffers, METH_VARARGS | METH_KEYWORDS, NULL },
1196 { (char *)"GLCanvas_GetContext", (PyCFunction) _wrap_GLCanvas_GetContext, METH_VARARGS | METH_KEYWORDS, NULL },
1197 { (char *)"GLCanvas_SetupPixelFormat", (PyCFunction) _wrap_GLCanvas_SetupPixelFormat, METH_VARARGS | METH_KEYWORDS, NULL },
1198 { (char *)"GLCanvas_SetupPalette", (PyCFunction) _wrap_GLCanvas_SetupPalette, METH_VARARGS | METH_KEYWORDS, NULL },
1199 { (char *)"GLCanvas_CreateDefaultPalette", (PyCFunction) _wrap_GLCanvas_CreateDefaultPalette, METH_VARARGS | METH_KEYWORDS, NULL },
1200 { (char *)"GLCanvas_GetPalette", (PyCFunction) _wrap_GLCanvas_GetPalette, METH_VARARGS | METH_KEYWORDS, NULL },
1201 { (char *)"GLCanvas_swigregister", GLCanvas_swigregister, METH_VARARGS, NULL },
1202 { NULL, NULL, 0, NULL }
d14a1e28
RD
1203};
1204
1205
1206/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
1207
1208static void *_p_wxControlTo_p_wxWindow(void *x) {
1209 return (void *)((wxWindow *) ((wxControl *) x));
1210}
1211static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
1212 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
1213}
1214static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
1215 return (void *)((wxWindow *) ((wxMenuBar *) x));
1216}
1217static void *_p_wxGLCanvasTo_p_wxWindow(void *x) {
1218 return (void *)((wxWindow *) ((wxGLCanvas *) x));
1219}
1220static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
1221 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
1222}
1223static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
1224 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
1225}
1226static void *_p_wxSizerItemTo_p_wxObject(void *x) {
1227 return (void *)((wxObject *) ((wxSizerItem *) x));
1228}
1229static void *_p_wxScrollEventTo_p_wxObject(void *x) {
1230 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
1231}
1232static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
1233 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
1234}
1235static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
1236 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
1237}
1238static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
1239 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
1240}
1241static void *_p_wxSizerTo_p_wxObject(void *x) {
1242 return (void *)((wxObject *) ((wxSizer *) x));
1243}
1244static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
1245 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
1246}
1247static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
1248 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
1249}
1250static void *_p_wxEventTo_p_wxObject(void *x) {
1251 return (void *)((wxObject *) ((wxEvent *) x));
1252}
1253static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
1254 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
1255}
1256static void *_p_wxGridSizerTo_p_wxObject(void *x) {
1257 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
1258}
1259static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
1260 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
1261}
1262static void *_p_wxPaintEventTo_p_wxObject(void *x) {
1263 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
1264}
1265static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
1266 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
1267}
1268static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
1269 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
1270}
1271static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
1272 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
1273}
1274static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
1275 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
1276}
1277static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
1278 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
1279}
1280static void *_p_wxControlTo_p_wxObject(void *x) {
1281 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
1282}
1283static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
1284 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
1285}
1286static void *_p_wxFSFileTo_p_wxObject(void *x) {
1287 return (void *)((wxObject *) ((wxFSFile *) x));
1288}
1289static void *_p_wxPySizerTo_p_wxObject(void *x) {
1290 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
1291}
1292static void *_p_wxPyEventTo_p_wxObject(void *x) {
1293 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
1294}
1295static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
1296 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
1297}
1298static void *_p_wxGLContextTo_p_wxObject(void *x) {
1299 return (void *)((wxObject *) ((wxGLContext *) x));
1300}
1301static void *_p_wxShowEventTo_p_wxObject(void *x) {
1302 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
1303}
1304static void *_p_wxMenuItemTo_p_wxObject(void *x) {
1305 return (void *)((wxObject *) ((wxMenuItem *) x));
1306}
1307static void *_p_wxIdleEventTo_p_wxObject(void *x) {
1308 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
1309}
1310static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
1311 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
1312}
1313static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
1314 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
1315}
1316static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
1317 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
1318}
1319static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
1320 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
1321}
1322static void *_p_wxSizeEventTo_p_wxObject(void *x) {
1323 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
1324}
1325static void *_p_wxMoveEventTo_p_wxObject(void *x) {
1326 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
1327}
1328static void *_p_wxActivateEventTo_p_wxObject(void *x) {
1329 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
1330}
1331static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
1332 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
1333}
1334static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
1335 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
1336}
1337static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
1338 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
1339}
1340static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
1341 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
1342}
1343static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
1344 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
1345}
1346static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
1347 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
1348}
1349static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
1350 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
1351}
1352static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
1353 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
1354}
1355static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
1356 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
1357}
1358static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
1359 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
1360}
1361static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
1362 return (void *)((wxObject *) ((wxImageHandler *) x));
1363}
1364static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
1365 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
1366}
1367static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
1368 return (void *)((wxObject *) ((wxEvtHandler *) x));
1369}
1370static void *_p_wxGLCanvasTo_p_wxObject(void *x) {
1371 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxGLCanvas *) x));
1372}
41f1cec7
RD
1373static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
1374 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
1375}
d14a1e28
RD
1376static void *_p_wxImageTo_p_wxObject(void *x) {
1377 return (void *)((wxObject *) ((wxImage *) x));
1378}
1379static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
1380 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
1381}
1382static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
1383 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
1384}
1385static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
1386 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
1387}
1388static void *_p_wxKeyEventTo_p_wxObject(void *x) {
1389 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
1390}
1391static void *_p_wxWindowTo_p_wxObject(void *x) {
1392 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
1393}
1394static void *_p_wxMenuTo_p_wxObject(void *x) {
1395 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
1396}
1397static void *_p_wxMenuBarTo_p_wxObject(void *x) {
1398 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
1399}
1400static void *_p_wxFileSystemTo_p_wxObject(void *x) {
1401 return (void *)((wxObject *) ((wxFileSystem *) x));
1402}
1403static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
1404 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
1405}
1406static void *_p_wxMenuEventTo_p_wxObject(void *x) {
1407 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
1408}
1409static void *_p_wxPyAppTo_p_wxObject(void *x) {
1410 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
1411}
1412static void *_p_wxCloseEventTo_p_wxObject(void *x) {
1413 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
1414}
1415static void *_p_wxMouseEventTo_p_wxObject(void *x) {
1416 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
1417}
1418static void *_p_wxEraseEventTo_p_wxObject(void *x) {
1419 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
1420}
1421static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
1422 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
1423}
1424static void *_p_wxCommandEventTo_p_wxObject(void *x) {
1425 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
1426}
1427static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
1428 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
1429}
1430static void *_p_wxFocusEventTo_p_wxObject(void *x) {
1431 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
1432}
1433static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
1434 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
1435}
1436static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
1437 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
1438}
1439static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
1440 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
1441}
1442static void *_p_wxValidatorTo_p_wxObject(void *x) {
1443 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
1444}
1445static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
1446 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
1447}
1448static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
1449 return (void *)((wxEvtHandler *) ((wxWindow *) x));
1450}
1451static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
1452 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
1453}
1454static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
1455 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
1456}
1457static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
1458 return (void *)((wxEvtHandler *) ((wxValidator *) x));
1459}
1460static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
1461 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
1462}
1463static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
1464 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
1465}
1466static void *_p_wxGLCanvasTo_p_wxEvtHandler(void *x) {
1467 return (void *)((wxEvtHandler *) (wxWindow *) ((wxGLCanvas *) x));
1468}
1469static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
1470 return (void *)((wxEvtHandler *) ((wxMenu *) x));
1471}
2f4c0a16
RD
1472static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGLCanvas", _p_wxGLCanvasTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1473static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGLContext", _p_wxGLContextTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGLCanvas", _p_wxGLCanvasTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1474static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGLCanvas", _p_wxGLCanvasTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1475static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1476static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0, 0, 0, 0},{"_p_wxPalette", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1477static swig_type_info _swigt__p_wxGLCanvas[] = {{"_p_wxGLCanvas", 0, "wxGLCanvas *", 0, 0, 0, 0},{"_p_wxGLCanvas", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1478static swig_type_info _swigt__p_wxGLContext[] = {{"_p_wxGLContext", 0, "wxGLContext *", 0, 0, 0, 0},{"_p_wxGLContext", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
1479static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
d14a1e28
RD
1480
1481static swig_type_info *swig_types_initial[] = {
1482_swigt__p_wxWindow,
1483_swigt__p_wxObject,
1484_swigt__p_wxEvtHandler,
8edf1c75 1485_swigt__p_char,
d14a1e28
RD
1486_swigt__p_wxPalette,
1487_swigt__p_wxGLCanvas,
d14a1e28
RD
1488_swigt__p_wxGLContext,
1489_swigt__p_int,
14900
1491};
1492
1493
1494/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
1495
1496static swig_const_info swig_const_table[] = {
c32bde28 1497{0, 0, 0, 0.0, 0, 0}};
d14a1e28
RD
1498
1499#ifdef __cplusplus
1500}
1501#endif
1502
1503#ifdef __cplusplus
1504extern "C"
1505#endif
1506SWIGEXPORT(void) SWIG_init(void) {
1507 static PyObject *SWIG_globals = 0;
1508 static int typeinit = 0;
1509 PyObject *m, *d;
1510 int i;
1511 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
1512 m = Py_InitModule((char *) SWIG_name, SwigMethods);
1513 d = PyModule_GetDict(m);
1514
1515 if (!typeinit) {
1516 for (i = 0; swig_types_initial[i]; i++) {
1517 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
1518 }
1519 typeinit = 1;
1520 }
1521 SWIG_InstallConstants(d,swig_const_table);
1522
d03fd34d
RD
1523 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
1524 SWIG_addvarlink(SWIG_globals,(char*)"GLCanvasNameStr",_wrap_GLCanvasNameStr_get, _wrap_GLCanvasNameStr_set);
c32bde28
RD
1525 PyDict_SetItemString(d,"WX_GL_RGBA", SWIG_From_int((int)WX_GL_RGBA));
1526 PyDict_SetItemString(d,"WX_GL_BUFFER_SIZE", SWIG_From_int((int)WX_GL_BUFFER_SIZE));
1527 PyDict_SetItemString(d,"WX_GL_LEVEL", SWIG_From_int((int)WX_GL_LEVEL));
1528 PyDict_SetItemString(d,"WX_GL_DOUBLEBUFFER", SWIG_From_int((int)WX_GL_DOUBLEBUFFER));
1529 PyDict_SetItemString(d,"WX_GL_STEREO", SWIG_From_int((int)WX_GL_STEREO));
1530 PyDict_SetItemString(d,"WX_GL_AUX_BUFFERS", SWIG_From_int((int)WX_GL_AUX_BUFFERS));
1531 PyDict_SetItemString(d,"WX_GL_MIN_RED", SWIG_From_int((int)WX_GL_MIN_RED));
1532 PyDict_SetItemString(d,"WX_GL_MIN_GREEN", SWIG_From_int((int)WX_GL_MIN_GREEN));
1533 PyDict_SetItemString(d,"WX_GL_MIN_BLUE", SWIG_From_int((int)WX_GL_MIN_BLUE));
1534 PyDict_SetItemString(d,"WX_GL_MIN_ALPHA", SWIG_From_int((int)WX_GL_MIN_ALPHA));
1535 PyDict_SetItemString(d,"WX_GL_DEPTH_SIZE", SWIG_From_int((int)WX_GL_DEPTH_SIZE));
1536 PyDict_SetItemString(d,"WX_GL_STENCIL_SIZE", SWIG_From_int((int)WX_GL_STENCIL_SIZE));
1537 PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_RED", SWIG_From_int((int)WX_GL_MIN_ACCUM_RED));
1538 PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_GREEN", SWIG_From_int((int)WX_GL_MIN_ACCUM_GREEN));
1539 PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_BLUE", SWIG_From_int((int)WX_GL_MIN_ACCUM_BLUE));
1540 PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_ALPHA", SWIG_From_int((int)WX_GL_MIN_ACCUM_ALPHA));
d14a1e28
RD
1541
1542
1543
1544}
1545