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