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