]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/glcanvas/gtk/glcanvas_wrap.cpp
Changed type of bitmaps. RC of DMC reported 'is not a valid Windows 3.0 or OS/2 1...
[wxWidgets.git] / wxPython / contrib / glcanvas / gtk / glcanvas_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
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
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
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
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
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
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 {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
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 *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
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
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
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)
173
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)
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
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
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[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
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]
212 #define SWIGTYPE_p_char swig_types[3]
213 #define SWIGTYPE_p_wxPalette swig_types[4]
214 #define SWIGTYPE_p_wxGLCanvas swig_types[5]
215 #define SWIGTYPE_p_wxGLContext swig_types[6]
216 #define SWIGTYPE_p_int swig_types[7]
217 static swig_type_info *swig_types[9];
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
229 /* Auxiliar swig macros */
230
231 #ifdef __cplusplus
232 #define SWIGSTATICINLINE(a) static inline a
233 #define SWIGSTATIC(a) static a
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)
239
240 #ifdef HAVE_NUMERIC_CAST
241 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
242 #else
243 #define swig_numeric_cast(type,a) static_cast<type>(a)
244 #endif
245
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)
256
257 #endif /* __cplusplus */
258
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
270
271
272 #include "wx/wxPython/wxPython.h"
273 #include "wx/wxPython/pyclasses.h"
274
275 #include <wx/glcanvas.h>
276
277
278 static const wxString wxPyGLCanvasNameStr(wxT("GLCanvas"));
279 static const wxString wxPyEmptyString(wxEmptyString);
280
281 SWIGSTATICINLINE(bool)
282 SWIG_AsBool(PyObject *obj)
283 {
284 return PyObject_IsTrue(obj) ? true : false;
285 }
286
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
300
301 #include <limits.h>
302
303
304 SWIGSTATICINLINE(long)
305 SWIG_CheckLongInRange(long value, const char* type,
306 long min_value, long max_value)
307 {
308 if (!PyErr_Occurred()) {
309 if (value < min_value) {
310 PyObject *err =
311 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
312 value, type, min_value);
313
314 PyErr_SetObject(PyExc_OverflowError, err);
315 Py_DECREF(err);
316 } else if (value > max_value) {
317 PyObject *err =
318 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
319 value, type, max_value);
320 PyErr_SetObject(PyExc_OverflowError, err);
321 Py_DECREF(err);
322 }
323 }
324 return value;
325 }
326
327
328 SWIGSTATICINLINE(long)
329 SWIG_AsLong(PyObject * obj)
330 {
331 if (PyNumber_Check(obj))
332 return PyInt_AsLong(obj);
333 else {
334 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
335 obj->ob_type->tp_name);
336 PyErr_SetObject(PyExc_TypeError, errmsg);
337 Py_DECREF(errmsg);
338 return 0;
339 }
340 }
341
342
343 #if INT_MAX != LONG_MAX
344 SWIGSTATICINLINE(int)
345 SWIG_AsInt(PyObject *obj)
346 {
347 return swig_numeric_cast(int,
348 SWIG_CheckLongInRange(SWIG_AsLong(obj),
349 "int", INT_MIN, INT_MAX));
350 }
351 #else
352 #define SWIG_AsInt SWIG_AsLong
353 #endif
354
355
356 SWIGSTATICINLINE(int)
357 SWIG_CheckInt(PyObject* obj)
358 {
359 SWIG_AsInt(obj);
360 if (PyErr_Occurred()) {
361 PyErr_Clear();
362 return 0;
363 } else {
364 return 1;
365 }
366 }
367
368
369 SWIGSTATICINLINE(int)
370 SWIG_CheckLong(PyObject* obj)
371 {
372 SWIG_AsLong(obj);
373 if (PyErr_Occurred()) {
374 PyErr_Clear();
375 return 0;
376 } else {
377 return 1;
378 }
379 }
380
381 #ifdef __cplusplus
382 extern "C" {
383 #endif
384 static int _wrap_GLCanvasNameStr_set(PyObject *_val) {
385 PyErr_SetString(PyExc_TypeError,"Variable GLCanvasNameStr is read-only.");
386 return 1;
387 }
388
389
390 static PyObject *_wrap_GLCanvasNameStr_get() {
391 PyObject *pyobj;
392
393 {
394 #if wxUSE_UNICODE
395 pyobj = PyUnicode_FromWideChar((&wxPyGLCanvasNameStr)->c_str(), (&wxPyGLCanvasNameStr)->Len());
396 #else
397 pyobj = PyString_FromStringAndSize((&wxPyGLCanvasNameStr)->c_str(), (&wxPyGLCanvasNameStr)->Len());
398 #endif
399 }
400 return pyobj;
401 }
402
403
404 static PyObject *_wrap_new_GLContext(PyObject *self, PyObject *args, PyObject *kwargs) {
405 PyObject *resultobj;
406 bool arg1 ;
407 wxGLCanvas *arg2 = (wxGLCanvas *) 0 ;
408 wxPalette const &arg3_defvalue = wxNullPalette ;
409 wxPalette *arg3 = (wxPalette *) &arg3_defvalue ;
410 wxGLContext *arg4 = (wxGLContext *) NULL ;
411 wxGLContext *result;
412 PyObject * obj0 = 0 ;
413 PyObject * obj1 = 0 ;
414 PyObject * obj2 = 0 ;
415 PyObject * obj3 = 0 ;
416 char *kwnames[] = {
417 (char *) "isRGB",(char *) "win",(char *) "palette",(char *) "other", NULL
418 };
419
420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_GLContext",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
421 arg1 = (bool) SWIG_AsBool(obj0);
422 if (PyErr_Occurred()) SWIG_fail;
423 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGLCanvas,
424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
425 if (obj2) {
426 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPalette,
427 SWIG_POINTER_EXCEPTION | 0)) == -1)
428 SWIG_fail;
429 if (arg3 == NULL) {
430 PyErr_SetString(PyExc_TypeError,"null reference");
431 SWIG_fail;
432 }
433 }
434 if (obj3) {
435 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGLContext,
436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
437 }
438 {
439 if (!wxPyCheckForApp()) SWIG_fail;
440 PyThreadState* __tstate = wxPyBeginAllowThreads();
441 result = (wxGLContext *)new wxGLContext(arg1,arg2,(wxPalette const &)*arg3,(wxGLContext const *)arg4);
442
443 wxPyEndAllowThreads(__tstate);
444 if (PyErr_Occurred()) SWIG_fail;
445 }
446 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGLContext, 1);
447 return resultobj;
448 fail:
449 return NULL;
450 }
451
452
453 static PyObject *_wrap_delete_GLContext(PyObject *self, PyObject *args, PyObject *kwargs) {
454 PyObject *resultobj;
455 wxGLContext *arg1 = (wxGLContext *) 0 ;
456 PyObject * obj0 = 0 ;
457 char *kwnames[] = {
458 (char *) "self", NULL
459 };
460
461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GLContext",kwnames,&obj0)) goto fail;
462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
464 {
465 PyThreadState* __tstate = wxPyBeginAllowThreads();
466 delete arg1;
467
468 wxPyEndAllowThreads(__tstate);
469 if (PyErr_Occurred()) SWIG_fail;
470 }
471 Py_INCREF(Py_None); resultobj = Py_None;
472 return resultobj;
473 fail:
474 return NULL;
475 }
476
477
478 static PyObject *_wrap_GLContext_SetCurrent(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_SetCurrent",kwnames,&obj0)) goto fail;
487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
489 {
490 PyThreadState* __tstate = wxPyBeginAllowThreads();
491 (arg1)->SetCurrent();
492
493 wxPyEndAllowThreads(__tstate);
494 if (PyErr_Occurred()) SWIG_fail;
495 }
496 Py_INCREF(Py_None); resultobj = Py_None;
497 return resultobj;
498 fail:
499 return NULL;
500 }
501
502
503 static PyObject *_wrap_GLContext_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
504 PyObject *resultobj;
505 wxGLContext *arg1 = (wxGLContext *) 0 ;
506 wxString *arg2 = 0 ;
507 bool temp2 = False ;
508 PyObject * obj0 = 0 ;
509 PyObject * obj1 = 0 ;
510 char *kwnames[] = {
511 (char *) "self",(char *) "colour", NULL
512 };
513
514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GLContext_SetColour",kwnames,&obj0,&obj1)) goto fail;
515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
517 {
518 arg2 = wxString_in_helper(obj1);
519 if (arg2 == NULL) SWIG_fail;
520 temp2 = True;
521 }
522 {
523 PyThreadState* __tstate = wxPyBeginAllowThreads();
524 (arg1)->SetColour((wxString const &)*arg2);
525
526 wxPyEndAllowThreads(__tstate);
527 if (PyErr_Occurred()) SWIG_fail;
528 }
529 Py_INCREF(Py_None); resultobj = Py_None;
530 {
531 if (temp2)
532 delete arg2;
533 }
534 return resultobj;
535 fail:
536 {
537 if (temp2)
538 delete arg2;
539 }
540 return NULL;
541 }
542
543
544 static PyObject *_wrap_GLContext_SwapBuffers(PyObject *self, PyObject *args, PyObject *kwargs) {
545 PyObject *resultobj;
546 wxGLContext *arg1 = (wxGLContext *) 0 ;
547 PyObject * obj0 = 0 ;
548 char *kwnames[] = {
549 (char *) "self", NULL
550 };
551
552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_SwapBuffers",kwnames,&obj0)) goto fail;
553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
555 {
556 PyThreadState* __tstate = wxPyBeginAllowThreads();
557 (arg1)->SwapBuffers();
558
559 wxPyEndAllowThreads(__tstate);
560 if (PyErr_Occurred()) SWIG_fail;
561 }
562 Py_INCREF(Py_None); resultobj = Py_None;
563 return resultobj;
564 fail:
565 return NULL;
566 }
567
568
569 static PyObject *_wrap_GLContext_SetupPixelFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
570 PyObject *resultobj;
571 wxGLContext *arg1 = (wxGLContext *) 0 ;
572 PyObject * obj0 = 0 ;
573 char *kwnames[] = {
574 (char *) "self", NULL
575 };
576
577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_SetupPixelFormat",kwnames,&obj0)) goto fail;
578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
580 {
581 PyThreadState* __tstate = wxPyBeginAllowThreads();
582 (arg1)->SetupPixelFormat();
583
584 wxPyEndAllowThreads(__tstate);
585 if (PyErr_Occurred()) SWIG_fail;
586 }
587 Py_INCREF(Py_None); resultobj = Py_None;
588 return resultobj;
589 fail:
590 return NULL;
591 }
592
593
594 static PyObject *_wrap_GLContext_SetupPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
595 PyObject *resultobj;
596 wxGLContext *arg1 = (wxGLContext *) 0 ;
597 wxPalette *arg2 = 0 ;
598 PyObject * obj0 = 0 ;
599 PyObject * obj1 = 0 ;
600 char *kwnames[] = {
601 (char *) "self",(char *) "palette", NULL
602 };
603
604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GLContext_SetupPalette",kwnames,&obj0,&obj1)) goto fail;
605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
607 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
608 SWIG_POINTER_EXCEPTION | 0)) == -1)
609 SWIG_fail;
610 if (arg2 == NULL) {
611 PyErr_SetString(PyExc_TypeError,"null reference");
612 SWIG_fail;
613 }
614 {
615 PyThreadState* __tstate = wxPyBeginAllowThreads();
616 (arg1)->SetupPalette((wxPalette const &)*arg2);
617
618 wxPyEndAllowThreads(__tstate);
619 if (PyErr_Occurred()) SWIG_fail;
620 }
621 Py_INCREF(Py_None); resultobj = Py_None;
622 return resultobj;
623 fail:
624 return NULL;
625 }
626
627
628 static PyObject *_wrap_GLContext_CreateDefaultPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
629 PyObject *resultobj;
630 wxGLContext *arg1 = (wxGLContext *) 0 ;
631 wxPalette result;
632 PyObject * obj0 = 0 ;
633 char *kwnames[] = {
634 (char *) "self", NULL
635 };
636
637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_CreateDefaultPalette",kwnames,&obj0)) goto fail;
638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
640 {
641 PyThreadState* __tstate = wxPyBeginAllowThreads();
642 result = (arg1)->CreateDefaultPalette();
643
644 wxPyEndAllowThreads(__tstate);
645 if (PyErr_Occurred()) SWIG_fail;
646 }
647 {
648 wxPalette * resultptr;
649 resultptr = new wxPalette((wxPalette &) result);
650 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPalette, 1);
651 }
652 return resultobj;
653 fail:
654 return NULL;
655 }
656
657
658 static PyObject *_wrap_GLContext_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
659 PyObject *resultobj;
660 wxGLContext *arg1 = (wxGLContext *) 0 ;
661 wxPalette *result;
662 PyObject * obj0 = 0 ;
663 char *kwnames[] = {
664 (char *) "self", NULL
665 };
666
667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_GetPalette",kwnames,&obj0)) goto fail;
668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
670 {
671 PyThreadState* __tstate = wxPyBeginAllowThreads();
672 result = (wxPalette *)(arg1)->GetPalette();
673
674 wxPyEndAllowThreads(__tstate);
675 if (PyErr_Occurred()) SWIG_fail;
676 }
677 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 0);
678 return resultobj;
679 fail:
680 return NULL;
681 }
682
683
684 static PyObject *_wrap_GLContext_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
685 PyObject *resultobj;
686 wxGLContext *arg1 = (wxGLContext *) 0 ;
687 wxWindow *result;
688 PyObject * obj0 = 0 ;
689 char *kwnames[] = {
690 (char *) "self", NULL
691 };
692
693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_GetWindow",kwnames,&obj0)) goto fail;
694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLContext,
695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
696 {
697 PyThreadState* __tstate = wxPyBeginAllowThreads();
698 result = (wxWindow *)(arg1)->GetWindow();
699
700 wxPyEndAllowThreads(__tstate);
701 if (PyErr_Occurred()) SWIG_fail;
702 }
703 {
704 resultobj = wxPyMake_wxObject(result);
705 }
706 return resultobj;
707 fail:
708 return NULL;
709 }
710
711
712 static PyObject * GLContext_swigregister(PyObject *self, PyObject *args) {
713 PyObject *obj;
714 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
715 SWIG_TypeClientData(SWIGTYPE_p_wxGLContext, obj);
716 Py_INCREF(obj);
717 return Py_BuildValue((char *)"");
718 }
719 static PyObject *_wrap_new_GLCanvas(PyObject *self, PyObject *args, PyObject *kwargs) {
720 PyObject *resultobj;
721 wxWindow *arg1 = (wxWindow *) 0 ;
722 int arg2 = (int) -1 ;
723 wxPoint const &arg3_defvalue = wxDefaultPosition ;
724 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
725 wxSize const &arg4_defvalue = wxDefaultSize ;
726 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
727 long arg5 = (long) 0 ;
728 wxString const &arg6_defvalue = wxPyGLCanvasNameStr ;
729 wxString *arg6 = (wxString *) &arg6_defvalue ;
730 int *arg7 = (int *) NULL ;
731 wxPalette const &arg8_defvalue = wxNullPalette ;
732 wxPalette *arg8 = (wxPalette *) &arg8_defvalue ;
733 wxGLCanvas *result;
734 wxPoint temp3 ;
735 wxSize temp4 ;
736 bool temp6 = False ;
737 int *temp7 ;
738 PyObject * obj0 = 0 ;
739 PyObject * obj1 = 0 ;
740 PyObject * obj2 = 0 ;
741 PyObject * obj3 = 0 ;
742 PyObject * obj4 = 0 ;
743 PyObject * obj5 = 0 ;
744 PyObject * obj6 = 0 ;
745 PyObject * obj7 = 0 ;
746 char *kwnames[] = {
747 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name",(char *) "attribList",(char *) "palette", NULL
748 };
749
750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_GLCanvas",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
753 if (obj1) {
754 arg2 = (int) SWIG_AsInt(obj1);
755 if (PyErr_Occurred()) SWIG_fail;
756 }
757 if (obj2) {
758 {
759 arg3 = &temp3;
760 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
761 }
762 }
763 if (obj3) {
764 {
765 arg4 = &temp4;
766 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
767 }
768 }
769 if (obj4) {
770 arg5 = (long) SWIG_AsLong(obj4);
771 if (PyErr_Occurred()) SWIG_fail;
772 }
773 if (obj5) {
774 {
775 arg6 = wxString_in_helper(obj5);
776 if (arg6 == NULL) SWIG_fail;
777 temp6 = True;
778 }
779 }
780 if (obj6) {
781 {
782 int i;
783 if (PySequence_Check(obj6)) {
784 int size = PyObject_Length(obj6);
785 temp7 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int));
786 for (i = 0; i < size; i++) {
787 temp7[i] = PyInt_AsLong(PySequence_GetItem(obj6, i));
788 }
789 temp7[size] = 0;
790 arg7 = temp7;
791 }
792 }
793 }
794 if (obj7) {
795 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxPalette,
796 SWIG_POINTER_EXCEPTION | 0)) == -1)
797 SWIG_fail;
798 if (arg8 == NULL) {
799 PyErr_SetString(PyExc_TypeError,"null reference");
800 SWIG_fail;
801 }
802 }
803 {
804 if (!wxPyCheckForApp()) SWIG_fail;
805 PyThreadState* __tstate = wxPyBeginAllowThreads();
806 result = (wxGLCanvas *)new wxGLCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6,arg7,(wxPalette const &)*arg8);
807
808 wxPyEndAllowThreads(__tstate);
809 if (PyErr_Occurred()) SWIG_fail;
810 }
811 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGLCanvas, 1);
812 {
813 if (temp6)
814 delete arg6;
815 }
816 {
817 delete [] arg7;
818 }
819 return resultobj;
820 fail:
821 {
822 if (temp6)
823 delete arg6;
824 }
825 {
826 delete [] arg7;
827 }
828 return NULL;
829 }
830
831
832 static PyObject *_wrap_new_GLCanvasWithContext(PyObject *self, PyObject *args, PyObject *kwargs) {
833 PyObject *resultobj;
834 wxWindow *arg1 = (wxWindow *) 0 ;
835 wxGLContext *arg2 = (wxGLContext *) NULL ;
836 int arg3 = (int) -1 ;
837 wxPoint const &arg4_defvalue = wxDefaultPosition ;
838 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
839 wxSize const &arg5_defvalue = wxDefaultSize ;
840 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
841 long arg6 = (long) 0 ;
842 wxString const &arg7_defvalue = wxPyGLCanvasNameStr ;
843 wxString *arg7 = (wxString *) &arg7_defvalue ;
844 int *arg8 = (int *) NULL ;
845 wxPalette const &arg9_defvalue = wxNullPalette ;
846 wxPalette *arg9 = (wxPalette *) &arg9_defvalue ;
847 wxGLCanvas *result;
848 wxPoint temp4 ;
849 wxSize temp5 ;
850 bool temp7 = False ;
851 int *temp8 ;
852 PyObject * obj0 = 0 ;
853 PyObject * obj1 = 0 ;
854 PyObject * obj2 = 0 ;
855 PyObject * obj3 = 0 ;
856 PyObject * obj4 = 0 ;
857 PyObject * obj5 = 0 ;
858 PyObject * obj6 = 0 ;
859 PyObject * obj7 = 0 ;
860 PyObject * obj8 = 0 ;
861 char *kwnames[] = {
862 (char *) "parent",(char *) "shared",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name",(char *) "attribList",(char *) "palette", NULL
863 };
864
865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GLCanvasWithContext",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
868 if (obj1) {
869 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGLContext,
870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
871 }
872 if (obj2) {
873 arg3 = (int) SWIG_AsInt(obj2);
874 if (PyErr_Occurred()) SWIG_fail;
875 }
876 if (obj3) {
877 {
878 arg4 = &temp4;
879 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
880 }
881 }
882 if (obj4) {
883 {
884 arg5 = &temp5;
885 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
886 }
887 }
888 if (obj5) {
889 arg6 = (long) SWIG_AsLong(obj5);
890 if (PyErr_Occurred()) SWIG_fail;
891 }
892 if (obj6) {
893 {
894 arg7 = wxString_in_helper(obj6);
895 if (arg7 == NULL) SWIG_fail;
896 temp7 = True;
897 }
898 }
899 if (obj7) {
900 {
901 int i;
902 if (PySequence_Check(obj7)) {
903 int size = PyObject_Length(obj7);
904 temp8 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int));
905 for (i = 0; i < size; i++) {
906 temp8[i] = PyInt_AsLong(PySequence_GetItem(obj7, i));
907 }
908 temp8[size] = 0;
909 arg8 = temp8;
910 }
911 }
912 }
913 if (obj8) {
914 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxPalette,
915 SWIG_POINTER_EXCEPTION | 0)) == -1)
916 SWIG_fail;
917 if (arg9 == NULL) {
918 PyErr_SetString(PyExc_TypeError,"null reference");
919 SWIG_fail;
920 }
921 }
922 {
923 if (!wxPyCheckForApp()) SWIG_fail;
924 PyThreadState* __tstate = wxPyBeginAllowThreads();
925 result = (wxGLCanvas *)new wxGLCanvas(arg1,(wxGLContext const *)arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxPalette const &)*arg9);
926
927 wxPyEndAllowThreads(__tstate);
928 if (PyErr_Occurred()) SWIG_fail;
929 }
930 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGLCanvas, 1);
931 {
932 if (temp7)
933 delete arg7;
934 }
935 {
936 delete [] arg8;
937 }
938 return resultobj;
939 fail:
940 {
941 if (temp7)
942 delete arg7;
943 }
944 {
945 delete [] arg8;
946 }
947 return NULL;
948 }
949
950
951 static PyObject *_wrap_GLCanvas_SetCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
952 PyObject *resultobj;
953 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
954 PyObject * obj0 = 0 ;
955 char *kwnames[] = {
956 (char *) "self", NULL
957 };
958
959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_SetCurrent",kwnames,&obj0)) goto fail;
960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
962 {
963 PyThreadState* __tstate = wxPyBeginAllowThreads();
964 (arg1)->SetCurrent();
965
966 wxPyEndAllowThreads(__tstate);
967 if (PyErr_Occurred()) SWIG_fail;
968 }
969 Py_INCREF(Py_None); resultobj = Py_None;
970 return resultobj;
971 fail:
972 return NULL;
973 }
974
975
976 static PyObject *_wrap_GLCanvas_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
977 PyObject *resultobj;
978 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
979 wxString *arg2 = 0 ;
980 bool temp2 = False ;
981 PyObject * obj0 = 0 ;
982 PyObject * obj1 = 0 ;
983 char *kwnames[] = {
984 (char *) "self",(char *) "colour", NULL
985 };
986
987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GLCanvas_SetColour",kwnames,&obj0,&obj1)) goto fail;
988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
990 {
991 arg2 = wxString_in_helper(obj1);
992 if (arg2 == NULL) SWIG_fail;
993 temp2 = True;
994 }
995 {
996 PyThreadState* __tstate = wxPyBeginAllowThreads();
997 (arg1)->SetColour((wxString const &)*arg2);
998
999 wxPyEndAllowThreads(__tstate);
1000 if (PyErr_Occurred()) SWIG_fail;
1001 }
1002 Py_INCREF(Py_None); resultobj = Py_None;
1003 {
1004 if (temp2)
1005 delete arg2;
1006 }
1007 return resultobj;
1008 fail:
1009 {
1010 if (temp2)
1011 delete arg2;
1012 }
1013 return NULL;
1014 }
1015
1016
1017 static PyObject *_wrap_GLCanvas_SwapBuffers(PyObject *self, PyObject *args, PyObject *kwargs) {
1018 PyObject *resultobj;
1019 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
1020 PyObject * obj0 = 0 ;
1021 char *kwnames[] = {
1022 (char *) "self", NULL
1023 };
1024
1025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_SwapBuffers",kwnames,&obj0)) goto fail;
1026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
1027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1028 {
1029 PyThreadState* __tstate = wxPyBeginAllowThreads();
1030 (arg1)->SwapBuffers();
1031
1032 wxPyEndAllowThreads(__tstate);
1033 if (PyErr_Occurred()) SWIG_fail;
1034 }
1035 Py_INCREF(Py_None); resultobj = Py_None;
1036 return resultobj;
1037 fail:
1038 return NULL;
1039 }
1040
1041
1042 static PyObject *_wrap_GLCanvas_GetContext(PyObject *self, PyObject *args, PyObject *kwargs) {
1043 PyObject *resultobj;
1044 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
1045 wxGLContext *result;
1046 PyObject * obj0 = 0 ;
1047 char *kwnames[] = {
1048 (char *) "self", NULL
1049 };
1050
1051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_GetContext",kwnames,&obj0)) goto fail;
1052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGLCanvas,
1053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1054 {
1055 PyThreadState* __tstate = wxPyBeginAllowThreads();
1056 result = (wxGLContext *)(arg1)->GetContext();
1057
1058 wxPyEndAllowThreads(__tstate);
1059 if (PyErr_Occurred()) SWIG_fail;
1060 }
1061 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGLContext, 0);
1062 return resultobj;
1063 fail:
1064 return NULL;
1065 }
1066
1067
1068 static PyObject * GLCanvas_swigregister(PyObject *self, PyObject *args) {
1069 PyObject *obj;
1070 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1071 SWIG_TypeClientData(SWIGTYPE_p_wxGLCanvas, obj);
1072 Py_INCREF(obj);
1073 return Py_BuildValue((char *)"");
1074 }
1075 static PyMethodDef SwigMethods[] = {
1076 { (char *)"new_GLContext", (PyCFunction) _wrap_new_GLContext, METH_VARARGS | METH_KEYWORDS },
1077 { (char *)"delete_GLContext", (PyCFunction) _wrap_delete_GLContext, METH_VARARGS | METH_KEYWORDS },
1078 { (char *)"GLContext_SetCurrent", (PyCFunction) _wrap_GLContext_SetCurrent, METH_VARARGS | METH_KEYWORDS },
1079 { (char *)"GLContext_SetColour", (PyCFunction) _wrap_GLContext_SetColour, METH_VARARGS | METH_KEYWORDS },
1080 { (char *)"GLContext_SwapBuffers", (PyCFunction) _wrap_GLContext_SwapBuffers, METH_VARARGS | METH_KEYWORDS },
1081 { (char *)"GLContext_SetupPixelFormat", (PyCFunction) _wrap_GLContext_SetupPixelFormat, METH_VARARGS | METH_KEYWORDS },
1082 { (char *)"GLContext_SetupPalette", (PyCFunction) _wrap_GLContext_SetupPalette, METH_VARARGS | METH_KEYWORDS },
1083 { (char *)"GLContext_CreateDefaultPalette", (PyCFunction) _wrap_GLContext_CreateDefaultPalette, METH_VARARGS | METH_KEYWORDS },
1084 { (char *)"GLContext_GetPalette", (PyCFunction) _wrap_GLContext_GetPalette, METH_VARARGS | METH_KEYWORDS },
1085 { (char *)"GLContext_GetWindow", (PyCFunction) _wrap_GLContext_GetWindow, METH_VARARGS | METH_KEYWORDS },
1086 { (char *)"GLContext_swigregister", GLContext_swigregister, METH_VARARGS },
1087 { (char *)"new_GLCanvas", (PyCFunction) _wrap_new_GLCanvas, METH_VARARGS | METH_KEYWORDS },
1088 { (char *)"new_GLCanvasWithContext", (PyCFunction) _wrap_new_GLCanvasWithContext, METH_VARARGS | METH_KEYWORDS },
1089 { (char *)"GLCanvas_SetCurrent", (PyCFunction) _wrap_GLCanvas_SetCurrent, METH_VARARGS | METH_KEYWORDS },
1090 { (char *)"GLCanvas_SetColour", (PyCFunction) _wrap_GLCanvas_SetColour, METH_VARARGS | METH_KEYWORDS },
1091 { (char *)"GLCanvas_SwapBuffers", (PyCFunction) _wrap_GLCanvas_SwapBuffers, METH_VARARGS | METH_KEYWORDS },
1092 { (char *)"GLCanvas_GetContext", (PyCFunction) _wrap_GLCanvas_GetContext, METH_VARARGS | METH_KEYWORDS },
1093 { (char *)"GLCanvas_swigregister", GLCanvas_swigregister, METH_VARARGS },
1094 { NULL, NULL }
1095 };
1096
1097
1098 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
1099
1100 static void *_p_wxControlTo_p_wxWindow(void *x) {
1101 return (void *)((wxWindow *) ((wxControl *) x));
1102 }
1103 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
1104 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
1105 }
1106 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
1107 return (void *)((wxWindow *) ((wxMenuBar *) x));
1108 }
1109 static void *_p_wxGLCanvasTo_p_wxWindow(void *x) {
1110 return (void *)((wxWindow *) ((wxGLCanvas *) x));
1111 }
1112 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
1113 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
1114 }
1115 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
1116 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
1117 }
1118 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
1119 return (void *)((wxObject *) ((wxSizerItem *) x));
1120 }
1121 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
1122 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
1123 }
1124 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
1125 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
1126 }
1127 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
1128 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
1129 }
1130 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
1131 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
1132 }
1133 static void *_p_wxSizerTo_p_wxObject(void *x) {
1134 return (void *)((wxObject *) ((wxSizer *) x));
1135 }
1136 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
1137 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
1138 }
1139 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
1140 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
1141 }
1142 static void *_p_wxEventTo_p_wxObject(void *x) {
1143 return (void *)((wxObject *) ((wxEvent *) x));
1144 }
1145 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
1146 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
1147 }
1148 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
1149 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
1150 }
1151 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
1152 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
1153 }
1154 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
1155 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
1156 }
1157 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
1158 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
1159 }
1160 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
1161 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
1162 }
1163 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
1164 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
1165 }
1166 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
1167 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
1168 }
1169 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
1170 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
1171 }
1172 static void *_p_wxControlTo_p_wxObject(void *x) {
1173 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
1174 }
1175 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
1176 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
1177 }
1178 static void *_p_wxFSFileTo_p_wxObject(void *x) {
1179 return (void *)((wxObject *) ((wxFSFile *) x));
1180 }
1181 static void *_p_wxPySizerTo_p_wxObject(void *x) {
1182 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
1183 }
1184 static void *_p_wxPyEventTo_p_wxObject(void *x) {
1185 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
1186 }
1187 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
1188 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
1189 }
1190 static void *_p_wxGLContextTo_p_wxObject(void *x) {
1191 return (void *)((wxObject *) ((wxGLContext *) x));
1192 }
1193 static void *_p_wxShowEventTo_p_wxObject(void *x) {
1194 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
1195 }
1196 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
1197 return (void *)((wxObject *) ((wxMenuItem *) x));
1198 }
1199 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
1200 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
1201 }
1202 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
1203 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
1204 }
1205 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
1206 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
1207 }
1208 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
1209 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
1210 }
1211 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
1212 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
1213 }
1214 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
1215 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
1216 }
1217 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
1218 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
1219 }
1220 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
1221 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
1222 }
1223 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
1224 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
1225 }
1226 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
1227 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
1228 }
1229 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
1230 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
1231 }
1232 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
1233 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
1234 }
1235 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
1236 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
1237 }
1238 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
1239 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
1240 }
1241 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
1242 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
1243 }
1244 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
1245 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
1246 }
1247 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
1248 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
1249 }
1250 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
1251 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
1252 }
1253 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
1254 return (void *)((wxObject *) ((wxImageHandler *) x));
1255 }
1256 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
1257 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
1258 }
1259 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
1260 return (void *)((wxObject *) ((wxEvtHandler *) x));
1261 }
1262 static void *_p_wxGLCanvasTo_p_wxObject(void *x) {
1263 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxGLCanvas *) x));
1264 }
1265 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
1266 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
1267 }
1268 static void *_p_wxImageTo_p_wxObject(void *x) {
1269 return (void *)((wxObject *) ((wxImage *) x));
1270 }
1271 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
1272 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
1273 }
1274 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
1275 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
1276 }
1277 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
1278 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
1279 }
1280 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
1281 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
1282 }
1283 static void *_p_wxWindowTo_p_wxObject(void *x) {
1284 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
1285 }
1286 static void *_p_wxMenuTo_p_wxObject(void *x) {
1287 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
1288 }
1289 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
1290 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
1291 }
1292 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
1293 return (void *)((wxObject *) ((wxFileSystem *) x));
1294 }
1295 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
1296 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
1297 }
1298 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
1299 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
1300 }
1301 static void *_p_wxPyAppTo_p_wxObject(void *x) {
1302 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
1303 }
1304 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
1305 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
1306 }
1307 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
1308 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
1309 }
1310 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
1311 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
1312 }
1313 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
1314 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
1315 }
1316 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
1317 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
1318 }
1319 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
1320 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
1321 }
1322 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
1323 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
1324 }
1325 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
1326 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
1327 }
1328 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
1329 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
1330 }
1331 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
1332 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
1333 }
1334 static void *_p_wxValidatorTo_p_wxObject(void *x) {
1335 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
1336 }
1337 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
1338 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
1339 }
1340 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
1341 return (void *)((wxEvtHandler *) ((wxWindow *) x));
1342 }
1343 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
1344 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
1345 }
1346 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
1347 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
1348 }
1349 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
1350 return (void *)((wxEvtHandler *) ((wxValidator *) x));
1351 }
1352 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
1353 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
1354 }
1355 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
1356 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
1357 }
1358 static void *_p_wxGLCanvasTo_p_wxEvtHandler(void *x) {
1359 return (void *)((wxEvtHandler *) (wxWindow *) ((wxGLCanvas *) x));
1360 }
1361 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
1362 return (void *)((wxEvtHandler *) ((wxMenu *) x));
1363 }
1364 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}};
1365 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}};
1366 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}};
1367 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}};
1368 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}};
1369 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}};
1370 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}};
1371 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}};
1372
1373 static swig_type_info *swig_types_initial[] = {
1374 _swigt__p_wxWindow,
1375 _swigt__p_wxObject,
1376 _swigt__p_wxEvtHandler,
1377 _swigt__p_char,
1378 _swigt__p_wxPalette,
1379 _swigt__p_wxGLCanvas,
1380 _swigt__p_wxGLContext,
1381 _swigt__p_int,
1382 0
1383 };
1384
1385
1386 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
1387
1388 static swig_const_info swig_const_table[] = {
1389 {0}};
1390
1391 #ifdef __cplusplus
1392 }
1393 #endif
1394
1395 #ifdef __cplusplus
1396 extern "C"
1397 #endif
1398 SWIGEXPORT(void) SWIG_init(void) {
1399 static PyObject *SWIG_globals = 0;
1400 static int typeinit = 0;
1401 PyObject *m, *d;
1402 int i;
1403 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
1404 m = Py_InitModule((char *) SWIG_name, SwigMethods);
1405 d = PyModule_GetDict(m);
1406
1407 if (!typeinit) {
1408 for (i = 0; swig_types_initial[i]; i++) {
1409 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
1410 }
1411 typeinit = 1;
1412 }
1413 SWIG_InstallConstants(d,swig_const_table);
1414
1415 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
1416 SWIG_addvarlink(SWIG_globals,(char*)"GLCanvasNameStr",_wrap_GLCanvasNameStr_get, _wrap_GLCanvasNameStr_set);
1417 PyDict_SetItemString(d,"WX_GL_RGBA", SWIG_FromInt((int)WX_GL_RGBA));
1418 PyDict_SetItemString(d,"WX_GL_BUFFER_SIZE", SWIG_FromInt((int)WX_GL_BUFFER_SIZE));
1419 PyDict_SetItemString(d,"WX_GL_LEVEL", SWIG_FromInt((int)WX_GL_LEVEL));
1420 PyDict_SetItemString(d,"WX_GL_DOUBLEBUFFER", SWIG_FromInt((int)WX_GL_DOUBLEBUFFER));
1421 PyDict_SetItemString(d,"WX_GL_STEREO", SWIG_FromInt((int)WX_GL_STEREO));
1422 PyDict_SetItemString(d,"WX_GL_AUX_BUFFERS", SWIG_FromInt((int)WX_GL_AUX_BUFFERS));
1423 PyDict_SetItemString(d,"WX_GL_MIN_RED", SWIG_FromInt((int)WX_GL_MIN_RED));
1424 PyDict_SetItemString(d,"WX_GL_MIN_GREEN", SWIG_FromInt((int)WX_GL_MIN_GREEN));
1425 PyDict_SetItemString(d,"WX_GL_MIN_BLUE", SWIG_FromInt((int)WX_GL_MIN_BLUE));
1426 PyDict_SetItemString(d,"WX_GL_MIN_ALPHA", SWIG_FromInt((int)WX_GL_MIN_ALPHA));
1427 PyDict_SetItemString(d,"WX_GL_DEPTH_SIZE", SWIG_FromInt((int)WX_GL_DEPTH_SIZE));
1428 PyDict_SetItemString(d,"WX_GL_STENCIL_SIZE", SWIG_FromInt((int)WX_GL_STENCIL_SIZE));
1429 PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_RED", SWIG_FromInt((int)WX_GL_MIN_ACCUM_RED));
1430 PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_GREEN", SWIG_FromInt((int)WX_GL_MIN_ACCUM_GREEN));
1431 PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_BLUE", SWIG_FromInt((int)WX_GL_MIN_ACCUM_BLUE));
1432 PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_ALPHA", SWIG_FromInt((int)WX_GL_MIN_ACCUM_ALPHA));
1433
1434
1435
1436 }
1437