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