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 * ----------------------------------------------------------------------------- */
14 template<class T
> class SwigValueWrapper
{
17 SwigValueWrapper() : tt(0) { }
18 SwigValueWrapper(const SwigValueWrapper
<T
>& rhs
) : tt(new T(*rhs
.tt
)) { }
19 SwigValueWrapper(const T
& t
) : tt(new T(t
)) { }
20 ~SwigValueWrapper() { delete tt
; }
21 SwigValueWrapper
& operator=(const T
& t
) { delete tt
; tt
= new T(t
); return *this; }
22 operator T
&() const { return *tt
; }
23 T
*operator&() { return tt
; }
25 SwigValueWrapper
& operator=(const SwigValueWrapper
<T
>& rhs
);
30 #ifndef SWIG_TEMPLATE_DISAMBIGUATOR
31 # if defined(__SUNPRO_CC)
32 # define SWIG_TEMPLATE_DISAMBIGUATOR template
34 # define SWIG_TEMPLATE_DISAMBIGUATOR
41 /***********************************************************************
44 * This file contains generic CAPI SWIG runtime support for pointer
47 ************************************************************************/
49 /* This should only be incremented when either the layout of swig_type_info changes,
50 or for whatever reason, the runtime changes incompatibly */
51 #define SWIG_RUNTIME_VERSION "1"
53 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
54 #ifdef SWIG_TYPE_TABLE
55 #define SWIG_QUOTE_STRING(x) #x
56 #define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
57 #define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
59 #define SWIG_TYPE_TABLE_NAME
65 #if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
66 # define SWIGINLINE inline
73 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
74 creating a static or dynamic library from the swig runtime code.
75 In 99.9% of the cases, swig just needs to declare them as 'static'.
77 But only do this if is strictly necessary, ie, if you have problems
78 with your compiler or so.
81 #define SWIGRUNTIME static
83 #ifndef SWIGRUNTIMEINLINE
84 #define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
91 typedef void *(*swig_converter_func
)(void *);
92 typedef struct swig_type_info
*(*swig_dycast_func
)(void **);
94 typedef struct swig_type_info
{
96 swig_converter_func converter
;
99 swig_dycast_func dcast
;
100 struct swig_type_info
*next
;
101 struct swig_type_info
*prev
;
105 Compare two type names skipping the space characters, therefore
106 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
108 Return 0 when the two name types are equivalent, as in
109 strncmp, but skipping ' '.
112 SWIG_TypeNameComp(const char *f1
, const char *l1
,
113 const char *f2
, const char *l2
) {
114 for (;(f1
!= l1
) && (f2
!= l2
); ++f1
, ++f2
) {
115 while ((*f1
== ' ') && (f1
!= l1
)) ++f1
;
116 while ((*f2
== ' ') && (f2
!= l2
)) ++f2
;
117 if (*f1
!= *f2
) return *f1
- *f2
;
119 return (l1
- f1
) - (l2
- f2
);
123 Check type equivalence in a name list like <name1>|<name2>|...
126 SWIG_TypeEquiv(const char *nb
, const char *tb
) {
128 const char* te
= tb
+ strlen(tb
);
130 while (!equiv
&& *ne
) {
131 for (nb
= ne
; *ne
; ++ne
) {
132 if (*ne
== '|') break;
134 equiv
= SWIG_TypeNameComp(nb
, ne
, tb
, te
) == 0;
141 Register a type mapping with the type-checking
143 SWIGRUNTIME swig_type_info
*
144 SWIG_TypeRegisterTL(swig_type_info
**tl
, swig_type_info
*ti
) {
145 swig_type_info
*tc
, *head
, *ret
, *next
;
146 /* Check to see if this type has already been registered */
149 /* check simple type equivalence */
150 int typeequiv
= (strcmp(tc
->name
, ti
->name
) == 0);
151 /* check full type equivalence, resolving typedefs */
153 /* only if tc is not a typedef (no '|' on it) */
154 if (tc
->str
&& ti
->str
&& !strstr(tc
->str
,"|")) {
155 typeequiv
= SWIG_TypeEquiv(ti
->str
,tc
->str
);
159 /* Already exists in the table. Just add additional types to the list */
160 if (ti
->clientdata
) tc
->clientdata
= ti
->clientdata
;
174 /* Build linked lists */
178 /* Patch up the rest of the links */
185 if (next
) next
->prev
= head
;
194 SWIGRUNTIME swig_type_info
*
195 SWIG_TypeCheck(const char *c
, swig_type_info
*ty
) {
197 if (!ty
) return 0; /* Void pointer */
198 s
= ty
->next
; /* First element always just a name */
200 if (strcmp(s
->name
,c
) == 0) {
201 if (s
== ty
->next
) return s
;
202 /* Move s to the top of the linked list */
203 s
->prev
->next
= s
->next
;
205 s
->next
->prev
= s
->prev
;
207 /* Insert s as second element in the list */
209 if (ty
->next
) ty
->next
->prev
= s
;
215 } while (s
&& (s
!= ty
->next
));
220 Cast a pointer up an inheritance hierarchy
222 SWIGRUNTIMEINLINE
void *
223 SWIG_TypeCast(swig_type_info
*ty
, void *ptr
) {
224 return ((!ty
) || (!ty
->converter
)) ? ptr
: (*ty
->converter
)(ptr
);
228 Dynamic pointer casting. Down an inheritance hierarchy
230 SWIGRUNTIME swig_type_info
*
231 SWIG_TypeDynamicCast(swig_type_info
*ty
, void **ptr
) {
232 swig_type_info
*lastty
= ty
;
233 if (!ty
|| !ty
->dcast
) return ty
;
234 while (ty
&& (ty
->dcast
)) {
235 ty
= (*ty
->dcast
)(ptr
);
242 Return the name associated with this type
244 SWIGRUNTIMEINLINE
const char *
245 SWIG_TypeName(const swig_type_info
*ty
) {
250 Return the pretty name associated with this type,
251 that is an unmangled type name in a form presentable to the user.
253 SWIGRUNTIME
const char *
254 SWIG_TypePrettyName(const swig_type_info
*type
) {
255 /* The "str" field contains the equivalent pretty names of the
256 type, separated by vertical-bar characters. We choose
257 to print the last name, as it is often (?) the most
259 if (type
->str
!= NULL
) {
260 const char *last_name
= type
->str
;
262 for (s
= type
->str
; *s
; s
++)
263 if (*s
== '|') last_name
= s
+1;
271 Search for a swig_type_info structure
273 SWIGRUNTIME swig_type_info
*
274 SWIG_TypeQueryTL(swig_type_info
*tl
, const char *name
) {
275 swig_type_info
*ty
= tl
;
277 if (ty
->str
&& (SWIG_TypeEquiv(ty
->str
,name
))) return ty
;
278 if (ty
->name
&& (strcmp(name
,ty
->name
) == 0)) return ty
;
285 Set the clientdata field for a type
288 SWIG_TypeClientDataTL(swig_type_info
*tl
, swig_type_info
*ti
, void *clientdata
) {
289 swig_type_info
*tc
, *equiv
;
290 if (ti
->clientdata
) return;
291 /* if (ti->clientdata == clientdata) return; */
292 ti
->clientdata
= clientdata
;
295 if (!equiv
->converter
) {
298 if ((strcmp(tc
->name
, equiv
->name
) == 0))
299 SWIG_TypeClientDataTL(tl
,tc
,clientdata
);
308 Pack binary data into a string
311 SWIG_PackData(char *c
, void *ptr
, size_t sz
) {
312 static char hex
[17] = "0123456789abcdef";
313 unsigned char *u
= (unsigned char *) ptr
;
314 const unsigned char *eu
= u
+ sz
;
315 register unsigned char uu
;
316 for (; u
!= eu
; ++u
) {
318 *(c
++) = hex
[(uu
& 0xf0) >> 4];
319 *(c
++) = hex
[uu
& 0xf];
325 Unpack binary data from a string
327 SWIGRUNTIME
const char *
328 SWIG_UnpackData(const char *c
, void *ptr
, size_t sz
) {
329 register unsigned char *u
= (unsigned char *) ptr
;
330 register const unsigned char *eu
= u
+ sz
;
331 for (; u
!= eu
; ++u
) {
332 register int d
= *(c
++);
333 register unsigned char uu
= 0;
334 if ((d
>= '0') && (d
<= '9'))
335 uu
= ((d
- '0') << 4);
336 else if ((d
>= 'a') && (d
<= 'f'))
337 uu
= ((d
- ('a'-10)) << 4);
341 if ((d
>= '0') && (d
<= '9'))
343 else if ((d
>= 'a') && (d
<= 'f'))
344 uu
|= (d
- ('a'-10));
353 This function will propagate the clientdata field of type to any new
354 swig_type_info structures that have been added into the list of
355 equivalent types. It is like calling SWIG_TypeClientData(type,
356 clientdata) a second time.
359 SWIG_PropagateClientDataTL(swig_type_info
*tl
, swig_type_info
*type
) {
360 swig_type_info
*equiv
= type
->next
;
362 if (!type
->clientdata
) return;
364 if (!equiv
->converter
) {
367 if ((strcmp(tc
->name
, equiv
->name
) == 0) && !tc
->clientdata
)
368 SWIG_TypeClientDataTL(tl
,tc
, type
->clientdata
);
377 Pack 'void *' into a string buffer.
380 SWIG_PackVoidPtr(char *buff
, void *ptr
, const char *name
, size_t bsz
) {
382 if ((2*sizeof(void *) + 2) > bsz
) return 0;
384 r
= SWIG_PackData(r
,&ptr
,sizeof(void *));
385 if (strlen(name
) + 1 > (bsz
- (r
- buff
))) return 0;
390 SWIGRUNTIME
const char *
391 SWIG_UnpackVoidPtr(const char *c
, void **ptr
, const char *name
) {
393 if (strcmp(c
,"NULL") == 0) {
400 return SWIG_UnpackData(++c
,ptr
,sizeof(void *));
404 SWIG_PackDataName(char *buff
, void *ptr
, size_t sz
, const char *name
, size_t bsz
) {
406 size_t lname
= (name
? strlen(name
) : 0);
407 if ((2*sz
+ 2 + lname
) > bsz
) return 0;
409 r
= SWIG_PackData(r
,ptr
,sz
);
411 strncpy(r
,name
,lname
+1);
418 SWIGRUNTIME
const char *
419 SWIG_UnpackDataName(const char *c
, void *ptr
, size_t sz
, const char *name
) {
421 if (strcmp(c
,"NULL") == 0) {
428 return SWIG_UnpackData(++c
,ptr
,sz
);
435 /***********************************************************************
438 * This file contains generic SWIG runtime support for pointer
439 * type checking as well as a few commonly used macros to control
442 * Author : David Beazley (beazley@cs.uchicago.edu)
444 * Copyright (c) 1999-2000, The University of Chicago
446 * This file may be freely redistributed without license or fee provided
447 * this copyright message remains intact.
448 ************************************************************************/
451 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
452 # if !defined(STATIC_LINKED)
453 # define SWIGEXPORT(a) __declspec(dllexport) a
455 # define SWIGEXPORT(a) a
458 # define SWIGEXPORT(a) a
466 /*************************************************************************/
469 /* The static type info list */
471 static swig_type_info
*swig_type_list
= 0;
472 static swig_type_info
**swig_type_list_handle
= &swig_type_list
;
475 /* Register a type mapping with the type-checking */
476 static swig_type_info
*
477 SWIG_TypeRegister(swig_type_info
*ti
) {
478 return SWIG_TypeRegisterTL(swig_type_list_handle
, ti
);
481 /* Search for a swig_type_info structure */
482 static swig_type_info
*
483 SWIG_TypeQuery(const char *name
) {
484 return SWIG_TypeQueryTL(*swig_type_list_handle
, name
);
487 /* Set the clientdata field for a type */
489 SWIG_TypeClientData(swig_type_info
*ti
, void *clientdata
) {
490 SWIG_TypeClientDataTL(*swig_type_list_handle
, ti
, clientdata
);
493 /* This function will propagate the clientdata field of type to
494 * any new swig_type_info structures that have been added into the list
495 * of equivalent types. It is like calling
496 * SWIG_TypeClientData(type, clientdata) a second time.
499 SWIG_PropagateClientData(swig_type_info
*type
) {
500 SWIG_PropagateClientDataTL(*swig_type_list_handle
, type
);
507 /* -----------------------------------------------------------------------------
508 * SWIG API. Portion that goes into the runtime
509 * ----------------------------------------------------------------------------- */
515 /* -----------------------------------------------------------------------------
516 * for internal method declarations
517 * ----------------------------------------------------------------------------- */
520 #define SWIGINTERN static
523 #ifndef SWIGINTERNSHORT
525 #define SWIGINTERNSHORT static inline
527 #define SWIGINTERNSHORT static
528 #endif /* __cplusplus */
533 Exception handling in wrappers
535 #define SWIG_fail goto fail
536 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
537 #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0)
538 #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1)
539 #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj)
540 #define SWIG_null_ref(type) SWIG_Python_NullRef(type)
545 #define SWIG_contract_assert(expr, msg) \
546 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
548 /* -----------------------------------------------------------------------------
549 * Constant declarations
550 * ----------------------------------------------------------------------------- */
553 #define SWIG_PY_INT 1
554 #define SWIG_PY_FLOAT 2
555 #define SWIG_PY_STRING 3
556 #define SWIG_PY_POINTER 4
557 #define SWIG_PY_BINARY 5
559 /* Constant information structure */
560 typedef struct swig_const_info
{
566 swig_type_info
**ptype
;
570 /* -----------------------------------------------------------------------------
571 * Alloc. memory flags
572 * ----------------------------------------------------------------------------- */
573 #define SWIG_OLDOBJ 1
574 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
575 #define SWIG_PYSTR SWIG_NEWOBJ + 1
582 /***********************************************************************
585 * This file contains the runtime support for Python modules
586 * and includes code for managing global variables and pointer
589 * Author : David Beazley (beazley@cs.uchicago.edu)
590 ************************************************************************/
592 /* Common SWIG API */
593 #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags)
594 #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags)
595 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
598 /* Python-specific SWIG API */
599 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
600 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
603 /* -----------------------------------------------------------------------------
604 * Pointer declarations
605 * ----------------------------------------------------------------------------- */
607 Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent
608 C/C++ pointers in the python side. Very useful for debugging, but
611 #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
612 # define SWIG_COBJECT_TYPES
615 /* Flags for pointer conversion */
616 #define SWIG_POINTER_EXCEPTION 0x1
617 #define SWIG_POINTER_DISOWN 0x2
624 /* -----------------------------------------------------------------------------
625 * Create a new pointer string
626 * ----------------------------------------------------------------------------- */
628 #ifndef SWIG_BUFFER_SIZE
629 #define SWIG_BUFFER_SIZE 1024
632 #if defined(SWIG_COBJECT_TYPES)
633 #if !defined(SWIG_COBJECT_PYTHON)
634 /* -----------------------------------------------------------------------------
635 * Implements a simple Swig Object type, and use it instead of PyCObject
636 * ----------------------------------------------------------------------------- */
644 /* Declarations for objects of type PySwigObject */
647 PySwigObject_print(PySwigObject
*v
, FILE *fp
, int flags
)
649 char result
[SWIG_BUFFER_SIZE
];
650 if (SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
))) {
651 fputs("<Swig Object at ", fp
); fputs(result
, fp
); fputs(">", fp
);
658 SWIGRUNTIME PyObject
*
659 PySwigObject_repr(PySwigObject
*v
)
661 char result
[SWIG_BUFFER_SIZE
];
662 return SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
)) ?
663 PyString_FromFormat("<Swig Object at %s>", result
) : 0;
666 SWIGRUNTIME PyObject
*
667 PySwigObject_str(PySwigObject
*v
)
669 char result
[SWIG_BUFFER_SIZE
];
670 return SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
)) ?
671 PyString_FromString(result
) : 0;
674 SWIGRUNTIME PyObject
*
675 PySwigObject_long(PySwigObject
*v
)
677 return PyLong_FromUnsignedLong((unsigned long) v
->ptr
);
680 SWIGRUNTIME PyObject
*
681 PySwigObject_oct(PySwigObject
*v
)
684 unsigned long x
= (unsigned long)v
->ptr
;
688 PyOS_snprintf(buf
, sizeof(buf
), "0%lo", x
);
689 return PyString_FromString(buf
);
692 SWIGRUNTIME PyObject
*
693 PySwigObject_hex(PySwigObject
*v
)
696 PyOS_snprintf(buf
, sizeof(buf
), "0x%lx", (unsigned long)v
->ptr
);
697 return PyString_FromString(buf
);
701 PySwigObject_compare(PySwigObject
*v
, PySwigObject
*w
)
703 int c
= strcmp(v
->desc
, w
->desc
);
709 return (i
< j
) ? -1 : (i
> j
) ? 1 : 0;
714 PySwigObject_dealloc(PySwigObject
*self
)
719 SWIGRUNTIME PyTypeObject
*
720 PySwigObject_GetType() {
721 static char PySwigObject_Type__doc__
[] =
722 "Swig object carries a C/C++ instance pointer";
724 static PyNumberMethods PySwigObject_as_number
= {
725 (binaryfunc
)0, /*nb_add*/
726 (binaryfunc
)0, /*nb_subtract*/
727 (binaryfunc
)0, /*nb_multiply*/
728 (binaryfunc
)0, /*nb_divide*/
729 (binaryfunc
)0, /*nb_remainder*/
730 (binaryfunc
)0, /*nb_divmod*/
731 (ternaryfunc
)0,/*nb_power*/
732 (unaryfunc
)0, /*nb_negative*/
733 (unaryfunc
)0, /*nb_positive*/
734 (unaryfunc
)0, /*nb_absolute*/
735 (inquiry
)0, /*nb_nonzero*/
742 (coercion
)0, /*nb_coerce*/
743 (unaryfunc
)PySwigObject_long
, /*nb_int*/
744 (unaryfunc
)PySwigObject_long
, /*nb_long*/
745 (unaryfunc
)0, /*nb_float*/
746 (unaryfunc
)PySwigObject_oct
, /*nb_oct*/
747 (unaryfunc
)PySwigObject_hex
, /*nb_hex*/
748 #if PY_VERSION_HEX >= 0x02000000
749 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
753 static int type_init
= 0;
754 static PyTypeObject PySwigObject_Type
;
758 PyObject_HEAD_INIT(&PyType_Type
)
760 "PySwigObject", /*tp_name*/
761 sizeof(PySwigObject
), /*tp_basicsize*/
764 (destructor
)PySwigObject_dealloc
, /*tp_dealloc*/
765 (printfunc
)PySwigObject_print
, /*tp_print*/
766 (getattrfunc
)0, /*tp_getattr*/
767 (setattrfunc
)0, /*tp_setattr*/
768 (cmpfunc
)PySwigObject_compare
, /*tp_compare*/
769 (reprfunc
)PySwigObject_repr
, /*tp_repr*/
770 &PySwigObject_as_number
, /*tp_as_number*/
771 0, /*tp_as_sequence*/
773 (hashfunc
)0, /*tp_hash*/
774 (ternaryfunc
)0, /*tp_call*/
775 (reprfunc
)PySwigObject_str
, /*tp_str*/
776 /* Space for future expansion */
778 PySwigObject_Type__doc__
, /* Documentation string */
779 #if PY_VERSION_HEX >= 0x02000000
783 #if PY_VERSION_HEX >= 0x02010000
784 0, /* tp_richcompare */
785 0, /* tp_weaklistoffset */
787 #if PY_VERSION_HEX >= 0x02020000
788 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
790 #if PY_VERSION_HEX >= 0x02030000
794 0,0,0,0 /* tp_alloc -> tp_next */
798 PySwigObject_Type
= tmp
;
802 return &PySwigObject_Type
;
805 SWIGRUNTIME PyObject
*
806 PySwigObject_FromVoidPtrAndDesc(void *ptr
, const char *desc
)
808 PySwigObject
*self
= PyObject_NEW(PySwigObject
, PySwigObject_GetType());
809 if (self
== NULL
) return NULL
;
812 return (PyObject
*)self
;
815 SWIGRUNTIMEINLINE
void *
816 PySwigObject_AsVoidPtr(PyObject
*self
)
818 return ((PySwigObject
*)self
)->ptr
;
821 SWIGRUNTIMEINLINE
const char *
822 PySwigObject_GetDesc(PyObject
*self
)
824 return ((PySwigObject
*)self
)->desc
;
827 SWIGRUNTIMEINLINE
int
828 PySwigObject_Check(PyObject
*op
) {
829 return ((op
)->ob_type
== PySwigObject_GetType())
830 || (strcmp((op
)->ob_type
->tp_name
,"PySwigObject") == 0);
833 /* -----------------------------------------------------------------------------
834 * Implements a simple Swig Packed type, and use it instead of string
835 * ----------------------------------------------------------------------------- */
845 PySwigPacked_print(PySwigPacked
*v
, FILE *fp
, int flags
)
847 char result
[SWIG_BUFFER_SIZE
];
848 fputs("<Swig Packed ", fp
);
849 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))) {
858 SWIGRUNTIME PyObject
*
859 PySwigPacked_repr(PySwigPacked
*v
)
861 char result
[SWIG_BUFFER_SIZE
];
862 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))) {
863 return PyString_FromFormat("<Swig Packed at %s%s>", result
, v
->desc
);
865 return PyString_FromFormat("<Swig Packed %s>", v
->desc
);
869 SWIGRUNTIME PyObject
*
870 PySwigPacked_str(PySwigPacked
*v
)
872 char result
[SWIG_BUFFER_SIZE
];
873 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))){
874 return PyString_FromFormat("%s%s", result
, v
->desc
);
876 return PyString_FromFormat("%s", v
->desc
);
881 PySwigPacked_compare(PySwigPacked
*v
, PySwigPacked
*w
)
883 int c
= strcmp(v
->desc
, w
->desc
);
889 int s
= (i
< j
) ? -1 : (i
> j
) ? 1 : 0;
890 return s
? s
: strncmp((char *)v
->pack
, (char *)w
->pack
, 2*v
->size
);
895 PySwigPacked_dealloc(PySwigPacked
*self
)
901 SWIGRUNTIME PyTypeObject
*
902 PySwigPacked_GetType() {
903 static char PySwigPacked_Type__doc__
[] =
904 "Swig object carries a C/C++ instance pointer";
905 static int type_init
= 0;
907 static PyTypeObject PySwigPacked_Type
;
910 PyObject_HEAD_INIT(&PyType_Type
)
912 "PySwigPacked", /*tp_name*/
913 sizeof(PySwigPacked
), /*tp_basicsize*/
916 (destructor
)PySwigPacked_dealloc
, /*tp_dealloc*/
917 (printfunc
)PySwigPacked_print
, /*tp_print*/
918 (getattrfunc
)0, /*tp_getattr*/
919 (setattrfunc
)0, /*tp_setattr*/
920 (cmpfunc
)PySwigPacked_compare
, /*tp_compare*/
921 (reprfunc
)PySwigPacked_repr
, /*tp_repr*/
923 0, /*tp_as_sequence*/
925 (hashfunc
)0, /*tp_hash*/
926 (ternaryfunc
)0, /*tp_call*/
927 (reprfunc
)PySwigPacked_str
, /*tp_str*/
928 /* Space for future expansion */
930 PySwigPacked_Type__doc__
, /* Documentation string */
931 #if PY_VERSION_HEX >= 0x02000000
935 #if PY_VERSION_HEX >= 0x02010000
936 0, /* tp_richcompare */
937 0, /* tp_weaklistoffset */
939 #if PY_VERSION_HEX >= 0x02020000
940 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
942 #if PY_VERSION_HEX >= 0x02030000
946 0,0,0,0 /* tp_alloc -> tp_next */
950 PySwigPacked_Type
= tmp
;
956 return &PySwigPacked_Type
;
959 SWIGRUNTIME PyObject
*
960 PySwigPacked_FromDataAndDesc(void *ptr
, size_t size
, const char *desc
)
962 PySwigPacked
*self
= PyObject_NEW(PySwigPacked
, PySwigPacked_GetType());
966 void *pack
= malloc(size
);
967 memcpy(pack
, ptr
, size
);
971 return (PyObject
*) self
;
975 SWIGRUNTIMEINLINE
const char *
976 PySwigPacked_UnpackData(PyObject
*obj
, void *ptr
, size_t size
)
978 PySwigPacked
*self
= (PySwigPacked
*)obj
;
979 if (self
->size
!= size
) return 0;
980 memcpy(ptr
, self
->pack
, size
);
984 SWIGRUNTIMEINLINE
const char *
985 PySwigPacked_GetDesc(PyObject
*self
)
987 return ((PySwigPacked
*)self
)->desc
;
990 SWIGRUNTIMEINLINE
int
991 PySwigPacked_Check(PyObject
*op
) {
992 return ((op
)->ob_type
== PySwigPacked_GetType())
993 || (strcmp((op
)->ob_type
->tp_name
,"PySwigPacked") == 0);
997 /* -----------------------------------------------------------------------------
998 * Use the old Python PyCObject instead of PySwigObject
999 * ----------------------------------------------------------------------------- */
1001 #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj)
1002 #define PySwigObject_Check(obj) PyCObject_Check(obj)
1003 #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj)
1004 #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL)
1010 /* -----------------------------------------------------------------------------
1011 * errors manipulation
1012 * ----------------------------------------------------------------------------- */
1015 SWIG_Python_TypeError(const char *type
, PyObject
*obj
)
1018 #if defined(SWIG_COBJECT_TYPES)
1019 if (PySwigObject_Check(obj
)) {
1020 const char *otype
= (const char *) PySwigObject_GetDesc(obj
);
1022 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, 'PySwigObject(%s)' is received",
1029 const char *otype
= (obj
? obj
->ob_type
->tp_name
: 0);
1031 PyObject
*str
= PyObject_Str(obj
);
1032 const char *cstr
= str
? PyString_AsString(str
) : 0;
1034 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, '%s(%s)' is received",
1037 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, '%s' is received",
1044 PyErr_Format(PyExc_TypeError
, "a '%s' is expected", type
);
1046 PyErr_Format(PyExc_TypeError
, "unexpected type is received");
1050 SWIGRUNTIMEINLINE
void
1051 SWIG_Python_NullRef(const char *type
)
1054 PyErr_Format(PyExc_TypeError
, "null reference of type '%s' was received",type
);
1056 PyErr_Format(PyExc_TypeError
, "null reference was received");
1061 SWIG_Python_AddErrMesg(const char* mesg
, int infront
)
1063 if (PyErr_Occurred()) {
1065 PyObject
*value
= 0;
1066 PyObject
*traceback
= 0;
1067 PyErr_Fetch(&type
, &value
, &traceback
);
1069 PyObject
*old_str
= PyObject_Str(value
);
1073 PyErr_Format(type
, "%s %s", mesg
, PyString_AsString(old_str
));
1075 PyErr_Format(type
, "%s %s", PyString_AsString(old_str
), mesg
);
1086 SWIG_Python_ArgFail(int argnum
)
1088 if (PyErr_Occurred()) {
1089 /* add information about failing argument */
1091 sprintf(mesg
, "argument number %d:", argnum
);
1092 return SWIG_Python_AddErrMesg(mesg
, 1);
1099 /* -----------------------------------------------------------------------------
1100 * pointers/data manipulation
1101 * ----------------------------------------------------------------------------- */
1103 /* Convert a pointer value */
1105 SWIG_Python_ConvertPtr(PyObject
*obj
, void **ptr
, swig_type_info
*ty
, int flags
) {
1108 static PyObject
*SWIG_this
= 0;
1110 PyObject
*pyobj
= 0;
1114 if (obj
== Py_None
) {
1119 #ifdef SWIG_COBJECT_TYPES
1120 if (!(PySwigObject_Check(obj
))) {
1122 SWIG_this
= PyString_FromString("this");
1124 obj
= PyObject_GetAttr(obj
,SWIG_this
);
1126 if (!obj
) goto type_error
;
1127 if (!PySwigObject_Check(obj
)) {
1132 vptr
= PySwigObject_AsVoidPtr(obj
);
1133 c
= (const char *) PySwigObject_GetDesc(obj
);
1134 if (newref
) { Py_DECREF(obj
); }
1137 if (!(PyString_Check(obj
))) {
1139 SWIG_this
= PyString_FromString("this");
1141 obj
= PyObject_GetAttr(obj
,SWIG_this
);
1143 if (!obj
) goto type_error
;
1144 if (!PyString_Check(obj
)) {
1149 c
= PyString_AS_STRING(obj
);
1150 /* Pointer values must start with leading underscore */
1151 c
= SWIG_UnpackVoidPtr(c
, &vptr
, ty
->name
);
1152 if (newref
) { Py_DECREF(obj
); }
1153 if (!c
) goto type_error
;
1159 tc
= SWIG_TypeCheck(c
,ty
);
1160 if (!tc
) goto type_error
;
1161 *ptr
= SWIG_TypeCast(tc
,vptr
);
1166 if ((pyobj
) && (flags
& SWIG_POINTER_DISOWN
)) {
1167 PyObject_SetAttrString(pyobj
,(char*)"thisown",Py_False
);
1173 if (pyobj
&& !obj
) {
1175 if (PyCFunction_Check(obj
)) {
1176 /* here we get the method pointer for callbacks */
1177 char *doc
= (((PyCFunctionObject
*)obj
) -> m_ml
-> ml_doc
);
1178 c
= doc
? strstr(doc
, "swig_ptr: ") : 0;
1180 c
= SWIG_UnpackVoidPtr(c
+ 10, &vptr
, ty
->name
);
1181 if (!c
) goto type_error
;
1186 if (flags
& SWIG_POINTER_EXCEPTION
) {
1188 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1190 SWIG_Python_TypeError("C/C++ pointer", obj
);
1196 /* Convert a pointer value, signal an exception on a type mismatch */
1198 SWIG_Python_MustGetPtr(PyObject
*obj
, swig_type_info
*ty
, int argnum
, int flags
) {
1200 if (SWIG_Python_ConvertPtr(obj
, &result
, ty
, flags
) == -1) {
1202 if (flags
& SWIG_POINTER_EXCEPTION
) {
1203 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1204 SWIG_Python_ArgFail(argnum
);
1210 /* Convert a packed value value */
1212 SWIG_Python_ConvertPacked(PyObject
*obj
, void *ptr
, size_t sz
, swig_type_info
*ty
, int flags
) {
1216 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1217 c
= PySwigPacked_UnpackData(obj
, ptr
, sz
);
1219 if ((!obj
) || (!PyString_Check(obj
))) goto type_error
;
1220 c
= PyString_AS_STRING(obj
);
1221 /* Pointer values must start with leading underscore */
1222 c
= SWIG_UnpackDataName(c
, ptr
, sz
, ty
->name
);
1224 if (!c
) goto type_error
;
1226 tc
= SWIG_TypeCheck(c
,ty
);
1227 if (!tc
) goto type_error
;
1233 if (flags
& SWIG_POINTER_EXCEPTION
) {
1235 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1237 SWIG_Python_TypeError("C/C++ packed data", obj
);
1243 /* Create a new array object */
1244 SWIGRUNTIME PyObject
*
1245 SWIG_Python_NewPointerObj(void *ptr
, swig_type_info
*type
, int own
) {
1251 #ifdef SWIG_COBJECT_TYPES
1252 robj
= PySwigObject_FromVoidPtrAndDesc((void *) ptr
, (char *)type
->name
);
1255 char result
[SWIG_BUFFER_SIZE
];
1256 robj
= SWIG_PackVoidPtr(result
, ptr
, type
->name
, sizeof(result
)) ?
1257 PyString_FromString(result
) : 0;
1260 if (!robj
|| (robj
== Py_None
)) return robj
;
1261 if (type
->clientdata
) {
1263 PyObject
*args
= Py_BuildValue((char*)"(O)", robj
);
1265 inst
= PyObject_CallObject((PyObject
*) type
->clientdata
, args
);
1269 PyObject_SetAttrString(inst
,(char*)"thisown",Py_True
);
1277 SWIGRUNTIME PyObject
*
1278 SWIG_Python_NewPackedObj(void *ptr
, size_t sz
, swig_type_info
*type
) {
1284 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1285 robj
= PySwigPacked_FromDataAndDesc((void *) ptr
, sz
, (char *)type
->name
);
1288 char result
[SWIG_BUFFER_SIZE
];
1289 robj
= SWIG_PackDataName(result
, ptr
, sz
, type
->name
, sizeof(result
)) ?
1290 PyString_FromString(result
) : 0;
1296 /* -----------------------------------------------------------------------------*
1298 * -----------------------------------------------------------------------------*/
1300 #ifdef SWIG_LINK_RUNTIME
1301 void *SWIG_ReturnGlobalTypeList(void *);
1304 SWIGRUNTIME swig_type_info
**
1305 SWIG_Python_GetTypeListHandle() {
1306 static void *type_pointer
= (void *)0;
1307 /* first check if module already created */
1308 if (!type_pointer
) {
1309 #ifdef SWIG_LINK_RUNTIME
1310 type_pointer
= SWIG_ReturnGlobalTypeList((void *)0);
1312 type_pointer
= PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
,
1313 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
);
1314 if (PyErr_Occurred()) {
1316 type_pointer
= (void *)0;
1320 return (swig_type_info
**) type_pointer
;
1324 Search for a swig_type_info structure
1326 SWIGRUNTIMEINLINE swig_type_info
*
1327 SWIG_Python_GetTypeList() {
1328 swig_type_info
**tlh
= SWIG_Python_GetTypeListHandle();
1329 return tlh
? *tlh
: (swig_type_info
*)0;
1332 #define SWIG_Runtime_GetTypeList SWIG_Python_GetTypeList
1339 /* -------- TYPES TABLE (BEGIN) -------- */
1341 #define SWIGTYPE_p_wxRect swig_types[0]
1342 #define SWIGTYPE_p_wxGIFAnimationCtrl swig_types[1]
1343 #define SWIGTYPE_p_wxObject swig_types[2]
1344 #define SWIGTYPE_p_unsigned_char swig_types[3]
1345 #define SWIGTYPE_p_wxColour swig_types[4]
1346 #define SWIGTYPE_p_wxAnimationPlayer swig_types[5]
1347 #define SWIGTYPE_p_wxWindow swig_types[6]
1348 #define SWIGTYPE_p_unsigned_long swig_types[7]
1349 #define SWIGTYPE_p_wxBitmap swig_types[8]
1350 #define SWIGTYPE_p_form_ops_t swig_types[9]
1351 #define SWIGTYPE_p_unsigned_int swig_types[10]
1352 #define SWIGTYPE_unsigned_int swig_types[11]
1353 #define SWIGTYPE_p_wxDuplexMode swig_types[12]
1354 #define SWIGTYPE_p_wxGIFAnimation swig_types[13]
1355 #define SWIGTYPE_p_char swig_types[14]
1356 #define SWIGTYPE_p_wxAnimationBase swig_types[15]
1357 #define SWIGTYPE_p_wxPoint swig_types[16]
1358 #define SWIGTYPE_p_wxDC swig_types[17]
1359 #define SWIGTYPE_p_wxEvtHandler swig_types[18]
1360 #define SWIGTYPE_std__ptrdiff_t swig_types[19]
1361 #define SWIGTYPE_ptrdiff_t swig_types[20]
1362 #define SWIGTYPE_p_wxControl swig_types[21]
1363 #define SWIGTYPE_p_wxPaperSize swig_types[22]
1364 #define SWIGTYPE_p_wxImage swig_types[23]
1365 #define SWIGTYPE_p_wxSize swig_types[24]
1366 #define SWIGTYPE_p_int swig_types[25]
1367 static swig_type_info
*swig_types
[27];
1369 /* -------- TYPES TABLE (END) -------- */
1372 /*-----------------------------------------------
1373 @(target):= _animate.so
1374 ------------------------------------------------*/
1375 #define SWIG_init init_animate
1377 #define SWIG_name "_animate"
1379 #include "wx/wxPython/wxPython.h"
1380 #include "wx/wxPython/pyclasses.h"
1381 #include <wx/animate/animate.h>
1383 static const wxString
wxPyAnimationControlNameStr(wxT("animationControl"));
1384 static const wxString
wxPyEmptyString(wxEmptyString
);
1386 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/
1387 #define SWIG_From_int PyInt_FromLong
1395 SWIG_CheckLongInRange(long value
, long min_value
, long max_value
,
1398 if (value
< min_value
) {
1400 PyErr_Format(PyExc_OverflowError
,
1401 "value %ld is less than '%s' minimum %ld",
1402 value
, errmsg
, min_value
);
1405 } else if (value
> max_value
) {
1407 PyErr_Format(PyExc_OverflowError
,
1408 "value %ld is greater than '%s' maximum %ld",
1409 value
, errmsg
, max_value
);
1418 SWIG_AsVal_long(PyObject
* obj
, long* val
)
1420 if (PyNumber_Check(obj
)) {
1421 if (val
) *val
= PyInt_AsLong(obj
);
1425 SWIG_type_error("number", obj
);
1431 #if INT_MAX != LONG_MAX
1433 SWIG_AsVal_int(PyObject
*obj
, int *val
)
1435 const char* errmsg
= val
? "int" : (char*)0;
1437 if (SWIG_AsVal_long(obj
, &v
)) {
1438 if (SWIG_CheckLongInRange(v
, INT_MIN
,INT_MAX
, errmsg
)) {
1439 if (val
) *val
= (int)(v
);
1448 SWIG_type_error(errmsg
, obj
);
1454 SWIG_AsVal_int(PyObject
*obj
, int *val
)
1456 return SWIG_AsVal_long(obj
,(long*)val
);
1462 SWIG_AsVal_bool(PyObject
*obj
, bool *val
)
1464 if (obj
== Py_True
) {
1465 if (val
) *val
= true;
1468 if (obj
== Py_False
) {
1469 if (val
) *val
= false;
1473 if (SWIG_AsVal_int(obj
, &res
)) {
1474 if (val
) *val
= res
? true : false;
1480 SWIG_type_error("bool", obj
);
1486 SWIGINTERNSHORT
bool
1487 SWIG_As_bool(PyObject
* obj
)
1490 if (!SWIG_AsVal_bool(obj
, &v
)) {
1492 this is needed to make valgrind/purify happier.
1494 memset((void*)&v
, 0, sizeof(bool));
1501 SWIG_Check_bool(PyObject
* obj
)
1503 return SWIG_AsVal_bool(obj
, (bool*)0);
1508 SWIG_As_int(PyObject
* obj
)
1511 if (!SWIG_AsVal_int(obj
, &v
)) {
1513 this is needed to make valgrind/purify happier.
1515 memset((void*)&v
, 0, sizeof(int));
1522 SWIG_Check_int(PyObject
* obj
)
1524 return SWIG_AsVal_int(obj
, (int*)0);
1528 SWIGINTERNSHORT
long
1529 SWIG_As_long(PyObject
* obj
)
1532 if (!SWIG_AsVal_long(obj
, &v
)) {
1534 this is needed to make valgrind/purify happier.
1536 memset((void*)&v
, 0, sizeof(long));
1543 SWIG_Check_long(PyObject
* obj
)
1545 return SWIG_AsVal_long(obj
, (long*)0);
1551 static int _wrap_AnimationControlNameStr_set(PyObject
*) {
1552 PyErr_SetString(PyExc_TypeError
,"Variable AnimationControlNameStr is read-only.");
1557 static PyObject
*_wrap_AnimationControlNameStr_get(void) {
1562 pyobj
= PyUnicode_FromWideChar((&wxPyAnimationControlNameStr
)->c_str(), (&wxPyAnimationControlNameStr
)->Len());
1564 pyobj
= PyString_FromStringAndSize((&wxPyAnimationControlNameStr
)->c_str(), (&wxPyAnimationControlNameStr
)->Len());
1571 static PyObject
*_wrap_new_AnimationPlayer(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1572 PyObject
*resultobj
;
1573 wxAnimationBase
*arg1
= (wxAnimationBase
*) NULL
;
1574 bool arg2
= (bool) false ;
1575 wxAnimationPlayer
*result
;
1576 PyObject
* obj0
= 0 ;
1577 PyObject
* obj1
= 0 ;
1579 (char *) "animation",(char *) "destroyAnimation", NULL
1582 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OO:new_AnimationPlayer",kwnames
,&obj0
,&obj1
)) goto fail
;
1584 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
1585 if (SWIG_arg_fail(1)) SWIG_fail
;
1589 arg2
= (bool)(SWIG_As_bool(obj1
));
1590 if (SWIG_arg_fail(2)) SWIG_fail
;
1594 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1595 result
= (wxAnimationPlayer
*)new wxAnimationPlayer(arg1
,arg2
);
1597 wxPyEndAllowThreads(__tstate
);
1598 if (PyErr_Occurred()) SWIG_fail
;
1600 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxAnimationPlayer
, 1);
1607 static PyObject
*_wrap_delete_AnimationPlayer(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1608 PyObject
*resultobj
;
1609 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1610 PyObject
* obj0
= 0 ;
1612 (char *) "self", NULL
1615 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_AnimationPlayer",kwnames
,&obj0
)) goto fail
;
1616 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
1617 if (SWIG_arg_fail(1)) SWIG_fail
;
1619 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1622 wxPyEndAllowThreads(__tstate
);
1623 if (PyErr_Occurred()) SWIG_fail
;
1625 Py_INCREF(Py_None
); resultobj
= Py_None
;
1632 static PyObject
*_wrap_AnimationPlayer_SetAnimation(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1633 PyObject
*resultobj
;
1634 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1635 wxAnimationBase
*arg2
= (wxAnimationBase
*) 0 ;
1636 bool arg3
= (bool) false ;
1637 PyObject
* obj0
= 0 ;
1638 PyObject
* obj1
= 0 ;
1639 PyObject
* obj2
= 0 ;
1641 (char *) "self",(char *) "animation",(char *) "destroyAnimation", NULL
1644 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:AnimationPlayer_SetAnimation",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1645 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
1646 if (SWIG_arg_fail(1)) SWIG_fail
;
1647 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
1648 if (SWIG_arg_fail(2)) SWIG_fail
;
1651 arg3
= (bool)(SWIG_As_bool(obj2
));
1652 if (SWIG_arg_fail(3)) SWIG_fail
;
1656 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1657 (arg1
)->SetAnimation(arg2
,arg3
);
1659 wxPyEndAllowThreads(__tstate
);
1660 if (PyErr_Occurred()) SWIG_fail
;
1662 Py_INCREF(Py_None
); resultobj
= Py_None
;
1669 static PyObject
*_wrap_AnimationPlayer_GetAnimation(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1670 PyObject
*resultobj
;
1671 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1672 wxAnimationBase
*result
;
1673 PyObject
* obj0
= 0 ;
1675 (char *) "self", NULL
1678 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_GetAnimation",kwnames
,&obj0
)) goto fail
;
1679 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
1680 if (SWIG_arg_fail(1)) SWIG_fail
;
1682 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1683 result
= (wxAnimationBase
*)((wxAnimationPlayer
const *)arg1
)->GetAnimation();
1685 wxPyEndAllowThreads(__tstate
);
1686 if (PyErr_Occurred()) SWIG_fail
;
1688 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxAnimationBase
, 0);
1695 static PyObject
*_wrap_AnimationPlayer_SetDestroyAnimation(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1696 PyObject
*resultobj
;
1697 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1699 PyObject
* obj0
= 0 ;
1700 PyObject
* obj1
= 0 ;
1702 (char *) "self",(char *) "destroyAnimation", NULL
1705 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_SetDestroyAnimation",kwnames
,&obj0
,&obj1
)) goto fail
;
1706 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
1707 if (SWIG_arg_fail(1)) SWIG_fail
;
1709 arg2
= (bool)(SWIG_As_bool(obj1
));
1710 if (SWIG_arg_fail(2)) SWIG_fail
;
1713 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1714 (arg1
)->SetDestroyAnimation(arg2
);
1716 wxPyEndAllowThreads(__tstate
);
1717 if (PyErr_Occurred()) SWIG_fail
;
1719 Py_INCREF(Py_None
); resultobj
= Py_None
;
1726 static PyObject
*_wrap_AnimationPlayer_GetDestroyAnimation(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1727 PyObject
*resultobj
;
1728 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1730 PyObject
* obj0
= 0 ;
1732 (char *) "self", NULL
1735 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_GetDestroyAnimation",kwnames
,&obj0
)) goto fail
;
1736 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
1737 if (SWIG_arg_fail(1)) SWIG_fail
;
1739 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1740 result
= (bool)((wxAnimationPlayer
const *)arg1
)->GetDestroyAnimation();
1742 wxPyEndAllowThreads(__tstate
);
1743 if (PyErr_Occurred()) SWIG_fail
;
1746 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1754 static PyObject
*_wrap_AnimationPlayer_SetCurrentFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1755 PyObject
*resultobj
;
1756 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1758 PyObject
* obj0
= 0 ;
1759 PyObject
* obj1
= 0 ;
1761 (char *) "self",(char *) "currentFrame", NULL
1764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_SetCurrentFrame",kwnames
,&obj0
,&obj1
)) goto fail
;
1765 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
1766 if (SWIG_arg_fail(1)) SWIG_fail
;
1768 arg2
= (int)(SWIG_As_int(obj1
));
1769 if (SWIG_arg_fail(2)) SWIG_fail
;
1772 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1773 (arg1
)->SetCurrentFrame(arg2
);
1775 wxPyEndAllowThreads(__tstate
);
1776 if (PyErr_Occurred()) SWIG_fail
;
1778 Py_INCREF(Py_None
); resultobj
= Py_None
;
1785 static PyObject
*_wrap_AnimationPlayer_GetCurrentFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1786 PyObject
*resultobj
;
1787 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1789 PyObject
* obj0
= 0 ;
1791 (char *) "self", NULL
1794 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_GetCurrentFrame",kwnames
,&obj0
)) goto fail
;
1795 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
1796 if (SWIG_arg_fail(1)) SWIG_fail
;
1798 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1799 result
= (int)((wxAnimationPlayer
const *)arg1
)->GetCurrentFrame();
1801 wxPyEndAllowThreads(__tstate
);
1802 if (PyErr_Occurred()) SWIG_fail
;
1805 resultobj
= SWIG_From_int((int)(result
));
1813 static PyObject
*_wrap_AnimationPlayer_SetWindow(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1814 PyObject
*resultobj
;
1815 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1816 wxWindow
*arg2
= (wxWindow
*) 0 ;
1817 PyObject
* obj0
= 0 ;
1818 PyObject
* obj1
= 0 ;
1820 (char *) "self",(char *) "window", NULL
1823 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_SetWindow",kwnames
,&obj0
,&obj1
)) goto fail
;
1824 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
1825 if (SWIG_arg_fail(1)) SWIG_fail
;
1826 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
1827 if (SWIG_arg_fail(2)) SWIG_fail
;
1829 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1830 (arg1
)->SetWindow(arg2
);
1832 wxPyEndAllowThreads(__tstate
);
1833 if (PyErr_Occurred()) SWIG_fail
;
1835 Py_INCREF(Py_None
); resultobj
= Py_None
;
1842 static PyObject
*_wrap_AnimationPlayer_GetWindow(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1843 PyObject
*resultobj
;
1844 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1846 PyObject
* obj0
= 0 ;
1848 (char *) "self", NULL
1851 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_GetWindow",kwnames
,&obj0
)) goto fail
;
1852 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
1853 if (SWIG_arg_fail(1)) SWIG_fail
;
1855 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1856 result
= (wxWindow
*)((wxAnimationPlayer
const *)arg1
)->GetWindow();
1858 wxPyEndAllowThreads(__tstate
);
1859 if (PyErr_Occurred()) SWIG_fail
;
1862 resultobj
= wxPyMake_wxObject(result
, 0);
1870 static PyObject
*_wrap_AnimationPlayer_SetPosition(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1871 PyObject
*resultobj
;
1872 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1875 PyObject
* obj0
= 0 ;
1876 PyObject
* obj1
= 0 ;
1878 (char *) "self",(char *) "pos", NULL
1881 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_SetPosition",kwnames
,&obj0
,&obj1
)) goto fail
;
1882 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
1883 if (SWIG_arg_fail(1)) SWIG_fail
;
1886 if ( ! wxPoint_helper(obj1
, &arg2
)) SWIG_fail
;
1889 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1890 (arg1
)->SetPosition((wxPoint
const &)*arg2
);
1892 wxPyEndAllowThreads(__tstate
);
1893 if (PyErr_Occurred()) SWIG_fail
;
1895 Py_INCREF(Py_None
); resultobj
= Py_None
;
1902 static PyObject
*_wrap_AnimationPlayer_GetPosition(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1903 PyObject
*resultobj
;
1904 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1906 PyObject
* obj0
= 0 ;
1908 (char *) "self", NULL
1911 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_GetPosition",kwnames
,&obj0
)) goto fail
;
1912 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
1913 if (SWIG_arg_fail(1)) SWIG_fail
;
1915 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1916 result
= ((wxAnimationPlayer
const *)arg1
)->GetPosition();
1918 wxPyEndAllowThreads(__tstate
);
1919 if (PyErr_Occurred()) SWIG_fail
;
1922 wxPoint
* resultptr
;
1923 resultptr
= new wxPoint((wxPoint
&)(result
));
1924 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxPoint
, 1);
1932 static PyObject
*_wrap_AnimationPlayer_SetLooped(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1933 PyObject
*resultobj
;
1934 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1936 PyObject
* obj0
= 0 ;
1937 PyObject
* obj1
= 0 ;
1939 (char *) "self",(char *) "looped", NULL
1942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_SetLooped",kwnames
,&obj0
,&obj1
)) goto fail
;
1943 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
1944 if (SWIG_arg_fail(1)) SWIG_fail
;
1946 arg2
= (bool)(SWIG_As_bool(obj1
));
1947 if (SWIG_arg_fail(2)) SWIG_fail
;
1950 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1951 (arg1
)->SetLooped(arg2
);
1953 wxPyEndAllowThreads(__tstate
);
1954 if (PyErr_Occurred()) SWIG_fail
;
1956 Py_INCREF(Py_None
); resultobj
= Py_None
;
1963 static PyObject
*_wrap_AnimationPlayer_GetLooped(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1964 PyObject
*resultobj
;
1965 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1967 PyObject
* obj0
= 0 ;
1969 (char *) "self", NULL
1972 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_GetLooped",kwnames
,&obj0
)) goto fail
;
1973 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
1974 if (SWIG_arg_fail(1)) SWIG_fail
;
1976 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1977 result
= (bool)((wxAnimationPlayer
const *)arg1
)->GetLooped();
1979 wxPyEndAllowThreads(__tstate
);
1980 if (PyErr_Occurred()) SWIG_fail
;
1983 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1991 static PyObject
*_wrap_AnimationPlayer_HasAnimation(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1992 PyObject
*resultobj
;
1993 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1995 PyObject
* obj0
= 0 ;
1997 (char *) "self", NULL
2000 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_HasAnimation",kwnames
,&obj0
)) goto fail
;
2001 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2002 if (SWIG_arg_fail(1)) SWIG_fail
;
2004 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2005 result
= (bool)((wxAnimationPlayer
const *)arg1
)->HasAnimation();
2007 wxPyEndAllowThreads(__tstate
);
2008 if (PyErr_Occurred()) SWIG_fail
;
2011 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2019 static PyObject
*_wrap_AnimationPlayer_IsPlaying(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2020 PyObject
*resultobj
;
2021 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2023 PyObject
* obj0
= 0 ;
2025 (char *) "self", NULL
2028 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_IsPlaying",kwnames
,&obj0
)) goto fail
;
2029 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2030 if (SWIG_arg_fail(1)) SWIG_fail
;
2032 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2033 result
= (bool)((wxAnimationPlayer
const *)arg1
)->IsPlaying();
2035 wxPyEndAllowThreads(__tstate
);
2036 if (PyErr_Occurred()) SWIG_fail
;
2039 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2047 static PyObject
*_wrap_AnimationPlayer_UseBackgroundColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2048 PyObject
*resultobj
;
2049 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2051 PyObject
* obj0
= 0 ;
2052 PyObject
* obj1
= 0 ;
2054 (char *) "self",(char *) "useBackground", NULL
2057 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_UseBackgroundColour",kwnames
,&obj0
,&obj1
)) goto fail
;
2058 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2059 if (SWIG_arg_fail(1)) SWIG_fail
;
2061 arg2
= (bool)(SWIG_As_bool(obj1
));
2062 if (SWIG_arg_fail(2)) SWIG_fail
;
2065 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2066 (arg1
)->UseBackgroundColour(arg2
);
2068 wxPyEndAllowThreads(__tstate
);
2069 if (PyErr_Occurred()) SWIG_fail
;
2071 Py_INCREF(Py_None
); resultobj
= Py_None
;
2078 static PyObject
*_wrap_AnimationPlayer_UsingBackgroundColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2079 PyObject
*resultobj
;
2080 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2082 PyObject
* obj0
= 0 ;
2084 (char *) "self", NULL
2087 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_UsingBackgroundColour",kwnames
,&obj0
)) goto fail
;
2088 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2089 if (SWIG_arg_fail(1)) SWIG_fail
;
2091 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2092 result
= (bool)((wxAnimationPlayer
const *)arg1
)->UsingBackgroundColour();
2094 wxPyEndAllowThreads(__tstate
);
2095 if (PyErr_Occurred()) SWIG_fail
;
2098 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2106 static PyObject
*_wrap_AnimationPlayer_SetCustomBackgroundColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2107 PyObject
*resultobj
;
2108 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2109 wxColour
*arg2
= 0 ;
2110 bool arg3
= (bool) true ;
2112 PyObject
* obj0
= 0 ;
2113 PyObject
* obj1
= 0 ;
2114 PyObject
* obj2
= 0 ;
2116 (char *) "self",(char *) "col",(char *) "useCustomBackgroundColour", NULL
2119 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:AnimationPlayer_SetCustomBackgroundColour",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2120 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2121 if (SWIG_arg_fail(1)) SWIG_fail
;
2124 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
2128 arg3
= (bool)(SWIG_As_bool(obj2
));
2129 if (SWIG_arg_fail(3)) SWIG_fail
;
2133 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2134 (arg1
)->SetCustomBackgroundColour((wxColour
const &)*arg2
,arg3
);
2136 wxPyEndAllowThreads(__tstate
);
2137 if (PyErr_Occurred()) SWIG_fail
;
2139 Py_INCREF(Py_None
); resultobj
= Py_None
;
2146 static PyObject
*_wrap_AnimationPlayer_UsingCustomBackgroundColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2147 PyObject
*resultobj
;
2148 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2150 PyObject
* obj0
= 0 ;
2152 (char *) "self", NULL
2155 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_UsingCustomBackgroundColour",kwnames
,&obj0
)) goto fail
;
2156 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2157 if (SWIG_arg_fail(1)) SWIG_fail
;
2159 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2160 result
= (bool)((wxAnimationPlayer
const *)arg1
)->UsingCustomBackgroundColour();
2162 wxPyEndAllowThreads(__tstate
);
2163 if (PyErr_Occurred()) SWIG_fail
;
2166 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2174 static PyObject
*_wrap_AnimationPlayer_GetCustomBackgroundColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2175 PyObject
*resultobj
;
2176 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2178 PyObject
* obj0
= 0 ;
2180 (char *) "self", NULL
2183 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_GetCustomBackgroundColour",kwnames
,&obj0
)) goto fail
;
2184 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2185 if (SWIG_arg_fail(1)) SWIG_fail
;
2187 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2189 wxColour
const &_result_ref
= ((wxAnimationPlayer
const *)arg1
)->GetCustomBackgroundColour();
2190 result
= (wxColour
*) &_result_ref
;
2193 wxPyEndAllowThreads(__tstate
);
2194 if (PyErr_Occurred()) SWIG_fail
;
2196 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxColour
, 0);
2203 static PyObject
*_wrap_AnimationPlayer_UseParentBackground(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2204 PyObject
*resultobj
;
2205 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2207 PyObject
* obj0
= 0 ;
2208 PyObject
* obj1
= 0 ;
2210 (char *) "self",(char *) "useParent", NULL
2213 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_UseParentBackground",kwnames
,&obj0
,&obj1
)) goto fail
;
2214 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2215 if (SWIG_arg_fail(1)) SWIG_fail
;
2217 arg2
= (bool)(SWIG_As_bool(obj1
));
2218 if (SWIG_arg_fail(2)) SWIG_fail
;
2221 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2222 (arg1
)->UseParentBackground(arg2
);
2224 wxPyEndAllowThreads(__tstate
);
2225 if (PyErr_Occurred()) SWIG_fail
;
2227 Py_INCREF(Py_None
); resultobj
= Py_None
;
2234 static PyObject
*_wrap_AnimationPlayer_UsingParentBackground(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2235 PyObject
*resultobj
;
2236 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2238 PyObject
* obj0
= 0 ;
2240 (char *) "self", NULL
2243 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_UsingParentBackground",kwnames
,&obj0
)) goto fail
;
2244 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2245 if (SWIG_arg_fail(1)) SWIG_fail
;
2247 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2248 result
= (bool)((wxAnimationPlayer
const *)arg1
)->UsingParentBackground();
2250 wxPyEndAllowThreads(__tstate
);
2251 if (PyErr_Occurred()) SWIG_fail
;
2254 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2262 static PyObject
*_wrap_AnimationPlayer_Play(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2263 PyObject
*resultobj
;
2264 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2265 wxWindow
*arg2
= 0 ;
2266 wxPoint
const &arg3_defvalue
= wxPoint(0, 0) ;
2267 wxPoint
*arg3
= (wxPoint
*) &arg3_defvalue
;
2268 bool arg4
= (bool) true ;
2271 PyObject
* obj0
= 0 ;
2272 PyObject
* obj1
= 0 ;
2273 PyObject
* obj2
= 0 ;
2274 PyObject
* obj3
= 0 ;
2276 (char *) "self",(char *) "window",(char *) "pos",(char *) "looped", NULL
2279 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|OO:AnimationPlayer_Play",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
2280 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2281 if (SWIG_arg_fail(1)) SWIG_fail
;
2283 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2284 if (SWIG_arg_fail(2)) SWIG_fail
;
2286 SWIG_null_ref("wxWindow");
2288 if (SWIG_arg_fail(2)) SWIG_fail
;
2293 if ( ! wxPoint_helper(obj2
, &arg3
)) SWIG_fail
;
2298 arg4
= (bool)(SWIG_As_bool(obj3
));
2299 if (SWIG_arg_fail(4)) SWIG_fail
;
2303 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2304 result
= (bool)(arg1
)->Play(*arg2
,(wxPoint
const &)*arg3
,arg4
);
2306 wxPyEndAllowThreads(__tstate
);
2307 if (PyErr_Occurred()) SWIG_fail
;
2310 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2318 static PyObject
*_wrap_AnimationPlayer_Build(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2319 PyObject
*resultobj
;
2320 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2322 PyObject
* obj0
= 0 ;
2324 (char *) "self", NULL
2327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_Build",kwnames
,&obj0
)) goto fail
;
2328 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2329 if (SWIG_arg_fail(1)) SWIG_fail
;
2331 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2332 result
= (bool)(arg1
)->Build();
2334 wxPyEndAllowThreads(__tstate
);
2335 if (PyErr_Occurred()) SWIG_fail
;
2338 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2346 static PyObject
*_wrap_AnimationPlayer_Stop(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2347 PyObject
*resultobj
;
2348 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2349 PyObject
* obj0
= 0 ;
2351 (char *) "self", NULL
2354 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_Stop",kwnames
,&obj0
)) goto fail
;
2355 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2356 if (SWIG_arg_fail(1)) SWIG_fail
;
2358 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2361 wxPyEndAllowThreads(__tstate
);
2362 if (PyErr_Occurred()) SWIG_fail
;
2364 Py_INCREF(Py_None
); resultobj
= Py_None
;
2371 static PyObject
*_wrap_AnimationPlayer_Draw(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2372 PyObject
*resultobj
;
2373 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2375 PyObject
* obj0
= 0 ;
2376 PyObject
* obj1
= 0 ;
2378 (char *) "self",(char *) "dc", NULL
2381 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_Draw",kwnames
,&obj0
,&obj1
)) goto fail
;
2382 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2383 if (SWIG_arg_fail(1)) SWIG_fail
;
2385 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxDC
, SWIG_POINTER_EXCEPTION
| 0);
2386 if (SWIG_arg_fail(2)) SWIG_fail
;
2388 SWIG_null_ref("wxDC");
2390 if (SWIG_arg_fail(2)) SWIG_fail
;
2393 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2394 (arg1
)->Draw(*arg2
);
2396 wxPyEndAllowThreads(__tstate
);
2397 if (PyErr_Occurred()) SWIG_fail
;
2399 Py_INCREF(Py_None
); resultobj
= Py_None
;
2406 static PyObject
*_wrap_AnimationPlayer_GetFrameCount(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2407 PyObject
*resultobj
;
2408 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2410 PyObject
* obj0
= 0 ;
2412 (char *) "self", NULL
2415 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_GetFrameCount",kwnames
,&obj0
)) goto fail
;
2416 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2417 if (SWIG_arg_fail(1)) SWIG_fail
;
2419 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2420 result
= (int)((wxAnimationPlayer
const *)arg1
)->GetFrameCount();
2422 wxPyEndAllowThreads(__tstate
);
2423 if (PyErr_Occurred()) SWIG_fail
;
2426 resultobj
= SWIG_From_int((int)(result
));
2434 static PyObject
*_wrap_AnimationPlayer_GetFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2435 PyObject
*resultobj
;
2436 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2439 PyObject
* obj0
= 0 ;
2440 PyObject
* obj1
= 0 ;
2442 (char *) "self",(char *) "i", NULL
2445 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_GetFrame",kwnames
,&obj0
,&obj1
)) goto fail
;
2446 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2447 if (SWIG_arg_fail(1)) SWIG_fail
;
2449 arg2
= (int)(SWIG_As_int(obj1
));
2450 if (SWIG_arg_fail(2)) SWIG_fail
;
2453 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2454 result
= (wxImage
*)((wxAnimationPlayer
const *)arg1
)->GetFrame(arg2
);
2456 wxPyEndAllowThreads(__tstate
);
2457 if (PyErr_Occurred()) SWIG_fail
;
2459 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxImage
, 0);
2466 static PyObject
*_wrap_AnimationPlayer_GetDisposalMethod(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2467 PyObject
*resultobj
;
2468 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2470 wxAnimationDisposal result
;
2471 PyObject
* obj0
= 0 ;
2472 PyObject
* obj1
= 0 ;
2474 (char *) "self",(char *) "i", NULL
2477 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_GetDisposalMethod",kwnames
,&obj0
,&obj1
)) goto fail
;
2478 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2479 if (SWIG_arg_fail(1)) SWIG_fail
;
2481 arg2
= (int)(SWIG_As_int(obj1
));
2482 if (SWIG_arg_fail(2)) SWIG_fail
;
2485 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2486 result
= (wxAnimationDisposal
)((wxAnimationPlayer
const *)arg1
)->GetDisposalMethod(arg2
);
2488 wxPyEndAllowThreads(__tstate
);
2489 if (PyErr_Occurred()) SWIG_fail
;
2491 resultobj
= SWIG_From_int((result
));
2498 static PyObject
*_wrap_AnimationPlayer_GetFrameRect(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2499 PyObject
*resultobj
;
2500 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2503 PyObject
* obj0
= 0 ;
2504 PyObject
* obj1
= 0 ;
2506 (char *) "self",(char *) "i", NULL
2509 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_GetFrameRect",kwnames
,&obj0
,&obj1
)) goto fail
;
2510 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2511 if (SWIG_arg_fail(1)) SWIG_fail
;
2513 arg2
= (int)(SWIG_As_int(obj1
));
2514 if (SWIG_arg_fail(2)) SWIG_fail
;
2517 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2518 result
= ((wxAnimationPlayer
const *)arg1
)->GetFrameRect(arg2
);
2520 wxPyEndAllowThreads(__tstate
);
2521 if (PyErr_Occurred()) SWIG_fail
;
2525 resultptr
= new wxRect((wxRect
&)(result
));
2526 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxRect
, 1);
2534 static PyObject
*_wrap_AnimationPlayer_GetDelay(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2535 PyObject
*resultobj
;
2536 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2539 PyObject
* obj0
= 0 ;
2540 PyObject
* obj1
= 0 ;
2542 (char *) "self",(char *) "i", NULL
2545 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_GetDelay",kwnames
,&obj0
,&obj1
)) goto fail
;
2546 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2547 if (SWIG_arg_fail(1)) SWIG_fail
;
2549 arg2
= (int)(SWIG_As_int(obj1
));
2550 if (SWIG_arg_fail(2)) SWIG_fail
;
2553 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2554 result
= (int)((wxAnimationPlayer
const *)arg1
)->GetDelay(arg2
);
2556 wxPyEndAllowThreads(__tstate
);
2557 if (PyErr_Occurred()) SWIG_fail
;
2560 resultobj
= SWIG_From_int((int)(result
));
2568 static PyObject
*_wrap_AnimationPlayer_GetLogicalScreenSize(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2569 PyObject
*resultobj
;
2570 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2572 PyObject
* obj0
= 0 ;
2574 (char *) "self", NULL
2577 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_GetLogicalScreenSize",kwnames
,&obj0
)) goto fail
;
2578 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2579 if (SWIG_arg_fail(1)) SWIG_fail
;
2581 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2582 result
= ((wxAnimationPlayer
const *)arg1
)->GetLogicalScreenSize();
2584 wxPyEndAllowThreads(__tstate
);
2585 if (PyErr_Occurred()) SWIG_fail
;
2589 resultptr
= new wxSize((wxSize
&)(result
));
2590 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxSize
, 1);
2598 static PyObject
*_wrap_AnimationPlayer_GetBackgroundColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2599 PyObject
*resultobj
;
2600 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2601 wxColour
*arg2
= 0 ;
2604 PyObject
* obj0
= 0 ;
2605 PyObject
* obj1
= 0 ;
2607 (char *) "self",(char *) "col", NULL
2610 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_GetBackgroundColour",kwnames
,&obj0
,&obj1
)) goto fail
;
2611 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2612 if (SWIG_arg_fail(1)) SWIG_fail
;
2615 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
2618 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2619 result
= (bool)((wxAnimationPlayer
const *)arg1
)->GetBackgroundColour(*arg2
);
2621 wxPyEndAllowThreads(__tstate
);
2622 if (PyErr_Occurred()) SWIG_fail
;
2625 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2633 static PyObject
*_wrap_AnimationPlayer_GetTransparentColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2634 PyObject
*resultobj
;
2635 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2636 wxColour
*arg2
= 0 ;
2639 PyObject
* obj0
= 0 ;
2640 PyObject
* obj1
= 0 ;
2642 (char *) "self",(char *) "col", NULL
2645 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_GetTransparentColour",kwnames
,&obj0
,&obj1
)) goto fail
;
2646 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2647 if (SWIG_arg_fail(1)) SWIG_fail
;
2650 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
2653 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2654 result
= (bool)((wxAnimationPlayer
const *)arg1
)->GetTransparentColour(*arg2
);
2656 wxPyEndAllowThreads(__tstate
);
2657 if (PyErr_Occurred()) SWIG_fail
;
2660 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2668 static PyObject
*_wrap_AnimationPlayer_PlayFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2669 PyObject
*resultobj
;
2670 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2672 wxWindow
*arg3
= 0 ;
2676 PyObject
* obj0
= 0 ;
2677 PyObject
* obj1
= 0 ;
2678 PyObject
* obj2
= 0 ;
2679 PyObject
* obj3
= 0 ;
2681 (char *) "self",(char *) "frame",(char *) "window",(char *) "pos", NULL
2684 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:AnimationPlayer_PlayFrame",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
2685 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2686 if (SWIG_arg_fail(1)) SWIG_fail
;
2688 arg2
= (int)(SWIG_As_int(obj1
));
2689 if (SWIG_arg_fail(2)) SWIG_fail
;
2692 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2693 if (SWIG_arg_fail(3)) SWIG_fail
;
2695 SWIG_null_ref("wxWindow");
2697 if (SWIG_arg_fail(3)) SWIG_fail
;
2701 if ( ! wxPoint_helper(obj3
, &arg4
)) SWIG_fail
;
2704 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2705 result
= (bool)(arg1
)->PlayFrame(arg2
,*arg3
,(wxPoint
const &)*arg4
);
2707 wxPyEndAllowThreads(__tstate
);
2708 if (PyErr_Occurred()) SWIG_fail
;
2711 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2719 static PyObject
*_wrap_AnimationPlayer_PlayNextFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2720 PyObject
*resultobj
;
2721 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2723 PyObject
* obj0
= 0 ;
2725 (char *) "self", NULL
2728 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_PlayNextFrame",kwnames
,&obj0
)) goto fail
;
2729 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2730 if (SWIG_arg_fail(1)) SWIG_fail
;
2732 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2733 result
= (bool)(arg1
)->PlayFrame();
2735 wxPyEndAllowThreads(__tstate
);
2736 if (PyErr_Occurred()) SWIG_fail
;
2739 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2747 static PyObject
*_wrap_AnimationPlayer_DrawFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2748 PyObject
*resultobj
;
2749 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2754 PyObject
* obj0
= 0 ;
2755 PyObject
* obj1
= 0 ;
2756 PyObject
* obj2
= 0 ;
2757 PyObject
* obj3
= 0 ;
2759 (char *) "self",(char *) "frame",(char *) "dc",(char *) "pos", NULL
2762 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:AnimationPlayer_DrawFrame",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
2763 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2764 if (SWIG_arg_fail(1)) SWIG_fail
;
2766 arg2
= (int)(SWIG_As_int(obj1
));
2767 if (SWIG_arg_fail(2)) SWIG_fail
;
2770 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxDC
, SWIG_POINTER_EXCEPTION
| 0);
2771 if (SWIG_arg_fail(3)) SWIG_fail
;
2773 SWIG_null_ref("wxDC");
2775 if (SWIG_arg_fail(3)) SWIG_fail
;
2779 if ( ! wxPoint_helper(obj3
, &arg4
)) SWIG_fail
;
2782 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2783 (arg1
)->DrawFrame(arg2
,*arg3
,(wxPoint
const &)*arg4
);
2785 wxPyEndAllowThreads(__tstate
);
2786 if (PyErr_Occurred()) SWIG_fail
;
2788 Py_INCREF(Py_None
); resultobj
= Py_None
;
2795 static PyObject
*_wrap_AnimationPlayer_DrawBackground(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2796 PyObject
*resultobj
;
2797 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2800 wxColour
*arg4
= 0 ;
2803 PyObject
* obj0
= 0 ;
2804 PyObject
* obj1
= 0 ;
2805 PyObject
* obj2
= 0 ;
2806 PyObject
* obj3
= 0 ;
2808 (char *) "self",(char *) "dc",(char *) "pos",(char *) "colour", NULL
2811 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:AnimationPlayer_DrawBackground",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
2812 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2813 if (SWIG_arg_fail(1)) SWIG_fail
;
2815 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxDC
, SWIG_POINTER_EXCEPTION
| 0);
2816 if (SWIG_arg_fail(2)) SWIG_fail
;
2818 SWIG_null_ref("wxDC");
2820 if (SWIG_arg_fail(2)) SWIG_fail
;
2824 if ( ! wxPoint_helper(obj2
, &arg3
)) SWIG_fail
;
2828 if ( ! wxColour_helper(obj3
, &arg4
)) SWIG_fail
;
2831 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2832 (arg1
)->DrawBackground(*arg2
,(wxPoint
const &)*arg3
,(wxColour
const &)*arg4
);
2834 wxPyEndAllowThreads(__tstate
);
2835 if (PyErr_Occurred()) SWIG_fail
;
2837 Py_INCREF(Py_None
); resultobj
= Py_None
;
2844 static PyObject
*_wrap_AnimationPlayer_ClearCache(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2845 PyObject
*resultobj
;
2846 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2847 PyObject
* obj0
= 0 ;
2849 (char *) "self", NULL
2852 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_ClearCache",kwnames
,&obj0
)) goto fail
;
2853 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2854 if (SWIG_arg_fail(1)) SWIG_fail
;
2856 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2857 (arg1
)->ClearCache();
2859 wxPyEndAllowThreads(__tstate
);
2860 if (PyErr_Occurred()) SWIG_fail
;
2862 Py_INCREF(Py_None
); resultobj
= Py_None
;
2869 static PyObject
*_wrap_AnimationPlayer_SaveBackground(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2870 PyObject
*resultobj
;
2871 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2874 PyObject
* obj0
= 0 ;
2875 PyObject
* obj1
= 0 ;
2877 (char *) "self",(char *) "rect", NULL
2880 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_SaveBackground",kwnames
,&obj0
,&obj1
)) goto fail
;
2881 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2882 if (SWIG_arg_fail(1)) SWIG_fail
;
2885 if ( ! wxRect_helper(obj1
, &arg2
)) SWIG_fail
;
2888 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2889 (arg1
)->SaveBackground((wxRect
const &)*arg2
);
2891 wxPyEndAllowThreads(__tstate
);
2892 if (PyErr_Occurred()) SWIG_fail
;
2894 Py_INCREF(Py_None
); resultobj
= Py_None
;
2901 static PyObject
*_wrap_AnimationPlayer_GetBackingStore(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2902 PyObject
*resultobj
;
2903 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2905 PyObject
* obj0
= 0 ;
2907 (char *) "self", NULL
2910 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_GetBackingStore",kwnames
,&obj0
)) goto fail
;
2911 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2912 if (SWIG_arg_fail(1)) SWIG_fail
;
2914 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2916 wxBitmap
&_result_ref
= (arg1
)->GetBackingStore();
2917 result
= (wxBitmap
*) &_result_ref
;
2920 wxPyEndAllowThreads(__tstate
);
2921 if (PyErr_Occurred()) SWIG_fail
;
2924 wxBitmap
* resultptr
= new wxBitmap(*result
);
2925 resultobj
= SWIG_NewPointerObj((void*)(resultptr
), SWIGTYPE_p_wxBitmap
, 1);
2933 static PyObject
* AnimationPlayer_swigregister(PyObject
*, PyObject
*args
) {
2935 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2936 SWIG_TypeClientData(SWIGTYPE_p_wxAnimationPlayer
, obj
);
2938 return Py_BuildValue((char *)"");
2940 static PyObject
*_wrap_delete_AnimationBase(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2941 PyObject
*resultobj
;
2942 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
2943 PyObject
* obj0
= 0 ;
2945 (char *) "self", NULL
2948 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_AnimationBase",kwnames
,&obj0
)) goto fail
;
2949 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
2950 if (SWIG_arg_fail(1)) SWIG_fail
;
2952 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2955 wxPyEndAllowThreads(__tstate
);
2956 if (PyErr_Occurred()) SWIG_fail
;
2958 Py_INCREF(Py_None
); resultobj
= Py_None
;
2965 static PyObject
*_wrap_AnimationBase_GetFrameCount(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2966 PyObject
*resultobj
;
2967 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
2969 PyObject
* obj0
= 0 ;
2971 (char *) "self", NULL
2974 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationBase_GetFrameCount",kwnames
,&obj0
)) goto fail
;
2975 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
2976 if (SWIG_arg_fail(1)) SWIG_fail
;
2978 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2979 result
= (int)((wxAnimationBase
const *)arg1
)->GetFrameCount();
2981 wxPyEndAllowThreads(__tstate
);
2982 if (PyErr_Occurred()) SWIG_fail
;
2985 resultobj
= SWIG_From_int((int)(result
));
2993 static PyObject
*_wrap_AnimationBase_GetFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2994 PyObject
*resultobj
;
2995 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
2998 PyObject
* obj0
= 0 ;
2999 PyObject
* obj1
= 0 ;
3001 (char *) "self",(char *) "i", NULL
3004 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationBase_GetFrame",kwnames
,&obj0
,&obj1
)) goto fail
;
3005 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
3006 if (SWIG_arg_fail(1)) SWIG_fail
;
3008 arg2
= (int)(SWIG_As_int(obj1
));
3009 if (SWIG_arg_fail(2)) SWIG_fail
;
3012 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3013 result
= (wxImage
*)((wxAnimationBase
const *)arg1
)->GetFrame(arg2
);
3015 wxPyEndAllowThreads(__tstate
);
3016 if (PyErr_Occurred()) SWIG_fail
;
3018 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxImage
, 0);
3025 static PyObject
*_wrap_AnimationBase_GetDisposalMethod(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3026 PyObject
*resultobj
;
3027 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
3029 wxAnimationDisposal result
;
3030 PyObject
* obj0
= 0 ;
3031 PyObject
* obj1
= 0 ;
3033 (char *) "self",(char *) "i", NULL
3036 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationBase_GetDisposalMethod",kwnames
,&obj0
,&obj1
)) goto fail
;
3037 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
3038 if (SWIG_arg_fail(1)) SWIG_fail
;
3040 arg2
= (int)(SWIG_As_int(obj1
));
3041 if (SWIG_arg_fail(2)) SWIG_fail
;
3044 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3045 result
= (wxAnimationDisposal
)((wxAnimationBase
const *)arg1
)->GetDisposalMethod(arg2
);
3047 wxPyEndAllowThreads(__tstate
);
3048 if (PyErr_Occurred()) SWIG_fail
;
3050 resultobj
= SWIG_From_int((result
));
3057 static PyObject
*_wrap_AnimationBase_GetFrameRect(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3058 PyObject
*resultobj
;
3059 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
3062 PyObject
* obj0
= 0 ;
3063 PyObject
* obj1
= 0 ;
3065 (char *) "self",(char *) "i", NULL
3068 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationBase_GetFrameRect",kwnames
,&obj0
,&obj1
)) goto fail
;
3069 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
3070 if (SWIG_arg_fail(1)) SWIG_fail
;
3072 arg2
= (int)(SWIG_As_int(obj1
));
3073 if (SWIG_arg_fail(2)) SWIG_fail
;
3076 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3077 result
= ((wxAnimationBase
const *)arg1
)->GetFrameRect(arg2
);
3079 wxPyEndAllowThreads(__tstate
);
3080 if (PyErr_Occurred()) SWIG_fail
;
3084 resultptr
= new wxRect((wxRect
&)(result
));
3085 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxRect
, 1);
3093 static PyObject
*_wrap_AnimationBase_GetDelay(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3094 PyObject
*resultobj
;
3095 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
3098 PyObject
* obj0
= 0 ;
3099 PyObject
* obj1
= 0 ;
3101 (char *) "self",(char *) "i", NULL
3104 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationBase_GetDelay",kwnames
,&obj0
,&obj1
)) goto fail
;
3105 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
3106 if (SWIG_arg_fail(1)) SWIG_fail
;
3108 arg2
= (int)(SWIG_As_int(obj1
));
3109 if (SWIG_arg_fail(2)) SWIG_fail
;
3112 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3113 result
= (int)((wxAnimationBase
const *)arg1
)->GetDelay(arg2
);
3115 wxPyEndAllowThreads(__tstate
);
3116 if (PyErr_Occurred()) SWIG_fail
;
3119 resultobj
= SWIG_From_int((int)(result
));
3127 static PyObject
*_wrap_AnimationBase_GetLogicalScreenSize(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3128 PyObject
*resultobj
;
3129 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
3131 PyObject
* obj0
= 0 ;
3133 (char *) "self", NULL
3136 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationBase_GetLogicalScreenSize",kwnames
,&obj0
)) goto fail
;
3137 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
3138 if (SWIG_arg_fail(1)) SWIG_fail
;
3140 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3141 result
= ((wxAnimationBase
const *)arg1
)->GetLogicalScreenSize();
3143 wxPyEndAllowThreads(__tstate
);
3144 if (PyErr_Occurred()) SWIG_fail
;
3148 resultptr
= new wxSize((wxSize
&)(result
));
3149 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxSize
, 1);
3157 static PyObject
*_wrap_AnimationBase_GetBackgroundColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3158 PyObject
*resultobj
;
3159 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
3160 wxColour
*arg2
= 0 ;
3163 PyObject
* obj0
= 0 ;
3164 PyObject
* obj1
= 0 ;
3166 (char *) "self",(char *) "col", NULL
3169 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationBase_GetBackgroundColour",kwnames
,&obj0
,&obj1
)) goto fail
;
3170 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
3171 if (SWIG_arg_fail(1)) SWIG_fail
;
3174 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
3177 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3178 result
= (bool)((wxAnimationBase
const *)arg1
)->GetBackgroundColour(*arg2
);
3180 wxPyEndAllowThreads(__tstate
);
3181 if (PyErr_Occurred()) SWIG_fail
;
3184 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3192 static PyObject
*_wrap_AnimationBase_GetTransparentColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3193 PyObject
*resultobj
;
3194 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
3195 wxColour
*arg2
= 0 ;
3198 PyObject
* obj0
= 0 ;
3199 PyObject
* obj1
= 0 ;
3201 (char *) "self",(char *) "col", NULL
3204 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationBase_GetTransparentColour",kwnames
,&obj0
,&obj1
)) goto fail
;
3205 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
3206 if (SWIG_arg_fail(1)) SWIG_fail
;
3209 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
3212 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3213 result
= (bool)((wxAnimationBase
const *)arg1
)->GetTransparentColour(*arg2
);
3215 wxPyEndAllowThreads(__tstate
);
3216 if (PyErr_Occurred()) SWIG_fail
;
3219 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3227 static PyObject
*_wrap_AnimationBase_IsValid(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3228 PyObject
*resultobj
;
3229 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
3231 PyObject
* obj0
= 0 ;
3233 (char *) "self", NULL
3236 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationBase_IsValid",kwnames
,&obj0
)) goto fail
;
3237 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
3238 if (SWIG_arg_fail(1)) SWIG_fail
;
3240 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3241 result
= (bool)((wxAnimationBase
const *)arg1
)->IsValid();
3243 wxPyEndAllowThreads(__tstate
);
3244 if (PyErr_Occurred()) SWIG_fail
;
3247 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3255 static PyObject
*_wrap_AnimationBase_LoadFile(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3256 PyObject
*resultobj
;
3257 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
3258 wxString
*arg2
= 0 ;
3260 bool temp2
= false ;
3261 PyObject
* obj0
= 0 ;
3262 PyObject
* obj1
= 0 ;
3264 (char *) "self",(char *) "filename", NULL
3267 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationBase_LoadFile",kwnames
,&obj0
,&obj1
)) goto fail
;
3268 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
3269 if (SWIG_arg_fail(1)) SWIG_fail
;
3271 arg2
= wxString_in_helper(obj1
);
3272 if (arg2
== NULL
) SWIG_fail
;
3276 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3277 result
= (bool)(arg1
)->LoadFile((wxString
const &)*arg2
);
3279 wxPyEndAllowThreads(__tstate
);
3280 if (PyErr_Occurred()) SWIG_fail
;
3283 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3299 static PyObject
* AnimationBase_swigregister(PyObject
*, PyObject
*args
) {
3301 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3302 SWIG_TypeClientData(SWIGTYPE_p_wxAnimationBase
, obj
);
3304 return Py_BuildValue((char *)"");
3306 static PyObject
*_wrap_new_GIFAnimation(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3307 PyObject
*resultobj
;
3308 wxGIFAnimation
*result
;
3313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_GIFAnimation",kwnames
)) goto fail
;
3315 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3316 result
= (wxGIFAnimation
*)new wxGIFAnimation();
3318 wxPyEndAllowThreads(__tstate
);
3319 if (PyErr_Occurred()) SWIG_fail
;
3321 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxGIFAnimation
, 1);
3328 static PyObject
*_wrap_delete_GIFAnimation(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3329 PyObject
*resultobj
;
3330 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3331 PyObject
* obj0
= 0 ;
3333 (char *) "self", NULL
3336 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_GIFAnimation",kwnames
,&obj0
)) goto fail
;
3337 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3338 if (SWIG_arg_fail(1)) SWIG_fail
;
3340 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3343 wxPyEndAllowThreads(__tstate
);
3344 if (PyErr_Occurred()) SWIG_fail
;
3346 Py_INCREF(Py_None
); resultobj
= Py_None
;
3353 static PyObject
*_wrap_GIFAnimation_GetFrameCount(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3354 PyObject
*resultobj
;
3355 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3357 PyObject
* obj0
= 0 ;
3359 (char *) "self", NULL
3362 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GIFAnimation_GetFrameCount",kwnames
,&obj0
)) goto fail
;
3363 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3364 if (SWIG_arg_fail(1)) SWIG_fail
;
3366 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3367 result
= (int)((wxGIFAnimation
const *)arg1
)->GetFrameCount();
3369 wxPyEndAllowThreads(__tstate
);
3370 if (PyErr_Occurred()) SWIG_fail
;
3373 resultobj
= SWIG_From_int((int)(result
));
3381 static PyObject
*_wrap_GIFAnimation_GetFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3382 PyObject
*resultobj
;
3383 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3386 PyObject
* obj0
= 0 ;
3387 PyObject
* obj1
= 0 ;
3389 (char *) "self",(char *) "i", NULL
3392 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:GIFAnimation_GetFrame",kwnames
,&obj0
,&obj1
)) goto fail
;
3393 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3394 if (SWIG_arg_fail(1)) SWIG_fail
;
3396 arg2
= (int)(SWIG_As_int(obj1
));
3397 if (SWIG_arg_fail(2)) SWIG_fail
;
3400 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3401 result
= (wxImage
*)((wxGIFAnimation
const *)arg1
)->GetFrame(arg2
);
3403 wxPyEndAllowThreads(__tstate
);
3404 if (PyErr_Occurred()) SWIG_fail
;
3406 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxImage
, 0);
3413 static PyObject
*_wrap_GIFAnimation_GetDisposalMethod(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3414 PyObject
*resultobj
;
3415 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3417 wxAnimationDisposal result
;
3418 PyObject
* obj0
= 0 ;
3419 PyObject
* obj1
= 0 ;
3421 (char *) "self",(char *) "i", NULL
3424 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:GIFAnimation_GetDisposalMethod",kwnames
,&obj0
,&obj1
)) goto fail
;
3425 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3426 if (SWIG_arg_fail(1)) SWIG_fail
;
3428 arg2
= (int)(SWIG_As_int(obj1
));
3429 if (SWIG_arg_fail(2)) SWIG_fail
;
3432 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3433 result
= (wxAnimationDisposal
)((wxGIFAnimation
const *)arg1
)->GetDisposalMethod(arg2
);
3435 wxPyEndAllowThreads(__tstate
);
3436 if (PyErr_Occurred()) SWIG_fail
;
3438 resultobj
= SWIG_From_int((result
));
3445 static PyObject
*_wrap_GIFAnimation_GetFrameRect(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3446 PyObject
*resultobj
;
3447 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3450 PyObject
* obj0
= 0 ;
3451 PyObject
* obj1
= 0 ;
3453 (char *) "self",(char *) "i", NULL
3456 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:GIFAnimation_GetFrameRect",kwnames
,&obj0
,&obj1
)) goto fail
;
3457 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3458 if (SWIG_arg_fail(1)) SWIG_fail
;
3460 arg2
= (int)(SWIG_As_int(obj1
));
3461 if (SWIG_arg_fail(2)) SWIG_fail
;
3464 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3465 result
= ((wxGIFAnimation
const *)arg1
)->GetFrameRect(arg2
);
3467 wxPyEndAllowThreads(__tstate
);
3468 if (PyErr_Occurred()) SWIG_fail
;
3472 resultptr
= new wxRect((wxRect
&)(result
));
3473 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxRect
, 1);
3481 static PyObject
*_wrap_GIFAnimation_GetDelay(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3482 PyObject
*resultobj
;
3483 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3486 PyObject
* obj0
= 0 ;
3487 PyObject
* obj1
= 0 ;
3489 (char *) "self",(char *) "i", NULL
3492 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:GIFAnimation_GetDelay",kwnames
,&obj0
,&obj1
)) goto fail
;
3493 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3494 if (SWIG_arg_fail(1)) SWIG_fail
;
3496 arg2
= (int)(SWIG_As_int(obj1
));
3497 if (SWIG_arg_fail(2)) SWIG_fail
;
3500 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3501 result
= (int)((wxGIFAnimation
const *)arg1
)->GetDelay(arg2
);
3503 wxPyEndAllowThreads(__tstate
);
3504 if (PyErr_Occurred()) SWIG_fail
;
3507 resultobj
= SWIG_From_int((int)(result
));
3515 static PyObject
*_wrap_GIFAnimation_GetLogicalScreenSize(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3516 PyObject
*resultobj
;
3517 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3519 PyObject
* obj0
= 0 ;
3521 (char *) "self", NULL
3524 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GIFAnimation_GetLogicalScreenSize",kwnames
,&obj0
)) goto fail
;
3525 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3526 if (SWIG_arg_fail(1)) SWIG_fail
;
3528 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3529 result
= ((wxGIFAnimation
const *)arg1
)->GetLogicalScreenSize();
3531 wxPyEndAllowThreads(__tstate
);
3532 if (PyErr_Occurred()) SWIG_fail
;
3536 resultptr
= new wxSize((wxSize
&)(result
));
3537 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxSize
, 1);
3545 static PyObject
*_wrap_GIFAnimation_GetBackgroundColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3546 PyObject
*resultobj
;
3547 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3548 wxColour
*arg2
= 0 ;
3551 PyObject
* obj0
= 0 ;
3552 PyObject
* obj1
= 0 ;
3554 (char *) "self",(char *) "col", NULL
3557 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:GIFAnimation_GetBackgroundColour",kwnames
,&obj0
,&obj1
)) goto fail
;
3558 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3559 if (SWIG_arg_fail(1)) SWIG_fail
;
3562 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
3565 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3566 result
= (bool)((wxGIFAnimation
const *)arg1
)->GetBackgroundColour(*arg2
);
3568 wxPyEndAllowThreads(__tstate
);
3569 if (PyErr_Occurred()) SWIG_fail
;
3572 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3580 static PyObject
*_wrap_GIFAnimation_GetTransparentColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3581 PyObject
*resultobj
;
3582 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3583 wxColour
*arg2
= 0 ;
3586 PyObject
* obj0
= 0 ;
3587 PyObject
* obj1
= 0 ;
3589 (char *) "self",(char *) "col", NULL
3592 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:GIFAnimation_GetTransparentColour",kwnames
,&obj0
,&obj1
)) goto fail
;
3593 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3594 if (SWIG_arg_fail(1)) SWIG_fail
;
3597 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
3600 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3601 result
= (bool)((wxGIFAnimation
const *)arg1
)->GetTransparentColour(*arg2
);
3603 wxPyEndAllowThreads(__tstate
);
3604 if (PyErr_Occurred()) SWIG_fail
;
3607 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3615 static PyObject
*_wrap_GIFAnimation_IsValid(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3616 PyObject
*resultobj
;
3617 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3619 PyObject
* obj0
= 0 ;
3621 (char *) "self", NULL
3624 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GIFAnimation_IsValid",kwnames
,&obj0
)) goto fail
;
3625 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3626 if (SWIG_arg_fail(1)) SWIG_fail
;
3628 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3629 result
= (bool)((wxGIFAnimation
const *)arg1
)->IsValid();
3631 wxPyEndAllowThreads(__tstate
);
3632 if (PyErr_Occurred()) SWIG_fail
;
3635 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3643 static PyObject
*_wrap_GIFAnimation_LoadFile(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3644 PyObject
*resultobj
;
3645 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3646 wxString
*arg2
= 0 ;
3648 bool temp2
= false ;
3649 PyObject
* obj0
= 0 ;
3650 PyObject
* obj1
= 0 ;
3652 (char *) "self",(char *) "filename", NULL
3655 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:GIFAnimation_LoadFile",kwnames
,&obj0
,&obj1
)) goto fail
;
3656 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3657 if (SWIG_arg_fail(1)) SWIG_fail
;
3659 arg2
= wxString_in_helper(obj1
);
3660 if (arg2
== NULL
) SWIG_fail
;
3664 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3665 result
= (bool)(arg1
)->LoadFile((wxString
const &)*arg2
);
3667 wxPyEndAllowThreads(__tstate
);
3668 if (PyErr_Occurred()) SWIG_fail
;
3671 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3687 static PyObject
* GIFAnimation_swigregister(PyObject
*, PyObject
*args
) {
3689 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3690 SWIG_TypeClientData(SWIGTYPE_p_wxGIFAnimation
, obj
);
3692 return Py_BuildValue((char *)"");
3694 static PyObject
*_wrap_new_GIFAnimationCtrl(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3695 PyObject
*resultobj
;
3696 wxWindow
*arg1
= (wxWindow
*) 0 ;
3697 int arg2
= (int) -1 ;
3698 wxString
const &arg3_defvalue
= wxPyEmptyString
;
3699 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3700 wxPoint
const &arg4_defvalue
= wxDefaultPosition
;
3701 wxPoint
*arg4
= (wxPoint
*) &arg4_defvalue
;
3702 wxSize
const &arg5_defvalue
= wxDefaultSize
;
3703 wxSize
*arg5
= (wxSize
*) &arg5_defvalue
;
3704 long arg6
= (long) wxAN_FIT_ANIMATION
|wxNO_BORDER
;
3705 wxString
const &arg7_defvalue
= wxPyAnimationControlNameStr
;
3706 wxString
*arg7
= (wxString
*) &arg7_defvalue
;
3707 wxGIFAnimationCtrl
*result
;
3708 bool temp3
= false ;
3711 bool temp7
= false ;
3712 PyObject
* obj0
= 0 ;
3713 PyObject
* obj1
= 0 ;
3714 PyObject
* obj2
= 0 ;
3715 PyObject
* obj3
= 0 ;
3716 PyObject
* obj4
= 0 ;
3717 PyObject
* obj5
= 0 ;
3718 PyObject
* obj6
= 0 ;
3720 (char *) "parent",(char *) "id",(char *) "filename",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
3723 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOOOOO:new_GIFAnimationCtrl",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
)) goto fail
;
3724 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
3725 if (SWIG_arg_fail(1)) SWIG_fail
;
3728 arg2
= (int)(SWIG_As_int(obj1
));
3729 if (SWIG_arg_fail(2)) SWIG_fail
;
3734 arg3
= wxString_in_helper(obj2
);
3735 if (arg3
== NULL
) SWIG_fail
;
3742 if ( ! wxPoint_helper(obj3
, &arg4
)) SWIG_fail
;
3748 if ( ! wxSize_helper(obj4
, &arg5
)) SWIG_fail
;
3753 arg6
= (long)(SWIG_As_long(obj5
));
3754 if (SWIG_arg_fail(6)) SWIG_fail
;
3759 arg7
= wxString_in_helper(obj6
);
3760 if (arg7
== NULL
) SWIG_fail
;
3765 if (!wxPyCheckForApp()) SWIG_fail
;
3766 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3767 result
= (wxGIFAnimationCtrl
*)new wxGIFAnimationCtrl(arg1
,arg2
,(wxString
const &)*arg3
,(wxPoint
const &)*arg4
,(wxSize
const &)*arg5
,arg6
,(wxString
const &)*arg7
);
3769 wxPyEndAllowThreads(__tstate
);
3770 if (PyErr_Occurred()) SWIG_fail
;
3772 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxGIFAnimationCtrl
, 1);
3795 static PyObject
*_wrap_new_PreGIFAnimationCtrl(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3796 PyObject
*resultobj
;
3797 wxGIFAnimationCtrl
*result
;
3802 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_PreGIFAnimationCtrl",kwnames
)) goto fail
;
3804 if (!wxPyCheckForApp()) SWIG_fail
;
3805 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3806 result
= (wxGIFAnimationCtrl
*)new wxGIFAnimationCtrl();
3808 wxPyEndAllowThreads(__tstate
);
3809 if (PyErr_Occurred()) SWIG_fail
;
3811 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxGIFAnimationCtrl
, 1);
3818 static PyObject
*_wrap_GIFAnimationCtrl_Create(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3819 PyObject
*resultobj
;
3820 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
3821 wxWindow
*arg2
= (wxWindow
*) 0 ;
3822 int arg3
= (int) -1 ;
3823 wxString
const &arg4_defvalue
= wxPyEmptyString
;
3824 wxString
*arg4
= (wxString
*) &arg4_defvalue
;
3825 wxPoint
const &arg5_defvalue
= wxDefaultPosition
;
3826 wxPoint
*arg5
= (wxPoint
*) &arg5_defvalue
;
3827 wxSize
const &arg6_defvalue
= wxDefaultSize
;
3828 wxSize
*arg6
= (wxSize
*) &arg6_defvalue
;
3829 long arg7
= (long) wxAN_FIT_ANIMATION
|wxNO_BORDER
;
3830 wxString
const &arg8_defvalue
= wxPyAnimationControlNameStr
;
3831 wxString
*arg8
= (wxString
*) &arg8_defvalue
;
3833 bool temp4
= false ;
3836 bool temp8
= false ;
3837 PyObject
* obj0
= 0 ;
3838 PyObject
* obj1
= 0 ;
3839 PyObject
* obj2
= 0 ;
3840 PyObject
* obj3
= 0 ;
3841 PyObject
* obj4
= 0 ;
3842 PyObject
* obj5
= 0 ;
3843 PyObject
* obj6
= 0 ;
3844 PyObject
* obj7
= 0 ;
3846 (char *) "self",(char *) "parent",(char *) "id",(char *) "filename",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
3849 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|OOOOOO:GIFAnimationCtrl_Create",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
,&obj7
)) goto fail
;
3850 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
3851 if (SWIG_arg_fail(1)) SWIG_fail
;
3852 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
3853 if (SWIG_arg_fail(2)) SWIG_fail
;
3856 arg3
= (int)(SWIG_As_int(obj2
));
3857 if (SWIG_arg_fail(3)) SWIG_fail
;
3862 arg4
= wxString_in_helper(obj3
);
3863 if (arg4
== NULL
) SWIG_fail
;
3870 if ( ! wxPoint_helper(obj4
, &arg5
)) SWIG_fail
;
3876 if ( ! wxSize_helper(obj5
, &arg6
)) SWIG_fail
;
3881 arg7
= (long)(SWIG_As_long(obj6
));
3882 if (SWIG_arg_fail(7)) SWIG_fail
;
3887 arg8
= wxString_in_helper(obj7
);
3888 if (arg8
== NULL
) SWIG_fail
;
3893 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3894 result
= (bool)(arg1
)->Create(arg2
,arg3
,(wxString
const &)*arg4
,(wxPoint
const &)*arg5
,(wxSize
const &)*arg6
,arg7
,(wxString
const &)*arg8
);
3896 wxPyEndAllowThreads(__tstate
);
3897 if (PyErr_Occurred()) SWIG_fail
;
3900 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3924 static PyObject
*_wrap_GIFAnimationCtrl_LoadFile(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3925 PyObject
*resultobj
;
3926 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
3927 wxString
const &arg2_defvalue
= wxPyEmptyString
;
3928 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
3930 bool temp2
= false ;
3931 PyObject
* obj0
= 0 ;
3932 PyObject
* obj1
= 0 ;
3934 (char *) "self",(char *) "filename", NULL
3937 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:GIFAnimationCtrl_LoadFile",kwnames
,&obj0
,&obj1
)) goto fail
;
3938 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
3939 if (SWIG_arg_fail(1)) SWIG_fail
;
3942 arg2
= wxString_in_helper(obj1
);
3943 if (arg2
== NULL
) SWIG_fail
;
3948 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3949 result
= (bool)(arg1
)->LoadFile((wxString
const &)*arg2
);
3951 wxPyEndAllowThreads(__tstate
);
3952 if (PyErr_Occurred()) SWIG_fail
;
3955 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3971 static PyObject
*_wrap_GIFAnimationCtrl_Play(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3972 PyObject
*resultobj
;
3973 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
3974 bool arg2
= (bool) true ;
3976 PyObject
* obj0
= 0 ;
3977 PyObject
* obj1
= 0 ;
3979 (char *) "self",(char *) "looped", NULL
3982 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:GIFAnimationCtrl_Play",kwnames
,&obj0
,&obj1
)) goto fail
;
3983 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
3984 if (SWIG_arg_fail(1)) SWIG_fail
;
3987 arg2
= (bool)(SWIG_As_bool(obj1
));
3988 if (SWIG_arg_fail(2)) SWIG_fail
;
3992 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3993 result
= (bool)(arg1
)->Play(arg2
);
3995 wxPyEndAllowThreads(__tstate
);
3996 if (PyErr_Occurred()) SWIG_fail
;
3999 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4007 static PyObject
*_wrap_GIFAnimationCtrl_Stop(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4008 PyObject
*resultobj
;
4009 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
4010 PyObject
* obj0
= 0 ;
4012 (char *) "self", NULL
4015 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GIFAnimationCtrl_Stop",kwnames
,&obj0
)) goto fail
;
4016 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
4017 if (SWIG_arg_fail(1)) SWIG_fail
;
4019 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4022 wxPyEndAllowThreads(__tstate
);
4023 if (PyErr_Occurred()) SWIG_fail
;
4025 Py_INCREF(Py_None
); resultobj
= Py_None
;
4032 static PyObject
*_wrap_GIFAnimationCtrl_FitToAnimation(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4033 PyObject
*resultobj
;
4034 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
4035 PyObject
* obj0
= 0 ;
4037 (char *) "self", NULL
4040 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GIFAnimationCtrl_FitToAnimation",kwnames
,&obj0
)) goto fail
;
4041 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
4042 if (SWIG_arg_fail(1)) SWIG_fail
;
4044 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4045 (arg1
)->FitToAnimation();
4047 wxPyEndAllowThreads(__tstate
);
4048 if (PyErr_Occurred()) SWIG_fail
;
4050 Py_INCREF(Py_None
); resultobj
= Py_None
;
4057 static PyObject
*_wrap_GIFAnimationCtrl_IsPlaying(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4058 PyObject
*resultobj
;
4059 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
4061 PyObject
* obj0
= 0 ;
4063 (char *) "self", NULL
4066 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GIFAnimationCtrl_IsPlaying",kwnames
,&obj0
)) goto fail
;
4067 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
4068 if (SWIG_arg_fail(1)) SWIG_fail
;
4070 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4071 result
= (bool)((wxGIFAnimationCtrl
const *)arg1
)->IsPlaying();
4073 wxPyEndAllowThreads(__tstate
);
4074 if (PyErr_Occurred()) SWIG_fail
;
4077 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4085 static PyObject
*_wrap_GIFAnimationCtrl_GetPlayer(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4086 PyObject
*resultobj
;
4087 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
4088 wxAnimationPlayer
*result
;
4089 PyObject
* obj0
= 0 ;
4091 (char *) "self", NULL
4094 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GIFAnimationCtrl_GetPlayer",kwnames
,&obj0
)) goto fail
;
4095 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
4096 if (SWIG_arg_fail(1)) SWIG_fail
;
4098 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4100 wxAnimationPlayer
&_result_ref
= (arg1
)->GetPlayer();
4101 result
= (wxAnimationPlayer
*) &_result_ref
;
4104 wxPyEndAllowThreads(__tstate
);
4105 if (PyErr_Occurred()) SWIG_fail
;
4107 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxAnimationPlayer
, 0);
4114 static PyObject
*_wrap_GIFAnimationCtrl_GetAnimation(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4115 PyObject
*resultobj
;
4116 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
4117 wxAnimationBase
*result
;
4118 PyObject
* obj0
= 0 ;
4120 (char *) "self", NULL
4123 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GIFAnimationCtrl_GetAnimation",kwnames
,&obj0
)) goto fail
;
4124 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
4125 if (SWIG_arg_fail(1)) SWIG_fail
;
4127 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4128 result
= (wxAnimationBase
*)(arg1
)->GetAnimation();
4130 wxPyEndAllowThreads(__tstate
);
4131 if (PyErr_Occurred()) SWIG_fail
;
4133 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxAnimationBase
, 0);
4140 static PyObject
*_wrap_GIFAnimationCtrl_GetFilename(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4141 PyObject
*resultobj
;
4142 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
4144 PyObject
* obj0
= 0 ;
4146 (char *) "self", NULL
4149 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GIFAnimationCtrl_GetFilename",kwnames
,&obj0
)) goto fail
;
4150 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
4151 if (SWIG_arg_fail(1)) SWIG_fail
;
4153 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4155 wxString
const &_result_ref
= ((wxGIFAnimationCtrl
const *)arg1
)->GetFilename();
4156 result
= (wxString
*) &_result_ref
;
4159 wxPyEndAllowThreads(__tstate
);
4160 if (PyErr_Occurred()) SWIG_fail
;
4164 resultobj
= PyUnicode_FromWideChar(result
->c_str(), result
->Len());
4166 resultobj
= PyString_FromStringAndSize(result
->c_str(), result
->Len());
4175 static PyObject
*_wrap_GIFAnimationCtrl_SetFilename(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4176 PyObject
*resultobj
;
4177 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
4178 wxString
*arg2
= 0 ;
4179 bool temp2
= false ;
4180 PyObject
* obj0
= 0 ;
4181 PyObject
* obj1
= 0 ;
4183 (char *) "self",(char *) "filename", NULL
4186 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:GIFAnimationCtrl_SetFilename",kwnames
,&obj0
,&obj1
)) goto fail
;
4187 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
4188 if (SWIG_arg_fail(1)) SWIG_fail
;
4190 arg2
= wxString_in_helper(obj1
);
4191 if (arg2
== NULL
) SWIG_fail
;
4195 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4196 (arg1
)->SetFilename((wxString
const &)*arg2
);
4198 wxPyEndAllowThreads(__tstate
);
4199 if (PyErr_Occurred()) SWIG_fail
;
4201 Py_INCREF(Py_None
); resultobj
= Py_None
;
4216 static PyObject
* GIFAnimationCtrl_swigregister(PyObject
*, PyObject
*args
) {
4218 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
4219 SWIG_TypeClientData(SWIGTYPE_p_wxGIFAnimationCtrl
, obj
);
4221 return Py_BuildValue((char *)"");
4223 static PyMethodDef SwigMethods
[] = {
4224 { (char *)"new_AnimationPlayer", (PyCFunction
) _wrap_new_AnimationPlayer
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4225 { (char *)"delete_AnimationPlayer", (PyCFunction
) _wrap_delete_AnimationPlayer
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4226 { (char *)"AnimationPlayer_SetAnimation", (PyCFunction
) _wrap_AnimationPlayer_SetAnimation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4227 { (char *)"AnimationPlayer_GetAnimation", (PyCFunction
) _wrap_AnimationPlayer_GetAnimation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4228 { (char *)"AnimationPlayer_SetDestroyAnimation", (PyCFunction
) _wrap_AnimationPlayer_SetDestroyAnimation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4229 { (char *)"AnimationPlayer_GetDestroyAnimation", (PyCFunction
) _wrap_AnimationPlayer_GetDestroyAnimation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4230 { (char *)"AnimationPlayer_SetCurrentFrame", (PyCFunction
) _wrap_AnimationPlayer_SetCurrentFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4231 { (char *)"AnimationPlayer_GetCurrentFrame", (PyCFunction
) _wrap_AnimationPlayer_GetCurrentFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4232 { (char *)"AnimationPlayer_SetWindow", (PyCFunction
) _wrap_AnimationPlayer_SetWindow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4233 { (char *)"AnimationPlayer_GetWindow", (PyCFunction
) _wrap_AnimationPlayer_GetWindow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4234 { (char *)"AnimationPlayer_SetPosition", (PyCFunction
) _wrap_AnimationPlayer_SetPosition
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4235 { (char *)"AnimationPlayer_GetPosition", (PyCFunction
) _wrap_AnimationPlayer_GetPosition
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4236 { (char *)"AnimationPlayer_SetLooped", (PyCFunction
) _wrap_AnimationPlayer_SetLooped
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4237 { (char *)"AnimationPlayer_GetLooped", (PyCFunction
) _wrap_AnimationPlayer_GetLooped
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4238 { (char *)"AnimationPlayer_HasAnimation", (PyCFunction
) _wrap_AnimationPlayer_HasAnimation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4239 { (char *)"AnimationPlayer_IsPlaying", (PyCFunction
) _wrap_AnimationPlayer_IsPlaying
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4240 { (char *)"AnimationPlayer_UseBackgroundColour", (PyCFunction
) _wrap_AnimationPlayer_UseBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4241 { (char *)"AnimationPlayer_UsingBackgroundColour", (PyCFunction
) _wrap_AnimationPlayer_UsingBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4242 { (char *)"AnimationPlayer_SetCustomBackgroundColour", (PyCFunction
) _wrap_AnimationPlayer_SetCustomBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4243 { (char *)"AnimationPlayer_UsingCustomBackgroundColour", (PyCFunction
) _wrap_AnimationPlayer_UsingCustomBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4244 { (char *)"AnimationPlayer_GetCustomBackgroundColour", (PyCFunction
) _wrap_AnimationPlayer_GetCustomBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4245 { (char *)"AnimationPlayer_UseParentBackground", (PyCFunction
) _wrap_AnimationPlayer_UseParentBackground
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4246 { (char *)"AnimationPlayer_UsingParentBackground", (PyCFunction
) _wrap_AnimationPlayer_UsingParentBackground
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4247 { (char *)"AnimationPlayer_Play", (PyCFunction
) _wrap_AnimationPlayer_Play
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4248 { (char *)"AnimationPlayer_Build", (PyCFunction
) _wrap_AnimationPlayer_Build
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4249 { (char *)"AnimationPlayer_Stop", (PyCFunction
) _wrap_AnimationPlayer_Stop
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4250 { (char *)"AnimationPlayer_Draw", (PyCFunction
) _wrap_AnimationPlayer_Draw
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4251 { (char *)"AnimationPlayer_GetFrameCount", (PyCFunction
) _wrap_AnimationPlayer_GetFrameCount
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4252 { (char *)"AnimationPlayer_GetFrame", (PyCFunction
) _wrap_AnimationPlayer_GetFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4253 { (char *)"AnimationPlayer_GetDisposalMethod", (PyCFunction
) _wrap_AnimationPlayer_GetDisposalMethod
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4254 { (char *)"AnimationPlayer_GetFrameRect", (PyCFunction
) _wrap_AnimationPlayer_GetFrameRect
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4255 { (char *)"AnimationPlayer_GetDelay", (PyCFunction
) _wrap_AnimationPlayer_GetDelay
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4256 { (char *)"AnimationPlayer_GetLogicalScreenSize", (PyCFunction
) _wrap_AnimationPlayer_GetLogicalScreenSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4257 { (char *)"AnimationPlayer_GetBackgroundColour", (PyCFunction
) _wrap_AnimationPlayer_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4258 { (char *)"AnimationPlayer_GetTransparentColour", (PyCFunction
) _wrap_AnimationPlayer_GetTransparentColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4259 { (char *)"AnimationPlayer_PlayFrame", (PyCFunction
) _wrap_AnimationPlayer_PlayFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4260 { (char *)"AnimationPlayer_PlayNextFrame", (PyCFunction
) _wrap_AnimationPlayer_PlayNextFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4261 { (char *)"AnimationPlayer_DrawFrame", (PyCFunction
) _wrap_AnimationPlayer_DrawFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4262 { (char *)"AnimationPlayer_DrawBackground", (PyCFunction
) _wrap_AnimationPlayer_DrawBackground
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4263 { (char *)"AnimationPlayer_ClearCache", (PyCFunction
) _wrap_AnimationPlayer_ClearCache
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4264 { (char *)"AnimationPlayer_SaveBackground", (PyCFunction
) _wrap_AnimationPlayer_SaveBackground
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4265 { (char *)"AnimationPlayer_GetBackingStore", (PyCFunction
) _wrap_AnimationPlayer_GetBackingStore
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4266 { (char *)"AnimationPlayer_swigregister", AnimationPlayer_swigregister
, METH_VARARGS
, NULL
},
4267 { (char *)"delete_AnimationBase", (PyCFunction
) _wrap_delete_AnimationBase
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4268 { (char *)"AnimationBase_GetFrameCount", (PyCFunction
) _wrap_AnimationBase_GetFrameCount
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4269 { (char *)"AnimationBase_GetFrame", (PyCFunction
) _wrap_AnimationBase_GetFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4270 { (char *)"AnimationBase_GetDisposalMethod", (PyCFunction
) _wrap_AnimationBase_GetDisposalMethod
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4271 { (char *)"AnimationBase_GetFrameRect", (PyCFunction
) _wrap_AnimationBase_GetFrameRect
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4272 { (char *)"AnimationBase_GetDelay", (PyCFunction
) _wrap_AnimationBase_GetDelay
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4273 { (char *)"AnimationBase_GetLogicalScreenSize", (PyCFunction
) _wrap_AnimationBase_GetLogicalScreenSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4274 { (char *)"AnimationBase_GetBackgroundColour", (PyCFunction
) _wrap_AnimationBase_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4275 { (char *)"AnimationBase_GetTransparentColour", (PyCFunction
) _wrap_AnimationBase_GetTransparentColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4276 { (char *)"AnimationBase_IsValid", (PyCFunction
) _wrap_AnimationBase_IsValid
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4277 { (char *)"AnimationBase_LoadFile", (PyCFunction
) _wrap_AnimationBase_LoadFile
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4278 { (char *)"AnimationBase_swigregister", AnimationBase_swigregister
, METH_VARARGS
, NULL
},
4279 { (char *)"new_GIFAnimation", (PyCFunction
) _wrap_new_GIFAnimation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4280 { (char *)"delete_GIFAnimation", (PyCFunction
) _wrap_delete_GIFAnimation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4281 { (char *)"GIFAnimation_GetFrameCount", (PyCFunction
) _wrap_GIFAnimation_GetFrameCount
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4282 { (char *)"GIFAnimation_GetFrame", (PyCFunction
) _wrap_GIFAnimation_GetFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4283 { (char *)"GIFAnimation_GetDisposalMethod", (PyCFunction
) _wrap_GIFAnimation_GetDisposalMethod
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4284 { (char *)"GIFAnimation_GetFrameRect", (PyCFunction
) _wrap_GIFAnimation_GetFrameRect
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4285 { (char *)"GIFAnimation_GetDelay", (PyCFunction
) _wrap_GIFAnimation_GetDelay
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4286 { (char *)"GIFAnimation_GetLogicalScreenSize", (PyCFunction
) _wrap_GIFAnimation_GetLogicalScreenSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4287 { (char *)"GIFAnimation_GetBackgroundColour", (PyCFunction
) _wrap_GIFAnimation_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4288 { (char *)"GIFAnimation_GetTransparentColour", (PyCFunction
) _wrap_GIFAnimation_GetTransparentColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4289 { (char *)"GIFAnimation_IsValid", (PyCFunction
) _wrap_GIFAnimation_IsValid
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4290 { (char *)"GIFAnimation_LoadFile", (PyCFunction
) _wrap_GIFAnimation_LoadFile
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4291 { (char *)"GIFAnimation_swigregister", GIFAnimation_swigregister
, METH_VARARGS
, NULL
},
4292 { (char *)"new_GIFAnimationCtrl", (PyCFunction
) _wrap_new_GIFAnimationCtrl
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4293 { (char *)"new_PreGIFAnimationCtrl", (PyCFunction
) _wrap_new_PreGIFAnimationCtrl
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4294 { (char *)"GIFAnimationCtrl_Create", (PyCFunction
) _wrap_GIFAnimationCtrl_Create
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4295 { (char *)"GIFAnimationCtrl_LoadFile", (PyCFunction
) _wrap_GIFAnimationCtrl_LoadFile
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4296 { (char *)"GIFAnimationCtrl_Play", (PyCFunction
) _wrap_GIFAnimationCtrl_Play
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4297 { (char *)"GIFAnimationCtrl_Stop", (PyCFunction
) _wrap_GIFAnimationCtrl_Stop
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4298 { (char *)"GIFAnimationCtrl_FitToAnimation", (PyCFunction
) _wrap_GIFAnimationCtrl_FitToAnimation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4299 { (char *)"GIFAnimationCtrl_IsPlaying", (PyCFunction
) _wrap_GIFAnimationCtrl_IsPlaying
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4300 { (char *)"GIFAnimationCtrl_GetPlayer", (PyCFunction
) _wrap_GIFAnimationCtrl_GetPlayer
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4301 { (char *)"GIFAnimationCtrl_GetAnimation", (PyCFunction
) _wrap_GIFAnimationCtrl_GetAnimation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4302 { (char *)"GIFAnimationCtrl_GetFilename", (PyCFunction
) _wrap_GIFAnimationCtrl_GetFilename
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4303 { (char *)"GIFAnimationCtrl_SetFilename", (PyCFunction
) _wrap_GIFAnimationCtrl_SetFilename
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4304 { (char *)"GIFAnimationCtrl_swigregister", GIFAnimationCtrl_swigregister
, METH_VARARGS
, NULL
},
4305 { NULL
, NULL
, 0, NULL
}
4309 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
4311 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
4312 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
4314 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
4315 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
4317 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
4318 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
4320 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
4321 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
4323 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
4324 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
4326 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
4327 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
4329 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
4330 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
4332 static void *_p_wxSizerTo_p_wxObject(void *x
) {
4333 return (void *)((wxObject
*) ((wxSizer
*) x
));
4335 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
4336 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
4338 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
4339 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
4341 static void *_p_wxEventTo_p_wxObject(void *x
) {
4342 return (void *)((wxObject
*) ((wxEvent
*) x
));
4344 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
4345 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
4347 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
4348 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
4350 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
4351 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
4353 static void *_p_wxAnimationBaseTo_p_wxObject(void *x
) {
4354 return (void *)((wxObject
*) ((wxAnimationBase
*) x
));
4356 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
4357 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
4359 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
4360 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
4362 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
4363 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
4365 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
4366 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
4368 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
4369 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
4371 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
4372 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
4374 static void *_p_wxControlTo_p_wxObject(void *x
) {
4375 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
4377 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
4378 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
4380 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
4381 return (void *)((wxObject
*) ((wxFSFile
*) x
));
4383 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
4384 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
4386 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
4387 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
4389 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
4390 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
4392 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
4393 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
4395 static void *_p_wxAnimationPlayerTo_p_wxObject(void *x
) {
4396 return (void *)((wxObject
*) ((wxAnimationPlayer
*) x
));
4398 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
4399 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
4401 static void *_p_wxDateEventTo_p_wxObject(void *x
) {
4402 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxDateEvent
*) x
));
4404 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
4405 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
4407 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
4408 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
4410 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
4411 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
4413 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
4414 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
4416 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
4417 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
4419 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
4420 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
4422 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
4423 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
4425 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
4426 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
4428 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
4429 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
4431 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
4432 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
4434 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
4435 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
4437 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
4438 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
4440 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
4441 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
4443 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
4444 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
4446 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
4447 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
4449 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
4450 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
4452 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
4453 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
4455 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
4456 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
4458 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
4459 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
4461 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
4462 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
4464 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
4465 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
4467 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x
) {
4468 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStdDialogButtonSizer
*) x
));
4470 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
4471 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
4473 static void *_p_wxImageTo_p_wxObject(void *x
) {
4474 return (void *)((wxObject
*) ((wxImage
*) x
));
4476 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
4477 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
4479 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
4480 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
4482 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
4483 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
4485 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
4486 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
4488 static void *_p_wxWindowTo_p_wxObject(void *x
) {
4489 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
4491 static void *_p_wxMenuTo_p_wxObject(void *x
) {
4492 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
4494 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
4495 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
4497 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
4498 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
4500 static void *_p_wxGIFAnimationTo_p_wxObject(void *x
) {
4501 return (void *)((wxObject
*) (wxAnimationBase
*) ((wxGIFAnimation
*) x
));
4503 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
4504 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
4506 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
4507 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
4509 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
4510 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
4512 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
4513 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
4515 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
4516 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
4518 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
4519 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
4521 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
4522 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
4524 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
4525 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
4527 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
4528 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
4530 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
4531 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
4533 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
4534 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
4536 static void *_p_wxGIFAnimationCtrlTo_p_wxObject(void *x
) {
4537 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxGIFAnimationCtrl
*) x
));
4539 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
4540 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
4542 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
4543 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
4545 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
4546 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
4548 static void *_p_wxControlTo_p_wxWindow(void *x
) {
4549 return (void *)((wxWindow
*) ((wxControl
*) x
));
4551 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
4552 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
4554 static void *_p_wxGIFAnimationCtrlTo_p_wxWindow(void *x
) {
4555 return (void *)((wxWindow
*) (wxControl
*) ((wxGIFAnimationCtrl
*) x
));
4557 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
4558 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
4560 static void *_p_wxGIFAnimationTo_p_wxAnimationBase(void *x
) {
4561 return (void *)((wxAnimationBase
*) ((wxGIFAnimation
*) x
));
4563 static void *_p_wxControlTo_p_wxEvtHandler(void *x
) {
4564 return (void *)((wxEvtHandler
*) (wxWindow
*) ((wxControl
*) x
));
4566 static void *_p_wxWindowTo_p_wxEvtHandler(void *x
) {
4567 return (void *)((wxEvtHandler
*) ((wxWindow
*) x
));
4569 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x
) {
4570 return (void *)((wxEvtHandler
*) (wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
4572 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x
) {
4573 return (void *)((wxEvtHandler
*) ((wxPyApp
*) x
));
4575 static void *_p_wxGIFAnimationCtrlTo_p_wxEvtHandler(void *x
) {
4576 return (void *)((wxEvtHandler
*) (wxWindow
*)(wxControl
*) ((wxGIFAnimationCtrl
*) x
));
4578 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x
) {
4579 return (void *)((wxEvtHandler
*) ((wxValidator
*) x
));
4581 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x
) {
4582 return (void *)((wxEvtHandler
*) (wxValidator
*) ((wxPyValidator
*) x
));
4584 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x
) {
4585 return (void *)((wxEvtHandler
*) (wxWindow
*) ((wxMenuBar
*) x
));
4587 static void *_p_wxMenuTo_p_wxEvtHandler(void *x
) {
4588 return (void *)((wxEvtHandler
*) ((wxMenu
*) x
));
4590 static void *_p_wxControlWithItemsTo_p_wxControl(void *x
) {
4591 return (void *)((wxControl
*) ((wxControlWithItems
*) x
));
4593 static void *_p_wxGIFAnimationCtrlTo_p_wxControl(void *x
) {
4594 return (void *)((wxControl
*) ((wxGIFAnimationCtrl
*) x
));
4596 static swig_type_info _swigt__p_wxRect
[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4597 static swig_type_info _swigt__p_wxGIFAnimationCtrl
[] = {{"_p_wxGIFAnimationCtrl", 0, "wxGIFAnimationCtrl *", 0, 0, 0, 0},{"_p_wxGIFAnimationCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4598 static swig_type_info _swigt__p_wxObject
[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxAnimationBase", _p_wxAnimationBaseTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxAnimationPlayer", _p_wxAnimationPlayerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxStdDialogButtonSizer", _p_wxStdDialogButtonSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGIFAnimation", _p_wxGIFAnimationTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGIFAnimationCtrl", _p_wxGIFAnimationCtrlTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4599 static swig_type_info _swigt__p_unsigned_char
[] = {{"_p_unsigned_char", 0, "unsigned char *|byte *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4600 static swig_type_info _swigt__p_wxColour
[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4601 static swig_type_info _swigt__p_wxAnimationPlayer
[] = {{"_p_wxAnimationPlayer", 0, "wxAnimationPlayer *", 0, 0, 0, 0},{"_p_wxAnimationPlayer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4602 static swig_type_info _swigt__p_wxWindow
[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow
, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow
, 0, 0, 0, 0, 0},{"_p_wxGIFAnimationCtrl", _p_wxGIFAnimationCtrlTo_p_wxWindow
, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4603 static swig_type_info _swigt__p_unsigned_long
[] = {{"_p_unsigned_long", 0, "unsigned long *|wxUIntPtr *", 0, 0, 0, 0},{"_p_unsigned_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4604 static swig_type_info _swigt__p_wxBitmap
[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4605 static swig_type_info _swigt__p_form_ops_t
[] = {{"_p_form_ops_t", 0, "enum form_ops_t *|form_ops_t *", 0, 0, 0, 0},{"_p_form_ops_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4606 static swig_type_info _swigt__p_unsigned_int
[] = {{"_p_unsigned_int", 0, "unsigned int *|time_t *", 0, 0, 0, 0},{"_p_unsigned_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4607 static swig_type_info _swigt__unsigned_int
[] = {{"_unsigned_int", 0, "unsigned int|std::size_t", 0, 0, 0, 0},{"_unsigned_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4608 static swig_type_info _swigt__p_wxDuplexMode
[] = {{"_p_wxDuplexMode", 0, "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0, 0},{"_p_wxDuplexMode", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4609 static swig_type_info _swigt__p_wxGIFAnimation
[] = {{"_p_wxGIFAnimation", 0, "wxGIFAnimation *", 0, 0, 0, 0},{"_p_wxGIFAnimation", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4610 static swig_type_info _swigt__p_char
[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4611 static swig_type_info _swigt__p_wxAnimationBase
[] = {{"_p_wxAnimationBase", 0, "wxAnimationBase *", 0, 0, 0, 0},{"_p_wxAnimationBase", 0, 0, 0, 0, 0, 0},{"_p_wxGIFAnimation", _p_wxGIFAnimationTo_p_wxAnimationBase
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4612 static swig_type_info _swigt__p_wxPoint
[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4613 static swig_type_info _swigt__p_wxDC
[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4614 static swig_type_info _swigt__p_wxEvtHandler
[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxGIFAnimationCtrl", _p_wxGIFAnimationCtrlTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4615 static swig_type_info _swigt__std__ptrdiff_t
[] = {{"_std__ptrdiff_t", 0, "std::ptrdiff_t", 0, 0, 0, 0},{"_std__ptrdiff_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4616 static swig_type_info _swigt__ptrdiff_t
[] = {{"_ptrdiff_t", 0, "ptrdiff_t", 0, 0, 0, 0},{"_ptrdiff_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4617 static swig_type_info _swigt__p_wxControl
[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl
, 0, 0, 0, 0, 0},{"_p_wxGIFAnimationCtrl", _p_wxGIFAnimationCtrlTo_p_wxControl
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4618 static swig_type_info _swigt__p_wxPaperSize
[] = {{"_p_wxPaperSize", 0, "enum wxPaperSize *|wxPaperSize *", 0, 0, 0, 0},{"_p_wxPaperSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4619 static swig_type_info _swigt__p_wxImage
[] = {{"_p_wxImage", 0, "wxImage *", 0, 0, 0, 0},{"_p_wxImage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4620 static swig_type_info _swigt__p_wxSize
[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4621 static swig_type_info _swigt__p_int
[] = {{"_p_int", 0, "int *|wxEventType *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4623 static swig_type_info
*swig_types_initial
[] = {
4625 _swigt__p_wxGIFAnimationCtrl
,
4627 _swigt__p_unsigned_char
,
4629 _swigt__p_wxAnimationPlayer
,
4631 _swigt__p_unsigned_long
,
4633 _swigt__p_form_ops_t
,
4634 _swigt__p_unsigned_int
,
4635 _swigt__unsigned_int
,
4636 _swigt__p_wxDuplexMode
,
4637 _swigt__p_wxGIFAnimation
,
4639 _swigt__p_wxAnimationBase
,
4642 _swigt__p_wxEvtHandler
,
4643 _swigt__std__ptrdiff_t
,
4645 _swigt__p_wxControl
,
4646 _swigt__p_wxPaperSize
,
4654 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
4656 static swig_const_info swig_const_table
[] = {
4657 {0, 0, 0, 0.0, 0, 0}};
4668 /* Python-specific SWIG API */
4669 #define SWIG_newvarlink() SWIG_Python_newvarlink()
4670 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
4671 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
4673 /* -----------------------------------------------------------------------------
4674 * global variable support code.
4675 * ----------------------------------------------------------------------------- */
4677 typedef struct swig_globalvar
{
4678 char *name
; /* Name of global variable */
4679 PyObject
*(*get_attr
)(); /* Return the current value */
4680 int (*set_attr
)(PyObject
*); /* Set the value */
4681 struct swig_globalvar
*next
;
4684 typedef struct swig_varlinkobject
{
4686 swig_globalvar
*vars
;
4687 } swig_varlinkobject
;
4690 swig_varlink_repr(swig_varlinkobject
*v
) {
4692 return PyString_FromString("<Swig global variables>");
4696 swig_varlink_print(swig_varlinkobject
*v
, FILE *fp
, int flags
) {
4697 swig_globalvar
*var
;
4699 fprintf(fp
,"Swig global variables { ");
4700 for (var
= v
->vars
; var
; var
=var
->next
) {
4701 fprintf(fp
,"%s", var
->name
);
4702 if (var
->next
) fprintf(fp
,", ");
4709 swig_varlink_getattr(swig_varlinkobject
*v
, char *n
) {
4710 swig_globalvar
*var
= v
->vars
;
4712 if (strcmp(var
->name
,n
) == 0) {
4713 return (*var
->get_attr
)();
4717 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
4722 swig_varlink_setattr(swig_varlinkobject
*v
, char *n
, PyObject
*p
) {
4723 swig_globalvar
*var
= v
->vars
;
4725 if (strcmp(var
->name
,n
) == 0) {
4726 return (*var
->set_attr
)(p
);
4730 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
4734 static PyTypeObject varlinktype
= {
4735 PyObject_HEAD_INIT(0)
4736 0, /* Number of items in variable part (ob_size) */
4737 (char *)"swigvarlink", /* Type name (tp_name) */
4738 sizeof(swig_varlinkobject
), /* Basic size (tp_basicsize) */
4739 0, /* Itemsize (tp_itemsize) */
4740 0, /* Deallocator (tp_dealloc) */
4741 (printfunc
) swig_varlink_print
, /* Print (tp_print) */
4742 (getattrfunc
) swig_varlink_getattr
, /* get attr (tp_getattr) */
4743 (setattrfunc
) swig_varlink_setattr
, /* Set attr (tp_setattr) */
4745 (reprfunc
) swig_varlink_repr
, /* tp_repr */
4746 0, /* tp_as_number */
4747 0, /* tp_as_sequence */
4748 0, /* tp_as_mapping */
4752 0, /* tp_getattro */
4753 0, /* tp_setattro */
4754 0, /* tp_as_buffer */
4757 #if PY_VERSION_HEX >= 0x02000000
4758 0, /* tp_traverse */
4761 #if PY_VERSION_HEX >= 0x02010000
4762 0, /* tp_richcompare */
4763 0, /* tp_weaklistoffset */
4765 #if PY_VERSION_HEX >= 0x02020000
4766 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
4768 #if PY_VERSION_HEX >= 0x02030000
4772 0,0,0,0 /* tp_alloc -> tp_next */
4776 /* Create a variable linking object for use later */
4778 SWIG_Python_newvarlink(void) {
4779 swig_varlinkobject
*result
= 0;
4780 result
= PyMem_NEW(swig_varlinkobject
,1);
4781 varlinktype
.ob_type
= &PyType_Type
; /* Patch varlinktype into a PyType */
4782 result
->ob_type
= &varlinktype
;
4784 result
->ob_refcnt
= 0;
4785 Py_XINCREF((PyObject
*) result
);
4786 return ((PyObject
*) result
);
4790 SWIG_Python_addvarlink(PyObject
*p
, char *name
, PyObject
*(*get_attr
)(void), int (*set_attr
)(PyObject
*p
)) {
4791 swig_varlinkobject
*v
;
4793 v
= (swig_varlinkobject
*) p
;
4794 gv
= (swig_globalvar
*) malloc(sizeof(swig_globalvar
));
4795 gv
->name
= (char *) malloc(strlen(name
)+1);
4796 strcpy(gv
->name
,name
);
4797 gv
->get_attr
= get_attr
;
4798 gv
->set_attr
= set_attr
;
4803 /* -----------------------------------------------------------------------------
4804 * constants/methods manipulation
4805 * ----------------------------------------------------------------------------- */
4807 /* Install Constants */
4809 SWIG_Python_InstallConstants(PyObject
*d
, swig_const_info constants
[]) {
4812 for (i
= 0; constants
[i
].type
; i
++) {
4813 switch(constants
[i
].type
) {
4815 obj
= PyInt_FromLong(constants
[i
].lvalue
);
4818 obj
= PyFloat_FromDouble(constants
[i
].dvalue
);
4820 case SWIG_PY_STRING
:
4821 if (constants
[i
].pvalue
) {
4822 obj
= PyString_FromString((char *) constants
[i
].pvalue
);
4828 case SWIG_PY_POINTER
:
4829 obj
= SWIG_NewPointerObj(constants
[i
].pvalue
, *(constants
[i
]).ptype
,0);
4831 case SWIG_PY_BINARY
:
4832 obj
= SWIG_NewPackedObj(constants
[i
].pvalue
, constants
[i
].lvalue
, *(constants
[i
].ptype
));
4839 PyDict_SetItemString(d
,constants
[i
].name
,obj
);
4845 /* -----------------------------------------------------------------------------*/
4846 /* Fix SwigMethods to carry the callback ptrs when needed */
4847 /* -----------------------------------------------------------------------------*/
4850 SWIG_Python_FixMethods(PyMethodDef
*methods
,
4851 swig_const_info
*const_table
,
4852 swig_type_info
**types
,
4853 swig_type_info
**types_initial
) {
4855 for (i
= 0; methods
[i
].ml_name
; ++i
) {
4856 char *c
= methods
[i
].ml_doc
;
4857 if (c
&& (c
= strstr(c
, "swig_ptr: "))) {
4859 swig_const_info
*ci
= 0;
4860 char *name
= c
+ 10;
4861 for (j
= 0; const_table
[j
].type
; j
++) {
4862 if (strncmp(const_table
[j
].name
, name
,
4863 strlen(const_table
[j
].name
)) == 0) {
4864 ci
= &(const_table
[j
]);
4869 size_t shift
= (ci
->ptype
) - types
;
4870 swig_type_info
*ty
= types_initial
[shift
];
4871 size_t ldoc
= (c
- methods
[i
].ml_doc
);
4872 size_t lptr
= strlen(ty
->name
)+2*sizeof(void*)+2;
4873 char *ndoc
= (char*)malloc(ldoc
+ lptr
+ 10);
4875 void *ptr
= (ci
->type
== SWIG_PY_POINTER
) ? ci
->pvalue
: (void *)(ci
->lvalue
);
4876 strncpy(buff
, methods
[i
].ml_doc
, ldoc
);
4878 strncpy(buff
, "swig_ptr: ", 10);
4880 SWIG_PackVoidPtr(buff
, ptr
, ty
->name
, lptr
);
4881 methods
[i
].ml_doc
= ndoc
;
4887 /* -----------------------------------------------------------------------------*
4888 * Initialize type list
4889 * -----------------------------------------------------------------------------*/
4891 #if PY_MAJOR_VERSION < 2
4892 /* PyModule_AddObject function was introduced in Python 2.0. The following function
4893 is copied out of Python/modsupport.c in python version 2.3.4 */
4895 PyModule_AddObject(PyObject
*m
, char *name
, PyObject
*o
)
4898 if (!PyModule_Check(m
)) {
4899 PyErr_SetString(PyExc_TypeError
,
4900 "PyModule_AddObject() needs module as first arg");
4904 PyErr_SetString(PyExc_TypeError
,
4905 "PyModule_AddObject() needs non-NULL value");
4909 dict
= PyModule_GetDict(m
);
4911 /* Internal error -- modules must have a dict! */
4912 PyErr_Format(PyExc_SystemError
, "module '%s' has no __dict__",
4913 PyModule_GetName(m
));
4916 if (PyDict_SetItemString(dict
, name
, o
))
4923 static swig_type_info
**
4924 SWIG_Python_SetTypeListHandle(swig_type_info
**type_list_handle
) {
4925 static PyMethodDef swig_empty_runtime_method_table
[] = {
4931 PyObject
*module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
,
4932 swig_empty_runtime_method_table
);
4933 PyObject
*pointer
= PyCObject_FromVoidPtr((void *) type_list_handle
, NULL
);
4934 if (pointer
&& module) {
4935 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
, pointer
);
4937 return type_list_handle
;
4940 static swig_type_info
**
4941 SWIG_Python_LookupTypePointer(swig_type_info
**type_list_handle
) {
4942 swig_type_info
**type_pointer
;
4944 /* first check if module already created */
4945 type_pointer
= SWIG_Python_GetTypeListHandle();
4947 return type_pointer
;
4949 /* create a new module and variable */
4950 return SWIG_Python_SetTypeListHandle(type_list_handle
);
4958 /* -----------------------------------------------------------------------------*
4959 * Partial Init method
4960 * -----------------------------------------------------------------------------*/
4962 #ifdef SWIG_LINK_RUNTIME
4966 SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *);
4972 SWIGEXPORT(void) SWIG_init(void) {
4973 static PyObject
*SWIG_globals
= 0;
4974 static int typeinit
= 0;
4977 if (!SWIG_globals
) SWIG_globals
= SWIG_newvarlink();
4979 /* Fix SwigMethods to carry the callback ptrs when needed */
4980 SWIG_Python_FixMethods(SwigMethods
, swig_const_table
, swig_types
, swig_types_initial
);
4982 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
4983 d
= PyModule_GetDict(m
);
4986 #ifdef SWIG_LINK_RUNTIME
4987 swig_type_list_handle
= (swig_type_info
**) SWIG_ReturnGlobalTypeList(swig_type_list_handle
);
4989 # ifndef SWIG_STATIC_RUNTIME
4990 swig_type_list_handle
= SWIG_Python_LookupTypePointer(swig_type_list_handle
);
4993 for (i
= 0; swig_types_initial
[i
]; i
++) {
4994 swig_types
[i
] = SWIG_TypeRegister(swig_types_initial
[i
]);
4998 SWIG_InstallConstants(d
,swig_const_table
);
5000 PyDict_SetItemString(d
,(char*)"cvar", SWIG_globals
);
5001 SWIG_addvarlink(SWIG_globals
,(char*)"AnimationControlNameStr",_wrap_AnimationControlNameStr_get
, _wrap_AnimationControlNameStr_set
);
5003 PyDict_SetItemString(d
,"ANIM_UNSPECIFIED", SWIG_From_int((int)(wxANIM_UNSPECIFIED
)));
5006 PyDict_SetItemString(d
,"ANIM_DONOTREMOVE", SWIG_From_int((int)(wxANIM_DONOTREMOVE
)));
5009 PyDict_SetItemString(d
,"ANIM_TOBACKGROUND", SWIG_From_int((int)(wxANIM_TOBACKGROUND
)));
5012 PyDict_SetItemString(d
,"ANIM_TOPREVIOUS", SWIG_From_int((int)(wxANIM_TOPREVIOUS
)));
5015 PyDict_SetItemString(d
,"AN_FIT_ANIMATION", SWIG_From_int((int)(wxAN_FIT_ANIMATION
)));