1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
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 * ----------------------------------------------------------------------------- */
12 #define SWIG_VERSION 0x010327
15 template<class T
> class SwigValueWrapper
{
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper
<T
>& rhs
) : tt(new T(*rhs
.tt
)) { }
20 SwigValueWrapper(const T
& t
) : tt(new T(t
)) { }
21 ~SwigValueWrapper() { delete tt
; }
22 SwigValueWrapper
& operator=(const T
& t
) { delete tt
; tt
= new T(t
); return *this; }
23 operator T
&() const { return *tt
; }
24 T
*operator&() { return tt
; }
26 SwigValueWrapper
& operator=(const SwigValueWrapper
<T
>& rhs
);
30 /***********************************************************************
32 * This section contains generic SWIG labels for method/variable
33 * declarations/attributes, and other compiler dependent labels.
35 ************************************************************************/
37 /* template workaround for compilers that cannot correctly implement the C++ standard */
38 #ifndef SWIGTEMPLATEDISAMBIGUATOR
39 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
40 # define SWIGTEMPLATEDISAMBIGUATOR template
42 # define SWIGTEMPLATEDISAMBIGUATOR
46 /* inline attribute */
48 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
49 # define SWIGINLINE inline
55 /* attribute recognised by some compilers to avoid 'unused' warnings */
57 # if defined(__GNUC__) || defined(__ICC)
58 # define SWIGUNUSED __attribute__ ((unused))
64 /* internal SWIG method */
66 # define SWIGINTERN static SWIGUNUSED
69 /* internal inline SWIG method */
70 #ifndef SWIGINTERNINLINE
71 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
74 /* exporting methods for Windows DLLs */
76 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
77 # if defined(STATIC_LINKED)
80 # define SWIGEXPORT __declspec(dllexport)
87 /* calling conventions for Windows */
89 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
90 # define SWIGSTDCALL __stdcall
100 /***********************************************************************
103 * This file contains generic CAPI SWIG runtime support for pointer
106 ************************************************************************/
108 /* This should only be incremented when either the layout of swig_type_info changes,
109 or for whatever reason, the runtime changes incompatibly */
110 #define SWIG_RUNTIME_VERSION "2"
112 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
113 #ifdef SWIG_TYPE_TABLE
114 # define SWIG_QUOTE_STRING(x) #x
115 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
116 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
118 # define SWIG_TYPE_TABLE_NAME
122 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
123 creating a static or dynamic library from the swig runtime code.
124 In 99.9% of the cases, swig just needs to declare them as 'static'.
126 But only do this if is strictly necessary, ie, if you have problems
127 with your compiler or so.
131 # define SWIGRUNTIME SWIGINTERN
134 #ifndef SWIGRUNTIMEINLINE
135 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
144 typedef void *(*swig_converter_func
)(void *);
145 typedef struct swig_type_info
*(*swig_dycast_func
)(void **);
147 /* Structure to store inforomation on one type */
148 typedef struct swig_type_info
{
149 const char *name
; /* mangled name of this type */
150 const char *str
; /* human readable name of this type */
151 swig_dycast_func dcast
; /* dynamic cast function down a hierarchy */
152 struct swig_cast_info
*cast
; /* linked list of types that can cast into this type */
153 void *clientdata
; /* language specific type data */
156 /* Structure to store a type and conversion function used for casting */
157 typedef struct swig_cast_info
{
158 swig_type_info
*type
; /* pointer to type that is equivalent to this type */
159 swig_converter_func converter
; /* function to cast the void pointers */
160 struct swig_cast_info
*next
; /* pointer to next cast in linked list */
161 struct swig_cast_info
*prev
; /* pointer to the previous cast */
164 /* Structure used to store module information
165 * Each module generates one structure like this, and the runtime collects
166 * all of these structures and stores them in a circularly linked list.*/
167 typedef struct swig_module_info
{
168 swig_type_info
**types
; /* Array of pointers to swig_type_info structures that are in this module */
169 size_t size
; /* Number of types in this module */
170 struct swig_module_info
*next
; /* Pointer to next element in circularly linked list */
171 swig_type_info
**type_initial
; /* Array of initially generated type structures */
172 swig_cast_info
**cast_initial
; /* Array of initially generated casting structures */
173 void *clientdata
; /* Language specific module data */
178 Compare two type names skipping the space characters, therefore
179 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
181 Return 0 when the two name types are equivalent, as in
182 strncmp, but skipping ' '.
185 SWIG_TypeNameComp(const char *f1
, const char *l1
,
186 const char *f2
, const char *l2
) {
187 for (;(f1
!= l1
) && (f2
!= l2
); ++f1
, ++f2
) {
188 while ((*f1
== ' ') && (f1
!= l1
)) ++f1
;
189 while ((*f2
== ' ') && (f2
!= l2
)) ++f2
;
190 if (*f1
!= *f2
) return (int)(*f1
- *f2
);
192 return (l1
- f1
) - (l2
- f2
);
196 Check type equivalence in a name list like <name1>|<name2>|...
197 Return 0 if not equal, 1 if equal
200 SWIG_TypeEquiv(const char *nb
, const char *tb
) {
202 const char* te
= tb
+ strlen(tb
);
204 while (!equiv
&& *ne
) {
205 for (nb
= ne
; *ne
; ++ne
) {
206 if (*ne
== '|') break;
208 equiv
= (SWIG_TypeNameComp(nb
, ne
, tb
, te
) == 0) ? 1 : 0;
215 Check type equivalence in a name list like <name1>|<name2>|...
216 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
219 SWIG_TypeCompare(const char *nb
, const char *tb
) {
221 const char* te
= tb
+ strlen(tb
);
223 while (!equiv
&& *ne
) {
224 for (nb
= ne
; *ne
; ++ne
) {
225 if (*ne
== '|') break;
227 equiv
= (SWIG_TypeNameComp(nb
, ne
, tb
, te
) == 0) ? 1 : 0;
234 /* think of this as a c++ template<> or a scheme macro */
235 #define SWIG_TypeCheck_Template(comparison, ty) \
237 swig_cast_info *iter = ty->cast; \
240 if (iter == ty->cast) return iter; \
241 /* Move iter to the top of the linked list */ \
242 iter->prev->next = iter->next; \
244 iter->next->prev = iter->prev; \
245 iter->next = ty->cast; \
247 if (ty->cast) ty->cast->prev = iter; \
259 SWIGRUNTIME swig_cast_info
*
260 SWIG_TypeCheck(const char *c
, swig_type_info
*ty
) {
261 SWIG_TypeCheck_Template(strcmp(iter
->type
->name
, c
) == 0, ty
);
264 /* Same as previous function, except strcmp is replaced with a pointer comparison */
265 SWIGRUNTIME swig_cast_info
*
266 SWIG_TypeCheckStruct(swig_type_info
*from
, swig_type_info
*into
) {
267 SWIG_TypeCheck_Template(iter
->type
== from
, into
);
271 Cast a pointer up an inheritance hierarchy
273 SWIGRUNTIMEINLINE
void *
274 SWIG_TypeCast(swig_cast_info
*ty
, void *ptr
) {
275 return ((!ty
) || (!ty
->converter
)) ? ptr
: (*ty
->converter
)(ptr
);
279 Dynamic pointer casting. Down an inheritance hierarchy
281 SWIGRUNTIME swig_type_info
*
282 SWIG_TypeDynamicCast(swig_type_info
*ty
, void **ptr
) {
283 swig_type_info
*lastty
= ty
;
284 if (!ty
|| !ty
->dcast
) return ty
;
285 while (ty
&& (ty
->dcast
)) {
286 ty
= (*ty
->dcast
)(ptr
);
293 Return the name associated with this type
295 SWIGRUNTIMEINLINE
const char *
296 SWIG_TypeName(const swig_type_info
*ty
) {
301 Return the pretty name associated with this type,
302 that is an unmangled type name in a form presentable to the user.
304 SWIGRUNTIME
const char *
305 SWIG_TypePrettyName(const swig_type_info
*type
) {
306 /* The "str" field contains the equivalent pretty names of the
307 type, separated by vertical-bar characters. We choose
308 to print the last name, as it is often (?) the most
310 if (type
->str
!= NULL
) {
311 const char *last_name
= type
->str
;
313 for (s
= type
->str
; *s
; s
++)
314 if (*s
== '|') last_name
= s
+1;
322 Set the clientdata field for a type
325 SWIG_TypeClientData(swig_type_info
*ti
, void *clientdata
) {
326 swig_cast_info
*cast
= ti
->cast
;
327 /* if (ti->clientdata == clientdata) return; */
328 ti
->clientdata
= clientdata
;
331 if (!cast
->converter
) {
332 swig_type_info
*tc
= cast
->type
;
333 if (!tc
->clientdata
) {
334 SWIG_TypeClientData(tc
, clientdata
);
342 Search for a swig_type_info structure only by mangled name
343 Search is a O(log #types)
345 We start searching at module start, and finish searching when start == end.
346 Note: if start == end at the beginning of the function, we go all the way around
349 SWIGRUNTIME swig_type_info
*
350 SWIG_MangledTypeQueryModule(swig_module_info
*start
,
351 swig_module_info
*end
,
353 swig_module_info
*iter
= start
;
356 register size_t l
= 0;
357 register size_t r
= iter
->size
- 1;
359 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
360 register size_t i
= (l
+ r
) >> 1;
361 const char *iname
= iter
->types
[i
]->name
;
363 register int compare
= strcmp(name
, iname
);
365 return iter
->types
[i
];
366 } else if (compare
< 0) {
372 } else if (compare
> 0) {
376 break; /* should never happen */
381 } while (iter
!= end
);
386 Search for a swig_type_info structure for either a mangled name or a human readable name.
387 It first searches the mangled names of the types, which is a O(log #types)
388 If a type is not found it then searches the human readable names, which is O(#types).
390 We start searching at module start, and finish searching when start == end.
391 Note: if start == end at the beginning of the function, we go all the way around
394 SWIGRUNTIME swig_type_info
*
395 SWIG_TypeQueryModule(swig_module_info
*start
,
396 swig_module_info
*end
,
398 /* STEP 1: Search the name field using binary search */
399 swig_type_info
*ret
= SWIG_MangledTypeQueryModule(start
, end
, name
);
403 /* STEP 2: If the type hasn't been found, do a complete search
404 of the str field (the human readable name) */
405 swig_module_info
*iter
= start
;
407 register size_t i
= 0;
408 for (; i
< iter
->size
; ++i
) {
409 if (iter
->types
[i
]->str
&& (SWIG_TypeEquiv(iter
->types
[i
]->str
, name
)))
410 return iter
->types
[i
];
413 } while (iter
!= end
);
416 /* neither found a match */
422 Pack binary data into a string
425 SWIG_PackData(char *c
, void *ptr
, size_t sz
) {
426 static const char hex
[17] = "0123456789abcdef";
427 register const unsigned char *u
= (unsigned char *) ptr
;
428 register const unsigned char *eu
= u
+ sz
;
429 for (; u
!= eu
; ++u
) {
430 register unsigned char uu
= *u
;
431 *(c
++) = hex
[(uu
& 0xf0) >> 4];
432 *(c
++) = hex
[uu
& 0xf];
438 Unpack binary data from a string
440 SWIGRUNTIME
const char *
441 SWIG_UnpackData(const char *c
, void *ptr
, size_t sz
) {
442 register unsigned char *u
= (unsigned char *) ptr
;
443 register const unsigned char *eu
= u
+ sz
;
444 for (; u
!= eu
; ++u
) {
445 register char d
= *(c
++);
446 register unsigned char uu
= 0;
447 if ((d
>= '0') && (d
<= '9'))
448 uu
= ((d
- '0') << 4);
449 else if ((d
>= 'a') && (d
<= 'f'))
450 uu
= ((d
- ('a'-10)) << 4);
454 if ((d
>= '0') && (d
<= '9'))
456 else if ((d
>= 'a') && (d
<= 'f'))
457 uu
|= (d
- ('a'-10));
466 Pack 'void *' into a string buffer.
469 SWIG_PackVoidPtr(char *buff
, void *ptr
, const char *name
, size_t bsz
) {
471 if ((2*sizeof(void *) + 2) > bsz
) return 0;
473 r
= SWIG_PackData(r
,&ptr
,sizeof(void *));
474 if (strlen(name
) + 1 > (bsz
- (r
- buff
))) return 0;
479 SWIGRUNTIME
const char *
480 SWIG_UnpackVoidPtr(const char *c
, void **ptr
, const char *name
) {
482 if (strcmp(c
,"NULL") == 0) {
489 return SWIG_UnpackData(++c
,ptr
,sizeof(void *));
493 SWIG_PackDataName(char *buff
, void *ptr
, size_t sz
, const char *name
, size_t bsz
) {
495 size_t lname
= (name
? strlen(name
) : 0);
496 if ((2*sz
+ 2 + lname
) > bsz
) return 0;
498 r
= SWIG_PackData(r
,ptr
,sz
);
500 strncpy(r
,name
,lname
+1);
507 SWIGRUNTIME
const char *
508 SWIG_UnpackDataName(const char *c
, void *ptr
, size_t sz
, const char *name
) {
510 if (strcmp(c
,"NULL") == 0) {
517 return SWIG_UnpackData(++c
,ptr
,sz
);
524 /* -----------------------------------------------------------------------------
525 * SWIG API. Portion that goes into the runtime
526 * ----------------------------------------------------------------------------- */
532 /* -----------------------------------------------------------------------------
533 * for internal method declarations
534 * ----------------------------------------------------------------------------- */
537 # define SWIGINTERN static SWIGUNUSED
540 #ifndef SWIGINTERNINLINE
541 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
545 Exception handling in wrappers
547 #define SWIG_fail goto fail
548 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
549 #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0)
550 #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1)
551 #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj)
552 #define SWIG_null_ref(type) SWIG_Python_NullRef(type)
557 #define SWIG_contract_assert(expr, msg) \
558 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
560 /* -----------------------------------------------------------------------------
561 * Constant declarations
562 * ----------------------------------------------------------------------------- */
565 #define SWIG_PY_INT 1
566 #define SWIG_PY_FLOAT 2
567 #define SWIG_PY_STRING 3
568 #define SWIG_PY_POINTER 4
569 #define SWIG_PY_BINARY 5
571 /* Constant information structure */
572 typedef struct swig_const_info
{
578 swig_type_info
**ptype
;
582 /* -----------------------------------------------------------------------------
583 * Alloc. memory flags
584 * ----------------------------------------------------------------------------- */
585 #define SWIG_OLDOBJ 1
586 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
587 #define SWIG_PYSTR SWIG_NEWOBJ + 1
594 /***********************************************************************
597 * This file contains the runtime support for Python modules
598 * and includes code for managing global variables and pointer
601 * Author : David Beazley (beazley@cs.uchicago.edu)
602 ************************************************************************/
604 /* Common SWIG API */
605 #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags)
606 #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags)
607 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
610 /* Python-specific SWIG API */
611 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
612 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
615 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
616 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
618 /* -----------------------------------------------------------------------------
619 * Pointer declarations
620 * ----------------------------------------------------------------------------- */
622 Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent
623 C/C++ pointers in the python side. Very useful for debugging, but
626 #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
627 # define SWIG_COBJECT_TYPES
630 /* Flags for pointer conversion */
631 #define SWIG_POINTER_EXCEPTION 0x1
632 #define SWIG_POINTER_DISOWN 0x2
635 /* Add PyOS_snprintf for old Pythons */
636 #if PY_VERSION_HEX < 0x02020000
637 #define PyOS_snprintf snprintf
644 /* -----------------------------------------------------------------------------
645 * Create a new pointer string
646 * ----------------------------------------------------------------------------- */
647 #ifndef SWIG_BUFFER_SIZE
648 #define SWIG_BUFFER_SIZE 1024
651 /* A crude PyString_FromFormat implementation for old Pythons */
652 #if PY_VERSION_HEX < 0x02020000
654 PyString_FromFormat(const char *fmt
, ...) {
656 char buf
[SWIG_BUFFER_SIZE
* 2];
659 res
= vsnprintf(buf
, sizeof(buf
), fmt
, ap
);
661 return (res
< 0 || res
>= sizeof(buf
)) ? 0 : PyString_FromString(buf
);
665 #if PY_VERSION_HEX < 0x01060000
666 #define PyObject_Del(op) PyMem_DEL((op))
669 #if defined(SWIG_COBJECT_TYPES)
670 #if !defined(SWIG_COBJECT_PYTHON)
671 /* -----------------------------------------------------------------------------
672 * Implements a simple Swig Object type, and use it instead of PyCObject
673 * ----------------------------------------------------------------------------- */
681 /* Declarations for objects of type PySwigObject */
684 PySwigObject_print(PySwigObject
*v
, FILE *fp
, int flags
)
686 char result
[SWIG_BUFFER_SIZE
];
688 if (SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
))) {
689 fputs("<Swig Object at ", fp
); fputs(result
, fp
); fputs(">", fp
);
696 SWIGRUNTIME PyObject
*
697 PySwigObject_repr(PySwigObject
*v
)
699 char result
[SWIG_BUFFER_SIZE
];
700 return SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
)) ?
701 PyString_FromFormat("<Swig Object at %s>", result
) : 0;
704 SWIGRUNTIME PyObject
*
705 PySwigObject_str(PySwigObject
*v
)
707 char result
[SWIG_BUFFER_SIZE
];
708 return SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
)) ?
709 PyString_FromString(result
) : 0;
712 SWIGRUNTIME PyObject
*
713 PySwigObject_long(PySwigObject
*v
)
715 return PyLong_FromVoidPtr(v
->ptr
);
718 SWIGRUNTIME PyObject
*
719 PySwigObject_format(const char* fmt
, PySwigObject
*v
)
721 PyObject
*res
= NULL
;
722 PyObject
*args
= PyTuple_New(1);
723 if (args
&& (PyTuple_SetItem(args
, 0, PySwigObject_long(v
)) == 0)) {
724 PyObject
*ofmt
= PyString_FromString(fmt
);
726 res
= PyString_Format(ofmt
,args
);
734 SWIGRUNTIME PyObject
*
735 PySwigObject_oct(PySwigObject
*v
)
737 return PySwigObject_format("%o",v
);
740 SWIGRUNTIME PyObject
*
741 PySwigObject_hex(PySwigObject
*v
)
743 return PySwigObject_format("%x",v
);
747 PySwigObject_compare(PySwigObject
*v
, PySwigObject
*w
)
749 int c
= strcmp(v
->desc
, w
->desc
);
751 return (c
> 0) ? 1 : -1;
755 return (i
< j
) ? -1 : ((i
> j
) ? 1 : 0);
760 PySwigObject_dealloc(PySwigObject
*self
)
765 SWIGRUNTIME PyTypeObject
*
766 PySwigObject_type(void) {
767 static char pyswigobject_type__doc__
[] =
768 "Swig object carries a C/C++ instance pointer";
770 static PyNumberMethods PySwigObject_as_number
= {
771 (binaryfunc
)0, /*nb_add*/
772 (binaryfunc
)0, /*nb_subtract*/
773 (binaryfunc
)0, /*nb_multiply*/
774 (binaryfunc
)0, /*nb_divide*/
775 (binaryfunc
)0, /*nb_remainder*/
776 (binaryfunc
)0, /*nb_divmod*/
777 (ternaryfunc
)0,/*nb_power*/
778 (unaryfunc
)0, /*nb_negative*/
779 (unaryfunc
)0, /*nb_positive*/
780 (unaryfunc
)0, /*nb_absolute*/
781 (inquiry
)0, /*nb_nonzero*/
788 (coercion
)0, /*nb_coerce*/
789 (unaryfunc
)PySwigObject_long
, /*nb_int*/
790 (unaryfunc
)PySwigObject_long
, /*nb_long*/
791 (unaryfunc
)0, /*nb_float*/
792 (unaryfunc
)PySwigObject_oct
, /*nb_oct*/
793 (unaryfunc
)PySwigObject_hex
, /*nb_hex*/
794 #if PY_VERSION_HEX >= 0x02020000
795 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
796 #elif PY_VERSION_HEX >= 0x02000000
797 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
801 static PyTypeObject pyswigobject_type
802 #if !defined(__cplusplus)
804 static int type_init
= 0;
809 PyObject_HEAD_INIT(&PyType_Type
)
811 (char *)"PySwigObject", /*tp_name*/
812 sizeof(PySwigObject
), /*tp_basicsize*/
815 (destructor
)PySwigObject_dealloc
, /*tp_dealloc*/
816 (printfunc
)PySwigObject_print
, /*tp_print*/
817 (getattrfunc
)0, /*tp_getattr*/
818 (setattrfunc
)0, /*tp_setattr*/
819 (cmpfunc
)PySwigObject_compare
, /*tp_compare*/
820 (reprfunc
)PySwigObject_repr
, /*tp_repr*/
821 &PySwigObject_as_number
, /*tp_as_number*/
822 0, /*tp_as_sequence*/
824 (hashfunc
)0, /*tp_hash*/
825 (ternaryfunc
)0, /*tp_call*/
826 (reprfunc
)PySwigObject_str
, /*tp_str*/
827 /* Space for future expansion */
829 pyswigobject_type__doc__
, /* Documentation string */
830 #if PY_VERSION_HEX >= 0x02000000
834 #if PY_VERSION_HEX >= 0x02010000
835 0, /* tp_richcompare */
836 0, /* tp_weaklistoffset */
838 #if PY_VERSION_HEX >= 0x02020000
839 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
841 #if PY_VERSION_HEX >= 0x02030000
845 0,0,0,0 /* tp_alloc -> tp_next */
848 #if !defined(__cplusplus)
849 pyswigobject_type
= tmp
;
853 return &pyswigobject_type
;
856 SWIGRUNTIME PyObject
*
857 PySwigObject_FromVoidPtrAndDesc(void *ptr
, const char *desc
)
859 PySwigObject
*self
= PyObject_NEW(PySwigObject
, PySwigObject_type());
864 return (PyObject
*)self
;
867 SWIGRUNTIMEINLINE
void *
868 PySwigObject_AsVoidPtr(PyObject
*self
)
870 return ((PySwigObject
*)self
)->ptr
;
873 SWIGRUNTIMEINLINE
const char *
874 PySwigObject_GetDesc(PyObject
*self
)
876 return ((PySwigObject
*)self
)->desc
;
879 SWIGRUNTIMEINLINE
int
880 PySwigObject_Check(PyObject
*op
) {
881 return ((op
)->ob_type
== PySwigObject_type())
882 || (strcmp((op
)->ob_type
->tp_name
,"PySwigObject") == 0);
885 /* -----------------------------------------------------------------------------
886 * Implements a simple Swig Packed type, and use it instead of string
887 * ----------------------------------------------------------------------------- */
897 PySwigPacked_print(PySwigPacked
*v
, FILE *fp
, int flags
)
899 char result
[SWIG_BUFFER_SIZE
];
901 fputs("<Swig Packed ", fp
);
902 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))) {
911 SWIGRUNTIME PyObject
*
912 PySwigPacked_repr(PySwigPacked
*v
)
914 char result
[SWIG_BUFFER_SIZE
];
915 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))) {
916 return PyString_FromFormat("<Swig Packed at %s%s>", result
, v
->desc
);
918 return PyString_FromFormat("<Swig Packed %s>", v
->desc
);
922 SWIGRUNTIME PyObject
*
923 PySwigPacked_str(PySwigPacked
*v
)
925 char result
[SWIG_BUFFER_SIZE
];
926 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))){
927 return PyString_FromFormat("%s%s", result
, v
->desc
);
929 return PyString_FromString(v
->desc
);
934 PySwigPacked_compare(PySwigPacked
*v
, PySwigPacked
*w
)
936 int c
= strcmp(v
->desc
, w
->desc
);
938 return (c
> 0) ? 1 : -1;
942 int s
= (i
< j
) ? -1 : ((i
> j
) ? 1 : 0);
943 return s
? s
: strncmp((char *)v
->pack
, (char *)w
->pack
, 2*v
->size
);
948 PySwigPacked_dealloc(PySwigPacked
*self
)
954 SWIGRUNTIME PyTypeObject
*
955 PySwigPacked_type(void) {
956 static char pyswigpacked_type__doc__
[] =
957 "Swig object carries a C/C++ instance pointer";
958 static PyTypeObject pyswigpacked_type
959 #if !defined(__cplusplus)
961 static int type_init
= 0;
966 PyObject_HEAD_INIT(&PyType_Type
)
968 (char *)"PySwigPacked", /*tp_name*/
969 sizeof(PySwigPacked
), /*tp_basicsize*/
972 (destructor
)PySwigPacked_dealloc
, /*tp_dealloc*/
973 (printfunc
)PySwigPacked_print
, /*tp_print*/
974 (getattrfunc
)0, /*tp_getattr*/
975 (setattrfunc
)0, /*tp_setattr*/
976 (cmpfunc
)PySwigPacked_compare
, /*tp_compare*/
977 (reprfunc
)PySwigPacked_repr
, /*tp_repr*/
979 0, /*tp_as_sequence*/
981 (hashfunc
)0, /*tp_hash*/
982 (ternaryfunc
)0, /*tp_call*/
983 (reprfunc
)PySwigPacked_str
, /*tp_str*/
984 /* Space for future expansion */
986 pyswigpacked_type__doc__
, /* Documentation string */
987 #if PY_VERSION_HEX >= 0x02000000
991 #if PY_VERSION_HEX >= 0x02010000
992 0, /* tp_richcompare */
993 0, /* tp_weaklistoffset */
995 #if PY_VERSION_HEX >= 0x02020000
996 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
998 #if PY_VERSION_HEX >= 0x02030000
1002 0,0,0,0 /* tp_alloc -> tp_next */
1005 #if !defined(__cplusplus)
1006 pyswigpacked_type
= tmp
;
1010 return &pyswigpacked_type
;
1013 SWIGRUNTIME PyObject
*
1014 PySwigPacked_FromDataAndDesc(void *ptr
, size_t size
, const char *desc
)
1016 PySwigPacked
*self
= PyObject_NEW(PySwigPacked
, PySwigPacked_type());
1020 void *pack
= malloc(size
);
1022 memcpy(pack
, ptr
, size
);
1026 return (PyObject
*) self
;
1032 SWIGRUNTIMEINLINE
const char *
1033 PySwigPacked_UnpackData(PyObject
*obj
, void *ptr
, size_t size
)
1035 PySwigPacked
*self
= (PySwigPacked
*)obj
;
1036 if (self
->size
!= size
) return 0;
1037 memcpy(ptr
, self
->pack
, size
);
1041 SWIGRUNTIMEINLINE
const char *
1042 PySwigPacked_GetDesc(PyObject
*self
)
1044 return ((PySwigPacked
*)self
)->desc
;
1047 SWIGRUNTIMEINLINE
int
1048 PySwigPacked_Check(PyObject
*op
) {
1049 return ((op
)->ob_type
== PySwigPacked_type())
1050 || (strcmp((op
)->ob_type
->tp_name
,"PySwigPacked") == 0);
1054 /* -----------------------------------------------------------------------------
1055 * Use the old Python PyCObject instead of PySwigObject
1056 * ----------------------------------------------------------------------------- */
1058 #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj)
1059 #define PySwigObject_Check(obj) PyCObject_Check(obj)
1060 #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj)
1061 #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL)
1067 /* -----------------------------------------------------------------------------
1068 * errors manipulation
1069 * ----------------------------------------------------------------------------- */
1072 SWIG_Python_TypeError(const char *type
, PyObject
*obj
)
1075 #if defined(SWIG_COBJECT_TYPES)
1076 if (obj
&& PySwigObject_Check(obj
)) {
1077 const char *otype
= (const char *) PySwigObject_GetDesc(obj
);
1079 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, 'PySwigObject(%s)' is received",
1086 const char *otype
= (obj
? obj
->ob_type
->tp_name
: 0);
1088 PyObject
*str
= PyObject_Str(obj
);
1089 const char *cstr
= str
? PyString_AsString(str
) : 0;
1091 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, '%s(%s)' is received",
1094 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, '%s' is received",
1101 PyErr_Format(PyExc_TypeError
, "a '%s' is expected", type
);
1103 PyErr_Format(PyExc_TypeError
, "unexpected type is received");
1107 SWIGRUNTIMEINLINE
void
1108 SWIG_Python_NullRef(const char *type
)
1111 PyErr_Format(PyExc_TypeError
, "null reference of type '%s' was received",type
);
1113 PyErr_Format(PyExc_TypeError
, "null reference was received");
1118 SWIG_Python_AddErrMesg(const char* mesg
, int infront
)
1120 if (PyErr_Occurred()) {
1122 PyObject
*value
= 0;
1123 PyObject
*traceback
= 0;
1124 PyErr_Fetch(&type
, &value
, &traceback
);
1126 PyObject
*old_str
= PyObject_Str(value
);
1130 PyErr_Format(type
, "%s %s", mesg
, PyString_AsString(old_str
));
1132 PyErr_Format(type
, "%s %s", PyString_AsString(old_str
), mesg
);
1143 SWIG_Python_ArgFail(int argnum
)
1145 if (PyErr_Occurred()) {
1146 /* add information about failing argument */
1148 PyOS_snprintf(mesg
, sizeof(mesg
), "argument number %d:", argnum
);
1149 return SWIG_Python_AddErrMesg(mesg
, 1);
1156 /* -----------------------------------------------------------------------------
1157 * pointers/data manipulation
1158 * ----------------------------------------------------------------------------- */
1160 /* Convert a pointer value */
1162 SWIG_Python_ConvertPtr(PyObject
*obj
, void **ptr
, swig_type_info
*ty
, int flags
) {
1165 static PyObject
*SWIG_this
= 0;
1167 PyObject
*pyobj
= 0;
1171 if (obj
== Py_None
) {
1176 #ifdef SWIG_COBJECT_TYPES
1177 if (!(PySwigObject_Check(obj
))) {
1179 SWIG_this
= PyString_FromString("this");
1181 obj
= PyObject_GetAttr(obj
,SWIG_this
);
1183 if (!obj
) goto type_error
;
1184 if (!PySwigObject_Check(obj
)) {
1189 vptr
= PySwigObject_AsVoidPtr(obj
);
1190 c
= (const char *) PySwigObject_GetDesc(obj
);
1191 if (newref
) { Py_DECREF(obj
); }
1194 if (!(PyString_Check(obj
))) {
1196 SWIG_this
= PyString_FromString("this");
1198 obj
= PyObject_GetAttr(obj
,SWIG_this
);
1200 if (!obj
) goto type_error
;
1201 if (!PyString_Check(obj
)) {
1206 c
= PyString_AsString(obj
);
1207 /* Pointer values must start with leading underscore */
1208 c
= SWIG_UnpackVoidPtr(c
, &vptr
, ty
->name
);
1209 if (newref
) { Py_DECREF(obj
); }
1210 if (!c
) goto type_error
;
1215 tc
= SWIG_TypeCheck(c
,ty
);
1216 if (!tc
) goto type_error
;
1217 *ptr
= SWIG_TypeCast(tc
,vptr
);
1221 if ((pyobj
) && (flags
& SWIG_POINTER_DISOWN
)) {
1222 PyObject_SetAttrString(pyobj
,(char*)"thisown",Py_False
);
1228 if (pyobj
&& !obj
) {
1230 if (PyCFunction_Check(obj
)) {
1231 /* here we get the method pointer for callbacks */
1232 char *doc
= (((PyCFunctionObject
*)obj
) -> m_ml
-> ml_doc
);
1233 c
= doc
? strstr(doc
, "swig_ptr: ") : 0;
1235 c
= ty
? SWIG_UnpackVoidPtr(c
+ 10, &vptr
, ty
->name
) : 0;
1236 if (!c
) goto type_error
;
1241 if (flags
& SWIG_POINTER_EXCEPTION
) {
1243 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1245 SWIG_Python_TypeError("C/C++ pointer", obj
);
1251 /* Convert a pointer value, signal an exception on a type mismatch */
1253 SWIG_Python_MustGetPtr(PyObject
*obj
, swig_type_info
*ty
, int argnum
, int flags
) {
1255 if (SWIG_Python_ConvertPtr(obj
, &result
, ty
, flags
) == -1) {
1257 if (flags
& SWIG_POINTER_EXCEPTION
) {
1258 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1259 SWIG_Python_ArgFail(argnum
);
1265 /* Convert a packed value value */
1267 SWIG_Python_ConvertPacked(PyObject
*obj
, void *ptr
, size_t sz
, swig_type_info
*ty
, int flags
) {
1271 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1272 c
= PySwigPacked_UnpackData(obj
, ptr
, sz
);
1274 if ((!obj
) || (!PyString_Check(obj
))) goto type_error
;
1275 c
= PyString_AsString(obj
);
1276 /* Pointer values must start with leading underscore */
1277 c
= SWIG_UnpackDataName(c
, ptr
, sz
, ty
->name
);
1279 if (!c
) goto type_error
;
1281 tc
= SWIG_TypeCheck(c
,ty
);
1282 if (!tc
) goto type_error
;
1288 if (flags
& SWIG_POINTER_EXCEPTION
) {
1290 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1292 SWIG_Python_TypeError("C/C++ packed data", obj
);
1298 /* Create a new array object */
1299 SWIGRUNTIME PyObject
*
1300 SWIG_Python_NewPointerObj(void *ptr
, swig_type_info
*type
, int own
) {
1303 if (!PyErr_Occurred()) {
1304 PyErr_Format(PyExc_TypeError
, "Swig: null type passed to NewPointerObj");
1312 #ifdef SWIG_COBJECT_TYPES
1313 robj
= PySwigObject_FromVoidPtrAndDesc((void *) ptr
, (char *)type
->name
);
1316 char result
[SWIG_BUFFER_SIZE
];
1317 robj
= SWIG_PackVoidPtr(result
, ptr
, type
->name
, sizeof(result
)) ?
1318 PyString_FromString(result
) : 0;
1321 if (!robj
|| (robj
== Py_None
)) return robj
;
1322 if (type
->clientdata
) {
1324 PyObject
*args
= Py_BuildValue((char*)"(O)", robj
);
1326 inst
= PyObject_CallObject((PyObject
*) type
->clientdata
, args
);
1330 PyObject_SetAttrString(inst
,(char*)"thisown",Py_True
);
1338 SWIGRUNTIME PyObject
*
1339 SWIG_Python_NewPackedObj(void *ptr
, size_t sz
, swig_type_info
*type
) {
1345 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1346 robj
= PySwigPacked_FromDataAndDesc((void *) ptr
, sz
, (char *)type
->name
);
1349 char result
[SWIG_BUFFER_SIZE
];
1350 robj
= SWIG_PackDataName(result
, ptr
, sz
, type
->name
, sizeof(result
)) ?
1351 PyString_FromString(result
) : 0;
1357 /* -----------------------------------------------------------------------------*
1359 * -----------------------------------------------------------------------------*/
1361 #ifdef SWIG_LINK_RUNTIME
1362 void *SWIG_ReturnGlobalTypeList(void *);
1365 SWIGRUNTIME swig_module_info
*
1366 SWIG_Python_GetModule(void) {
1367 static void *type_pointer
= (void *)0;
1368 /* first check if module already created */
1369 if (!type_pointer
) {
1370 #ifdef SWIG_LINK_RUNTIME
1371 type_pointer
= SWIG_ReturnGlobalTypeList((void *)0);
1373 type_pointer
= PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
,
1374 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
);
1375 if (PyErr_Occurred()) {
1377 type_pointer
= (void *)0;
1381 return (swig_module_info
*) type_pointer
;
1384 #if PY_MAJOR_VERSION < 2
1385 /* PyModule_AddObject function was introduced in Python 2.0. The following function
1386 is copied out of Python/modsupport.c in python version 2.3.4 */
1388 PyModule_AddObject(PyObject
*m
, char *name
, PyObject
*o
)
1391 if (!PyModule_Check(m
)) {
1392 PyErr_SetString(PyExc_TypeError
,
1393 "PyModule_AddObject() needs module as first arg");
1397 PyErr_SetString(PyExc_TypeError
,
1398 "PyModule_AddObject() needs non-NULL value");
1402 dict
= PyModule_GetDict(m
);
1404 /* Internal error -- modules must have a dict! */
1405 PyErr_Format(PyExc_SystemError
, "module '%s' has no __dict__",
1406 PyModule_GetName(m
));
1409 if (PyDict_SetItemString(dict
, name
, o
))
1417 SWIG_Python_SetModule(swig_module_info
*swig_module
) {
1418 static PyMethodDef swig_empty_runtime_method_table
[] = { {NULL
, NULL
, 0, NULL
} };/* Sentinel */
1420 PyObject
*module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
,
1421 swig_empty_runtime_method_table
);
1422 PyObject
*pointer
= PyCObject_FromVoidPtr((void *) swig_module
, NULL
);
1423 if (pointer
&& module) {
1424 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
, pointer
);
1433 /* -------- TYPES TABLE (BEGIN) -------- */
1435 #define SWIGTYPE_p_char swig_types[0]
1436 #define SWIGTYPE_p_form_ops_t swig_types[1]
1437 #define SWIGTYPE_p_int swig_types[2]
1438 #define SWIGTYPE_p_unsigned_char swig_types[3]
1439 #define SWIGTYPE_p_unsigned_int swig_types[4]
1440 #define SWIGTYPE_p_unsigned_long swig_types[5]
1441 #define SWIGTYPE_p_wxANIHandler swig_types[6]
1442 #define SWIGTYPE_p_wxAcceleratorTable swig_types[7]
1443 #define SWIGTYPE_p_wxActivateEvent swig_types[8]
1444 #define SWIGTYPE_p_wxBMPHandler swig_types[9]
1445 #define SWIGTYPE_p_wxBoxSizer swig_types[10]
1446 #define SWIGTYPE_p_wxCURHandler swig_types[11]
1447 #define SWIGTYPE_p_wxChildFocusEvent swig_types[12]
1448 #define SWIGTYPE_p_wxCloseEvent swig_types[13]
1449 #define SWIGTYPE_p_wxCommandEvent swig_types[14]
1450 #define SWIGTYPE_p_wxContextMenuEvent swig_types[15]
1451 #define SWIGTYPE_p_wxControl swig_types[16]
1452 #define SWIGTYPE_p_wxControlWithItems swig_types[17]
1453 #define SWIGTYPE_p_wxDateEvent swig_types[18]
1454 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[19]
1455 #define SWIGTYPE_p_wxDropFilesEvent swig_types[20]
1456 #define SWIGTYPE_p_wxDuplexMode swig_types[21]
1457 #define SWIGTYPE_p_wxEraseEvent swig_types[22]
1458 #define SWIGTYPE_p_wxEvent swig_types[23]
1459 #define SWIGTYPE_p_wxEvtHandler swig_types[24]
1460 #define SWIGTYPE_p_wxFSFile swig_types[25]
1461 #define SWIGTYPE_p_wxFileSystem swig_types[26]
1462 #define SWIGTYPE_p_wxFlexGridSizer swig_types[27]
1463 #define SWIGTYPE_p_wxFocusEvent swig_types[28]
1464 #define SWIGTYPE_p_wxGBSizerItem swig_types[29]
1465 #define SWIGTYPE_p_wxGIFHandler swig_types[30]
1466 #define SWIGTYPE_p_wxGLCanvas swig_types[31]
1467 #define SWIGTYPE_p_wxGLContext swig_types[32]
1468 #define SWIGTYPE_p_wxGridBagSizer swig_types[33]
1469 #define SWIGTYPE_p_wxGridSizer swig_types[34]
1470 #define SWIGTYPE_p_wxICOHandler swig_types[35]
1471 #define SWIGTYPE_p_wxIconizeEvent swig_types[36]
1472 #define SWIGTYPE_p_wxIdleEvent swig_types[37]
1473 #define SWIGTYPE_p_wxImage swig_types[38]
1474 #define SWIGTYPE_p_wxImageHandler swig_types[39]
1475 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[40]
1476 #define SWIGTYPE_p_wxInitDialogEvent swig_types[41]
1477 #define SWIGTYPE_p_wxJPEGHandler swig_types[42]
1478 #define SWIGTYPE_p_wxKeyEvent swig_types[43]
1479 #define SWIGTYPE_p_wxLayoutConstraints swig_types[44]
1480 #define SWIGTYPE_p_wxMaximizeEvent swig_types[45]
1481 #define SWIGTYPE_p_wxMenu swig_types[46]
1482 #define SWIGTYPE_p_wxMenuBar swig_types[47]
1483 #define SWIGTYPE_p_wxMenuEvent swig_types[48]
1484 #define SWIGTYPE_p_wxMenuItem swig_types[49]
1485 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[50]
1486 #define SWIGTYPE_p_wxMouseEvent swig_types[51]
1487 #define SWIGTYPE_p_wxMoveEvent swig_types[52]
1488 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[53]
1489 #define SWIGTYPE_p_wxNcPaintEvent swig_types[54]
1490 #define SWIGTYPE_p_wxNotifyEvent swig_types[55]
1491 #define SWIGTYPE_p_wxObject swig_types[56]
1492 #define SWIGTYPE_p_wxPCXHandler swig_types[57]
1493 #define SWIGTYPE_p_wxPNGHandler swig_types[58]
1494 #define SWIGTYPE_p_wxPNMHandler swig_types[59]
1495 #define SWIGTYPE_p_wxPaintEvent swig_types[60]
1496 #define SWIGTYPE_p_wxPalette swig_types[61]
1497 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[62]
1498 #define SWIGTYPE_p_wxPaperSize swig_types[63]
1499 #define SWIGTYPE_p_wxPyApp swig_types[64]
1500 #define SWIGTYPE_p_wxPyCommandEvent swig_types[65]
1501 #define SWIGTYPE_p_wxPyEvent swig_types[66]
1502 #define SWIGTYPE_p_wxPyImageHandler swig_types[67]
1503 #define SWIGTYPE_p_wxPySizer swig_types[68]
1504 #define SWIGTYPE_p_wxPyValidator swig_types[69]
1505 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[70]
1506 #define SWIGTYPE_p_wxScrollEvent swig_types[71]
1507 #define SWIGTYPE_p_wxScrollWinEvent swig_types[72]
1508 #define SWIGTYPE_p_wxSetCursorEvent swig_types[73]
1509 #define SWIGTYPE_p_wxShowEvent swig_types[74]
1510 #define SWIGTYPE_p_wxSizeEvent swig_types[75]
1511 #define SWIGTYPE_p_wxSizer swig_types[76]
1512 #define SWIGTYPE_p_wxSizerItem swig_types[77]
1513 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[78]
1514 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[79]
1515 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[80]
1516 #define SWIGTYPE_p_wxTIFFHandler swig_types[81]
1517 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[82]
1518 #define SWIGTYPE_p_wxValidator swig_types[83]
1519 #define SWIGTYPE_p_wxWindow swig_types[84]
1520 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[85]
1521 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[86]
1522 #define SWIGTYPE_p_wxXPMHandler swig_types[87]
1523 #define SWIGTYPE_ptrdiff_t swig_types[88]
1524 #define SWIGTYPE_std__ptrdiff_t swig_types[89]
1525 #define SWIGTYPE_unsigned_int swig_types[90]
1526 static swig_type_info
*swig_types
[92];
1527 static swig_module_info swig_module
= {swig_types
, 91, 0, 0, 0, 0};
1528 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1529 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1531 /* -------- TYPES TABLE (END) -------- */
1534 /*-----------------------------------------------
1535 @(target):= _glcanvas.so
1536 ------------------------------------------------*/
1537 #define SWIG_init init_glcanvas
1539 #define SWIG_name "_glcanvas"
1541 #include "wx/wxPython/wxPython.h"
1542 #include "wx/wxPython/pyclasses.h"
1544 #include <wx/glcanvas.h>
1547 static const wxString
wxPyGLCanvasNameStr(wxT("GLCanvas"));
1548 static const wxString
wxPyEmptyString(wxEmptyString
);
1554 SWIG_CheckLongInRange(long value
, long min_value
, long max_value
,
1557 if (value
< min_value
) {
1559 PyErr_Format(PyExc_OverflowError
,
1560 "value %ld is less than '%s' minimum %ld",
1561 value
, errmsg
, min_value
);
1564 } else if (value
> max_value
) {
1566 PyErr_Format(PyExc_OverflowError
,
1567 "value %ld is greater than '%s' maximum %ld",
1568 value
, errmsg
, max_value
);
1577 SWIG_AsVal_long(PyObject
* obj
, long* val
)
1579 if (PyNumber_Check(obj
)) {
1580 if (val
) *val
= PyInt_AsLong(obj
);
1584 SWIG_Python_TypeError("number", obj
);
1590 #if INT_MAX != LONG_MAX
1592 SWIG_AsVal_int(PyObject
*obj
, int *val
)
1594 const char* errmsg
= val
? "int" : (char*)0;
1596 if (SWIG_AsVal_long(obj
, &v
)) {
1597 if (SWIG_CheckLongInRange(v
, INT_MIN
,INT_MAX
, errmsg
)) {
1598 if (val
) *val
= static_cast<int >(v
);
1607 SWIG_type_error(errmsg
, obj
);
1612 SWIGINTERNINLINE
int
1613 SWIG_AsVal_int(PyObject
*obj
, int *val
)
1615 return SWIG_AsVal_long(obj
,(long*)val
);
1621 SWIG_AsVal_bool(PyObject
*obj
, bool *val
)
1623 if (obj
== Py_True
) {
1624 if (val
) *val
= true;
1627 if (obj
== Py_False
) {
1628 if (val
) *val
= false;
1632 if (SWIG_AsVal_int(obj
, &res
)) {
1633 if (val
) *val
= res
? true : false;
1639 SWIG_type_error("bool", obj
);
1645 SWIGINTERNINLINE
bool
1646 SWIG_As_bool(PyObject
* obj
)
1649 if (!SWIG_AsVal_bool(obj
, &v
)) {
1651 this is needed to make valgrind/purify happier.
1653 memset((void*)&v
, 0, sizeof(bool));
1659 SWIGINTERNINLINE
int
1660 SWIG_Check_bool(PyObject
* obj
)
1662 return SWIG_AsVal_bool(obj
, (bool*)0);
1665 static wxGLContext
*new_wxGLContext(bool isRGB
,wxGLCanvas
*win
,wxPalette
const &palette
=wxNullPalette
,wxGLContext
const *other
=NULL
){
1666 AGLPixelFormat fmt
; // TODO: How should this be initialized?
1667 return new wxGLContext(fmt
, win
, palette
, other
);
1670 /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/
1671 #define SWIG_From_int PyInt_FromLong
1675 SWIGINTERNINLINE
int
1676 SWIG_As_int(PyObject
* obj
)
1679 if (!SWIG_AsVal_int(obj
, &v
)) {
1681 this is needed to make valgrind/purify happier.
1683 memset((void*)&v
, 0, sizeof(int));
1689 SWIGINTERNINLINE
long
1690 SWIG_As_long(PyObject
* obj
)
1693 if (!SWIG_AsVal_long(obj
, &v
)) {
1695 this is needed to make valgrind/purify happier.
1697 memset((void*)&v
, 0, sizeof(long));
1703 SWIGINTERNINLINE
int
1704 SWIG_Check_int(PyObject
* obj
)
1706 return SWIG_AsVal_int(obj
, (int*)0);
1710 SWIGINTERNINLINE
int
1711 SWIG_Check_long(PyObject
* obj
)
1713 return SWIG_AsVal_long(obj
, (long*)0);
1719 static int _wrap_GLCanvasNameStr_set(PyObject
*) {
1720 PyErr_SetString(PyExc_TypeError
,"Variable GLCanvasNameStr is read-only.");
1725 static PyObject
*_wrap_GLCanvasNameStr_get(void) {
1726 PyObject
*pyobj
= NULL
;
1730 pyobj
= PyUnicode_FromWideChar((&wxPyGLCanvasNameStr
)->c_str(), (&wxPyGLCanvasNameStr
)->Len());
1732 pyobj
= PyString_FromStringAndSize((&wxPyGLCanvasNameStr
)->c_str(), (&wxPyGLCanvasNameStr
)->Len());
1739 static PyObject
*_wrap_new_GLContext(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1740 PyObject
*resultobj
= NULL
;
1742 wxGLCanvas
*arg2
= (wxGLCanvas
*) 0 ;
1743 wxPalette
const &arg3_defvalue
= wxNullPalette
;
1744 wxPalette
*arg3
= (wxPalette
*) &arg3_defvalue
;
1745 wxGLContext
*arg4
= (wxGLContext
*) NULL
;
1746 wxGLContext
*result
;
1747 PyObject
* obj0
= 0 ;
1748 PyObject
* obj1
= 0 ;
1749 PyObject
* obj2
= 0 ;
1750 PyObject
* obj3
= 0 ;
1752 (char *) "isRGB",(char *) "win",(char *) "palette",(char *) "other", NULL
1755 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|OO:new_GLContext",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
1757 arg1
= static_cast<bool >(SWIG_As_bool(obj0
));
1758 if (SWIG_arg_fail(1)) SWIG_fail
;
1760 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxGLCanvas
, SWIG_POINTER_EXCEPTION
| 0);
1761 if (SWIG_arg_fail(2)) SWIG_fail
;
1764 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxPalette
, SWIG_POINTER_EXCEPTION
| 0);
1765 if (SWIG_arg_fail(3)) SWIG_fail
;
1767 SWIG_null_ref("wxPalette");
1769 if (SWIG_arg_fail(3)) SWIG_fail
;
1773 SWIG_Python_ConvertPtr(obj3
, (void **)&arg4
, SWIGTYPE_p_wxGLContext
, SWIG_POINTER_EXCEPTION
| 0);
1774 if (SWIG_arg_fail(4)) SWIG_fail
;
1777 if (!wxPyCheckForApp()) SWIG_fail
;
1778 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1779 result
= (wxGLContext
*)new_wxGLContext(arg1
,arg2
,(wxPalette
const &)*arg3
,(wxGLContext
const *)arg4
);
1781 wxPyEndAllowThreads(__tstate
);
1782 if (PyErr_Occurred()) SWIG_fail
;
1784 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxGLContext
, 1);
1791 static PyObject
*_wrap_delete_GLContext(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1792 PyObject
*resultobj
= NULL
;
1793 wxGLContext
*arg1
= (wxGLContext
*) 0 ;
1794 PyObject
* obj0
= 0 ;
1796 (char *) "self", NULL
1799 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_GLContext",kwnames
,&obj0
)) goto fail
;
1800 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGLContext
, SWIG_POINTER_EXCEPTION
| 0);
1801 if (SWIG_arg_fail(1)) SWIG_fail
;
1803 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1806 wxPyEndAllowThreads(__tstate
);
1807 if (PyErr_Occurred()) SWIG_fail
;
1809 Py_INCREF(Py_None
); resultobj
= Py_None
;
1816 static PyObject
*_wrap_GLContext_SetCurrent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1817 PyObject
*resultobj
= NULL
;
1818 wxGLContext
*arg1
= (wxGLContext
*) 0 ;
1819 PyObject
* obj0
= 0 ;
1821 (char *) "self", NULL
1824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GLContext_SetCurrent",kwnames
,&obj0
)) goto fail
;
1825 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGLContext
, SWIG_POINTER_EXCEPTION
| 0);
1826 if (SWIG_arg_fail(1)) SWIG_fail
;
1828 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1829 (arg1
)->SetCurrent();
1831 wxPyEndAllowThreads(__tstate
);
1832 if (PyErr_Occurred()) SWIG_fail
;
1834 Py_INCREF(Py_None
); resultobj
= Py_None
;
1841 static PyObject
*_wrap_GLContext_SetColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1842 PyObject
*resultobj
= NULL
;
1843 wxGLContext
*arg1
= (wxGLContext
*) 0 ;
1844 wxString
*arg2
= 0 ;
1845 bool temp2
= false ;
1846 PyObject
* obj0
= 0 ;
1847 PyObject
* obj1
= 0 ;
1849 (char *) "self",(char *) "colour", NULL
1852 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:GLContext_SetColour",kwnames
,&obj0
,&obj1
)) goto fail
;
1853 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGLContext
, SWIG_POINTER_EXCEPTION
| 0);
1854 if (SWIG_arg_fail(1)) SWIG_fail
;
1856 arg2
= wxString_in_helper(obj1
);
1857 if (arg2
== NULL
) SWIG_fail
;
1861 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1862 (arg1
)->SetColour((wxString
const &)*arg2
);
1864 wxPyEndAllowThreads(__tstate
);
1865 if (PyErr_Occurred()) SWIG_fail
;
1867 Py_INCREF(Py_None
); resultobj
= Py_None
;
1882 static PyObject
*_wrap_GLContext_SwapBuffers(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1883 PyObject
*resultobj
= NULL
;
1884 wxGLContext
*arg1
= (wxGLContext
*) 0 ;
1885 PyObject
* obj0
= 0 ;
1887 (char *) "self", NULL
1890 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GLContext_SwapBuffers",kwnames
,&obj0
)) goto fail
;
1891 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGLContext
, SWIG_POINTER_EXCEPTION
| 0);
1892 if (SWIG_arg_fail(1)) SWIG_fail
;
1894 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1895 (arg1
)->SwapBuffers();
1897 wxPyEndAllowThreads(__tstate
);
1898 if (PyErr_Occurred()) SWIG_fail
;
1900 Py_INCREF(Py_None
); resultobj
= Py_None
;
1907 static PyObject
*_wrap_GLContext_GetWindow(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1908 PyObject
*resultobj
= NULL
;
1909 wxGLContext
*arg1
= (wxGLContext
*) 0 ;
1911 PyObject
* obj0
= 0 ;
1913 (char *) "self", NULL
1916 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GLContext_GetWindow",kwnames
,&obj0
)) goto fail
;
1917 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGLContext
, SWIG_POINTER_EXCEPTION
| 0);
1918 if (SWIG_arg_fail(1)) SWIG_fail
;
1920 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1921 result
= (wxWindow
*)(arg1
)->GetWindow();
1923 wxPyEndAllowThreads(__tstate
);
1924 if (PyErr_Occurred()) SWIG_fail
;
1927 resultobj
= wxPyMake_wxObject(result
, 0);
1935 static PyObject
* GLContext_swigregister(PyObject
*, PyObject
*args
) {
1937 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
1938 SWIG_TypeClientData(SWIGTYPE_p_wxGLContext
, obj
);
1940 return Py_BuildValue((char *)"");
1942 static PyObject
*_wrap_new_GLCanvas(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1943 PyObject
*resultobj
= NULL
;
1944 wxWindow
*arg1
= (wxWindow
*) 0 ;
1945 int arg2
= (int) -1 ;
1946 wxPoint
const &arg3_defvalue
= wxDefaultPosition
;
1947 wxPoint
*arg3
= (wxPoint
*) &arg3_defvalue
;
1948 wxSize
const &arg4_defvalue
= wxDefaultSize
;
1949 wxSize
*arg4
= (wxSize
*) &arg4_defvalue
;
1950 long arg5
= (long) 0 ;
1951 wxString
const &arg6_defvalue
= wxPyGLCanvasNameStr
;
1952 wxString
*arg6
= (wxString
*) &arg6_defvalue
;
1953 int *arg7
= (int *) NULL
;
1954 wxPalette
const &arg8_defvalue
= wxNullPalette
;
1955 wxPalette
*arg8
= (wxPalette
*) &arg8_defvalue
;
1959 bool temp6
= false ;
1961 PyObject
* obj0
= 0 ;
1962 PyObject
* obj1
= 0 ;
1963 PyObject
* obj2
= 0 ;
1964 PyObject
* obj3
= 0 ;
1965 PyObject
* obj4
= 0 ;
1966 PyObject
* obj5
= 0 ;
1967 PyObject
* obj6
= 0 ;
1968 PyObject
* obj7
= 0 ;
1970 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name",(char *) "attribList",(char *) "palette", NULL
1973 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOOOOOO:new_GLCanvas",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
,&obj7
)) goto fail
;
1974 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
1975 if (SWIG_arg_fail(1)) SWIG_fail
;
1978 arg2
= static_cast<int >(SWIG_As_int(obj1
));
1979 if (SWIG_arg_fail(2)) SWIG_fail
;
1985 if ( ! wxPoint_helper(obj2
, &arg3
)) SWIG_fail
;
1991 if ( ! wxSize_helper(obj3
, &arg4
)) SWIG_fail
;
1996 arg5
= static_cast<long >(SWIG_As_long(obj4
));
1997 if (SWIG_arg_fail(5)) SWIG_fail
;
2002 arg6
= wxString_in_helper(obj5
);
2003 if (arg6
== NULL
) SWIG_fail
;
2010 if (PySequence_Check(obj6
)) {
2011 int size
= PyObject_Length(obj6
);
2012 temp7
= new int[size
+1]; // (int*)malloc((size + 1) * sizeof(int));
2013 for (i
= 0; i
< size
; i
++) {
2014 temp7
[i
] = PyInt_AsLong(PySequence_GetItem(obj6
, i
));
2023 SWIG_Python_ConvertPtr(obj7
, (void **)&arg8
, SWIGTYPE_p_wxPalette
, SWIG_POINTER_EXCEPTION
| 0);
2024 if (SWIG_arg_fail(8)) SWIG_fail
;
2026 SWIG_null_ref("wxPalette");
2028 if (SWIG_arg_fail(8)) SWIG_fail
;
2032 if (!wxPyCheckForApp()) SWIG_fail
;
2033 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2034 result
= (wxGLCanvas
*)new wxGLCanvas(arg1
,arg2
,(wxPoint
const &)*arg3
,(wxSize
const &)*arg4
,arg5
,(wxString
const &)*arg6
,arg7
,(wxPalette
const &)*arg8
);
2036 wxPyEndAllowThreads(__tstate
);
2037 if (PyErr_Occurred()) SWIG_fail
;
2039 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxGLCanvas
, 1);
2060 static PyObject
*_wrap_new_GLCanvasWithContext(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2061 PyObject
*resultobj
= NULL
;
2062 wxWindow
*arg1
= (wxWindow
*) 0 ;
2063 wxGLContext
*arg2
= (wxGLContext
*) NULL
;
2064 int arg3
= (int) -1 ;
2065 wxPoint
const &arg4_defvalue
= wxDefaultPosition
;
2066 wxPoint
*arg4
= (wxPoint
*) &arg4_defvalue
;
2067 wxSize
const &arg5_defvalue
= wxDefaultSize
;
2068 wxSize
*arg5
= (wxSize
*) &arg5_defvalue
;
2069 long arg6
= (long) 0 ;
2070 wxString
const &arg7_defvalue
= wxPyGLCanvasNameStr
;
2071 wxString
*arg7
= (wxString
*) &arg7_defvalue
;
2072 int *arg8
= (int *) NULL
;
2073 wxPalette
const &arg9_defvalue
= wxNullPalette
;
2074 wxPalette
*arg9
= (wxPalette
*) &arg9_defvalue
;
2078 bool temp7
= false ;
2080 PyObject
* obj0
= 0 ;
2081 PyObject
* obj1
= 0 ;
2082 PyObject
* obj2
= 0 ;
2083 PyObject
* obj3
= 0 ;
2084 PyObject
* obj4
= 0 ;
2085 PyObject
* obj5
= 0 ;
2086 PyObject
* obj6
= 0 ;
2087 PyObject
* obj7
= 0 ;
2088 PyObject
* obj8
= 0 ;
2090 (char *) "parent",(char *) "shared",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name",(char *) "attribList",(char *) "palette", NULL
2093 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOOOOOOO:new_GLCanvasWithContext",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
,&obj7
,&obj8
)) goto fail
;
2094 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2095 if (SWIG_arg_fail(1)) SWIG_fail
;
2097 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxGLContext
, SWIG_POINTER_EXCEPTION
| 0);
2098 if (SWIG_arg_fail(2)) SWIG_fail
;
2102 arg3
= static_cast<int >(SWIG_As_int(obj2
));
2103 if (SWIG_arg_fail(3)) SWIG_fail
;
2109 if ( ! wxPoint_helper(obj3
, &arg4
)) SWIG_fail
;
2115 if ( ! wxSize_helper(obj4
, &arg5
)) SWIG_fail
;
2120 arg6
= static_cast<long >(SWIG_As_long(obj5
));
2121 if (SWIG_arg_fail(6)) SWIG_fail
;
2126 arg7
= wxString_in_helper(obj6
);
2127 if (arg7
== NULL
) SWIG_fail
;
2134 if (PySequence_Check(obj7
)) {
2135 int size
= PyObject_Length(obj7
);
2136 temp8
= new int[size
+1]; // (int*)malloc((size + 1) * sizeof(int));
2137 for (i
= 0; i
< size
; i
++) {
2138 temp8
[i
] = PyInt_AsLong(PySequence_GetItem(obj7
, i
));
2147 SWIG_Python_ConvertPtr(obj8
, (void **)&arg9
, SWIGTYPE_p_wxPalette
, SWIG_POINTER_EXCEPTION
| 0);
2148 if (SWIG_arg_fail(9)) SWIG_fail
;
2150 SWIG_null_ref("wxPalette");
2152 if (SWIG_arg_fail(9)) SWIG_fail
;
2156 if (!wxPyCheckForApp()) SWIG_fail
;
2157 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2158 result
= (wxGLCanvas
*)new wxGLCanvas(arg1
,(wxGLContext
const *)arg2
,arg3
,(wxPoint
const &)*arg4
,(wxSize
const &)*arg5
,arg6
,(wxString
const &)*arg7
,arg8
,(wxPalette
const &)*arg9
);
2160 wxPyEndAllowThreads(__tstate
);
2161 if (PyErr_Occurred()) SWIG_fail
;
2163 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxGLCanvas
, 1);
2184 static PyObject
*_wrap_GLCanvas_SetCurrent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2185 PyObject
*resultobj
= NULL
;
2186 wxGLCanvas
*arg1
= (wxGLCanvas
*) 0 ;
2187 PyObject
* obj0
= 0 ;
2189 (char *) "self", NULL
2192 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GLCanvas_SetCurrent",kwnames
,&obj0
)) goto fail
;
2193 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGLCanvas
, SWIG_POINTER_EXCEPTION
| 0);
2194 if (SWIG_arg_fail(1)) SWIG_fail
;
2196 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2197 (arg1
)->SetCurrent();
2199 wxPyEndAllowThreads(__tstate
);
2200 if (PyErr_Occurred()) SWIG_fail
;
2202 Py_INCREF(Py_None
); resultobj
= Py_None
;
2209 static PyObject
*_wrap_GLCanvas_SetColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2210 PyObject
*resultobj
= NULL
;
2211 wxGLCanvas
*arg1
= (wxGLCanvas
*) 0 ;
2212 wxString
*arg2
= 0 ;
2213 bool temp2
= false ;
2214 PyObject
* obj0
= 0 ;
2215 PyObject
* obj1
= 0 ;
2217 (char *) "self",(char *) "colour", NULL
2220 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:GLCanvas_SetColour",kwnames
,&obj0
,&obj1
)) goto fail
;
2221 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGLCanvas
, SWIG_POINTER_EXCEPTION
| 0);
2222 if (SWIG_arg_fail(1)) SWIG_fail
;
2224 arg2
= wxString_in_helper(obj1
);
2225 if (arg2
== NULL
) SWIG_fail
;
2229 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2230 (arg1
)->SetColour((wxString
const &)*arg2
);
2232 wxPyEndAllowThreads(__tstate
);
2233 if (PyErr_Occurred()) SWIG_fail
;
2235 Py_INCREF(Py_None
); resultobj
= Py_None
;
2250 static PyObject
*_wrap_GLCanvas_SwapBuffers(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2251 PyObject
*resultobj
= NULL
;
2252 wxGLCanvas
*arg1
= (wxGLCanvas
*) 0 ;
2253 PyObject
* obj0
= 0 ;
2255 (char *) "self", NULL
2258 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GLCanvas_SwapBuffers",kwnames
,&obj0
)) goto fail
;
2259 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGLCanvas
, SWIG_POINTER_EXCEPTION
| 0);
2260 if (SWIG_arg_fail(1)) SWIG_fail
;
2262 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2263 (arg1
)->SwapBuffers();
2265 wxPyEndAllowThreads(__tstate
);
2266 if (PyErr_Occurred()) SWIG_fail
;
2268 Py_INCREF(Py_None
); resultobj
= Py_None
;
2275 static PyObject
*_wrap_GLCanvas_GetContext(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2276 PyObject
*resultobj
= NULL
;
2277 wxGLCanvas
*arg1
= (wxGLCanvas
*) 0 ;
2278 wxGLContext
*result
;
2279 PyObject
* obj0
= 0 ;
2281 (char *) "self", NULL
2284 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GLCanvas_GetContext",kwnames
,&obj0
)) goto fail
;
2285 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGLCanvas
, SWIG_POINTER_EXCEPTION
| 0);
2286 if (SWIG_arg_fail(1)) SWIG_fail
;
2288 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2289 result
= (wxGLContext
*)(arg1
)->GetContext();
2291 wxPyEndAllowThreads(__tstate
);
2292 if (PyErr_Occurred()) SWIG_fail
;
2294 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxGLContext
, 0);
2301 static PyObject
* GLCanvas_swigregister(PyObject
*, PyObject
*args
) {
2303 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2304 SWIG_TypeClientData(SWIGTYPE_p_wxGLCanvas
, obj
);
2306 return Py_BuildValue((char *)"");
2308 static PyMethodDef SwigMethods
[] = {
2309 { (char *)"new_GLContext", (PyCFunction
) _wrap_new_GLContext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2310 { (char *)"delete_GLContext", (PyCFunction
) _wrap_delete_GLContext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2311 { (char *)"GLContext_SetCurrent", (PyCFunction
) _wrap_GLContext_SetCurrent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2312 { (char *)"GLContext_SetColour", (PyCFunction
) _wrap_GLContext_SetColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2313 { (char *)"GLContext_SwapBuffers", (PyCFunction
) _wrap_GLContext_SwapBuffers
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2314 { (char *)"GLContext_GetWindow", (PyCFunction
) _wrap_GLContext_GetWindow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2315 { (char *)"GLContext_swigregister", GLContext_swigregister
, METH_VARARGS
, NULL
},
2316 { (char *)"new_GLCanvas", (PyCFunction
) _wrap_new_GLCanvas
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2317 { (char *)"new_GLCanvasWithContext", (PyCFunction
) _wrap_new_GLCanvasWithContext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2318 { (char *)"GLCanvas_SetCurrent", (PyCFunction
) _wrap_GLCanvas_SetCurrent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2319 { (char *)"GLCanvas_SetColour", (PyCFunction
) _wrap_GLCanvas_SetColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2320 { (char *)"GLCanvas_SwapBuffers", (PyCFunction
) _wrap_GLCanvas_SwapBuffers
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2321 { (char *)"GLCanvas_GetContext", (PyCFunction
) _wrap_GLCanvas_GetContext
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
2322 { (char *)"GLCanvas_swigregister", GLCanvas_swigregister
, METH_VARARGS
, NULL
},
2323 { NULL
, NULL
, 0, NULL
}
2327 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
2329 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
2330 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
2332 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
2333 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
2335 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
2336 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
2338 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
2339 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
2341 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
2342 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
2344 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
2345 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
2347 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
2348 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
2350 static void *_p_wxSizerTo_p_wxObject(void *x
) {
2351 return (void *)((wxObject
*) ((wxSizer
*) x
));
2353 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
2354 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
2356 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
2357 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
2359 static void *_p_wxEventTo_p_wxObject(void *x
) {
2360 return (void *)((wxObject
*) ((wxEvent
*) x
));
2362 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
2363 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
2365 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
2366 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
2368 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
2369 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
2371 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
2372 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
2374 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
2375 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
2377 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
2378 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
2380 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
2381 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
2383 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
2384 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
2386 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
2387 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
2389 static void *_p_wxControlTo_p_wxObject(void *x
) {
2390 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
2392 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
2393 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
2395 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
2396 return (void *)((wxObject
*) ((wxFSFile
*) x
));
2398 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
2399 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
2401 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
2402 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
2404 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
2405 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
2407 static void *_p_wxGLContextTo_p_wxObject(void *x
) {
2408 return (void *)((wxObject
*) ((wxGLContext
*) x
));
2410 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
2411 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
2413 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
2414 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
2416 static void *_p_wxDateEventTo_p_wxObject(void *x
) {
2417 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxDateEvent
*) x
));
2419 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
2420 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
2422 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
2423 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
2425 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
2426 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
2428 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
2429 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
2431 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
2432 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
2434 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
2435 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
2437 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
2438 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
2440 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
2441 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
2443 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
2444 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
2446 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
2447 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
2449 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
2450 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
2452 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
2453 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
2455 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
2456 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
2458 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
2459 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
2461 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
2462 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
2464 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
2465 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
2467 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
2468 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
2470 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x
) {
2471 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPyImageHandler
*) x
));
2473 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
2474 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
2476 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
2477 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
2479 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
2480 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
2482 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
2483 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
2485 static void *_p_wxGLCanvasTo_p_wxObject(void *x
) {
2486 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxGLCanvas
*) x
));
2488 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x
) {
2489 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStdDialogButtonSizer
*) x
));
2491 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
2492 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
2494 static void *_p_wxImageTo_p_wxObject(void *x
) {
2495 return (void *)((wxObject
*) ((wxImage
*) x
));
2497 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
2498 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
2500 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
2501 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
2503 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
2504 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
2506 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
2507 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
2509 static void *_p_wxWindowTo_p_wxObject(void *x
) {
2510 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
2512 static void *_p_wxMenuTo_p_wxObject(void *x
) {
2513 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
2515 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
2516 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
2518 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
2519 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
2521 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
2522 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
2524 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
2525 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
2527 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
2528 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
2530 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
2531 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
2533 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
2534 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
2536 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
2537 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
2539 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
2540 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
2542 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
2543 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
2545 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
2546 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
2548 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
2549 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
2551 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
2552 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
2554 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
2555 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
2557 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
2558 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
2560 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
2561 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
2563 static void *_p_wxControlTo_p_wxWindow(void *x
) {
2564 return (void *)((wxWindow
*) ((wxControl
*) x
));
2566 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
2567 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
2569 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
2570 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
2572 static void *_p_wxGLCanvasTo_p_wxWindow(void *x
) {
2573 return (void *)((wxWindow
*) ((wxGLCanvas
*) x
));
2575 static void *_p_wxControlTo_p_wxEvtHandler(void *x
) {
2576 return (void *)((wxEvtHandler
*) (wxWindow
*) ((wxControl
*) x
));
2578 static void *_p_wxWindowTo_p_wxEvtHandler(void *x
) {
2579 return (void *)((wxEvtHandler
*) ((wxWindow
*) x
));
2581 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x
) {
2582 return (void *)((wxEvtHandler
*) (wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
2584 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x
) {
2585 return (void *)((wxEvtHandler
*) ((wxPyApp
*) x
));
2587 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x
) {
2588 return (void *)((wxEvtHandler
*) ((wxValidator
*) x
));
2590 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x
) {
2591 return (void *)((wxEvtHandler
*) (wxValidator
*) ((wxPyValidator
*) x
));
2593 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x
) {
2594 return (void *)((wxEvtHandler
*) (wxWindow
*) ((wxMenuBar
*) x
));
2596 static void *_p_wxGLCanvasTo_p_wxEvtHandler(void *x
) {
2597 return (void *)((wxEvtHandler
*) (wxWindow
*) ((wxGLCanvas
*) x
));
2599 static void *_p_wxMenuTo_p_wxEvtHandler(void *x
) {
2600 return (void *)((wxEvtHandler
*) ((wxMenu
*) x
));
2602 static swig_type_info _swigt__p_char
= {"_p_char", "char *", 0, 0, 0};
2603 static swig_type_info _swigt__p_form_ops_t
= {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, 0};
2604 static swig_type_info _swigt__p_int
= {"_p_int", "int *", 0, 0, 0};
2605 static swig_type_info _swigt__p_unsigned_char
= {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, 0};
2606 static swig_type_info _swigt__p_unsigned_int
= {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, 0};
2607 static swig_type_info _swigt__p_unsigned_long
= {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, 0};
2608 static swig_type_info _swigt__p_wxDuplexMode
= {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0};
2609 static swig_type_info _swigt__p_wxEvtHandler
= {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, 0};
2610 static swig_type_info _swigt__p_wxControl
= {"_p_wxControl", 0, 0, 0, 0};
2611 static swig_type_info _swigt__p_wxControlWithItems
= {"_p_wxControlWithItems", 0, 0, 0, 0};
2612 static swig_type_info _swigt__p_wxPyApp
= {"_p_wxPyApp", 0, 0, 0, 0};
2613 static swig_type_info _swigt__p_wxMenuBar
= {"_p_wxMenuBar", 0, 0, 0, 0};
2614 static swig_type_info _swigt__p_wxValidator
= {"_p_wxValidator", 0, 0, 0, 0};
2615 static swig_type_info _swigt__p_wxPyValidator
= {"_p_wxPyValidator", 0, 0, 0, 0};
2616 static swig_type_info _swigt__p_wxMenu
= {"_p_wxMenu", 0, 0, 0, 0};
2617 static swig_type_info _swigt__p_wxGLCanvas
= {"_p_wxGLCanvas", "wxGLCanvas *", 0, 0, 0};
2618 static swig_type_info _swigt__p_wxGLContext
= {"_p_wxGLContext", "wxGLContext *", 0, 0, 0};
2619 static swig_type_info _swigt__p_wxObject
= {"_p_wxObject", "wxObject *", 0, 0, 0};
2620 static swig_type_info _swigt__p_wxLayoutConstraints
= {"_p_wxLayoutConstraints", 0, 0, 0, 0};
2621 static swig_type_info _swigt__p_wxGBSizerItem
= {"_p_wxGBSizerItem", 0, 0, 0, 0};
2622 static swig_type_info _swigt__p_wxSizerItem
= {"_p_wxSizerItem", 0, 0, 0, 0};
2623 static swig_type_info _swigt__p_wxScrollEvent
= {"_p_wxScrollEvent", 0, 0, 0, 0};
2624 static swig_type_info _swigt__p_wxIndividualLayoutConstraint
= {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0};
2625 static swig_type_info _swigt__p_wxStaticBoxSizer
= {"_p_wxStaticBoxSizer", 0, 0, 0, 0};
2626 static swig_type_info _swigt__p_wxBoxSizer
= {"_p_wxBoxSizer", 0, 0, 0, 0};
2627 static swig_type_info _swigt__p_wxSizer
= {"_p_wxSizer", 0, 0, 0, 0};
2628 static swig_type_info _swigt__p_wxGridBagSizer
= {"_p_wxGridBagSizer", 0, 0, 0, 0};
2629 static swig_type_info _swigt__p_wxUpdateUIEvent
= {"_p_wxUpdateUIEvent", 0, 0, 0, 0};
2630 static swig_type_info _swigt__p_wxEvent
= {"_p_wxEvent", 0, 0, 0, 0};
2631 static swig_type_info _swigt__p_wxGridSizer
= {"_p_wxGridSizer", 0, 0, 0, 0};
2632 static swig_type_info _swigt__p_wxFlexGridSizer
= {"_p_wxFlexGridSizer", 0, 0, 0, 0};
2633 static swig_type_info _swigt__p_wxInitDialogEvent
= {"_p_wxInitDialogEvent", 0, 0, 0, 0};
2634 static swig_type_info _swigt__p_wxPaintEvent
= {"_p_wxPaintEvent", 0, 0, 0, 0};
2635 static swig_type_info _swigt__p_wxNcPaintEvent
= {"_p_wxNcPaintEvent", 0, 0, 0, 0};
2636 static swig_type_info _swigt__p_wxPaletteChangedEvent
= {"_p_wxPaletteChangedEvent", 0, 0, 0, 0};
2637 static swig_type_info _swigt__p_wxDisplayChangedEvent
= {"_p_wxDisplayChangedEvent", 0, 0, 0, 0};
2638 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent
= {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0};
2639 static swig_type_info _swigt__p_wxSysColourChangedEvent
= {"_p_wxSysColourChangedEvent", 0, 0, 0, 0};
2640 static swig_type_info _swigt__p_wxSetCursorEvent
= {"_p_wxSetCursorEvent", 0, 0, 0, 0};
2641 static swig_type_info _swigt__p_wxFSFile
= {"_p_wxFSFile", 0, 0, 0, 0};
2642 static swig_type_info _swigt__p_wxPySizer
= {"_p_wxPySizer", 0, 0, 0, 0};
2643 static swig_type_info _swigt__p_wxPyEvent
= {"_p_wxPyEvent", 0, 0, 0, 0};
2644 static swig_type_info _swigt__p_wxNotifyEvent
= {"_p_wxNotifyEvent", 0, 0, 0, 0};
2645 static swig_type_info _swigt__p_wxShowEvent
= {"_p_wxShowEvent", 0, 0, 0, 0};
2646 static swig_type_info _swigt__p_wxMenuItem
= {"_p_wxMenuItem", 0, 0, 0, 0};
2647 static swig_type_info _swigt__p_wxQueryNewPaletteEvent
= {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0};
2648 static swig_type_info _swigt__p_wxWindowCreateEvent
= {"_p_wxWindowCreateEvent", 0, 0, 0, 0};
2649 static swig_type_info _swigt__p_wxIdleEvent
= {"_p_wxIdleEvent", 0, 0, 0, 0};
2650 static swig_type_info _swigt__p_wxDateEvent
= {"_p_wxDateEvent", 0, 0, 0, 0};
2651 static swig_type_info _swigt__p_wxMaximizeEvent
= {"_p_wxMaximizeEvent", 0, 0, 0, 0};
2652 static swig_type_info _swigt__p_wxIconizeEvent
= {"_p_wxIconizeEvent", 0, 0, 0, 0};
2653 static swig_type_info _swigt__p_wxActivateEvent
= {"_p_wxActivateEvent", 0, 0, 0, 0};
2654 static swig_type_info _swigt__p_wxMoveEvent
= {"_p_wxMoveEvent", 0, 0, 0, 0};
2655 static swig_type_info _swigt__p_wxSizeEvent
= {"_p_wxSizeEvent", 0, 0, 0, 0};
2656 static swig_type_info _swigt__p_wxPNMHandler
= {"_p_wxPNMHandler", 0, 0, 0, 0};
2657 static swig_type_info _swigt__p_wxJPEGHandler
= {"_p_wxJPEGHandler", 0, 0, 0, 0};
2658 static swig_type_info _swigt__p_wxPCXHandler
= {"_p_wxPCXHandler", 0, 0, 0, 0};
2659 static swig_type_info _swigt__p_wxGIFHandler
= {"_p_wxGIFHandler", 0, 0, 0, 0};
2660 static swig_type_info _swigt__p_wxPNGHandler
= {"_p_wxPNGHandler", 0, 0, 0, 0};
2661 static swig_type_info _swigt__p_wxANIHandler
= {"_p_wxANIHandler", 0, 0, 0, 0};
2662 static swig_type_info _swigt__p_wxCURHandler
= {"_p_wxCURHandler", 0, 0, 0, 0};
2663 static swig_type_info _swigt__p_wxICOHandler
= {"_p_wxICOHandler", 0, 0, 0, 0};
2664 static swig_type_info _swigt__p_wxBMPHandler
= {"_p_wxBMPHandler", 0, 0, 0, 0};
2665 static swig_type_info _swigt__p_wxPyImageHandler
= {"_p_wxPyImageHandler", 0, 0, 0, 0};
2666 static swig_type_info _swigt__p_wxImageHandler
= {"_p_wxImageHandler", 0, 0, 0, 0};
2667 static swig_type_info _swigt__p_wxXPMHandler
= {"_p_wxXPMHandler", 0, 0, 0, 0};
2668 static swig_type_info _swigt__p_wxTIFFHandler
= {"_p_wxTIFFHandler", 0, 0, 0, 0};
2669 static swig_type_info _swigt__p_wxStdDialogButtonSizer
= {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0};
2670 static swig_type_info _swigt__p_wxAcceleratorTable
= {"_p_wxAcceleratorTable", 0, 0, 0, 0};
2671 static swig_type_info _swigt__p_wxImage
= {"_p_wxImage", 0, 0, 0, 0};
2672 static swig_type_info _swigt__p_wxScrollWinEvent
= {"_p_wxScrollWinEvent", 0, 0, 0, 0};
2673 static swig_type_info _swigt__p_wxWindowDestroyEvent
= {"_p_wxWindowDestroyEvent", 0, 0, 0, 0};
2674 static swig_type_info _swigt__p_wxNavigationKeyEvent
= {"_p_wxNavigationKeyEvent", 0, 0, 0, 0};
2675 static swig_type_info _swigt__p_wxKeyEvent
= {"_p_wxKeyEvent", 0, 0, 0, 0};
2676 static swig_type_info _swigt__p_wxFileSystem
= {"_p_wxFileSystem", 0, 0, 0, 0};
2677 static swig_type_info _swigt__p_wxContextMenuEvent
= {"_p_wxContextMenuEvent", 0, 0, 0, 0};
2678 static swig_type_info _swigt__p_wxMenuEvent
= {"_p_wxMenuEvent", 0, 0, 0, 0};
2679 static swig_type_info _swigt__p_wxCloseEvent
= {"_p_wxCloseEvent", 0, 0, 0, 0};
2680 static swig_type_info _swigt__p_wxMouseEvent
= {"_p_wxMouseEvent", 0, 0, 0, 0};
2681 static swig_type_info _swigt__p_wxEraseEvent
= {"_p_wxEraseEvent", 0, 0, 0, 0};
2682 static swig_type_info _swigt__p_wxCommandEvent
= {"_p_wxCommandEvent", 0, 0, 0, 0};
2683 static swig_type_info _swigt__p_wxPyCommandEvent
= {"_p_wxPyCommandEvent", 0, 0, 0, 0};
2684 static swig_type_info _swigt__p_wxDropFilesEvent
= {"_p_wxDropFilesEvent", 0, 0, 0, 0};
2685 static swig_type_info _swigt__p_wxFocusEvent
= {"_p_wxFocusEvent", 0, 0, 0, 0};
2686 static swig_type_info _swigt__p_wxChildFocusEvent
= {"_p_wxChildFocusEvent", 0, 0, 0, 0};
2687 static swig_type_info _swigt__p_wxPalette
= {"_p_wxPalette", "wxPalette *", 0, 0, 0};
2688 static swig_type_info _swigt__p_wxPaperSize
= {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, 0};
2689 static swig_type_info _swigt__p_wxWindow
= {"_p_wxWindow", "wxWindow *", 0, 0, 0};
2690 static swig_type_info _swigt__ptrdiff_t
= {"_ptrdiff_t", "ptrdiff_t", 0, 0, 0};
2691 static swig_type_info _swigt__std__ptrdiff_t
= {"_std__ptrdiff_t", "std::ptrdiff_t", 0, 0, 0};
2692 static swig_type_info _swigt__unsigned_int
= {"_unsigned_int", "unsigned int|std::size_t", 0, 0, 0};
2694 static swig_type_info
*swig_type_initial
[] = {
2696 &_swigt__p_form_ops_t
,
2698 &_swigt__p_unsigned_char
,
2699 &_swigt__p_unsigned_int
,
2700 &_swigt__p_unsigned_long
,
2701 &_swigt__p_wxANIHandler
,
2702 &_swigt__p_wxAcceleratorTable
,
2703 &_swigt__p_wxActivateEvent
,
2704 &_swigt__p_wxBMPHandler
,
2705 &_swigt__p_wxBoxSizer
,
2706 &_swigt__p_wxCURHandler
,
2707 &_swigt__p_wxChildFocusEvent
,
2708 &_swigt__p_wxCloseEvent
,
2709 &_swigt__p_wxCommandEvent
,
2710 &_swigt__p_wxContextMenuEvent
,
2711 &_swigt__p_wxControl
,
2712 &_swigt__p_wxControlWithItems
,
2713 &_swigt__p_wxDateEvent
,
2714 &_swigt__p_wxDisplayChangedEvent
,
2715 &_swigt__p_wxDropFilesEvent
,
2716 &_swigt__p_wxDuplexMode
,
2717 &_swigt__p_wxEraseEvent
,
2719 &_swigt__p_wxEvtHandler
,
2720 &_swigt__p_wxFSFile
,
2721 &_swigt__p_wxFileSystem
,
2722 &_swigt__p_wxFlexGridSizer
,
2723 &_swigt__p_wxFocusEvent
,
2724 &_swigt__p_wxGBSizerItem
,
2725 &_swigt__p_wxGIFHandler
,
2726 &_swigt__p_wxGLCanvas
,
2727 &_swigt__p_wxGLContext
,
2728 &_swigt__p_wxGridBagSizer
,
2729 &_swigt__p_wxGridSizer
,
2730 &_swigt__p_wxICOHandler
,
2731 &_swigt__p_wxIconizeEvent
,
2732 &_swigt__p_wxIdleEvent
,
2734 &_swigt__p_wxImageHandler
,
2735 &_swigt__p_wxIndividualLayoutConstraint
,
2736 &_swigt__p_wxInitDialogEvent
,
2737 &_swigt__p_wxJPEGHandler
,
2738 &_swigt__p_wxKeyEvent
,
2739 &_swigt__p_wxLayoutConstraints
,
2740 &_swigt__p_wxMaximizeEvent
,
2742 &_swigt__p_wxMenuBar
,
2743 &_swigt__p_wxMenuEvent
,
2744 &_swigt__p_wxMenuItem
,
2745 &_swigt__p_wxMouseCaptureChangedEvent
,
2746 &_swigt__p_wxMouseEvent
,
2747 &_swigt__p_wxMoveEvent
,
2748 &_swigt__p_wxNavigationKeyEvent
,
2749 &_swigt__p_wxNcPaintEvent
,
2750 &_swigt__p_wxNotifyEvent
,
2751 &_swigt__p_wxObject
,
2752 &_swigt__p_wxPCXHandler
,
2753 &_swigt__p_wxPNGHandler
,
2754 &_swigt__p_wxPNMHandler
,
2755 &_swigt__p_wxPaintEvent
,
2756 &_swigt__p_wxPalette
,
2757 &_swigt__p_wxPaletteChangedEvent
,
2758 &_swigt__p_wxPaperSize
,
2760 &_swigt__p_wxPyCommandEvent
,
2761 &_swigt__p_wxPyEvent
,
2762 &_swigt__p_wxPyImageHandler
,
2763 &_swigt__p_wxPySizer
,
2764 &_swigt__p_wxPyValidator
,
2765 &_swigt__p_wxQueryNewPaletteEvent
,
2766 &_swigt__p_wxScrollEvent
,
2767 &_swigt__p_wxScrollWinEvent
,
2768 &_swigt__p_wxSetCursorEvent
,
2769 &_swigt__p_wxShowEvent
,
2770 &_swigt__p_wxSizeEvent
,
2772 &_swigt__p_wxSizerItem
,
2773 &_swigt__p_wxStaticBoxSizer
,
2774 &_swigt__p_wxStdDialogButtonSizer
,
2775 &_swigt__p_wxSysColourChangedEvent
,
2776 &_swigt__p_wxTIFFHandler
,
2777 &_swigt__p_wxUpdateUIEvent
,
2778 &_swigt__p_wxValidator
,
2779 &_swigt__p_wxWindow
,
2780 &_swigt__p_wxWindowCreateEvent
,
2781 &_swigt__p_wxWindowDestroyEvent
,
2782 &_swigt__p_wxXPMHandler
,
2784 &_swigt__std__ptrdiff_t
,
2785 &_swigt__unsigned_int
,
2788 static swig_cast_info _swigc__p_char
[] = { {&_swigt__p_char
, 0, 0, 0},{0, 0, 0, 0}};
2789 static swig_cast_info _swigc__p_form_ops_t
[] = { {&_swigt__p_form_ops_t
, 0, 0, 0},{0, 0, 0, 0}};
2790 static swig_cast_info _swigc__p_int
[] = { {&_swigt__p_int
, 0, 0, 0},{0, 0, 0, 0}};
2791 static swig_cast_info _swigc__p_unsigned_char
[] = { {&_swigt__p_unsigned_char
, 0, 0, 0},{0, 0, 0, 0}};
2792 static swig_cast_info _swigc__p_unsigned_int
[] = { {&_swigt__p_unsigned_int
, 0, 0, 0},{0, 0, 0, 0}};
2793 static swig_cast_info _swigc__p_unsigned_long
[] = { {&_swigt__p_unsigned_long
, 0, 0, 0},{0, 0, 0, 0}};
2794 static swig_cast_info _swigc__p_wxDuplexMode
[] = { {&_swigt__p_wxDuplexMode
, 0, 0, 0},{0, 0, 0, 0}};
2795 static swig_cast_info _swigc__p_wxControl
[] = {{&_swigt__p_wxControl
, 0, 0, 0},{0, 0, 0, 0}};
2796 static swig_cast_info _swigc__p_wxControlWithItems
[] = {{&_swigt__p_wxControlWithItems
, 0, 0, 0},{0, 0, 0, 0}};
2797 static swig_cast_info _swigc__p_wxPyApp
[] = {{&_swigt__p_wxPyApp
, 0, 0, 0},{0, 0, 0, 0}};
2798 static swig_cast_info _swigc__p_wxMenuBar
[] = {{&_swigt__p_wxMenuBar
, 0, 0, 0},{0, 0, 0, 0}};
2799 static swig_cast_info _swigc__p_wxValidator
[] = {{&_swigt__p_wxValidator
, 0, 0, 0},{0, 0, 0, 0}};
2800 static swig_cast_info _swigc__p_wxPyValidator
[] = {{&_swigt__p_wxPyValidator
, 0, 0, 0},{0, 0, 0, 0}};
2801 static swig_cast_info _swigc__p_wxMenu
[] = {{&_swigt__p_wxMenu
, 0, 0, 0},{0, 0, 0, 0}};
2802 static 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}};
2803 static swig_cast_info _swigc__p_wxGLCanvas
[] = { {&_swigt__p_wxGLCanvas
, 0, 0, 0},{0, 0, 0, 0}};
2804 static swig_cast_info _swigc__p_wxGLContext
[] = { {&_swigt__p_wxGLContext
, 0, 0, 0},{0, 0, 0, 0}};
2805 static swig_cast_info _swigc__p_wxLayoutConstraints
[] = {{&_swigt__p_wxLayoutConstraints
, 0, 0, 0},{0, 0, 0, 0}};
2806 static swig_cast_info _swigc__p_wxGBSizerItem
[] = {{&_swigt__p_wxGBSizerItem
, 0, 0, 0},{0, 0, 0, 0}};
2807 static swig_cast_info _swigc__p_wxSizerItem
[] = {{&_swigt__p_wxSizerItem
, 0, 0, 0},{0, 0, 0, 0}};
2808 static swig_cast_info _swigc__p_wxScrollEvent
[] = {{&_swigt__p_wxScrollEvent
, 0, 0, 0},{0, 0, 0, 0}};
2809 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint
[] = {{&_swigt__p_wxIndividualLayoutConstraint
, 0, 0, 0},{0, 0, 0, 0}};
2810 static swig_cast_info _swigc__p_wxStaticBoxSizer
[] = {{&_swigt__p_wxStaticBoxSizer
, 0, 0, 0},{0, 0, 0, 0}};
2811 static swig_cast_info _swigc__p_wxBoxSizer
[] = {{&_swigt__p_wxBoxSizer
, 0, 0, 0},{0, 0, 0, 0}};
2812 static swig_cast_info _swigc__p_wxSizer
[] = {{&_swigt__p_wxSizer
, 0, 0, 0},{0, 0, 0, 0}};
2813 static swig_cast_info _swigc__p_wxGridBagSizer
[] = {{&_swigt__p_wxGridBagSizer
, 0, 0, 0},{0, 0, 0, 0}};
2814 static swig_cast_info _swigc__p_wxUpdateUIEvent
[] = {{&_swigt__p_wxUpdateUIEvent
, 0, 0, 0},{0, 0, 0, 0}};
2815 static swig_cast_info _swigc__p_wxEvent
[] = {{&_swigt__p_wxEvent
, 0, 0, 0},{0, 0, 0, 0}};
2816 static swig_cast_info _swigc__p_wxGridSizer
[] = {{&_swigt__p_wxGridSizer
, 0, 0, 0},{0, 0, 0, 0}};
2817 static swig_cast_info _swigc__p_wxFlexGridSizer
[] = {{&_swigt__p_wxFlexGridSizer
, 0, 0, 0},{0, 0, 0, 0}};
2818 static swig_cast_info _swigc__p_wxInitDialogEvent
[] = {{&_swigt__p_wxInitDialogEvent
, 0, 0, 0},{0, 0, 0, 0}};
2819 static swig_cast_info _swigc__p_wxPaintEvent
[] = {{&_swigt__p_wxPaintEvent
, 0, 0, 0},{0, 0, 0, 0}};
2820 static swig_cast_info _swigc__p_wxNcPaintEvent
[] = {{&_swigt__p_wxNcPaintEvent
, 0, 0, 0},{0, 0, 0, 0}};
2821 static swig_cast_info _swigc__p_wxPaletteChangedEvent
[] = {{&_swigt__p_wxPaletteChangedEvent
, 0, 0, 0},{0, 0, 0, 0}};
2822 static swig_cast_info _swigc__p_wxDisplayChangedEvent
[] = {{&_swigt__p_wxDisplayChangedEvent
, 0, 0, 0},{0, 0, 0, 0}};
2823 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent
[] = {{&_swigt__p_wxMouseCaptureChangedEvent
, 0, 0, 0},{0, 0, 0, 0}};
2824 static swig_cast_info _swigc__p_wxSysColourChangedEvent
[] = {{&_swigt__p_wxSysColourChangedEvent
, 0, 0, 0},{0, 0, 0, 0}};
2825 static swig_cast_info _swigc__p_wxSetCursorEvent
[] = {{&_swigt__p_wxSetCursorEvent
, 0, 0, 0},{0, 0, 0, 0}};
2826 static swig_cast_info _swigc__p_wxFSFile
[] = {{&_swigt__p_wxFSFile
, 0, 0, 0},{0, 0, 0, 0}};
2827 static swig_cast_info _swigc__p_wxPySizer
[] = {{&_swigt__p_wxPySizer
, 0, 0, 0},{0, 0, 0, 0}};
2828 static swig_cast_info _swigc__p_wxPyEvent
[] = {{&_swigt__p_wxPyEvent
, 0, 0, 0},{0, 0, 0, 0}};
2829 static swig_cast_info _swigc__p_wxNotifyEvent
[] = {{&_swigt__p_wxNotifyEvent
, 0, 0, 0},{0, 0, 0, 0}};
2830 static swig_cast_info _swigc__p_wxShowEvent
[] = {{&_swigt__p_wxShowEvent
, 0, 0, 0},{0, 0, 0, 0}};
2831 static swig_cast_info _swigc__p_wxMenuItem
[] = {{&_swigt__p_wxMenuItem
, 0, 0, 0},{0, 0, 0, 0}};
2832 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent
[] = {{&_swigt__p_wxQueryNewPaletteEvent
, 0, 0, 0},{0, 0, 0, 0}};
2833 static swig_cast_info _swigc__p_wxWindowCreateEvent
[] = {{&_swigt__p_wxWindowCreateEvent
, 0, 0, 0},{0, 0, 0, 0}};
2834 static swig_cast_info _swigc__p_wxIdleEvent
[] = {{&_swigt__p_wxIdleEvent
, 0, 0, 0},{0, 0, 0, 0}};
2835 static swig_cast_info _swigc__p_wxDateEvent
[] = {{&_swigt__p_wxDateEvent
, 0, 0, 0},{0, 0, 0, 0}};
2836 static swig_cast_info _swigc__p_wxMaximizeEvent
[] = {{&_swigt__p_wxMaximizeEvent
, 0, 0, 0},{0, 0, 0, 0}};
2837 static swig_cast_info _swigc__p_wxIconizeEvent
[] = {{&_swigt__p_wxIconizeEvent
, 0, 0, 0},{0, 0, 0, 0}};
2838 static swig_cast_info _swigc__p_wxActivateEvent
[] = {{&_swigt__p_wxActivateEvent
, 0, 0, 0},{0, 0, 0, 0}};
2839 static swig_cast_info _swigc__p_wxMoveEvent
[] = {{&_swigt__p_wxMoveEvent
, 0, 0, 0},{0, 0, 0, 0}};
2840 static swig_cast_info _swigc__p_wxSizeEvent
[] = {{&_swigt__p_wxSizeEvent
, 0, 0, 0},{0, 0, 0, 0}};
2841 static swig_cast_info _swigc__p_wxPNMHandler
[] = {{&_swigt__p_wxPNMHandler
, 0, 0, 0},{0, 0, 0, 0}};
2842 static swig_cast_info _swigc__p_wxJPEGHandler
[] = {{&_swigt__p_wxJPEGHandler
, 0, 0, 0},{0, 0, 0, 0}};
2843 static swig_cast_info _swigc__p_wxPCXHandler
[] = {{&_swigt__p_wxPCXHandler
, 0, 0, 0},{0, 0, 0, 0}};
2844 static swig_cast_info _swigc__p_wxGIFHandler
[] = {{&_swigt__p_wxGIFHandler
, 0, 0, 0},{0, 0, 0, 0}};
2845 static swig_cast_info _swigc__p_wxPNGHandler
[] = {{&_swigt__p_wxPNGHandler
, 0, 0, 0},{0, 0, 0, 0}};
2846 static swig_cast_info _swigc__p_wxANIHandler
[] = {{&_swigt__p_wxANIHandler
, 0, 0, 0},{0, 0, 0, 0}};
2847 static swig_cast_info _swigc__p_wxCURHandler
[] = {{&_swigt__p_wxCURHandler
, 0, 0, 0},{0, 0, 0, 0}};
2848 static swig_cast_info _swigc__p_wxICOHandler
[] = {{&_swigt__p_wxICOHandler
, 0, 0, 0},{0, 0, 0, 0}};
2849 static swig_cast_info _swigc__p_wxBMPHandler
[] = {{&_swigt__p_wxBMPHandler
, 0, 0, 0},{0, 0, 0, 0}};
2850 static swig_cast_info _swigc__p_wxPyImageHandler
[] = {{&_swigt__p_wxPyImageHandler
, 0, 0, 0},{0, 0, 0, 0}};
2851 static swig_cast_info _swigc__p_wxImageHandler
[] = {{&_swigt__p_wxImageHandler
, 0, 0, 0},{0, 0, 0, 0}};
2852 static swig_cast_info _swigc__p_wxXPMHandler
[] = {{&_swigt__p_wxXPMHandler
, 0, 0, 0},{0, 0, 0, 0}};
2853 static swig_cast_info _swigc__p_wxTIFFHandler
[] = {{&_swigt__p_wxTIFFHandler
, 0, 0, 0},{0, 0, 0, 0}};
2854 static swig_cast_info _swigc__p_wxStdDialogButtonSizer
[] = {{&_swigt__p_wxStdDialogButtonSizer
, 0, 0, 0},{0, 0, 0, 0}};
2855 static swig_cast_info _swigc__p_wxAcceleratorTable
[] = {{&_swigt__p_wxAcceleratorTable
, 0, 0, 0},{0, 0, 0, 0}};
2856 static swig_cast_info _swigc__p_wxImage
[] = {{&_swigt__p_wxImage
, 0, 0, 0},{0, 0, 0, 0}};
2857 static swig_cast_info _swigc__p_wxScrollWinEvent
[] = {{&_swigt__p_wxScrollWinEvent
, 0, 0, 0},{0, 0, 0, 0}};
2858 static swig_cast_info _swigc__p_wxWindowDestroyEvent
[] = {{&_swigt__p_wxWindowDestroyEvent
, 0, 0, 0},{0, 0, 0, 0}};
2859 static swig_cast_info _swigc__p_wxNavigationKeyEvent
[] = {{&_swigt__p_wxNavigationKeyEvent
, 0, 0, 0},{0, 0, 0, 0}};
2860 static swig_cast_info _swigc__p_wxKeyEvent
[] = {{&_swigt__p_wxKeyEvent
, 0, 0, 0},{0, 0, 0, 0}};
2861 static swig_cast_info _swigc__p_wxFileSystem
[] = {{&_swigt__p_wxFileSystem
, 0, 0, 0},{0, 0, 0, 0}};
2862 static swig_cast_info _swigc__p_wxContextMenuEvent
[] = {{&_swigt__p_wxContextMenuEvent
, 0, 0, 0},{0, 0, 0, 0}};
2863 static swig_cast_info _swigc__p_wxMenuEvent
[] = {{&_swigt__p_wxMenuEvent
, 0, 0, 0},{0, 0, 0, 0}};
2864 static swig_cast_info _swigc__p_wxCloseEvent
[] = {{&_swigt__p_wxCloseEvent
, 0, 0, 0},{0, 0, 0, 0}};
2865 static swig_cast_info _swigc__p_wxMouseEvent
[] = {{&_swigt__p_wxMouseEvent
, 0, 0, 0},{0, 0, 0, 0}};
2866 static swig_cast_info _swigc__p_wxEraseEvent
[] = {{&_swigt__p_wxEraseEvent
, 0, 0, 0},{0, 0, 0, 0}};
2867 static swig_cast_info _swigc__p_wxCommandEvent
[] = {{&_swigt__p_wxCommandEvent
, 0, 0, 0},{0, 0, 0, 0}};
2868 static swig_cast_info _swigc__p_wxPyCommandEvent
[] = {{&_swigt__p_wxPyCommandEvent
, 0, 0, 0},{0, 0, 0, 0}};
2869 static swig_cast_info _swigc__p_wxDropFilesEvent
[] = {{&_swigt__p_wxDropFilesEvent
, 0, 0, 0},{0, 0, 0, 0}};
2870 static swig_cast_info _swigc__p_wxFocusEvent
[] = {{&_swigt__p_wxFocusEvent
, 0, 0, 0},{0, 0, 0, 0}};
2871 static swig_cast_info _swigc__p_wxChildFocusEvent
[] = {{&_swigt__p_wxChildFocusEvent
, 0, 0, 0},{0, 0, 0, 0}};
2872 static 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}};
2873 static swig_cast_info _swigc__p_wxPalette
[] = { {&_swigt__p_wxPalette
, 0, 0, 0},{0, 0, 0, 0}};
2874 static swig_cast_info _swigc__p_wxPaperSize
[] = { {&_swigt__p_wxPaperSize
, 0, 0, 0},{0, 0, 0, 0}};
2875 static 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}};
2876 static swig_cast_info _swigc__ptrdiff_t
[] = { {&_swigt__ptrdiff_t
, 0, 0, 0},{0, 0, 0, 0}};
2877 static swig_cast_info _swigc__std__ptrdiff_t
[] = { {&_swigt__std__ptrdiff_t
, 0, 0, 0},{0, 0, 0, 0}};
2878 static swig_cast_info _swigc__unsigned_int
[] = { {&_swigt__unsigned_int
, 0, 0, 0},{0, 0, 0, 0}};
2880 static swig_cast_info
*swig_cast_initial
[] = {
2882 _swigc__p_form_ops_t
,
2884 _swigc__p_unsigned_char
,
2885 _swigc__p_unsigned_int
,
2886 _swigc__p_unsigned_long
,
2887 _swigc__p_wxANIHandler
,
2888 _swigc__p_wxAcceleratorTable
,
2889 _swigc__p_wxActivateEvent
,
2890 _swigc__p_wxBMPHandler
,
2891 _swigc__p_wxBoxSizer
,
2892 _swigc__p_wxCURHandler
,
2893 _swigc__p_wxChildFocusEvent
,
2894 _swigc__p_wxCloseEvent
,
2895 _swigc__p_wxCommandEvent
,
2896 _swigc__p_wxContextMenuEvent
,
2897 _swigc__p_wxControl
,
2898 _swigc__p_wxControlWithItems
,
2899 _swigc__p_wxDateEvent
,
2900 _swigc__p_wxDisplayChangedEvent
,
2901 _swigc__p_wxDropFilesEvent
,
2902 _swigc__p_wxDuplexMode
,
2903 _swigc__p_wxEraseEvent
,
2905 _swigc__p_wxEvtHandler
,
2907 _swigc__p_wxFileSystem
,
2908 _swigc__p_wxFlexGridSizer
,
2909 _swigc__p_wxFocusEvent
,
2910 _swigc__p_wxGBSizerItem
,
2911 _swigc__p_wxGIFHandler
,
2912 _swigc__p_wxGLCanvas
,
2913 _swigc__p_wxGLContext
,
2914 _swigc__p_wxGridBagSizer
,
2915 _swigc__p_wxGridSizer
,
2916 _swigc__p_wxICOHandler
,
2917 _swigc__p_wxIconizeEvent
,
2918 _swigc__p_wxIdleEvent
,
2920 _swigc__p_wxImageHandler
,
2921 _swigc__p_wxIndividualLayoutConstraint
,
2922 _swigc__p_wxInitDialogEvent
,
2923 _swigc__p_wxJPEGHandler
,
2924 _swigc__p_wxKeyEvent
,
2925 _swigc__p_wxLayoutConstraints
,
2926 _swigc__p_wxMaximizeEvent
,
2928 _swigc__p_wxMenuBar
,
2929 _swigc__p_wxMenuEvent
,
2930 _swigc__p_wxMenuItem
,
2931 _swigc__p_wxMouseCaptureChangedEvent
,
2932 _swigc__p_wxMouseEvent
,
2933 _swigc__p_wxMoveEvent
,
2934 _swigc__p_wxNavigationKeyEvent
,
2935 _swigc__p_wxNcPaintEvent
,
2936 _swigc__p_wxNotifyEvent
,
2938 _swigc__p_wxPCXHandler
,
2939 _swigc__p_wxPNGHandler
,
2940 _swigc__p_wxPNMHandler
,
2941 _swigc__p_wxPaintEvent
,
2942 _swigc__p_wxPalette
,
2943 _swigc__p_wxPaletteChangedEvent
,
2944 _swigc__p_wxPaperSize
,
2946 _swigc__p_wxPyCommandEvent
,
2947 _swigc__p_wxPyEvent
,
2948 _swigc__p_wxPyImageHandler
,
2949 _swigc__p_wxPySizer
,
2950 _swigc__p_wxPyValidator
,
2951 _swigc__p_wxQueryNewPaletteEvent
,
2952 _swigc__p_wxScrollEvent
,
2953 _swigc__p_wxScrollWinEvent
,
2954 _swigc__p_wxSetCursorEvent
,
2955 _swigc__p_wxShowEvent
,
2956 _swigc__p_wxSizeEvent
,
2958 _swigc__p_wxSizerItem
,
2959 _swigc__p_wxStaticBoxSizer
,
2960 _swigc__p_wxStdDialogButtonSizer
,
2961 _swigc__p_wxSysColourChangedEvent
,
2962 _swigc__p_wxTIFFHandler
,
2963 _swigc__p_wxUpdateUIEvent
,
2964 _swigc__p_wxValidator
,
2966 _swigc__p_wxWindowCreateEvent
,
2967 _swigc__p_wxWindowDestroyEvent
,
2968 _swigc__p_wxXPMHandler
,
2970 _swigc__std__ptrdiff_t
,
2971 _swigc__unsigned_int
,
2975 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
2977 static swig_const_info swig_const_table
[] = {
2978 {0, 0, 0, 0.0, 0, 0}};
2983 /*************************************************************************
2984 * Type initialization:
2985 * This problem is tough by the requirement that no dynamic
2986 * memory is used. Also, since swig_type_info structures store pointers to
2987 * swig_cast_info structures and swig_cast_info structures store pointers back
2988 * to swig_type_info structures, we need some lookup code at initialization.
2989 * The idea is that swig generates all the structures that are needed.
2990 * The runtime then collects these partially filled structures.
2991 * The SWIG_InitializeModule function takes these initial arrays out of
2992 * swig_module, and does all the lookup, filling in the swig_module.types
2993 * array with the correct data and linking the correct swig_cast_info
2994 * structures together.
2996 * The generated swig_type_info structures are assigned staticly to an initial
2997 * array. We just loop though that array, and handle each type individually.
2998 * First we lookup if this type has been already loaded, and if so, use the
2999 * loaded structure instead of the generated one. Then we have to fill in the
3000 * cast linked list. The cast data is initially stored in something like a
3001 * two-dimensional array. Each row corresponds to a type (there are the same
3002 * number of rows as there are in the swig_type_initial array). Each entry in
3003 * a column is one of the swig_cast_info structures for that type.
3004 * The cast_initial array is actually an array of arrays, because each row has
3005 * a variable number of columns. So to actually build the cast linked list,
3006 * we find the array of casts associated with the type, and loop through it
3007 * adding the casts to the list. The one last trick we need to do is making
3008 * sure the type pointer in the swig_cast_info struct is correct.
3010 * First off, we lookup the cast->type name to see if it is already loaded.
3011 * There are three cases to handle:
3012 * 1) If the cast->type has already been loaded AND the type we are adding
3013 * casting info to has not been loaded (it is in this module), THEN we
3014 * replace the cast->type pointer with the type pointer that has already
3016 * 2) If BOTH types (the one we are adding casting info to, and the
3017 * cast->type) are loaded, THEN the cast info has already been loaded by
3018 * the previous module so we just ignore it.
3019 * 3) Finally, if cast->type has not already been loaded, then we add that
3020 * swig_cast_info to the linked list (because the cast->type) pointer will
3032 #define SWIGRUNTIME_DEBUG
3036 SWIG_InitializeModule(void *clientdata
) {
3038 swig_module_info
*module_head
;
3039 static int init_run
= 0;
3041 clientdata
= clientdata
;
3043 if (init_run
) return;
3046 /* Initialize the swig_module */
3047 swig_module
.type_initial
= swig_type_initial
;
3048 swig_module
.cast_initial
= swig_cast_initial
;
3050 /* Try and load any already created modules */
3051 module_head
= SWIG_GetModule(clientdata
);
3053 swig_module
.next
= module_head
->next
;
3054 module_head
->next
= &swig_module
;
3056 /* This is the first module loaded */
3057 swig_module
.next
= &swig_module
;
3058 SWIG_SetModule(clientdata
, &swig_module
);
3061 /* Now work on filling in swig_module.types */
3062 #ifdef SWIGRUNTIME_DEBUG
3063 printf("SWIG_InitializeModule: size %d\n", swig_module
.size
);
3065 for (i
= 0; i
< swig_module
.size
; ++i
) {
3066 swig_type_info
*type
= 0;
3067 swig_type_info
*ret
;
3068 swig_cast_info
*cast
;
3070 #ifdef SWIGRUNTIME_DEBUG
3071 printf("SWIG_InitializeModule: type %d %s\n", i
, swig_module
.type_initial
[i
]->name
);
3074 /* if there is another module already loaded */
3075 if (swig_module
.next
!= &swig_module
) {
3076 type
= SWIG_MangledTypeQueryModule(swig_module
.next
, &swig_module
, swig_module
.type_initial
[i
]->name
);
3079 /* Overwrite clientdata field */
3080 #ifdef SWIGRUNTIME_DEBUG
3081 printf("SWIG_InitializeModule: found type %s\n", type
->name
);
3083 if (swig_module
.type_initial
[i
]->clientdata
) {
3084 type
->clientdata
= swig_module
.type_initial
[i
]->clientdata
;
3085 #ifdef SWIGRUNTIME_DEBUG
3086 printf("SWIG_InitializeModule: found and overwrite type %s \n", type
->name
);
3090 type
= swig_module
.type_initial
[i
];
3093 /* Insert casting types */
3094 cast
= swig_module
.cast_initial
[i
];
3095 while (cast
->type
) {
3096 /* Don't need to add information already in the list */
3098 #ifdef SWIGRUNTIME_DEBUG
3099 printf("SWIG_InitializeModule: look cast %s\n", cast
->type
->name
);
3101 if (swig_module
.next
!= &swig_module
) {
3102 ret
= SWIG_MangledTypeQueryModule(swig_module
.next
, &swig_module
, cast
->type
->name
);
3103 #ifdef SWIGRUNTIME_DEBUG
3104 if (ret
) printf("SWIG_InitializeModule: found cast %s\n", ret
->name
);
3108 if (type
== swig_module
.type_initial
[i
]) {
3109 #ifdef SWIGRUNTIME_DEBUG
3110 printf("SWIG_InitializeModule: skip old type %s\n", ret
->name
);
3115 /* Check for casting already in the list */
3116 swig_cast_info
*ocast
= SWIG_TypeCheck(ret
->name
, type
);
3117 #ifdef SWIGRUNTIME_DEBUG
3118 if (ocast
) printf("SWIG_InitializeModule: skip old cast %s\n", ret
->name
);
3120 if (!ocast
) ret
= 0;
3125 #ifdef SWIGRUNTIME_DEBUG
3126 printf("SWIG_InitializeModule: adding cast %s\n", cast
->type
->name
);
3129 type
->cast
->prev
= cast
;
3130 cast
->next
= type
->cast
;
3136 /* Set entry in modules->types array equal to the type */
3137 swig_module
.types
[i
] = type
;
3139 swig_module
.types
[i
] = 0;
3141 #ifdef SWIGRUNTIME_DEBUG
3142 printf("**** SWIG_InitializeModule: Cast List ******\n");
3143 for (i
= 0; i
< swig_module
.size
; ++i
) {
3145 swig_cast_info
*cast
= swig_module
.cast_initial
[i
];
3146 printf("SWIG_InitializeModule: type %d %s\n", i
, swig_module
.type_initial
[i
]->name
);
3147 while (cast
->type
) {
3148 printf("SWIG_InitializeModule: cast type %s\n", cast
->type
->name
);
3152 printf("---- Total casts: %d\n",j
);
3154 printf("**** SWIG_InitializeModule: Cast List ******\n");
3158 /* This function will propagate the clientdata field of type to
3159 * any new swig_type_info structures that have been added into the list
3160 * of equivalent types. It is like calling
3161 * SWIG_TypeClientData(type, clientdata) a second time.
3164 SWIG_PropagateClientData(void) {
3166 swig_cast_info
*equiv
;
3167 static int init_run
= 0;
3169 if (init_run
) return;
3172 for (i
= 0; i
< swig_module
.size
; i
++) {
3173 if (swig_module
.types
[i
]->clientdata
) {
3174 equiv
= swig_module
.types
[i
]->cast
;
3176 if (!equiv
->converter
) {
3177 if (equiv
->type
&& !equiv
->type
->clientdata
)
3178 SWIG_TypeClientData(equiv
->type
, swig_module
.types
[i
]->clientdata
);
3180 equiv
= equiv
->next
;
3200 /* Python-specific SWIG API */
3201 #define SWIG_newvarlink() SWIG_Python_newvarlink()
3202 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
3203 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
3205 /* -----------------------------------------------------------------------------
3206 * global variable support code.
3207 * ----------------------------------------------------------------------------- */
3209 typedef struct swig_globalvar
{
3210 char *name
; /* Name of global variable */
3211 PyObject
*(*get_attr
)(void); /* Return the current value */
3212 int (*set_attr
)(PyObject
*); /* Set the value */
3213 struct swig_globalvar
*next
;
3216 typedef struct swig_varlinkobject
{
3218 swig_globalvar
*vars
;
3219 } swig_varlinkobject
;
3221 SWIGINTERN PyObject
*
3222 swig_varlink_repr(swig_varlinkobject
*v
) {
3224 return PyString_FromString("<Swig global variables>");
3228 swig_varlink_print(swig_varlinkobject
*v
, FILE *fp
, int flags
) {
3229 swig_globalvar
*var
;
3231 fprintf(fp
,"Swig global variables { ");
3232 for (var
= v
->vars
; var
; var
=var
->next
) {
3233 fprintf(fp
,"%s", var
->name
);
3234 if (var
->next
) fprintf(fp
,", ");
3240 SWIGINTERN PyObject
*
3241 swig_varlink_getattr(swig_varlinkobject
*v
, char *n
) {
3242 swig_globalvar
*var
= v
->vars
;
3244 if (strcmp(var
->name
,n
) == 0) {
3245 return (*var
->get_attr
)();
3249 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
3254 swig_varlink_setattr(swig_varlinkobject
*v
, char *n
, PyObject
*p
) {
3255 swig_globalvar
*var
= v
->vars
;
3257 if (strcmp(var
->name
,n
) == 0) {
3258 return (*var
->set_attr
)(p
);
3262 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
3266 SWIGINTERN PyTypeObject
*
3267 swig_varlink_type(void) {
3268 static char varlink__doc__
[] = "Swig var link object";
3269 static PyTypeObject varlink_type
3270 #if !defined(__cplusplus)
3272 static int type_init
= 0;
3277 PyObject_HEAD_INIT(&PyType_Type
)
3278 0, /* Number of items in variable part (ob_size) */
3279 (char *)"swigvarlink", /* Type name (tp_name) */
3280 sizeof(swig_varlinkobject
), /* Basic size (tp_basicsize) */
3281 0, /* Itemsize (tp_itemsize) */
3282 0, /* Deallocator (tp_dealloc) */
3283 (printfunc
) swig_varlink_print
, /* Print (tp_print) */
3284 (getattrfunc
) swig_varlink_getattr
, /* get attr (tp_getattr) */
3285 (setattrfunc
) swig_varlink_setattr
, /* Set attr (tp_setattr) */
3287 (reprfunc
) swig_varlink_repr
, /* tp_repr */
3288 0, /* tp_as_number */
3289 0, /* tp_as_sequence */
3290 0, /* tp_as_mapping */
3294 0, /* tp_getattro */
3295 0, /* tp_setattro */
3296 0, /* tp_as_buffer */
3298 varlink__doc__
, /* tp_doc */
3299 #if PY_VERSION_HEX >= 0x02000000
3300 0, /* tp_traverse */
3303 #if PY_VERSION_HEX >= 0x02010000
3304 0, /* tp_richcompare */
3305 0, /* tp_weaklistoffset */
3307 #if PY_VERSION_HEX >= 0x02020000
3308 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
3310 #if PY_VERSION_HEX >= 0x02030000
3314 0,0,0,0 /* tp_alloc -> tp_next */
3317 #if !defined(__cplusplus)
3322 return &varlink_type
;
3325 /* Create a variable linking object for use later */
3326 SWIGINTERN PyObject
*
3327 SWIG_Python_newvarlink(void) {
3328 swig_varlinkobject
*result
= PyObject_NEW(swig_varlinkobject
, swig_varlink_type());
3332 return ((PyObject
*) result
);
3336 SWIG_Python_addvarlink(PyObject
*p
, char *name
, PyObject
*(*get_attr
)(void), int (*set_attr
)(PyObject
*p
)) {
3337 swig_varlinkobject
*v
= (swig_varlinkobject
*) p
;
3338 swig_globalvar
*gv
= (swig_globalvar
*) malloc(sizeof(swig_globalvar
));
3340 size_t size
= strlen(name
)+1;
3341 gv
->name
= (char *)malloc(size
);
3343 strncpy(gv
->name
,name
,size
);
3344 gv
->get_attr
= get_attr
;
3345 gv
->set_attr
= set_attr
;
3352 /* -----------------------------------------------------------------------------
3353 * constants/methods manipulation
3354 * ----------------------------------------------------------------------------- */
3356 /* Install Constants */
3358 SWIG_Python_InstallConstants(PyObject
*d
, swig_const_info constants
[]) {
3361 for (i
= 0; constants
[i
].type
; ++i
) {
3362 switch(constants
[i
].type
) {
3364 obj
= PyInt_FromLong(constants
[i
].lvalue
);
3367 obj
= PyFloat_FromDouble(constants
[i
].dvalue
);
3369 case SWIG_PY_STRING
:
3370 if (constants
[i
].pvalue
) {
3371 obj
= PyString_FromString((char *) constants
[i
].pvalue
);
3377 case SWIG_PY_POINTER
:
3378 obj
= SWIG_NewPointerObj(constants
[i
].pvalue
, *(constants
[i
]).ptype
,0);
3380 case SWIG_PY_BINARY
:
3381 obj
= SWIG_NewPackedObj(constants
[i
].pvalue
, constants
[i
].lvalue
, *(constants
[i
].ptype
));
3388 PyDict_SetItemString(d
,constants
[i
].name
,obj
);
3394 /* -----------------------------------------------------------------------------*/
3395 /* Fix SwigMethods to carry the callback ptrs when needed */
3396 /* -----------------------------------------------------------------------------*/
3399 SWIG_Python_FixMethods(PyMethodDef
*methods
,
3400 swig_const_info
*const_table
,
3401 swig_type_info
**types
,
3402 swig_type_info
**types_initial
) {
3404 for (i
= 0; methods
[i
].ml_name
; ++i
) {
3405 char *c
= methods
[i
].ml_doc
;
3406 if (c
&& (c
= strstr(c
, "swig_ptr: "))) {
3408 swig_const_info
*ci
= 0;
3409 char *name
= c
+ 10;
3410 for (j
= 0; const_table
[j
].type
; ++j
) {
3411 if (strncmp(const_table
[j
].name
, name
,
3412 strlen(const_table
[j
].name
)) == 0) {
3413 ci
= &(const_table
[j
]);
3418 size_t shift
= (ci
->ptype
) - types
;
3419 swig_type_info
*ty
= types_initial
[shift
];
3420 size_t ldoc
= (c
- methods
[i
].ml_doc
);
3421 size_t lptr
= strlen(ty
->name
)+2*sizeof(void*)+2;
3422 char *ndoc
= (char*)malloc(ldoc
+ lptr
+ 10);
3425 void *ptr
= (ci
->type
== SWIG_PY_POINTER
) ? ci
->pvalue
: 0;
3427 strncpy(buff
, methods
[i
].ml_doc
, ldoc
);
3429 strncpy(buff
, "swig_ptr: ", 10);
3431 SWIG_PackVoidPtr(buff
, ptr
, ty
->name
, lptr
);
3432 methods
[i
].ml_doc
= ndoc
;
3440 /* -----------------------------------------------------------------------------*
3441 * Initialize type list
3442 * -----------------------------------------------------------------------------*/
3448 /* -----------------------------------------------------------------------------*
3449 * Partial Init method
3450 * -----------------------------------------------------------------------------*/
3455 SWIGEXPORT
void SWIG_init(void) {
3456 static PyObject
*SWIG_globals
= 0;
3458 if (!SWIG_globals
) SWIG_globals
= SWIG_newvarlink();
3460 /* Fix SwigMethods to carry the callback ptrs when needed */
3461 SWIG_Python_FixMethods(SwigMethods
, swig_const_table
, swig_types
, swig_type_initial
);
3463 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
3464 d
= PyModule_GetDict(m
);
3466 SWIG_InitializeModule(0);
3467 SWIG_InstallConstants(d
,swig_const_table
);
3469 PyDict_SetItemString(d
,(char*)"cvar", SWIG_globals
);
3470 SWIG_addvarlink(SWIG_globals
,(char*)"GLCanvasNameStr",_wrap_GLCanvasNameStr_get
, _wrap_GLCanvasNameStr_set
);
3472 PyDict_SetItemString(d
,"WX_GL_RGBA", SWIG_From_int(static_cast<int >(WX_GL_RGBA
)));
3475 PyDict_SetItemString(d
,"WX_GL_BUFFER_SIZE", SWIG_From_int(static_cast<int >(WX_GL_BUFFER_SIZE
)));
3478 PyDict_SetItemString(d
,"WX_GL_LEVEL", SWIG_From_int(static_cast<int >(WX_GL_LEVEL
)));
3481 PyDict_SetItemString(d
,"WX_GL_DOUBLEBUFFER", SWIG_From_int(static_cast<int >(WX_GL_DOUBLEBUFFER
)));
3484 PyDict_SetItemString(d
,"WX_GL_STEREO", SWIG_From_int(static_cast<int >(WX_GL_STEREO
)));
3487 PyDict_SetItemString(d
,"WX_GL_AUX_BUFFERS", SWIG_From_int(static_cast<int >(WX_GL_AUX_BUFFERS
)));
3490 PyDict_SetItemString(d
,"WX_GL_MIN_RED", SWIG_From_int(static_cast<int >(WX_GL_MIN_RED
)));
3493 PyDict_SetItemString(d
,"WX_GL_MIN_GREEN", SWIG_From_int(static_cast<int >(WX_GL_MIN_GREEN
)));
3496 PyDict_SetItemString(d
,"WX_GL_MIN_BLUE", SWIG_From_int(static_cast<int >(WX_GL_MIN_BLUE
)));
3499 PyDict_SetItemString(d
,"WX_GL_MIN_ALPHA", SWIG_From_int(static_cast<int >(WX_GL_MIN_ALPHA
)));
3502 PyDict_SetItemString(d
,"WX_GL_DEPTH_SIZE", SWIG_From_int(static_cast<int >(WX_GL_DEPTH_SIZE
)));
3505 PyDict_SetItemString(d
,"WX_GL_STENCIL_SIZE", SWIG_From_int(static_cast<int >(WX_GL_STENCIL_SIZE
)));
3508 PyDict_SetItemString(d
,"WX_GL_MIN_ACCUM_RED", SWIG_From_int(static_cast<int >(WX_GL_MIN_ACCUM_RED
)));
3511 PyDict_SetItemString(d
,"WX_GL_MIN_ACCUM_GREEN", SWIG_From_int(static_cast<int >(WX_GL_MIN_ACCUM_GREEN
)));
3514 PyDict_SetItemString(d
,"WX_GL_MIN_ACCUM_BLUE", SWIG_From_int(static_cast<int >(WX_GL_MIN_ACCUM_BLUE
)));
3517 PyDict_SetItemString(d
,"WX_GL_MIN_ACCUM_ALPHA", SWIG_From_int(static_cast<int >(WX_GL_MIN_ACCUM_ALPHA
)));