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 */
26 /* Definitions for Windows/Unix exporting */
27 #if defined(__WIN32__)
28 # if defined(_MSC_VER)
29 # define SWIGEXPORT(a) __declspec(dllexport) a
31 # if defined(__BORLANDC__)
32 # define SWIGEXPORT(a) a _export
34 # define SWIGEXPORT(a) a
38 # define SWIGEXPORT(a) a
44 extern void SWIG_MakePtr(char *, void *, char *);
45 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
46 extern char *SWIG_GetPtr(char *, void **, char *);
47 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
48 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
49 extern PyObject
*SWIG_newvarlink(void);
53 #define SWIG_init initglcanvasc
55 #define SWIG_name "glcanvasc"
59 #ifdef __WXMAC__ // avoid a bug in Carbon headers
64 #include "myglcanvas.h"
66 #include <wx/glcanvas.h>
71 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
77 } else if (target
== Py_None
) {
81 if (!PyTuple_Check(target
)) {
83 target
= PyTuple_New(1);
84 PyTuple_SetItem(target
, 0, o2
);
87 PyTuple_SetItem(o3
, 0, o
);
90 target
= PySequence_Concat(o2
, o3
);
97 // Put some wx default wxChar* values into wxStrings.
98 static const wxString
wxPyGLCanvasNameStr(wxT("GLCanvas"));
99 static const wxString
wxPyEmptyString(wxT(""));
103 static void *SwigwxGLContextTowxObject(void *ptr
) {
106 src
= (wxGLContext
*) ptr
;
107 dest
= (wxObject
*) src
;
108 return (void *) dest
;
111 #define delete_wxGLContext(_swigobj) (delete _swigobj)
112 static PyObject
*_wrap_delete_wxGLContext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
113 PyObject
* _resultobj
;
115 PyObject
* _argo0
= 0;
116 char *_kwnames
[] = { "self", NULL
};
119 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxGLContext",_kwnames
,&_argo0
))
122 if (_argo0
== Py_None
) { _arg0
= NULL
; }
123 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLContext_p")) {
124 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxGLContext. Expected _wxGLContext_p.");
129 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
130 delete_wxGLContext(_arg0
);
132 wxPyEndAllowThreads(__tstate
);
133 if (PyErr_Occurred()) return NULL
;
134 } Py_INCREF(Py_None
);
135 _resultobj
= Py_None
;
139 #define wxGLContext_SetCurrent(_swigobj) (_swigobj->SetCurrent())
140 static PyObject
*_wrap_wxGLContext_SetCurrent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
141 PyObject
* _resultobj
;
143 PyObject
* _argo0
= 0;
144 char *_kwnames
[] = { "self", NULL
};
147 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGLContext_SetCurrent",_kwnames
,&_argo0
))
150 if (_argo0
== Py_None
) { _arg0
= NULL
; }
151 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLContext_p")) {
152 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLContext_SetCurrent. Expected _wxGLContext_p.");
157 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
158 wxGLContext_SetCurrent(_arg0
);
160 wxPyEndAllowThreads(__tstate
);
161 if (PyErr_Occurred()) return NULL
;
162 } Py_INCREF(Py_None
);
163 _resultobj
= Py_None
;
167 #define wxGLContext_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
168 static PyObject
*_wrap_wxGLContext_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
169 PyObject
* _resultobj
;
172 PyObject
* _argo0
= 0;
173 PyObject
* _obj1
= 0;
174 char *_kwnames
[] = { "self","colour", NULL
};
177 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxGLContext_SetColour",_kwnames
,&_argo0
,&_obj1
))
180 if (_argo0
== Py_None
) { _arg0
= NULL
; }
181 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLContext_p")) {
182 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLContext_SetColour. Expected _wxGLContext_p.");
187 _arg1
= wxString_in_helper(_obj1
);
192 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
193 wxGLContext_SetColour(_arg0
,*_arg1
);
195 wxPyEndAllowThreads(__tstate
);
196 if (PyErr_Occurred()) return NULL
;
197 } Py_INCREF(Py_None
);
198 _resultobj
= Py_None
;
206 #define wxGLContext_SwapBuffers(_swigobj) (_swigobj->SwapBuffers())
207 static PyObject
*_wrap_wxGLContext_SwapBuffers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
208 PyObject
* _resultobj
;
210 PyObject
* _argo0
= 0;
211 char *_kwnames
[] = { "self", NULL
};
214 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGLContext_SwapBuffers",_kwnames
,&_argo0
))
217 if (_argo0
== Py_None
) { _arg0
= NULL
; }
218 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLContext_p")) {
219 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLContext_SwapBuffers. Expected _wxGLContext_p.");
224 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
225 wxGLContext_SwapBuffers(_arg0
);
227 wxPyEndAllowThreads(__tstate
);
228 if (PyErr_Occurred()) return NULL
;
229 } Py_INCREF(Py_None
);
230 _resultobj
= Py_None
;
234 #define wxGLContext_GetWindow(_swigobj) (_swigobj->GetWindow())
235 static PyObject
*_wrap_wxGLContext_GetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
236 PyObject
* _resultobj
;
239 PyObject
* _argo0
= 0;
240 char *_kwnames
[] = { "self", NULL
};
243 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGLContext_GetWindow",_kwnames
,&_argo0
))
246 if (_argo0
== Py_None
) { _arg0
= NULL
; }
247 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLContext_p")) {
248 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLContext_GetWindow. Expected _wxGLContext_p.");
253 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
254 _result
= (wxWindow
*)wxGLContext_GetWindow(_arg0
);
256 wxPyEndAllowThreads(__tstate
);
257 if (PyErr_Occurred()) return NULL
;
258 }{ _resultobj
= wxPyMake_wxObject(_result
); }
262 static void *SwigwxGLCanvasTowxWindow(void *ptr
) {
265 src
= (wxGLCanvas
*) ptr
;
266 dest
= (wxWindow
*) src
;
267 return (void *) dest
;
270 static void *SwigwxGLCanvasTowxEvtHandler(void *ptr
) {
273 src
= (wxGLCanvas
*) ptr
;
274 dest
= (wxEvtHandler
*) src
;
275 return (void *) dest
;
278 static void *SwigwxGLCanvasTowxObject(void *ptr
) {
281 src
= (wxGLCanvas
*) ptr
;
282 dest
= (wxObject
*) src
;
283 return (void *) dest
;
286 #define new_wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
287 static PyObject
*_wrap_new_wxGLCanvas(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
288 PyObject
* _resultobj
;
289 wxGLCanvas
* _result
;
291 wxWindowID _arg1
= (wxWindowID
) -1;
292 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
293 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
294 long _arg4
= (long ) 0;
295 wxString
* _arg5
= (wxString
*) &wxPyGLCanvasNameStr
;
296 int * _arg6
= (int *) NULL
;
297 wxPalette
* _arg7
= (wxPalette
*) &wxNullPalette
;
298 PyObject
* _argo0
= 0;
300 PyObject
* _obj2
= 0;
302 PyObject
* _obj3
= 0;
303 PyObject
* _obj5
= 0;
305 PyObject
* _obj6
= 0;
306 PyObject
* _argo7
= 0;
307 char *_kwnames
[] = { "parent","id","pos","size","style","name","attribList","palette", NULL
};
311 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iOOlOOO:new_wxGLCanvas",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_obj5
,&_obj6
,&_argo7
))
314 if (_argo0
== Py_None
) { _arg0
= NULL
; }
315 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
316 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxGLCanvas. Expected _wxWindow_p.");
323 if (! wxPoint_helper(_obj2
, &_arg2
))
329 if (! wxSize_helper(_obj3
, &_arg3
))
334 _arg5
= wxString_in_helper(_obj5
);
341 if (PySequence_Check(_obj6
)) {
342 int size
= PyObject_Length(_obj6
);
343 temp1
= new int[size
+1]; // (int*)malloc((size + 1) * sizeof(int));
344 for (i
= 0; i
< size
; i
++) {
345 temp1
[i
] = PyInt_AsLong(PySequence_GetItem(_obj6
, i
));
352 if (SWIG_GetPtrObj(_argo7
,(void **) &_arg7
,"_wxPalette_p")) {
353 PyErr_SetString(PyExc_TypeError
,"Type error in argument 8 of new_wxGLCanvas. Expected _wxPalette_p.");
358 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
359 _result
= (wxGLCanvas
*)new_wxGLCanvas(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,*_arg5
,_arg6
,*_arg7
);
361 wxPyEndAllowThreads(__tstate
);
362 if (PyErr_Occurred()) return NULL
;
364 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGLCanvas_p");
365 _resultobj
= Py_BuildValue("s",_ptemp
);
368 _resultobj
= Py_None
;
380 #define new_wxGLCanvasWithContext(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
381 static PyObject
*_wrap_new_wxGLCanvasWithContext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
382 PyObject
* _resultobj
;
383 wxGLCanvas
* _result
;
385 wxGLContext
* _arg1
= (wxGLContext
*) NULL
;
386 wxWindowID _arg2
= (wxWindowID
) -1;
387 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
388 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
389 long _arg5
= (long ) 0;
390 wxString
* _arg6
= (wxString
*) &wxPyGLCanvasNameStr
;
391 int * _arg7
= (int *) NULL
;
392 wxPalette
* _arg8
= (wxPalette
*) &wxNullPalette
;
393 PyObject
* _argo0
= 0;
394 PyObject
* _argo1
= 0;
396 PyObject
* _obj3
= 0;
398 PyObject
* _obj4
= 0;
399 PyObject
* _obj6
= 0;
401 PyObject
* _obj7
= 0;
402 PyObject
* _argo8
= 0;
403 char *_kwnames
[] = { "parent","shared","id","pos","size","style","name","attribList","palette", NULL
};
407 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|OiOOlOOO:new_wxGLCanvasWithContext",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_obj6
,&_obj7
,&_argo8
))
410 if (_argo0
== Py_None
) { _arg0
= NULL
; }
411 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
412 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxGLCanvasWithContext. Expected _wxWindow_p.");
417 if (_argo1
== Py_None
) { _arg1
= NULL
; }
418 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxGLContext_p")) {
419 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxGLCanvasWithContext. Expected _wxGLContext_p.");
426 if (! wxPoint_helper(_obj3
, &_arg3
))
432 if (! wxSize_helper(_obj4
, &_arg4
))
437 _arg6
= wxString_in_helper(_obj6
);
444 if (PySequence_Check(_obj7
)) {
445 int size
= PyObject_Length(_obj7
);
446 temp1
= new int[size
+1]; // (int*)malloc((size + 1) * sizeof(int));
447 for (i
= 0; i
< size
; i
++) {
448 temp1
[i
] = PyInt_AsLong(PySequence_GetItem(_obj7
, i
));
455 if (SWIG_GetPtrObj(_argo8
,(void **) &_arg8
,"_wxPalette_p")) {
456 PyErr_SetString(PyExc_TypeError
,"Type error in argument 9 of new_wxGLCanvasWithContext. Expected _wxPalette_p.");
461 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
462 _result
= (wxGLCanvas
*)new_wxGLCanvasWithContext(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,*_arg6
,_arg7
,*_arg8
);
464 wxPyEndAllowThreads(__tstate
);
465 if (PyErr_Occurred()) return NULL
;
467 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGLCanvas_p");
468 _resultobj
= Py_BuildValue("s",_ptemp
);
471 _resultobj
= Py_None
;
483 #define wxGLCanvas_SetCurrent(_swigobj) (_swigobj->SetCurrent())
484 static PyObject
*_wrap_wxGLCanvas_SetCurrent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
485 PyObject
* _resultobj
;
487 PyObject
* _argo0
= 0;
488 char *_kwnames
[] = { "self", NULL
};
491 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGLCanvas_SetCurrent",_kwnames
,&_argo0
))
494 if (_argo0
== Py_None
) { _arg0
= NULL
; }
495 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLCanvas_p")) {
496 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLCanvas_SetCurrent. Expected _wxGLCanvas_p.");
501 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
502 wxGLCanvas_SetCurrent(_arg0
);
504 wxPyEndAllowThreads(__tstate
);
505 if (PyErr_Occurred()) return NULL
;
506 } Py_INCREF(Py_None
);
507 _resultobj
= Py_None
;
511 #define wxGLCanvas_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
512 static PyObject
*_wrap_wxGLCanvas_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
513 PyObject
* _resultobj
;
516 PyObject
* _argo0
= 0;
517 PyObject
* _obj1
= 0;
518 char *_kwnames
[] = { "self","colour", NULL
};
521 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxGLCanvas_SetColour",_kwnames
,&_argo0
,&_obj1
))
524 if (_argo0
== Py_None
) { _arg0
= NULL
; }
525 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLCanvas_p")) {
526 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLCanvas_SetColour. Expected _wxGLCanvas_p.");
531 _arg1
= wxString_in_helper(_obj1
);
536 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
537 wxGLCanvas_SetColour(_arg0
,*_arg1
);
539 wxPyEndAllowThreads(__tstate
);
540 if (PyErr_Occurred()) return NULL
;
541 } Py_INCREF(Py_None
);
542 _resultobj
= Py_None
;
550 #define wxGLCanvas_SwapBuffers(_swigobj) (_swigobj->SwapBuffers())
551 static PyObject
*_wrap_wxGLCanvas_SwapBuffers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
552 PyObject
* _resultobj
;
554 PyObject
* _argo0
= 0;
555 char *_kwnames
[] = { "self", NULL
};
558 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGLCanvas_SwapBuffers",_kwnames
,&_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_SwapBuffers. Expected _wxGLCanvas_p.");
568 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
569 wxGLCanvas_SwapBuffers(_arg0
);
571 wxPyEndAllowThreads(__tstate
);
572 if (PyErr_Occurred()) return NULL
;
573 } Py_INCREF(Py_None
);
574 _resultobj
= Py_None
;
578 #define wxGLCanvas_GetContext(_swigobj) (_swigobj->GetContext())
579 static PyObject
*_wrap_wxGLCanvas_GetContext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
580 PyObject
* _resultobj
;
581 wxGLContext
* _result
;
583 PyObject
* _argo0
= 0;
584 char *_kwnames
[] = { "self", NULL
};
588 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGLCanvas_GetContext",_kwnames
,&_argo0
))
591 if (_argo0
== Py_None
) { _arg0
= NULL
; }
592 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLCanvas_p")) {
593 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLCanvas_GetContext. Expected _wxGLCanvas_p.");
598 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
599 _result
= (wxGLContext
*)wxGLCanvas_GetContext(_arg0
);
601 wxPyEndAllowThreads(__tstate
);
602 if (PyErr_Occurred()) return NULL
;
604 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGLContext_p");
605 _resultobj
= Py_BuildValue("s",_ptemp
);
608 _resultobj
= Py_None
;
613 static PyMethodDef glcanvascMethods
[] = {
614 { "wxGLCanvas_GetContext", (PyCFunction
) _wrap_wxGLCanvas_GetContext
, METH_VARARGS
| METH_KEYWORDS
},
615 { "wxGLCanvas_SwapBuffers", (PyCFunction
) _wrap_wxGLCanvas_SwapBuffers
, METH_VARARGS
| METH_KEYWORDS
},
616 { "wxGLCanvas_SetColour", (PyCFunction
) _wrap_wxGLCanvas_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
617 { "wxGLCanvas_SetCurrent", (PyCFunction
) _wrap_wxGLCanvas_SetCurrent
, METH_VARARGS
| METH_KEYWORDS
},
618 { "new_wxGLCanvasWithContext", (PyCFunction
) _wrap_new_wxGLCanvasWithContext
, METH_VARARGS
| METH_KEYWORDS
},
619 { "new_wxGLCanvas", (PyCFunction
) _wrap_new_wxGLCanvas
, METH_VARARGS
| METH_KEYWORDS
},
620 { "wxGLContext_GetWindow", (PyCFunction
) _wrap_wxGLContext_GetWindow
, METH_VARARGS
| METH_KEYWORDS
},
621 { "wxGLContext_SwapBuffers", (PyCFunction
) _wrap_wxGLContext_SwapBuffers
, METH_VARARGS
| METH_KEYWORDS
},
622 { "wxGLContext_SetColour", (PyCFunction
) _wrap_wxGLContext_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
623 { "wxGLContext_SetCurrent", (PyCFunction
) _wrap_wxGLContext_SetCurrent
, METH_VARARGS
| METH_KEYWORDS
},
624 { "delete_wxGLContext", (PyCFunction
) _wrap_delete_wxGLContext
, METH_VARARGS
| METH_KEYWORDS
},
631 * This table is used by the pointer type-checker
633 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
634 { "_signed_long","_long",0},
635 { "_wxPrintQuality","_wxCoord",0},
636 { "_wxPrintQuality","_int",0},
637 { "_wxPrintQuality","_signed_int",0},
638 { "_wxPrintQuality","_unsigned_int",0},
639 { "_wxPrintQuality","_wxWindowID",0},
640 { "_wxPrintQuality","_uint",0},
641 { "_wxPrintQuality","_EBool",0},
642 { "_wxPrintQuality","_size_t",0},
643 { "_wxPrintQuality","_time_t",0},
644 { "_byte","_unsigned_char",0},
645 { "_long","_unsigned_long",0},
646 { "_long","_signed_long",0},
647 { "_size_t","_wxCoord",0},
648 { "_size_t","_wxPrintQuality",0},
649 { "_size_t","_time_t",0},
650 { "_size_t","_unsigned_int",0},
651 { "_size_t","_int",0},
652 { "_size_t","_wxWindowID",0},
653 { "_size_t","_uint",0},
654 { "_uint","_wxCoord",0},
655 { "_uint","_wxPrintQuality",0},
656 { "_uint","_time_t",0},
657 { "_uint","_size_t",0},
658 { "_uint","_unsigned_int",0},
660 { "_uint","_wxWindowID",0},
661 { "_wxChar","_char",0},
662 { "_char","_wxChar",0},
663 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
664 { "_EBool","_wxCoord",0},
665 { "_EBool","_wxPrintQuality",0},
666 { "_EBool","_signed_int",0},
667 { "_EBool","_int",0},
668 { "_EBool","_wxWindowID",0},
669 { "_unsigned_long","_long",0},
670 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
671 { "_signed_int","_wxCoord",0},
672 { "_signed_int","_wxPrintQuality",0},
673 { "_signed_int","_EBool",0},
674 { "_signed_int","_wxWindowID",0},
675 { "_signed_int","_int",0},
676 { "_WXTYPE","_wxDateTime_t",0},
677 { "_WXTYPE","_short",0},
678 { "_WXTYPE","_signed_short",0},
679 { "_WXTYPE","_unsigned_short",0},
680 { "_unsigned_short","_wxDateTime_t",0},
681 { "_unsigned_short","_WXTYPE",0},
682 { "_unsigned_short","_short",0},
683 { "_wxObject","_wxGLCanvas",SwigwxGLCanvasTowxObject
},
684 { "_wxObject","_wxGLContext",SwigwxGLContextTowxObject
},
685 { "_signed_short","_WXTYPE",0},
686 { "_signed_short","_short",0},
687 { "_unsigned_char","_byte",0},
688 { "_unsigned_int","_wxCoord",0},
689 { "_unsigned_int","_wxPrintQuality",0},
690 { "_unsigned_int","_time_t",0},
691 { "_unsigned_int","_size_t",0},
692 { "_unsigned_int","_uint",0},
693 { "_unsigned_int","_wxWindowID",0},
694 { "_unsigned_int","_int",0},
695 { "_short","_wxDateTime_t",0},
696 { "_short","_WXTYPE",0},
697 { "_short","_unsigned_short",0},
698 { "_short","_signed_short",0},
699 { "_wxWindowID","_wxCoord",0},
700 { "_wxWindowID","_wxPrintQuality",0},
701 { "_wxWindowID","_time_t",0},
702 { "_wxWindowID","_size_t",0},
703 { "_wxWindowID","_EBool",0},
704 { "_wxWindowID","_uint",0},
705 { "_wxWindowID","_int",0},
706 { "_wxWindowID","_signed_int",0},
707 { "_wxWindowID","_unsigned_int",0},
708 { "_int","_wxCoord",0},
709 { "_int","_wxPrintQuality",0},
710 { "_int","_time_t",0},
711 { "_int","_size_t",0},
712 { "_int","_EBool",0},
714 { "_int","_wxWindowID",0},
715 { "_int","_unsigned_int",0},
716 { "_int","_signed_int",0},
717 { "_wxDateTime_t","_unsigned_short",0},
718 { "_wxDateTime_t","_short",0},
719 { "_wxDateTime_t","_WXTYPE",0},
720 { "_time_t","_wxCoord",0},
721 { "_time_t","_wxPrintQuality",0},
722 { "_time_t","_unsigned_int",0},
723 { "_time_t","_int",0},
724 { "_time_t","_wxWindowID",0},
725 { "_time_t","_uint",0},
726 { "_time_t","_size_t",0},
727 { "_wxCoord","_int",0},
728 { "_wxCoord","_signed_int",0},
729 { "_wxCoord","_unsigned_int",0},
730 { "_wxCoord","_wxWindowID",0},
731 { "_wxCoord","_uint",0},
732 { "_wxCoord","_EBool",0},
733 { "_wxCoord","_size_t",0},
734 { "_wxCoord","_time_t",0},
735 { "_wxCoord","_wxPrintQuality",0},
736 { "_wxEvtHandler","_wxGLCanvas",SwigwxGLCanvasTowxEvtHandler
},
737 { "_wxWindow","_wxGLCanvas",SwigwxGLCanvasTowxWindow
},
740 static PyObject
*SWIG_globals
;
744 SWIGEXPORT(void) initglcanvasc() {
746 SWIG_globals
= SWIG_newvarlink();
747 m
= Py_InitModule("glcanvasc", glcanvascMethods
);
748 d
= PyModule_GetDict(m
);
749 PyDict_SetItemString(d
,"WX_GL_RGBA", PyInt_FromLong((long) WX_GL_RGBA
));
750 PyDict_SetItemString(d
,"WX_GL_BUFFER_SIZE", PyInt_FromLong((long) WX_GL_BUFFER_SIZE
));
751 PyDict_SetItemString(d
,"WX_GL_LEVEL", PyInt_FromLong((long) WX_GL_LEVEL
));
752 PyDict_SetItemString(d
,"WX_GL_DOUBLEBUFFER", PyInt_FromLong((long) WX_GL_DOUBLEBUFFER
));
753 PyDict_SetItemString(d
,"WX_GL_STEREO", PyInt_FromLong((long) WX_GL_STEREO
));
754 PyDict_SetItemString(d
,"WX_GL_AUX_BUFFERS", PyInt_FromLong((long) WX_GL_AUX_BUFFERS
));
755 PyDict_SetItemString(d
,"WX_GL_MIN_RED", PyInt_FromLong((long) WX_GL_MIN_RED
));
756 PyDict_SetItemString(d
,"WX_GL_MIN_GREEN", PyInt_FromLong((long) WX_GL_MIN_GREEN
));
757 PyDict_SetItemString(d
,"WX_GL_MIN_BLUE", PyInt_FromLong((long) WX_GL_MIN_BLUE
));
758 PyDict_SetItemString(d
,"WX_GL_MIN_ALPHA", PyInt_FromLong((long) WX_GL_MIN_ALPHA
));
759 PyDict_SetItemString(d
,"WX_GL_DEPTH_SIZE", PyInt_FromLong((long) WX_GL_DEPTH_SIZE
));
760 PyDict_SetItemString(d
,"WX_GL_STENCIL_SIZE", PyInt_FromLong((long) WX_GL_STENCIL_SIZE
));
761 PyDict_SetItemString(d
,"WX_GL_MIN_ACCUM_RED", PyInt_FromLong((long) WX_GL_MIN_ACCUM_RED
));
762 PyDict_SetItemString(d
,"WX_GL_MIN_ACCUM_GREEN", PyInt_FromLong((long) WX_GL_MIN_ACCUM_GREEN
));
763 PyDict_SetItemString(d
,"WX_GL_MIN_ACCUM_BLUE", PyInt_FromLong((long) WX_GL_MIN_ACCUM_BLUE
));
764 PyDict_SetItemString(d
,"WX_GL_MIN_ACCUM_ALPHA", PyInt_FromLong((long) WX_GL_MIN_ACCUM_ALPHA
));
769 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
770 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);