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