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