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