2 * FILE : contrib/glcanvas/gtk/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
43 extern void SWIG_MakePtr(char *, void *, char *);
44 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
45 extern char *SWIG_GetPtr(char *, void **, char *);
46 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
47 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
48 extern PyObject
*SWIG_newvarlink(void);
52 #define SWIG_init initglcanvasc
54 #define SWIG_name "glcanvasc"
58 #include "myglcanvas.h"
60 #include <wx/glcanvas.h>
64 static PyObject
* l_output_helper(PyObject
* target
, PyObject
* o
) {
68 } else if (target
== Py_None
) {
72 if (!PyList_Check(target
)) {
74 target
= PyList_New(0);
75 PyList_Append(target
, o2
);
78 PyList_Append(target
,o
);
84 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
90 } else if (target
== Py_None
) {
94 if (!PyTuple_Check(target
)) {
96 target
= PyTuple_New(1);
97 PyTuple_SetItem(target
, 0, o2
);
100 PyTuple_SetItem(o3
, 0, o
);
103 target
= PySequence_Concat(o2
, o3
);
110 #if PYTHON_API_VERSION >= 1009
111 static char* wxStringErrorMsg
= "String or Unicode type required";
113 static char* wxStringErrorMsg
= "String type required";
118 static void *SwigwxGLContextTowxObject(void *ptr
) {
121 src
= (wxGLContext
*) ptr
;
122 dest
= (wxObject
*) src
;
123 return (void *) dest
;
126 #define new_wxGLContext(_swigarg0,_swigarg1,_swigarg2) (new wxGLContext(_swigarg0,_swigarg1,_swigarg2))
127 static PyObject
*_wrap_new_wxGLContext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
128 PyObject
* _resultobj
;
129 wxGLContext
* _result
;
132 wxPalette
* _arg2
= (wxPalette
*) &wxNullPalette
;
134 PyObject
* _argo1
= 0;
135 PyObject
* _argo2
= 0;
136 char *_kwnames
[] = { "isRGB","win","palette", NULL
};
140 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"iO|O:new_wxGLContext",_kwnames
,&tempbool0
,&_argo1
,&_argo2
))
142 _arg0
= (bool ) tempbool0
;
144 if (_argo1
== Py_None
) { _arg1
= NULL
; }
145 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxGLCanvas_p")) {
146 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxGLContext. Expected _wxGLCanvas_p.");
151 if (_argo2
== Py_None
) { _arg2
= NULL
; }
152 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxPalette_p")) {
153 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of new_wxGLContext. Expected _wxPalette_p.");
158 wxPy_BEGIN_ALLOW_THREADS
;
159 _result
= (wxGLContext
*)new_wxGLContext(_arg0
,_arg1
,*_arg2
);
161 wxPy_END_ALLOW_THREADS
;
163 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGLContext_p");
164 _resultobj
= Py_BuildValue("s",_ptemp
);
167 _resultobj
= Py_None
;
172 #define delete_wxGLContext(_swigobj) (delete _swigobj)
173 static PyObject
*_wrap_delete_wxGLContext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
174 PyObject
* _resultobj
;
176 PyObject
* _argo0
= 0;
177 char *_kwnames
[] = { "self", NULL
};
180 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxGLContext",_kwnames
,&_argo0
))
183 if (_argo0
== Py_None
) { _arg0
= NULL
; }
184 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLContext_p")) {
185 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxGLContext. Expected _wxGLContext_p.");
190 wxPy_BEGIN_ALLOW_THREADS
;
191 delete_wxGLContext(_arg0
);
193 wxPy_END_ALLOW_THREADS
;
194 } Py_INCREF(Py_None
);
195 _resultobj
= Py_None
;
199 #define wxGLContext_SetCurrent(_swigobj) (_swigobj->SetCurrent())
200 static PyObject
*_wrap_wxGLContext_SetCurrent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
201 PyObject
* _resultobj
;
203 PyObject
* _argo0
= 0;
204 char *_kwnames
[] = { "self", NULL
};
207 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGLContext_SetCurrent",_kwnames
,&_argo0
))
210 if (_argo0
== Py_None
) { _arg0
= NULL
; }
211 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLContext_p")) {
212 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLContext_SetCurrent. Expected _wxGLContext_p.");
217 wxPy_BEGIN_ALLOW_THREADS
;
218 wxGLContext_SetCurrent(_arg0
);
220 wxPy_END_ALLOW_THREADS
;
221 } Py_INCREF(Py_None
);
222 _resultobj
= Py_None
;
226 #define wxGLContext_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
227 static PyObject
*_wrap_wxGLContext_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
228 PyObject
* _resultobj
;
231 PyObject
* _argo0
= 0;
232 char *_kwnames
[] = { "self","colour", NULL
};
235 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Os:wxGLContext_SetColour",_kwnames
,&_argo0
,&_arg1
))
238 if (_argo0
== Py_None
) { _arg0
= NULL
; }
239 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLContext_p")) {
240 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLContext_SetColour. Expected _wxGLContext_p.");
245 wxPy_BEGIN_ALLOW_THREADS
;
246 wxGLContext_SetColour(_arg0
,_arg1
);
248 wxPy_END_ALLOW_THREADS
;
249 } Py_INCREF(Py_None
);
250 _resultobj
= Py_None
;
254 #define wxGLContext_SwapBuffers(_swigobj) (_swigobj->SwapBuffers())
255 static PyObject
*_wrap_wxGLContext_SwapBuffers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
256 PyObject
* _resultobj
;
258 PyObject
* _argo0
= 0;
259 char *_kwnames
[] = { "self", NULL
};
262 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGLContext_SwapBuffers",_kwnames
,&_argo0
))
265 if (_argo0
== Py_None
) { _arg0
= NULL
; }
266 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLContext_p")) {
267 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLContext_SwapBuffers. Expected _wxGLContext_p.");
272 wxPy_BEGIN_ALLOW_THREADS
;
273 wxGLContext_SwapBuffers(_arg0
);
275 wxPy_END_ALLOW_THREADS
;
276 } Py_INCREF(Py_None
);
277 _resultobj
= Py_None
;
281 #define wxGLContext_SetupPixelFormat(_swigobj) (_swigobj->SetupPixelFormat())
282 static PyObject
*_wrap_wxGLContext_SetupPixelFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
283 PyObject
* _resultobj
;
285 PyObject
* _argo0
= 0;
286 char *_kwnames
[] = { "self", NULL
};
289 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGLContext_SetupPixelFormat",_kwnames
,&_argo0
))
292 if (_argo0
== Py_None
) { _arg0
= NULL
; }
293 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLContext_p")) {
294 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLContext_SetupPixelFormat. Expected _wxGLContext_p.");
299 wxPy_BEGIN_ALLOW_THREADS
;
300 wxGLContext_SetupPixelFormat(_arg0
);
302 wxPy_END_ALLOW_THREADS
;
303 } Py_INCREF(Py_None
);
304 _resultobj
= Py_None
;
308 #define wxGLContext_SetupPalette(_swigobj,_swigarg0) (_swigobj->SetupPalette(_swigarg0))
309 static PyObject
*_wrap_wxGLContext_SetupPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
310 PyObject
* _resultobj
;
313 PyObject
* _argo0
= 0;
314 PyObject
* _argo1
= 0;
315 char *_kwnames
[] = { "self","palette", NULL
};
318 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxGLContext_SetupPalette",_kwnames
,&_argo0
,&_argo1
))
321 if (_argo0
== Py_None
) { _arg0
= NULL
; }
322 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLContext_p")) {
323 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLContext_SetupPalette. Expected _wxGLContext_p.");
328 if (_argo1
== Py_None
) { _arg1
= NULL
; }
329 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPalette_p")) {
330 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxGLContext_SetupPalette. Expected _wxPalette_p.");
335 wxPy_BEGIN_ALLOW_THREADS
;
336 wxGLContext_SetupPalette(_arg0
,*_arg1
);
338 wxPy_END_ALLOW_THREADS
;
339 } Py_INCREF(Py_None
);
340 _resultobj
= Py_None
;
344 #define wxGLContext_CreateDefaultPalette(_swigobj) (_swigobj->CreateDefaultPalette())
345 static PyObject
*_wrap_wxGLContext_CreateDefaultPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
346 PyObject
* _resultobj
;
349 PyObject
* _argo0
= 0;
350 char *_kwnames
[] = { "self", NULL
};
354 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGLContext_CreateDefaultPalette",_kwnames
,&_argo0
))
357 if (_argo0
== Py_None
) { _arg0
= NULL
; }
358 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLContext_p")) {
359 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLContext_CreateDefaultPalette. Expected _wxGLContext_p.");
364 wxPy_BEGIN_ALLOW_THREADS
;
365 _result
= new wxPalette (wxGLContext_CreateDefaultPalette(_arg0
));
367 wxPy_END_ALLOW_THREADS
;
368 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPalette_p");
369 _resultobj
= Py_BuildValue("s",_ptemp
);
373 #define wxGLContext_GetPalette(_swigobj) (_swigobj->GetPalette())
374 static PyObject
*_wrap_wxGLContext_GetPalette(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
375 PyObject
* _resultobj
;
378 PyObject
* _argo0
= 0;
379 char *_kwnames
[] = { "self", NULL
};
383 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGLContext_GetPalette",_kwnames
,&_argo0
))
386 if (_argo0
== Py_None
) { _arg0
= NULL
; }
387 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLContext_p")) {
388 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLContext_GetPalette. Expected _wxGLContext_p.");
393 wxPy_BEGIN_ALLOW_THREADS
;
394 _result
= (wxPalette
*)wxGLContext_GetPalette(_arg0
);
396 wxPy_END_ALLOW_THREADS
;
398 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPalette_p");
399 _resultobj
= Py_BuildValue("s",_ptemp
);
402 _resultobj
= Py_None
;
407 #define wxGLContext_GetWindow(_swigobj) (_swigobj->GetWindow())
408 static PyObject
*_wrap_wxGLContext_GetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
409 PyObject
* _resultobj
;
412 PyObject
* _argo0
= 0;
413 char *_kwnames
[] = { "self", NULL
};
416 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGLContext_GetWindow",_kwnames
,&_argo0
))
419 if (_argo0
== Py_None
) { _arg0
= NULL
; }
420 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLContext_p")) {
421 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLContext_GetWindow. Expected _wxGLContext_p.");
426 wxPy_BEGIN_ALLOW_THREADS
;
427 _result
= (wxWindow
*)wxGLContext_GetWindow(_arg0
);
429 wxPy_END_ALLOW_THREADS
;
430 }{ _resultobj
= wxPyMake_wxObject(_result
); }
434 static void *SwigwxGLCanvasTowxScrolledWindow(void *ptr
) {
436 wxScrolledWindow
*dest
;
437 src
= (wxGLCanvas
*) ptr
;
438 dest
= (wxScrolledWindow
*) src
;
439 return (void *) dest
;
442 static void *SwigwxGLCanvasTowxPanel(void *ptr
) {
445 src
= (wxGLCanvas
*) ptr
;
446 dest
= (wxPanel
*) src
;
447 return (void *) dest
;
450 static void *SwigwxGLCanvasTowxWindow(void *ptr
) {
453 src
= (wxGLCanvas
*) ptr
;
454 dest
= (wxWindow
*) src
;
455 return (void *) dest
;
458 static void *SwigwxGLCanvasTowxEvtHandler(void *ptr
) {
461 src
= (wxGLCanvas
*) ptr
;
462 dest
= (wxEvtHandler
*) src
;
463 return (void *) dest
;
466 static void *SwigwxGLCanvasTowxObject(void *ptr
) {
469 src
= (wxGLCanvas
*) ptr
;
470 dest
= (wxObject
*) src
;
471 return (void *) dest
;
474 #define new_wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
475 static PyObject
*_wrap_new_wxGLCanvas(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
476 PyObject
* _resultobj
;
477 wxGLCanvas
* _result
;
479 wxWindowID _arg1
= (wxWindowID
) -1;
480 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
481 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
482 long _arg4
= (long ) 0;
483 char * _arg5
= (char *) "GLCanvas";
484 int * _arg6
= (int *) NULL
;
485 wxPalette
* _arg7
= (wxPalette
*) &wxNullPalette
;
486 PyObject
* _argo0
= 0;
488 PyObject
* _obj2
= 0;
490 PyObject
* _obj3
= 0;
492 PyObject
* _obj6
= 0;
493 PyObject
* _argo7
= 0;
494 char *_kwnames
[] = { "parent","id","pos","size","style","name","attribList","palette", NULL
};
498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iOOlsOO:new_wxGLCanvas",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
,&_obj6
,&_argo7
))
501 if (_argo0
== Py_None
) { _arg0
= NULL
; }
502 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
503 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxGLCanvas. Expected _wxWindow_p.");
510 if (! wxPoint_helper(_obj2
, &_arg2
))
516 if (! wxSize_helper(_obj3
, &_arg3
))
522 if (PySequence_Check(_obj6
)) {
523 int size
= PyObject_Length(_obj6
);
524 temp1
= new int[size
+1]; // (int*)malloc((size + 1) * sizeof(int));
525 for (i
= 0; i
< size
; i
++) {
526 temp1
[i
] = PyInt_AsLong(PySequence_GetItem(_obj6
, i
));
533 if (_argo7
== Py_None
) { _arg7
= NULL
; }
534 else if (SWIG_GetPtrObj(_argo7
,(void **) &_arg7
,"_wxPalette_p")) {
535 PyErr_SetString(PyExc_TypeError
,"Type error in argument 8 of new_wxGLCanvas. Expected _wxPalette_p.");
540 wxPy_BEGIN_ALLOW_THREADS
;
541 _result
= (wxGLCanvas
*)new_wxGLCanvas(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
,_arg6
,*_arg7
);
543 wxPy_END_ALLOW_THREADS
;
545 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGLCanvas_p");
546 _resultobj
= Py_BuildValue("s",_ptemp
);
549 _resultobj
= Py_None
;
557 #define new_wxGLCanvasWithContext(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
558 static PyObject
*_wrap_new_wxGLCanvasWithContext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
559 PyObject
* _resultobj
;
560 wxGLCanvas
* _result
;
562 wxGLContext
* _arg1
= (wxGLContext
*) NULL
;
563 wxWindowID _arg2
= (wxWindowID
) -1;
564 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
565 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
566 long _arg5
= (long ) 0;
567 char * _arg6
= (char *) "GLCanvas";
568 int * _arg7
= (int *) NULL
;
569 wxPalette
* _arg8
= (wxPalette
*) &wxNullPalette
;
570 PyObject
* _argo0
= 0;
571 PyObject
* _argo1
= 0;
573 PyObject
* _obj3
= 0;
575 PyObject
* _obj4
= 0;
577 PyObject
* _obj7
= 0;
578 PyObject
* _argo8
= 0;
579 char *_kwnames
[] = { "parent","shared","id","pos","size","style","name","attribList","palette", NULL
};
583 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|OiOOlsOO:new_wxGLCanvasWithContext",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
,&_obj7
,&_argo8
))
586 if (_argo0
== Py_None
) { _arg0
= NULL
; }
587 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
588 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxGLCanvasWithContext. Expected _wxWindow_p.");
593 if (_argo1
== Py_None
) { _arg1
= NULL
; }
594 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxGLContext_p")) {
595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxGLCanvasWithContext. Expected _wxGLContext_p.");
602 if (! wxPoint_helper(_obj3
, &_arg3
))
608 if (! wxSize_helper(_obj4
, &_arg4
))
614 if (PySequence_Check(_obj7
)) {
615 int size
= PyObject_Length(_obj7
);
616 temp1
= new int[size
+1]; // (int*)malloc((size + 1) * sizeof(int));
617 for (i
= 0; i
< size
; i
++) {
618 temp1
[i
] = PyInt_AsLong(PySequence_GetItem(_obj7
, i
));
625 if (_argo8
== Py_None
) { _arg8
= NULL
; }
626 else if (SWIG_GetPtrObj(_argo8
,(void **) &_arg8
,"_wxPalette_p")) {
627 PyErr_SetString(PyExc_TypeError
,"Type error in argument 9 of new_wxGLCanvasWithContext. Expected _wxPalette_p.");
632 wxPy_BEGIN_ALLOW_THREADS
;
633 _result
= (wxGLCanvas
*)new_wxGLCanvasWithContext(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
,_arg7
,*_arg8
);
635 wxPy_END_ALLOW_THREADS
;
637 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGLCanvas_p");
638 _resultobj
= Py_BuildValue("s",_ptemp
);
641 _resultobj
= Py_None
;
649 #define wxGLCanvas_SetCurrent(_swigobj) (_swigobj->SetCurrent())
650 static PyObject
*_wrap_wxGLCanvas_SetCurrent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
651 PyObject
* _resultobj
;
653 PyObject
* _argo0
= 0;
654 char *_kwnames
[] = { "self", NULL
};
657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGLCanvas_SetCurrent",_kwnames
,&_argo0
))
660 if (_argo0
== Py_None
) { _arg0
= NULL
; }
661 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLCanvas_p")) {
662 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLCanvas_SetCurrent. Expected _wxGLCanvas_p.");
667 wxPy_BEGIN_ALLOW_THREADS
;
668 wxGLCanvas_SetCurrent(_arg0
);
670 wxPy_END_ALLOW_THREADS
;
671 } Py_INCREF(Py_None
);
672 _resultobj
= Py_None
;
676 #define wxGLCanvas_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
677 static PyObject
*_wrap_wxGLCanvas_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
678 PyObject
* _resultobj
;
681 PyObject
* _argo0
= 0;
682 char *_kwnames
[] = { "self","colour", NULL
};
685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Os:wxGLCanvas_SetColour",_kwnames
,&_argo0
,&_arg1
))
688 if (_argo0
== Py_None
) { _arg0
= NULL
; }
689 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLCanvas_p")) {
690 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLCanvas_SetColour. Expected _wxGLCanvas_p.");
695 wxPy_BEGIN_ALLOW_THREADS
;
696 wxGLCanvas_SetColour(_arg0
,_arg1
);
698 wxPy_END_ALLOW_THREADS
;
699 } Py_INCREF(Py_None
);
700 _resultobj
= Py_None
;
704 #define wxGLCanvas_SwapBuffers(_swigobj) (_swigobj->SwapBuffers())
705 static PyObject
*_wrap_wxGLCanvas_SwapBuffers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
706 PyObject
* _resultobj
;
708 PyObject
* _argo0
= 0;
709 char *_kwnames
[] = { "self", NULL
};
712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGLCanvas_SwapBuffers",_kwnames
,&_argo0
))
715 if (_argo0
== Py_None
) { _arg0
= NULL
; }
716 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLCanvas_p")) {
717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLCanvas_SwapBuffers. Expected _wxGLCanvas_p.");
722 wxPy_BEGIN_ALLOW_THREADS
;
723 wxGLCanvas_SwapBuffers(_arg0
);
725 wxPy_END_ALLOW_THREADS
;
726 } Py_INCREF(Py_None
);
727 _resultobj
= Py_None
;
731 #define wxGLCanvas_GetContext(_swigobj) (_swigobj->GetContext())
732 static PyObject
*_wrap_wxGLCanvas_GetContext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
733 PyObject
* _resultobj
;
734 wxGLContext
* _result
;
736 PyObject
* _argo0
= 0;
737 char *_kwnames
[] = { "self", NULL
};
741 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxGLCanvas_GetContext",_kwnames
,&_argo0
))
744 if (_argo0
== Py_None
) { _arg0
= NULL
; }
745 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxGLCanvas_p")) {
746 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxGLCanvas_GetContext. Expected _wxGLCanvas_p.");
751 wxPy_BEGIN_ALLOW_THREADS
;
752 _result
= (wxGLContext
*)wxGLCanvas_GetContext(_arg0
);
754 wxPy_END_ALLOW_THREADS
;
756 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGLContext_p");
757 _resultobj
= Py_BuildValue("s",_ptemp
);
760 _resultobj
= Py_None
;
765 static PyMethodDef glcanvascMethods
[] = {
766 { "wxGLCanvas_GetContext", (PyCFunction
) _wrap_wxGLCanvas_GetContext
, METH_VARARGS
| METH_KEYWORDS
},
767 { "wxGLCanvas_SwapBuffers", (PyCFunction
) _wrap_wxGLCanvas_SwapBuffers
, METH_VARARGS
| METH_KEYWORDS
},
768 { "wxGLCanvas_SetColour", (PyCFunction
) _wrap_wxGLCanvas_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
769 { "wxGLCanvas_SetCurrent", (PyCFunction
) _wrap_wxGLCanvas_SetCurrent
, METH_VARARGS
| METH_KEYWORDS
},
770 { "new_wxGLCanvasWithContext", (PyCFunction
) _wrap_new_wxGLCanvasWithContext
, METH_VARARGS
| METH_KEYWORDS
},
771 { "new_wxGLCanvas", (PyCFunction
) _wrap_new_wxGLCanvas
, METH_VARARGS
| METH_KEYWORDS
},
772 { "wxGLContext_GetWindow", (PyCFunction
) _wrap_wxGLContext_GetWindow
, METH_VARARGS
| METH_KEYWORDS
},
773 { "wxGLContext_GetPalette", (PyCFunction
) _wrap_wxGLContext_GetPalette
, METH_VARARGS
| METH_KEYWORDS
},
774 { "wxGLContext_CreateDefaultPalette", (PyCFunction
) _wrap_wxGLContext_CreateDefaultPalette
, METH_VARARGS
| METH_KEYWORDS
},
775 { "wxGLContext_SetupPalette", (PyCFunction
) _wrap_wxGLContext_SetupPalette
, METH_VARARGS
| METH_KEYWORDS
},
776 { "wxGLContext_SetupPixelFormat", (PyCFunction
) _wrap_wxGLContext_SetupPixelFormat
, METH_VARARGS
| METH_KEYWORDS
},
777 { "wxGLContext_SwapBuffers", (PyCFunction
) _wrap_wxGLContext_SwapBuffers
, METH_VARARGS
| METH_KEYWORDS
},
778 { "wxGLContext_SetColour", (PyCFunction
) _wrap_wxGLContext_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
779 { "wxGLContext_SetCurrent", (PyCFunction
) _wrap_wxGLContext_SetCurrent
, METH_VARARGS
| METH_KEYWORDS
},
780 { "delete_wxGLContext", (PyCFunction
) _wrap_delete_wxGLContext
, METH_VARARGS
| METH_KEYWORDS
},
781 { "new_wxGLContext", (PyCFunction
) _wrap_new_wxGLContext
, METH_VARARGS
| METH_KEYWORDS
},
788 * This table is used by the pointer type-checker
790 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
791 { "_signed_long","_long",0},
792 { "_wxPrintQuality","_wxCoord",0},
793 { "_wxPrintQuality","_int",0},
794 { "_wxPrintQuality","_signed_int",0},
795 { "_wxPrintQuality","_unsigned_int",0},
796 { "_wxPrintQuality","_wxWindowID",0},
797 { "_wxPrintQuality","_uint",0},
798 { "_wxPrintQuality","_EBool",0},
799 { "_wxPrintQuality","_size_t",0},
800 { "_wxPrintQuality","_time_t",0},
801 { "_class_wxEvtHandler","_class_wxGLCanvas",SwigwxGLCanvasTowxEvtHandler
},
802 { "_class_wxEvtHandler","_wxGLCanvas",SwigwxGLCanvasTowxEvtHandler
},
803 { "_byte","_unsigned_char",0},
804 { "_long","_unsigned_long",0},
805 { "_long","_signed_long",0},
806 { "_class_wxObject","_class_wxGLCanvas",SwigwxGLCanvasTowxObject
},
807 { "_class_wxObject","_wxGLCanvas",SwigwxGLCanvasTowxObject
},
808 { "_class_wxObject","_class_wxGLContext",SwigwxGLContextTowxObject
},
809 { "_class_wxObject","_wxGLContext",SwigwxGLContextTowxObject
},
810 { "_size_t","_wxCoord",0},
811 { "_size_t","_wxPrintQuality",0},
812 { "_size_t","_time_t",0},
813 { "_size_t","_unsigned_int",0},
814 { "_size_t","_int",0},
815 { "_size_t","_wxWindowID",0},
816 { "_size_t","_uint",0},
817 { "_wxPanel","_class_wxGLCanvas",SwigwxGLCanvasTowxPanel
},
818 { "_wxPanel","_wxGLCanvas",SwigwxGLCanvasTowxPanel
},
819 { "_uint","_wxCoord",0},
820 { "_uint","_wxPrintQuality",0},
821 { "_uint","_time_t",0},
822 { "_uint","_size_t",0},
823 { "_uint","_unsigned_int",0},
825 { "_uint","_wxWindowID",0},
826 { "_wxChar","_char",0},
827 { "_char","_wxChar",0},
828 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
829 { "_EBool","_wxCoord",0},
830 { "_EBool","_wxPrintQuality",0},
831 { "_EBool","_signed_int",0},
832 { "_EBool","_int",0},
833 { "_EBool","_wxWindowID",0},
834 { "_unsigned_long","_long",0},
835 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
836 { "_class_wxPanel","_class_wxGLCanvas",SwigwxGLCanvasTowxPanel
},
837 { "_class_wxPanel","_wxGLCanvas",SwigwxGLCanvasTowxPanel
},
838 { "_signed_int","_wxCoord",0},
839 { "_signed_int","_wxPrintQuality",0},
840 { "_signed_int","_EBool",0},
841 { "_signed_int","_wxWindowID",0},
842 { "_signed_int","_int",0},
843 { "_WXTYPE","_wxDateTime_t",0},
844 { "_WXTYPE","_short",0},
845 { "_WXTYPE","_signed_short",0},
846 { "_WXTYPE","_unsigned_short",0},
847 { "_unsigned_short","_wxDateTime_t",0},
848 { "_unsigned_short","_WXTYPE",0},
849 { "_unsigned_short","_short",0},
850 { "_class_wxWindow","_class_wxGLCanvas",SwigwxGLCanvasTowxWindow
},
851 { "_class_wxWindow","_wxGLCanvas",SwigwxGLCanvasTowxWindow
},
852 { "_wxObject","_class_wxGLCanvas",SwigwxGLCanvasTowxObject
},
853 { "_wxObject","_wxGLCanvas",SwigwxGLCanvasTowxObject
},
854 { "_wxObject","_class_wxGLContext",SwigwxGLContextTowxObject
},
855 { "_wxObject","_wxGLContext",SwigwxGLContextTowxObject
},
856 { "_signed_short","_WXTYPE",0},
857 { "_signed_short","_short",0},
858 { "_wxScrolledWindow","_class_wxGLCanvas",SwigwxGLCanvasTowxScrolledWindow
},
859 { "_wxScrolledWindow","_wxGLCanvas",SwigwxGLCanvasTowxScrolledWindow
},
860 { "_unsigned_char","_byte",0},
861 { "_unsigned_int","_wxCoord",0},
862 { "_unsigned_int","_wxPrintQuality",0},
863 { "_unsigned_int","_time_t",0},
864 { "_unsigned_int","_size_t",0},
865 { "_unsigned_int","_uint",0},
866 { "_unsigned_int","_wxWindowID",0},
867 { "_unsigned_int","_int",0},
868 { "_short","_wxDateTime_t",0},
869 { "_short","_WXTYPE",0},
870 { "_short","_unsigned_short",0},
871 { "_short","_signed_short",0},
872 { "_wxWindowID","_wxCoord",0},
873 { "_wxWindowID","_wxPrintQuality",0},
874 { "_wxWindowID","_time_t",0},
875 { "_wxWindowID","_size_t",0},
876 { "_wxWindowID","_EBool",0},
877 { "_wxWindowID","_uint",0},
878 { "_wxWindowID","_int",0},
879 { "_wxWindowID","_signed_int",0},
880 { "_wxWindowID","_unsigned_int",0},
881 { "_int","_wxCoord",0},
882 { "_int","_wxPrintQuality",0},
883 { "_int","_time_t",0},
884 { "_int","_size_t",0},
885 { "_int","_EBool",0},
887 { "_int","_wxWindowID",0},
888 { "_int","_unsigned_int",0},
889 { "_int","_signed_int",0},
890 { "_wxDateTime_t","_unsigned_short",0},
891 { "_wxDateTime_t","_short",0},
892 { "_wxDateTime_t","_WXTYPE",0},
893 { "_time_t","_wxCoord",0},
894 { "_time_t","_wxPrintQuality",0},
895 { "_time_t","_unsigned_int",0},
896 { "_time_t","_int",0},
897 { "_time_t","_wxWindowID",0},
898 { "_time_t","_uint",0},
899 { "_time_t","_size_t",0},
900 { "_wxCoord","_int",0},
901 { "_wxCoord","_signed_int",0},
902 { "_wxCoord","_unsigned_int",0},
903 { "_wxCoord","_wxWindowID",0},
904 { "_wxCoord","_uint",0},
905 { "_wxCoord","_EBool",0},
906 { "_wxCoord","_size_t",0},
907 { "_wxCoord","_time_t",0},
908 { "_wxCoord","_wxPrintQuality",0},
909 { "_wxEvtHandler","_class_wxGLCanvas",SwigwxGLCanvasTowxEvtHandler
},
910 { "_wxEvtHandler","_wxGLCanvas",SwigwxGLCanvasTowxEvtHandler
},
911 { "_class_wxScrolledWindow","_class_wxGLCanvas",SwigwxGLCanvasTowxScrolledWindow
},
912 { "_class_wxScrolledWindow","_wxGLCanvas",SwigwxGLCanvasTowxScrolledWindow
},
913 { "_wxWindow","_class_wxGLCanvas",SwigwxGLCanvasTowxWindow
},
914 { "_wxWindow","_wxGLCanvas",SwigwxGLCanvasTowxWindow
},
917 static PyObject
*SWIG_globals
;
921 SWIGEXPORT(void) initglcanvasc() {
923 SWIG_globals
= SWIG_newvarlink();
924 m
= Py_InitModule("glcanvasc", glcanvascMethods
);
925 d
= PyModule_GetDict(m
);
928 wxClassInfo::CleanUpClasses();
929 wxClassInfo::InitializeClasses();
933 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
934 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);