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