]>
Commit | Line | Data |
---|---|---|
325274bb | 1 | /* |
c368d904 | 2 | * FILE : contrib/glcanvas/msw/glcanvas.cpp |
325274bb RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
185d7c3e | 6 | * Version 1.1 (Build 883) |
325274bb RD |
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__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
325274bb | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
325274bb RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
325274bb RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
325274bb RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
185d7c3e | 44 | |
325274bb RD |
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 | ||
1e7ecb7b | 58 | #include "export.h" |
19cf4f80 | 59 | #include "myglcanvas.h" |
325274bb | 60 | |
325274bb RD |
61 | |
62 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
63 | PyObject* o2; | |
64 | PyObject* o3; | |
65 | ||
19cf4f80 | 66 | if (!target) { |
325274bb | 67 | target = o; |
19cf4f80 | 68 | } else if (target == Py_None) { |
325274bb RD |
69 | Py_DECREF(Py_None); |
70 | target = o; | |
19cf4f80 | 71 | } else { |
325274bb RD |
72 | if (!PyTuple_Check(target)) { |
73 | o2 = target; | |
74 | target = PyTuple_New(1); | |
75 | PyTuple_SetItem(target, 0, o2); | |
76 | } | |
19cf4f80 RD |
77 | o3 = PyTuple_New(1); |
78 | PyTuple_SetItem(o3, 0, o); | |
325274bb RD |
79 | |
80 | o2 = target; | |
19cf4f80 RD |
81 | target = PySequence_Concat(o2, o3); |
82 | Py_DECREF(o2); | |
325274bb RD |
83 | Py_DECREF(o3); |
84 | } | |
85 | return target; | |
86 | } | |
87 | ||
794c5cb1 RD |
88 | #if PYTHON_API_VERSION >= 1009 |
89 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
90 | #else | |
0122b7e3 | 91 | static char* wxStringErrorMsg = "String type required"; |
794c5cb1 | 92 | #endif |
d2103cf2 RD |
93 | #ifdef __cplusplus |
94 | extern "C" { | |
95 | #endif | |
9416aa89 RD |
96 | static void *SwigwxGLContextTowxObject(void *ptr) { |
97 | wxGLContext *src; | |
98 | wxObject *dest; | |
99 | src = (wxGLContext *) ptr; | |
100 | dest = (wxObject *) src; | |
101 | return (void *) dest; | |
102 | } | |
103 | ||
325274bb | 104 | #define new_wxGLContext(_swigarg0,_swigarg1,_swigarg2) (new wxGLContext(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 105 | static PyObject *_wrap_new_wxGLContext(PyObject *self, PyObject *args, PyObject *kwargs) { |
325274bb RD |
106 | PyObject * _resultobj; |
107 | wxGLContext * _result; | |
108 | bool _arg0; | |
109 | wxGLCanvas * _arg1; | |
110 | wxPalette * _arg2 = (wxPalette *) &wxNullPalette; | |
111 | int tempbool0; | |
112 | PyObject * _argo1 = 0; | |
113 | PyObject * _argo2 = 0; | |
efc5f224 | 114 | char *_kwnames[] = { "isRGB","win","palette", NULL }; |
325274bb RD |
115 | char _ptemp[128]; |
116 | ||
117 | self = self; | |
efc5f224 | 118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iO|O:new_wxGLContext",_kwnames,&tempbool0,&_argo1,&_argo2)) |
325274bb RD |
119 | return NULL; |
120 | _arg0 = (bool ) tempbool0; | |
121 | if (_argo1) { | |
122 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
123 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxGLCanvas_p")) { | |
124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxGLContext. Expected _wxGLCanvas_p."); | |
125 | return NULL; | |
126 | } | |
127 | } | |
128 | if (_argo2) { | |
129 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
130 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPalette_p")) { | |
131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxGLContext. Expected _wxPalette_p."); | |
132 | return NULL; | |
133 | } | |
134 | } | |
135 | { | |
136 | wxPy_BEGIN_ALLOW_THREADS; | |
137 | _result = (wxGLContext *)new_wxGLContext(_arg0,_arg1,*_arg2); | |
138 | ||
139 | wxPy_END_ALLOW_THREADS; | |
140 | } if (_result) { | |
141 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGLContext_p"); | |
142 | _resultobj = Py_BuildValue("s",_ptemp); | |
143 | } else { | |
144 | Py_INCREF(Py_None); | |
145 | _resultobj = Py_None; | |
146 | } | |
147 | return _resultobj; | |
148 | } | |
149 | ||
150 | #define delete_wxGLContext(_swigobj) (delete _swigobj) | |
efc5f224 | 151 | static PyObject *_wrap_delete_wxGLContext(PyObject *self, PyObject *args, PyObject *kwargs) { |
325274bb RD |
152 | PyObject * _resultobj; |
153 | wxGLContext * _arg0; | |
154 | PyObject * _argo0 = 0; | |
efc5f224 | 155 | char *_kwnames[] = { "self", NULL }; |
325274bb RD |
156 | |
157 | self = self; | |
efc5f224 | 158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGLContext",_kwnames,&_argo0)) |
325274bb RD |
159 | return NULL; |
160 | if (_argo0) { | |
161 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
162 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) { | |
163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGLContext. Expected _wxGLContext_p."); | |
164 | return NULL; | |
165 | } | |
166 | } | |
167 | { | |
168 | wxPy_BEGIN_ALLOW_THREADS; | |
169 | delete_wxGLContext(_arg0); | |
170 | ||
171 | wxPy_END_ALLOW_THREADS; | |
172 | } Py_INCREF(Py_None); | |
173 | _resultobj = Py_None; | |
174 | return _resultobj; | |
175 | } | |
176 | ||
177 | #define wxGLContext_SetCurrent(_swigobj) (_swigobj->SetCurrent()) | |
efc5f224 | 178 | static PyObject *_wrap_wxGLContext_SetCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { |
325274bb RD |
179 | PyObject * _resultobj; |
180 | wxGLContext * _arg0; | |
181 | PyObject * _argo0 = 0; | |
efc5f224 | 182 | char *_kwnames[] = { "self", NULL }; |
325274bb RD |
183 | |
184 | self = self; | |
efc5f224 | 185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLContext_SetCurrent",_kwnames,&_argo0)) |
325274bb RD |
186 | return NULL; |
187 | if (_argo0) { | |
188 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
189 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) { | |
190 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_SetCurrent. Expected _wxGLContext_p."); | |
191 | return NULL; | |
192 | } | |
193 | } | |
194 | { | |
195 | wxPy_BEGIN_ALLOW_THREADS; | |
196 | wxGLContext_SetCurrent(_arg0); | |
197 | ||
198 | wxPy_END_ALLOW_THREADS; | |
199 | } Py_INCREF(Py_None); | |
200 | _resultobj = Py_None; | |
201 | return _resultobj; | |
202 | } | |
203 | ||
204 | #define wxGLContext_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
efc5f224 | 205 | static PyObject *_wrap_wxGLContext_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
325274bb RD |
206 | PyObject * _resultobj; |
207 | wxGLContext * _arg0; | |
208 | char * _arg1; | |
209 | PyObject * _argo0 = 0; | |
efc5f224 | 210 | char *_kwnames[] = { "self","colour", NULL }; |
325274bb RD |
211 | |
212 | self = self; | |
efc5f224 | 213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxGLContext_SetColour",_kwnames,&_argo0,&_arg1)) |
325274bb RD |
214 | return NULL; |
215 | if (_argo0) { | |
216 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
217 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) { | |
218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_SetColour. Expected _wxGLContext_p."); | |
219 | return NULL; | |
220 | } | |
221 | } | |
222 | { | |
223 | wxPy_BEGIN_ALLOW_THREADS; | |
224 | wxGLContext_SetColour(_arg0,_arg1); | |
225 | ||
226 | wxPy_END_ALLOW_THREADS; | |
227 | } Py_INCREF(Py_None); | |
228 | _resultobj = Py_None; | |
229 | return _resultobj; | |
230 | } | |
231 | ||
232 | #define wxGLContext_SwapBuffers(_swigobj) (_swigobj->SwapBuffers()) | |
efc5f224 | 233 | static PyObject *_wrap_wxGLContext_SwapBuffers(PyObject *self, PyObject *args, PyObject *kwargs) { |
325274bb RD |
234 | PyObject * _resultobj; |
235 | wxGLContext * _arg0; | |
236 | PyObject * _argo0 = 0; | |
efc5f224 | 237 | char *_kwnames[] = { "self", NULL }; |
325274bb RD |
238 | |
239 | self = self; | |
efc5f224 | 240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLContext_SwapBuffers",_kwnames,&_argo0)) |
325274bb RD |
241 | return NULL; |
242 | if (_argo0) { | |
243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) { | |
245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_SwapBuffers. Expected _wxGLContext_p."); | |
246 | return NULL; | |
247 | } | |
248 | } | |
249 | { | |
250 | wxPy_BEGIN_ALLOW_THREADS; | |
251 | wxGLContext_SwapBuffers(_arg0); | |
252 | ||
253 | wxPy_END_ALLOW_THREADS; | |
254 | } Py_INCREF(Py_None); | |
255 | _resultobj = Py_None; | |
256 | return _resultobj; | |
257 | } | |
258 | ||
259 | #define wxGLContext_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
efc5f224 | 260 | static PyObject *_wrap_wxGLContext_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
325274bb RD |
261 | PyObject * _resultobj; |
262 | wxWindow * _result; | |
263 | wxGLContext * _arg0; | |
264 | PyObject * _argo0 = 0; | |
efc5f224 | 265 | char *_kwnames[] = { "self", NULL }; |
325274bb RD |
266 | |
267 | self = self; | |
efc5f224 | 268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLContext_GetWindow",_kwnames,&_argo0)) |
325274bb RD |
269 | return NULL; |
270 | if (_argo0) { | |
271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) { | |
273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_GetWindow. Expected _wxGLContext_p."); | |
274 | return NULL; | |
275 | } | |
276 | } | |
277 | { | |
278 | wxPy_BEGIN_ALLOW_THREADS; | |
279 | _result = (wxWindow *)wxGLContext_GetWindow(_arg0); | |
280 | ||
281 | wxPy_END_ALLOW_THREADS; | |
9416aa89 | 282 | }{ _resultobj = wxPyMake_wxObject(_result); } |
325274bb RD |
283 | return _resultobj; |
284 | } | |
285 | ||
286 | static void *SwigwxGLCanvasTowxScrolledWindow(void *ptr) { | |
287 | wxGLCanvas *src; | |
288 | wxScrolledWindow *dest; | |
289 | src = (wxGLCanvas *) ptr; | |
290 | dest = (wxScrolledWindow *) src; | |
291 | return (void *) dest; | |
292 | } | |
293 | ||
294 | static void *SwigwxGLCanvasTowxPanel(void *ptr) { | |
295 | wxGLCanvas *src; | |
296 | wxPanel *dest; | |
297 | src = (wxGLCanvas *) ptr; | |
298 | dest = (wxPanel *) src; | |
299 | return (void *) dest; | |
300 | } | |
301 | ||
302 | static void *SwigwxGLCanvasTowxWindow(void *ptr) { | |
303 | wxGLCanvas *src; | |
304 | wxWindow *dest; | |
305 | src = (wxGLCanvas *) ptr; | |
306 | dest = (wxWindow *) src; | |
307 | return (void *) dest; | |
308 | } | |
309 | ||
310 | static void *SwigwxGLCanvasTowxEvtHandler(void *ptr) { | |
311 | wxGLCanvas *src; | |
312 | wxEvtHandler *dest; | |
313 | src = (wxGLCanvas *) ptr; | |
314 | dest = (wxEvtHandler *) src; | |
315 | return (void *) dest; | |
316 | } | |
317 | ||
9416aa89 RD |
318 | static void *SwigwxGLCanvasTowxObject(void *ptr) { |
319 | wxGLCanvas *src; | |
320 | wxObject *dest; | |
321 | src = (wxGLCanvas *) ptr; | |
322 | dest = (wxObject *) src; | |
323 | return (void *) dest; | |
324 | } | |
325 | ||
325274bb | 326 | #define new_wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
efc5f224 | 327 | static PyObject *_wrap_new_wxGLCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { |
325274bb RD |
328 | PyObject * _resultobj; |
329 | wxGLCanvas * _result; | |
330 | wxWindow * _arg0; | |
331 | wxWindowID _arg1 = (wxWindowID ) -1; | |
1e7ecb7b RD |
332 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
333 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
325274bb RD |
334 | long _arg4 = (long ) 0; |
335 | char * _arg5 = (char *) "GLCanvas"; | |
c368d904 | 336 | int * _arg6 = (int *) NULL; |
325274bb RD |
337 | wxPalette * _arg7 = (wxPalette *) &wxNullPalette; |
338 | PyObject * _argo0 = 0; | |
d2103cf2 RD |
339 | wxPoint temp; |
340 | PyObject * _obj2 = 0; | |
341 | wxSize temp0; | |
342 | PyObject * _obj3 = 0; | |
c368d904 RD |
343 | int * temp1; |
344 | PyObject * _obj6 = 0; | |
325274bb | 345 | PyObject * _argo7 = 0; |
efc5f224 | 346 | char *_kwnames[] = { "parent","id","pos","size","style","name","attribList","palette", NULL }; |
325274bb RD |
347 | char _ptemp[128]; |
348 | ||
349 | self = self; | |
c368d904 | 350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlsOO:new_wxGLCanvas",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5,&_obj6,&_argo7)) |
325274bb RD |
351 | return NULL; |
352 | if (_argo0) { | |
353 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
354 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
355 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGLCanvas. Expected _wxWindow_p."); | |
356 | return NULL; | |
357 | } | |
358 | } | |
d2103cf2 RD |
359 | if (_obj2) |
360 | { | |
361 | _arg2 = &temp; | |
362 | if (! wxPoint_helper(_obj2, &_arg2)) | |
325274bb | 363 | return NULL; |
d2103cf2 RD |
364 | } |
365 | if (_obj3) | |
366 | { | |
367 | _arg3 = &temp0; | |
368 | if (! wxSize_helper(_obj3, &_arg3)) | |
325274bb | 369 | return NULL; |
d2103cf2 | 370 | } |
c368d904 RD |
371 | if (_obj6) |
372 | { | |
373 | int i; | |
374 | if (PySequence_Check(_obj6)) { | |
375 | int size = PyObject_Length(_obj6); | |
376 | temp1 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int)); | |
377 | for (i = 0; i < size; i++) { | |
378 | temp1[i] = PyInt_AsLong(PySequence_GetItem(_obj6, i)); | |
325274bb | 379 | } |
c368d904 RD |
380 | temp1[size] = 0; |
381 | _arg6 = temp1; | |
325274bb | 382 | } |
c368d904 | 383 | } |
325274bb RD |
384 | if (_argo7) { |
385 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
386 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxPalette_p")) { | |
387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxGLCanvas. Expected _wxPalette_p."); | |
388 | return NULL; | |
389 | } | |
390 | } | |
391 | { | |
392 | wxPy_BEGIN_ALLOW_THREADS; | |
393 | _result = (wxGLCanvas *)new_wxGLCanvas(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7); | |
394 | ||
395 | wxPy_END_ALLOW_THREADS; | |
396 | } if (_result) { | |
397 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGLCanvas_p"); | |
398 | _resultobj = Py_BuildValue("s",_ptemp); | |
399 | } else { | |
400 | Py_INCREF(Py_None); | |
401 | _resultobj = Py_None; | |
402 | } | |
c368d904 RD |
403 | { |
404 | delete [] _arg6; | |
405 | } | |
325274bb RD |
406 | return _resultobj; |
407 | } | |
408 | ||
0122b7e3 RD |
409 | #define new_wxGLCanvasWithContext(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
410 | static PyObject *_wrap_new_wxGLCanvasWithContext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
411 | PyObject * _resultobj; | |
412 | wxGLCanvas * _result; | |
413 | wxWindow * _arg0; | |
414 | wxGLContext * _arg1 = (wxGLContext *) NULL; | |
415 | wxWindowID _arg2 = (wxWindowID ) -1; | |
416 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
417 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
418 | long _arg5 = (long ) 0; | |
419 | char * _arg6 = (char *) "GLCanvas"; | |
420 | int * _arg7 = (int *) NULL; | |
421 | wxPalette * _arg8 = (wxPalette *) &wxNullPalette; | |
422 | PyObject * _argo0 = 0; | |
423 | PyObject * _argo1 = 0; | |
424 | wxPoint temp; | |
425 | PyObject * _obj3 = 0; | |
426 | wxSize temp0; | |
427 | PyObject * _obj4 = 0; | |
428 | int * temp1; | |
429 | PyObject * _obj7 = 0; | |
430 | PyObject * _argo8 = 0; | |
431 | char *_kwnames[] = { "parent","shared","id","pos","size","style","name","attribList","palette", NULL }; | |
432 | char _ptemp[128]; | |
433 | ||
434 | self = self; | |
435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OiOOlsOO:new_wxGLCanvasWithContext",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6,&_obj7,&_argo8)) | |
436 | return NULL; | |
437 | if (_argo0) { | |
438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGLCanvasWithContext. Expected _wxWindow_p."); | |
441 | return NULL; | |
442 | } | |
443 | } | |
444 | if (_argo1) { | |
445 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
446 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxGLContext_p")) { | |
447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxGLCanvasWithContext. Expected _wxGLContext_p."); | |
448 | return NULL; | |
449 | } | |
450 | } | |
451 | if (_obj3) | |
452 | { | |
453 | _arg3 = &temp; | |
454 | if (! wxPoint_helper(_obj3, &_arg3)) | |
455 | return NULL; | |
456 | } | |
457 | if (_obj4) | |
458 | { | |
459 | _arg4 = &temp0; | |
460 | if (! wxSize_helper(_obj4, &_arg4)) | |
461 | return NULL; | |
462 | } | |
463 | if (_obj7) | |
464 | { | |
465 | int i; | |
466 | if (PySequence_Check(_obj7)) { | |
467 | int size = PyObject_Length(_obj7); | |
468 | temp1 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int)); | |
469 | for (i = 0; i < size; i++) { | |
470 | temp1[i] = PyInt_AsLong(PySequence_GetItem(_obj7, i)); | |
471 | } | |
472 | temp1[size] = 0; | |
473 | _arg7 = temp1; | |
474 | } | |
475 | } | |
476 | if (_argo8) { | |
477 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
478 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxPalette_p")) { | |
479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxGLCanvasWithContext. Expected _wxPalette_p."); | |
480 | return NULL; | |
481 | } | |
482 | } | |
483 | { | |
484 | wxPy_BEGIN_ALLOW_THREADS; | |
485 | _result = (wxGLCanvas *)new_wxGLCanvasWithContext(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,*_arg8); | |
486 | ||
487 | wxPy_END_ALLOW_THREADS; | |
488 | } if (_result) { | |
489 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGLCanvas_p"); | |
490 | _resultobj = Py_BuildValue("s",_ptemp); | |
491 | } else { | |
492 | Py_INCREF(Py_None); | |
493 | _resultobj = Py_None; | |
494 | } | |
495 | { | |
496 | delete [] _arg7; | |
497 | } | |
498 | return _resultobj; | |
499 | } | |
500 | ||
501 | #define wxGLCanvas_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
502 | static PyObject *_wrap_wxGLCanvas_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
503 | PyObject * _resultobj; | |
504 | bool _result; | |
505 | wxGLCanvas * _arg0; | |
506 | wxWindow * _arg1; | |
507 | wxWindowID _arg2; | |
508 | wxPoint * _arg3; | |
509 | wxSize * _arg4; | |
510 | long _arg5; | |
511 | wxString * _arg6; | |
512 | PyObject * _argo0 = 0; | |
513 | PyObject * _argo1 = 0; | |
514 | wxPoint temp; | |
515 | PyObject * _obj3 = 0; | |
516 | wxSize temp0; | |
517 | PyObject * _obj4 = 0; | |
518 | PyObject * _obj6 = 0; | |
519 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
520 | ||
521 | self = self; | |
522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiOOlO:wxGLCanvas_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) | |
523 | return NULL; | |
524 | if (_argo0) { | |
525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLCanvas_p")) { | |
527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLCanvas_Create. Expected _wxGLCanvas_p."); | |
528 | return NULL; | |
529 | } | |
530 | } | |
531 | if (_argo1) { | |
532 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
533 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGLCanvas_Create. Expected _wxWindow_p."); | |
535 | return NULL; | |
536 | } | |
537 | } | |
538 | { | |
539 | _arg3 = &temp; | |
540 | if (! wxPoint_helper(_obj3, &_arg3)) | |
541 | return NULL; | |
542 | } | |
543 | { | |
544 | _arg4 = &temp0; | |
545 | if (! wxSize_helper(_obj4, &_arg4)) | |
546 | return NULL; | |
547 | } | |
548 | { | |
549 | #if PYTHON_API_VERSION >= 1009 | |
550 | char* tmpPtr; int tmpSize; | |
551 | if (!PyString_Check(_obj6) && !PyUnicode_Check(_obj6)) { | |
552 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
553 | return NULL; | |
554 | } | |
555 | if (PyString_AsStringAndSize(_obj6, &tmpPtr, &tmpSize) == -1) | |
556 | return NULL; | |
557 | _arg6 = new wxString(tmpPtr, tmpSize); | |
558 | #else | |
559 | if (!PyString_Check(_obj6)) { | |
560 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
561 | return NULL; | |
562 | } | |
563 | _arg6 = new wxString(PyString_AS_STRING(_obj6), PyString_GET_SIZE(_obj6)); | |
564 | #endif | |
565 | } | |
566 | { | |
567 | wxPy_BEGIN_ALLOW_THREADS; | |
568 | _result = (bool )wxGLCanvas_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); | |
569 | ||
570 | wxPy_END_ALLOW_THREADS; | |
571 | } _resultobj = Py_BuildValue("i",_result); | |
572 | { | |
573 | if (_obj6) | |
574 | delete _arg6; | |
575 | } | |
576 | return _resultobj; | |
577 | } | |
578 | ||
325274bb | 579 | #define wxGLCanvas_SetCurrent(_swigobj) (_swigobj->SetCurrent()) |
efc5f224 | 580 | static PyObject *_wrap_wxGLCanvas_SetCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { |
325274bb RD |
581 | PyObject * _resultobj; |
582 | wxGLCanvas * _arg0; | |
583 | PyObject * _argo0 = 0; | |
efc5f224 | 584 | char *_kwnames[] = { "self", NULL }; |
325274bb RD |
585 | |
586 | self = self; | |
efc5f224 | 587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLCanvas_SetCurrent",_kwnames,&_argo0)) |
325274bb RD |
588 | return NULL; |
589 | if (_argo0) { | |
590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLCanvas_p")) { | |
592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLCanvas_SetCurrent. Expected _wxGLCanvas_p."); | |
593 | return NULL; | |
594 | } | |
595 | } | |
596 | { | |
597 | wxPy_BEGIN_ALLOW_THREADS; | |
598 | wxGLCanvas_SetCurrent(_arg0); | |
599 | ||
600 | wxPy_END_ALLOW_THREADS; | |
601 | } Py_INCREF(Py_None); | |
602 | _resultobj = Py_None; | |
603 | return _resultobj; | |
604 | } | |
605 | ||
606 | #define wxGLCanvas_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
efc5f224 | 607 | static PyObject *_wrap_wxGLCanvas_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
325274bb RD |
608 | PyObject * _resultobj; |
609 | wxGLCanvas * _arg0; | |
610 | char * _arg1; | |
611 | PyObject * _argo0 = 0; | |
efc5f224 | 612 | char *_kwnames[] = { "self","colour", NULL }; |
325274bb RD |
613 | |
614 | self = self; | |
efc5f224 | 615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxGLCanvas_SetColour",_kwnames,&_argo0,&_arg1)) |
325274bb RD |
616 | return NULL; |
617 | if (_argo0) { | |
618 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
619 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLCanvas_p")) { | |
620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLCanvas_SetColour. Expected _wxGLCanvas_p."); | |
621 | return NULL; | |
622 | } | |
623 | } | |
624 | { | |
625 | wxPy_BEGIN_ALLOW_THREADS; | |
626 | wxGLCanvas_SetColour(_arg0,_arg1); | |
627 | ||
628 | wxPy_END_ALLOW_THREADS; | |
629 | } Py_INCREF(Py_None); | |
630 | _resultobj = Py_None; | |
631 | return _resultobj; | |
632 | } | |
633 | ||
634 | #define wxGLCanvas_SwapBuffers(_swigobj) (_swigobj->SwapBuffers()) | |
efc5f224 | 635 | static PyObject *_wrap_wxGLCanvas_SwapBuffers(PyObject *self, PyObject *args, PyObject *kwargs) { |
325274bb RD |
636 | PyObject * _resultobj; |
637 | wxGLCanvas * _arg0; | |
638 | PyObject * _argo0 = 0; | |
efc5f224 | 639 | char *_kwnames[] = { "self", NULL }; |
325274bb RD |
640 | |
641 | self = self; | |
efc5f224 | 642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLCanvas_SwapBuffers",_kwnames,&_argo0)) |
325274bb RD |
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_SwapBuffers. Expected _wxGLCanvas_p."); | |
648 | return NULL; | |
649 | } | |
650 | } | |
651 | { | |
652 | wxPy_BEGIN_ALLOW_THREADS; | |
653 | wxGLCanvas_SwapBuffers(_arg0); | |
654 | ||
655 | wxPy_END_ALLOW_THREADS; | |
656 | } Py_INCREF(Py_None); | |
657 | _resultobj = Py_None; | |
658 | return _resultobj; | |
659 | } | |
660 | ||
661 | #define wxGLCanvas_GetContext(_swigobj) (_swigobj->GetContext()) | |
efc5f224 | 662 | static PyObject *_wrap_wxGLCanvas_GetContext(PyObject *self, PyObject *args, PyObject *kwargs) { |
325274bb RD |
663 | PyObject * _resultobj; |
664 | wxGLContext * _result; | |
665 | wxGLCanvas * _arg0; | |
666 | PyObject * _argo0 = 0; | |
efc5f224 | 667 | char *_kwnames[] = { "self", NULL }; |
325274bb RD |
668 | char _ptemp[128]; |
669 | ||
670 | self = self; | |
efc5f224 | 671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLCanvas_GetContext",_kwnames,&_argo0)) |
325274bb RD |
672 | return NULL; |
673 | if (_argo0) { | |
674 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
675 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLCanvas_p")) { | |
676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLCanvas_GetContext. Expected _wxGLCanvas_p."); | |
677 | return NULL; | |
678 | } | |
679 | } | |
680 | { | |
681 | wxPy_BEGIN_ALLOW_THREADS; | |
682 | _result = (wxGLContext *)wxGLCanvas_GetContext(_arg0); | |
683 | ||
684 | wxPy_END_ALLOW_THREADS; | |
685 | } if (_result) { | |
686 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGLContext_p"); | |
687 | _resultobj = Py_BuildValue("s",_ptemp); | |
688 | } else { | |
689 | Py_INCREF(Py_None); | |
690 | _resultobj = Py_None; | |
691 | } | |
692 | return _resultobj; | |
693 | } | |
694 | ||
0122b7e3 RD |
695 | #define wxGLCanvas_SetupPixelFormat(_swigobj,_swigarg0) (_swigobj->SetupPixelFormat(_swigarg0)) |
696 | static PyObject *_wrap_wxGLCanvas_SetupPixelFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
697 | PyObject * _resultobj; | |
698 | wxGLCanvas * _arg0; | |
699 | int * _arg1 = (int *) NULL; | |
700 | PyObject * _argo0 = 0; | |
701 | int * temp; | |
702 | PyObject * _obj1 = 0; | |
703 | char *_kwnames[] = { "self","attribList", NULL }; | |
704 | ||
705 | self = self; | |
706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxGLCanvas_SetupPixelFormat",_kwnames,&_argo0,&_obj1)) | |
707 | return NULL; | |
708 | if (_argo0) { | |
709 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
710 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLCanvas_p")) { | |
711 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLCanvas_SetupPixelFormat. Expected _wxGLCanvas_p."); | |
712 | return NULL; | |
713 | } | |
714 | } | |
715 | if (_obj1) | |
716 | { | |
717 | int i; | |
718 | if (PySequence_Check(_obj1)) { | |
719 | int size = PyObject_Length(_obj1); | |
720 | temp = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int)); | |
721 | for (i = 0; i < size; i++) { | |
722 | temp[i] = PyInt_AsLong(PySequence_GetItem(_obj1, i)); | |
723 | } | |
724 | temp[size] = 0; | |
725 | _arg1 = temp; | |
726 | } | |
727 | } | |
728 | { | |
729 | wxPy_BEGIN_ALLOW_THREADS; | |
730 | wxGLCanvas_SetupPixelFormat(_arg0,_arg1); | |
731 | ||
732 | wxPy_END_ALLOW_THREADS; | |
733 | } Py_INCREF(Py_None); | |
734 | _resultobj = Py_None; | |
735 | { | |
736 | delete [] _arg1; | |
737 | } | |
738 | return _resultobj; | |
739 | } | |
740 | ||
741 | #define wxGLCanvas_SetupPalette(_swigobj,_swigarg0) (_swigobj->SetupPalette(_swigarg0)) | |
742 | static PyObject *_wrap_wxGLCanvas_SetupPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
743 | PyObject * _resultobj; | |
744 | wxGLCanvas * _arg0; | |
745 | wxPalette * _arg1; | |
746 | PyObject * _argo0 = 0; | |
747 | PyObject * _argo1 = 0; | |
748 | char *_kwnames[] = { "self","palette", NULL }; | |
749 | ||
750 | self = self; | |
751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGLCanvas_SetupPalette",_kwnames,&_argo0,&_argo1)) | |
752 | return NULL; | |
753 | if (_argo0) { | |
754 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
755 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLCanvas_p")) { | |
756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLCanvas_SetupPalette. Expected _wxGLCanvas_p."); | |
757 | return NULL; | |
758 | } | |
759 | } | |
760 | if (_argo1) { | |
761 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
762 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGLCanvas_SetupPalette. Expected _wxPalette_p."); | |
764 | return NULL; | |
765 | } | |
766 | } | |
767 | { | |
768 | wxPy_BEGIN_ALLOW_THREADS; | |
769 | wxGLCanvas_SetupPalette(_arg0,*_arg1); | |
770 | ||
771 | wxPy_END_ALLOW_THREADS; | |
772 | } Py_INCREF(Py_None); | |
773 | _resultobj = Py_None; | |
774 | return _resultobj; | |
775 | } | |
776 | ||
777 | #define wxGLCanvas_CreateDefaultPalette(_swigobj) (_swigobj->CreateDefaultPalette()) | |
778 | static PyObject *_wrap_wxGLCanvas_CreateDefaultPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
779 | PyObject * _resultobj; | |
780 | wxPalette * _result; | |
781 | wxGLCanvas * _arg0; | |
782 | PyObject * _argo0 = 0; | |
783 | char *_kwnames[] = { "self", NULL }; | |
784 | char _ptemp[128]; | |
785 | ||
786 | self = self; | |
787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLCanvas_CreateDefaultPalette",_kwnames,&_argo0)) | |
788 | return NULL; | |
789 | if (_argo0) { | |
790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLCanvas_p")) { | |
792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLCanvas_CreateDefaultPalette. Expected _wxGLCanvas_p."); | |
793 | return NULL; | |
794 | } | |
795 | } | |
796 | { | |
797 | wxPy_BEGIN_ALLOW_THREADS; | |
798 | _result = new wxPalette (wxGLCanvas_CreateDefaultPalette(_arg0)); | |
799 | ||
800 | wxPy_END_ALLOW_THREADS; | |
801 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPalette_p"); | |
802 | _resultobj = Py_BuildValue("s",_ptemp); | |
803 | return _resultobj; | |
804 | } | |
805 | ||
806 | #define wxGLCanvas_GetPalette(_swigobj) (_swigobj->GetPalette()) | |
807 | static PyObject *_wrap_wxGLCanvas_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
808 | PyObject * _resultobj; | |
809 | wxPalette * _result; | |
810 | wxGLCanvas * _arg0; | |
811 | PyObject * _argo0 = 0; | |
812 | char *_kwnames[] = { "self", NULL }; | |
813 | char _ptemp[128]; | |
814 | ||
815 | self = self; | |
816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLCanvas_GetPalette",_kwnames,&_argo0)) | |
817 | return NULL; | |
818 | if (_argo0) { | |
819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLCanvas_p")) { | |
821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLCanvas_GetPalette. Expected _wxGLCanvas_p."); | |
822 | return NULL; | |
823 | } | |
824 | } | |
825 | { | |
826 | wxPy_BEGIN_ALLOW_THREADS; | |
827 | _result = (wxPalette *)wxGLCanvas_GetPalette(_arg0); | |
828 | ||
829 | wxPy_END_ALLOW_THREADS; | |
830 | } if (_result) { | |
831 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
832 | _resultobj = Py_BuildValue("s",_ptemp); | |
833 | } else { | |
834 | Py_INCREF(Py_None); | |
835 | _resultobj = Py_None; | |
836 | } | |
837 | return _resultobj; | |
838 | } | |
839 | ||
325274bb | 840 | static PyMethodDef glcanvascMethods[] = { |
0122b7e3 RD |
841 | { "wxGLCanvas_GetPalette", (PyCFunction) _wrap_wxGLCanvas_GetPalette, METH_VARARGS | METH_KEYWORDS }, |
842 | { "wxGLCanvas_CreateDefaultPalette", (PyCFunction) _wrap_wxGLCanvas_CreateDefaultPalette, METH_VARARGS | METH_KEYWORDS }, | |
843 | { "wxGLCanvas_SetupPalette", (PyCFunction) _wrap_wxGLCanvas_SetupPalette, METH_VARARGS | METH_KEYWORDS }, | |
844 | { "wxGLCanvas_SetupPixelFormat", (PyCFunction) _wrap_wxGLCanvas_SetupPixelFormat, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
845 | { "wxGLCanvas_GetContext", (PyCFunction) _wrap_wxGLCanvas_GetContext, METH_VARARGS | METH_KEYWORDS }, |
846 | { "wxGLCanvas_SwapBuffers", (PyCFunction) _wrap_wxGLCanvas_SwapBuffers, METH_VARARGS | METH_KEYWORDS }, | |
847 | { "wxGLCanvas_SetColour", (PyCFunction) _wrap_wxGLCanvas_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
848 | { "wxGLCanvas_SetCurrent", (PyCFunction) _wrap_wxGLCanvas_SetCurrent, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 RD |
849 | { "wxGLCanvas_Create", (PyCFunction) _wrap_wxGLCanvas_Create, METH_VARARGS | METH_KEYWORDS }, |
850 | { "new_wxGLCanvasWithContext", (PyCFunction) _wrap_new_wxGLCanvasWithContext, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
851 | { "new_wxGLCanvas", (PyCFunction) _wrap_new_wxGLCanvas, METH_VARARGS | METH_KEYWORDS }, |
852 | { "wxGLContext_GetWindow", (PyCFunction) _wrap_wxGLContext_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
853 | { "wxGLContext_SwapBuffers", (PyCFunction) _wrap_wxGLContext_SwapBuffers, METH_VARARGS | METH_KEYWORDS }, | |
854 | { "wxGLContext_SetColour", (PyCFunction) _wrap_wxGLContext_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
855 | { "wxGLContext_SetCurrent", (PyCFunction) _wrap_wxGLContext_SetCurrent, METH_VARARGS | METH_KEYWORDS }, | |
856 | { "delete_wxGLContext", (PyCFunction) _wrap_delete_wxGLContext, METH_VARARGS | METH_KEYWORDS }, | |
857 | { "new_wxGLContext", (PyCFunction) _wrap_new_wxGLContext, METH_VARARGS | METH_KEYWORDS }, | |
325274bb RD |
858 | { NULL, NULL } |
859 | }; | |
860 | #ifdef __cplusplus | |
861 | } | |
862 | #endif | |
863 | /* | |
864 | * This table is used by the pointer type-checker | |
865 | */ | |
866 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
325274bb | 867 | { "_signed_long","_long",0}, |
d2103cf2 | 868 | { "_wxPrintQuality","_wxCoord",0}, |
325274bb RD |
869 | { "_wxPrintQuality","_int",0}, |
870 | { "_wxPrintQuality","_signed_int",0}, | |
871 | { "_wxPrintQuality","_unsigned_int",0}, | |
872 | { "_wxPrintQuality","_wxWindowID",0}, | |
873 | { "_wxPrintQuality","_uint",0}, | |
874 | { "_wxPrintQuality","_EBool",0}, | |
875 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 876 | { "_wxPrintQuality","_time_t",0}, |
325274bb | 877 | { "_byte","_unsigned_char",0}, |
325274bb RD |
878 | { "_long","_unsigned_long",0}, |
879 | { "_long","_signed_long",0}, | |
d2103cf2 | 880 | { "_size_t","_wxCoord",0}, |
325274bb | 881 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 882 | { "_size_t","_time_t",0}, |
325274bb RD |
883 | { "_size_t","_unsigned_int",0}, |
884 | { "_size_t","_int",0}, | |
885 | { "_size_t","_wxWindowID",0}, | |
886 | { "_size_t","_uint",0}, | |
325274bb | 887 | { "_wxPanel","_wxGLCanvas",SwigwxGLCanvasTowxPanel}, |
d2103cf2 | 888 | { "_uint","_wxCoord",0}, |
325274bb | 889 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 890 | { "_uint","_time_t",0}, |
325274bb RD |
891 | { "_uint","_size_t",0}, |
892 | { "_uint","_unsigned_int",0}, | |
893 | { "_uint","_int",0}, | |
894 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 895 | { "_wxChar","_char",0}, |
f6bcfd97 | 896 | { "_char","_wxChar",0}, |
65fe3842 | 897 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
d2103cf2 | 898 | { "_EBool","_wxCoord",0}, |
325274bb RD |
899 | { "_EBool","_wxPrintQuality",0}, |
900 | { "_EBool","_signed_int",0}, | |
901 | { "_EBool","_int",0}, | |
902 | { "_EBool","_wxWindowID",0}, | |
325274bb | 903 | { "_unsigned_long","_long",0}, |
65fe3842 | 904 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
d2103cf2 | 905 | { "_signed_int","_wxCoord",0}, |
325274bb RD |
906 | { "_signed_int","_wxPrintQuality",0}, |
907 | { "_signed_int","_EBool",0}, | |
908 | { "_signed_int","_wxWindowID",0}, | |
909 | { "_signed_int","_int",0}, | |
dbbb98cd | 910 | { "_WXTYPE","_wxDateTime_t",0}, |
325274bb RD |
911 | { "_WXTYPE","_short",0}, |
912 | { "_WXTYPE","_signed_short",0}, | |
913 | { "_WXTYPE","_unsigned_short",0}, | |
dbbb98cd | 914 | { "_unsigned_short","_wxDateTime_t",0}, |
325274bb RD |
915 | { "_unsigned_short","_WXTYPE",0}, |
916 | { "_unsigned_short","_short",0}, | |
9416aa89 | 917 | { "_wxObject","_wxGLCanvas",SwigwxGLCanvasTowxObject}, |
9416aa89 | 918 | { "_wxObject","_wxGLContext",SwigwxGLContextTowxObject}, |
325274bb RD |
919 | { "_signed_short","_WXTYPE",0}, |
920 | { "_signed_short","_short",0}, | |
325274bb | 921 | { "_wxScrolledWindow","_wxGLCanvas",SwigwxGLCanvasTowxScrolledWindow}, |
325274bb | 922 | { "_unsigned_char","_byte",0}, |
d2103cf2 | 923 | { "_unsigned_int","_wxCoord",0}, |
325274bb | 924 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 925 | { "_unsigned_int","_time_t",0}, |
325274bb RD |
926 | { "_unsigned_int","_size_t",0}, |
927 | { "_unsigned_int","_uint",0}, | |
928 | { "_unsigned_int","_wxWindowID",0}, | |
929 | { "_unsigned_int","_int",0}, | |
dbbb98cd | 930 | { "_short","_wxDateTime_t",0}, |
325274bb RD |
931 | { "_short","_WXTYPE",0}, |
932 | { "_short","_unsigned_short",0}, | |
933 | { "_short","_signed_short",0}, | |
d2103cf2 | 934 | { "_wxWindowID","_wxCoord",0}, |
325274bb | 935 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 936 | { "_wxWindowID","_time_t",0}, |
325274bb RD |
937 | { "_wxWindowID","_size_t",0}, |
938 | { "_wxWindowID","_EBool",0}, | |
939 | { "_wxWindowID","_uint",0}, | |
940 | { "_wxWindowID","_int",0}, | |
941 | { "_wxWindowID","_signed_int",0}, | |
942 | { "_wxWindowID","_unsigned_int",0}, | |
d2103cf2 | 943 | { "_int","_wxCoord",0}, |
325274bb | 944 | { "_int","_wxPrintQuality",0}, |
c368d904 | 945 | { "_int","_time_t",0}, |
325274bb RD |
946 | { "_int","_size_t",0}, |
947 | { "_int","_EBool",0}, | |
948 | { "_int","_uint",0}, | |
949 | { "_int","_wxWindowID",0}, | |
950 | { "_int","_unsigned_int",0}, | |
951 | { "_int","_signed_int",0}, | |
dbbb98cd RD |
952 | { "_wxDateTime_t","_unsigned_short",0}, |
953 | { "_wxDateTime_t","_short",0}, | |
954 | { "_wxDateTime_t","_WXTYPE",0}, | |
c368d904 RD |
955 | { "_time_t","_wxCoord",0}, |
956 | { "_time_t","_wxPrintQuality",0}, | |
957 | { "_time_t","_unsigned_int",0}, | |
958 | { "_time_t","_int",0}, | |
959 | { "_time_t","_wxWindowID",0}, | |
960 | { "_time_t","_uint",0}, | |
961 | { "_time_t","_size_t",0}, | |
d2103cf2 RD |
962 | { "_wxCoord","_int",0}, |
963 | { "_wxCoord","_signed_int",0}, | |
964 | { "_wxCoord","_unsigned_int",0}, | |
965 | { "_wxCoord","_wxWindowID",0}, | |
966 | { "_wxCoord","_uint",0}, | |
967 | { "_wxCoord","_EBool",0}, | |
968 | { "_wxCoord","_size_t",0}, | |
c368d904 | 969 | { "_wxCoord","_time_t",0}, |
d2103cf2 | 970 | { "_wxCoord","_wxPrintQuality",0}, |
325274bb | 971 | { "_wxEvtHandler","_wxGLCanvas",SwigwxGLCanvasTowxEvtHandler}, |
325274bb | 972 | { "_wxWindow","_wxGLCanvas",SwigwxGLCanvasTowxWindow}, |
325274bb RD |
973 | {0,0,0}}; |
974 | ||
975 | static PyObject *SWIG_globals; | |
976 | #ifdef __cplusplus | |
977 | extern "C" | |
978 | #endif | |
979 | SWIGEXPORT(void) initglcanvasc() { | |
980 | PyObject *m, *d; | |
981 | SWIG_globals = SWIG_newvarlink(); | |
982 | m = Py_InitModule("glcanvasc", glcanvascMethods); | |
983 | d = PyModule_GetDict(m); | |
325274bb RD |
984 | |
985 | ||
e508a2b6 RD |
986 | wxClassInfo::CleanUpClasses(); |
987 | wxClassInfo::InitializeClasses(); | |
325274bb RD |
988 | |
989 | { | |
990 | int i; | |
991 | for (i = 0; _swig_mapping[i].n1; i++) | |
992 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
993 | } | |
994 | } |