]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.20 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
c9c7117a RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
d14a1e28 RD |
51 | |
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
cc6dd355 RD |
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
d14a1e28 | 82 | #else |
cc6dd355 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
cc6dd355 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
cc6dd355 | 90 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
91 | #endif |
92 | ||
d14a1e28 RD |
93 | #ifdef __cplusplus |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
cc6dd355 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
cc6dd355 | 104 | void *clientdata; |
d14a1e28 RD |
105 | swig_dycast_func dcast; |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
cc6dd355 RD |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
120 | |
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
9d1d5697 | 124 | |
d14a1e28 RD |
125 | #endif |
126 | ||
cc6dd355 | 127 | |
d14a1e28 RD |
128 | /*********************************************************************** |
129 | * pyrun.swg for wxPython | |
130 | * | |
131 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
132 | * but not the runtime functions themselves. This helps keep the | |
133 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
134 | * anyway. | |
135 | * | |
136 | ************************************************************************/ | |
137 | ||
d14a1e28 RD |
138 | #include "Python.h" |
139 | ||
140 | #ifdef __cplusplus | |
141 | extern "C" { | |
142 | #endif | |
143 | ||
144 | #define SWIG_PY_INT 1 | |
145 | #define SWIG_PY_FLOAT 2 | |
146 | #define SWIG_PY_STRING 3 | |
147 | #define SWIG_PY_POINTER 4 | |
148 | #define SWIG_PY_BINARY 5 | |
149 | ||
150 | /* Flags for pointer conversion */ | |
151 | ||
152 | #define SWIG_POINTER_EXCEPTION 0x1 | |
153 | #define SWIG_POINTER_DISOWN 0x2 | |
154 | ||
155 | /* Exception handling in wrappers */ | |
156 | #define SWIG_fail goto fail | |
157 | ||
158 | /* Constant information structure */ | |
159 | typedef struct swig_const_info { | |
160 | int type; | |
161 | char *name; | |
162 | long lvalue; | |
163 | double dvalue; | |
164 | void *pvalue; | |
165 | swig_type_info **ptype; | |
166 | } swig_const_info; | |
167 | ||
d14a1e28 RD |
168 | /* Common SWIG API */ |
169 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
170 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
171 | #define SWIG_NewPointerObj(p, type, flags) \ | |
172 | SWIG_Python_NewPointerObj(p, type, flags) | |
173 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
174 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
175 | ||
176 | /* Python-specific SWIG API */ | |
177 | #define SWIG_newvarlink() \ | |
178 | SWIG_Python_newvarlink() | |
179 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
180 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
181 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
182 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
183 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
184 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
185 | #define SWIG_InstallConstants(d, constants) \ | |
186 | SWIG_Python_InstallConstants(d, constants) | |
187 | ||
188 | ||
cc6dd355 RD |
189 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
190 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
191 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
192 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
193 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
194 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
195 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
196 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 197 | |
d14a1e28 RD |
198 | |
199 | ||
200 | /* Contract support */ | |
201 | ||
9d1d5697 | 202 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 203 | |
d14a1e28 RD |
204 | #ifdef __cplusplus |
205 | } | |
206 | #endif | |
207 | ||
208 | ||
209 | ||
210 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
211 | ||
212 | #define SWIGTYPE_p_wxWindow swig_types[0] | |
213 | #define SWIGTYPE_p_wxObject swig_types[1] | |
214 | #define SWIGTYPE_p_wxEvtHandler swig_types[2] | |
215 | #define SWIGTYPE_p_wxPalette swig_types[3] | |
216 | #define SWIGTYPE_p_wxGLCanvas swig_types[4] | |
217 | #define SWIGTYPE_p_wxString swig_types[5] | |
218 | #define SWIGTYPE_p_wxGLContext swig_types[6] | |
219 | #define SWIGTYPE_p_int swig_types[7] | |
220 | static swig_type_info *swig_types[9]; | |
221 | ||
222 | /* -------- TYPES TABLE (END) -------- */ | |
223 | ||
224 | ||
225 | /*----------------------------------------------- | |
226 | @(target):= _glcanvas.so | |
227 | ------------------------------------------------*/ | |
228 | #define SWIG_init init_glcanvas | |
229 | ||
230 | #define SWIG_name "_glcanvas" | |
231 | ||
232 | #include "wx/wxPython/wxPython.h" | |
233 | #include "wx/wxPython/pyclasses.h" | |
234 | ||
235 | #include <wx/glcanvas.h> | |
236 | ||
d14a1e28 | 237 | |
b2dc1044 RD |
238 | static const wxString wxPyGLCanvasNameStr(wxT("GLCanvas")); |
239 | static const wxString wxPyEmptyString(wxEmptyString); | |
d14a1e28 RD |
240 | #ifdef __cplusplus |
241 | extern "C" { | |
242 | #endif | |
b2dc1044 RD |
243 | static int _wrap_GLCanvasNameStr_set(PyObject *_val) { |
244 | PyErr_SetString(PyExc_TypeError,"Variable GLCanvasNameStr is read-only."); | |
245 | return 1; | |
246 | } | |
247 | ||
248 | ||
249 | static PyObject *_wrap_GLCanvasNameStr_get() { | |
250 | PyObject *pyobj; | |
251 | ||
252 | { | |
253 | #if wxUSE_UNICODE | |
254 | pyobj = PyUnicode_FromWideChar((&wxPyGLCanvasNameStr)->c_str(), (&wxPyGLCanvasNameStr)->Len()); | |
255 | #else | |
256 | pyobj = PyString_FromStringAndSize((&wxPyGLCanvasNameStr)->c_str(), (&wxPyGLCanvasNameStr)->Len()); | |
257 | #endif | |
258 | } | |
259 | return pyobj; | |
260 | } | |
261 | ||
262 | ||
d14a1e28 RD |
263 | static PyObject *_wrap_new_GLContext(PyObject *self, PyObject *args, PyObject *kwargs) { |
264 | PyObject *resultobj; | |
265 | bool arg1 ; | |
266 | wxGLCanvas *arg2 = (wxGLCanvas *) 0 ; | |
267 | wxPalette const &arg3_defvalue = wxNullPalette ; | |
268 | wxPalette *arg3 = (wxPalette *) &arg3_defvalue ; | |
269 | wxGLContext *arg4 = (wxGLContext *) NULL ; | |
270 | wxGLContext *result; | |
271 | PyObject * obj0 = 0 ; | |
272 | PyObject * obj1 = 0 ; | |
273 | PyObject * obj2 = 0 ; | |
274 | PyObject * obj3 = 0 ; | |
275 | char *kwnames[] = { | |
276 | (char *) "isRGB",(char *) "win",(char *) "palette",(char *) "other", NULL | |
277 | }; | |
278 | ||
279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_GLContext",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
280 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
281 | if (PyErr_Occurred()) SWIG_fail; | |
282 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGLCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
283 | if (obj2) { | |
284 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
285 | if (arg3 == NULL) { | |
286 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
287 | } | |
288 | } | |
289 | if (obj3) { | |
290 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
291 | } | |
292 | { | |
293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
294 | result = (wxGLContext *)new wxGLContext(arg1,arg2,(wxPalette const &)*arg3,(wxGLContext const *)arg4); | |
295 | ||
296 | wxPyEndAllowThreads(__tstate); | |
297 | if (PyErr_Occurred()) SWIG_fail; | |
298 | } | |
299 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGLContext, 1); | |
300 | return resultobj; | |
301 | fail: | |
302 | return NULL; | |
303 | } | |
304 | ||
305 | ||
306 | static PyObject *_wrap_delete_GLContext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
307 | PyObject *resultobj; | |
308 | wxGLContext *arg1 = (wxGLContext *) 0 ; | |
309 | PyObject * obj0 = 0 ; | |
310 | char *kwnames[] = { | |
311 | (char *) "self", NULL | |
312 | }; | |
313 | ||
314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GLContext",kwnames,&obj0)) goto fail; | |
315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
316 | { | |
317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
318 | delete arg1; | |
319 | ||
320 | wxPyEndAllowThreads(__tstate); | |
321 | if (PyErr_Occurred()) SWIG_fail; | |
322 | } | |
323 | Py_INCREF(Py_None); resultobj = Py_None; | |
324 | return resultobj; | |
325 | fail: | |
326 | return NULL; | |
327 | } | |
328 | ||
329 | ||
330 | static PyObject *_wrap_GLContext_SetCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
331 | PyObject *resultobj; | |
332 | wxGLContext *arg1 = (wxGLContext *) 0 ; | |
333 | PyObject * obj0 = 0 ; | |
334 | char *kwnames[] = { | |
335 | (char *) "self", NULL | |
336 | }; | |
337 | ||
338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_SetCurrent",kwnames,&obj0)) goto fail; | |
339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
340 | { | |
341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
342 | (arg1)->SetCurrent(); | |
343 | ||
344 | wxPyEndAllowThreads(__tstate); | |
345 | if (PyErr_Occurred()) SWIG_fail; | |
346 | } | |
347 | Py_INCREF(Py_None); resultobj = Py_None; | |
348 | return resultobj; | |
349 | fail: | |
350 | return NULL; | |
351 | } | |
352 | ||
353 | ||
354 | static PyObject *_wrap_GLContext_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
355 | PyObject *resultobj; | |
356 | wxGLContext *arg1 = (wxGLContext *) 0 ; | |
357 | wxString *arg2 = 0 ; | |
e811c8ce | 358 | bool temp2 = False ; |
d14a1e28 RD |
359 | PyObject * obj0 = 0 ; |
360 | PyObject * obj1 = 0 ; | |
361 | char *kwnames[] = { | |
362 | (char *) "self",(char *) "colour", NULL | |
363 | }; | |
364 | ||
365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GLContext_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
366 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
367 | { | |
368 | arg2 = wxString_in_helper(obj1); | |
369 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 370 | temp2 = True; |
d14a1e28 RD |
371 | } |
372 | { | |
373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
374 | (arg1)->SetColour((wxString const &)*arg2); | |
375 | ||
376 | wxPyEndAllowThreads(__tstate); | |
377 | if (PyErr_Occurred()) SWIG_fail; | |
378 | } | |
379 | Py_INCREF(Py_None); resultobj = Py_None; | |
380 | { | |
381 | if (temp2) | |
382 | delete arg2; | |
383 | } | |
384 | return resultobj; | |
385 | fail: | |
386 | { | |
387 | if (temp2) | |
388 | delete arg2; | |
389 | } | |
390 | return NULL; | |
391 | } | |
392 | ||
393 | ||
394 | static PyObject *_wrap_GLContext_SwapBuffers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
395 | PyObject *resultobj; | |
396 | wxGLContext *arg1 = (wxGLContext *) 0 ; | |
397 | PyObject * obj0 = 0 ; | |
398 | char *kwnames[] = { | |
399 | (char *) "self", NULL | |
400 | }; | |
401 | ||
402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_SwapBuffers",kwnames,&obj0)) goto fail; | |
403 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
404 | { | |
405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
406 | (arg1)->SwapBuffers(); | |
407 | ||
408 | wxPyEndAllowThreads(__tstate); | |
409 | if (PyErr_Occurred()) SWIG_fail; | |
410 | } | |
411 | Py_INCREF(Py_None); resultobj = Py_None; | |
412 | return resultobj; | |
413 | fail: | |
414 | return NULL; | |
415 | } | |
416 | ||
417 | ||
418 | static PyObject *_wrap_GLContext_SetupPixelFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
419 | PyObject *resultobj; | |
420 | wxGLContext *arg1 = (wxGLContext *) 0 ; | |
421 | PyObject * obj0 = 0 ; | |
422 | char *kwnames[] = { | |
423 | (char *) "self", NULL | |
424 | }; | |
425 | ||
426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_SetupPixelFormat",kwnames,&obj0)) goto fail; | |
427 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
428 | { | |
429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
430 | (arg1)->SetupPixelFormat(); | |
431 | ||
432 | wxPyEndAllowThreads(__tstate); | |
433 | if (PyErr_Occurred()) SWIG_fail; | |
434 | } | |
435 | Py_INCREF(Py_None); resultobj = Py_None; | |
436 | return resultobj; | |
437 | fail: | |
438 | return NULL; | |
439 | } | |
440 | ||
441 | ||
442 | static PyObject *_wrap_GLContext_SetupPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
443 | PyObject *resultobj; | |
444 | wxGLContext *arg1 = (wxGLContext *) 0 ; | |
445 | wxPalette *arg2 = 0 ; | |
446 | PyObject * obj0 = 0 ; | |
447 | PyObject * obj1 = 0 ; | |
448 | char *kwnames[] = { | |
449 | (char *) "self",(char *) "palette", NULL | |
450 | }; | |
451 | ||
452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GLContext_SetupPalette",kwnames,&obj0,&obj1)) goto fail; | |
453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
454 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
455 | if (arg2 == NULL) { | |
456 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
457 | } | |
458 | { | |
459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
460 | (arg1)->SetupPalette((wxPalette const &)*arg2); | |
461 | ||
462 | wxPyEndAllowThreads(__tstate); | |
463 | if (PyErr_Occurred()) SWIG_fail; | |
464 | } | |
465 | Py_INCREF(Py_None); resultobj = Py_None; | |
466 | return resultobj; | |
467 | fail: | |
468 | return NULL; | |
469 | } | |
470 | ||
471 | ||
472 | static PyObject *_wrap_GLContext_CreateDefaultPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
473 | PyObject *resultobj; | |
474 | wxGLContext *arg1 = (wxGLContext *) 0 ; | |
475 | wxPalette result; | |
476 | PyObject * obj0 = 0 ; | |
477 | char *kwnames[] = { | |
478 | (char *) "self", NULL | |
479 | }; | |
480 | ||
481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_CreateDefaultPalette",kwnames,&obj0)) goto fail; | |
482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
483 | { | |
484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
485 | result = (arg1)->CreateDefaultPalette(); | |
486 | ||
487 | wxPyEndAllowThreads(__tstate); | |
488 | if (PyErr_Occurred()) SWIG_fail; | |
489 | } | |
490 | { | |
491 | wxPalette * resultptr; | |
492 | resultptr = new wxPalette((wxPalette &) result); | |
493 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPalette, 1); | |
494 | } | |
495 | return resultobj; | |
496 | fail: | |
497 | return NULL; | |
498 | } | |
499 | ||
500 | ||
501 | static PyObject *_wrap_GLContext_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
502 | PyObject *resultobj; | |
503 | wxGLContext *arg1 = (wxGLContext *) 0 ; | |
504 | wxPalette *result; | |
505 | PyObject * obj0 = 0 ; | |
506 | char *kwnames[] = { | |
507 | (char *) "self", NULL | |
508 | }; | |
509 | ||
510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_GetPalette",kwnames,&obj0)) goto fail; | |
511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
512 | { | |
513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
514 | result = (wxPalette *)(arg1)->GetPalette(); | |
515 | ||
516 | wxPyEndAllowThreads(__tstate); | |
517 | if (PyErr_Occurred()) SWIG_fail; | |
518 | } | |
519 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 0); | |
520 | return resultobj; | |
521 | fail: | |
522 | return NULL; | |
523 | } | |
524 | ||
525 | ||
526 | static PyObject *_wrap_GLContext_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
527 | PyObject *resultobj; | |
528 | wxGLContext *arg1 = (wxGLContext *) 0 ; | |
529 | wxWindow *result; | |
530 | PyObject * obj0 = 0 ; | |
531 | char *kwnames[] = { | |
532 | (char *) "self", NULL | |
533 | }; | |
534 | ||
535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_GetWindow",kwnames,&obj0)) goto fail; | |
536 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
537 | { | |
538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
539 | result = (wxWindow *)(arg1)->GetWindow(); | |
540 | ||
541 | wxPyEndAllowThreads(__tstate); | |
542 | if (PyErr_Occurred()) SWIG_fail; | |
543 | } | |
544 | { | |
545 | resultobj = wxPyMake_wxObject(result); | |
546 | } | |
547 | return resultobj; | |
548 | fail: | |
549 | return NULL; | |
550 | } | |
551 | ||
552 | ||
553 | static PyObject * GLContext_swigregister(PyObject *self, PyObject *args) { | |
554 | PyObject *obj; | |
555 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
556 | SWIG_TypeClientData(SWIGTYPE_p_wxGLContext, obj); | |
557 | Py_INCREF(obj); | |
558 | return Py_BuildValue((char *)""); | |
559 | } | |
560 | static PyObject *_wrap_new_GLCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
561 | PyObject *resultobj; | |
562 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 563 | int arg2 = (int) -1 ; |
d14a1e28 RD |
564 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
565 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
566 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
567 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
568 | long arg5 = (long) 0 ; | |
569 | wxString const &arg6_defvalue = wxPyGLCanvasNameStr ; | |
570 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
571 | int *arg7 = (int *) NULL ; | |
572 | wxPalette const &arg8_defvalue = wxNullPalette ; | |
573 | wxPalette *arg8 = (wxPalette *) &arg8_defvalue ; | |
574 | wxGLCanvas *result; | |
575 | wxPoint temp3 ; | |
576 | wxSize temp4 ; | |
e811c8ce | 577 | bool temp6 = False ; |
d14a1e28 RD |
578 | int *temp7 ; |
579 | PyObject * obj0 = 0 ; | |
580 | PyObject * obj2 = 0 ; | |
581 | PyObject * obj3 = 0 ; | |
582 | PyObject * obj5 = 0 ; | |
583 | PyObject * obj6 = 0 ; | |
584 | PyObject * obj7 = 0 ; | |
585 | char *kwnames[] = { | |
586 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name",(char *) "attribList",(char *) "palette", NULL | |
587 | }; | |
588 | ||
589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlOOO:new_GLCanvas",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6,&obj7)) goto fail; | |
590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
591 | if (obj2) { | |
592 | { | |
593 | arg3 = &temp3; | |
594 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
595 | } | |
596 | } | |
597 | if (obj3) { | |
598 | { | |
599 | arg4 = &temp4; | |
600 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
601 | } | |
602 | } | |
603 | if (obj5) { | |
604 | { | |
605 | arg6 = wxString_in_helper(obj5); | |
606 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 607 | temp6 = True; |
d14a1e28 RD |
608 | } |
609 | } | |
610 | if (obj6) { | |
611 | { | |
612 | int i; | |
613 | if (PySequence_Check(obj6)) { | |
614 | int size = PyObject_Length(obj6); | |
615 | temp7 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int)); | |
616 | for (i = 0; i < size; i++) { | |
617 | temp7[i] = PyInt_AsLong(PySequence_GetItem(obj6, i)); | |
618 | } | |
619 | temp7[size] = 0; | |
620 | arg7 = temp7; | |
621 | } | |
622 | } | |
623 | } | |
624 | if (obj7) { | |
625 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
626 | if (arg8 == NULL) { | |
627 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
628 | } | |
629 | } | |
630 | { | |
631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
632 | result = (wxGLCanvas *)new wxGLCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6,arg7,(wxPalette const &)*arg8); | |
633 | ||
634 | wxPyEndAllowThreads(__tstate); | |
635 | if (PyErr_Occurred()) SWIG_fail; | |
636 | } | |
637 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGLCanvas, 1); | |
638 | { | |
639 | if (temp6) | |
640 | delete arg6; | |
641 | } | |
642 | { | |
643 | delete [] arg7; | |
644 | } | |
645 | return resultobj; | |
646 | fail: | |
647 | { | |
648 | if (temp6) | |
649 | delete arg6; | |
650 | } | |
651 | { | |
652 | delete [] arg7; | |
653 | } | |
654 | return NULL; | |
655 | } | |
656 | ||
657 | ||
658 | static PyObject *_wrap_new_wxGLCanvasWithContext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
659 | PyObject *resultobj; | |
660 | wxWindow *arg1 = (wxWindow *) 0 ; | |
661 | wxGLContext *arg2 = (wxGLContext *) NULL ; | |
e811c8ce | 662 | int arg3 = (int) -1 ; |
d14a1e28 RD |
663 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
664 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
665 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
666 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
667 | long arg6 = (long) 0 ; | |
668 | wxString const &arg7_defvalue = wxPyGLCanvasNameStr ; | |
669 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
670 | int *arg8 = (int *) NULL ; | |
671 | wxPalette const &arg9_defvalue = wxNullPalette ; | |
672 | wxPalette *arg9 = (wxPalette *) &arg9_defvalue ; | |
673 | wxGLCanvas *result; | |
674 | wxPoint temp4 ; | |
675 | wxSize temp5 ; | |
e811c8ce | 676 | bool temp7 = False ; |
d14a1e28 RD |
677 | int *temp8 ; |
678 | PyObject * obj0 = 0 ; | |
679 | PyObject * obj1 = 0 ; | |
680 | PyObject * obj3 = 0 ; | |
681 | PyObject * obj4 = 0 ; | |
682 | PyObject * obj6 = 0 ; | |
683 | PyObject * obj7 = 0 ; | |
684 | PyObject * obj8 = 0 ; | |
685 | char *kwnames[] = { | |
686 | (char *) "parent",(char *) "shared",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name",(char *) "attribList",(char *) "palette", NULL | |
687 | }; | |
688 | ||
689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OiOOlOOO:new_wxGLCanvasWithContext",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7,&obj8)) goto fail; | |
690 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
691 | if (obj1) { | |
692 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGLContext,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
693 | } | |
694 | if (obj3) { | |
695 | { | |
696 | arg4 = &temp4; | |
697 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
698 | } | |
699 | } | |
700 | if (obj4) { | |
701 | { | |
702 | arg5 = &temp5; | |
703 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
704 | } | |
705 | } | |
706 | if (obj6) { | |
707 | { | |
708 | arg7 = wxString_in_helper(obj6); | |
709 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 710 | temp7 = True; |
d14a1e28 RD |
711 | } |
712 | } | |
713 | if (obj7) { | |
714 | { | |
715 | int i; | |
716 | if (PySequence_Check(obj7)) { | |
717 | int size = PyObject_Length(obj7); | |
718 | temp8 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int)); | |
719 | for (i = 0; i < size; i++) { | |
720 | temp8[i] = PyInt_AsLong(PySequence_GetItem(obj7, i)); | |
721 | } | |
722 | temp8[size] = 0; | |
723 | arg8 = temp8; | |
724 | } | |
725 | } | |
726 | } | |
727 | if (obj8) { | |
728 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
729 | if (arg9 == NULL) { | |
730 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
731 | } | |
732 | } | |
733 | { | |
734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
735 | result = (wxGLCanvas *)new wxGLCanvas(arg1,(wxGLContext const *)arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxPalette const &)*arg9); | |
736 | ||
737 | wxPyEndAllowThreads(__tstate); | |
738 | if (PyErr_Occurred()) SWIG_fail; | |
739 | } | |
740 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGLCanvas, 1); | |
741 | { | |
742 | if (temp7) | |
743 | delete arg7; | |
744 | } | |
745 | { | |
746 | delete [] arg8; | |
747 | } | |
748 | return resultobj; | |
749 | fail: | |
750 | { | |
751 | if (temp7) | |
752 | delete arg7; | |
753 | } | |
754 | { | |
755 | delete [] arg8; | |
756 | } | |
757 | return NULL; | |
758 | } | |
759 | ||
760 | ||
761 | static PyObject *_wrap_GLCanvas_SetCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
762 | PyObject *resultobj; | |
763 | wxGLCanvas *arg1 = (wxGLCanvas *) 0 ; | |
764 | PyObject * obj0 = 0 ; | |
765 | char *kwnames[] = { | |
766 | (char *) "self", NULL | |
767 | }; | |
768 | ||
769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_SetCurrent",kwnames,&obj0)) goto fail; | |
770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
771 | { | |
772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
773 | (arg1)->SetCurrent(); | |
774 | ||
775 | wxPyEndAllowThreads(__tstate); | |
776 | if (PyErr_Occurred()) SWIG_fail; | |
777 | } | |
778 | Py_INCREF(Py_None); resultobj = Py_None; | |
779 | return resultobj; | |
780 | fail: | |
781 | return NULL; | |
782 | } | |
783 | ||
784 | ||
785 | static PyObject *_wrap_GLCanvas_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
786 | PyObject *resultobj; | |
787 | wxGLCanvas *arg1 = (wxGLCanvas *) 0 ; | |
788 | wxString *arg2 = 0 ; | |
e811c8ce | 789 | bool temp2 = False ; |
d14a1e28 RD |
790 | PyObject * obj0 = 0 ; |
791 | PyObject * obj1 = 0 ; | |
792 | char *kwnames[] = { | |
793 | (char *) "self",(char *) "colour", NULL | |
794 | }; | |
795 | ||
796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GLCanvas_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
797 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
798 | { | |
799 | arg2 = wxString_in_helper(obj1); | |
800 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 801 | temp2 = True; |
d14a1e28 RD |
802 | } |
803 | { | |
804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
805 | (arg1)->SetColour((wxString const &)*arg2); | |
806 | ||
807 | wxPyEndAllowThreads(__tstate); | |
808 | if (PyErr_Occurred()) SWIG_fail; | |
809 | } | |
810 | Py_INCREF(Py_None); resultobj = Py_None; | |
811 | { | |
812 | if (temp2) | |
813 | delete arg2; | |
814 | } | |
815 | return resultobj; | |
816 | fail: | |
817 | { | |
818 | if (temp2) | |
819 | delete arg2; | |
820 | } | |
821 | return NULL; | |
822 | } | |
823 | ||
824 | ||
825 | static PyObject *_wrap_GLCanvas_SwapBuffers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
826 | PyObject *resultobj; | |
827 | wxGLCanvas *arg1 = (wxGLCanvas *) 0 ; | |
828 | PyObject * obj0 = 0 ; | |
829 | char *kwnames[] = { | |
830 | (char *) "self", NULL | |
831 | }; | |
832 | ||
833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_SwapBuffers",kwnames,&obj0)) goto fail; | |
834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
835 | { | |
836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
837 | (arg1)->SwapBuffers(); | |
838 | ||
839 | wxPyEndAllowThreads(__tstate); | |
840 | if (PyErr_Occurred()) SWIG_fail; | |
841 | } | |
842 | Py_INCREF(Py_None); resultobj = Py_None; | |
843 | return resultobj; | |
844 | fail: | |
845 | return NULL; | |
846 | } | |
847 | ||
848 | ||
849 | static PyObject *_wrap_GLCanvas_GetContext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
850 | PyObject *resultobj; | |
851 | wxGLCanvas *arg1 = (wxGLCanvas *) 0 ; | |
852 | wxGLContext *result; | |
853 | PyObject * obj0 = 0 ; | |
854 | char *kwnames[] = { | |
855 | (char *) "self", NULL | |
856 | }; | |
857 | ||
858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_GetContext",kwnames,&obj0)) goto fail; | |
859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGLCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
860 | { | |
861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
862 | result = (wxGLContext *)(arg1)->GetContext(); | |
863 | ||
864 | wxPyEndAllowThreads(__tstate); | |
865 | if (PyErr_Occurred()) SWIG_fail; | |
866 | } | |
867 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGLContext, 0); | |
868 | return resultobj; | |
869 | fail: | |
870 | return NULL; | |
871 | } | |
872 | ||
873 | ||
874 | static PyObject * GLCanvas_swigregister(PyObject *self, PyObject *args) { | |
875 | PyObject *obj; | |
876 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
877 | SWIG_TypeClientData(SWIGTYPE_p_wxGLCanvas, obj); | |
878 | Py_INCREF(obj); | |
879 | return Py_BuildValue((char *)""); | |
880 | } | |
881 | static PyMethodDef SwigMethods[] = { | |
882 | { (char *)"new_GLContext", (PyCFunction) _wrap_new_GLContext, METH_VARARGS | METH_KEYWORDS }, | |
883 | { (char *)"delete_GLContext", (PyCFunction) _wrap_delete_GLContext, METH_VARARGS | METH_KEYWORDS }, | |
884 | { (char *)"GLContext_SetCurrent", (PyCFunction) _wrap_GLContext_SetCurrent, METH_VARARGS | METH_KEYWORDS }, | |
885 | { (char *)"GLContext_SetColour", (PyCFunction) _wrap_GLContext_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
886 | { (char *)"GLContext_SwapBuffers", (PyCFunction) _wrap_GLContext_SwapBuffers, METH_VARARGS | METH_KEYWORDS }, | |
887 | { (char *)"GLContext_SetupPixelFormat", (PyCFunction) _wrap_GLContext_SetupPixelFormat, METH_VARARGS | METH_KEYWORDS }, | |
888 | { (char *)"GLContext_SetupPalette", (PyCFunction) _wrap_GLContext_SetupPalette, METH_VARARGS | METH_KEYWORDS }, | |
889 | { (char *)"GLContext_CreateDefaultPalette", (PyCFunction) _wrap_GLContext_CreateDefaultPalette, METH_VARARGS | METH_KEYWORDS }, | |
890 | { (char *)"GLContext_GetPalette", (PyCFunction) _wrap_GLContext_GetPalette, METH_VARARGS | METH_KEYWORDS }, | |
891 | { (char *)"GLContext_GetWindow", (PyCFunction) _wrap_GLContext_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
892 | { (char *)"GLContext_swigregister", GLContext_swigregister, METH_VARARGS }, | |
893 | { (char *)"new_GLCanvas", (PyCFunction) _wrap_new_GLCanvas, METH_VARARGS | METH_KEYWORDS }, | |
894 | { (char *)"new_wxGLCanvasWithContext", (PyCFunction) _wrap_new_wxGLCanvasWithContext, METH_VARARGS | METH_KEYWORDS }, | |
895 | { (char *)"GLCanvas_SetCurrent", (PyCFunction) _wrap_GLCanvas_SetCurrent, METH_VARARGS | METH_KEYWORDS }, | |
896 | { (char *)"GLCanvas_SetColour", (PyCFunction) _wrap_GLCanvas_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
897 | { (char *)"GLCanvas_SwapBuffers", (PyCFunction) _wrap_GLCanvas_SwapBuffers, METH_VARARGS | METH_KEYWORDS }, | |
898 | { (char *)"GLCanvas_GetContext", (PyCFunction) _wrap_GLCanvas_GetContext, METH_VARARGS | METH_KEYWORDS }, | |
899 | { (char *)"GLCanvas_swigregister", GLCanvas_swigregister, METH_VARARGS }, | |
900 | { NULL, NULL } | |
901 | }; | |
902 | ||
903 | ||
904 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
905 | ||
906 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
907 | return (void *)((wxWindow *) ((wxControl *) x)); | |
908 | } | |
909 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
910 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
911 | } | |
912 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
913 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
914 | } | |
915 | static void *_p_wxGLCanvasTo_p_wxWindow(void *x) { | |
916 | return (void *)((wxWindow *) ((wxGLCanvas *) x)); | |
917 | } | |
918 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
919 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
920 | } | |
921 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
922 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
923 | } | |
924 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
925 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
926 | } | |
927 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
928 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
929 | } | |
930 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
931 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
932 | } | |
933 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
934 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
935 | } | |
936 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
937 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
938 | } | |
939 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
940 | return (void *)((wxObject *) ((wxSizer *) x)); | |
941 | } | |
942 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
943 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
944 | } | |
945 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
946 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
947 | } | |
948 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
949 | return (void *)((wxObject *) ((wxEvent *) x)); | |
950 | } | |
951 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
952 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
953 | } | |
954 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
955 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
956 | } | |
957 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
958 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
959 | } | |
960 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
961 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
962 | } | |
963 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
964 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
965 | } | |
966 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
967 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
968 | } | |
969 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
970 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
971 | } | |
972 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
973 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
974 | } | |
975 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
976 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
977 | } | |
978 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
979 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
980 | } | |
981 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
982 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
983 | } | |
984 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
985 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
986 | } | |
987 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
988 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
989 | } | |
990 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
991 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
992 | } | |
993 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
994 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
995 | } | |
996 | static void *_p_wxGLContextTo_p_wxObject(void *x) { | |
997 | return (void *)((wxObject *) ((wxGLContext *) x)); | |
998 | } | |
999 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
1000 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
1001 | } | |
1002 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
1003 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
1004 | } | |
1005 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
1006 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
1007 | } | |
1008 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
1009 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
1010 | } | |
1011 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
1012 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
1013 | } | |
1014 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
1015 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
1016 | } | |
1017 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
1018 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
1019 | } | |
1020 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
1021 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
1022 | } | |
1023 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
1024 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
1025 | } | |
1026 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
1027 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
1028 | } | |
1029 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
1030 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
1031 | } | |
1032 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
1033 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
1034 | } | |
1035 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
1036 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
1037 | } | |
1038 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
1039 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
1040 | } | |
1041 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
1042 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
1043 | } | |
1044 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
1045 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
1046 | } | |
1047 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
1048 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
1049 | } | |
1050 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
1051 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
1052 | } | |
1053 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
1054 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
1055 | } | |
1056 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
1057 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
1058 | } | |
1059 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
1060 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
1061 | } | |
1062 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
1063 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
1064 | } | |
1065 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
1066 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
1067 | } | |
1068 | static void *_p_wxGLCanvasTo_p_wxObject(void *x) { | |
1069 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxGLCanvas *) x)); | |
1070 | } | |
0df68c9f RD |
1071 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
1072 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
1073 | } | |
d14a1e28 RD |
1074 | static void *_p_wxImageTo_p_wxObject(void *x) { |
1075 | return (void *)((wxObject *) ((wxImage *) x)); | |
1076 | } | |
1077 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
1078 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
1079 | } | |
1080 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
1081 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
1082 | } | |
1083 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
1084 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
1085 | } | |
1086 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
1087 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
1088 | } | |
1089 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
1090 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
1091 | } | |
1092 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
1093 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
1094 | } | |
1095 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
1096 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
1097 | } | |
1098 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
1099 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
1100 | } | |
1101 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
1102 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
1103 | } | |
1104 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
1105 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
1106 | } | |
1107 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
1108 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
1109 | } | |
1110 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
1111 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
1112 | } | |
1113 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
1114 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
1115 | } | |
1116 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
1117 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
1118 | } | |
1119 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
1120 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
1121 | } | |
1122 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
1123 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
1124 | } | |
1125 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
1126 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
1127 | } | |
1128 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
1129 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
1130 | } | |
1131 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
1132 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
1133 | } | |
1134 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
1135 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
1136 | } | |
1137 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
1138 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
1139 | } | |
1140 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
1141 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
1142 | } | |
1143 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
1144 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
1145 | } | |
1146 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
1147 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
1148 | } | |
1149 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
1150 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
1151 | } | |
1152 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
1153 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
1154 | } | |
1155 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
1156 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
1157 | } | |
1158 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
1159 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
1160 | } | |
1161 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
1162 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
1163 | } | |
1164 | static void *_p_wxGLCanvasTo_p_wxEvtHandler(void *x) { | |
1165 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxGLCanvas *) x)); | |
1166 | } | |
1167 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
1168 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
1169 | } | |
1170 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow},{"_p_wxWindow"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow},{"_p_wxGLCanvas", _p_wxGLCanvasTo_p_wxWindow},{0}}; | |
0df68c9f | 1171 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxGLContext", _p_wxGLContextTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxGLCanvas", _p_wxGLCanvasTo_p_wxObject},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxObject"},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{0}}; |
d14a1e28 RD |
1172 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler},{"_p_wxEvtHandler"},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler},{"_p_wxGLCanvas", _p_wxGLCanvasTo_p_wxEvtHandler},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler},{0}}; |
1173 | static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}}; | |
1174 | static swig_type_info _swigt__p_wxGLCanvas[] = {{"_p_wxGLCanvas", 0, "wxGLCanvas *", 0},{"_p_wxGLCanvas"},{0}}; | |
1175 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
1176 | static swig_type_info _swigt__p_wxGLContext[] = {{"_p_wxGLContext", 0, "wxGLContext *", 0},{"_p_wxGLContext"},{0}}; | |
1177 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
1178 | ||
1179 | static swig_type_info *swig_types_initial[] = { | |
1180 | _swigt__p_wxWindow, | |
1181 | _swigt__p_wxObject, | |
1182 | _swigt__p_wxEvtHandler, | |
1183 | _swigt__p_wxPalette, | |
1184 | _swigt__p_wxGLCanvas, | |
1185 | _swigt__p_wxString, | |
1186 | _swigt__p_wxGLContext, | |
1187 | _swigt__p_int, | |
1188 | 0 | |
1189 | }; | |
1190 | ||
1191 | ||
1192 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
1193 | ||
1194 | static swig_const_info swig_const_table[] = { | |
1195 | { SWIG_PY_INT, (char *)"WX_GL_RGBA", (long) WX_GL_RGBA, 0, 0, 0}, | |
1196 | { SWIG_PY_INT, (char *)"WX_GL_BUFFER_SIZE", (long) WX_GL_BUFFER_SIZE, 0, 0, 0}, | |
1197 | { SWIG_PY_INT, (char *)"WX_GL_LEVEL", (long) WX_GL_LEVEL, 0, 0, 0}, | |
1198 | { SWIG_PY_INT, (char *)"WX_GL_DOUBLEBUFFER", (long) WX_GL_DOUBLEBUFFER, 0, 0, 0}, | |
1199 | { SWIG_PY_INT, (char *)"WX_GL_STEREO", (long) WX_GL_STEREO, 0, 0, 0}, | |
1200 | { SWIG_PY_INT, (char *)"WX_GL_AUX_BUFFERS", (long) WX_GL_AUX_BUFFERS, 0, 0, 0}, | |
1201 | { SWIG_PY_INT, (char *)"WX_GL_MIN_RED", (long) WX_GL_MIN_RED, 0, 0, 0}, | |
1202 | { SWIG_PY_INT, (char *)"WX_GL_MIN_GREEN", (long) WX_GL_MIN_GREEN, 0, 0, 0}, | |
1203 | { SWIG_PY_INT, (char *)"WX_GL_MIN_BLUE", (long) WX_GL_MIN_BLUE, 0, 0, 0}, | |
1204 | { SWIG_PY_INT, (char *)"WX_GL_MIN_ALPHA", (long) WX_GL_MIN_ALPHA, 0, 0, 0}, | |
1205 | { SWIG_PY_INT, (char *)"WX_GL_DEPTH_SIZE", (long) WX_GL_DEPTH_SIZE, 0, 0, 0}, | |
1206 | { SWIG_PY_INT, (char *)"WX_GL_STENCIL_SIZE", (long) WX_GL_STENCIL_SIZE, 0, 0, 0}, | |
1207 | { SWIG_PY_INT, (char *)"WX_GL_MIN_ACCUM_RED", (long) WX_GL_MIN_ACCUM_RED, 0, 0, 0}, | |
1208 | { SWIG_PY_INT, (char *)"WX_GL_MIN_ACCUM_GREEN", (long) WX_GL_MIN_ACCUM_GREEN, 0, 0, 0}, | |
1209 | { SWIG_PY_INT, (char *)"WX_GL_MIN_ACCUM_BLUE", (long) WX_GL_MIN_ACCUM_BLUE, 0, 0, 0}, | |
1210 | { SWIG_PY_INT, (char *)"WX_GL_MIN_ACCUM_ALPHA", (long) WX_GL_MIN_ACCUM_ALPHA, 0, 0, 0}, | |
1211 | {0}}; | |
1212 | ||
1213 | #ifdef __cplusplus | |
1214 | } | |
1215 | #endif | |
1216 | ||
1217 | #ifdef __cplusplus | |
1218 | extern "C" | |
1219 | #endif | |
1220 | SWIGEXPORT(void) SWIG_init(void) { | |
1221 | static PyObject *SWIG_globals = 0; | |
1222 | static int typeinit = 0; | |
1223 | PyObject *m, *d; | |
1224 | int i; | |
1225 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
1226 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
1227 | d = PyModule_GetDict(m); | |
1228 | ||
1229 | if (!typeinit) { | |
1230 | for (i = 0; swig_types_initial[i]; i++) { | |
1231 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
1232 | } | |
1233 | typeinit = 1; | |
1234 | } | |
1235 | SWIG_InstallConstants(d,swig_const_table); | |
1236 | ||
b2dc1044 RD |
1237 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
1238 | SWIG_addvarlink(SWIG_globals,(char*)"GLCanvasNameStr",_wrap_GLCanvasNameStr_get, _wrap_GLCanvasNameStr_set); | |
d14a1e28 RD |
1239 | |
1240 | ||
1241 | ||
1242 | } | |
1243 |