]> git.saurik.com Git - wxWidgets.git/blame - wxPython/contrib/glcanvas/mac/glcanvas_wrap.cpp
more about the downloadable swig
[wxWidgets.git] / wxPython / contrib / glcanvas / mac / glcanvas_wrap.cpp
CommitLineData
d14a1e28
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
32fe5131 3 * Version 1.3.27
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
d14a1e28
RD
12
13#ifdef __cplusplus
14template<class T> class SwigValueWrapper {
15 T *tt;
16public:
17 SwigValueWrapper() : tt(0) { }
18 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
19 SwigValueWrapper(const T& t) : tt(new T(t)) { }
20 ~SwigValueWrapper() { delete tt; }
21 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
22 operator T&() const { return *tt; }
23 T *operator&() { return tt; }
24private:
25 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
36ed4f51 26};
d14a1e28
RD
27#endif
28
32fe5131
RD
29/***********************************************************************
30 *
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 *
34 ************************************************************************/
d14a1e28 35
32fe5131
RD
36/* template workaround for compilers that cannot correctly implement the C++ standard */
37#ifndef SWIGTEMPLATEDISAMBIGUATOR
38# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
36ed4f51 40# else
32fe5131 41# define SWIGTEMPLATEDISAMBIGUATOR
36ed4f51
RD
42# endif
43#endif
d14a1e28 44
32fe5131
RD
45/* inline attribute */
46#ifndef SWIGINLINE
47# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
48# define SWIGINLINE inline
49# else
50# define SWIGINLINE
51# endif
52#endif
53
54/* attribute recognised by some compilers to avoid 'unused' warnings */
55#ifndef SWIGUNUSED
56# if defined(__GNUC__) || defined(__ICC)
57# define SWIGUNUSED __attribute__ ((unused))
58# else
59# define SWIGUNUSED
60# endif
61#endif
62
63/* internal SWIG method */
64#ifndef SWIGINTERN
65# define SWIGINTERN static SWIGUNUSED
66#endif
67
68/* internal inline SWIG method */
69#ifndef SWIGINTERNINLINE
70# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
71#endif
72
73/* exporting methods for Windows DLLs */
74#ifndef SWIGEXPORT
75# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
76# if defined(STATIC_LINKED)
77# define SWIGEXPORT
78# else
79# define SWIGEXPORT __declspec(dllexport)
80# endif
81# else
82# define SWIGEXPORT
83# endif
84#endif
85
86/* calling conventions for Windows */
87#ifndef SWIGSTDCALL
88# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
89# define SWIGSTDCALL __stdcall
90# else
91# define SWIGSTDCALL
92# endif
93#endif
94
95
9fd4be55 96
36ed4f51 97#include <Python.h>
d14a1e28
RD
98
99/***********************************************************************
36ed4f51 100 * swigrun.swg
d14a1e28 101 *
36ed4f51
RD
102 * This file contains generic CAPI SWIG runtime support for pointer
103 * type checking.
d14a1e28
RD
104 *
105 ************************************************************************/
106
36ed4f51
RD
107/* This should only be incremented when either the layout of swig_type_info changes,
108 or for whatever reason, the runtime changes incompatibly */
32fe5131 109#define SWIG_RUNTIME_VERSION "2"
d14a1e28 110
36ed4f51
RD
111/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
112#ifdef SWIG_TYPE_TABLE
32fe5131
RD
113# define SWIG_QUOTE_STRING(x) #x
114# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
115# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d14a1e28 116#else
32fe5131 117# define SWIG_TYPE_TABLE_NAME
36ed4f51
RD
118#endif
119
120/*
121 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
122 creating a static or dynamic library from the swig runtime code.
123 In 99.9% of the cases, swig just needs to declare them as 'static'.
124
125 But only do this if is strictly necessary, ie, if you have problems
126 with your compiler or so.
127*/
32fe5131 128
36ed4f51 129#ifndef SWIGRUNTIME
32fe5131 130# define SWIGRUNTIME SWIGINTERN
36ed4f51 131#endif
32fe5131 132
36ed4f51 133#ifndef SWIGRUNTIMEINLINE
32fe5131 134# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d14a1e28
RD
135#endif
136
32fe5131
RD
137#include <string.h>
138
d14a1e28
RD
139#ifdef __cplusplus
140extern "C" {
141#endif
142
143typedef void *(*swig_converter_func)(void *);
144typedef struct swig_type_info *(*swig_dycast_func)(void **);
145
32fe5131 146/* Structure to store inforomation on one type */
d14a1e28 147typedef struct swig_type_info {
32fe5131
RD
148 const char *name; /* mangled name of this type */
149 const char *str; /* human readable name of this type */
150 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
151 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
152 void *clientdata; /* language specific type data */
d14a1e28
RD
153} swig_type_info;
154
32fe5131
RD
155/* Structure to store a type and conversion function used for casting */
156typedef struct swig_cast_info {
157 swig_type_info *type; /* pointer to type that is equivalent to this type */
158 swig_converter_func converter; /* function to cast the void pointers */
159 struct swig_cast_info *next; /* pointer to next cast in linked list */
160 struct swig_cast_info *prev; /* pointer to the previous cast */
161} swig_cast_info;
162
163/* Structure used to store module information
164 * Each module generates one structure like this, and the runtime collects
165 * all of these structures and stores them in a circularly linked list.*/
166typedef struct swig_module_info {
167 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
168 size_t size; /* Number of types in this module */
169 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
170 swig_type_info **type_initial; /* Array of initially generated type structures */
171 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
172 void *clientdata; /* Language specific module data */
173} swig_module_info;
174
175
36ed4f51
RD
176/*
177 Compare two type names skipping the space characters, therefore
178 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
179
180 Return 0 when the two name types are equivalent, as in
181 strncmp, but skipping ' '.
182*/
183SWIGRUNTIME int
184SWIG_TypeNameComp(const char *f1, const char *l1,
185 const char *f2, const char *l2) {
186 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
187 while ((*f1 == ' ') && (f1 != l1)) ++f1;
188 while ((*f2 == ' ') && (f2 != l2)) ++f2;
32fe5131 189 if (*f1 != *f2) return (int)(*f1 - *f2);
36ed4f51
RD
190 }
191 return (l1 - f1) - (l2 - f2);
192}
193
194/*
195 Check type equivalence in a name list like <name1>|<name2>|...
32fe5131 196 Return 0 if not equal, 1 if equal
36ed4f51
RD
197*/
198SWIGRUNTIME int
199SWIG_TypeEquiv(const char *nb, const char *tb) {
200 int equiv = 0;
201 const char* te = tb + strlen(tb);
202 const char* ne = nb;
203 while (!equiv && *ne) {
204 for (nb = ne; *ne; ++ne) {
205 if (*ne == '|') break;
206 }
32fe5131 207 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
36ed4f51
RD
208 if (*ne) ++ne;
209 }
210 return equiv;
211}
212
213/*
32fe5131
RD
214 Check type equivalence in a name list like <name1>|<name2>|...
215 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
36ed4f51 216*/
32fe5131
RD
217SWIGRUNTIME int
218SWIG_TypeCompare(const char *nb, const char *tb) {
219 int equiv = 0;
220 const char* te = tb + strlen(tb);
221 const char* ne = nb;
222 while (!equiv && *ne) {
223 for (nb = ne; *ne; ++ne) {
224 if (*ne == '|') break;
36ed4f51 225 }
32fe5131
RD
226 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
227 if (*ne) ++ne;
36ed4f51 228 }
32fe5131 229 return equiv;
36ed4f51
RD
230}
231
32fe5131
RD
232
233/* think of this as a c++ template<> or a scheme macro */
234#define SWIG_TypeCheck_Template(comparison, ty) \
235 if (ty) { \
236 swig_cast_info *iter = ty->cast; \
237 while (iter) { \
238 if (comparison) { \
239 if (iter == ty->cast) return iter; \
240 /* Move iter to the top of the linked list */ \
241 iter->prev->next = iter->next; \
242 if (iter->next) \
243 iter->next->prev = iter->prev; \
244 iter->next = ty->cast; \
245 iter->prev = 0; \
246 if (ty->cast) ty->cast->prev = iter; \
247 ty->cast = iter; \
248 return iter; \
249 } \
250 iter = iter->next; \
251 } \
252 } \
253 return 0
254
36ed4f51
RD
255/*
256 Check the typename
257*/
32fe5131 258SWIGRUNTIME swig_cast_info *
36ed4f51 259SWIG_TypeCheck(const char *c, swig_type_info *ty) {
32fe5131
RD
260 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
261}
262
263/* Same as previous function, except strcmp is replaced with a pointer comparison */
264SWIGRUNTIME swig_cast_info *
265SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
266 SWIG_TypeCheck_Template(iter->type == from, into);
36ed4f51
RD
267}
268
269/*
270 Cast a pointer up an inheritance hierarchy
271*/
272SWIGRUNTIMEINLINE void *
32fe5131 273SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
36ed4f51
RD
274 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
275}
276
277/*
278 Dynamic pointer casting. Down an inheritance hierarchy
279*/
280SWIGRUNTIME swig_type_info *
281SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
282 swig_type_info *lastty = ty;
283 if (!ty || !ty->dcast) return ty;
284 while (ty && (ty->dcast)) {
285 ty = (*ty->dcast)(ptr);
286 if (ty) lastty = ty;
287 }
288 return lastty;
289}
290
291/*
292 Return the name associated with this type
293*/
294SWIGRUNTIMEINLINE const char *
295SWIG_TypeName(const swig_type_info *ty) {
296 return ty->name;
297}
298
299/*
300 Return the pretty name associated with this type,
301 that is an unmangled type name in a form presentable to the user.
302*/
303SWIGRUNTIME const char *
304SWIG_TypePrettyName(const swig_type_info *type) {
305 /* The "str" field contains the equivalent pretty names of the
306 type, separated by vertical-bar characters. We choose
307 to print the last name, as it is often (?) the most
308 specific. */
309 if (type->str != NULL) {
310 const char *last_name = type->str;
311 const char *s;
312 for (s = type->str; *s; s++)
313 if (*s == '|') last_name = s+1;
314 return last_name;
315 }
316 else
317 return type->name;
318}
319
36ed4f51
RD
320/*
321 Set the clientdata field for a type
322*/
323SWIGRUNTIME void
32fe5131
RD
324SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
325 swig_cast_info *cast = ti->cast;
36ed4f51
RD
326 /* if (ti->clientdata == clientdata) return; */
327 ti->clientdata = clientdata;
32fe5131
RD
328
329 while (cast) {
330 if (!cast->converter) {
331 swig_type_info *tc = cast->type;
332 if (!tc->clientdata) {
333 SWIG_TypeClientData(tc, clientdata);
36ed4f51 334 }
32fe5131
RD
335 }
336 cast = cast->next;
337 }
338}
339
340/*
341 Search for a swig_type_info structure only by mangled name
342 Search is a O(log #types)
343
344 We start searching at module start, and finish searching when start == end.
345 Note: if start == end at the beginning of the function, we go all the way around
346 the circular list.
347*/
348SWIGRUNTIME swig_type_info *
349SWIG_MangledTypeQueryModule(swig_module_info *start,
350 swig_module_info *end,
351 const char *name) {
352 swig_module_info *iter = start;
353 do {
354 if (iter->size) {
355 register size_t l = 0;
356 register size_t r = iter->size - 1;
357 do {
358 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
359 register size_t i = (l + r) >> 1;
360 const char *iname = iter->types[i]->name;
361 if (iname) {
362 register int compare = strcmp(name, iname);
363 if (compare == 0) {
364 return iter->types[i];
365 } else if (compare < 0) {
366 if (i) {
367 r = i - 1;
368 } else {
369 break;
370 }
371 } else if (compare > 0) {
372 l = i + 1;
373 }
374 } else {
375 break; /* should never happen */
376 }
377 } while (l <= r);
36ed4f51 378 }
32fe5131
RD
379 iter = iter->next;
380 } while (iter != end);
381 return 0;
382}
383
384/*
385 Search for a swig_type_info structure for either a mangled name or a human readable name.
386 It first searches the mangled names of the types, which is a O(log #types)
387 If a type is not found it then searches the human readable names, which is O(#types).
388
389 We start searching at module start, and finish searching when start == end.
390 Note: if start == end at the beginning of the function, we go all the way around
391 the circular list.
392*/
393SWIGRUNTIME swig_type_info *
394SWIG_TypeQueryModule(swig_module_info *start,
395 swig_module_info *end,
396 const char *name) {
397 /* STEP 1: Search the name field using binary search */
398 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
399 if (ret) {
400 return ret;
401 } else {
402 /* STEP 2: If the type hasn't been found, do a complete search
403 of the str field (the human readable name) */
404 swig_module_info *iter = start;
405 do {
406 register size_t i = 0;
407 for (; i < iter->size; ++i) {
408 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
409 return iter->types[i];
410 }
411 iter = iter->next;
412 } while (iter != end);
36ed4f51 413 }
32fe5131
RD
414
415 /* neither found a match */
416 return 0;
36ed4f51
RD
417}
418
32fe5131 419
36ed4f51
RD
420/*
421 Pack binary data into a string
422*/
423SWIGRUNTIME char *
424SWIG_PackData(char *c, void *ptr, size_t sz) {
32fe5131
RD
425 static const char hex[17] = "0123456789abcdef";
426 register const unsigned char *u = (unsigned char *) ptr;
427 register const unsigned char *eu = u + sz;
36ed4f51 428 for (; u != eu; ++u) {
32fe5131 429 register unsigned char uu = *u;
36ed4f51
RD
430 *(c++) = hex[(uu & 0xf0) >> 4];
431 *(c++) = hex[uu & 0xf];
432 }
433 return c;
434}
435
436/*
437 Unpack binary data from a string
438*/
439SWIGRUNTIME const char *
440SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
441 register unsigned char *u = (unsigned char *) ptr;
32fe5131 442 register const unsigned char *eu = u + sz;
36ed4f51 443 for (; u != eu; ++u) {
32fe5131 444 register char d = *(c++);
36ed4f51
RD
445 register unsigned char uu = 0;
446 if ((d >= '0') && (d <= '9'))
447 uu = ((d - '0') << 4);
448 else if ((d >= 'a') && (d <= 'f'))
449 uu = ((d - ('a'-10)) << 4);
450 else
451 return (char *) 0;
452 d = *(c++);
453 if ((d >= '0') && (d <= '9'))
454 uu |= (d - '0');
455 else if ((d >= 'a') && (d <= 'f'))
456 uu |= (d - ('a'-10));
457 else
458 return (char *) 0;
459 *u = uu;
460 }
461 return c;
462}
463
36ed4f51
RD
464/*
465 Pack 'void *' into a string buffer.
466*/
467SWIGRUNTIME char *
468SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
469 char *r = buff;
470 if ((2*sizeof(void *) + 2) > bsz) return 0;
471 *(r++) = '_';
472 r = SWIG_PackData(r,&ptr,sizeof(void *));
473 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
474 strcpy(r,name);
475 return buff;
476}
477
478SWIGRUNTIME const char *
479SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
480 if (*c != '_') {
481 if (strcmp(c,"NULL") == 0) {
482 *ptr = (void *) 0;
483 return name;
484 } else {
485 return 0;
486 }
487 }
488 return SWIG_UnpackData(++c,ptr,sizeof(void *));
489}
490
491SWIGRUNTIME char *
492SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
493 char *r = buff;
494 size_t lname = (name ? strlen(name) : 0);
495 if ((2*sz + 2 + lname) > bsz) return 0;
496 *(r++) = '_';
497 r = SWIG_PackData(r,ptr,sz);
498 if (lname) {
499 strncpy(r,name,lname+1);
500 } else {
501 *r = 0;
502 }
503 return buff;
504}
d14a1e28 505
36ed4f51
RD
506SWIGRUNTIME const char *
507SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
508 if (*c != '_') {
509 if (strcmp(c,"NULL") == 0) {
510 memset(ptr,0,sz);
511 return name;
512 } else {
513 return 0;
514 }
515 }
516 return SWIG_UnpackData(++c,ptr,sz);
517}
d14a1e28
RD
518
519#ifdef __cplusplus
520}
521#endif
522
36ed4f51
RD
523/* -----------------------------------------------------------------------------
524 * SWIG API. Portion that goes into the runtime
525 * ----------------------------------------------------------------------------- */
526
d14a1e28
RD
527#ifdef __cplusplus
528extern "C" {
529#endif
530
36ed4f51
RD
531/* -----------------------------------------------------------------------------
532 * for internal method declarations
533 * ----------------------------------------------------------------------------- */
534
535#ifndef SWIGINTERN
32fe5131 536# define SWIGINTERN static SWIGUNUSED
36ed4f51
RD
537#endif
538
32fe5131
RD
539#ifndef SWIGINTERNINLINE
540# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
36ed4f51
RD
541#endif
542
36ed4f51
RD
543/*
544 Exception handling in wrappers
545*/
546#define SWIG_fail goto fail
547#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
548#define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0)
549#define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1)
550#define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj)
551#define SWIG_null_ref(type) SWIG_Python_NullRef(type)
552
553/*
554 Contract support
555*/
556#define SWIG_contract_assert(expr, msg) \
557 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
558
559/* -----------------------------------------------------------------------------
560 * Constant declarations
561 * ----------------------------------------------------------------------------- */
562
563/* Constant Types */
d14a1e28
RD
564#define SWIG_PY_INT 1
565#define SWIG_PY_FLOAT 2
566#define SWIG_PY_STRING 3
567#define SWIG_PY_POINTER 4
568#define SWIG_PY_BINARY 5
569
36ed4f51
RD
570/* Constant information structure */
571typedef struct swig_const_info {
572 int type;
573 char *name;
574 long lvalue;
575 double dvalue;
576 void *pvalue;
577 swig_type_info **ptype;
578} swig_const_info;
579
580
581/* -----------------------------------------------------------------------------
582 * Alloc. memory flags
583 * ----------------------------------------------------------------------------- */
584#define SWIG_OLDOBJ 1
585#define SWIG_NEWOBJ SWIG_OLDOBJ + 1
586#define SWIG_PYSTR SWIG_NEWOBJ + 1
587
588#ifdef __cplusplus
589}
590#endif
591
592
593/***********************************************************************
594 * pyrun.swg
595 *
596 * This file contains the runtime support for Python modules
597 * and includes code for managing global variables and pointer
598 * type checking.
599 *
600 * Author : David Beazley (beazley@cs.uchicago.edu)
601 ************************************************************************/
602
603/* Common SWIG API */
604#define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags)
605#define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags)
606#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
607
608
609/* Python-specific SWIG API */
610#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
611#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
612
32fe5131
RD
613/* Runtime API */
614#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
615#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
36ed4f51
RD
616
617/* -----------------------------------------------------------------------------
618 * Pointer declarations
619 * ----------------------------------------------------------------------------- */
620/*
621 Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent
622 C/C++ pointers in the python side. Very useful for debugging, but
623 not always safe.
624*/
625#if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
626# define SWIG_COBJECT_TYPES
627#endif
628
629/* Flags for pointer conversion */
630#define SWIG_POINTER_EXCEPTION 0x1
631#define SWIG_POINTER_DISOWN 0x2
632
633
32fe5131
RD
634/* Add PyOS_snprintf for old Pythons */
635#if PY_VERSION_HEX < 0x02020000
636#define PyOS_snprintf snprintf
637#endif
638
36ed4f51
RD
639#ifdef __cplusplus
640extern "C" {
641#endif
642
643/* -----------------------------------------------------------------------------
644 * Create a new pointer string
645 * ----------------------------------------------------------------------------- */
36ed4f51
RD
646#ifndef SWIG_BUFFER_SIZE
647#define SWIG_BUFFER_SIZE 1024
648#endif
649
32fe5131
RD
650/* A crude PyString_FromFormat implementation for old Pythons */
651#if PY_VERSION_HEX < 0x02020000
652static PyObject *
653PyString_FromFormat(const char *fmt, ...) {
654 va_list ap;
655 char buf[SWIG_BUFFER_SIZE * 2];
656 int res;
657 va_start(ap, fmt);
658 res = vsnprintf(buf, sizeof(buf), fmt, ap);
659 va_end(ap);
660 return (res < 0 || res >= sizeof(buf)) ? 0 : PyString_FromString(buf);
661}
662#endif
663
664#if PY_VERSION_HEX < 0x01060000
665#define PyObject_Del(op) PyMem_DEL((op))
666#endif
667
36ed4f51
RD
668#if defined(SWIG_COBJECT_TYPES)
669#if !defined(SWIG_COBJECT_PYTHON)
670/* -----------------------------------------------------------------------------
671 * Implements a simple Swig Object type, and use it instead of PyCObject
672 * ----------------------------------------------------------------------------- */
673
674typedef struct {
675 PyObject_HEAD
676 void *ptr;
677 const char *desc;
678} PySwigObject;
679
680/* Declarations for objects of type PySwigObject */
681
682SWIGRUNTIME int
683PySwigObject_print(PySwigObject *v, FILE *fp, int flags)
684{
685 char result[SWIG_BUFFER_SIZE];
32fe5131 686 flags = flags;
36ed4f51
RD
687 if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) {
688 fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp);
689 return 0;
690 } else {
691 return 1;
692 }
693}
694
695SWIGRUNTIME PyObject *
696PySwigObject_repr(PySwigObject *v)
697{
698 char result[SWIG_BUFFER_SIZE];
699 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
700 PyString_FromFormat("<Swig Object at %s>", result) : 0;
701}
702
703SWIGRUNTIME PyObject *
704PySwigObject_str(PySwigObject *v)
705{
706 char result[SWIG_BUFFER_SIZE];
707 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
708 PyString_FromString(result) : 0;
709}
710
711SWIGRUNTIME PyObject *
712PySwigObject_long(PySwigObject *v)
713{
32fe5131
RD
714 return PyLong_FromVoidPtr(v->ptr);
715}
716
717SWIGRUNTIME PyObject *
718PySwigObject_format(const char* fmt, PySwigObject *v)
719{
720 PyObject *res = NULL;
721 PyObject *args = PyTuple_New(1);
722 if (args && (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0)) {
723 PyObject *ofmt = PyString_FromString(fmt);
724 if (ofmt) {
725 res = PyString_Format(ofmt,args);
726 Py_DECREF(ofmt);
727 }
728 Py_DECREF(args);
729 }
730 return res;
36ed4f51
RD
731}
732
733SWIGRUNTIME PyObject *
734PySwigObject_oct(PySwigObject *v)
735{
32fe5131 736 return PySwigObject_format("%o",v);
36ed4f51
RD
737}
738
739SWIGRUNTIME PyObject *
740PySwigObject_hex(PySwigObject *v)
741{
32fe5131 742 return PySwigObject_format("%x",v);
36ed4f51
RD
743}
744
745SWIGRUNTIME int
746PySwigObject_compare(PySwigObject *v, PySwigObject *w)
747{
748 int c = strcmp(v->desc, w->desc);
749 if (c) {
32fe5131 750 return (c > 0) ? 1 : -1;
36ed4f51
RD
751 } else {
752 void *i = v->ptr;
753 void *j = w->ptr;
32fe5131 754 return (i < j) ? -1 : ((i > j) ? 1 : 0);
36ed4f51
RD
755 }
756}
757
758SWIGRUNTIME void
759PySwigObject_dealloc(PySwigObject *self)
760{
32fe5131 761 PyObject_Del(self);
36ed4f51
RD
762}
763
764SWIGRUNTIME PyTypeObject*
32fe5131
RD
765PySwigObject_type(void) {
766 static char pyswigobject_type__doc__[] =
36ed4f51
RD
767 "Swig object carries a C/C++ instance pointer";
768
769 static PyNumberMethods PySwigObject_as_number = {
770 (binaryfunc)0, /*nb_add*/
771 (binaryfunc)0, /*nb_subtract*/
772 (binaryfunc)0, /*nb_multiply*/
773 (binaryfunc)0, /*nb_divide*/
774 (binaryfunc)0, /*nb_remainder*/
775 (binaryfunc)0, /*nb_divmod*/
776 (ternaryfunc)0,/*nb_power*/
777 (unaryfunc)0, /*nb_negative*/
778 (unaryfunc)0, /*nb_positive*/
779 (unaryfunc)0, /*nb_absolute*/
780 (inquiry)0, /*nb_nonzero*/
781 0, /*nb_invert*/
782 0, /*nb_lshift*/
783 0, /*nb_rshift*/
784 0, /*nb_and*/
785 0, /*nb_xor*/
786 0, /*nb_or*/
787 (coercion)0, /*nb_coerce*/
788 (unaryfunc)PySwigObject_long, /*nb_int*/
789 (unaryfunc)PySwigObject_long, /*nb_long*/
790 (unaryfunc)0, /*nb_float*/
791 (unaryfunc)PySwigObject_oct, /*nb_oct*/
792 (unaryfunc)PySwigObject_hex, /*nb_hex*/
32fe5131 793#if PY_VERSION_HEX >= 0x02020000
36ed4f51 794 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
32fe5131
RD
795#elif PY_VERSION_HEX >= 0x02000000
796 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
36ed4f51
RD
797#endif
798 };
799
32fe5131
RD
800 static PyTypeObject pyswigobject_type
801#if !defined(__cplusplus)
802 ;
803 static int type_init = 0;
36ed4f51 804 if (!type_init) {
32fe5131
RD
805 PyTypeObject tmp
806#endif
807 = {
36ed4f51
RD
808 PyObject_HEAD_INIT(&PyType_Type)
809 0, /*ob_size*/
32fe5131 810 (char *)"PySwigObject", /*tp_name*/
36ed4f51
RD
811 sizeof(PySwigObject), /*tp_basicsize*/
812 0, /*tp_itemsize*/
813 /* methods */
814 (destructor)PySwigObject_dealloc, /*tp_dealloc*/
815 (printfunc)PySwigObject_print, /*tp_print*/
816 (getattrfunc)0, /*tp_getattr*/
817 (setattrfunc)0, /*tp_setattr*/
818 (cmpfunc)PySwigObject_compare, /*tp_compare*/
819 (reprfunc)PySwigObject_repr, /*tp_repr*/
820 &PySwigObject_as_number, /*tp_as_number*/
821 0, /*tp_as_sequence*/
822 0, /*tp_as_mapping*/
823 (hashfunc)0, /*tp_hash*/
824 (ternaryfunc)0, /*tp_call*/
825 (reprfunc)PySwigObject_str, /*tp_str*/
826 /* Space for future expansion */
32fe5131
RD
827 0,0,0,0,
828 pyswigobject_type__doc__, /* Documentation string */
36ed4f51
RD
829#if PY_VERSION_HEX >= 0x02000000
830 0, /* tp_traverse */
831 0, /* tp_clear */
832#endif
833#if PY_VERSION_HEX >= 0x02010000
834 0, /* tp_richcompare */
835 0, /* tp_weaklistoffset */
836#endif
837#if PY_VERSION_HEX >= 0x02020000
838 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
839#endif
840#if PY_VERSION_HEX >= 0x02030000
841 0, /* tp_del */
842#endif
843#ifdef COUNT_ALLOCS
844 0,0,0,0 /* tp_alloc -> tp_next */
845#endif
846 };
32fe5131
RD
847#if !defined(__cplusplus)
848 pyswigobject_type = tmp;
36ed4f51
RD
849 type_init = 1;
850 }
32fe5131
RD
851#endif
852 return &pyswigobject_type;
36ed4f51
RD
853}
854
855SWIGRUNTIME PyObject *
856PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc)
857{
32fe5131
RD
858 PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_type());
859 if (self) {
860 self->ptr = ptr;
861 self->desc = desc;
862 }
36ed4f51
RD
863 return (PyObject *)self;
864}
865
866SWIGRUNTIMEINLINE void *
867PySwigObject_AsVoidPtr(PyObject *self)
868{
869 return ((PySwigObject *)self)->ptr;
870}
871
872SWIGRUNTIMEINLINE const char *
873PySwigObject_GetDesc(PyObject *self)
874{
875 return ((PySwigObject *)self)->desc;
876}
877
878SWIGRUNTIMEINLINE int
879PySwigObject_Check(PyObject *op) {
32fe5131 880 return ((op)->ob_type == PySwigObject_type())
36ed4f51
RD
881 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
882}
883
884/* -----------------------------------------------------------------------------
885 * Implements a simple Swig Packed type, and use it instead of string
886 * ----------------------------------------------------------------------------- */
887
888typedef struct {
889 PyObject_HEAD
890 void *pack;
891 const char *desc;
892 size_t size;
893} PySwigPacked;
894
895SWIGRUNTIME int
896PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags)
897{
898 char result[SWIG_BUFFER_SIZE];
32fe5131 899 flags = flags;
36ed4f51
RD
900 fputs("<Swig Packed ", fp);
901 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
902 fputs("at ", fp);
903 fputs(result, fp);
904 }
905 fputs(v->desc,fp);
906 fputs(">", fp);
907 return 0;
908}
909
910SWIGRUNTIME PyObject *
911PySwigPacked_repr(PySwigPacked *v)
912{
913 char result[SWIG_BUFFER_SIZE];
914 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
915 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc);
916 } else {
917 return PyString_FromFormat("<Swig Packed %s>", v->desc);
918 }
919}
920
921SWIGRUNTIME PyObject *
922PySwigPacked_str(PySwigPacked *v)
923{
924 char result[SWIG_BUFFER_SIZE];
925 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
926 return PyString_FromFormat("%s%s", result, v->desc);
927 } else {
32fe5131 928 return PyString_FromString(v->desc);
36ed4f51
RD
929 }
930}
931
932SWIGRUNTIME int
933PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
934{
935 int c = strcmp(v->desc, w->desc);
936 if (c) {
32fe5131 937 return (c > 0) ? 1 : -1;
36ed4f51
RD
938 } else {
939 size_t i = v->size;
940 size_t j = w->size;
32fe5131 941 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
36ed4f51
RD
942 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
943 }
944}
945
946SWIGRUNTIME void
947PySwigPacked_dealloc(PySwigPacked *self)
948{
949 free(self->pack);
32fe5131 950 PyObject_Del(self);
36ed4f51
RD
951}
952
953SWIGRUNTIME PyTypeObject*
32fe5131
RD
954PySwigPacked_type(void) {
955 static char pyswigpacked_type__doc__[] =
36ed4f51 956 "Swig object carries a C/C++ instance pointer";
32fe5131
RD
957 static PyTypeObject pyswigpacked_type
958#if !defined(__cplusplus)
959 ;
960 static int type_init = 0;
36ed4f51 961 if (!type_init) {
32fe5131
RD
962 PyTypeObject tmp
963#endif
964 = {
36ed4f51
RD
965 PyObject_HEAD_INIT(&PyType_Type)
966 0, /*ob_size*/
32fe5131 967 (char *)"PySwigPacked", /*tp_name*/
36ed4f51
RD
968 sizeof(PySwigPacked), /*tp_basicsize*/
969 0, /*tp_itemsize*/
970 /* methods */
971 (destructor)PySwigPacked_dealloc, /*tp_dealloc*/
972 (printfunc)PySwigPacked_print, /*tp_print*/
973 (getattrfunc)0, /*tp_getattr*/
974 (setattrfunc)0, /*tp_setattr*/
975 (cmpfunc)PySwigPacked_compare, /*tp_compare*/
976 (reprfunc)PySwigPacked_repr, /*tp_repr*/
977 0, /*tp_as_number*/
978 0, /*tp_as_sequence*/
979 0, /*tp_as_mapping*/
980 (hashfunc)0, /*tp_hash*/
981 (ternaryfunc)0, /*tp_call*/
982 (reprfunc)PySwigPacked_str, /*tp_str*/
983 /* Space for future expansion */
32fe5131
RD
984 0,0,0,0,
985 pyswigpacked_type__doc__, /* Documentation string */
36ed4f51
RD
986#if PY_VERSION_HEX >= 0x02000000
987 0, /* tp_traverse */
988 0, /* tp_clear */
989#endif
990#if PY_VERSION_HEX >= 0x02010000
991 0, /* tp_richcompare */
992 0, /* tp_weaklistoffset */
993#endif
994#if PY_VERSION_HEX >= 0x02020000
995 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
996#endif
997#if PY_VERSION_HEX >= 0x02030000
998 0, /* tp_del */
999#endif
1000#ifdef COUNT_ALLOCS
1001 0,0,0,0 /* tp_alloc -> tp_next */
1002#endif
1003 };
32fe5131
RD
1004#if !defined(__cplusplus)
1005 pyswigpacked_type = tmp;
36ed4f51
RD
1006 type_init = 1;
1007 }
32fe5131
RD
1008#endif
1009 return &pyswigpacked_type;
36ed4f51
RD
1010}
1011
1012SWIGRUNTIME PyObject *
1013PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc)
1014{
32fe5131 1015 PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_type());
36ed4f51
RD
1016 if (self == NULL) {
1017 return NULL;
1018 } else {
1019 void *pack = malloc(size);
32fe5131
RD
1020 if (pack) {
1021 memcpy(pack, ptr, size);
1022 self->pack = pack;
1023 self->desc = desc;
1024 self->size = size;
1025 return (PyObject *) self;
1026 }
1027 return NULL;
36ed4f51
RD
1028 }
1029}
1030
1031SWIGRUNTIMEINLINE const char *
1032PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1033{
1034 PySwigPacked *self = (PySwigPacked *)obj;
1035 if (self->size != size) return 0;
1036 memcpy(ptr, self->pack, size);
1037 return self->desc;
1038}
1039
1040SWIGRUNTIMEINLINE const char *
1041PySwigPacked_GetDesc(PyObject *self)
1042{
1043 return ((PySwigPacked *)self)->desc;
1044}
1045
1046SWIGRUNTIMEINLINE int
1047PySwigPacked_Check(PyObject *op) {
32fe5131 1048 return ((op)->ob_type == PySwigPacked_type())
36ed4f51
RD
1049 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1050}
1051
1052#else
1053/* -----------------------------------------------------------------------------
1054 * Use the old Python PyCObject instead of PySwigObject
1055 * ----------------------------------------------------------------------------- */
1056
1057#define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj)
1058#define PySwigObject_Check(obj) PyCObject_Check(obj)
1059#define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj)
1060#define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL)
1061
1062#endif
1063
1064#endif
1065
1066/* -----------------------------------------------------------------------------
1067 * errors manipulation
1068 * ----------------------------------------------------------------------------- */
1069
1070SWIGRUNTIME void
1071SWIG_Python_TypeError(const char *type, PyObject *obj)
1072{
1073 if (type) {
1074#if defined(SWIG_COBJECT_TYPES)
32fe5131 1075 if (obj && PySwigObject_Check(obj)) {
36ed4f51
RD
1076 const char *otype = (const char *) PySwigObject_GetDesc(obj);
1077 if (otype) {
1078 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
1079 type, otype);
1080 return;
1081 }
1082 } else
1083#endif
1084 {
1085 const char *otype = (obj ? obj->ob_type->tp_name : 0);
1086 if (otype) {
1087 PyObject *str = PyObject_Str(obj);
1088 const char *cstr = str ? PyString_AsString(str) : 0;
1089 if (cstr) {
1090 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
1091 type, otype, cstr);
1092 } else {
1093 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
1094 type, otype);
1095 }
32fe5131 1096 Py_XDECREF(str);
36ed4f51
RD
1097 return;
1098 }
1099 }
1100 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
1101 } else {
1102 PyErr_Format(PyExc_TypeError, "unexpected type is received");
1103 }
1104}
1105
1106SWIGRUNTIMEINLINE void
1107SWIG_Python_NullRef(const char *type)
1108{
1109 if (type) {
1110 PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type);
1111 } else {
1112 PyErr_Format(PyExc_TypeError, "null reference was received");
1113 }
1114}
1115
1116SWIGRUNTIME int
1117SWIG_Python_AddErrMesg(const char* mesg, int infront)
1118{
1119 if (PyErr_Occurred()) {
1120 PyObject *type = 0;
1121 PyObject *value = 0;
1122 PyObject *traceback = 0;
1123 PyErr_Fetch(&type, &value, &traceback);
1124 if (value) {
1125 PyObject *old_str = PyObject_Str(value);
1126 Py_XINCREF(type);
1127 PyErr_Clear();
1128 if (infront) {
1129 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
1130 } else {
1131 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
1132 }
1133 Py_DECREF(old_str);
1134 }
1135 return 1;
1136 } else {
1137 return 0;
1138 }
1139}
1140
1141SWIGRUNTIME int
1142SWIG_Python_ArgFail(int argnum)
1143{
1144 if (PyErr_Occurred()) {
1145 /* add information about failing argument */
1146 char mesg[256];
32fe5131 1147 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
36ed4f51
RD
1148 return SWIG_Python_AddErrMesg(mesg, 1);
1149 } else {
1150 return 0;
1151 }
1152}
1153
1154
1155/* -----------------------------------------------------------------------------
1156 * pointers/data manipulation
1157 * ----------------------------------------------------------------------------- */
1158
1159/* Convert a pointer value */
1160SWIGRUNTIME int
1161SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
32fe5131 1162 swig_cast_info *tc;
36ed4f51
RD
1163 const char *c = 0;
1164 static PyObject *SWIG_this = 0;
1165 int newref = 0;
1166 PyObject *pyobj = 0;
1167 void *vptr;
1168
1169 if (!obj) return 0;
1170 if (obj == Py_None) {
1171 *ptr = 0;
1172 return 0;
1173 }
1174
1175#ifdef SWIG_COBJECT_TYPES
1176 if (!(PySwigObject_Check(obj))) {
1177 if (!SWIG_this)
1178 SWIG_this = PyString_FromString("this");
1179 pyobj = obj;
1180 obj = PyObject_GetAttr(obj,SWIG_this);
1181 newref = 1;
1182 if (!obj) goto type_error;
1183 if (!PySwigObject_Check(obj)) {
1184 Py_DECREF(obj);
1185 goto type_error;
1186 }
1187 }
1188 vptr = PySwigObject_AsVoidPtr(obj);
1189 c = (const char *) PySwigObject_GetDesc(obj);
1190 if (newref) { Py_DECREF(obj); }
1191 goto type_check;
1192#else
1193 if (!(PyString_Check(obj))) {
1194 if (!SWIG_this)
1195 SWIG_this = PyString_FromString("this");
1196 pyobj = obj;
1197 obj = PyObject_GetAttr(obj,SWIG_this);
1198 newref = 1;
1199 if (!obj) goto type_error;
1200 if (!PyString_Check(obj)) {
1201 Py_DECREF(obj);
1202 goto type_error;
1203 }
1204 }
32fe5131 1205 c = PyString_AsString(obj);
36ed4f51
RD
1206 /* Pointer values must start with leading underscore */
1207 c = SWIG_UnpackVoidPtr(c, &vptr, ty->name);
1208 if (newref) { Py_DECREF(obj); }
1209 if (!c) goto type_error;
1210#endif
1211
1212type_check:
36ed4f51
RD
1213 if (ty) {
1214 tc = SWIG_TypeCheck(c,ty);
1215 if (!tc) goto type_error;
1216 *ptr = SWIG_TypeCast(tc,vptr);
1217 } else {
1218 *ptr = vptr;
1219 }
36ed4f51
RD
1220 if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
1221 PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False);
1222 }
1223 return 0;
1224
1225type_error:
1226 PyErr_Clear();
1227 if (pyobj && !obj) {
1228 obj = pyobj;
1229 if (PyCFunction_Check(obj)) {
1230 /* here we get the method pointer for callbacks */
1231 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1232 c = doc ? strstr(doc, "swig_ptr: ") : 0;
1233 if (c) {
32fe5131 1234 c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0;
36ed4f51
RD
1235 if (!c) goto type_error;
1236 goto type_check;
1237 }
1238 }
1239 }
1240 if (flags & SWIG_POINTER_EXCEPTION) {
1241 if (ty) {
1242 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1243 } else {
1244 SWIG_Python_TypeError("C/C++ pointer", obj);
1245 }
1246 }
1247 return -1;
1248}
d14a1e28 1249
36ed4f51
RD
1250/* Convert a pointer value, signal an exception on a type mismatch */
1251SWIGRUNTIME void *
1252SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
1253 void *result;
1254 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
1255 PyErr_Clear();
1256 if (flags & SWIG_POINTER_EXCEPTION) {
1257 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1258 SWIG_Python_ArgFail(argnum);
1259 }
1260 }
1261 return result;
1262}
d14a1e28 1263
36ed4f51
RD
1264/* Convert a packed value value */
1265SWIGRUNTIME int
1266SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) {
32fe5131 1267 swig_cast_info *tc;
36ed4f51 1268 const char *c = 0;
d14a1e28 1269
36ed4f51
RD
1270#if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1271 c = PySwigPacked_UnpackData(obj, ptr, sz);
1272#else
1273 if ((!obj) || (!PyString_Check(obj))) goto type_error;
32fe5131 1274 c = PyString_AsString(obj);
36ed4f51
RD
1275 /* Pointer values must start with leading underscore */
1276 c = SWIG_UnpackDataName(c, ptr, sz, ty->name);
1277#endif
1278 if (!c) goto type_error;
1279 if (ty) {
1280 tc = SWIG_TypeCheck(c,ty);
1281 if (!tc) goto type_error;
1282 }
1283 return 0;
d14a1e28 1284
36ed4f51
RD
1285type_error:
1286 PyErr_Clear();
1287 if (flags & SWIG_POINTER_EXCEPTION) {
1288 if (ty) {
1289 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1290 } else {
1291 SWIG_Python_TypeError("C/C++ packed data", obj);
1292 }
1293 }
1294 return -1;
1295}
1296
1297/* Create a new array object */
1298SWIGRUNTIME PyObject *
1299SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) {
1300 PyObject *robj = 0;
32fe5131
RD
1301 if (!type) {
1302 if (!PyErr_Occurred()) {
1303 PyErr_Format(PyExc_TypeError, "Swig: null type passed to NewPointerObj");
1304 }
1305 return robj;
1306 }
36ed4f51
RD
1307 if (!ptr) {
1308 Py_INCREF(Py_None);
1309 return Py_None;
1310 }
1311#ifdef SWIG_COBJECT_TYPES
1312 robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name);
1313#else
1314 {
1315 char result[SWIG_BUFFER_SIZE];
1316 robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ?
1317 PyString_FromString(result) : 0;
1318 }
1319#endif
1320 if (!robj || (robj == Py_None)) return robj;
1321 if (type->clientdata) {
1322 PyObject *inst;
1323 PyObject *args = Py_BuildValue((char*)"(O)", robj);
1324 Py_DECREF(robj);
1325 inst = PyObject_CallObject((PyObject *) type->clientdata, args);
1326 Py_DECREF(args);
1327 if (inst) {
1328 if (own) {
1329 PyObject_SetAttrString(inst,(char*)"thisown",Py_True);
1330 }
1331 robj = inst;
1332 }
1333 }
1334 return robj;
1335}
d14a1e28 1336
36ed4f51
RD
1337SWIGRUNTIME PyObject *
1338SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1339 PyObject *robj = 0;
1340 if (!ptr) {
1341 Py_INCREF(Py_None);
1342 return Py_None;
1343 }
1344#if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1345 robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name);
1346#else
1347 {
1348 char result[SWIG_BUFFER_SIZE];
1349 robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ?
1350 PyString_FromString(result) : 0;
1351 }
1352#endif
1353 return robj;
1354}
1355
1356/* -----------------------------------------------------------------------------*
1357 * Get type list
1358 * -----------------------------------------------------------------------------*/
d14a1e28 1359
36ed4f51
RD
1360#ifdef SWIG_LINK_RUNTIME
1361void *SWIG_ReturnGlobalTypeList(void *);
1362#endif
d14a1e28 1363
32fe5131
RD
1364SWIGRUNTIME swig_module_info *
1365SWIG_Python_GetModule(void) {
36ed4f51
RD
1366 static void *type_pointer = (void *)0;
1367 /* first check if module already created */
1368 if (!type_pointer) {
1369#ifdef SWIG_LINK_RUNTIME
1370 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
1371#else
1372 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1373 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
1374 if (PyErr_Occurred()) {
1375 PyErr_Clear();
1376 type_pointer = (void *)0;
1377 }
36ed4f51 1378#endif
32fe5131
RD
1379 }
1380 return (swig_module_info *) type_pointer;
36ed4f51 1381}
d14a1e28 1382
32fe5131
RD
1383#if PY_MAJOR_VERSION < 2
1384/* PyModule_AddObject function was introduced in Python 2.0. The following function
1385is copied out of Python/modsupport.c in python version 2.3.4 */
1386SWIGINTERN int
1387PyModule_AddObject(PyObject *m, char *name, PyObject *o)
1388{
1389 PyObject *dict;
1390 if (!PyModule_Check(m)) {
1391 PyErr_SetString(PyExc_TypeError,
1392 "PyModule_AddObject() needs module as first arg");
1393 return -1;
1394 }
1395 if (!o) {
1396 PyErr_SetString(PyExc_TypeError,
1397 "PyModule_AddObject() needs non-NULL value");
1398 return -1;
1399 }
1400
1401 dict = PyModule_GetDict(m);
1402 if (dict == NULL) {
1403 /* Internal error -- modules must have a dict! */
1404 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
1405 PyModule_GetName(m));
1406 return -1;
1407 }
1408 if (PyDict_SetItemString(dict, name, o))
1409 return -1;
1410 Py_DECREF(o);
1411 return 0;
36ed4f51 1412}
32fe5131 1413#endif
d14a1e28 1414
32fe5131
RD
1415SWIGRUNTIME void
1416SWIG_Python_SetModule(swig_module_info *swig_module) {
1417 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
1418
1419 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1420 swig_empty_runtime_method_table);
1421 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, NULL);
1422 if (pointer && module) {
1423 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
1424 }
1425}
d14a1e28 1426
d14a1e28
RD
1427#ifdef __cplusplus
1428}
1429#endif
1430
1431
d14a1e28
RD
1432/* -------- TYPES TABLE (BEGIN) -------- */
1433
32fe5131
RD
1434#define SWIGTYPE_p_char swig_types[0]
1435#define SWIGTYPE_p_form_ops_t swig_types[1]
1436#define SWIGTYPE_p_int swig_types[2]
1437#define SWIGTYPE_p_unsigned_char swig_types[3]
1438#define SWIGTYPE_p_unsigned_int swig_types[4]
1439#define SWIGTYPE_p_unsigned_long swig_types[5]
1440#define SWIGTYPE_p_wxANIHandler swig_types[6]
1441#define SWIGTYPE_p_wxAcceleratorTable swig_types[7]
1442#define SWIGTYPE_p_wxActivateEvent swig_types[8]
1443#define SWIGTYPE_p_wxBMPHandler swig_types[9]
1444#define SWIGTYPE_p_wxBoxSizer swig_types[10]
1445#define SWIGTYPE_p_wxCURHandler swig_types[11]
1446#define SWIGTYPE_p_wxChildFocusEvent swig_types[12]
1447#define SWIGTYPE_p_wxCloseEvent swig_types[13]
1448#define SWIGTYPE_p_wxCommandEvent swig_types[14]
1449#define SWIGTYPE_p_wxContextMenuEvent swig_types[15]
1450#define SWIGTYPE_p_wxControl swig_types[16]
1451#define SWIGTYPE_p_wxControlWithItems swig_types[17]
1452#define SWIGTYPE_p_wxDateEvent swig_types[18]
1453#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[19]
1454#define SWIGTYPE_p_wxDropFilesEvent swig_types[20]
1455#define SWIGTYPE_p_wxDuplexMode swig_types[21]
1456#define SWIGTYPE_p_wxEraseEvent swig_types[22]
1457#define SWIGTYPE_p_wxEvent swig_types[23]
1458#define SWIGTYPE_p_wxEvtHandler swig_types[24]
1459#define SWIGTYPE_p_wxFSFile swig_types[25]
1460#define SWIGTYPE_p_wxFileSystem swig_types[26]
1461#define SWIGTYPE_p_wxFlexGridSizer swig_types[27]
1462#define SWIGTYPE_p_wxFocusEvent swig_types[28]
1463#define SWIGTYPE_p_wxGBSizerItem swig_types[29]
1464#define SWIGTYPE_p_wxGIFHandler swig_types[30]
1465#define SWIGTYPE_p_wxGLCanvas swig_types[31]
1466#define SWIGTYPE_p_wxGLContext swig_types[32]
1467#define SWIGTYPE_p_wxGridBagSizer swig_types[33]
1468#define SWIGTYPE_p_wxGridSizer swig_types[34]
1469#define SWIGTYPE_p_wxICOHandler swig_types[35]
1470#define SWIGTYPE_p_wxIconizeEvent swig_types[36]
1471#define SWIGTYPE_p_wxIdleEvent swig_types[37]
1472#define SWIGTYPE_p_wxImage swig_types[38]
1473#define SWIGTYPE_p_wxImageHandler swig_types[39]
1474#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[40]
1475#define SWIGTYPE_p_wxInitDialogEvent swig_types[41]
1476#define SWIGTYPE_p_wxJPEGHandler swig_types[42]
1477#define SWIGTYPE_p_wxKeyEvent swig_types[43]
1478#define SWIGTYPE_p_wxLayoutConstraints swig_types[44]
1479#define SWIGTYPE_p_wxMaximizeEvent swig_types[45]
1480#define SWIGTYPE_p_wxMenu swig_types[46]
1481#define SWIGTYPE_p_wxMenuBar swig_types[47]
1482#define SWIGTYPE_p_wxMenuEvent swig_types[48]
1483#define SWIGTYPE_p_wxMenuItem swig_types[49]
1484#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[50]
1485#define SWIGTYPE_p_wxMouseEvent swig_types[51]
1486#define SWIGTYPE_p_wxMoveEvent swig_types[52]
1487#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[53]
1488#define SWIGTYPE_p_wxNcPaintEvent swig_types[54]
1489#define SWIGTYPE_p_wxNotifyEvent swig_types[55]
1490#define SWIGTYPE_p_wxObject swig_types[56]
1491#define SWIGTYPE_p_wxPCXHandler swig_types[57]
1492#define SWIGTYPE_p_wxPNGHandler swig_types[58]
1493#define SWIGTYPE_p_wxPNMHandler swig_types[59]
1494#define SWIGTYPE_p_wxPaintEvent swig_types[60]
1495#define SWIGTYPE_p_wxPalette swig_types[61]
1496#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[62]
1497#define SWIGTYPE_p_wxPaperSize swig_types[63]
1498#define SWIGTYPE_p_wxPyApp swig_types[64]
1499#define SWIGTYPE_p_wxPyCommandEvent swig_types[65]
1500#define SWIGTYPE_p_wxPyEvent swig_types[66]
1501#define SWIGTYPE_p_wxPyImageHandler swig_types[67]
1502#define SWIGTYPE_p_wxPySizer swig_types[68]
1503#define SWIGTYPE_p_wxPyValidator swig_types[69]
1504#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[70]
1505#define SWIGTYPE_p_wxScrollEvent swig_types[71]
1506#define SWIGTYPE_p_wxScrollWinEvent swig_types[72]
1507#define SWIGTYPE_p_wxSetCursorEvent swig_types[73]
1508#define SWIGTYPE_p_wxShowEvent swig_types[74]
1509#define SWIGTYPE_p_wxSizeEvent swig_types[75]
1510#define SWIGTYPE_p_wxSizer swig_types[76]
1511#define SWIGTYPE_p_wxSizerItem swig_types[77]
1512#define SWIGTYPE_p_wxStaticBoxSizer swig_types[78]
1513#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[79]
1514#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[80]
1515#define SWIGTYPE_p_wxTIFFHandler swig_types[81]
1516#define SWIGTYPE_p_wxUpdateUIEvent swig_types[82]
1517#define SWIGTYPE_p_wxValidator swig_types[83]
1518#define SWIGTYPE_p_wxWindow swig_types[84]
1519#define SWIGTYPE_p_wxWindowCreateEvent swig_types[85]
1520#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[86]
1521#define SWIGTYPE_p_wxXPMHandler swig_types[87]
1522#define SWIGTYPE_ptrdiff_t swig_types[88]
1523#define SWIGTYPE_std__ptrdiff_t swig_types[89]
1524#define SWIGTYPE_unsigned_int swig_types[90]
1525static swig_type_info *swig_types[92];
1526static swig_module_info swig_module = {swig_types, 91, 0, 0, 0, 0};
1527#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1528#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d14a1e28
RD
1529
1530/* -------- TYPES TABLE (END) -------- */
1531
1532
1533/*-----------------------------------------------
1534 @(target):= _glcanvas.so
1535 ------------------------------------------------*/
1536#define SWIG_init init_glcanvas
1537
1538#define SWIG_name "_glcanvas"
1539
1540#include "wx/wxPython/wxPython.h"
1541#include "wx/wxPython/pyclasses.h"
1542
1543#include <wx/glcanvas.h>
1544
d14a1e28 1545
cbd72d4f
RD
1546 static const wxString wxPyGLCanvasNameStr(wxT("GLCanvas"));
1547 static const wxString wxPyEmptyString(wxEmptyString);
8edf1c75 1548
c370783e 1549#include <limits.h>
8edf1c75 1550
2f4c0a16 1551
36ed4f51 1552SWIGINTERN int
c370783e
RD
1553 SWIG_CheckLongInRange(long value, long min_value, long max_value,
1554 const char *errmsg)
2f4c0a16 1555{
c370783e
RD
1556 if (value < min_value) {
1557 if (errmsg) {
1558 PyErr_Format(PyExc_OverflowError,
1559 "value %ld is less than '%s' minimum %ld",
1560 value, errmsg, min_value);
1561 }
1562 return 0;
1563 } else if (value > max_value) {
1564 if (errmsg) {
1565 PyErr_Format(PyExc_OverflowError,
1566 "value %ld is greater than '%s' maximum %ld",
1567 value, errmsg, max_value);
1568 }
2f4c0a16 1569 return 0;
2f4c0a16 1570 }
c370783e 1571 return 1;
2f4c0a16
RD
1572}
1573
8edf1c75 1574
36ed4f51 1575SWIGINTERN int
c370783e 1576SWIG_AsVal_long(PyObject* obj, long* val)
2f4c0a16 1577{
c370783e
RD
1578 if (PyNumber_Check(obj)) {
1579 if (val) *val = PyInt_AsLong(obj);
1580 return 1;
2f4c0a16 1581 }
69223c70 1582 else {
36ed4f51 1583 SWIG_type_error("number", obj);
69223c70 1584 }
c370783e 1585 return 0;
8edf1c75
RD
1586}
1587
2f4c0a16
RD
1588
1589#if INT_MAX != LONG_MAX
36ed4f51 1590SWIGINTERN int
c370783e 1591 SWIG_AsVal_int(PyObject *obj, int *val)
2f4c0a16 1592{
36ed4f51 1593 const char* errmsg = val ? "int" : (char*)0;
c370783e
RD
1594 long v;
1595 if (SWIG_AsVal_long(obj, &v)) {
1596 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
32fe5131 1597 if (val) *val = static_cast<int >(v);
c370783e
RD
1598 return 1;
1599 } else {
1600 return 0;
1601 }
1602 } else {
1603 PyErr_Clear();
1604 }
1605 if (val) {
36ed4f51 1606 SWIG_type_error(errmsg, obj);
c370783e
RD
1607 }
1608 return 0;
2f4c0a16
RD
1609}
1610#else
32fe5131 1611SWIGINTERNINLINE int
c370783e
RD
1612 SWIG_AsVal_int(PyObject *obj, int *val)
1613{
1614 return SWIG_AsVal_long(obj,(long*)val);
1615}
2f4c0a16
RD
1616#endif
1617
1618
36ed4f51 1619SWIGINTERN int
c370783e 1620 SWIG_AsVal_bool(PyObject *obj, bool *val)
2f4c0a16 1621{
c370783e
RD
1622 if (obj == Py_True) {
1623 if (val) *val = true;
1624 return 1;
1625 }
1626 if (obj == Py_False) {
1627 if (val) *val = false;
2f4c0a16
RD
1628 return 1;
1629 }
c370783e
RD
1630 int res = 0;
1631 if (SWIG_AsVal_int(obj, &res)) {
36ed4f51 1632 if (val) *val = res ? true : false;
c370783e 1633 return 1;
36ed4f51
RD
1634 } else {
1635 PyErr_Clear();
1636 }
c370783e 1637 if (val) {
36ed4f51 1638 SWIG_type_error("bool", obj);
c370783e
RD
1639 }
1640 return 0;
2f4c0a16
RD
1641}
1642
1643
32fe5131 1644SWIGINTERNINLINE bool
c370783e
RD
1645SWIG_As_bool(PyObject* obj)
1646{
1647 bool v;
1648 if (!SWIG_AsVal_bool(obj, &v)) {
1649 /*
36ed4f51 1650 this is needed to make valgrind/purify happier.
c370783e
RD
1651 */
1652 memset((void*)&v, 0, sizeof(bool));
1653 }
1654 return v;
1655}
1656
1657
32fe5131 1658SWIGINTERNINLINE int
c370783e 1659SWIG_Check_bool(PyObject* obj)
2f4c0a16 1660{
c370783e
RD
1661 return SWIG_AsVal_bool(obj, (bool*)0);
1662}
1663
36ed4f51 1664static wxGLContext *new_wxGLContext(bool isRGB,wxGLCanvas *win,wxPalette const &palette=wxNullPalette,wxGLContext const *other=NULL){
c370783e
RD
1665 AGLPixelFormat fmt; // TODO: How should this be initialized?
1666 return new wxGLContext(fmt, win, palette, other);
1667 }
1668
32fe5131 1669 /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/
36ed4f51
RD
1670#define SWIG_From_int PyInt_FromLong
1671/*@@*/
1672
1673
32fe5131 1674SWIGINTERNINLINE int
c370783e
RD
1675SWIG_As_int(PyObject* obj)
1676{
1677 int v;
1678 if (!SWIG_AsVal_int(obj, &v)) {
1679 /*
36ed4f51 1680 this is needed to make valgrind/purify happier.
c370783e
RD
1681 */
1682 memset((void*)&v, 0, sizeof(int));
1683 }
1684 return v;
1685}
1686
1687
32fe5131 1688SWIGINTERNINLINE long
c370783e
RD
1689SWIG_As_long(PyObject* obj)
1690{
1691 long v;
1692 if (!SWIG_AsVal_long(obj, &v)) {
1693 /*
36ed4f51 1694 this is needed to make valgrind/purify happier.
c370783e
RD
1695 */
1696 memset((void*)&v, 0, sizeof(long));
2f4c0a16 1697 }
c370783e
RD
1698 return v;
1699}
1700
1701
32fe5131 1702SWIGINTERNINLINE int
c370783e
RD
1703SWIG_Check_int(PyObject* obj)
1704{
1705 return SWIG_AsVal_int(obj, (int*)0);
1706}
1707
1708
32fe5131 1709SWIGINTERNINLINE int
c370783e
RD
1710SWIG_Check_long(PyObject* obj)
1711{
1712 return SWIG_AsVal_long(obj, (long*)0);
2f4c0a16
RD
1713}
1714
d14a1e28
RD
1715#ifdef __cplusplus
1716extern "C" {
1717#endif
c370783e 1718static int _wrap_GLCanvasNameStr_set(PyObject *) {
cbd72d4f
RD
1719 PyErr_SetString(PyExc_TypeError,"Variable GLCanvasNameStr is read-only.");
1720 return 1;
1721}
1722
1723
36ed4f51 1724static PyObject *_wrap_GLCanvasNameStr_get(void) {
32fe5131 1725 PyObject *pyobj = NULL;
cbd72d4f
RD
1726
1727 {
1728#if wxUSE_UNICODE
1729 pyobj = PyUnicode_FromWideChar((&wxPyGLCanvasNameStr)->c_str(), (&wxPyGLCanvasNameStr)->Len());
1730#else
1731 pyobj = PyString_FromStringAndSize((&wxPyGLCanvasNameStr)->c_str(), (&wxPyGLCanvasNameStr)->Len());
1732#endif
1733 }
1734 return pyobj;
1735}
1736
1737
c370783e 1738static PyObject *_wrap_new_GLContext(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 1739 PyObject *resultobj = NULL;
d14a1e28
RD
1740 bool arg1 ;
1741 wxGLCanvas *arg2 = (wxGLCanvas *) 0 ;
1742 wxPalette const &arg3_defvalue = wxNullPalette ;
1743 wxPalette *arg3 = (wxPalette *) &arg3_defvalue ;
1744 wxGLContext *arg4 = (wxGLContext *) NULL ;
1745 wxGLContext *result;
1746 PyObject * obj0 = 0 ;
1747 PyObject * obj1 = 0 ;
1748 PyObject * obj2 = 0 ;
1749 PyObject * obj3 = 0 ;
1750 char *kwnames[] = {
1751 (char *) "isRGB",(char *) "win",(char *) "palette",(char *) "other", NULL
1752 };
1753
1754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_GLContext",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
36ed4f51 1755 {
32fe5131 1756 arg1 = static_cast<bool >(SWIG_As_bool(obj0));
36ed4f51
RD
1757 if (SWIG_arg_fail(1)) SWIG_fail;
1758 }
1759 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxGLCanvas, SWIG_POINTER_EXCEPTION | 0);
1760 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28 1761 if (obj2) {
36ed4f51
RD
1762 {
1763 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
1764 if (SWIG_arg_fail(3)) SWIG_fail;
1765 if (arg3 == NULL) {
1766 SWIG_null_ref("wxPalette");
1767 }
1768 if (SWIG_arg_fail(3)) SWIG_fail;
d14a1e28
RD
1769 }
1770 }
1771 if (obj3) {
36ed4f51
RD
1772 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxGLContext, SWIG_POINTER_EXCEPTION | 0);
1773 if (SWIG_arg_fail(4)) SWIG_fail;
d14a1e28
RD
1774 }
1775 {
0439c23b 1776 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
1777 PyThreadState* __tstate = wxPyBeginAllowThreads();
1778 result = (wxGLContext *)new_wxGLContext(arg1,arg2,(wxPalette const &)*arg3,(wxGLContext const *)arg4);
1779
1780 wxPyEndAllowThreads(__tstate);
110da5b0 1781 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 1782 }
2f4c0a16 1783 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGLContext, 1);
d14a1e28
RD
1784 return resultobj;
1785 fail:
1786 return NULL;
1787}
1788
1789
c370783e 1790static PyObject *_wrap_delete_GLContext(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 1791 PyObject *resultobj = NULL;
d14a1e28
RD
1792 wxGLContext *arg1 = (wxGLContext *) 0 ;
1793 PyObject * obj0 = 0 ;
1794 char *kwnames[] = {
1795 (char *) "self", NULL
1796 };
1797
1798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GLContext",kwnames,&obj0)) goto fail;
36ed4f51
RD
1799 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGLContext, SWIG_POINTER_EXCEPTION | 0);
1800 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
1801 {
1802 PyThreadState* __tstate = wxPyBeginAllowThreads();
1803 delete arg1;
1804
1805 wxPyEndAllowThreads(__tstate);
1806 if (PyErr_Occurred()) SWIG_fail;
1807 }
1808 Py_INCREF(Py_None); resultobj = Py_None;
1809 return resultobj;
1810 fail:
1811 return NULL;
1812}
1813
1814
c370783e 1815static PyObject *_wrap_GLContext_SetCurrent(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 1816 PyObject *resultobj = NULL;
d14a1e28
RD
1817 wxGLContext *arg1 = (wxGLContext *) 0 ;
1818 PyObject * obj0 = 0 ;
1819 char *kwnames[] = {
1820 (char *) "self", NULL
1821 };
1822
1823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_SetCurrent",kwnames,&obj0)) goto fail;
36ed4f51
RD
1824 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGLContext, SWIG_POINTER_EXCEPTION | 0);
1825 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
1826 {
1827 PyThreadState* __tstate = wxPyBeginAllowThreads();
1828 (arg1)->SetCurrent();
1829
1830 wxPyEndAllowThreads(__tstate);
1831 if (PyErr_Occurred()) SWIG_fail;
1832 }
1833 Py_INCREF(Py_None); resultobj = Py_None;
1834 return resultobj;
1835 fail:
1836 return NULL;
1837}
1838
1839
c370783e 1840static PyObject *_wrap_GLContext_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 1841 PyObject *resultobj = NULL;
d14a1e28
RD
1842 wxGLContext *arg1 = (wxGLContext *) 0 ;
1843 wxString *arg2 = 0 ;
b411df4a 1844 bool temp2 = false ;
d14a1e28
RD
1845 PyObject * obj0 = 0 ;
1846 PyObject * obj1 = 0 ;
1847 char *kwnames[] = {
1848 (char *) "self",(char *) "colour", NULL
1849 };
1850
1851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GLContext_SetColour",kwnames,&obj0,&obj1)) goto fail;
36ed4f51
RD
1852 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGLContext, SWIG_POINTER_EXCEPTION | 0);
1853 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
1854 {
1855 arg2 = wxString_in_helper(obj1);
1856 if (arg2 == NULL) SWIG_fail;
b411df4a 1857 temp2 = true;
d14a1e28
RD
1858 }
1859 {
1860 PyThreadState* __tstate = wxPyBeginAllowThreads();
1861 (arg1)->SetColour((wxString const &)*arg2);
1862
1863 wxPyEndAllowThreads(__tstate);
1864 if (PyErr_Occurred()) SWIG_fail;
1865 }
1866 Py_INCREF(Py_None); resultobj = Py_None;
1867 {
1868 if (temp2)
1869 delete arg2;
1870 }
1871 return resultobj;
1872 fail:
1873 {
1874 if (temp2)
1875 delete arg2;
1876 }
1877 return NULL;
1878}
1879
1880
c370783e 1881static PyObject *_wrap_GLContext_SwapBuffers(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 1882 PyObject *resultobj = NULL;
d14a1e28
RD
1883 wxGLContext *arg1 = (wxGLContext *) 0 ;
1884 PyObject * obj0 = 0 ;
1885 char *kwnames[] = {
1886 (char *) "self", NULL
1887 };
1888
1889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_SwapBuffers",kwnames,&obj0)) goto fail;
36ed4f51
RD
1890 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGLContext, SWIG_POINTER_EXCEPTION | 0);
1891 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
1892 {
1893 PyThreadState* __tstate = wxPyBeginAllowThreads();
1894 (arg1)->SwapBuffers();
1895
1896 wxPyEndAllowThreads(__tstate);
1897 if (PyErr_Occurred()) SWIG_fail;
1898 }
1899 Py_INCREF(Py_None); resultobj = Py_None;
1900 return resultobj;
1901 fail:
1902 return NULL;
1903}
1904
1905
c370783e 1906static PyObject *_wrap_GLContext_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 1907 PyObject *resultobj = NULL;
d14a1e28
RD
1908 wxGLContext *arg1 = (wxGLContext *) 0 ;
1909 wxWindow *result;
1910 PyObject * obj0 = 0 ;
1911 char *kwnames[] = {
1912 (char *) "self", NULL
1913 };
1914
1915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLContext_GetWindow",kwnames,&obj0)) goto fail;
36ed4f51
RD
1916 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGLContext, SWIG_POINTER_EXCEPTION | 0);
1917 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
1918 {
1919 PyThreadState* __tstate = wxPyBeginAllowThreads();
1920 result = (wxWindow *)(arg1)->GetWindow();
1921
1922 wxPyEndAllowThreads(__tstate);
1923 if (PyErr_Occurred()) SWIG_fail;
1924 }
1925 {
412d302d 1926 resultobj = wxPyMake_wxObject(result, 0);
d14a1e28
RD
1927 }
1928 return resultobj;
1929 fail:
1930 return NULL;
1931}
1932
1933
c370783e 1934static PyObject * GLContext_swigregister(PyObject *, PyObject *args) {
d14a1e28
RD
1935 PyObject *obj;
1936 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1937 SWIG_TypeClientData(SWIGTYPE_p_wxGLContext, obj);
1938 Py_INCREF(obj);
1939 return Py_BuildValue((char *)"");
1940}
c370783e 1941static PyObject *_wrap_new_GLCanvas(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 1942 PyObject *resultobj = NULL;
d14a1e28 1943 wxWindow *arg1 = (wxWindow *) 0 ;
423f194a 1944 int arg2 = (int) -1 ;
d14a1e28
RD
1945 wxPoint const &arg3_defvalue = wxDefaultPosition ;
1946 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
1947 wxSize const &arg4_defvalue = wxDefaultSize ;
1948 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
1949 long arg5 = (long) 0 ;
1950 wxString const &arg6_defvalue = wxPyGLCanvasNameStr ;
1951 wxString *arg6 = (wxString *) &arg6_defvalue ;
1952 int *arg7 = (int *) NULL ;
1953 wxPalette const &arg8_defvalue = wxNullPalette ;
1954 wxPalette *arg8 = (wxPalette *) &arg8_defvalue ;
1955 wxGLCanvas *result;
1956 wxPoint temp3 ;
1957 wxSize temp4 ;
b411df4a 1958 bool temp6 = false ;
d14a1e28
RD
1959 int *temp7 ;
1960 PyObject * obj0 = 0 ;
8edf1c75 1961 PyObject * obj1 = 0 ;
d14a1e28
RD
1962 PyObject * obj2 = 0 ;
1963 PyObject * obj3 = 0 ;
8edf1c75 1964 PyObject * obj4 = 0 ;
d14a1e28
RD
1965 PyObject * obj5 = 0 ;
1966 PyObject * obj6 = 0 ;
1967 PyObject * obj7 = 0 ;
1968 char *kwnames[] = {
1969 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name",(char *) "attribList",(char *) "palette", NULL
1970 };
1971
8edf1c75 1972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_GLCanvas",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
36ed4f51
RD
1973 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
1974 if (SWIG_arg_fail(1)) SWIG_fail;
8edf1c75 1975 if (obj1) {
36ed4f51 1976 {
32fe5131 1977 arg2 = static_cast<int >(SWIG_As_int(obj1));
36ed4f51
RD
1978 if (SWIG_arg_fail(2)) SWIG_fail;
1979 }
8edf1c75 1980 }
d14a1e28
RD
1981 if (obj2) {
1982 {
1983 arg3 = &temp3;
1984 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
1985 }
1986 }
1987 if (obj3) {
1988 {
1989 arg4 = &temp4;
1990 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
1991 }
1992 }
8edf1c75 1993 if (obj4) {
36ed4f51 1994 {
32fe5131 1995 arg5 = static_cast<long >(SWIG_As_long(obj4));
36ed4f51
RD
1996 if (SWIG_arg_fail(5)) SWIG_fail;
1997 }
8edf1c75 1998 }
d14a1e28
RD
1999 if (obj5) {
2000 {
2001 arg6 = wxString_in_helper(obj5);
2002 if (arg6 == NULL) SWIG_fail;
b411df4a 2003 temp6 = true;
d14a1e28
RD
2004 }
2005 }
2006 if (obj6) {
2007 {
2008 int i;
2009 if (PySequence_Check(obj6)) {
2010 int size = PyObject_Length(obj6);
2011 temp7 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int));
2012 for (i = 0; i < size; i++) {
2013 temp7[i] = PyInt_AsLong(PySequence_GetItem(obj6, i));
2014 }
2015 temp7[size] = 0;
2016 arg7 = temp7;
2017 }
2018 }
2019 }
2020 if (obj7) {
36ed4f51
RD
2021 {
2022 SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
2023 if (SWIG_arg_fail(8)) SWIG_fail;
2024 if (arg8 == NULL) {
2025 SWIG_null_ref("wxPalette");
2026 }
2027 if (SWIG_arg_fail(8)) SWIG_fail;
d14a1e28
RD
2028 }
2029 }
2030 {
0439c23b 2031 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
2032 PyThreadState* __tstate = wxPyBeginAllowThreads();
2033 result = (wxGLCanvas *)new wxGLCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6,arg7,(wxPalette const &)*arg8);
2034
2035 wxPyEndAllowThreads(__tstate);
110da5b0 2036 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 2037 }
2f4c0a16 2038 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGLCanvas, 1);
d14a1e28
RD
2039 {
2040 if (temp6)
2041 delete arg6;
2042 }
2043 {
2044 delete [] arg7;
2045 }
2046 return resultobj;
2047 fail:
2048 {
2049 if (temp6)
2050 delete arg6;
2051 }
2052 {
2053 delete [] arg7;
2054 }
2055 return NULL;
2056}
2057
2058
c370783e 2059static PyObject *_wrap_new_GLCanvasWithContext(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2060 PyObject *resultobj = NULL;
d14a1e28
RD
2061 wxWindow *arg1 = (wxWindow *) 0 ;
2062 wxGLContext *arg2 = (wxGLContext *) NULL ;
423f194a 2063 int arg3 = (int) -1 ;
d14a1e28
RD
2064 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2065 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2066 wxSize const &arg5_defvalue = wxDefaultSize ;
2067 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2068 long arg6 = (long) 0 ;
2069 wxString const &arg7_defvalue = wxPyGLCanvasNameStr ;
2070 wxString *arg7 = (wxString *) &arg7_defvalue ;
2071 int *arg8 = (int *) NULL ;
2072 wxPalette const &arg9_defvalue = wxNullPalette ;
2073 wxPalette *arg9 = (wxPalette *) &arg9_defvalue ;
2074 wxGLCanvas *result;
2075 wxPoint temp4 ;
2076 wxSize temp5 ;
b411df4a 2077 bool temp7 = false ;
d14a1e28
RD
2078 int *temp8 ;
2079 PyObject * obj0 = 0 ;
2080 PyObject * obj1 = 0 ;
8edf1c75 2081 PyObject * obj2 = 0 ;
d14a1e28
RD
2082 PyObject * obj3 = 0 ;
2083 PyObject * obj4 = 0 ;
8edf1c75 2084 PyObject * obj5 = 0 ;
d14a1e28
RD
2085 PyObject * obj6 = 0 ;
2086 PyObject * obj7 = 0 ;
2087 PyObject * obj8 = 0 ;
2088 char *kwnames[] = {
2089 (char *) "parent",(char *) "shared",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name",(char *) "attribList",(char *) "palette", NULL
2090 };
2091
8edf1c75 2092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GLCanvasWithContext",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
36ed4f51
RD
2093 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
2094 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28 2095 if (obj1) {
36ed4f51
RD
2096 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxGLContext, SWIG_POINTER_EXCEPTION | 0);
2097 if (SWIG_arg_fail(2)) SWIG_fail;
d14a1e28 2098 }
8edf1c75 2099 if (obj2) {
36ed4f51 2100 {
32fe5131 2101 arg3 = static_cast<int >(SWIG_As_int(obj2));
36ed4f51
RD
2102 if (SWIG_arg_fail(3)) SWIG_fail;
2103 }
8edf1c75 2104 }
d14a1e28
RD
2105 if (obj3) {
2106 {
2107 arg4 = &temp4;
2108 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2109 }
2110 }
2111 if (obj4) {
2112 {
2113 arg5 = &temp5;
2114 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2115 }
2116 }
8edf1c75 2117 if (obj5) {
36ed4f51 2118 {
32fe5131 2119 arg6 = static_cast<long >(SWIG_As_long(obj5));
36ed4f51
RD
2120 if (SWIG_arg_fail(6)) SWIG_fail;
2121 }
8edf1c75 2122 }
d14a1e28
RD
2123 if (obj6) {
2124 {
2125 arg7 = wxString_in_helper(obj6);
2126 if (arg7 == NULL) SWIG_fail;
b411df4a 2127 temp7 = true;
d14a1e28
RD
2128 }
2129 }
2130 if (obj7) {
2131 {
2132 int i;
2133 if (PySequence_Check(obj7)) {
2134 int size = PyObject_Length(obj7);
2135 temp8 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int));
2136 for (i = 0; i < size; i++) {
2137 temp8[i] = PyInt_AsLong(PySequence_GetItem(obj7, i));
2138 }
2139 temp8[size] = 0;
2140 arg8 = temp8;
2141 }
2142 }
2143 }
2144 if (obj8) {
36ed4f51
RD
2145 {
2146 SWIG_Python_ConvertPtr(obj8, (void **)&arg9, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
2147 if (SWIG_arg_fail(9)) SWIG_fail;
2148 if (arg9 == NULL) {
2149 SWIG_null_ref("wxPalette");
2150 }
2151 if (SWIG_arg_fail(9)) SWIG_fail;
d14a1e28
RD
2152 }
2153 }
2154 {
0439c23b 2155 if (!wxPyCheckForApp()) SWIG_fail;
d14a1e28
RD
2156 PyThreadState* __tstate = wxPyBeginAllowThreads();
2157 result = (wxGLCanvas *)new wxGLCanvas(arg1,(wxGLContext const *)arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxPalette const &)*arg9);
2158
2159 wxPyEndAllowThreads(__tstate);
110da5b0 2160 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 2161 }
2f4c0a16 2162 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGLCanvas, 1);
d14a1e28
RD
2163 {
2164 if (temp7)
2165 delete arg7;
2166 }
2167 {
2168 delete [] arg8;
2169 }
2170 return resultobj;
2171 fail:
2172 {
2173 if (temp7)
2174 delete arg7;
2175 }
2176 {
2177 delete [] arg8;
2178 }
2179 return NULL;
2180}
2181
2182
c370783e 2183static PyObject *_wrap_GLCanvas_SetCurrent(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2184 PyObject *resultobj = NULL;
d14a1e28
RD
2185 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
2186 PyObject * obj0 = 0 ;
2187 char *kwnames[] = {
2188 (char *) "self", NULL
2189 };
2190
2191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_SetCurrent",kwnames,&obj0)) goto fail;
36ed4f51
RD
2192 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGLCanvas, SWIG_POINTER_EXCEPTION | 0);
2193 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2194 {
2195 PyThreadState* __tstate = wxPyBeginAllowThreads();
2196 (arg1)->SetCurrent();
2197
2198 wxPyEndAllowThreads(__tstate);
2199 if (PyErr_Occurred()) SWIG_fail;
2200 }
2201 Py_INCREF(Py_None); resultobj = Py_None;
2202 return resultobj;
2203 fail:
2204 return NULL;
2205}
2206
2207
c370783e 2208static PyObject *_wrap_GLCanvas_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2209 PyObject *resultobj = NULL;
d14a1e28
RD
2210 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
2211 wxString *arg2 = 0 ;
b411df4a 2212 bool temp2 = false ;
d14a1e28
RD
2213 PyObject * obj0 = 0 ;
2214 PyObject * obj1 = 0 ;
2215 char *kwnames[] = {
2216 (char *) "self",(char *) "colour", NULL
2217 };
2218
2219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GLCanvas_SetColour",kwnames,&obj0,&obj1)) goto fail;
36ed4f51
RD
2220 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGLCanvas, SWIG_POINTER_EXCEPTION | 0);
2221 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2222 {
2223 arg2 = wxString_in_helper(obj1);
2224 if (arg2 == NULL) SWIG_fail;
b411df4a 2225 temp2 = true;
d14a1e28
RD
2226 }
2227 {
2228 PyThreadState* __tstate = wxPyBeginAllowThreads();
2229 (arg1)->SetColour((wxString const &)*arg2);
2230
2231 wxPyEndAllowThreads(__tstate);
2232 if (PyErr_Occurred()) SWIG_fail;
2233 }
2234 Py_INCREF(Py_None); resultobj = Py_None;
2235 {
2236 if (temp2)
2237 delete arg2;
2238 }
2239 return resultobj;
2240 fail:
2241 {
2242 if (temp2)
2243 delete arg2;
2244 }
2245 return NULL;
2246}
2247
2248
c370783e 2249static PyObject *_wrap_GLCanvas_SwapBuffers(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2250 PyObject *resultobj = NULL;
d14a1e28
RD
2251 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
2252 PyObject * obj0 = 0 ;
2253 char *kwnames[] = {
2254 (char *) "self", NULL
2255 };
2256
2257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_SwapBuffers",kwnames,&obj0)) goto fail;
36ed4f51
RD
2258 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGLCanvas, SWIG_POINTER_EXCEPTION | 0);
2259 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2260 {
2261 PyThreadState* __tstate = wxPyBeginAllowThreads();
2262 (arg1)->SwapBuffers();
2263
2264 wxPyEndAllowThreads(__tstate);
2265 if (PyErr_Occurred()) SWIG_fail;
2266 }
2267 Py_INCREF(Py_None); resultobj = Py_None;
2268 return resultobj;
2269 fail:
2270 return NULL;
2271}
2272
2273
c370783e 2274static PyObject *_wrap_GLCanvas_GetContext(PyObject *, PyObject *args, PyObject *kwargs) {
32fe5131 2275 PyObject *resultobj = NULL;
d14a1e28
RD
2276 wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
2277 wxGLContext *result;
2278 PyObject * obj0 = 0 ;
2279 char *kwnames[] = {
2280 (char *) "self", NULL
2281 };
2282
2283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GLCanvas_GetContext",kwnames,&obj0)) goto fail;
36ed4f51
RD
2284 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGLCanvas, SWIG_POINTER_EXCEPTION | 0);
2285 if (SWIG_arg_fail(1)) SWIG_fail;
d14a1e28
RD
2286 {
2287 PyThreadState* __tstate = wxPyBeginAllowThreads();
2288 result = (wxGLContext *)(arg1)->GetContext();
2289
2290 wxPyEndAllowThreads(__tstate);
2291 if (PyErr_Occurred()) SWIG_fail;
2292 }
2f4c0a16 2293 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGLContext, 0);
d14a1e28
RD
2294 return resultobj;
2295 fail:
2296 return NULL;
2297}
2298
2299
c370783e 2300static PyObject * GLCanvas_swigregister(PyObject *, PyObject *args) {
d14a1e28
RD
2301 PyObject *obj;
2302 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2303 SWIG_TypeClientData(SWIGTYPE_p_wxGLCanvas, obj);
2304 Py_INCREF(obj);
2305 return Py_BuildValue((char *)"");
2306}
2307static PyMethodDef SwigMethods[] = {
36ed4f51
RD
2308 { (char *)"new_GLContext", (PyCFunction) _wrap_new_GLContext, METH_VARARGS | METH_KEYWORDS, NULL},
2309 { (char *)"delete_GLContext", (PyCFunction) _wrap_delete_GLContext, METH_VARARGS | METH_KEYWORDS, NULL},
2310 { (char *)"GLContext_SetCurrent", (PyCFunction) _wrap_GLContext_SetCurrent, METH_VARARGS | METH_KEYWORDS, NULL},
2311 { (char *)"GLContext_SetColour", (PyCFunction) _wrap_GLContext_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
2312 { (char *)"GLContext_SwapBuffers", (PyCFunction) _wrap_GLContext_SwapBuffers, METH_VARARGS | METH_KEYWORDS, NULL},
2313 { (char *)"GLContext_GetWindow", (PyCFunction) _wrap_GLContext_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
2314 { (char *)"GLContext_swigregister", GLContext_swigregister, METH_VARARGS, NULL},
2315 { (char *)"new_GLCanvas", (PyCFunction) _wrap_new_GLCanvas, METH_VARARGS | METH_KEYWORDS, NULL},
2316 { (char *)"new_GLCanvasWithContext", (PyCFunction) _wrap_new_GLCanvasWithContext, METH_VARARGS | METH_KEYWORDS, NULL},
2317 { (char *)"GLCanvas_SetCurrent", (PyCFunction) _wrap_GLCanvas_SetCurrent, METH_VARARGS | METH_KEYWORDS, NULL},
2318 { (char *)"GLCanvas_SetColour", (PyCFunction) _wrap_GLCanvas_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
2319 { (char *)"GLCanvas_SwapBuffers", (PyCFunction) _wrap_GLCanvas_SwapBuffers, METH_VARARGS | METH_KEYWORDS, NULL},
2320 { (char *)"GLCanvas_GetContext", (PyCFunction) _wrap_GLCanvas_GetContext, METH_VARARGS | METH_KEYWORDS, NULL},
2321 { (char *)"GLCanvas_swigregister", GLCanvas_swigregister, METH_VARARGS, NULL},
c370783e 2322 { NULL, NULL, 0, NULL }
d14a1e28
RD
2323};
2324
2325
2326/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
2327
d14a1e28
RD
2328static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
2329 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
2330}
2331static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
2332 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
2333}
2334static void *_p_wxSizerItemTo_p_wxObject(void *x) {
2335 return (void *)((wxObject *) ((wxSizerItem *) x));
2336}
2337static void *_p_wxScrollEventTo_p_wxObject(void *x) {
2338 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
2339}
2340static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
2341 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
2342}
2343static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
2344 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
2345}
2346static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
2347 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
2348}
2349static void *_p_wxSizerTo_p_wxObject(void *x) {
2350 return (void *)((wxObject *) ((wxSizer *) x));
2351}
2352static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
2353 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
2354}
2355static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
2356 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
2357}
2358static void *_p_wxEventTo_p_wxObject(void *x) {
2359 return (void *)((wxObject *) ((wxEvent *) x));
2360}
2361static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
2362 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
2363}
2364static void *_p_wxGridSizerTo_p_wxObject(void *x) {
2365 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
2366}
2367static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
2368 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
2369}
2370static void *_p_wxPaintEventTo_p_wxObject(void *x) {
2371 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
2372}
2373static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
2374 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
2375}
2376static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
2377 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
2378}
2379static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
2380 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
2381}
2382static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
2383 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
2384}
2385static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
2386 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
2387}
2388static void *_p_wxControlTo_p_wxObject(void *x) {
2389 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
2390}
2391static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
2392 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
2393}
2394static void *_p_wxFSFileTo_p_wxObject(void *x) {
2395 return (void *)((wxObject *) ((wxFSFile *) x));
2396}
2397static void *_p_wxPySizerTo_p_wxObject(void *x) {
2398 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
2399}
2400static void *_p_wxPyEventTo_p_wxObject(void *x) {
2401 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
2402}
2403static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
2404 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
2405}
2406static void *_p_wxGLContextTo_p_wxObject(void *x) {
2407 return (void *)((wxObject *) ((wxGLContext *) x));
2408}
2409static void *_p_wxShowEventTo_p_wxObject(void *x) {
2410 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
2411}
2412static void *_p_wxMenuItemTo_p_wxObject(void *x) {
2413 return (void *)((wxObject *) ((wxMenuItem *) x));
2414}
53aa7709
RD
2415static void *_p_wxDateEventTo_p_wxObject(void *x) {
2416 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
2417}
d14a1e28
RD
2418static void *_p_wxIdleEventTo_p_wxObject(void *x) {
2419 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
2420}
2421static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
2422 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
2423}
2424static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
2425 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
2426}
2427static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
2428 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
2429}
2430static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
2431 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
2432}
2433static void *_p_wxSizeEventTo_p_wxObject(void *x) {
2434 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
2435}
2436static void *_p_wxMoveEventTo_p_wxObject(void *x) {
2437 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
2438}
2439static void *_p_wxActivateEventTo_p_wxObject(void *x) {
2440 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
2441}
d14a1e28
RD
2442static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
2443 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
2444}
2445static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
2446 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
2447}
2448static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
2449 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
2450}
2451static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
2452 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
2453}
2454static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
2455 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
2456}
2457static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
2458 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
2459}
2460static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
2461 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
2462}
2463static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
2464 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
2465}
2466static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
2467 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
2468}
943e8dfd
RD
2469static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
2470 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
2471}
d14a1e28
RD
2472static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
2473 return (void *)((wxObject *) ((wxImageHandler *) x));
2474}
943e8dfd
RD
2475static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
2476 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
2477}
d14a1e28
RD
2478static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
2479 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
2480}
2481static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
2482 return (void *)((wxObject *) ((wxEvtHandler *) x));
2483}
2484static void *_p_wxGLCanvasTo_p_wxObject(void *x) {
2485 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxGLCanvas *) x));
2486}
51b83b37
RD
2487static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
2488 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
2489}
41f1cec7
RD
2490static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
2491 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
2492}
d14a1e28
RD
2493static void *_p_wxImageTo_p_wxObject(void *x) {
2494 return (void *)((wxObject *) ((wxImage *) x));
2495}
2496static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
2497 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
2498}
2499static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
2500 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
2501}
2502static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
2503 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
2504}
2505static void *_p_wxKeyEventTo_p_wxObject(void *x) {
2506 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
2507}
2508static void *_p_wxWindowTo_p_wxObject(void *x) {
2509 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
2510}
2511static void *_p_wxMenuTo_p_wxObject(void *x) {
2512 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
2513}
2514static void *_p_wxMenuBarTo_p_wxObject(void *x) {
2515 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
2516}
2517static void *_p_wxFileSystemTo_p_wxObject(void *x) {
2518 return (void *)((wxObject *) ((wxFileSystem *) x));
2519}
2520static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
2521 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
2522}
2523static void *_p_wxMenuEventTo_p_wxObject(void *x) {
2524 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
2525}
2526static void *_p_wxPyAppTo_p_wxObject(void *x) {
2527 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
2528}
2529static void *_p_wxCloseEventTo_p_wxObject(void *x) {
2530 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
2531}
2532static void *_p_wxMouseEventTo_p_wxObject(void *x) {
2533 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
2534}
2535static void *_p_wxEraseEventTo_p_wxObject(void *x) {
2536 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
2537}
2538static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
2539 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
2540}
2541static void *_p_wxCommandEventTo_p_wxObject(void *x) {
2542 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
2543}
2544static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
2545 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
2546}
2547static void *_p_wxFocusEventTo_p_wxObject(void *x) {
2548 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
2549}
2550static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
2551 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
2552}
2553static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
2554 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
2555}
2556static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
2557 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
2558}
2559static void *_p_wxValidatorTo_p_wxObject(void *x) {
2560 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
2561}
36ed4f51
RD
2562static void *_p_wxControlTo_p_wxWindow(void *x) {
2563 return (void *)((wxWindow *) ((wxControl *) x));
2564}
2565static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
2566 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
2567}
2568static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
2569 return (void *)((wxWindow *) ((wxMenuBar *) x));
2570}
2571static void *_p_wxGLCanvasTo_p_wxWindow(void *x) {
2572 return (void *)((wxWindow *) ((wxGLCanvas *) x));
2573}
d14a1e28
RD
2574static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
2575 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
2576}
2577static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
2578 return (void *)((wxEvtHandler *) ((wxWindow *) x));
2579}
2580static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
2581 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
2582}
2583static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
2584 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
2585}
2586static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
2587 return (void *)((wxEvtHandler *) ((wxValidator *) x));
2588}
2589static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
2590 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
2591}
2592static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
2593 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
2594}
2595static void *_p_wxGLCanvasTo_p_wxEvtHandler(void *x) {
2596 return (void *)((wxEvtHandler *) (wxWindow *) ((wxGLCanvas *) x));
2597}
2598static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
2599 return (void *)((wxEvtHandler *) ((wxMenu *) x));
2600}
32fe5131
RD
2601static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, 0};
2602static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, 0};
2603static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, 0};
2604static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, 0};
2605static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, 0};
2606static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, 0};
2607static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0};
2608static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, 0};
2609static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0};
2610static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0};
2611static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0};
2612static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0};
2613static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0};
2614static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0};
2615static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0};
2616static swig_type_info _swigt__p_wxGLCanvas = {"_p_wxGLCanvas", "wxGLCanvas *", 0, 0, 0};
2617static swig_type_info _swigt__p_wxGLContext = {"_p_wxGLContext", "wxGLContext *", 0, 0, 0};
2618static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, 0};
2619static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0};
2620static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0};
2621static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0};
2622static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0};
2623static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0};
2624static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0};
2625static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0};
2626static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0};
2627static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0};
2628static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0};
2629static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0};
2630static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0};
2631static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0};
2632static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0};
2633static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0};
2634static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0};
2635static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0};
2636static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0};
2637static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0};
2638static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0};
2639static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0};
2640static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0};
2641static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0};
2642static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0};
2643static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0};
2644static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0};
2645static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0};
2646static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0};
2647static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0};
2648static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0};
2649static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0};
2650static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0};
2651static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0};
2652static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0};
2653static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0};
2654static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0};
2655static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0};
2656static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0};
2657static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0};
2658static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0};
2659static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0};
2660static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0};
2661static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0};
2662static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0};
2663static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0};
2664static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0};
2665static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0};
2666static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0};
2667static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0};
2668static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0};
2669static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0};
2670static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0};
2671static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0};
2672static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0};
2673static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0};
2674static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0};
2675static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0};
2676static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0};
2677static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0};
2678static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0};
2679static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0};
2680static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0};
2681static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0};
2682static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0};
2683static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0};
2684static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0};
2685static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0};
2686static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, 0};
2687static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, 0};
2688static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, 0};
2689static swig_type_info _swigt__ptrdiff_t = {"_ptrdiff_t", "ptrdiff_t", 0, 0, 0};
2690static swig_type_info _swigt__std__ptrdiff_t = {"_std__ptrdiff_t", "std::ptrdiff_t", 0, 0, 0};
2691static swig_type_info _swigt__unsigned_int = {"_unsigned_int", "unsigned int|std::size_t", 0, 0, 0};
2692
2693static swig_type_info *swig_type_initial[] = {
2694 &_swigt__p_char,
2695 &_swigt__p_form_ops_t,
2696 &_swigt__p_int,
2697 &_swigt__p_unsigned_char,
2698 &_swigt__p_unsigned_int,
2699 &_swigt__p_unsigned_long,
2700 &_swigt__p_wxANIHandler,
2701 &_swigt__p_wxAcceleratorTable,
2702 &_swigt__p_wxActivateEvent,
2703 &_swigt__p_wxBMPHandler,
2704 &_swigt__p_wxBoxSizer,
2705 &_swigt__p_wxCURHandler,
2706 &_swigt__p_wxChildFocusEvent,
2707 &_swigt__p_wxCloseEvent,
2708 &_swigt__p_wxCommandEvent,
2709 &_swigt__p_wxContextMenuEvent,
2710 &_swigt__p_wxControl,
2711 &_swigt__p_wxControlWithItems,
2712 &_swigt__p_wxDateEvent,
2713 &_swigt__p_wxDisplayChangedEvent,
2714 &_swigt__p_wxDropFilesEvent,
2715 &_swigt__p_wxDuplexMode,
2716 &_swigt__p_wxEraseEvent,
2717 &_swigt__p_wxEvent,
2718 &_swigt__p_wxEvtHandler,
2719 &_swigt__p_wxFSFile,
2720 &_swigt__p_wxFileSystem,
2721 &_swigt__p_wxFlexGridSizer,
2722 &_swigt__p_wxFocusEvent,
2723 &_swigt__p_wxGBSizerItem,
2724 &_swigt__p_wxGIFHandler,
2725 &_swigt__p_wxGLCanvas,
2726 &_swigt__p_wxGLContext,
2727 &_swigt__p_wxGridBagSizer,
2728 &_swigt__p_wxGridSizer,
2729 &_swigt__p_wxICOHandler,
2730 &_swigt__p_wxIconizeEvent,
2731 &_swigt__p_wxIdleEvent,
2732 &_swigt__p_wxImage,
2733 &_swigt__p_wxImageHandler,
2734 &_swigt__p_wxIndividualLayoutConstraint,
2735 &_swigt__p_wxInitDialogEvent,
2736 &_swigt__p_wxJPEGHandler,
2737 &_swigt__p_wxKeyEvent,
2738 &_swigt__p_wxLayoutConstraints,
2739 &_swigt__p_wxMaximizeEvent,
2740 &_swigt__p_wxMenu,
2741 &_swigt__p_wxMenuBar,
2742 &_swigt__p_wxMenuEvent,
2743 &_swigt__p_wxMenuItem,
2744 &_swigt__p_wxMouseCaptureChangedEvent,
2745 &_swigt__p_wxMouseEvent,
2746 &_swigt__p_wxMoveEvent,
2747 &_swigt__p_wxNavigationKeyEvent,
2748 &_swigt__p_wxNcPaintEvent,
2749 &_swigt__p_wxNotifyEvent,
2750 &_swigt__p_wxObject,
2751 &_swigt__p_wxPCXHandler,
2752 &_swigt__p_wxPNGHandler,
2753 &_swigt__p_wxPNMHandler,
2754 &_swigt__p_wxPaintEvent,
2755 &_swigt__p_wxPalette,
2756 &_swigt__p_wxPaletteChangedEvent,
2757 &_swigt__p_wxPaperSize,
2758 &_swigt__p_wxPyApp,
2759 &_swigt__p_wxPyCommandEvent,
2760 &_swigt__p_wxPyEvent,
2761 &_swigt__p_wxPyImageHandler,
2762 &_swigt__p_wxPySizer,
2763 &_swigt__p_wxPyValidator,
2764 &_swigt__p_wxQueryNewPaletteEvent,
2765 &_swigt__p_wxScrollEvent,
2766 &_swigt__p_wxScrollWinEvent,
2767 &_swigt__p_wxSetCursorEvent,
2768 &_swigt__p_wxShowEvent,
2769 &_swigt__p_wxSizeEvent,
2770 &_swigt__p_wxSizer,
2771 &_swigt__p_wxSizerItem,
2772 &_swigt__p_wxStaticBoxSizer,
2773 &_swigt__p_wxStdDialogButtonSizer,
2774 &_swigt__p_wxSysColourChangedEvent,
2775 &_swigt__p_wxTIFFHandler,
2776 &_swigt__p_wxUpdateUIEvent,
2777 &_swigt__p_wxValidator,
2778 &_swigt__p_wxWindow,
2779 &_swigt__p_wxWindowCreateEvent,
2780 &_swigt__p_wxWindowDestroyEvent,
2781 &_swigt__p_wxXPMHandler,
2782 &_swigt__ptrdiff_t,
2783 &_swigt__std__ptrdiff_t,
2784 &_swigt__unsigned_int,
2785};
2786
2787static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
2788static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
2789static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
2790static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
2791static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
2792static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
2793static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
2794static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
2795static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
2796static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
2797static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
2798static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
2799static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
2800static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
2801static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGLCanvas, _p_wxGLCanvasTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
2802static swig_cast_info _swigc__p_wxGLCanvas[] = { {&_swigt__p_wxGLCanvas, 0, 0, 0},{0, 0, 0, 0}};
2803static swig_cast_info _swigc__p_wxGLContext[] = { {&_swigt__p_wxGLContext, 0, 0, 0},{0, 0, 0, 0}};
2804static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
2805static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
2806static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
2807static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
2808static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
2809static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
2810static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
2811static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
2812static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
2813static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
2814static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
2815static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
2816static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
2817static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2818static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
2819static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
2820static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
2821static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
2822static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
2823static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
2824static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
2825static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
2826static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
2827static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
2828static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
2829static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
2830static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
2831static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
2832static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
2833static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
2834static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
2835static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
2836static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
2837static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
2838static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
2839static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
2840static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
2841static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
2842static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
2843static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
2844static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2845static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
2846static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
2847static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
2848static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
2849static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
2850static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
2851static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
2852static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
2853static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
2854static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
2855static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
2856static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
2857static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
2858static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
2859static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
2860static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
2861static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
2862static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
2863static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
2864static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
2865static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
2866static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
2867static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
2868static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
2869static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
2870static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
2871static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGLContext, _p_wxGLContextTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGLCanvas, _p_wxGLCanvasTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
2872static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
2873static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
2874static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGLCanvas, _p_wxGLCanvasTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
2875static swig_cast_info _swigc__ptrdiff_t[] = { {&_swigt__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}};
2876static swig_cast_info _swigc__std__ptrdiff_t[] = { {&_swigt__std__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}};
2877static swig_cast_info _swigc__unsigned_int[] = { {&_swigt__unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
2878
2879static swig_cast_info *swig_cast_initial[] = {
2880 _swigc__p_char,
2881 _swigc__p_form_ops_t,
2882 _swigc__p_int,
2883 _swigc__p_unsigned_char,
2884 _swigc__p_unsigned_int,
2885 _swigc__p_unsigned_long,
2886 _swigc__p_wxANIHandler,
2887 _swigc__p_wxAcceleratorTable,
2888 _swigc__p_wxActivateEvent,
2889 _swigc__p_wxBMPHandler,
2890 _swigc__p_wxBoxSizer,
2891 _swigc__p_wxCURHandler,
2892 _swigc__p_wxChildFocusEvent,
2893 _swigc__p_wxCloseEvent,
2894 _swigc__p_wxCommandEvent,
2895 _swigc__p_wxContextMenuEvent,
2896 _swigc__p_wxControl,
2897 _swigc__p_wxControlWithItems,
2898 _swigc__p_wxDateEvent,
2899 _swigc__p_wxDisplayChangedEvent,
2900 _swigc__p_wxDropFilesEvent,
2901 _swigc__p_wxDuplexMode,
2902 _swigc__p_wxEraseEvent,
2903 _swigc__p_wxEvent,
2904 _swigc__p_wxEvtHandler,
2905 _swigc__p_wxFSFile,
2906 _swigc__p_wxFileSystem,
2907 _swigc__p_wxFlexGridSizer,
2908 _swigc__p_wxFocusEvent,
2909 _swigc__p_wxGBSizerItem,
2910 _swigc__p_wxGIFHandler,
2911 _swigc__p_wxGLCanvas,
2912 _swigc__p_wxGLContext,
2913 _swigc__p_wxGridBagSizer,
2914 _swigc__p_wxGridSizer,
2915 _swigc__p_wxICOHandler,
2916 _swigc__p_wxIconizeEvent,
2917 _swigc__p_wxIdleEvent,
2918 _swigc__p_wxImage,
2919 _swigc__p_wxImageHandler,
2920 _swigc__p_wxIndividualLayoutConstraint,
2921 _swigc__p_wxInitDialogEvent,
2922 _swigc__p_wxJPEGHandler,
2923 _swigc__p_wxKeyEvent,
2924 _swigc__p_wxLayoutConstraints,
2925 _swigc__p_wxMaximizeEvent,
2926 _swigc__p_wxMenu,
2927 _swigc__p_wxMenuBar,
2928 _swigc__p_wxMenuEvent,
2929 _swigc__p_wxMenuItem,
2930 _swigc__p_wxMouseCaptureChangedEvent,
2931 _swigc__p_wxMouseEvent,
2932 _swigc__p_wxMoveEvent,
2933 _swigc__p_wxNavigationKeyEvent,
2934 _swigc__p_wxNcPaintEvent,
2935 _swigc__p_wxNotifyEvent,
2936 _swigc__p_wxObject,
2937 _swigc__p_wxPCXHandler,
2938 _swigc__p_wxPNGHandler,
2939 _swigc__p_wxPNMHandler,
2940 _swigc__p_wxPaintEvent,
2941 _swigc__p_wxPalette,
2942 _swigc__p_wxPaletteChangedEvent,
2943 _swigc__p_wxPaperSize,
2944 _swigc__p_wxPyApp,
2945 _swigc__p_wxPyCommandEvent,
2946 _swigc__p_wxPyEvent,
2947 _swigc__p_wxPyImageHandler,
2948 _swigc__p_wxPySizer,
2949 _swigc__p_wxPyValidator,
2950 _swigc__p_wxQueryNewPaletteEvent,
2951 _swigc__p_wxScrollEvent,
2952 _swigc__p_wxScrollWinEvent,
2953 _swigc__p_wxSetCursorEvent,
2954 _swigc__p_wxShowEvent,
2955 _swigc__p_wxSizeEvent,
2956 _swigc__p_wxSizer,
2957 _swigc__p_wxSizerItem,
2958 _swigc__p_wxStaticBoxSizer,
2959 _swigc__p_wxStdDialogButtonSizer,
2960 _swigc__p_wxSysColourChangedEvent,
2961 _swigc__p_wxTIFFHandler,
2962 _swigc__p_wxUpdateUIEvent,
2963 _swigc__p_wxValidator,
2964 _swigc__p_wxWindow,
2965 _swigc__p_wxWindowCreateEvent,
2966 _swigc__p_wxWindowDestroyEvent,
2967 _swigc__p_wxXPMHandler,
2968 _swigc__ptrdiff_t,
2969 _swigc__std__ptrdiff_t,
2970 _swigc__unsigned_int,
d14a1e28
RD
2971};
2972
2973
2974/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
2975
2976static swig_const_info swig_const_table[] = {
c370783e 2977{0, 0, 0, 0.0, 0, 0}};
d14a1e28
RD
2978
2979#ifdef __cplusplus
2980}
2981#endif
32fe5131
RD
2982/*************************************************************************
2983 * Type initialization:
2984 * This problem is tough by the requirement that no dynamic
2985 * memory is used. Also, since swig_type_info structures store pointers to
2986 * swig_cast_info structures and swig_cast_info structures store pointers back
2987 * to swig_type_info structures, we need some lookup code at initialization.
2988 * The idea is that swig generates all the structures that are needed.
2989 * The runtime then collects these partially filled structures.
2990 * The SWIG_InitializeModule function takes these initial arrays out of
2991 * swig_module, and does all the lookup, filling in the swig_module.types
2992 * array with the correct data and linking the correct swig_cast_info
2993 * structures together.
2994
2995 * The generated swig_type_info structures are assigned staticly to an initial
2996 * array. We just loop though that array, and handle each type individually.
2997 * First we lookup if this type has been already loaded, and if so, use the
2998 * loaded structure instead of the generated one. Then we have to fill in the
2999 * cast linked list. The cast data is initially stored in something like a
3000 * two-dimensional array. Each row corresponds to a type (there are the same
3001 * number of rows as there are in the swig_type_initial array). Each entry in
3002 * a column is one of the swig_cast_info structures for that type.
3003 * The cast_initial array is actually an array of arrays, because each row has
3004 * a variable number of columns. So to actually build the cast linked list,
3005 * we find the array of casts associated with the type, and loop through it
3006 * adding the casts to the list. The one last trick we need to do is making
3007 * sure the type pointer in the swig_cast_info struct is correct.
3008
3009 * First off, we lookup the cast->type name to see if it is already loaded.
3010 * There are three cases to handle:
3011 * 1) If the cast->type has already been loaded AND the type we are adding
3012 * casting info to has not been loaded (it is in this module), THEN we
3013 * replace the cast->type pointer with the type pointer that has already
3014 * been loaded.
3015 * 2) If BOTH types (the one we are adding casting info to, and the
3016 * cast->type) are loaded, THEN the cast info has already been loaded by
3017 * the previous module so we just ignore it.
3018 * 3) Finally, if cast->type has not already been loaded, then we add that
3019 * swig_cast_info to the linked list (because the cast->type) pointer will
3020 * be correct.
3021**/
3022
3023#ifdef __cplusplus
3024extern "C" {
3025#if 0
3026} /* c-mode */
3027#endif
3028#endif
3029
3030#if 0
3031#define SWIGRUNTIME_DEBUG
3032#endif
3033
3034SWIGRUNTIME void
3035SWIG_InitializeModule(void *clientdata) {
3036 size_t i;
3037 swig_module_info *module_head;
3038 static int init_run = 0;
3039
3040 clientdata = clientdata;
3041
3042 if (init_run) return;
3043 init_run = 1;
3044
3045 /* Initialize the swig_module */
3046 swig_module.type_initial = swig_type_initial;
3047 swig_module.cast_initial = swig_cast_initial;
3048
3049 /* Try and load any already created modules */
3050 module_head = SWIG_GetModule(clientdata);
3051 if (module_head) {
3052 swig_module.next = module_head->next;
3053 module_head->next = &swig_module;
3054 } else {
3055 /* This is the first module loaded */
3056 swig_module.next = &swig_module;
3057 SWIG_SetModule(clientdata, &swig_module);
3058 }
3059
3060 /* Now work on filling in swig_module.types */
3061#ifdef SWIGRUNTIME_DEBUG
3062 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
3063#endif
3064 for (i = 0; i < swig_module.size; ++i) {
3065 swig_type_info *type = 0;
3066 swig_type_info *ret;
3067 swig_cast_info *cast;
3068
3069#ifdef SWIGRUNTIME_DEBUG
3070 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
3071#endif
3072
3073 /* if there is another module already loaded */
3074 if (swig_module.next != &swig_module) {
3075 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
3076 }
3077 if (type) {
3078 /* Overwrite clientdata field */
3079#ifdef SWIGRUNTIME_DEBUG
3080 printf("SWIG_InitializeModule: found type %s\n", type->name);
3081#endif
3082 if (swig_module.type_initial[i]->clientdata) {
3083 type->clientdata = swig_module.type_initial[i]->clientdata;
3084#ifdef SWIGRUNTIME_DEBUG
3085 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
3086#endif
3087 }
3088 } else {
3089 type = swig_module.type_initial[i];
3090 }
3091
3092 /* Insert casting types */
3093 cast = swig_module.cast_initial[i];
3094 while (cast->type) {
3095 /* Don't need to add information already in the list */
3096 ret = 0;
3097#ifdef SWIGRUNTIME_DEBUG
3098 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
3099#endif
3100 if (swig_module.next != &swig_module) {
3101 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
3102#ifdef SWIGRUNTIME_DEBUG
3103 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
3104#endif
3105 }
3106 if (ret) {
3107 if (type == swig_module.type_initial[i]) {
3108#ifdef SWIGRUNTIME_DEBUG
3109 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
3110#endif
3111 cast->type = ret;
3112 ret = 0;
3113 } else {
3114 /* Check for casting already in the list */
3115 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
3116#ifdef SWIGRUNTIME_DEBUG
3117 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
3118#endif
3119 if (!ocast) ret = 0;
3120 }
3121 }
3122
3123 if (!ret) {
3124#ifdef SWIGRUNTIME_DEBUG
3125 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
3126#endif
3127 if (type->cast) {
3128 type->cast->prev = cast;
3129 cast->next = type->cast;
3130 }
3131 type->cast = cast;
3132 }
3133 cast++;
3134 }
3135 /* Set entry in modules->types array equal to the type */
3136 swig_module.types[i] = type;
3137 }
3138 swig_module.types[i] = 0;
3139
3140#ifdef SWIGRUNTIME_DEBUG
3141 printf("**** SWIG_InitializeModule: Cast List ******\n");
3142 for (i = 0; i < swig_module.size; ++i) {
3143 int j = 0;
3144 swig_cast_info *cast = swig_module.cast_initial[i];
3145 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
3146 while (cast->type) {
3147 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
3148 cast++;
3149 ++j;
3150 }
3151 printf("---- Total casts: %d\n",j);
3152 }
3153 printf("**** SWIG_InitializeModule: Cast List ******\n");
3154#endif
3155}
3156
3157/* This function will propagate the clientdata field of type to
3158* any new swig_type_info structures that have been added into the list
3159* of equivalent types. It is like calling
3160* SWIG_TypeClientData(type, clientdata) a second time.
3161*/
3162SWIGRUNTIME void
3163SWIG_PropagateClientData(void) {
3164 size_t i;
3165 swig_cast_info *equiv;
3166 static int init_run = 0;
3167
3168 if (init_run) return;
3169 init_run = 1;
3170
3171 for (i = 0; i < swig_module.size; i++) {
3172 if (swig_module.types[i]->clientdata) {
3173 equiv = swig_module.types[i]->cast;
3174 while (equiv) {
3175 if (!equiv->converter) {
3176 if (equiv->type && !equiv->type->clientdata)
3177 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
3178 }
3179 equiv = equiv->next;
3180 }
3181 }
3182 }
3183}
3184
3185#ifdef __cplusplus
3186#if 0
3187{
3188 /* c-mode */
3189#endif
3190}
3191#endif
3192
d14a1e28 3193
36ed4f51
RD
3194
3195#ifdef __cplusplus
3196extern "C" {
3197#endif
3198
3199 /* Python-specific SWIG API */
3200#define SWIG_newvarlink() SWIG_Python_newvarlink()
3201#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
3202#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
3203
3204 /* -----------------------------------------------------------------------------
3205 * global variable support code.
3206 * ----------------------------------------------------------------------------- */
3207
3208 typedef struct swig_globalvar {
3209 char *name; /* Name of global variable */
32fe5131 3210 PyObject *(*get_attr)(void); /* Return the current value */
36ed4f51
RD
3211 int (*set_attr)(PyObject *); /* Set the value */
3212 struct swig_globalvar *next;
3213 } swig_globalvar;
3214
3215 typedef struct swig_varlinkobject {
3216 PyObject_HEAD
3217 swig_globalvar *vars;
3218 } swig_varlinkobject;
3219
32fe5131 3220 SWIGINTERN PyObject *
36ed4f51
RD
3221 swig_varlink_repr(swig_varlinkobject *v) {
3222 v = v;
3223 return PyString_FromString("<Swig global variables>");
3224 }
3225
32fe5131 3226 SWIGINTERN int
36ed4f51
RD
3227 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
3228 swig_globalvar *var;
3229 flags = flags;
3230 fprintf(fp,"Swig global variables { ");
3231 for (var = v->vars; var; var=var->next) {
3232 fprintf(fp,"%s", var->name);
3233 if (var->next) fprintf(fp,", ");
3234 }
3235 fprintf(fp," }\n");
3236 return 0;
3237 }
3238
32fe5131 3239 SWIGINTERN PyObject *
36ed4f51
RD
3240 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
3241 swig_globalvar *var = v->vars;
3242 while (var) {
3243 if (strcmp(var->name,n) == 0) {
3244 return (*var->get_attr)();
3245 }
3246 var = var->next;
3247 }
3248 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
3249 return NULL;
3250 }
3251
32fe5131 3252 SWIGINTERN int
36ed4f51
RD
3253 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
3254 swig_globalvar *var = v->vars;
3255 while (var) {
3256 if (strcmp(var->name,n) == 0) {
3257 return (*var->set_attr)(p);
3258 }
3259 var = var->next;
3260 }
3261 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
3262 return 1;
3263 }
3264
32fe5131
RD
3265 SWIGINTERN PyTypeObject*
3266 swig_varlink_type(void) {
3267 static char varlink__doc__[] = "Swig var link object";
3268 static PyTypeObject varlink_type
3269#if !defined(__cplusplus)
3270 ;
3271 static int type_init = 0;
3272 if (!type_init) {
3273 PyTypeObject tmp
3274#endif
3275 = {
3276 PyObject_HEAD_INIT(&PyType_Type)
3277 0, /* Number of items in variable part (ob_size) */
3278 (char *)"swigvarlink", /* Type name (tp_name) */
3279 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
3280 0, /* Itemsize (tp_itemsize) */
3281 0, /* Deallocator (tp_dealloc) */
3282 (printfunc) swig_varlink_print, /* Print (tp_print) */
3283 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
3284 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
3285 0, /* tp_compare */
3286 (reprfunc) swig_varlink_repr, /* tp_repr */
3287 0, /* tp_as_number */
3288 0, /* tp_as_sequence */
3289 0, /* tp_as_mapping */
3290 0, /* tp_hash */
3291 0, /* tp_call */
3292 0, /* tp_str */
3293 0, /* tp_getattro */
3294 0, /* tp_setattro */
3295 0, /* tp_as_buffer */
3296 0, /* tp_flags */
3297 varlink__doc__, /* tp_doc */
36ed4f51 3298#if PY_VERSION_HEX >= 0x02000000
32fe5131
RD
3299 0, /* tp_traverse */
3300 0, /* tp_clear */
36ed4f51
RD
3301#endif
3302#if PY_VERSION_HEX >= 0x02010000
32fe5131
RD
3303 0, /* tp_richcompare */
3304 0, /* tp_weaklistoffset */
36ed4f51
RD
3305#endif
3306#if PY_VERSION_HEX >= 0x02020000
32fe5131 3307 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
36ed4f51
RD
3308#endif
3309#if PY_VERSION_HEX >= 0x02030000
32fe5131 3310 0, /* tp_del */
36ed4f51
RD
3311#endif
3312#ifdef COUNT_ALLOCS
32fe5131 3313 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 3314#endif
32fe5131
RD
3315 };
3316#if !defined(__cplusplus)
3317 varlink_type = tmp;
3318 type_init = 1;
3319 }
3320#endif
3321 return &varlink_type;
3322 }
36ed4f51
RD
3323
3324 /* Create a variable linking object for use later */
32fe5131 3325 SWIGINTERN PyObject *
36ed4f51 3326 SWIG_Python_newvarlink(void) {
32fe5131
RD
3327 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
3328 if (result) {
3329 result->vars = 0;
3330 }
36ed4f51
RD
3331 return ((PyObject*) result);
3332 }
3333
32fe5131 3334 SWIGINTERN void
36ed4f51 3335 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
32fe5131
RD
3336 swig_varlinkobject *v = (swig_varlinkobject *) p;
3337 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
3338 if (gv) {
3339 size_t size = strlen(name)+1;
3340 gv->name = (char *)malloc(size);
3341 if (gv->name) {
3342 strncpy(gv->name,name,size);
3343 gv->get_attr = get_attr;
3344 gv->set_attr = set_attr;
3345 gv->next = v->vars;
3346 }
3347 }
36ed4f51
RD
3348 v->vars = gv;
3349 }
3350
3351 /* -----------------------------------------------------------------------------
3352 * constants/methods manipulation
3353 * ----------------------------------------------------------------------------- */
3354
3355 /* Install Constants */
32fe5131 3356 SWIGINTERN void
36ed4f51
RD
3357 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
3358 PyObject *obj = 0;
3359 size_t i;
32fe5131 3360 for (i = 0; constants[i].type; ++i) {
36ed4f51
RD
3361 switch(constants[i].type) {
3362 case SWIG_PY_INT:
3363 obj = PyInt_FromLong(constants[i].lvalue);
3364 break;
3365 case SWIG_PY_FLOAT:
3366 obj = PyFloat_FromDouble(constants[i].dvalue);
3367 break;
3368 case SWIG_PY_STRING:
3369 if (constants[i].pvalue) {
3370 obj = PyString_FromString((char *) constants[i].pvalue);
3371 } else {
3372 Py_INCREF(Py_None);
3373 obj = Py_None;
3374 }
3375 break;
3376 case SWIG_PY_POINTER:
3377 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
3378 break;
3379 case SWIG_PY_BINARY:
3380 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
3381 break;
3382 default:
3383 obj = 0;
3384 break;
3385 }
3386 if (obj) {
3387 PyDict_SetItemString(d,constants[i].name,obj);
3388 Py_DECREF(obj);
3389 }
3390 }
3391 }
3392
3393 /* -----------------------------------------------------------------------------*/
3394 /* Fix SwigMethods to carry the callback ptrs when needed */
3395 /* -----------------------------------------------------------------------------*/
3396
32fe5131 3397 SWIGINTERN void
36ed4f51
RD
3398 SWIG_Python_FixMethods(PyMethodDef *methods,
3399 swig_const_info *const_table,
3400 swig_type_info **types,
3401 swig_type_info **types_initial) {
3402 size_t i;
3403 for (i = 0; methods[i].ml_name; ++i) {
3404 char *c = methods[i].ml_doc;
3405 if (c && (c = strstr(c, "swig_ptr: "))) {
3406 int j;
3407 swig_const_info *ci = 0;
3408 char *name = c + 10;
32fe5131 3409 for (j = 0; const_table[j].type; ++j) {
36ed4f51
RD
3410 if (strncmp(const_table[j].name, name,
3411 strlen(const_table[j].name)) == 0) {
3412 ci = &(const_table[j]);
3413 break;
3414 }
3415 }
3416 if (ci) {
3417 size_t shift = (ci->ptype) - types;
3418 swig_type_info *ty = types_initial[shift];
3419 size_t ldoc = (c - methods[i].ml_doc);
3420 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
3421 char *ndoc = (char*)malloc(ldoc + lptr + 10);
32fe5131
RD
3422 if (ndoc) {
3423 char *buff = ndoc;
3424 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
3425 if (ptr) {
3426 strncpy(buff, methods[i].ml_doc, ldoc);
3427 buff += ldoc;
3428 strncpy(buff, "swig_ptr: ", 10);
3429 buff += 10;
3430 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
3431 methods[i].ml_doc = ndoc;
3432 }
3433 }
36ed4f51
RD
3434 }
3435 }
3436 }
3437 }
3438
3439 /* -----------------------------------------------------------------------------*
3440 * Initialize type list
3441 * -----------------------------------------------------------------------------*/
3442
36ed4f51
RD
3443#ifdef __cplusplus
3444}
3445#endif
3446
3447/* -----------------------------------------------------------------------------*
3448 * Partial Init method
3449 * -----------------------------------------------------------------------------*/
3450
36ed4f51
RD
3451#ifdef __cplusplus
3452extern "C"
3453#endif
32fe5131 3454SWIGEXPORT void SWIG_init(void) {
d14a1e28 3455 static PyObject *SWIG_globals = 0;
d14a1e28 3456 PyObject *m, *d;
d14a1e28 3457 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
36ed4f51
RD
3458
3459 /* Fix SwigMethods to carry the callback ptrs when needed */
32fe5131 3460 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
36ed4f51 3461
d14a1e28
RD
3462 m = Py_InitModule((char *) SWIG_name, SwigMethods);
3463 d = PyModule_GetDict(m);
3464
32fe5131 3465 SWIG_InitializeModule(0);
d14a1e28
RD
3466 SWIG_InstallConstants(d,swig_const_table);
3467
cbd72d4f
RD
3468 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
3469 SWIG_addvarlink(SWIG_globals,(char*)"GLCanvasNameStr",_wrap_GLCanvasNameStr_get, _wrap_GLCanvasNameStr_set);
36ed4f51 3470 {
32fe5131 3471 PyDict_SetItemString(d,"WX_GL_RGBA", SWIG_From_int(static_cast<int >(WX_GL_RGBA)));
36ed4f51
RD
3472 }
3473 {
32fe5131 3474 PyDict_SetItemString(d,"WX_GL_BUFFER_SIZE", SWIG_From_int(static_cast<int >(WX_GL_BUFFER_SIZE)));
36ed4f51
RD
3475 }
3476 {
32fe5131 3477 PyDict_SetItemString(d,"WX_GL_LEVEL", SWIG_From_int(static_cast<int >(WX_GL_LEVEL)));
36ed4f51
RD
3478 }
3479 {
32fe5131 3480 PyDict_SetItemString(d,"WX_GL_DOUBLEBUFFER", SWIG_From_int(static_cast<int >(WX_GL_DOUBLEBUFFER)));
36ed4f51
RD
3481 }
3482 {
32fe5131 3483 PyDict_SetItemString(d,"WX_GL_STEREO", SWIG_From_int(static_cast<int >(WX_GL_STEREO)));
36ed4f51
RD
3484 }
3485 {
32fe5131 3486 PyDict_SetItemString(d,"WX_GL_AUX_BUFFERS", SWIG_From_int(static_cast<int >(WX_GL_AUX_BUFFERS)));
36ed4f51
RD
3487 }
3488 {
32fe5131 3489 PyDict_SetItemString(d,"WX_GL_MIN_RED", SWIG_From_int(static_cast<int >(WX_GL_MIN_RED)));
36ed4f51
RD
3490 }
3491 {
32fe5131 3492 PyDict_SetItemString(d,"WX_GL_MIN_GREEN", SWIG_From_int(static_cast<int >(WX_GL_MIN_GREEN)));
36ed4f51
RD
3493 }
3494 {
32fe5131 3495 PyDict_SetItemString(d,"WX_GL_MIN_BLUE", SWIG_From_int(static_cast<int >(WX_GL_MIN_BLUE)));
36ed4f51
RD
3496 }
3497 {
32fe5131 3498 PyDict_SetItemString(d,"WX_GL_MIN_ALPHA", SWIG_From_int(static_cast<int >(WX_GL_MIN_ALPHA)));
36ed4f51
RD
3499 }
3500 {
32fe5131 3501 PyDict_SetItemString(d,"WX_GL_DEPTH_SIZE", SWIG_From_int(static_cast<int >(WX_GL_DEPTH_SIZE)));
36ed4f51
RD
3502 }
3503 {
32fe5131 3504 PyDict_SetItemString(d,"WX_GL_STENCIL_SIZE", SWIG_From_int(static_cast<int >(WX_GL_STENCIL_SIZE)));
36ed4f51
RD
3505 }
3506 {
32fe5131 3507 PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_RED", SWIG_From_int(static_cast<int >(WX_GL_MIN_ACCUM_RED)));
36ed4f51
RD
3508 }
3509 {
32fe5131 3510 PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_GREEN", SWIG_From_int(static_cast<int >(WX_GL_MIN_ACCUM_GREEN)));
36ed4f51
RD
3511 }
3512 {
32fe5131 3513 PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_BLUE", SWIG_From_int(static_cast<int >(WX_GL_MIN_ACCUM_BLUE)));
36ed4f51
RD
3514 }
3515 {
32fe5131 3516 PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_ALPHA", SWIG_From_int(static_cast<int >(WX_GL_MIN_ACCUM_ALPHA)));
36ed4f51 3517 }
d14a1e28
RD
3518
3519
3520
3521}
3522