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