2 * FILE : contrib/glcanvas/mac/glcanvas.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
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.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
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);
54 #define SWIG_init initglcanvasc
56 #define SWIG_name "glcanvasc"
60 #include "myglcanvas.h"
62 #include <wx/glcanvas.h>
67 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
73 } else if (target
== Py_None
) {
77 if (!PyTuple_Check(target
)) {
79 target
= PyTuple_New(1);
80 PyTuple_SetItem(target
, 0, o2
);
83 PyTuple_SetItem(o3
, 0, o
);
86 target
= PySequence_Concat(o2
, o3
);
95 static void *SwigwxGLContextTowxObject(void *ptr
) {
98 src
= (wxGLContext
*) ptr
;
99 dest
= (wxObject
*) src
;
100 return (void *) dest
;
103 #define delete_wxGLContext(_swigobj) (delete _swigobj)
104 static PyObject
*_wrap_delete_wxGLContext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
105 PyObject
* _resultobj
;
107 PyObject
* _argo0
= 0;
108 char *_kwnames
[] = { "self", NULL
};
111 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxGLContext",_kwnames
,&_argo0
))
114 if (_argo0
== Py_None
) { _arg0
= NULL
; }
115 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLContext_p")) {
116 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxGLContext. Expected _wxGLContext_p.");
121 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
122 delete_wxGLContext(_arg0
);
124 wxPyEndAllowThreads(__tstate
);
125 if (PyErr_Occurred()) return NULL
;
126 } Py_INCREF(Py_None
);
127 _resultobj
= Py_None
;
131 #define wxGLContext_SetCurrent(_swigobj) (_swigobj->SetCurrent())
132 static PyObject
*_wrap_wxGLContext_SetCurrent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
133 PyObject
* _resultobj
;
135 PyObject
* _argo0
= 0;
136 char *_kwnames
[] = { "self", NULL
};
139 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGLContext_SetCurrent",_kwnames
,&_argo0
))
142 if (_argo0
== Py_None
) { _arg0
= NULL
; }
143 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLContext_p")) {
144 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLContext_SetCurrent. Expected _wxGLContext_p.");
149 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
150 wxGLContext_SetCurrent(_arg0
);
152 wxPyEndAllowThreads(__tstate
);
153 if (PyErr_Occurred()) return NULL
;
154 } Py_INCREF(Py_None
);
155 _resultobj
= Py_None
;
159 #define wxGLContext_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
160 static PyObject
*_wrap_wxGLContext_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
161 PyObject
* _resultobj
;
164 PyObject
* _argo0
= 0;
165 char *_kwnames
[] = { "self","colour", NULL
};
168 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Os:wxGLContext_SetColour",_kwnames
,&_argo0
,&_arg1
))
171 if (_argo0
== Py_None
) { _arg0
= NULL
; }
172 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLContext_p")) {
173 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLContext_SetColour. Expected _wxGLContext_p.");
178 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
179 wxGLContext_SetColour(_arg0
,_arg1
);
181 wxPyEndAllowThreads(__tstate
);
182 if (PyErr_Occurred()) return NULL
;
183 } Py_INCREF(Py_None
);
184 _resultobj
= Py_None
;
188 #define wxGLContext_SwapBuffers(_swigobj) (_swigobj->SwapBuffers())
189 static PyObject
*_wrap_wxGLContext_SwapBuffers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
190 PyObject
* _resultobj
;
192 PyObject
* _argo0
= 0;
193 char *_kwnames
[] = { "self", NULL
};
196 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGLContext_SwapBuffers",_kwnames
,&_argo0
))
199 if (_argo0
== Py_None
) { _arg0
= NULL
; }
200 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLContext_p")) {
201 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLContext_SwapBuffers. Expected _wxGLContext_p.");
206 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
207 wxGLContext_SwapBuffers(_arg0
);
209 wxPyEndAllowThreads(__tstate
);
210 if (PyErr_Occurred()) return NULL
;
211 } Py_INCREF(Py_None
);
212 _resultobj
= Py_None
;
216 #define wxGLContext_GetWindow(_swigobj) (_swigobj->GetWindow())
217 static PyObject
*_wrap_wxGLContext_GetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
218 PyObject
* _resultobj
;
221 PyObject
* _argo0
= 0;
222 char *_kwnames
[] = { "self", NULL
};
225 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGLContext_GetWindow",_kwnames
,&_argo0
))
228 if (_argo0
== Py_None
) { _arg0
= NULL
; }
229 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLContext_p")) {
230 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLContext_GetWindow. Expected _wxGLContext_p.");
235 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
236 _result
= (wxWindow
*)wxGLContext_GetWindow(_arg0
);
238 wxPyEndAllowThreads(__tstate
);
239 if (PyErr_Occurred()) return NULL
;
240 }{ _resultobj
= wxPyMake_wxObject(_result
); }
244 static void *SwigwxGLCanvasTowxWindow(void *ptr
) {
247 src
= (wxGLCanvas
*) ptr
;
248 dest
= (wxWindow
*) src
;
249 return (void *) dest
;
252 static void *SwigwxGLCanvasTowxEvtHandler(void *ptr
) {
255 src
= (wxGLCanvas
*) ptr
;
256 dest
= (wxEvtHandler
*) src
;
257 return (void *) dest
;
260 static void *SwigwxGLCanvasTowxObject(void *ptr
) {
263 src
= (wxGLCanvas
*) ptr
;
264 dest
= (wxObject
*) src
;
265 return (void *) dest
;
268 #define new_wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
269 static PyObject
*_wrap_new_wxGLCanvas(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
270 PyObject
* _resultobj
;
271 wxGLCanvas
* _result
;
273 wxWindowID _arg1
= (wxWindowID
) -1;
274 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
275 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
276 long _arg4
= (long ) 0;
277 char * _arg5
= (char *) "GLCanvas";
278 int * _arg6
= (int *) NULL
;
279 wxPalette
* _arg7
= (wxPalette
*) &wxNullPalette
;
280 PyObject
* _argo0
= 0;
282 PyObject
* _obj2
= 0;
284 PyObject
* _obj3
= 0;
286 PyObject
* _obj6
= 0;
287 PyObject
* _argo7
= 0;
288 char *_kwnames
[] = { "parent","id","pos","size","style","name","attribList","palette", NULL
};
292 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iOOlsOO:new_wxGLCanvas",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
,&_obj6
,&_argo7
))
295 if (_argo0
== Py_None
) { _arg0
= NULL
; }
296 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
297 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxGLCanvas. Expected _wxWindow_p.");
304 if (! wxPoint_helper(_obj2
, &_arg2
))
310 if (! wxSize_helper(_obj3
, &_arg3
))
316 if (PySequence_Check(_obj6
)) {
317 int size
= PyObject_Length(_obj6
);
318 temp1
= new int[size
+1]; // (int*)malloc((size + 1) * sizeof(int));
319 for (i
= 0; i
< size
; i
++) {
320 temp1
[i
] = PyInt_AsLong(PySequence_GetItem(_obj6
, i
));
327 if (_argo7
== Py_None
) { _arg7
= NULL
; }
328 else if (SWIG_GetPtrObj(_argo7
,(void **) &_arg7
,"_wxPalette_p")) {
329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 8 of new_wxGLCanvas. Expected _wxPalette_p.");
334 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
335 _result
= (wxGLCanvas
*)new_wxGLCanvas(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
,_arg6
,*_arg7
);
337 wxPyEndAllowThreads(__tstate
);
338 if (PyErr_Occurred()) return NULL
;
340 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGLCanvas_p");
341 _resultobj
= Py_BuildValue("s",_ptemp
);
344 _resultobj
= Py_None
;
352 #define new_wxGLCanvasWithContext(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
353 static PyObject
*_wrap_new_wxGLCanvasWithContext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
354 PyObject
* _resultobj
;
355 wxGLCanvas
* _result
;
357 wxGLContext
* _arg1
= (wxGLContext
*) NULL
;
358 wxWindowID _arg2
= (wxWindowID
) -1;
359 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
360 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
361 long _arg5
= (long ) 0;
362 char * _arg6
= (char *) "GLCanvas";
363 int * _arg7
= (int *) NULL
;
364 wxPalette
* _arg8
= (wxPalette
*) &wxNullPalette
;
365 PyObject
* _argo0
= 0;
366 PyObject
* _argo1
= 0;
368 PyObject
* _obj3
= 0;
370 PyObject
* _obj4
= 0;
372 PyObject
* _obj7
= 0;
373 PyObject
* _argo8
= 0;
374 char *_kwnames
[] = { "parent","shared","id","pos","size","style","name","attribList","palette", NULL
};
378 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|OiOOlsOO:new_wxGLCanvasWithContext",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
,&_obj7
,&_argo8
))
381 if (_argo0
== Py_None
) { _arg0
= NULL
; }
382 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
383 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxGLCanvasWithContext. Expected _wxWindow_p.");
388 if (_argo1
== Py_None
) { _arg1
= NULL
; }
389 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxGLContext_p")) {
390 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxGLCanvasWithContext. Expected _wxGLContext_p.");
397 if (! wxPoint_helper(_obj3
, &_arg3
))
403 if (! wxSize_helper(_obj4
, &_arg4
))
409 if (PySequence_Check(_obj7
)) {
410 int size
= PyObject_Length(_obj7
);
411 temp1
= new int[size
+1]; // (int*)malloc((size + 1) * sizeof(int));
412 for (i
= 0; i
< size
; i
++) {
413 temp1
[i
] = PyInt_AsLong(PySequence_GetItem(_obj7
, i
));
420 if (_argo8
== Py_None
) { _arg8
= NULL
; }
421 else if (SWIG_GetPtrObj(_argo8
,(void **) &_arg8
,"_wxPalette_p")) {
422 PyErr_SetString(PyExc_TypeError
,"Type error in argument 9 of new_wxGLCanvasWithContext. Expected _wxPalette_p.");
427 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
428 _result
= (wxGLCanvas
*)new_wxGLCanvasWithContext(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
,_arg7
,*_arg8
);
430 wxPyEndAllowThreads(__tstate
);
431 if (PyErr_Occurred()) return NULL
;
433 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGLCanvas_p");
434 _resultobj
= Py_BuildValue("s",_ptemp
);
437 _resultobj
= Py_None
;
445 #define wxGLCanvas_SetCurrent(_swigobj) (_swigobj->SetCurrent())
446 static PyObject
*_wrap_wxGLCanvas_SetCurrent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
447 PyObject
* _resultobj
;
449 PyObject
* _argo0
= 0;
450 char *_kwnames
[] = { "self", NULL
};
453 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGLCanvas_SetCurrent",_kwnames
,&_argo0
))
456 if (_argo0
== Py_None
) { _arg0
= NULL
; }
457 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLCanvas_p")) {
458 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLCanvas_SetCurrent. Expected _wxGLCanvas_p.");
463 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
464 wxGLCanvas_SetCurrent(_arg0
);
466 wxPyEndAllowThreads(__tstate
);
467 if (PyErr_Occurred()) return NULL
;
468 } Py_INCREF(Py_None
);
469 _resultobj
= Py_None
;
473 #define wxGLCanvas_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
474 static PyObject
*_wrap_wxGLCanvas_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
475 PyObject
* _resultobj
;
478 PyObject
* _argo0
= 0;
479 char *_kwnames
[] = { "self","colour", NULL
};
482 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Os:wxGLCanvas_SetColour",_kwnames
,&_argo0
,&_arg1
))
485 if (_argo0
== Py_None
) { _arg0
= NULL
; }
486 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLCanvas_p")) {
487 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLCanvas_SetColour. Expected _wxGLCanvas_p.");
492 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
493 wxGLCanvas_SetColour(_arg0
,_arg1
);
495 wxPyEndAllowThreads(__tstate
);
496 if (PyErr_Occurred()) return NULL
;
497 } Py_INCREF(Py_None
);
498 _resultobj
= Py_None
;
502 #define wxGLCanvas_SwapBuffers(_swigobj) (_swigobj->SwapBuffers())
503 static PyObject
*_wrap_wxGLCanvas_SwapBuffers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
504 PyObject
* _resultobj
;
506 PyObject
* _argo0
= 0;
507 char *_kwnames
[] = { "self", NULL
};
510 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGLCanvas_SwapBuffers",_kwnames
,&_argo0
))
513 if (_argo0
== Py_None
) { _arg0
= NULL
; }
514 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLCanvas_p")) {
515 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLCanvas_SwapBuffers. Expected _wxGLCanvas_p.");
520 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
521 wxGLCanvas_SwapBuffers(_arg0
);
523 wxPyEndAllowThreads(__tstate
);
524 if (PyErr_Occurred()) return NULL
;
525 } Py_INCREF(Py_None
);
526 _resultobj
= Py_None
;
530 #define wxGLCanvas_GetContext(_swigobj) (_swigobj->GetContext())
531 static PyObject
*_wrap_wxGLCanvas_GetContext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
532 PyObject
* _resultobj
;
533 wxGLContext
* _result
;
535 PyObject
* _argo0
= 0;
536 char *_kwnames
[] = { "self", NULL
};
540 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGLCanvas_GetContext",_kwnames
,&_argo0
))
543 if (_argo0
== Py_None
) { _arg0
= NULL
; }
544 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLCanvas_p")) {
545 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLCanvas_GetContext. Expected _wxGLCanvas_p.");
550 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
551 _result
= (wxGLContext
*)wxGLCanvas_GetContext(_arg0
);
553 wxPyEndAllowThreads(__tstate
);
554 if (PyErr_Occurred()) return NULL
;
556 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGLContext_p");
557 _resultobj
= Py_BuildValue("s",_ptemp
);
560 _resultobj
= Py_None
;
565 static PyMethodDef glcanvascMethods
[] = {
566 { "wxGLCanvas_GetContext", (PyCFunction
) _wrap_wxGLCanvas_GetContext
, METH_VARARGS
| METH_KEYWORDS
},
567 { "wxGLCanvas_SwapBuffers", (PyCFunction
) _wrap_wxGLCanvas_SwapBuffers
, METH_VARARGS
| METH_KEYWORDS
},
568 { "wxGLCanvas_SetColour", (PyCFunction
) _wrap_wxGLCanvas_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
569 { "wxGLCanvas_SetCurrent", (PyCFunction
) _wrap_wxGLCanvas_SetCurrent
, METH_VARARGS
| METH_KEYWORDS
},
570 { "new_wxGLCanvasWithContext", (PyCFunction
) _wrap_new_wxGLCanvasWithContext
, METH_VARARGS
| METH_KEYWORDS
},
571 { "new_wxGLCanvas", (PyCFunction
) _wrap_new_wxGLCanvas
, METH_VARARGS
| METH_KEYWORDS
},
572 { "wxGLContext_GetWindow", (PyCFunction
) _wrap_wxGLContext_GetWindow
, METH_VARARGS
| METH_KEYWORDS
},
573 { "wxGLContext_SwapBuffers", (PyCFunction
) _wrap_wxGLContext_SwapBuffers
, METH_VARARGS
| METH_KEYWORDS
},
574 { "wxGLContext_SetColour", (PyCFunction
) _wrap_wxGLContext_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
575 { "wxGLContext_SetCurrent", (PyCFunction
) _wrap_wxGLContext_SetCurrent
, METH_VARARGS
| METH_KEYWORDS
},
576 { "delete_wxGLContext", (PyCFunction
) _wrap_delete_wxGLContext
, METH_VARARGS
| METH_KEYWORDS
},
583 * This table is used by the pointer type-checker
585 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
586 { "_signed_long","_long",0},
587 { "_wxPrintQuality","_wxCoord",0},
588 { "_wxPrintQuality","_int",0},
589 { "_wxPrintQuality","_signed_int",0},
590 { "_wxPrintQuality","_unsigned_int",0},
591 { "_wxPrintQuality","_wxWindowID",0},
592 { "_wxPrintQuality","_uint",0},
593 { "_wxPrintQuality","_EBool",0},
594 { "_wxPrintQuality","_size_t",0},
595 { "_wxPrintQuality","_time_t",0},
596 { "_byte","_unsigned_char",0},
597 { "_long","_unsigned_long",0},
598 { "_long","_signed_long",0},
599 { "_size_t","_wxCoord",0},
600 { "_size_t","_wxPrintQuality",0},
601 { "_size_t","_time_t",0},
602 { "_size_t","_unsigned_int",0},
603 { "_size_t","_int",0},
604 { "_size_t","_wxWindowID",0},
605 { "_size_t","_uint",0},
606 { "_uint","_wxCoord",0},
607 { "_uint","_wxPrintQuality",0},
608 { "_uint","_time_t",0},
609 { "_uint","_size_t",0},
610 { "_uint","_unsigned_int",0},
612 { "_uint","_wxWindowID",0},
613 { "_wxChar","_char",0},
614 { "_char","_wxChar",0},
615 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
616 { "_EBool","_wxCoord",0},
617 { "_EBool","_wxPrintQuality",0},
618 { "_EBool","_signed_int",0},
619 { "_EBool","_int",0},
620 { "_EBool","_wxWindowID",0},
621 { "_unsigned_long","_long",0},
622 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
623 { "_signed_int","_wxCoord",0},
624 { "_signed_int","_wxPrintQuality",0},
625 { "_signed_int","_EBool",0},
626 { "_signed_int","_wxWindowID",0},
627 { "_signed_int","_int",0},
628 { "_WXTYPE","_wxDateTime_t",0},
629 { "_WXTYPE","_short",0},
630 { "_WXTYPE","_signed_short",0},
631 { "_WXTYPE","_unsigned_short",0},
632 { "_unsigned_short","_wxDateTime_t",0},
633 { "_unsigned_short","_WXTYPE",0},
634 { "_unsigned_short","_short",0},
635 { "_wxObject","_wxGLCanvas",SwigwxGLCanvasTowxObject
},
636 { "_wxObject","_wxGLContext",SwigwxGLContextTowxObject
},
637 { "_signed_short","_WXTYPE",0},
638 { "_signed_short","_short",0},
639 { "_unsigned_char","_byte",0},
640 { "_unsigned_int","_wxCoord",0},
641 { "_unsigned_int","_wxPrintQuality",0},
642 { "_unsigned_int","_time_t",0},
643 { "_unsigned_int","_size_t",0},
644 { "_unsigned_int","_uint",0},
645 { "_unsigned_int","_wxWindowID",0},
646 { "_unsigned_int","_int",0},
647 { "_short","_wxDateTime_t",0},
648 { "_short","_WXTYPE",0},
649 { "_short","_unsigned_short",0},
650 { "_short","_signed_short",0},
651 { "_wxWindowID","_wxCoord",0},
652 { "_wxWindowID","_wxPrintQuality",0},
653 { "_wxWindowID","_time_t",0},
654 { "_wxWindowID","_size_t",0},
655 { "_wxWindowID","_EBool",0},
656 { "_wxWindowID","_uint",0},
657 { "_wxWindowID","_int",0},
658 { "_wxWindowID","_signed_int",0},
659 { "_wxWindowID","_unsigned_int",0},
660 { "_int","_wxCoord",0},
661 { "_int","_wxPrintQuality",0},
662 { "_int","_time_t",0},
663 { "_int","_size_t",0},
664 { "_int","_EBool",0},
666 { "_int","_wxWindowID",0},
667 { "_int","_unsigned_int",0},
668 { "_int","_signed_int",0},
669 { "_wxDateTime_t","_unsigned_short",0},
670 { "_wxDateTime_t","_short",0},
671 { "_wxDateTime_t","_WXTYPE",0},
672 { "_time_t","_wxCoord",0},
673 { "_time_t","_wxPrintQuality",0},
674 { "_time_t","_unsigned_int",0},
675 { "_time_t","_int",0},
676 { "_time_t","_wxWindowID",0},
677 { "_time_t","_uint",0},
678 { "_time_t","_size_t",0},
679 { "_wxCoord","_int",0},
680 { "_wxCoord","_signed_int",0},
681 { "_wxCoord","_unsigned_int",0},
682 { "_wxCoord","_wxWindowID",0},
683 { "_wxCoord","_uint",0},
684 { "_wxCoord","_EBool",0},
685 { "_wxCoord","_size_t",0},
686 { "_wxCoord","_time_t",0},
687 { "_wxCoord","_wxPrintQuality",0},
688 { "_wxEvtHandler","_wxGLCanvas",SwigwxGLCanvasTowxEvtHandler
},
689 { "_wxWindow","_wxGLCanvas",SwigwxGLCanvasTowxWindow
},
692 static PyObject
*SWIG_globals
;
696 SWIGEXPORT(void) initglcanvasc() {
698 SWIG_globals
= SWIG_newvarlink();
699 m
= Py_InitModule("glcanvasc", glcanvascMethods
);
700 d
= PyModule_GetDict(m
);
701 PyDict_SetItemString(d
,"WX_GL_RGBA", PyInt_FromLong((long) WX_GL_RGBA
));
702 PyDict_SetItemString(d
,"WX_GL_BUFFER_SIZE", PyInt_FromLong((long) WX_GL_BUFFER_SIZE
));
703 PyDict_SetItemString(d
,"WX_GL_LEVEL", PyInt_FromLong((long) WX_GL_LEVEL
));
704 PyDict_SetItemString(d
,"WX_GL_DOUBLEBUFFER", PyInt_FromLong((long) WX_GL_DOUBLEBUFFER
));
705 PyDict_SetItemString(d
,"WX_GL_STEREO", PyInt_FromLong((long) WX_GL_STEREO
));
706 PyDict_SetItemString(d
,"WX_GL_AUX_BUFFERS", PyInt_FromLong((long) WX_GL_AUX_BUFFERS
));
707 PyDict_SetItemString(d
,"WX_GL_MIN_RED", PyInt_FromLong((long) WX_GL_MIN_RED
));
708 PyDict_SetItemString(d
,"WX_GL_MIN_GREEN", PyInt_FromLong((long) WX_GL_MIN_GREEN
));
709 PyDict_SetItemString(d
,"WX_GL_MIN_BLUE", PyInt_FromLong((long) WX_GL_MIN_BLUE
));
710 PyDict_SetItemString(d
,"WX_GL_MIN_ALPHA", PyInt_FromLong((long) WX_GL_MIN_ALPHA
));
711 PyDict_SetItemString(d
,"WX_GL_DEPTH_SIZE", PyInt_FromLong((long) WX_GL_DEPTH_SIZE
));
712 PyDict_SetItemString(d
,"WX_GL_STENCIL_SIZE", PyInt_FromLong((long) WX_GL_STENCIL_SIZE
));
713 PyDict_SetItemString(d
,"WX_GL_MIN_ACCUM_RED", PyInt_FromLong((long) WX_GL_MIN_ACCUM_RED
));
714 PyDict_SetItemString(d
,"WX_GL_MIN_ACCUM_GREEN", PyInt_FromLong((long) WX_GL_MIN_ACCUM_GREEN
));
715 PyDict_SetItemString(d
,"WX_GL_MIN_ACCUM_BLUE", PyInt_FromLong((long) WX_GL_MIN_ACCUM_BLUE
));
716 PyDict_SetItemString(d
,"WX_GL_MIN_ACCUM_ALPHA", PyInt_FromLong((long) WX_GL_MIN_ACCUM_ALPHA
));
719 wxClassInfo::CleanUpClasses();
720 wxClassInfo::InitializeClasses();
724 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
725 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);