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
);
93 #if PYTHON_API_VERSION >= 1009
94 static char* wxStringErrorMsg
= "String or Unicode type required";
96 static char* wxStringErrorMsg
= "String type required";
101 static void *SwigwxGLContextTowxObject(void *ptr
) {
104 src
= (wxGLContext
*) ptr
;
105 dest
= (wxObject
*) src
;
106 return (void *) dest
;
109 #define delete_wxGLContext(_swigobj) (delete _swigobj)
110 static PyObject
*_wrap_delete_wxGLContext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
111 PyObject
* _resultobj
;
113 PyObject
* _argo0
= 0;
114 char *_kwnames
[] = { "self", NULL
};
117 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxGLContext",_kwnames
,&_argo0
))
120 if (_argo0
== Py_None
) { _arg0
= NULL
; }
121 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLContext_p")) {
122 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxGLContext. Expected _wxGLContext_p.");
127 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
128 delete_wxGLContext(_arg0
);
130 wxPyEndAllowThreads(__tstate
);
131 if (PyErr_Occurred()) return NULL
;
132 } Py_INCREF(Py_None
);
133 _resultobj
= Py_None
;
137 #define wxGLContext_SetCurrent(_swigobj) (_swigobj->SetCurrent())
138 static PyObject
*_wrap_wxGLContext_SetCurrent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
139 PyObject
* _resultobj
;
141 PyObject
* _argo0
= 0;
142 char *_kwnames
[] = { "self", NULL
};
145 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGLContext_SetCurrent",_kwnames
,&_argo0
))
148 if (_argo0
== Py_None
) { _arg0
= NULL
; }
149 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLContext_p")) {
150 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLContext_SetCurrent. Expected _wxGLContext_p.");
155 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
156 wxGLContext_SetCurrent(_arg0
);
158 wxPyEndAllowThreads(__tstate
);
159 if (PyErr_Occurred()) return NULL
;
160 } Py_INCREF(Py_None
);
161 _resultobj
= Py_None
;
165 #define wxGLContext_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
166 static PyObject
*_wrap_wxGLContext_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
167 PyObject
* _resultobj
;
170 PyObject
* _argo0
= 0;
171 char *_kwnames
[] = { "self","colour", NULL
};
174 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Os:wxGLContext_SetColour",_kwnames
,&_argo0
,&_arg1
))
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 wxGLContext_SetColour. Expected _wxGLContext_p.");
184 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
185 wxGLContext_SetColour(_arg0
,_arg1
);
187 wxPyEndAllowThreads(__tstate
);
188 if (PyErr_Occurred()) return NULL
;
189 } Py_INCREF(Py_None
);
190 _resultobj
= Py_None
;
194 #define wxGLContext_SwapBuffers(_swigobj) (_swigobj->SwapBuffers())
195 static PyObject
*_wrap_wxGLContext_SwapBuffers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
196 PyObject
* _resultobj
;
198 PyObject
* _argo0
= 0;
199 char *_kwnames
[] = { "self", NULL
};
202 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGLContext_SwapBuffers",_kwnames
,&_argo0
))
205 if (_argo0
== Py_None
) { _arg0
= NULL
; }
206 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLContext_p")) {
207 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLContext_SwapBuffers. Expected _wxGLContext_p.");
212 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
213 wxGLContext_SwapBuffers(_arg0
);
215 wxPyEndAllowThreads(__tstate
);
216 if (PyErr_Occurred()) return NULL
;
217 } Py_INCREF(Py_None
);
218 _resultobj
= Py_None
;
222 #define wxGLContext_GetWindow(_swigobj) (_swigobj->GetWindow())
223 static PyObject
*_wrap_wxGLContext_GetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
224 PyObject
* _resultobj
;
227 PyObject
* _argo0
= 0;
228 char *_kwnames
[] = { "self", NULL
};
231 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGLContext_GetWindow",_kwnames
,&_argo0
))
234 if (_argo0
== Py_None
) { _arg0
= NULL
; }
235 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLContext_p")) {
236 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLContext_GetWindow. Expected _wxGLContext_p.");
241 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
242 _result
= (wxWindow
*)wxGLContext_GetWindow(_arg0
);
244 wxPyEndAllowThreads(__tstate
);
245 if (PyErr_Occurred()) return NULL
;
246 }{ _resultobj
= wxPyMake_wxObject(_result
); }
250 static void *SwigwxGLCanvasTowxWindow(void *ptr
) {
253 src
= (wxGLCanvas
*) ptr
;
254 dest
= (wxWindow
*) src
;
255 return (void *) dest
;
258 static void *SwigwxGLCanvasTowxEvtHandler(void *ptr
) {
261 src
= (wxGLCanvas
*) ptr
;
262 dest
= (wxEvtHandler
*) src
;
263 return (void *) dest
;
266 static void *SwigwxGLCanvasTowxObject(void *ptr
) {
269 src
= (wxGLCanvas
*) ptr
;
270 dest
= (wxObject
*) src
;
271 return (void *) dest
;
274 #define new_wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
275 static PyObject
*_wrap_new_wxGLCanvas(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
276 PyObject
* _resultobj
;
277 wxGLCanvas
* _result
;
279 wxWindowID _arg1
= (wxWindowID
) -1;
280 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
281 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
282 long _arg4
= (long ) 0;
283 char * _arg5
= (char *) "GLCanvas";
284 int * _arg6
= (int *) NULL
;
285 wxPalette
* _arg7
= (wxPalette
*) &wxNullPalette
;
286 PyObject
* _argo0
= 0;
288 PyObject
* _obj2
= 0;
290 PyObject
* _obj3
= 0;
292 PyObject
* _obj6
= 0;
293 PyObject
* _argo7
= 0;
294 char *_kwnames
[] = { "parent","id","pos","size","style","name","attribList","palette", NULL
};
298 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iOOlsOO:new_wxGLCanvas",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
,&_obj6
,&_argo7
))
301 if (_argo0
== Py_None
) { _arg0
= NULL
; }
302 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
303 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxGLCanvas. Expected _wxWindow_p.");
310 if (! wxPoint_helper(_obj2
, &_arg2
))
316 if (! wxSize_helper(_obj3
, &_arg3
))
322 if (PySequence_Check(_obj6
)) {
323 int size
= PyObject_Length(_obj6
);
324 temp1
= new int[size
+1]; // (int*)malloc((size + 1) * sizeof(int));
325 for (i
= 0; i
< size
; i
++) {
326 temp1
[i
] = PyInt_AsLong(PySequence_GetItem(_obj6
, i
));
333 if (_argo7
== Py_None
) { _arg7
= NULL
; }
334 else if (SWIG_GetPtrObj(_argo7
,(void **) &_arg7
,"_wxPalette_p")) {
335 PyErr_SetString(PyExc_TypeError
,"Type error in argument 8 of new_wxGLCanvas. Expected _wxPalette_p.");
340 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
341 _result
= (wxGLCanvas
*)new_wxGLCanvas(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
,_arg6
,*_arg7
);
343 wxPyEndAllowThreads(__tstate
);
344 if (PyErr_Occurred()) return NULL
;
346 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGLCanvas_p");
347 _resultobj
= Py_BuildValue("s",_ptemp
);
350 _resultobj
= Py_None
;
358 #define new_wxGLCanvasWithContext(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
359 static PyObject
*_wrap_new_wxGLCanvasWithContext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
360 PyObject
* _resultobj
;
361 wxGLCanvas
* _result
;
363 wxGLContext
* _arg1
= (wxGLContext
*) NULL
;
364 wxWindowID _arg2
= (wxWindowID
) -1;
365 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
366 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
367 long _arg5
= (long ) 0;
368 char * _arg6
= (char *) "GLCanvas";
369 int * _arg7
= (int *) NULL
;
370 wxPalette
* _arg8
= (wxPalette
*) &wxNullPalette
;
371 PyObject
* _argo0
= 0;
372 PyObject
* _argo1
= 0;
374 PyObject
* _obj3
= 0;
376 PyObject
* _obj4
= 0;
378 PyObject
* _obj7
= 0;
379 PyObject
* _argo8
= 0;
380 char *_kwnames
[] = { "parent","shared","id","pos","size","style","name","attribList","palette", NULL
};
384 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|OiOOlsOO:new_wxGLCanvasWithContext",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
,&_obj7
,&_argo8
))
387 if (_argo0
== Py_None
) { _arg0
= NULL
; }
388 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
389 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxGLCanvasWithContext. Expected _wxWindow_p.");
394 if (_argo1
== Py_None
) { _arg1
= NULL
; }
395 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxGLContext_p")) {
396 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxGLCanvasWithContext. Expected _wxGLContext_p.");
403 if (! wxPoint_helper(_obj3
, &_arg3
))
409 if (! wxSize_helper(_obj4
, &_arg4
))
415 if (PySequence_Check(_obj7
)) {
416 int size
= PyObject_Length(_obj7
);
417 temp1
= new int[size
+1]; // (int*)malloc((size + 1) * sizeof(int));
418 for (i
= 0; i
< size
; i
++) {
419 temp1
[i
] = PyInt_AsLong(PySequence_GetItem(_obj7
, i
));
426 if (_argo8
== Py_None
) { _arg8
= NULL
; }
427 else if (SWIG_GetPtrObj(_argo8
,(void **) &_arg8
,"_wxPalette_p")) {
428 PyErr_SetString(PyExc_TypeError
,"Type error in argument 9 of new_wxGLCanvasWithContext. Expected _wxPalette_p.");
433 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
434 _result
= (wxGLCanvas
*)new_wxGLCanvasWithContext(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
,_arg7
,*_arg8
);
436 wxPyEndAllowThreads(__tstate
);
437 if (PyErr_Occurred()) return NULL
;
439 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGLCanvas_p");
440 _resultobj
= Py_BuildValue("s",_ptemp
);
443 _resultobj
= Py_None
;
451 #define wxGLCanvas_SetCurrent(_swigobj) (_swigobj->SetCurrent())
452 static PyObject
*_wrap_wxGLCanvas_SetCurrent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
453 PyObject
* _resultobj
;
455 PyObject
* _argo0
= 0;
456 char *_kwnames
[] = { "self", NULL
};
459 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGLCanvas_SetCurrent",_kwnames
,&_argo0
))
462 if (_argo0
== Py_None
) { _arg0
= NULL
; }
463 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLCanvas_p")) {
464 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLCanvas_SetCurrent. Expected _wxGLCanvas_p.");
469 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
470 wxGLCanvas_SetCurrent(_arg0
);
472 wxPyEndAllowThreads(__tstate
);
473 if (PyErr_Occurred()) return NULL
;
474 } Py_INCREF(Py_None
);
475 _resultobj
= Py_None
;
479 #define wxGLCanvas_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
480 static PyObject
*_wrap_wxGLCanvas_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
481 PyObject
* _resultobj
;
484 PyObject
* _argo0
= 0;
485 char *_kwnames
[] = { "self","colour", NULL
};
488 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Os:wxGLCanvas_SetColour",_kwnames
,&_argo0
,&_arg1
))
491 if (_argo0
== Py_None
) { _arg0
= NULL
; }
492 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLCanvas_p")) {
493 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLCanvas_SetColour. Expected _wxGLCanvas_p.");
498 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
499 wxGLCanvas_SetColour(_arg0
,_arg1
);
501 wxPyEndAllowThreads(__tstate
);
502 if (PyErr_Occurred()) return NULL
;
503 } Py_INCREF(Py_None
);
504 _resultobj
= Py_None
;
508 #define wxGLCanvas_SwapBuffers(_swigobj) (_swigobj->SwapBuffers())
509 static PyObject
*_wrap_wxGLCanvas_SwapBuffers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
510 PyObject
* _resultobj
;
512 PyObject
* _argo0
= 0;
513 char *_kwnames
[] = { "self", NULL
};
516 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGLCanvas_SwapBuffers",_kwnames
,&_argo0
))
519 if (_argo0
== Py_None
) { _arg0
= NULL
; }
520 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLCanvas_p")) {
521 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLCanvas_SwapBuffers. Expected _wxGLCanvas_p.");
526 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
527 wxGLCanvas_SwapBuffers(_arg0
);
529 wxPyEndAllowThreads(__tstate
);
530 if (PyErr_Occurred()) return NULL
;
531 } Py_INCREF(Py_None
);
532 _resultobj
= Py_None
;
536 #define wxGLCanvas_GetContext(_swigobj) (_swigobj->GetContext())
537 static PyObject
*_wrap_wxGLCanvas_GetContext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
538 PyObject
* _resultobj
;
539 wxGLContext
* _result
;
541 PyObject
* _argo0
= 0;
542 char *_kwnames
[] = { "self", NULL
};
546 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGLCanvas_GetContext",_kwnames
,&_argo0
))
549 if (_argo0
== Py_None
) { _arg0
= NULL
; }
550 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLCanvas_p")) {
551 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLCanvas_GetContext. Expected _wxGLCanvas_p.");
556 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
557 _result
= (wxGLContext
*)wxGLCanvas_GetContext(_arg0
);
559 wxPyEndAllowThreads(__tstate
);
560 if (PyErr_Occurred()) return NULL
;
562 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGLContext_p");
563 _resultobj
= Py_BuildValue("s",_ptemp
);
566 _resultobj
= Py_None
;
571 static PyMethodDef glcanvascMethods
[] = {
572 { "wxGLCanvas_GetContext", (PyCFunction
) _wrap_wxGLCanvas_GetContext
, METH_VARARGS
| METH_KEYWORDS
},
573 { "wxGLCanvas_SwapBuffers", (PyCFunction
) _wrap_wxGLCanvas_SwapBuffers
, METH_VARARGS
| METH_KEYWORDS
},
574 { "wxGLCanvas_SetColour", (PyCFunction
) _wrap_wxGLCanvas_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
575 { "wxGLCanvas_SetCurrent", (PyCFunction
) _wrap_wxGLCanvas_SetCurrent
, METH_VARARGS
| METH_KEYWORDS
},
576 { "new_wxGLCanvasWithContext", (PyCFunction
) _wrap_new_wxGLCanvasWithContext
, METH_VARARGS
| METH_KEYWORDS
},
577 { "new_wxGLCanvas", (PyCFunction
) _wrap_new_wxGLCanvas
, METH_VARARGS
| METH_KEYWORDS
},
578 { "wxGLContext_GetWindow", (PyCFunction
) _wrap_wxGLContext_GetWindow
, METH_VARARGS
| METH_KEYWORDS
},
579 { "wxGLContext_SwapBuffers", (PyCFunction
) _wrap_wxGLContext_SwapBuffers
, METH_VARARGS
| METH_KEYWORDS
},
580 { "wxGLContext_SetColour", (PyCFunction
) _wrap_wxGLContext_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
581 { "wxGLContext_SetCurrent", (PyCFunction
) _wrap_wxGLContext_SetCurrent
, METH_VARARGS
| METH_KEYWORDS
},
582 { "delete_wxGLContext", (PyCFunction
) _wrap_delete_wxGLContext
, METH_VARARGS
| METH_KEYWORDS
},
589 * This table is used by the pointer type-checker
591 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
592 { "_signed_long","_long",0},
593 { "_wxPrintQuality","_wxCoord",0},
594 { "_wxPrintQuality","_int",0},
595 { "_wxPrintQuality","_signed_int",0},
596 { "_wxPrintQuality","_unsigned_int",0},
597 { "_wxPrintQuality","_wxWindowID",0},
598 { "_wxPrintQuality","_uint",0},
599 { "_wxPrintQuality","_EBool",0},
600 { "_wxPrintQuality","_size_t",0},
601 { "_wxPrintQuality","_time_t",0},
602 { "_byte","_unsigned_char",0},
603 { "_long","_unsigned_long",0},
604 { "_long","_signed_long",0},
605 { "_size_t","_wxCoord",0},
606 { "_size_t","_wxPrintQuality",0},
607 { "_size_t","_time_t",0},
608 { "_size_t","_unsigned_int",0},
609 { "_size_t","_int",0},
610 { "_size_t","_wxWindowID",0},
611 { "_size_t","_uint",0},
612 { "_uint","_wxCoord",0},
613 { "_uint","_wxPrintQuality",0},
614 { "_uint","_time_t",0},
615 { "_uint","_size_t",0},
616 { "_uint","_unsigned_int",0},
618 { "_uint","_wxWindowID",0},
619 { "_wxChar","_char",0},
620 { "_char","_wxChar",0},
621 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
622 { "_EBool","_wxCoord",0},
623 { "_EBool","_wxPrintQuality",0},
624 { "_EBool","_signed_int",0},
625 { "_EBool","_int",0},
626 { "_EBool","_wxWindowID",0},
627 { "_unsigned_long","_long",0},
628 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
629 { "_signed_int","_wxCoord",0},
630 { "_signed_int","_wxPrintQuality",0},
631 { "_signed_int","_EBool",0},
632 { "_signed_int","_wxWindowID",0},
633 { "_signed_int","_int",0},
634 { "_WXTYPE","_wxDateTime_t",0},
635 { "_WXTYPE","_short",0},
636 { "_WXTYPE","_signed_short",0},
637 { "_WXTYPE","_unsigned_short",0},
638 { "_unsigned_short","_wxDateTime_t",0},
639 { "_unsigned_short","_WXTYPE",0},
640 { "_unsigned_short","_short",0},
641 { "_wxObject","_wxGLCanvas",SwigwxGLCanvasTowxObject
},
642 { "_wxObject","_wxGLContext",SwigwxGLContextTowxObject
},
643 { "_signed_short","_WXTYPE",0},
644 { "_signed_short","_short",0},
645 { "_unsigned_char","_byte",0},
646 { "_unsigned_int","_wxCoord",0},
647 { "_unsigned_int","_wxPrintQuality",0},
648 { "_unsigned_int","_time_t",0},
649 { "_unsigned_int","_size_t",0},
650 { "_unsigned_int","_uint",0},
651 { "_unsigned_int","_wxWindowID",0},
652 { "_unsigned_int","_int",0},
653 { "_short","_wxDateTime_t",0},
654 { "_short","_WXTYPE",0},
655 { "_short","_unsigned_short",0},
656 { "_short","_signed_short",0},
657 { "_wxWindowID","_wxCoord",0},
658 { "_wxWindowID","_wxPrintQuality",0},
659 { "_wxWindowID","_time_t",0},
660 { "_wxWindowID","_size_t",0},
661 { "_wxWindowID","_EBool",0},
662 { "_wxWindowID","_uint",0},
663 { "_wxWindowID","_int",0},
664 { "_wxWindowID","_signed_int",0},
665 { "_wxWindowID","_unsigned_int",0},
666 { "_int","_wxCoord",0},
667 { "_int","_wxPrintQuality",0},
668 { "_int","_time_t",0},
669 { "_int","_size_t",0},
670 { "_int","_EBool",0},
672 { "_int","_wxWindowID",0},
673 { "_int","_unsigned_int",0},
674 { "_int","_signed_int",0},
675 { "_wxDateTime_t","_unsigned_short",0},
676 { "_wxDateTime_t","_short",0},
677 { "_wxDateTime_t","_WXTYPE",0},
678 { "_time_t","_wxCoord",0},
679 { "_time_t","_wxPrintQuality",0},
680 { "_time_t","_unsigned_int",0},
681 { "_time_t","_int",0},
682 { "_time_t","_wxWindowID",0},
683 { "_time_t","_uint",0},
684 { "_time_t","_size_t",0},
685 { "_wxCoord","_int",0},
686 { "_wxCoord","_signed_int",0},
687 { "_wxCoord","_unsigned_int",0},
688 { "_wxCoord","_wxWindowID",0},
689 { "_wxCoord","_uint",0},
690 { "_wxCoord","_EBool",0},
691 { "_wxCoord","_size_t",0},
692 { "_wxCoord","_time_t",0},
693 { "_wxCoord","_wxPrintQuality",0},
694 { "_wxEvtHandler","_wxGLCanvas",SwigwxGLCanvasTowxEvtHandler
},
695 { "_wxWindow","_wxGLCanvas",SwigwxGLCanvasTowxWindow
},
698 static PyObject
*SWIG_globals
;
702 SWIGEXPORT(void) initglcanvasc() {
704 SWIG_globals
= SWIG_newvarlink();
705 m
= Py_InitModule("glcanvasc", glcanvascMethods
);
706 d
= PyModule_GetDict(m
);
707 PyDict_SetItemString(d
,"WX_GL_RGBA", PyInt_FromLong((long) WX_GL_RGBA
));
708 PyDict_SetItemString(d
,"WX_GL_BUFFER_SIZE", PyInt_FromLong((long) WX_GL_BUFFER_SIZE
));
709 PyDict_SetItemString(d
,"WX_GL_LEVEL", PyInt_FromLong((long) WX_GL_LEVEL
));
710 PyDict_SetItemString(d
,"WX_GL_DOUBLEBUFFER", PyInt_FromLong((long) WX_GL_DOUBLEBUFFER
));
711 PyDict_SetItemString(d
,"WX_GL_STEREO", PyInt_FromLong((long) WX_GL_STEREO
));
712 PyDict_SetItemString(d
,"WX_GL_AUX_BUFFERS", PyInt_FromLong((long) WX_GL_AUX_BUFFERS
));
713 PyDict_SetItemString(d
,"WX_GL_MIN_RED", PyInt_FromLong((long) WX_GL_MIN_RED
));
714 PyDict_SetItemString(d
,"WX_GL_MIN_GREEN", PyInt_FromLong((long) WX_GL_MIN_GREEN
));
715 PyDict_SetItemString(d
,"WX_GL_MIN_BLUE", PyInt_FromLong((long) WX_GL_MIN_BLUE
));
716 PyDict_SetItemString(d
,"WX_GL_MIN_ALPHA", PyInt_FromLong((long) WX_GL_MIN_ALPHA
));
717 PyDict_SetItemString(d
,"WX_GL_DEPTH_SIZE", PyInt_FromLong((long) WX_GL_DEPTH_SIZE
));
718 PyDict_SetItemString(d
,"WX_GL_STENCIL_SIZE", PyInt_FromLong((long) WX_GL_STENCIL_SIZE
));
719 PyDict_SetItemString(d
,"WX_GL_MIN_ACCUM_RED", PyInt_FromLong((long) WX_GL_MIN_ACCUM_RED
));
720 PyDict_SetItemString(d
,"WX_GL_MIN_ACCUM_GREEN", PyInt_FromLong((long) WX_GL_MIN_ACCUM_GREEN
));
721 PyDict_SetItemString(d
,"WX_GL_MIN_ACCUM_BLUE", PyInt_FromLong((long) WX_GL_MIN_ACCUM_BLUE
));
722 PyDict_SetItemString(d
,"WX_GL_MIN_ACCUM_ALPHA", PyInt_FromLong((long) WX_GL_MIN_ACCUM_ALPHA
));
725 wxClassInfo::CleanUpClasses();
726 wxClassInfo::InitializeClasses();
730 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
731 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);