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