]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/glcanvas/gtk/glcanvas.cpp
minor clean up
[wxWidgets.git] / wxPython / contrib / glcanvas / gtk / glcanvas.cpp
1 /*
2 * FILE : contrib/glcanvas/gtk/glcanvas.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18 #define SWIGCODE
19 /* Implementation : PYTHON */
20
21 #define SWIGPYTHON
22 #include <string.h>
23 #include <stdlib.h>
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
28 # else
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
31 # else
32 # define SWIGEXPORT(a) a
33 # endif
34 # endif
35 #else
36 # define SWIGEXPORT(a) a
37 #endif
38
39 #include "Python.h"
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
49 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50 extern PyObject *SWIG_newvarlink(void);
51 #ifdef __cplusplus
52 }
53 #endif
54 #define SWIG_init initglcanvasc
55
56 #define SWIG_name "glcanvasc"
57
58 #include "export.h"
59 #ifdef __WXMSW__
60 #include "myglcanvas.h"
61 #else
62 #include <wx/glcanvas.h>
63 #endif
64
65
66 static PyObject* l_output_helper(PyObject* target, PyObject* o) {
67 PyObject* o2;
68 if (!target) {
69 target = o;
70 } else if (target == Py_None) {
71 Py_DECREF(Py_None);
72 target = o;
73 } else {
74 if (!PyList_Check(target)) {
75 o2 = target;
76 target = PyList_New(0);
77 PyList_Append(target, o2);
78 Py_XDECREF(o2);
79 }
80 PyList_Append(target,o);
81 Py_XDECREF(o);
82 }
83 return target;
84 }
85
86 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
87 PyObject* o2;
88 PyObject* o3;
89
90 if (!target) {
91 target = o;
92 } else if (target == Py_None) {
93 Py_DECREF(Py_None);
94 target = o;
95 } else {
96 if (!PyTuple_Check(target)) {
97 o2 = target;
98 target = PyTuple_New(1);
99 PyTuple_SetItem(target, 0, o2);
100 }
101 o3 = PyTuple_New(1);
102 PyTuple_SetItem(o3, 0, o);
103
104 o2 = target;
105 target = PySequence_Concat(o2, o3);
106 Py_DECREF(o2);
107 Py_DECREF(o3);
108 }
109 return target;
110 }
111
112 #if PYTHON_API_VERSION >= 1009
113 static char* wxStringErrorMsg = "String or Unicode type required";
114 #else
115 static char* wxStringErrorMsg = "string type is required for parameter";
116 #endif
117 #ifdef __cplusplus
118 extern "C" {
119 #endif
120 static void *SwigwxGLContextTowxObject(void *ptr) {
121 wxGLContext *src;
122 wxObject *dest;
123 src = (wxGLContext *) ptr;
124 dest = (wxObject *) src;
125 return (void *) dest;
126 }
127
128 #define new_wxGLContext(_swigarg0,_swigarg1,_swigarg2) (new wxGLContext(_swigarg0,_swigarg1,_swigarg2))
129 static PyObject *_wrap_new_wxGLContext(PyObject *self, PyObject *args, PyObject *kwargs) {
130 PyObject * _resultobj;
131 wxGLContext * _result;
132 bool _arg0;
133 wxGLCanvas * _arg1;
134 wxPalette * _arg2 = (wxPalette *) &wxNullPalette;
135 int tempbool0;
136 PyObject * _argo1 = 0;
137 PyObject * _argo2 = 0;
138 char *_kwnames[] = { "isRGB","win","palette", NULL };
139 char _ptemp[128];
140
141 self = self;
142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iO|O:new_wxGLContext",_kwnames,&tempbool0,&_argo1,&_argo2))
143 return NULL;
144 _arg0 = (bool ) tempbool0;
145 if (_argo1) {
146 if (_argo1 == Py_None) { _arg1 = NULL; }
147 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxGLCanvas_p")) {
148 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxGLContext. Expected _wxGLCanvas_p.");
149 return NULL;
150 }
151 }
152 if (_argo2) {
153 if (_argo2 == Py_None) { _arg2 = NULL; }
154 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPalette_p")) {
155 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxGLContext. Expected _wxPalette_p.");
156 return NULL;
157 }
158 }
159 {
160 wxPy_BEGIN_ALLOW_THREADS;
161 _result = (wxGLContext *)new_wxGLContext(_arg0,_arg1,*_arg2);
162
163 wxPy_END_ALLOW_THREADS;
164 } if (_result) {
165 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGLContext_p");
166 _resultobj = Py_BuildValue("s",_ptemp);
167 } else {
168 Py_INCREF(Py_None);
169 _resultobj = Py_None;
170 }
171 return _resultobj;
172 }
173
174 #define delete_wxGLContext(_swigobj) (delete _swigobj)
175 static PyObject *_wrap_delete_wxGLContext(PyObject *self, PyObject *args, PyObject *kwargs) {
176 PyObject * _resultobj;
177 wxGLContext * _arg0;
178 PyObject * _argo0 = 0;
179 char *_kwnames[] = { "self", NULL };
180
181 self = self;
182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGLContext",_kwnames,&_argo0))
183 return NULL;
184 if (_argo0) {
185 if (_argo0 == Py_None) { _arg0 = NULL; }
186 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) {
187 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGLContext. Expected _wxGLContext_p.");
188 return NULL;
189 }
190 }
191 {
192 wxPy_BEGIN_ALLOW_THREADS;
193 delete_wxGLContext(_arg0);
194
195 wxPy_END_ALLOW_THREADS;
196 } Py_INCREF(Py_None);
197 _resultobj = Py_None;
198 return _resultobj;
199 }
200
201 #define wxGLContext_SetCurrent(_swigobj) (_swigobj->SetCurrent())
202 static PyObject *_wrap_wxGLContext_SetCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
203 PyObject * _resultobj;
204 wxGLContext * _arg0;
205 PyObject * _argo0 = 0;
206 char *_kwnames[] = { "self", NULL };
207
208 self = self;
209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLContext_SetCurrent",_kwnames,&_argo0))
210 return NULL;
211 if (_argo0) {
212 if (_argo0 == Py_None) { _arg0 = NULL; }
213 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) {
214 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_SetCurrent. Expected _wxGLContext_p.");
215 return NULL;
216 }
217 }
218 {
219 wxPy_BEGIN_ALLOW_THREADS;
220 wxGLContext_SetCurrent(_arg0);
221
222 wxPy_END_ALLOW_THREADS;
223 } Py_INCREF(Py_None);
224 _resultobj = Py_None;
225 return _resultobj;
226 }
227
228 #define wxGLContext_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
229 static PyObject *_wrap_wxGLContext_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
230 PyObject * _resultobj;
231 wxGLContext * _arg0;
232 char * _arg1;
233 PyObject * _argo0 = 0;
234 char *_kwnames[] = { "self","colour", NULL };
235
236 self = self;
237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxGLContext_SetColour",_kwnames,&_argo0,&_arg1))
238 return NULL;
239 if (_argo0) {
240 if (_argo0 == Py_None) { _arg0 = NULL; }
241 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) {
242 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_SetColour. Expected _wxGLContext_p.");
243 return NULL;
244 }
245 }
246 {
247 wxPy_BEGIN_ALLOW_THREADS;
248 wxGLContext_SetColour(_arg0,_arg1);
249
250 wxPy_END_ALLOW_THREADS;
251 } Py_INCREF(Py_None);
252 _resultobj = Py_None;
253 return _resultobj;
254 }
255
256 #define wxGLContext_SwapBuffers(_swigobj) (_swigobj->SwapBuffers())
257 static PyObject *_wrap_wxGLContext_SwapBuffers(PyObject *self, PyObject *args, PyObject *kwargs) {
258 PyObject * _resultobj;
259 wxGLContext * _arg0;
260 PyObject * _argo0 = 0;
261 char *_kwnames[] = { "self", NULL };
262
263 self = self;
264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLContext_SwapBuffers",_kwnames,&_argo0))
265 return NULL;
266 if (_argo0) {
267 if (_argo0 == Py_None) { _arg0 = NULL; }
268 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) {
269 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_SwapBuffers. Expected _wxGLContext_p.");
270 return NULL;
271 }
272 }
273 {
274 wxPy_BEGIN_ALLOW_THREADS;
275 wxGLContext_SwapBuffers(_arg0);
276
277 wxPy_END_ALLOW_THREADS;
278 } Py_INCREF(Py_None);
279 _resultobj = Py_None;
280 return _resultobj;
281 }
282
283 #define wxGLContext_SetupPixelFormat(_swigobj) (_swigobj->SetupPixelFormat())
284 static PyObject *_wrap_wxGLContext_SetupPixelFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
285 PyObject * _resultobj;
286 wxGLContext * _arg0;
287 PyObject * _argo0 = 0;
288 char *_kwnames[] = { "self", NULL };
289
290 self = self;
291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLContext_SetupPixelFormat",_kwnames,&_argo0))
292 return NULL;
293 if (_argo0) {
294 if (_argo0 == Py_None) { _arg0 = NULL; }
295 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) {
296 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_SetupPixelFormat. Expected _wxGLContext_p.");
297 return NULL;
298 }
299 }
300 {
301 wxPy_BEGIN_ALLOW_THREADS;
302 wxGLContext_SetupPixelFormat(_arg0);
303
304 wxPy_END_ALLOW_THREADS;
305 } Py_INCREF(Py_None);
306 _resultobj = Py_None;
307 return _resultobj;
308 }
309
310 #define wxGLContext_SetupPalette(_swigobj,_swigarg0) (_swigobj->SetupPalette(_swigarg0))
311 static PyObject *_wrap_wxGLContext_SetupPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
312 PyObject * _resultobj;
313 wxGLContext * _arg0;
314 wxPalette * _arg1;
315 PyObject * _argo0 = 0;
316 PyObject * _argo1 = 0;
317 char *_kwnames[] = { "self","palette", NULL };
318
319 self = self;
320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGLContext_SetupPalette",_kwnames,&_argo0,&_argo1))
321 return NULL;
322 if (_argo0) {
323 if (_argo0 == Py_None) { _arg0 = NULL; }
324 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) {
325 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_SetupPalette. Expected _wxGLContext_p.");
326 return NULL;
327 }
328 }
329 if (_argo1) {
330 if (_argo1 == Py_None) { _arg1 = NULL; }
331 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
332 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGLContext_SetupPalette. Expected _wxPalette_p.");
333 return NULL;
334 }
335 }
336 {
337 wxPy_BEGIN_ALLOW_THREADS;
338 wxGLContext_SetupPalette(_arg0,*_arg1);
339
340 wxPy_END_ALLOW_THREADS;
341 } Py_INCREF(Py_None);
342 _resultobj = Py_None;
343 return _resultobj;
344 }
345
346 #define wxGLContext_CreateDefaultPalette(_swigobj) (_swigobj->CreateDefaultPalette())
347 static PyObject *_wrap_wxGLContext_CreateDefaultPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
348 PyObject * _resultobj;
349 wxPalette * _result;
350 wxGLContext * _arg0;
351 PyObject * _argo0 = 0;
352 char *_kwnames[] = { "self", NULL };
353 char _ptemp[128];
354
355 self = self;
356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLContext_CreateDefaultPalette",_kwnames,&_argo0))
357 return NULL;
358 if (_argo0) {
359 if (_argo0 == Py_None) { _arg0 = NULL; }
360 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) {
361 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_CreateDefaultPalette. Expected _wxGLContext_p.");
362 return NULL;
363 }
364 }
365 {
366 wxPy_BEGIN_ALLOW_THREADS;
367 _result = new wxPalette (wxGLContext_CreateDefaultPalette(_arg0));
368
369 wxPy_END_ALLOW_THREADS;
370 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPalette_p");
371 _resultobj = Py_BuildValue("s",_ptemp);
372 return _resultobj;
373 }
374
375 #define wxGLContext_GetPalette(_swigobj) (_swigobj->GetPalette())
376 static PyObject *_wrap_wxGLContext_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
377 PyObject * _resultobj;
378 wxPalette * _result;
379 wxGLContext * _arg0;
380 PyObject * _argo0 = 0;
381 char *_kwnames[] = { "self", NULL };
382 char _ptemp[128];
383
384 self = self;
385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLContext_GetPalette",_kwnames,&_argo0))
386 return NULL;
387 if (_argo0) {
388 if (_argo0 == Py_None) { _arg0 = NULL; }
389 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) {
390 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_GetPalette. Expected _wxGLContext_p.");
391 return NULL;
392 }
393 }
394 {
395 wxPy_BEGIN_ALLOW_THREADS;
396 _result = (wxPalette *)wxGLContext_GetPalette(_arg0);
397
398 wxPy_END_ALLOW_THREADS;
399 } if (_result) {
400 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
401 _resultobj = Py_BuildValue("s",_ptemp);
402 } else {
403 Py_INCREF(Py_None);
404 _resultobj = Py_None;
405 }
406 return _resultobj;
407 }
408
409 #define wxGLContext_GetWindow(_swigobj) (_swigobj->GetWindow())
410 static PyObject *_wrap_wxGLContext_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
411 PyObject * _resultobj;
412 wxWindow * _result;
413 wxGLContext * _arg0;
414 PyObject * _argo0 = 0;
415 char *_kwnames[] = { "self", NULL };
416
417 self = self;
418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLContext_GetWindow",_kwnames,&_argo0))
419 return NULL;
420 if (_argo0) {
421 if (_argo0 == Py_None) { _arg0 = NULL; }
422 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) {
423 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_GetWindow. Expected _wxGLContext_p.");
424 return NULL;
425 }
426 }
427 {
428 wxPy_BEGIN_ALLOW_THREADS;
429 _result = (wxWindow *)wxGLContext_GetWindow(_arg0);
430
431 wxPy_END_ALLOW_THREADS;
432 }{ _resultobj = wxPyMake_wxObject(_result); }
433 return _resultobj;
434 }
435
436 static void *SwigwxGLCanvasTowxScrolledWindow(void *ptr) {
437 wxGLCanvas *src;
438 wxScrolledWindow *dest;
439 src = (wxGLCanvas *) ptr;
440 dest = (wxScrolledWindow *) src;
441 return (void *) dest;
442 }
443
444 static void *SwigwxGLCanvasTowxPanel(void *ptr) {
445 wxGLCanvas *src;
446 wxPanel *dest;
447 src = (wxGLCanvas *) ptr;
448 dest = (wxPanel *) src;
449 return (void *) dest;
450 }
451
452 static void *SwigwxGLCanvasTowxWindow(void *ptr) {
453 wxGLCanvas *src;
454 wxWindow *dest;
455 src = (wxGLCanvas *) ptr;
456 dest = (wxWindow *) src;
457 return (void *) dest;
458 }
459
460 static void *SwigwxGLCanvasTowxEvtHandler(void *ptr) {
461 wxGLCanvas *src;
462 wxEvtHandler *dest;
463 src = (wxGLCanvas *) ptr;
464 dest = (wxEvtHandler *) src;
465 return (void *) dest;
466 }
467
468 static void *SwigwxGLCanvasTowxObject(void *ptr) {
469 wxGLCanvas *src;
470 wxObject *dest;
471 src = (wxGLCanvas *) ptr;
472 dest = (wxObject *) src;
473 return (void *) dest;
474 }
475
476 #define new_wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
477 static PyObject *_wrap_new_wxGLCanvas(PyObject *self, PyObject *args, PyObject *kwargs) {
478 PyObject * _resultobj;
479 wxGLCanvas * _result;
480 wxWindow * _arg0;
481 wxWindowID _arg1 = (wxWindowID ) -1;
482 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
483 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
484 long _arg4 = (long ) 0;
485 char * _arg5 = (char *) "GLCanvas";
486 int * _arg6 = (int *) NULL;
487 wxPalette * _arg7 = (wxPalette *) &wxNullPalette;
488 PyObject * _argo0 = 0;
489 wxPoint temp;
490 PyObject * _obj2 = 0;
491 wxSize temp0;
492 PyObject * _obj3 = 0;
493 int * temp1;
494 PyObject * _obj6 = 0;
495 PyObject * _argo7 = 0;
496 char *_kwnames[] = { "parent","id","pos","size","style","name","attribList","palette", NULL };
497 char _ptemp[128];
498
499 self = self;
500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlsOO:new_wxGLCanvas",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5,&_obj6,&_argo7))
501 return NULL;
502 if (_argo0) {
503 if (_argo0 == Py_None) { _arg0 = NULL; }
504 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
505 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGLCanvas. Expected _wxWindow_p.");
506 return NULL;
507 }
508 }
509 if (_obj2)
510 {
511 _arg2 = &temp;
512 if (! wxPoint_helper(_obj2, &_arg2))
513 return NULL;
514 }
515 if (_obj3)
516 {
517 _arg3 = &temp0;
518 if (! wxSize_helper(_obj3, &_arg3))
519 return NULL;
520 }
521 if (_obj6)
522 {
523 int i;
524 if (PySequence_Check(_obj6)) {
525 int size = PyObject_Length(_obj6);
526 temp1 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int));
527 for (i = 0; i < size; i++) {
528 temp1[i] = PyInt_AsLong(PySequence_GetItem(_obj6, i));
529 }
530 temp1[size] = 0;
531 _arg6 = temp1;
532 }
533 }
534 if (_argo7) {
535 if (_argo7 == Py_None) { _arg7 = NULL; }
536 else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxPalette_p")) {
537 PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxGLCanvas. Expected _wxPalette_p.");
538 return NULL;
539 }
540 }
541 {
542 wxPy_BEGIN_ALLOW_THREADS;
543 _result = (wxGLCanvas *)new_wxGLCanvas(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7);
544
545 wxPy_END_ALLOW_THREADS;
546 } if (_result) {
547 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGLCanvas_p");
548 _resultobj = Py_BuildValue("s",_ptemp);
549 } else {
550 Py_INCREF(Py_None);
551 _resultobj = Py_None;
552 }
553 {
554 delete [] _arg6;
555 }
556 return _resultobj;
557 }
558
559 #define wxGLCanvas_SetCurrent(_swigobj) (_swigobj->SetCurrent())
560 static PyObject *_wrap_wxGLCanvas_SetCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
561 PyObject * _resultobj;
562 wxGLCanvas * _arg0;
563 PyObject * _argo0 = 0;
564 char *_kwnames[] = { "self", NULL };
565
566 self = self;
567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLCanvas_SetCurrent",_kwnames,&_argo0))
568 return NULL;
569 if (_argo0) {
570 if (_argo0 == Py_None) { _arg0 = NULL; }
571 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLCanvas_p")) {
572 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLCanvas_SetCurrent. Expected _wxGLCanvas_p.");
573 return NULL;
574 }
575 }
576 {
577 wxPy_BEGIN_ALLOW_THREADS;
578 wxGLCanvas_SetCurrent(_arg0);
579
580 wxPy_END_ALLOW_THREADS;
581 } Py_INCREF(Py_None);
582 _resultobj = Py_None;
583 return _resultobj;
584 }
585
586 #define wxGLCanvas_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
587 static PyObject *_wrap_wxGLCanvas_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
588 PyObject * _resultobj;
589 wxGLCanvas * _arg0;
590 char * _arg1;
591 PyObject * _argo0 = 0;
592 char *_kwnames[] = { "self","colour", NULL };
593
594 self = self;
595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxGLCanvas_SetColour",_kwnames,&_argo0,&_arg1))
596 return NULL;
597 if (_argo0) {
598 if (_argo0 == Py_None) { _arg0 = NULL; }
599 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLCanvas_p")) {
600 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLCanvas_SetColour. Expected _wxGLCanvas_p.");
601 return NULL;
602 }
603 }
604 {
605 wxPy_BEGIN_ALLOW_THREADS;
606 wxGLCanvas_SetColour(_arg0,_arg1);
607
608 wxPy_END_ALLOW_THREADS;
609 } Py_INCREF(Py_None);
610 _resultobj = Py_None;
611 return _resultobj;
612 }
613
614 #define wxGLCanvas_SwapBuffers(_swigobj) (_swigobj->SwapBuffers())
615 static PyObject *_wrap_wxGLCanvas_SwapBuffers(PyObject *self, PyObject *args, PyObject *kwargs) {
616 PyObject * _resultobj;
617 wxGLCanvas * _arg0;
618 PyObject * _argo0 = 0;
619 char *_kwnames[] = { "self", NULL };
620
621 self = self;
622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLCanvas_SwapBuffers",_kwnames,&_argo0))
623 return NULL;
624 if (_argo0) {
625 if (_argo0 == Py_None) { _arg0 = NULL; }
626 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLCanvas_p")) {
627 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLCanvas_SwapBuffers. Expected _wxGLCanvas_p.");
628 return NULL;
629 }
630 }
631 {
632 wxPy_BEGIN_ALLOW_THREADS;
633 wxGLCanvas_SwapBuffers(_arg0);
634
635 wxPy_END_ALLOW_THREADS;
636 } Py_INCREF(Py_None);
637 _resultobj = Py_None;
638 return _resultobj;
639 }
640
641 #define wxGLCanvas_GetContext(_swigobj) (_swigobj->GetContext())
642 static PyObject *_wrap_wxGLCanvas_GetContext(PyObject *self, PyObject *args, PyObject *kwargs) {
643 PyObject * _resultobj;
644 wxGLContext * _result;
645 wxGLCanvas * _arg0;
646 PyObject * _argo0 = 0;
647 char *_kwnames[] = { "self", NULL };
648 char _ptemp[128];
649
650 self = self;
651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLCanvas_GetContext",_kwnames,&_argo0))
652 return NULL;
653 if (_argo0) {
654 if (_argo0 == Py_None) { _arg0 = NULL; }
655 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLCanvas_p")) {
656 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLCanvas_GetContext. Expected _wxGLCanvas_p.");
657 return NULL;
658 }
659 }
660 {
661 wxPy_BEGIN_ALLOW_THREADS;
662 _result = (wxGLContext *)wxGLCanvas_GetContext(_arg0);
663
664 wxPy_END_ALLOW_THREADS;
665 } if (_result) {
666 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGLContext_p");
667 _resultobj = Py_BuildValue("s",_ptemp);
668 } else {
669 Py_INCREF(Py_None);
670 _resultobj = Py_None;
671 }
672 return _resultobj;
673 }
674
675 static PyMethodDef glcanvascMethods[] = {
676 { "wxGLCanvas_GetContext", (PyCFunction) _wrap_wxGLCanvas_GetContext, METH_VARARGS | METH_KEYWORDS },
677 { "wxGLCanvas_SwapBuffers", (PyCFunction) _wrap_wxGLCanvas_SwapBuffers, METH_VARARGS | METH_KEYWORDS },
678 { "wxGLCanvas_SetColour", (PyCFunction) _wrap_wxGLCanvas_SetColour, METH_VARARGS | METH_KEYWORDS },
679 { "wxGLCanvas_SetCurrent", (PyCFunction) _wrap_wxGLCanvas_SetCurrent, METH_VARARGS | METH_KEYWORDS },
680 { "new_wxGLCanvas", (PyCFunction) _wrap_new_wxGLCanvas, METH_VARARGS | METH_KEYWORDS },
681 { "wxGLContext_GetWindow", (PyCFunction) _wrap_wxGLContext_GetWindow, METH_VARARGS | METH_KEYWORDS },
682 { "wxGLContext_GetPalette", (PyCFunction) _wrap_wxGLContext_GetPalette, METH_VARARGS | METH_KEYWORDS },
683 { "wxGLContext_CreateDefaultPalette", (PyCFunction) _wrap_wxGLContext_CreateDefaultPalette, METH_VARARGS | METH_KEYWORDS },
684 { "wxGLContext_SetupPalette", (PyCFunction) _wrap_wxGLContext_SetupPalette, METH_VARARGS | METH_KEYWORDS },
685 { "wxGLContext_SetupPixelFormat", (PyCFunction) _wrap_wxGLContext_SetupPixelFormat, METH_VARARGS | METH_KEYWORDS },
686 { "wxGLContext_SwapBuffers", (PyCFunction) _wrap_wxGLContext_SwapBuffers, METH_VARARGS | METH_KEYWORDS },
687 { "wxGLContext_SetColour", (PyCFunction) _wrap_wxGLContext_SetColour, METH_VARARGS | METH_KEYWORDS },
688 { "wxGLContext_SetCurrent", (PyCFunction) _wrap_wxGLContext_SetCurrent, METH_VARARGS | METH_KEYWORDS },
689 { "delete_wxGLContext", (PyCFunction) _wrap_delete_wxGLContext, METH_VARARGS | METH_KEYWORDS },
690 { "new_wxGLContext", (PyCFunction) _wrap_new_wxGLContext, METH_VARARGS | METH_KEYWORDS },
691 { NULL, NULL }
692 };
693 #ifdef __cplusplus
694 }
695 #endif
696 /*
697 * This table is used by the pointer type-checker
698 */
699 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
700 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
701 { "_wxEvent","_class_wxEvent",0},
702 { "_class_wxActivateEvent","_wxActivateEvent",0},
703 { "_signed_long","_long",0},
704 { "_wxMenuEvent","_class_wxMenuEvent",0},
705 { "_class_wxProcessEvent","_wxProcessEvent",0},
706 { "_class_wxJPEGHandler","_wxJPEGHandler",0},
707 { "_class_wxFSFile","_wxFSFile",0},
708 { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0},
709 { "_wxBitmapDataObject","_class_wxBitmapDataObject",0},
710 { "_class_wxPyCommandEvent","_wxPyCommandEvent",0},
711 { "_wxBMPHandler","_class_wxBMPHandler",0},
712 { "_wxImage","_class_wxImage",0},
713 { "_wxFlexGridSizer","_class_wxFlexGridSizer",0},
714 { "_wxWindowDisabler","_class_wxWindowDisabler",0},
715 { "_class_wxDateTime","_wxDateTime",0},
716 { "_wxPrintQuality","_wxCoord",0},
717 { "_wxPrintQuality","_int",0},
718 { "_wxPrintQuality","_signed_int",0},
719 { "_wxPrintQuality","_unsigned_int",0},
720 { "_wxPrintQuality","_wxWindowID",0},
721 { "_wxPrintQuality","_uint",0},
722 { "_wxPrintQuality","_EBool",0},
723 { "_wxPrintQuality","_size_t",0},
724 { "_wxPrintQuality","_time_t",0},
725 { "_class_wxCustomDataObject","_wxCustomDataObject",0},
726 { "_wxSpinCtrl","_class_wxSpinCtrl",0},
727 { "_wxFontData","_class_wxFontData",0},
728 { "_class_wxRegionIterator","_wxRegionIterator",0},
729 { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0},
730 { "_class_wxMenuBar","_wxMenuBar",0},
731 { "_class_wxPyTreeItemData","_wxPyTreeItemData",0},
732 { "_class_wxStaticBoxSizer","_wxStaticBoxSizer",0},
733 { "_class_wxEvtHandler","_class_wxGLCanvas",SwigwxGLCanvasTowxEvtHandler},
734 { "_class_wxEvtHandler","_wxGLCanvas",SwigwxGLCanvasTowxEvtHandler},
735 { "_class_wxEvtHandler","_wxEvtHandler",0},
736 { "_wxPaintEvent","_class_wxPaintEvent",0},
737 { "_wxGIFHandler","_class_wxGIFHandler",0},
738 { "_wxPySizer","_class_wxPySizer",0},
739 { "_wxInternetFSHandler","_class_wxInternetFSHandler",0},
740 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
741 { "_wxCursor","_class_wxCursor",0},
742 { "_wxNotifyEvent","_class_wxNotifyEvent",0},
743 { "_wxPyProcess","_class_wxPyProcess",0},
744 { "_wxPyTreeCtrl","_class_wxPyTreeCtrl",0},
745 { "_wxImageHandler","_class_wxImageHandler",0},
746 { "_wxMutexGuiLocker","_class_wxMutexGuiLocker",0},
747 { "_wxLog","_class_wxLog",0},
748 { "_class_wxToolBarBase","_wxToolBarBase",0},
749 { "_wxMask","_class_wxMask",0},
750 { "_wxToolTip","_class_wxToolTip",0},
751 { "_wxPNGHandler","_class_wxPNGHandler",0},
752 { "_class_wxColourData","_wxColourData",0},
753 { "_class_wxPageSetupDialogData","_wxPageSetupDialogData",0},
754 { "_wxPrinter","_class_wxPrinter",0},
755 { "_wxPen","_class_wxPen",0},
756 { "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0},
757 { "_class_wxNotebookSizer","_wxNotebookSizer",0},
758 { "_byte","_unsigned_char",0},
759 { "_wxDataObject","_class_wxDataObject",0},
760 { "_class_wxPyFontEnumerator","_wxPyFontEnumerator",0},
761 { "_wxStaticBox","_class_wxStaticBox",0},
762 { "_wxColourDatabase","_class_wxColourDatabase",0},
763 { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0},
764 { "_wxPyDropSource","_class_wxPyDropSource",0},
765 { "_wxChoice","_class_wxChoice",0},
766 { "_wxSlider","_class_wxSlider",0},
767 { "_wxNotebookEvent","_class_wxNotebookEvent",0},
768 { "_wxPyPrintout","_class_wxPyPrintout",0},
769 { "_long","_unsigned_long",0},
770 { "_long","_signed_long",0},
771 { "_wxImageList","_class_wxImageList",0},
772 { "_wxDataObjectSimple","_class_wxDataObjectSimple",0},
773 { "_wxDropFilesEvent","_class_wxDropFilesEvent",0},
774 { "_wxBitmapButton","_class_wxBitmapButton",0},
775 { "_wxSashWindow","_class_wxSashWindow",0},
776 { "_class_wxSizer","_wxSizer",0},
777 { "_class_wxTIFFHandler","_wxTIFFHandler",0},
778 { "_class_wxPrintDialogData","_wxPrintDialogData",0},
779 { "_wxGridSizer","_class_wxGridSizer",0},
780 { "_wxGLContext","_class_wxGLContext",0},
781 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
782 { "_class_wxClipboard","_wxClipboard",0},
783 { "_class_wxGauge","_wxGauge",0},
784 { "_class_wxSashEvent","_wxSashEvent",0},
785 { "_wxGDIObject","_class_wxGDIObject",0},
786 { "_wxDC","_class_wxDC",0},
787 { "_wxSizerItem","_class_wxSizerItem",0},
788 { "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
789 { "_wxListEvent","_class_wxListEvent",0},
790 { "_class_wxSingleChoiceDialog","_wxSingleChoiceDialog",0},
791 { "_wxProgressDialog","_class_wxProgressDialog",0},
792 { "_class_wxBMPHandler","_wxBMPHandler",0},
793 { "_wxPrintPreview","_class_wxPrintPreview",0},
794 { "_class_wxFlexGridSizer","_wxFlexGridSizer",0},
795 { "_class_wxObject","_class_wxGLCanvas",SwigwxGLCanvasTowxObject},
796 { "_class_wxObject","_wxGLCanvas",SwigwxGLCanvasTowxObject},
797 { "_class_wxObject","_class_wxGLContext",SwigwxGLContextTowxObject},
798 { "_class_wxObject","_wxGLContext",SwigwxGLContextTowxObject},
799 { "_class_wxObject","_wxObject",0},
800 { "_wxSpinEvent","_class_wxSpinEvent",0},
801 { "_wxSashLayoutWindow","_class_wxSashLayoutWindow",0},
802 { "_size_t","_wxCoord",0},
803 { "_size_t","_wxPrintQuality",0},
804 { "_size_t","_time_t",0},
805 { "_size_t","_unsigned_int",0},
806 { "_size_t","_int",0},
807 { "_size_t","_wxWindowID",0},
808 { "_size_t","_uint",0},
809 { "_class_wxRealPoint","_wxRealPoint",0},
810 { "_wxNavigationKeyEvent","_class_wxNavigationKeyEvent",0},
811 { "_wxPNMHandler","_class_wxPNMHandler",0},
812 { "_wxWindowCreateEvent","_class_wxWindowCreateEvent",0},
813 { "_wxLogGui","_class_wxLogGui",0},
814 { "_class_wxMenuItem","_wxMenuItem",0},
815 { "_class_wxPaintEvent","_wxPaintEvent",0},
816 { "_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0},
817 { "_class_wxStatusBar","_wxStatusBar",0},
818 { "_class_wxGIFHandler","_wxGIFHandler",0},
819 { "_class_wxPySizer","_wxPySizer",0},
820 { "_class_wxPostScriptDC","_wxPostScriptDC",0},
821 { "_wxPanel","_class_wxGLCanvas",SwigwxGLCanvasTowxPanel},
822 { "_wxPanel","_wxGLCanvas",SwigwxGLCanvasTowxPanel},
823 { "_wxPanel","_class_wxPanel",0},
824 { "_wxInitDialogEvent","_class_wxInitDialogEvent",0},
825 { "_wxCheckBox","_class_wxCheckBox",0},
826 { "_class_wxPyTreeCtrl","_wxPyTreeCtrl",0},
827 { "_wxPyEvent","_class_wxPyEvent",0},
828 { "_wxTextCtrl","_class_wxTextCtrl",0},
829 { "_class_wxMask","_wxMask",0},
830 { "_wxTextDataObject","_class_wxTextDataObject",0},
831 { "_class_wxKeyEvent","_wxKeyEvent",0},
832 { "_class_wxToolTip","_wxToolTip",0},
833 { "_class_wxPNGHandler","_wxPNGHandler",0},
834 { "_wxFileConfig","_class_wxFileConfig",0},
835 { "_wxColour","_class_wxColour",0},
836 { "_class_wxDialog","_wxDialog",0},
837 { "_wxBusyCursor","_class_wxBusyCursor",0},
838 { "_wxPageSetupDialog","_class_wxPageSetupDialog",0},
839 { "_class_wxPrinter","_wxPrinter",0},
840 { "_class_wxFileDataObject","_wxFileDataObject",0},
841 { "_wxIdleEvent","_class_wxIdleEvent",0},
842 { "_class_wxUpdateUIEvent","_wxUpdateUIEvent",0},
843 { "_wxToolBar","_class_wxToolBar",0},
844 { "_class_wxDataObject","_wxDataObject",0},
845 { "_wxCaret","_class_wxCaret",0},
846 { "_wxStaticLine","_class_wxStaticLine",0},
847 { "_class_wxLayoutAlgorithm","_wxLayoutAlgorithm",0},
848 { "_wxBrush","_class_wxBrush",0},
849 { "_wxToggleButton","_class_wxToggleButton",0},
850 { "_wxMiniFrame","_class_wxMiniFrame",0},
851 { "_class_wxNotebookEvent","_wxNotebookEvent",0},
852 { "_class_wxPyPrintout","_wxPyPrintout",0},
853 { "_wxDataFormat","_class_wxDataFormat",0},
854 { "_class_wxDataObjectSimple","_wxDataObjectSimple",0},
855 { "_class_wxSashWindow","_wxSashWindow",0},
856 { "_wxShowEvent","_class_wxShowEvent",0},
857 { "_uint","_wxCoord",0},
858 { "_uint","_wxPrintQuality",0},
859 { "_uint","_time_t",0},
860 { "_uint","_size_t",0},
861 { "_uint","_unsigned_int",0},
862 { "_uint","_int",0},
863 { "_uint","_wxWindowID",0},
864 { "_wxChar","_char",0},
865 { "_wxPyValidator","_class_wxPyValidator",0},
866 { "_class_wxEvent","_wxEvent",0},
867 { "_wxCheckListBox","_class_wxCheckListBox",0},
868 { "_wxSplitterEvent","_class_wxSplitterEvent",0},
869 { "_wxRect","_class_wxRect",0},
870 { "_wxCommandEvent","_class_wxCommandEvent",0},
871 { "_wxSizeEvent","_class_wxSizeEvent",0},
872 { "_class_wxLogWindow","_wxLogWindow",0},
873 { "_class_wxImage","_wxImage",0},
874 { "_wxPoint","_class_wxPoint",0},
875 { "_class_wxWindowDisabler","_wxWindowDisabler",0},
876 { "_class_wxSashLayoutWindow","_wxSashLayoutWindow",0},
877 { "_class_wxButton","_wxButton",0},
878 { "_wxRadioBox","_class_wxRadioBox",0},
879 { "_class_wxSpinCtrl","_wxSpinCtrl",0},
880 { "_class_wxFontData","_wxFontData",0},
881 { "_class_wxPNMHandler","_wxPNMHandler",0},
882 { "_wxBoxSizer","_class_wxBoxSizer",0},
883 { "_class_wxZipFSHandler","_wxZipFSHandler",0},
884 { "_char","_wxChar",0},
885 { "_wxBitmap","_class_wxBitmap",0},
886 { "_wxPenList","_class_wxPenList",0},
887 { "_wxPrintDialog","_class_wxPrintDialog",0},
888 { "_wxWindowDC","_class_wxWindowDC",0},
889 { "_wxTimerEvent","_class_wxTimerEvent",0},
890 { "_wxPyTimer","_class_wxPyTimer",0},
891 { "_wxScrollBar","_class_wxScrollBar",0},
892 { "_wxSpinButton","_class_wxSpinButton",0},
893 { "_wxColourDialog","_class_wxColourDialog",0},
894 { "_wxPrintData","_class_wxPrintData",0},
895 { "_class_wxInternetFSHandler","_wxInternetFSHandler",0},
896 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
897 { "_class_wxNotifyEvent","_wxNotifyEvent",0},
898 { "_wxMessageDialog","_class_wxMessageDialog",0},
899 { "_class_wxValidator","_wxValidator",0},
900 { "_class_wxPyEvent","_wxPyEvent",0},
901 { "_class_wxMutexGuiLocker","_wxMutexGuiLocker",0},
902 { "_wxTextEntryDialog","_class_wxTextEntryDialog",0},
903 { "_wxConfig","_class_wxConfig",0},
904 { "_class_wxIconizeEvent","_wxIconizeEvent",0},
905 { "_class_wxStaticBitmap","_wxStaticBitmap",0},
906 { "_class_wxFileConfig","_wxFileConfig",0},
907 { "_class_wxBusyCursor","_wxBusyCursor",0},
908 { "_wxToolBarSimple","_class_wxToolBarSimple",0},
909 { "_wxMDIChildFrame","_class_wxMDIChildFrame",0},
910 { "_wxListItem","_class_wxListItem",0},
911 { "_class_wxToolBar","_wxToolBar",0},
912 { "_wxDropTarget","_class_wxDropTarget",0},
913 { "_class_wxStaticLine","_wxStaticLine",0},
914 { "_class_wxColourDatabase","_wxColourDatabase",0},
915 { "_wxScrollEvent","_class_wxScrollEvent",0},
916 { "_wxToolBarToolBase","_class_wxToolBarToolBase",0},
917 { "_wxCalculateLayoutEvent","_class_wxCalculateLayoutEvent",0},
918 { "_class_wxMemoryFSHandler","_wxMemoryFSHandler",0},
919 { "_EBool","_wxCoord",0},
920 { "_EBool","_wxPrintQuality",0},
921 { "_EBool","_signed_int",0},
922 { "_EBool","_int",0},
923 { "_EBool","_wxWindowID",0},
924 { "_class_wxRegion","_wxRegion",0},
925 { "_class_wxDataFormat","_wxDataFormat",0},
926 { "_class_wxDropFilesEvent","_wxDropFilesEvent",0},
927 { "_wxWindowDestroyEvent","_class_wxWindowDestroyEvent",0},
928 { "_class_wxPreviewFrame","_wxPreviewFrame",0},
929 { "_wxStaticText","_class_wxStaticText",0},
930 { "_wxFont","_class_wxFont",0},
931 { "_class_wxPyDropTarget","_wxPyDropTarget",0},
932 { "_wxCloseEvent","_class_wxCloseEvent",0},
933 { "_class_wxSplitterEvent","_wxSplitterEvent",0},
934 { "_wxProcessEvent","_class_wxProcessEvent",0},
935 { "_wxNotebook","_class_wxNotebook",0},
936 { "_wxFSFile","_class_wxFSFile",0},
937 { "_unsigned_long","_long",0},
938 { "_class_wxRect","_wxRect",0},
939 { "_class_wxDC","_wxDC",0},
940 { "_wxScrollWinEvent","_class_wxScrollWinEvent",0},
941 { "_wxGenericDragImage","_class_wxGenericDragImage",0},
942 { "_class_wxProgressDialog","_wxProgressDialog",0},
943 { "_class_wxBrushList","_wxBrushList",0},
944 { "_wxQueryNewPaletteEvent","_class_wxQueryNewPaletteEvent",0},
945 { "_wxPyInputStream","_class_wxPyInputStream",0},
946 { "_wxPyApp","_class_wxPyApp",0},
947 { "_class_wxPenList","_wxPenList",0},
948 { "_class_wxWindowCreateEvent","_wxWindowCreateEvent",0},
949 { "_class_wxOutputStream","_wxOutputStream",0},
950 { "_wxLogTextCtrl","_class_wxLogTextCtrl",0},
951 { "_wxMDIParentFrame","_class_wxMDIParentFrame",0},
952 { "_class_wxTreeEvent","_wxTreeEvent",0},
953 { "_class_wxDirDialog","_wxDirDialog",0},
954 { "_wxTimeSpan","_class_wxTimeSpan",0},
955 { "_wxFocusEvent","_class_wxFocusEvent",0},
956 { "_wxMaximizeEvent","_class_wxMaximizeEvent",0},
957 { "_class_wxTimerEvent","_wxTimerEvent",0},
958 { "_class_wxPyTimer","_wxPyTimer",0},
959 { "_class_wxSpinButton","_wxSpinButton",0},
960 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
961 { "_class_wxPanel","_class_wxGLCanvas",SwigwxGLCanvasTowxPanel},
962 { "_class_wxPanel","_wxGLCanvas",SwigwxGLCanvasTowxPanel},
963 { "_class_wxPanel","_wxPanel",0},
964 { "_class_wxCheckBox","_wxCheckBox",0},
965 { "_wxComboBox","_class_wxComboBox",0},
966 { "_wxRadioButton","_class_wxRadioButton",0},
967 { "_class_wxMessageDialog","_wxMessageDialog",0},
968 { "_signed_int","_wxCoord",0},
969 { "_signed_int","_wxPrintQuality",0},
970 { "_signed_int","_EBool",0},
971 { "_signed_int","_wxWindowID",0},
972 { "_signed_int","_int",0},
973 { "_class_wxTextCtrl","_wxTextCtrl",0},
974 { "_class_wxListItemAttr","_wxListItemAttr",0},
975 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
976 { "_class_wxTextDataObject","_wxTextDataObject",0},
977 { "_wxMenu","_class_wxMenu",0},
978 { "_class_wxMoveEvent","_wxMoveEvent",0},
979 { "_wxListBox","_class_wxListBox",0},
980 { "_wxScreenDC","_class_wxScreenDC",0},
981 { "_class_wxToolBarSimple","_wxToolBarSimple",0},
982 { "_class_wxMDIChildFrame","_wxMDIChildFrame",0},
983 { "_WXTYPE","_wxDateTime_t",0},
984 { "_WXTYPE","_short",0},
985 { "_WXTYPE","_signed_short",0},
986 { "_WXTYPE","_unsigned_short",0},
987 { "_wxFileDialog","_class_wxFileDialog",0},
988 { "_class_wxDropTarget","_wxDropTarget",0},
989 { "_class_wxCaret","_wxCaret",0},
990 { "_class_wxMDIClientWindow","_wxMDIClientWindow",0},
991 { "_class_wxBrush","_wxBrush",0},
992 { "_wxTipProvider","_class_wxTipProvider",0},
993 { "_unsigned_short","_wxDateTime_t",0},
994 { "_unsigned_short","_WXTYPE",0},
995 { "_unsigned_short","_short",0},
996 { "_class_wxWindow","_class_wxGLCanvas",SwigwxGLCanvasTowxWindow},
997 { "_class_wxWindow","_wxGLCanvas",SwigwxGLCanvasTowxWindow},
998 { "_class_wxWindow","_wxWindow",0},
999 { "_class_wxLogStderr","_wxLogStderr",0},
1000 { "_wxSplitterWindow","_class_wxSplitterWindow",0},
1001 { "_wxDateSpan","_class_wxDateSpan",0},
1002 { "_class_wxStaticText","_wxStaticText",0},
1003 { "_wxPrintDialogData","_class_wxPrintDialogData",0},
1004 { "_class_wxFont","_wxFont",0},
1005 { "_wxClipboard","_class_wxClipboard",0},
1006 { "_class_wxPyValidator","_wxPyValidator",0},
1007 { "_class_wxCloseEvent","_wxCloseEvent",0},
1008 { "_wxSashEvent","_class_wxSashEvent",0},
1009 { "_wxBusyInfo","_class_wxBusyInfo",0},
1010 { "_wxFontList","_class_wxFontList",0},
1011 { "_class_wxMenuEvent","_wxMenuEvent",0},
1012 { "_wxPaletteChangedEvent","_class_wxPaletteChangedEvent",0},
1013 { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0},
1014 { "_wxClientDC","_class_wxClientDC",0},
1015 { "_wxMouseEvent","_class_wxMouseEvent",0},
1016 { "_class_wxGenericDragImage","_wxGenericDragImage",0},
1017 { "_wxListCtrl","_class_wxListCtrl",0},
1018 { "_wxSingleChoiceDialog","_class_wxSingleChoiceDialog",0},
1019 { "_wxGLCanvas","_class_wxGLCanvas",0},
1020 { "_wxObject","_class_wxGLCanvas",SwigwxGLCanvasTowxObject},
1021 { "_wxObject","_wxGLCanvas",SwigwxGLCanvasTowxObject},
1022 { "_wxObject","_class_wxGLContext",SwigwxGLContextTowxObject},
1023 { "_wxObject","_wxGLContext",SwigwxGLContextTowxObject},
1024 { "_wxObject","_class_wxObject",0},
1025 { "_class_wxPoint","_wxPoint",0},
1026 { "_class_wxPyInputStream","_wxPyInputStream",0},
1027 { "_wxRealPoint","_class_wxRealPoint",0},
1028 { "_class_wxRadioBox","_wxRadioBox",0},
1029 { "_class_wxBoxSizer","_wxBoxSizer",0},
1030 { "_signed_short","_WXTYPE",0},
1031 { "_signed_short","_short",0},
1032 { "_wxMemoryDC","_class_wxMemoryDC",0},
1033 { "_wxPyTextDataObject","_class_wxPyTextDataObject",0},
1034 { "_class_wxPrintDialog","_wxPrintDialog",0},
1035 { "_wxPyFileSystemHandler","_class_wxPyFileSystemHandler",0},
1036 { "_wxPaintDC","_class_wxPaintDC",0},
1037 { "_class_wxWindowDC","_wxWindowDC",0},
1038 { "_class_wxFocusEvent","_wxFocusEvent",0},
1039 { "_class_wxMaximizeEvent","_wxMaximizeEvent",0},
1040 { "_wxStatusBar","_class_wxStatusBar",0},
1041 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
1042 { "_class_wxCursor","_wxCursor",0},
1043 { "_wxPostScriptDC","_class_wxPostScriptDC",0},
1044 { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0},
1045 { "_class_wxPyProcess","_wxPyProcess",0},
1046 { "_class_wxImageHandler","_wxImageHandler",0},
1047 { "_wxScrolledWindow","_class_wxGLCanvas",SwigwxGLCanvasTowxScrolledWindow},
1048 { "_wxScrolledWindow","_wxGLCanvas",SwigwxGLCanvasTowxScrolledWindow},
1049 { "_wxScrolledWindow","_class_wxScrolledWindow",0},
1050 { "_class_wxLog","_wxLog",0},
1051 { "_wxTreeItemId","_class_wxTreeItemId",0},
1052 { "_unsigned_char","_byte",0},
1053 { "_class_wxMenu","_wxMenu",0},
1054 { "_wxControl","_class_wxControl",0},
1055 { "_class_wxListBox","_wxListBox",0},
1056 { "_unsigned_int","_wxCoord",0},
1057 { "_unsigned_int","_wxPrintQuality",0},
1058 { "_unsigned_int","_time_t",0},
1059 { "_unsigned_int","_size_t",0},
1060 { "_unsigned_int","_uint",0},
1061 { "_unsigned_int","_wxWindowID",0},
1062 { "_unsigned_int","_int",0},
1063 { "_wxIcon","_class_wxIcon",0},
1064 { "_wxDialog","_class_wxDialog",0},
1065 { "_class_wxListItem","_wxListItem",0},
1066 { "_class_wxPen","_wxPen",0},
1067 { "_class_wxFileDialog","_wxFileDialog",0},
1068 { "_wxQueryLayoutInfoEvent","_class_wxQueryLayoutInfoEvent",0},
1069 { "_wxConfigBase","_class_wxConfigBase",0},
1070 { "_short","_wxDateTime_t",0},
1071 { "_short","_WXTYPE",0},
1072 { "_short","_unsigned_short",0},
1073 { "_short","_signed_short",0},
1074 { "_class_wxStaticBox","_wxStaticBox",0},
1075 { "_wxLayoutAlgorithm","_class_wxLayoutAlgorithm",0},
1076 { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0},
1077 { "_class_wxPyDropSource","_wxPyDropSource",0},
1078 { "_class_wxScrollEvent","_wxScrollEvent",0},
1079 { "_wxJoystickEvent","_class_wxJoystickEvent",0},
1080 { "_class_wxChoice","_wxChoice",0},
1081 { "_class_wxSlider","_wxSlider",0},
1082 { "_class_wxCalculateLayoutEvent","_wxCalculateLayoutEvent",0},
1083 { "_class_wxImageList","_wxImageList",0},
1084 { "_class_wxBitmapButton","_wxBitmapButton",0},
1085 { "_wxFileSystemHandler","_class_wxFileSystemHandler",0},
1086 { "_wxPyTipProvider","_class_wxPyTipProvider",0},
1087 { "_wxFrame","_class_wxFrame",0},
1088 { "_wxPCXHandler","_class_wxPCXHandler",0},
1089 { "_class_wxGridSizer","_wxGridSizer",0},
1090 { "_class_wxGLContext","_wxGLContext",0},
1091 { "_class_wxPaletteChangedEvent","_wxPaletteChangedEvent",0},
1092 { "_class_wxNotebook","_wxNotebook",0},
1093 { "_wxJPEGHandler","_class_wxJPEGHandler",0},
1094 { "_wxWindowID","_wxCoord",0},
1095 { "_wxWindowID","_wxPrintQuality",0},
1096 { "_wxWindowID","_time_t",0},
1097 { "_wxWindowID","_size_t",0},
1098 { "_wxWindowID","_EBool",0},
1099 { "_wxWindowID","_uint",0},
1100 { "_wxWindowID","_int",0},
1101 { "_wxWindowID","_signed_int",0},
1102 { "_wxWindowID","_unsigned_int",0},
1103 { "_class_wxGDIObject","_wxGDIObject",0},
1104 { "_class_wxScrollWinEvent","_wxScrollWinEvent",0},
1105 { "_class_wxSizerItem","_wxSizerItem",0},
1106 { "_int","_wxCoord",0},
1107 { "_int","_wxPrintQuality",0},
1108 { "_int","_time_t",0},
1109 { "_int","_size_t",0},
1110 { "_int","_EBool",0},
1111 { "_int","_uint",0},
1112 { "_int","_wxWindowID",0},
1113 { "_int","_unsigned_int",0},
1114 { "_int","_signed_int",0},
1115 { "_class_wxMouseEvent","_wxMouseEvent",0},
1116 { "_wxPyCommandEvent","_class_wxPyCommandEvent",0},
1117 { "_wxLogWindow","_class_wxLogWindow",0},
1118 { "_class_wxListEvent","_wxListEvent",0},
1119 { "_class_wxPrintPreview","_wxPrintPreview",0},
1120 { "_wxDateTime_t","_unsigned_short",0},
1121 { "_wxDateTime_t","_short",0},
1122 { "_wxDateTime_t","_WXTYPE",0},
1123 { "_class_wxSpinEvent","_wxSpinEvent",0},
1124 { "_class_wxQueryNewPaletteEvent","_wxQueryNewPaletteEvent",0},
1125 { "_wxDateTime","_class_wxDateTime",0},
1126 { "_time_t","_wxCoord",0},
1127 { "_time_t","_wxPrintQuality",0},
1128 { "_time_t","_unsigned_int",0},
1129 { "_time_t","_int",0},
1130 { "_time_t","_wxWindowID",0},
1131 { "_time_t","_uint",0},
1132 { "_time_t","_size_t",0},
1133 { "_class_wxNavigationKeyEvent","_wxNavigationKeyEvent",0},
1134 { "_wxLogNull","_class_wxLogNull",0},
1135 { "_wxButton","_class_wxButton",0},
1136 { "_wxZipFSHandler","_class_wxZipFSHandler",0},
1137 { "_class_wxPyApp","_wxPyApp",0},
1138 { "_wxSize","_class_wxSize",0},
1139 { "_wxRegionIterator","_class_wxRegionIterator",0},
1140 { "_class_wxPyTextDataObject","_wxPyTextDataObject",0},
1141 { "_class_wxLogTextCtrl","_wxLogTextCtrl",0},
1142 { "_class_wxLogGui","_wxLogGui",0},
1143 { "_class_wxMDIParentFrame","_wxMDIParentFrame",0},
1144 { "_wxPyTreeItemData","_class_wxPyTreeItemData",0},
1145 { "_wxStaticBoxSizer","_class_wxStaticBoxSizer",0},
1146 { "_class_wxTimeSpan","_wxTimeSpan",0},
1147 { "_class_wxPyFileSystemHandler","_wxPyFileSystemHandler",0},
1148 { "_class_wxPaintDC","_wxPaintDC",0},
1149 { "_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0},
1150 { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0},
1151 { "_class_wxInitDialogEvent","_wxInitDialogEvent",0},
1152 { "_class_wxComboBox","_wxComboBox",0},
1153 { "_class_wxRadioButton","_wxRadioButton",0},
1154 { "_wxValidator","_class_wxValidator",0},
1155 { "_wxToolBarBase","_class_wxToolBarBase",0},
1156 { "_class_wxTreeItemId","_wxTreeItemId",0},
1157 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
1158 { "_wxIconizeEvent","_class_wxIconizeEvent",0},
1159 { "_class_wxControl","_wxControl",0},
1160 { "_wxStaticBitmap","_class_wxStaticBitmap",0},
1161 { "_class_wxIcon","_wxIcon",0},
1162 { "_class_wxColour","_wxColour",0},
1163 { "_class_wxScreenDC","_wxScreenDC",0},
1164 { "_class_wxPageSetupDialog","_wxPageSetupDialog",0},
1165 { "_wxPalette","_class_wxPalette",0},
1166 { "_class_wxIdleEvent","_wxIdleEvent",0},
1167 { "_class_wxConfigBase","_wxConfigBase",0},
1168 { "_wxCoord","_int",0},
1169 { "_wxCoord","_signed_int",0},
1170 { "_wxCoord","_unsigned_int",0},
1171 { "_wxCoord","_wxWindowID",0},
1172 { "_wxCoord","_uint",0},
1173 { "_wxCoord","_EBool",0},
1174 { "_wxCoord","_size_t",0},
1175 { "_wxCoord","_time_t",0},
1176 { "_wxCoord","_wxPrintQuality",0},
1177 { "_wxEraseEvent","_class_wxEraseEvent",0},
1178 { "_wxDataObjectComposite","_class_wxDataObjectComposite",0},
1179 { "_class_wxJoystickEvent","_wxJoystickEvent",0},
1180 { "_class_wxTipProvider","_wxTipProvider",0},
1181 { "_class_wxToggleButton","_wxToggleButton",0},
1182 { "_class_wxMiniFrame","_wxMiniFrame",0},
1183 { "_wxFontDialog","_class_wxFontDialog",0},
1184 { "_wxMemoryFSHandler","_class_wxMemoryFSHandler",0},
1185 { "_wxRegion","_class_wxRegion",0},
1186 { "_class_wxSplitterWindow","_wxSplitterWindow",0},
1187 { "_wxPreviewFrame","_class_wxPreviewFrame",0},
1188 { "_wxSizer","_class_wxSizer",0},
1189 { "_class_wxDateSpan","_wxDateSpan",0},
1190 { "_wxFileSystem","_class_wxFileSystem",0},
1191 { "_class_wxShowEvent","_wxShowEvent",0},
1192 { "_class_wxPyTipProvider","_wxPyTipProvider",0},
1193 { "_class_wxPCXHandler","_wxPCXHandler",0},
1194 { "_wxTIFFHandler","_class_wxTIFFHandler",0},
1195 { "_wxPyDropTarget","_class_wxPyDropTarget",0},
1196 { "_wxActivateEvent","_class_wxActivateEvent",0},
1197 { "_wxGauge","_class_wxGauge",0},
1198 { "_class_wxCheckListBox","_wxCheckListBox",0},
1199 { "_class_wxBusyInfo","_wxBusyInfo",0},
1200 { "_class_wxFontList","_wxFontList",0},
1201 { "_class_wxCommandEvent","_wxCommandEvent",0},
1202 { "_class_wxClientDC","_wxClientDC",0},
1203 { "_class_wxSizeEvent","_wxSizeEvent",0},
1204 { "_class_wxListCtrl","_wxListCtrl",0},
1205 { "_class_wxGLCanvas","_wxGLCanvas",0},
1206 { "_wxBrushList","_class_wxBrushList",0},
1207 { "_wxCustomDataObject","_class_wxCustomDataObject",0},
1208 { "_class_wxLogNull","_wxLogNull",0},
1209 { "_class_wxSize","_wxSize",0},
1210 { "_class_wxBitmap","_wxBitmap",0},
1211 { "_class_wxMemoryDC","_wxMemoryDC",0},
1212 { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0},
1213 { "_wxMenuBar","_class_wxMenuBar",0},
1214 { "_wxOutputStream","_class_wxOutputStream",0},
1215 { "_wxTreeEvent","_class_wxTreeEvent",0},
1216 { "_wxDirDialog","_class_wxDirDialog",0},
1217 { "_wxEvtHandler","_class_wxGLCanvas",SwigwxGLCanvasTowxEvtHandler},
1218 { "_wxEvtHandler","_wxGLCanvas",SwigwxGLCanvasTowxEvtHandler},
1219 { "_wxEvtHandler","_class_wxEvtHandler",0},
1220 { "_wxMenuItem","_class_wxMenuItem",0},
1221 { "_class_wxScrollBar","_wxScrollBar",0},
1222 { "_class_wxColourDialog","_wxColourDialog",0},
1223 { "_class_wxPrintData","_wxPrintData",0},
1224 { "_class_wxScrolledWindow","_class_wxGLCanvas",SwigwxGLCanvasTowxScrolledWindow},
1225 { "_class_wxScrolledWindow","_wxGLCanvas",SwigwxGLCanvasTowxScrolledWindow},
1226 { "_class_wxScrolledWindow","_wxScrolledWindow",0},
1227 { "_wxListItemAttr","_class_wxListItemAttr",0},
1228 { "_class_wxTextEntryDialog","_wxTextEntryDialog",0},
1229 { "_class_wxConfig","_wxConfig",0},
1230 { "_wxKeyEvent","_class_wxKeyEvent",0},
1231 { "_wxMoveEvent","_class_wxMoveEvent",0},
1232 { "_wxColourData","_class_wxColourData",0},
1233 { "_wxPageSetupDialogData","_class_wxPageSetupDialogData",0},
1234 { "_class_wxPalette","_wxPalette",0},
1235 { "_wxFileDataObject","_class_wxFileDataObject",0},
1236 { "_class_wxQueryLayoutInfoEvent","_wxQueryLayoutInfoEvent",0},
1237 { "_wxNotebookSizer","_class_wxNotebookSizer",0},
1238 { "_class_wxEraseEvent","_wxEraseEvent",0},
1239 { "_wxPyFontEnumerator","_class_wxPyFontEnumerator",0},
1240 { "_wxMDIClientWindow","_class_wxMDIClientWindow",0},
1241 { "_class_wxDataObjectComposite","_wxDataObjectComposite",0},
1242 { "_class_wxToolBarToolBase","_wxToolBarToolBase",0},
1243 { "_class_wxFontDialog","_wxFontDialog",0},
1244 { "_wxWindow","_class_wxGLCanvas",SwigwxGLCanvasTowxWindow},
1245 { "_wxWindow","_wxGLCanvas",SwigwxGLCanvasTowxWindow},
1246 { "_wxWindow","_class_wxWindow",0},
1247 { "_class_wxWindowDestroyEvent","_wxWindowDestroyEvent",0},
1248 { "_wxLogStderr","_class_wxLogStderr",0},
1249 { "_class_wxFileSystemHandler","_wxFileSystemHandler",0},
1250 { "_class_wxFileSystem","_wxFileSystem",0},
1251 { "_class_wxFrame","_wxFrame",0},
1252 {0,0,0}};
1253
1254 static PyObject *SWIG_globals;
1255 #ifdef __cplusplus
1256 extern "C"
1257 #endif
1258 SWIGEXPORT(void) initglcanvasc() {
1259 PyObject *m, *d;
1260 SWIG_globals = SWIG_newvarlink();
1261 m = Py_InitModule("glcanvasc", glcanvascMethods);
1262 d = PyModule_GetDict(m);
1263
1264
1265 wxClassInfo::CleanUpClasses();
1266 wxClassInfo::InitializeClasses();
1267
1268 {
1269 int i;
1270 for (i = 0; _swig_mapping[i].n1; i++)
1271 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
1272 }
1273 }