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",
1045 PyErr_Format(PyExc_TypeError
, "a '%s' is expected", type
);
1047 PyErr_Format(PyExc_TypeError
, "unexpected type is received");
1051 SWIGRUNTIMEINLINE
void
1052 SWIG_Python_NullRef(const char *type
)
1055 PyErr_Format(PyExc_TypeError
, "null reference of type '%s' was received",type
);
1057 PyErr_Format(PyExc_TypeError
, "null reference was received");
1062 SWIG_Python_AddErrMesg(const char* mesg
, int infront
)
1064 if (PyErr_Occurred()) {
1066 PyObject
*value
= 0;
1067 PyObject
*traceback
= 0;
1068 PyErr_Fetch(&type
, &value
, &traceback
);
1070 PyObject
*old_str
= PyObject_Str(value
);
1074 PyErr_Format(type
, "%s %s", mesg
, PyString_AsString(old_str
));
1076 PyErr_Format(type
, "%s %s", PyString_AsString(old_str
), mesg
);
1087 SWIG_Python_ArgFail(int argnum
)
1089 if (PyErr_Occurred()) {
1090 /* add information about failing argument */
1092 sprintf(mesg
, "argument number %d:", argnum
);
1093 return SWIG_Python_AddErrMesg(mesg
, 1);
1100 /* -----------------------------------------------------------------------------
1101 * pointers/data manipulation
1102 * ----------------------------------------------------------------------------- */
1104 /* Convert a pointer value */
1106 SWIG_Python_ConvertPtr(PyObject
*obj
, void **ptr
, swig_type_info
*ty
, int flags
) {
1109 static PyObject
*SWIG_this
= 0;
1111 PyObject
*pyobj
= 0;
1115 if (obj
== Py_None
) {
1120 #ifdef SWIG_COBJECT_TYPES
1121 if (!(PySwigObject_Check(obj
))) {
1123 SWIG_this
= PyString_FromString("this");
1125 obj
= PyObject_GetAttr(obj
,SWIG_this
);
1127 if (!obj
) goto type_error
;
1128 if (!PySwigObject_Check(obj
)) {
1133 vptr
= PySwigObject_AsVoidPtr(obj
);
1134 c
= (const char *) PySwigObject_GetDesc(obj
);
1135 if (newref
) { Py_DECREF(obj
); }
1138 if (!(PyString_Check(obj
))) {
1140 SWIG_this
= PyString_FromString("this");
1142 obj
= PyObject_GetAttr(obj
,SWIG_this
);
1144 if (!obj
) goto type_error
;
1145 if (!PyString_Check(obj
)) {
1150 c
= PyString_AS_STRING(obj
);
1151 /* Pointer values must start with leading underscore */
1152 c
= SWIG_UnpackVoidPtr(c
, &vptr
, ty
->name
);
1153 if (newref
) { Py_DECREF(obj
); }
1154 if (!c
) goto type_error
;
1160 tc
= SWIG_TypeCheck(c
,ty
);
1161 if (!tc
) goto type_error
;
1162 *ptr
= SWIG_TypeCast(tc
,vptr
);
1167 if ((pyobj
) && (flags
& SWIG_POINTER_DISOWN
)) {
1168 PyObject_SetAttrString(pyobj
,(char*)"thisown",Py_False
);
1174 if (pyobj
&& !obj
) {
1176 if (PyCFunction_Check(obj
)) {
1177 /* here we get the method pointer for callbacks */
1178 char *doc
= (((PyCFunctionObject
*)obj
) -> m_ml
-> ml_doc
);
1179 c
= doc
? strstr(doc
, "swig_ptr: ") : 0;
1181 c
= SWIG_UnpackVoidPtr(c
+ 10, &vptr
, ty
->name
);
1182 if (!c
) goto type_error
;
1187 if (flags
& SWIG_POINTER_EXCEPTION
) {
1189 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1191 SWIG_Python_TypeError("C/C++ pointer", obj
);
1197 /* Convert a pointer value, signal an exception on a type mismatch */
1199 SWIG_Python_MustGetPtr(PyObject
*obj
, swig_type_info
*ty
, int argnum
, int flags
) {
1201 if (SWIG_Python_ConvertPtr(obj
, &result
, ty
, flags
) == -1) {
1203 if (flags
& SWIG_POINTER_EXCEPTION
) {
1204 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1205 SWIG_Python_ArgFail(argnum
);
1211 /* Convert a packed value value */
1213 SWIG_Python_ConvertPacked(PyObject
*obj
, void *ptr
, size_t sz
, swig_type_info
*ty
, int flags
) {
1217 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1218 c
= PySwigPacked_UnpackData(obj
, ptr
, sz
);
1220 if ((!obj
) || (!PyString_Check(obj
))) goto type_error
;
1221 c
= PyString_AS_STRING(obj
);
1222 /* Pointer values must start with leading underscore */
1223 c
= SWIG_UnpackDataName(c
, ptr
, sz
, ty
->name
);
1225 if (!c
) goto type_error
;
1227 tc
= SWIG_TypeCheck(c
,ty
);
1228 if (!tc
) goto type_error
;
1234 if (flags
& SWIG_POINTER_EXCEPTION
) {
1236 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1238 SWIG_Python_TypeError("C/C++ packed data", obj
);
1244 /* Create a new array object */
1245 SWIGRUNTIME PyObject
*
1246 SWIG_Python_NewPointerObj(void *ptr
, swig_type_info
*type
, int own
) {
1252 #ifdef SWIG_COBJECT_TYPES
1253 robj
= PySwigObject_FromVoidPtrAndDesc((void *) ptr
, (char *)type
->name
);
1256 char result
[SWIG_BUFFER_SIZE
];
1257 robj
= SWIG_PackVoidPtr(result
, ptr
, type
->name
, sizeof(result
)) ?
1258 PyString_FromString(result
) : 0;
1261 if (!robj
|| (robj
== Py_None
)) return robj
;
1262 if (type
->clientdata
) {
1264 PyObject
*args
= Py_BuildValue((char*)"(O)", robj
);
1266 inst
= PyObject_CallObject((PyObject
*) type
->clientdata
, args
);
1270 PyObject_SetAttrString(inst
,(char*)"thisown",Py_True
);
1278 SWIGRUNTIME PyObject
*
1279 SWIG_Python_NewPackedObj(void *ptr
, size_t sz
, swig_type_info
*type
) {
1285 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1286 robj
= PySwigPacked_FromDataAndDesc((void *) ptr
, sz
, (char *)type
->name
);
1289 char result
[SWIG_BUFFER_SIZE
];
1290 robj
= SWIG_PackDataName(result
, ptr
, sz
, type
->name
, sizeof(result
)) ?
1291 PyString_FromString(result
) : 0;
1297 /* -----------------------------------------------------------------------------*
1299 * -----------------------------------------------------------------------------*/
1301 #ifdef SWIG_LINK_RUNTIME
1302 void *SWIG_ReturnGlobalTypeList(void *);
1305 SWIGRUNTIME swig_type_info
**
1306 SWIG_Python_GetTypeListHandle() {
1307 static void *type_pointer
= (void *)0;
1308 /* first check if module already created */
1309 if (!type_pointer
) {
1310 #ifdef SWIG_LINK_RUNTIME
1311 type_pointer
= SWIG_ReturnGlobalTypeList((void *)0);
1313 type_pointer
= PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
,
1314 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
);
1315 if (PyErr_Occurred()) {
1317 type_pointer
= (void *)0;
1321 return (swig_type_info
**) type_pointer
;
1325 Search for a swig_type_info structure
1327 SWIGRUNTIMEINLINE swig_type_info
*
1328 SWIG_Python_GetTypeList() {
1329 swig_type_info
**tlh
= SWIG_Python_GetTypeListHandle();
1330 return tlh
? *tlh
: (swig_type_info
*)0;
1333 #define SWIG_Runtime_GetTypeList SWIG_Python_GetTypeList
1340 /* -------- TYPES TABLE (BEGIN) -------- */
1342 #define SWIGTYPE_p_wxRect swig_types[0]
1343 #define SWIGTYPE_p_wxGIFAnimationCtrl swig_types[1]
1344 #define SWIGTYPE_p_wxObject swig_types[2]
1345 #define SWIGTYPE_p_unsigned_char swig_types[3]
1346 #define SWIGTYPE_p_wxColour swig_types[4]
1347 #define SWIGTYPE_p_wxAnimationPlayer swig_types[5]
1348 #define SWIGTYPE_p_wxWindow swig_types[6]
1349 #define SWIGTYPE_p_unsigned_long swig_types[7]
1350 #define SWIGTYPE_p_wxBitmap swig_types[8]
1351 #define SWIGTYPE_p_form_ops_t swig_types[9]
1352 #define SWIGTYPE_p_unsigned_int swig_types[10]
1353 #define SWIGTYPE_unsigned_int swig_types[11]
1354 #define SWIGTYPE_p_wxDuplexMode swig_types[12]
1355 #define SWIGTYPE_p_wxGIFAnimation swig_types[13]
1356 #define SWIGTYPE_p_char swig_types[14]
1357 #define SWIGTYPE_p_wxAnimationBase swig_types[15]
1358 #define SWIGTYPE_p_wxPoint swig_types[16]
1359 #define SWIGTYPE_p_wxDC swig_types[17]
1360 #define SWIGTYPE_p_wxEvtHandler swig_types[18]
1361 #define SWIGTYPE_std__ptrdiff_t swig_types[19]
1362 #define SWIGTYPE_ptrdiff_t swig_types[20]
1363 #define SWIGTYPE_p_wxControl swig_types[21]
1364 #define SWIGTYPE_p_wxPaperSize swig_types[22]
1365 #define SWIGTYPE_p_wxSize swig_types[23]
1366 #define SWIGTYPE_p_int swig_types[24]
1367 static swig_type_info
*swig_types
[26];
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
;
2460 resultobj
= wxPyMake_wxObject(result
, 1);
2468 static PyObject
*_wrap_AnimationPlayer_GetDisposalMethod(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2469 PyObject
*resultobj
;
2470 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2472 wxAnimationDisposal result
;
2473 PyObject
* obj0
= 0 ;
2474 PyObject
* obj1
= 0 ;
2476 (char *) "self",(char *) "i", NULL
2479 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_GetDisposalMethod",kwnames
,&obj0
,&obj1
)) goto fail
;
2480 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2481 if (SWIG_arg_fail(1)) SWIG_fail
;
2483 arg2
= (int)(SWIG_As_int(obj1
));
2484 if (SWIG_arg_fail(2)) SWIG_fail
;
2487 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2488 result
= (wxAnimationDisposal
)((wxAnimationPlayer
const *)arg1
)->GetDisposalMethod(arg2
);
2490 wxPyEndAllowThreads(__tstate
);
2491 if (PyErr_Occurred()) SWIG_fail
;
2493 resultobj
= SWIG_From_int((result
));
2500 static PyObject
*_wrap_AnimationPlayer_GetFrameRect(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2501 PyObject
*resultobj
;
2502 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2505 PyObject
* obj0
= 0 ;
2506 PyObject
* obj1
= 0 ;
2508 (char *) "self",(char *) "i", NULL
2511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_GetFrameRect",kwnames
,&obj0
,&obj1
)) goto fail
;
2512 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2513 if (SWIG_arg_fail(1)) SWIG_fail
;
2515 arg2
= (int)(SWIG_As_int(obj1
));
2516 if (SWIG_arg_fail(2)) SWIG_fail
;
2519 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2520 result
= ((wxAnimationPlayer
const *)arg1
)->GetFrameRect(arg2
);
2522 wxPyEndAllowThreads(__tstate
);
2523 if (PyErr_Occurred()) SWIG_fail
;
2527 resultptr
= new wxRect((wxRect
&)(result
));
2528 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxRect
, 1);
2536 static PyObject
*_wrap_AnimationPlayer_GetDelay(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2537 PyObject
*resultobj
;
2538 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2541 PyObject
* obj0
= 0 ;
2542 PyObject
* obj1
= 0 ;
2544 (char *) "self",(char *) "i", NULL
2547 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_GetDelay",kwnames
,&obj0
,&obj1
)) goto fail
;
2548 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2549 if (SWIG_arg_fail(1)) SWIG_fail
;
2551 arg2
= (int)(SWIG_As_int(obj1
));
2552 if (SWIG_arg_fail(2)) SWIG_fail
;
2555 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2556 result
= (int)((wxAnimationPlayer
const *)arg1
)->GetDelay(arg2
);
2558 wxPyEndAllowThreads(__tstate
);
2559 if (PyErr_Occurred()) SWIG_fail
;
2562 resultobj
= SWIG_From_int((int)(result
));
2570 static PyObject
*_wrap_AnimationPlayer_GetLogicalScreenSize(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2571 PyObject
*resultobj
;
2572 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2574 PyObject
* obj0
= 0 ;
2576 (char *) "self", NULL
2579 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_GetLogicalScreenSize",kwnames
,&obj0
)) goto fail
;
2580 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2581 if (SWIG_arg_fail(1)) SWIG_fail
;
2583 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2584 result
= ((wxAnimationPlayer
const *)arg1
)->GetLogicalScreenSize();
2586 wxPyEndAllowThreads(__tstate
);
2587 if (PyErr_Occurred()) SWIG_fail
;
2591 resultptr
= new wxSize((wxSize
&)(result
));
2592 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxSize
, 1);
2600 static PyObject
*_wrap_AnimationPlayer_GetBackgroundColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2601 PyObject
*resultobj
;
2602 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2603 wxColour
*arg2
= 0 ;
2606 PyObject
* obj0
= 0 ;
2607 PyObject
* obj1
= 0 ;
2609 (char *) "self",(char *) "col", NULL
2612 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_GetBackgroundColour",kwnames
,&obj0
,&obj1
)) goto fail
;
2613 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2614 if (SWIG_arg_fail(1)) SWIG_fail
;
2617 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
2620 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2621 result
= (bool)((wxAnimationPlayer
const *)arg1
)->GetBackgroundColour(*arg2
);
2623 wxPyEndAllowThreads(__tstate
);
2624 if (PyErr_Occurred()) SWIG_fail
;
2627 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2635 static PyObject
*_wrap_AnimationPlayer_GetTransparentColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2636 PyObject
*resultobj
;
2637 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2638 wxColour
*arg2
= 0 ;
2641 PyObject
* obj0
= 0 ;
2642 PyObject
* obj1
= 0 ;
2644 (char *) "self",(char *) "col", NULL
2647 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_GetTransparentColour",kwnames
,&obj0
,&obj1
)) goto fail
;
2648 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2649 if (SWIG_arg_fail(1)) SWIG_fail
;
2652 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
2655 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2656 result
= (bool)((wxAnimationPlayer
const *)arg1
)->GetTransparentColour(*arg2
);
2658 wxPyEndAllowThreads(__tstate
);
2659 if (PyErr_Occurred()) SWIG_fail
;
2662 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2670 static PyObject
*_wrap_AnimationPlayer_PlayFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2671 PyObject
*resultobj
;
2672 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2674 wxWindow
*arg3
= 0 ;
2678 PyObject
* obj0
= 0 ;
2679 PyObject
* obj1
= 0 ;
2680 PyObject
* obj2
= 0 ;
2681 PyObject
* obj3
= 0 ;
2683 (char *) "self",(char *) "frame",(char *) "window",(char *) "pos", NULL
2686 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:AnimationPlayer_PlayFrame",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
2687 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2688 if (SWIG_arg_fail(1)) SWIG_fail
;
2690 arg2
= (int)(SWIG_As_int(obj1
));
2691 if (SWIG_arg_fail(2)) SWIG_fail
;
2694 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2695 if (SWIG_arg_fail(3)) SWIG_fail
;
2697 SWIG_null_ref("wxWindow");
2699 if (SWIG_arg_fail(3)) SWIG_fail
;
2703 if ( ! wxPoint_helper(obj3
, &arg4
)) SWIG_fail
;
2706 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2707 result
= (bool)(arg1
)->PlayFrame(arg2
,*arg3
,(wxPoint
const &)*arg4
);
2709 wxPyEndAllowThreads(__tstate
);
2710 if (PyErr_Occurred()) SWIG_fail
;
2713 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2721 static PyObject
*_wrap_AnimationPlayer_PlayNextFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2722 PyObject
*resultobj
;
2723 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2725 PyObject
* obj0
= 0 ;
2727 (char *) "self", NULL
2730 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_PlayNextFrame",kwnames
,&obj0
)) goto fail
;
2731 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2732 if (SWIG_arg_fail(1)) SWIG_fail
;
2734 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2735 result
= (bool)(arg1
)->PlayFrame();
2737 wxPyEndAllowThreads(__tstate
);
2738 if (PyErr_Occurred()) SWIG_fail
;
2741 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2749 static PyObject
*_wrap_AnimationPlayer_DrawFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2750 PyObject
*resultobj
;
2751 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2756 PyObject
* obj0
= 0 ;
2757 PyObject
* obj1
= 0 ;
2758 PyObject
* obj2
= 0 ;
2759 PyObject
* obj3
= 0 ;
2761 (char *) "self",(char *) "frame",(char *) "dc",(char *) "pos", NULL
2764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:AnimationPlayer_DrawFrame",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
2765 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2766 if (SWIG_arg_fail(1)) SWIG_fail
;
2768 arg2
= (int)(SWIG_As_int(obj1
));
2769 if (SWIG_arg_fail(2)) SWIG_fail
;
2772 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxDC
, SWIG_POINTER_EXCEPTION
| 0);
2773 if (SWIG_arg_fail(3)) SWIG_fail
;
2775 SWIG_null_ref("wxDC");
2777 if (SWIG_arg_fail(3)) SWIG_fail
;
2781 if ( ! wxPoint_helper(obj3
, &arg4
)) SWIG_fail
;
2784 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2785 (arg1
)->DrawFrame(arg2
,*arg3
,(wxPoint
const &)*arg4
);
2787 wxPyEndAllowThreads(__tstate
);
2788 if (PyErr_Occurred()) SWIG_fail
;
2790 Py_INCREF(Py_None
); resultobj
= Py_None
;
2797 static PyObject
*_wrap_AnimationPlayer_DrawBackground(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2798 PyObject
*resultobj
;
2799 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2802 wxColour
*arg4
= 0 ;
2805 PyObject
* obj0
= 0 ;
2806 PyObject
* obj1
= 0 ;
2807 PyObject
* obj2
= 0 ;
2808 PyObject
* obj3
= 0 ;
2810 (char *) "self",(char *) "dc",(char *) "pos",(char *) "colour", NULL
2813 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:AnimationPlayer_DrawBackground",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
2814 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2815 if (SWIG_arg_fail(1)) SWIG_fail
;
2817 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxDC
, SWIG_POINTER_EXCEPTION
| 0);
2818 if (SWIG_arg_fail(2)) SWIG_fail
;
2820 SWIG_null_ref("wxDC");
2822 if (SWIG_arg_fail(2)) SWIG_fail
;
2826 if ( ! wxPoint_helper(obj2
, &arg3
)) SWIG_fail
;
2830 if ( ! wxColour_helper(obj3
, &arg4
)) SWIG_fail
;
2833 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2834 (arg1
)->DrawBackground(*arg2
,(wxPoint
const &)*arg3
,(wxColour
const &)*arg4
);
2836 wxPyEndAllowThreads(__tstate
);
2837 if (PyErr_Occurred()) SWIG_fail
;
2839 Py_INCREF(Py_None
); resultobj
= Py_None
;
2846 static PyObject
*_wrap_AnimationPlayer_ClearCache(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2847 PyObject
*resultobj
;
2848 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2849 PyObject
* obj0
= 0 ;
2851 (char *) "self", NULL
2854 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_ClearCache",kwnames
,&obj0
)) goto fail
;
2855 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2856 if (SWIG_arg_fail(1)) SWIG_fail
;
2858 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2859 (arg1
)->ClearCache();
2861 wxPyEndAllowThreads(__tstate
);
2862 if (PyErr_Occurred()) SWIG_fail
;
2864 Py_INCREF(Py_None
); resultobj
= Py_None
;
2871 static PyObject
*_wrap_AnimationPlayer_SaveBackground(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2872 PyObject
*resultobj
;
2873 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2876 PyObject
* obj0
= 0 ;
2877 PyObject
* obj1
= 0 ;
2879 (char *) "self",(char *) "rect", NULL
2882 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_SaveBackground",kwnames
,&obj0
,&obj1
)) goto fail
;
2883 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2884 if (SWIG_arg_fail(1)) SWIG_fail
;
2887 if ( ! wxRect_helper(obj1
, &arg2
)) SWIG_fail
;
2890 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2891 (arg1
)->SaveBackground((wxRect
const &)*arg2
);
2893 wxPyEndAllowThreads(__tstate
);
2894 if (PyErr_Occurred()) SWIG_fail
;
2896 Py_INCREF(Py_None
); resultobj
= Py_None
;
2903 static PyObject
*_wrap_AnimationPlayer_GetBackingStore(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2904 PyObject
*resultobj
;
2905 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2907 PyObject
* obj0
= 0 ;
2909 (char *) "self", NULL
2912 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_GetBackingStore",kwnames
,&obj0
)) goto fail
;
2913 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2914 if (SWIG_arg_fail(1)) SWIG_fail
;
2916 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2918 wxBitmap
&_result_ref
= (arg1
)->GetBackingStore();
2919 result
= (wxBitmap
*) &_result_ref
;
2922 wxPyEndAllowThreads(__tstate
);
2923 if (PyErr_Occurred()) SWIG_fail
;
2926 wxBitmap
* resultptr
= new wxBitmap(*result
);
2927 resultobj
= SWIG_NewPointerObj((void*)(resultptr
), SWIGTYPE_p_wxBitmap
, 1);
2935 static PyObject
* AnimationPlayer_swigregister(PyObject
*, PyObject
*args
) {
2937 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2938 SWIG_TypeClientData(SWIGTYPE_p_wxAnimationPlayer
, obj
);
2940 return Py_BuildValue((char *)"");
2942 static PyObject
*_wrap_delete_AnimationBase(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2943 PyObject
*resultobj
;
2944 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
2945 PyObject
* obj0
= 0 ;
2947 (char *) "self", NULL
2950 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_AnimationBase",kwnames
,&obj0
)) goto fail
;
2951 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
2952 if (SWIG_arg_fail(1)) SWIG_fail
;
2954 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2957 wxPyEndAllowThreads(__tstate
);
2958 if (PyErr_Occurred()) SWIG_fail
;
2960 Py_INCREF(Py_None
); resultobj
= Py_None
;
2967 static PyObject
*_wrap_AnimationBase_GetFrameCount(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2968 PyObject
*resultobj
;
2969 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
2971 PyObject
* obj0
= 0 ;
2973 (char *) "self", NULL
2976 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationBase_GetFrameCount",kwnames
,&obj0
)) goto fail
;
2977 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
2978 if (SWIG_arg_fail(1)) SWIG_fail
;
2980 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2981 result
= (int)((wxAnimationBase
const *)arg1
)->GetFrameCount();
2983 wxPyEndAllowThreads(__tstate
);
2984 if (PyErr_Occurred()) SWIG_fail
;
2987 resultobj
= SWIG_From_int((int)(result
));
2995 static PyObject
*_wrap_AnimationBase_GetFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2996 PyObject
*resultobj
;
2997 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
3000 PyObject
* obj0
= 0 ;
3001 PyObject
* obj1
= 0 ;
3003 (char *) "self",(char *) "i", NULL
3006 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationBase_GetFrame",kwnames
,&obj0
,&obj1
)) goto fail
;
3007 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
3008 if (SWIG_arg_fail(1)) SWIG_fail
;
3010 arg2
= (int)(SWIG_As_int(obj1
));
3011 if (SWIG_arg_fail(2)) SWIG_fail
;
3014 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3015 result
= (wxImage
*)((wxAnimationBase
const *)arg1
)->GetFrame(arg2
);
3017 wxPyEndAllowThreads(__tstate
);
3018 if (PyErr_Occurred()) SWIG_fail
;
3021 resultobj
= wxPyMake_wxObject(result
, 1);
3029 static PyObject
*_wrap_AnimationBase_GetDisposalMethod(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3030 PyObject
*resultobj
;
3031 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
3033 wxAnimationDisposal result
;
3034 PyObject
* obj0
= 0 ;
3035 PyObject
* obj1
= 0 ;
3037 (char *) "self",(char *) "i", NULL
3040 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationBase_GetDisposalMethod",kwnames
,&obj0
,&obj1
)) goto fail
;
3041 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
3042 if (SWIG_arg_fail(1)) SWIG_fail
;
3044 arg2
= (int)(SWIG_As_int(obj1
));
3045 if (SWIG_arg_fail(2)) SWIG_fail
;
3048 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3049 result
= (wxAnimationDisposal
)((wxAnimationBase
const *)arg1
)->GetDisposalMethod(arg2
);
3051 wxPyEndAllowThreads(__tstate
);
3052 if (PyErr_Occurred()) SWIG_fail
;
3054 resultobj
= SWIG_From_int((result
));
3061 static PyObject
*_wrap_AnimationBase_GetFrameRect(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3062 PyObject
*resultobj
;
3063 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
3066 PyObject
* obj0
= 0 ;
3067 PyObject
* obj1
= 0 ;
3069 (char *) "self",(char *) "i", NULL
3072 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationBase_GetFrameRect",kwnames
,&obj0
,&obj1
)) goto fail
;
3073 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
3074 if (SWIG_arg_fail(1)) SWIG_fail
;
3076 arg2
= (int)(SWIG_As_int(obj1
));
3077 if (SWIG_arg_fail(2)) SWIG_fail
;
3080 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3081 result
= ((wxAnimationBase
const *)arg1
)->GetFrameRect(arg2
);
3083 wxPyEndAllowThreads(__tstate
);
3084 if (PyErr_Occurred()) SWIG_fail
;
3088 resultptr
= new wxRect((wxRect
&)(result
));
3089 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxRect
, 1);
3097 static PyObject
*_wrap_AnimationBase_GetDelay(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3098 PyObject
*resultobj
;
3099 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
3102 PyObject
* obj0
= 0 ;
3103 PyObject
* obj1
= 0 ;
3105 (char *) "self",(char *) "i", NULL
3108 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationBase_GetDelay",kwnames
,&obj0
,&obj1
)) goto fail
;
3109 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
3110 if (SWIG_arg_fail(1)) SWIG_fail
;
3112 arg2
= (int)(SWIG_As_int(obj1
));
3113 if (SWIG_arg_fail(2)) SWIG_fail
;
3116 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3117 result
= (int)((wxAnimationBase
const *)arg1
)->GetDelay(arg2
);
3119 wxPyEndAllowThreads(__tstate
);
3120 if (PyErr_Occurred()) SWIG_fail
;
3123 resultobj
= SWIG_From_int((int)(result
));
3131 static PyObject
*_wrap_AnimationBase_GetLogicalScreenSize(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3132 PyObject
*resultobj
;
3133 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
3135 PyObject
* obj0
= 0 ;
3137 (char *) "self", NULL
3140 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationBase_GetLogicalScreenSize",kwnames
,&obj0
)) goto fail
;
3141 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
3142 if (SWIG_arg_fail(1)) SWIG_fail
;
3144 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3145 result
= ((wxAnimationBase
const *)arg1
)->GetLogicalScreenSize();
3147 wxPyEndAllowThreads(__tstate
);
3148 if (PyErr_Occurred()) SWIG_fail
;
3152 resultptr
= new wxSize((wxSize
&)(result
));
3153 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxSize
, 1);
3161 static PyObject
*_wrap_AnimationBase_GetBackgroundColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3162 PyObject
*resultobj
;
3163 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
3164 wxColour
*arg2
= 0 ;
3167 PyObject
* obj0
= 0 ;
3168 PyObject
* obj1
= 0 ;
3170 (char *) "self",(char *) "col", NULL
3173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationBase_GetBackgroundColour",kwnames
,&obj0
,&obj1
)) goto fail
;
3174 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
3175 if (SWIG_arg_fail(1)) SWIG_fail
;
3178 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
3181 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3182 result
= (bool)((wxAnimationBase
const *)arg1
)->GetBackgroundColour(*arg2
);
3184 wxPyEndAllowThreads(__tstate
);
3185 if (PyErr_Occurred()) SWIG_fail
;
3188 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3196 static PyObject
*_wrap_AnimationBase_GetTransparentColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3197 PyObject
*resultobj
;
3198 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
3199 wxColour
*arg2
= 0 ;
3202 PyObject
* obj0
= 0 ;
3203 PyObject
* obj1
= 0 ;
3205 (char *) "self",(char *) "col", NULL
3208 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationBase_GetTransparentColour",kwnames
,&obj0
,&obj1
)) goto fail
;
3209 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
3210 if (SWIG_arg_fail(1)) SWIG_fail
;
3213 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
3216 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3217 result
= (bool)((wxAnimationBase
const *)arg1
)->GetTransparentColour(*arg2
);
3219 wxPyEndAllowThreads(__tstate
);
3220 if (PyErr_Occurred()) SWIG_fail
;
3223 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3231 static PyObject
*_wrap_AnimationBase_IsValid(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3232 PyObject
*resultobj
;
3233 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
3235 PyObject
* obj0
= 0 ;
3237 (char *) "self", NULL
3240 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationBase_IsValid",kwnames
,&obj0
)) goto fail
;
3241 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
3242 if (SWIG_arg_fail(1)) SWIG_fail
;
3244 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3245 result
= (bool)((wxAnimationBase
const *)arg1
)->IsValid();
3247 wxPyEndAllowThreads(__tstate
);
3248 if (PyErr_Occurred()) SWIG_fail
;
3251 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3259 static PyObject
*_wrap_AnimationBase_LoadFile(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3260 PyObject
*resultobj
;
3261 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
3262 wxString
*arg2
= 0 ;
3264 bool temp2
= false ;
3265 PyObject
* obj0
= 0 ;
3266 PyObject
* obj1
= 0 ;
3268 (char *) "self",(char *) "filename", NULL
3271 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationBase_LoadFile",kwnames
,&obj0
,&obj1
)) goto fail
;
3272 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
3273 if (SWIG_arg_fail(1)) SWIG_fail
;
3275 arg2
= wxString_in_helper(obj1
);
3276 if (arg2
== NULL
) SWIG_fail
;
3280 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3281 result
= (bool)(arg1
)->LoadFile((wxString
const &)*arg2
);
3283 wxPyEndAllowThreads(__tstate
);
3284 if (PyErr_Occurred()) SWIG_fail
;
3287 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3303 static PyObject
* AnimationBase_swigregister(PyObject
*, PyObject
*args
) {
3305 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3306 SWIG_TypeClientData(SWIGTYPE_p_wxAnimationBase
, obj
);
3308 return Py_BuildValue((char *)"");
3310 static PyObject
*_wrap_new_GIFAnimation(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3311 PyObject
*resultobj
;
3312 wxGIFAnimation
*result
;
3317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_GIFAnimation",kwnames
)) goto fail
;
3319 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3320 result
= (wxGIFAnimation
*)new wxGIFAnimation();
3322 wxPyEndAllowThreads(__tstate
);
3323 if (PyErr_Occurred()) SWIG_fail
;
3325 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxGIFAnimation
, 1);
3332 static PyObject
*_wrap_delete_GIFAnimation(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3333 PyObject
*resultobj
;
3334 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3335 PyObject
* obj0
= 0 ;
3337 (char *) "self", NULL
3340 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_GIFAnimation",kwnames
,&obj0
)) goto fail
;
3341 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3342 if (SWIG_arg_fail(1)) SWIG_fail
;
3344 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3347 wxPyEndAllowThreads(__tstate
);
3348 if (PyErr_Occurred()) SWIG_fail
;
3350 Py_INCREF(Py_None
); resultobj
= Py_None
;
3357 static PyObject
*_wrap_GIFAnimation_GetFrameCount(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3358 PyObject
*resultobj
;
3359 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3361 PyObject
* obj0
= 0 ;
3363 (char *) "self", NULL
3366 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GIFAnimation_GetFrameCount",kwnames
,&obj0
)) goto fail
;
3367 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3368 if (SWIG_arg_fail(1)) SWIG_fail
;
3370 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3371 result
= (int)((wxGIFAnimation
const *)arg1
)->GetFrameCount();
3373 wxPyEndAllowThreads(__tstate
);
3374 if (PyErr_Occurred()) SWIG_fail
;
3377 resultobj
= SWIG_From_int((int)(result
));
3385 static PyObject
*_wrap_GIFAnimation_GetFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3386 PyObject
*resultobj
;
3387 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3390 PyObject
* obj0
= 0 ;
3391 PyObject
* obj1
= 0 ;
3393 (char *) "self",(char *) "i", NULL
3396 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:GIFAnimation_GetFrame",kwnames
,&obj0
,&obj1
)) goto fail
;
3397 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3398 if (SWIG_arg_fail(1)) SWIG_fail
;
3400 arg2
= (int)(SWIG_As_int(obj1
));
3401 if (SWIG_arg_fail(2)) SWIG_fail
;
3404 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3405 result
= (wxImage
*)((wxGIFAnimation
const *)arg1
)->GetFrame(arg2
);
3407 wxPyEndAllowThreads(__tstate
);
3408 if (PyErr_Occurred()) SWIG_fail
;
3411 resultobj
= wxPyMake_wxObject(result
, 1);
3419 static PyObject
*_wrap_GIFAnimation_GetDisposalMethod(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3420 PyObject
*resultobj
;
3421 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3423 wxAnimationDisposal result
;
3424 PyObject
* obj0
= 0 ;
3425 PyObject
* obj1
= 0 ;
3427 (char *) "self",(char *) "i", NULL
3430 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:GIFAnimation_GetDisposalMethod",kwnames
,&obj0
,&obj1
)) goto fail
;
3431 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3432 if (SWIG_arg_fail(1)) SWIG_fail
;
3434 arg2
= (int)(SWIG_As_int(obj1
));
3435 if (SWIG_arg_fail(2)) SWIG_fail
;
3438 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3439 result
= (wxAnimationDisposal
)((wxGIFAnimation
const *)arg1
)->GetDisposalMethod(arg2
);
3441 wxPyEndAllowThreads(__tstate
);
3442 if (PyErr_Occurred()) SWIG_fail
;
3444 resultobj
= SWIG_From_int((result
));
3451 static PyObject
*_wrap_GIFAnimation_GetFrameRect(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3452 PyObject
*resultobj
;
3453 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3456 PyObject
* obj0
= 0 ;
3457 PyObject
* obj1
= 0 ;
3459 (char *) "self",(char *) "i", NULL
3462 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:GIFAnimation_GetFrameRect",kwnames
,&obj0
,&obj1
)) goto fail
;
3463 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3464 if (SWIG_arg_fail(1)) SWIG_fail
;
3466 arg2
= (int)(SWIG_As_int(obj1
));
3467 if (SWIG_arg_fail(2)) SWIG_fail
;
3470 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3471 result
= ((wxGIFAnimation
const *)arg1
)->GetFrameRect(arg2
);
3473 wxPyEndAllowThreads(__tstate
);
3474 if (PyErr_Occurred()) SWIG_fail
;
3478 resultptr
= new wxRect((wxRect
&)(result
));
3479 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxRect
, 1);
3487 static PyObject
*_wrap_GIFAnimation_GetDelay(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3488 PyObject
*resultobj
;
3489 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3492 PyObject
* obj0
= 0 ;
3493 PyObject
* obj1
= 0 ;
3495 (char *) "self",(char *) "i", NULL
3498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:GIFAnimation_GetDelay",kwnames
,&obj0
,&obj1
)) goto fail
;
3499 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3500 if (SWIG_arg_fail(1)) SWIG_fail
;
3502 arg2
= (int)(SWIG_As_int(obj1
));
3503 if (SWIG_arg_fail(2)) SWIG_fail
;
3506 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3507 result
= (int)((wxGIFAnimation
const *)arg1
)->GetDelay(arg2
);
3509 wxPyEndAllowThreads(__tstate
);
3510 if (PyErr_Occurred()) SWIG_fail
;
3513 resultobj
= SWIG_From_int((int)(result
));
3521 static PyObject
*_wrap_GIFAnimation_GetLogicalScreenSize(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3522 PyObject
*resultobj
;
3523 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3525 PyObject
* obj0
= 0 ;
3527 (char *) "self", NULL
3530 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GIFAnimation_GetLogicalScreenSize",kwnames
,&obj0
)) goto fail
;
3531 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3532 if (SWIG_arg_fail(1)) SWIG_fail
;
3534 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3535 result
= ((wxGIFAnimation
const *)arg1
)->GetLogicalScreenSize();
3537 wxPyEndAllowThreads(__tstate
);
3538 if (PyErr_Occurred()) SWIG_fail
;
3542 resultptr
= new wxSize((wxSize
&)(result
));
3543 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxSize
, 1);
3551 static PyObject
*_wrap_GIFAnimation_GetBackgroundColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3552 PyObject
*resultobj
;
3553 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3554 wxColour
*arg2
= 0 ;
3557 PyObject
* obj0
= 0 ;
3558 PyObject
* obj1
= 0 ;
3560 (char *) "self",(char *) "col", NULL
3563 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:GIFAnimation_GetBackgroundColour",kwnames
,&obj0
,&obj1
)) goto fail
;
3564 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3565 if (SWIG_arg_fail(1)) SWIG_fail
;
3568 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
3571 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3572 result
= (bool)((wxGIFAnimation
const *)arg1
)->GetBackgroundColour(*arg2
);
3574 wxPyEndAllowThreads(__tstate
);
3575 if (PyErr_Occurred()) SWIG_fail
;
3578 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3586 static PyObject
*_wrap_GIFAnimation_GetTransparentColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3587 PyObject
*resultobj
;
3588 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3589 wxColour
*arg2
= 0 ;
3592 PyObject
* obj0
= 0 ;
3593 PyObject
* obj1
= 0 ;
3595 (char *) "self",(char *) "col", NULL
3598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:GIFAnimation_GetTransparentColour",kwnames
,&obj0
,&obj1
)) goto fail
;
3599 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3600 if (SWIG_arg_fail(1)) SWIG_fail
;
3603 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
3606 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3607 result
= (bool)((wxGIFAnimation
const *)arg1
)->GetTransparentColour(*arg2
);
3609 wxPyEndAllowThreads(__tstate
);
3610 if (PyErr_Occurred()) SWIG_fail
;
3613 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3621 static PyObject
*_wrap_GIFAnimation_IsValid(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3622 PyObject
*resultobj
;
3623 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3625 PyObject
* obj0
= 0 ;
3627 (char *) "self", NULL
3630 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GIFAnimation_IsValid",kwnames
,&obj0
)) goto fail
;
3631 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3632 if (SWIG_arg_fail(1)) SWIG_fail
;
3634 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3635 result
= (bool)((wxGIFAnimation
const *)arg1
)->IsValid();
3637 wxPyEndAllowThreads(__tstate
);
3638 if (PyErr_Occurred()) SWIG_fail
;
3641 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3649 static PyObject
*_wrap_GIFAnimation_LoadFile(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3650 PyObject
*resultobj
;
3651 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3652 wxString
*arg2
= 0 ;
3654 bool temp2
= false ;
3655 PyObject
* obj0
= 0 ;
3656 PyObject
* obj1
= 0 ;
3658 (char *) "self",(char *) "filename", NULL
3661 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:GIFAnimation_LoadFile",kwnames
,&obj0
,&obj1
)) goto fail
;
3662 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3663 if (SWIG_arg_fail(1)) SWIG_fail
;
3665 arg2
= wxString_in_helper(obj1
);
3666 if (arg2
== NULL
) SWIG_fail
;
3670 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3671 result
= (bool)(arg1
)->LoadFile((wxString
const &)*arg2
);
3673 wxPyEndAllowThreads(__tstate
);
3674 if (PyErr_Occurred()) SWIG_fail
;
3677 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3693 static PyObject
* GIFAnimation_swigregister(PyObject
*, PyObject
*args
) {
3695 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3696 SWIG_TypeClientData(SWIGTYPE_p_wxGIFAnimation
, obj
);
3698 return Py_BuildValue((char *)"");
3700 static PyObject
*_wrap_new_GIFAnimationCtrl(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3701 PyObject
*resultobj
;
3702 wxWindow
*arg1
= (wxWindow
*) 0 ;
3703 int arg2
= (int) -1 ;
3704 wxString
const &arg3_defvalue
= wxPyEmptyString
;
3705 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3706 wxPoint
const &arg4_defvalue
= wxDefaultPosition
;
3707 wxPoint
*arg4
= (wxPoint
*) &arg4_defvalue
;
3708 wxSize
const &arg5_defvalue
= wxDefaultSize
;
3709 wxSize
*arg5
= (wxSize
*) &arg5_defvalue
;
3710 long arg6
= (long) wxAN_FIT_ANIMATION
|wxNO_BORDER
;
3711 wxString
const &arg7_defvalue
= wxPyAnimationControlNameStr
;
3712 wxString
*arg7
= (wxString
*) &arg7_defvalue
;
3713 wxGIFAnimationCtrl
*result
;
3714 bool temp3
= false ;
3717 bool temp7
= false ;
3718 PyObject
* obj0
= 0 ;
3719 PyObject
* obj1
= 0 ;
3720 PyObject
* obj2
= 0 ;
3721 PyObject
* obj3
= 0 ;
3722 PyObject
* obj4
= 0 ;
3723 PyObject
* obj5
= 0 ;
3724 PyObject
* obj6
= 0 ;
3726 (char *) "parent",(char *) "id",(char *) "filename",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
3729 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOOOOO:new_GIFAnimationCtrl",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
)) goto fail
;
3730 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
3731 if (SWIG_arg_fail(1)) SWIG_fail
;
3734 arg2
= (int)(SWIG_As_int(obj1
));
3735 if (SWIG_arg_fail(2)) SWIG_fail
;
3740 arg3
= wxString_in_helper(obj2
);
3741 if (arg3
== NULL
) SWIG_fail
;
3748 if ( ! wxPoint_helper(obj3
, &arg4
)) SWIG_fail
;
3754 if ( ! wxSize_helper(obj4
, &arg5
)) SWIG_fail
;
3759 arg6
= (long)(SWIG_As_long(obj5
));
3760 if (SWIG_arg_fail(6)) SWIG_fail
;
3765 arg7
= wxString_in_helper(obj6
);
3766 if (arg7
== NULL
) SWIG_fail
;
3771 if (!wxPyCheckForApp()) SWIG_fail
;
3772 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3773 result
= (wxGIFAnimationCtrl
*)new wxGIFAnimationCtrl(arg1
,arg2
,(wxString
const &)*arg3
,(wxPoint
const &)*arg4
,(wxSize
const &)*arg5
,arg6
,(wxString
const &)*arg7
);
3775 wxPyEndAllowThreads(__tstate
);
3776 if (PyErr_Occurred()) SWIG_fail
;
3778 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxGIFAnimationCtrl
, 1);
3801 static PyObject
*_wrap_new_PreGIFAnimationCtrl(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3802 PyObject
*resultobj
;
3803 wxGIFAnimationCtrl
*result
;
3808 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_PreGIFAnimationCtrl",kwnames
)) goto fail
;
3810 if (!wxPyCheckForApp()) SWIG_fail
;
3811 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3812 result
= (wxGIFAnimationCtrl
*)new wxGIFAnimationCtrl();
3814 wxPyEndAllowThreads(__tstate
);
3815 if (PyErr_Occurred()) SWIG_fail
;
3817 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxGIFAnimationCtrl
, 1);
3824 static PyObject
*_wrap_GIFAnimationCtrl_Create(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3825 PyObject
*resultobj
;
3826 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
3827 wxWindow
*arg2
= (wxWindow
*) 0 ;
3828 int arg3
= (int) -1 ;
3829 wxString
const &arg4_defvalue
= wxPyEmptyString
;
3830 wxString
*arg4
= (wxString
*) &arg4_defvalue
;
3831 wxPoint
const &arg5_defvalue
= wxDefaultPosition
;
3832 wxPoint
*arg5
= (wxPoint
*) &arg5_defvalue
;
3833 wxSize
const &arg6_defvalue
= wxDefaultSize
;
3834 wxSize
*arg6
= (wxSize
*) &arg6_defvalue
;
3835 long arg7
= (long) wxAN_FIT_ANIMATION
|wxNO_BORDER
;
3836 wxString
const &arg8_defvalue
= wxPyAnimationControlNameStr
;
3837 wxString
*arg8
= (wxString
*) &arg8_defvalue
;
3839 bool temp4
= false ;
3842 bool temp8
= false ;
3843 PyObject
* obj0
= 0 ;
3844 PyObject
* obj1
= 0 ;
3845 PyObject
* obj2
= 0 ;
3846 PyObject
* obj3
= 0 ;
3847 PyObject
* obj4
= 0 ;
3848 PyObject
* obj5
= 0 ;
3849 PyObject
* obj6
= 0 ;
3850 PyObject
* obj7
= 0 ;
3852 (char *) "self",(char *) "parent",(char *) "id",(char *) "filename",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
3855 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|OOOOOO:GIFAnimationCtrl_Create",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
,&obj7
)) goto fail
;
3856 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
3857 if (SWIG_arg_fail(1)) SWIG_fail
;
3858 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
3859 if (SWIG_arg_fail(2)) SWIG_fail
;
3862 arg3
= (int)(SWIG_As_int(obj2
));
3863 if (SWIG_arg_fail(3)) SWIG_fail
;
3868 arg4
= wxString_in_helper(obj3
);
3869 if (arg4
== NULL
) SWIG_fail
;
3876 if ( ! wxPoint_helper(obj4
, &arg5
)) SWIG_fail
;
3882 if ( ! wxSize_helper(obj5
, &arg6
)) SWIG_fail
;
3887 arg7
= (long)(SWIG_As_long(obj6
));
3888 if (SWIG_arg_fail(7)) SWIG_fail
;
3893 arg8
= wxString_in_helper(obj7
);
3894 if (arg8
== NULL
) SWIG_fail
;
3899 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3900 result
= (bool)(arg1
)->Create(arg2
,arg3
,(wxString
const &)*arg4
,(wxPoint
const &)*arg5
,(wxSize
const &)*arg6
,arg7
,(wxString
const &)*arg8
);
3902 wxPyEndAllowThreads(__tstate
);
3903 if (PyErr_Occurred()) SWIG_fail
;
3906 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3930 static PyObject
*_wrap_GIFAnimationCtrl_LoadFile(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3931 PyObject
*resultobj
;
3932 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
3933 wxString
const &arg2_defvalue
= wxPyEmptyString
;
3934 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
3936 bool temp2
= false ;
3937 PyObject
* obj0
= 0 ;
3938 PyObject
* obj1
= 0 ;
3940 (char *) "self",(char *) "filename", NULL
3943 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:GIFAnimationCtrl_LoadFile",kwnames
,&obj0
,&obj1
)) goto fail
;
3944 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
3945 if (SWIG_arg_fail(1)) SWIG_fail
;
3948 arg2
= wxString_in_helper(obj1
);
3949 if (arg2
== NULL
) SWIG_fail
;
3954 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3955 result
= (bool)(arg1
)->LoadFile((wxString
const &)*arg2
);
3957 wxPyEndAllowThreads(__tstate
);
3958 if (PyErr_Occurred()) SWIG_fail
;
3961 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3977 static PyObject
*_wrap_GIFAnimationCtrl_Play(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3978 PyObject
*resultobj
;
3979 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
3980 bool arg2
= (bool) true ;
3982 PyObject
* obj0
= 0 ;
3983 PyObject
* obj1
= 0 ;
3985 (char *) "self",(char *) "looped", NULL
3988 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:GIFAnimationCtrl_Play",kwnames
,&obj0
,&obj1
)) goto fail
;
3989 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
3990 if (SWIG_arg_fail(1)) SWIG_fail
;
3993 arg2
= (bool)(SWIG_As_bool(obj1
));
3994 if (SWIG_arg_fail(2)) SWIG_fail
;
3998 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3999 result
= (bool)(arg1
)->Play(arg2
);
4001 wxPyEndAllowThreads(__tstate
);
4002 if (PyErr_Occurred()) SWIG_fail
;
4005 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4013 static PyObject
*_wrap_GIFAnimationCtrl_Stop(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4014 PyObject
*resultobj
;
4015 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
4016 PyObject
* obj0
= 0 ;
4018 (char *) "self", NULL
4021 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GIFAnimationCtrl_Stop",kwnames
,&obj0
)) goto fail
;
4022 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
4023 if (SWIG_arg_fail(1)) SWIG_fail
;
4025 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4028 wxPyEndAllowThreads(__tstate
);
4029 if (PyErr_Occurred()) SWIG_fail
;
4031 Py_INCREF(Py_None
); resultobj
= Py_None
;
4038 static PyObject
*_wrap_GIFAnimationCtrl_FitToAnimation(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4039 PyObject
*resultobj
;
4040 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
4041 PyObject
* obj0
= 0 ;
4043 (char *) "self", NULL
4046 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GIFAnimationCtrl_FitToAnimation",kwnames
,&obj0
)) goto fail
;
4047 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
4048 if (SWIG_arg_fail(1)) SWIG_fail
;
4050 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4051 (arg1
)->FitToAnimation();
4053 wxPyEndAllowThreads(__tstate
);
4054 if (PyErr_Occurred()) SWIG_fail
;
4056 Py_INCREF(Py_None
); resultobj
= Py_None
;
4063 static PyObject
*_wrap_GIFAnimationCtrl_IsPlaying(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4064 PyObject
*resultobj
;
4065 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
4067 PyObject
* obj0
= 0 ;
4069 (char *) "self", NULL
4072 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GIFAnimationCtrl_IsPlaying",kwnames
,&obj0
)) goto fail
;
4073 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
4074 if (SWIG_arg_fail(1)) SWIG_fail
;
4076 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4077 result
= (bool)((wxGIFAnimationCtrl
const *)arg1
)->IsPlaying();
4079 wxPyEndAllowThreads(__tstate
);
4080 if (PyErr_Occurred()) SWIG_fail
;
4083 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4091 static PyObject
*_wrap_GIFAnimationCtrl_GetPlayer(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4092 PyObject
*resultobj
;
4093 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
4094 wxAnimationPlayer
*result
;
4095 PyObject
* obj0
= 0 ;
4097 (char *) "self", NULL
4100 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GIFAnimationCtrl_GetPlayer",kwnames
,&obj0
)) goto fail
;
4101 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
4102 if (SWIG_arg_fail(1)) SWIG_fail
;
4104 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4106 wxAnimationPlayer
&_result_ref
= (arg1
)->GetPlayer();
4107 result
= (wxAnimationPlayer
*) &_result_ref
;
4110 wxPyEndAllowThreads(__tstate
);
4111 if (PyErr_Occurred()) SWIG_fail
;
4113 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxAnimationPlayer
, 0);
4120 static PyObject
*_wrap_GIFAnimationCtrl_GetAnimation(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4121 PyObject
*resultobj
;
4122 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
4123 wxAnimationBase
*result
;
4124 PyObject
* obj0
= 0 ;
4126 (char *) "self", NULL
4129 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GIFAnimationCtrl_GetAnimation",kwnames
,&obj0
)) goto fail
;
4130 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
4131 if (SWIG_arg_fail(1)) SWIG_fail
;
4133 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4134 result
= (wxAnimationBase
*)(arg1
)->GetAnimation();
4136 wxPyEndAllowThreads(__tstate
);
4137 if (PyErr_Occurred()) SWIG_fail
;
4139 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxAnimationBase
, 0);
4146 static PyObject
*_wrap_GIFAnimationCtrl_GetFilename(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4147 PyObject
*resultobj
;
4148 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
4150 PyObject
* obj0
= 0 ;
4152 (char *) "self", NULL
4155 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GIFAnimationCtrl_GetFilename",kwnames
,&obj0
)) goto fail
;
4156 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
4157 if (SWIG_arg_fail(1)) SWIG_fail
;
4159 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4161 wxString
const &_result_ref
= ((wxGIFAnimationCtrl
const *)arg1
)->GetFilename();
4162 result
= (wxString
*) &_result_ref
;
4165 wxPyEndAllowThreads(__tstate
);
4166 if (PyErr_Occurred()) SWIG_fail
;
4170 resultobj
= PyUnicode_FromWideChar(result
->c_str(), result
->Len());
4172 resultobj
= PyString_FromStringAndSize(result
->c_str(), result
->Len());
4181 static PyObject
*_wrap_GIFAnimationCtrl_SetFilename(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4182 PyObject
*resultobj
;
4183 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
4184 wxString
*arg2
= 0 ;
4185 bool temp2
= false ;
4186 PyObject
* obj0
= 0 ;
4187 PyObject
* obj1
= 0 ;
4189 (char *) "self",(char *) "filename", NULL
4192 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:GIFAnimationCtrl_SetFilename",kwnames
,&obj0
,&obj1
)) goto fail
;
4193 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
4194 if (SWIG_arg_fail(1)) SWIG_fail
;
4196 arg2
= wxString_in_helper(obj1
);
4197 if (arg2
== NULL
) SWIG_fail
;
4201 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4202 (arg1
)->SetFilename((wxString
const &)*arg2
);
4204 wxPyEndAllowThreads(__tstate
);
4205 if (PyErr_Occurred()) SWIG_fail
;
4207 Py_INCREF(Py_None
); resultobj
= Py_None
;
4222 static PyObject
* GIFAnimationCtrl_swigregister(PyObject
*, PyObject
*args
) {
4224 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
4225 SWIG_TypeClientData(SWIGTYPE_p_wxGIFAnimationCtrl
, obj
);
4227 return Py_BuildValue((char *)"");
4229 static PyMethodDef SwigMethods
[] = {
4230 { (char *)"new_AnimationPlayer", (PyCFunction
) _wrap_new_AnimationPlayer
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4231 { (char *)"delete_AnimationPlayer", (PyCFunction
) _wrap_delete_AnimationPlayer
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4232 { (char *)"AnimationPlayer_SetAnimation", (PyCFunction
) _wrap_AnimationPlayer_SetAnimation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4233 { (char *)"AnimationPlayer_GetAnimation", (PyCFunction
) _wrap_AnimationPlayer_GetAnimation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4234 { (char *)"AnimationPlayer_SetDestroyAnimation", (PyCFunction
) _wrap_AnimationPlayer_SetDestroyAnimation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4235 { (char *)"AnimationPlayer_GetDestroyAnimation", (PyCFunction
) _wrap_AnimationPlayer_GetDestroyAnimation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4236 { (char *)"AnimationPlayer_SetCurrentFrame", (PyCFunction
) _wrap_AnimationPlayer_SetCurrentFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4237 { (char *)"AnimationPlayer_GetCurrentFrame", (PyCFunction
) _wrap_AnimationPlayer_GetCurrentFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4238 { (char *)"AnimationPlayer_SetWindow", (PyCFunction
) _wrap_AnimationPlayer_SetWindow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4239 { (char *)"AnimationPlayer_GetWindow", (PyCFunction
) _wrap_AnimationPlayer_GetWindow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4240 { (char *)"AnimationPlayer_SetPosition", (PyCFunction
) _wrap_AnimationPlayer_SetPosition
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4241 { (char *)"AnimationPlayer_GetPosition", (PyCFunction
) _wrap_AnimationPlayer_GetPosition
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4242 { (char *)"AnimationPlayer_SetLooped", (PyCFunction
) _wrap_AnimationPlayer_SetLooped
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4243 { (char *)"AnimationPlayer_GetLooped", (PyCFunction
) _wrap_AnimationPlayer_GetLooped
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4244 { (char *)"AnimationPlayer_HasAnimation", (PyCFunction
) _wrap_AnimationPlayer_HasAnimation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4245 { (char *)"AnimationPlayer_IsPlaying", (PyCFunction
) _wrap_AnimationPlayer_IsPlaying
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4246 { (char *)"AnimationPlayer_UseBackgroundColour", (PyCFunction
) _wrap_AnimationPlayer_UseBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4247 { (char *)"AnimationPlayer_UsingBackgroundColour", (PyCFunction
) _wrap_AnimationPlayer_UsingBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4248 { (char *)"AnimationPlayer_SetCustomBackgroundColour", (PyCFunction
) _wrap_AnimationPlayer_SetCustomBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4249 { (char *)"AnimationPlayer_UsingCustomBackgroundColour", (PyCFunction
) _wrap_AnimationPlayer_UsingCustomBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4250 { (char *)"AnimationPlayer_GetCustomBackgroundColour", (PyCFunction
) _wrap_AnimationPlayer_GetCustomBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4251 { (char *)"AnimationPlayer_UseParentBackground", (PyCFunction
) _wrap_AnimationPlayer_UseParentBackground
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4252 { (char *)"AnimationPlayer_UsingParentBackground", (PyCFunction
) _wrap_AnimationPlayer_UsingParentBackground
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4253 { (char *)"AnimationPlayer_Play", (PyCFunction
) _wrap_AnimationPlayer_Play
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4254 { (char *)"AnimationPlayer_Build", (PyCFunction
) _wrap_AnimationPlayer_Build
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4255 { (char *)"AnimationPlayer_Stop", (PyCFunction
) _wrap_AnimationPlayer_Stop
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4256 { (char *)"AnimationPlayer_Draw", (PyCFunction
) _wrap_AnimationPlayer_Draw
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4257 { (char *)"AnimationPlayer_GetFrameCount", (PyCFunction
) _wrap_AnimationPlayer_GetFrameCount
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4258 { (char *)"AnimationPlayer_GetFrame", (PyCFunction
) _wrap_AnimationPlayer_GetFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4259 { (char *)"AnimationPlayer_GetDisposalMethod", (PyCFunction
) _wrap_AnimationPlayer_GetDisposalMethod
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4260 { (char *)"AnimationPlayer_GetFrameRect", (PyCFunction
) _wrap_AnimationPlayer_GetFrameRect
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4261 { (char *)"AnimationPlayer_GetDelay", (PyCFunction
) _wrap_AnimationPlayer_GetDelay
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4262 { (char *)"AnimationPlayer_GetLogicalScreenSize", (PyCFunction
) _wrap_AnimationPlayer_GetLogicalScreenSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4263 { (char *)"AnimationPlayer_GetBackgroundColour", (PyCFunction
) _wrap_AnimationPlayer_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4264 { (char *)"AnimationPlayer_GetTransparentColour", (PyCFunction
) _wrap_AnimationPlayer_GetTransparentColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4265 { (char *)"AnimationPlayer_PlayFrame", (PyCFunction
) _wrap_AnimationPlayer_PlayFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4266 { (char *)"AnimationPlayer_PlayNextFrame", (PyCFunction
) _wrap_AnimationPlayer_PlayNextFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4267 { (char *)"AnimationPlayer_DrawFrame", (PyCFunction
) _wrap_AnimationPlayer_DrawFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4268 { (char *)"AnimationPlayer_DrawBackground", (PyCFunction
) _wrap_AnimationPlayer_DrawBackground
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4269 { (char *)"AnimationPlayer_ClearCache", (PyCFunction
) _wrap_AnimationPlayer_ClearCache
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4270 { (char *)"AnimationPlayer_SaveBackground", (PyCFunction
) _wrap_AnimationPlayer_SaveBackground
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4271 { (char *)"AnimationPlayer_GetBackingStore", (PyCFunction
) _wrap_AnimationPlayer_GetBackingStore
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4272 { (char *)"AnimationPlayer_swigregister", AnimationPlayer_swigregister
, METH_VARARGS
, NULL
},
4273 { (char *)"delete_AnimationBase", (PyCFunction
) _wrap_delete_AnimationBase
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4274 { (char *)"AnimationBase_GetFrameCount", (PyCFunction
) _wrap_AnimationBase_GetFrameCount
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4275 { (char *)"AnimationBase_GetFrame", (PyCFunction
) _wrap_AnimationBase_GetFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4276 { (char *)"AnimationBase_GetDisposalMethod", (PyCFunction
) _wrap_AnimationBase_GetDisposalMethod
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4277 { (char *)"AnimationBase_GetFrameRect", (PyCFunction
) _wrap_AnimationBase_GetFrameRect
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4278 { (char *)"AnimationBase_GetDelay", (PyCFunction
) _wrap_AnimationBase_GetDelay
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4279 { (char *)"AnimationBase_GetLogicalScreenSize", (PyCFunction
) _wrap_AnimationBase_GetLogicalScreenSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4280 { (char *)"AnimationBase_GetBackgroundColour", (PyCFunction
) _wrap_AnimationBase_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4281 { (char *)"AnimationBase_GetTransparentColour", (PyCFunction
) _wrap_AnimationBase_GetTransparentColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4282 { (char *)"AnimationBase_IsValid", (PyCFunction
) _wrap_AnimationBase_IsValid
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4283 { (char *)"AnimationBase_LoadFile", (PyCFunction
) _wrap_AnimationBase_LoadFile
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4284 { (char *)"AnimationBase_swigregister", AnimationBase_swigregister
, METH_VARARGS
, NULL
},
4285 { (char *)"new_GIFAnimation", (PyCFunction
) _wrap_new_GIFAnimation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4286 { (char *)"delete_GIFAnimation", (PyCFunction
) _wrap_delete_GIFAnimation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4287 { (char *)"GIFAnimation_GetFrameCount", (PyCFunction
) _wrap_GIFAnimation_GetFrameCount
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4288 { (char *)"GIFAnimation_GetFrame", (PyCFunction
) _wrap_GIFAnimation_GetFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4289 { (char *)"GIFAnimation_GetDisposalMethod", (PyCFunction
) _wrap_GIFAnimation_GetDisposalMethod
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4290 { (char *)"GIFAnimation_GetFrameRect", (PyCFunction
) _wrap_GIFAnimation_GetFrameRect
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4291 { (char *)"GIFAnimation_GetDelay", (PyCFunction
) _wrap_GIFAnimation_GetDelay
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4292 { (char *)"GIFAnimation_GetLogicalScreenSize", (PyCFunction
) _wrap_GIFAnimation_GetLogicalScreenSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4293 { (char *)"GIFAnimation_GetBackgroundColour", (PyCFunction
) _wrap_GIFAnimation_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4294 { (char *)"GIFAnimation_GetTransparentColour", (PyCFunction
) _wrap_GIFAnimation_GetTransparentColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4295 { (char *)"GIFAnimation_IsValid", (PyCFunction
) _wrap_GIFAnimation_IsValid
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4296 { (char *)"GIFAnimation_LoadFile", (PyCFunction
) _wrap_GIFAnimation_LoadFile
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4297 { (char *)"GIFAnimation_swigregister", GIFAnimation_swigregister
, METH_VARARGS
, NULL
},
4298 { (char *)"new_GIFAnimationCtrl", (PyCFunction
) _wrap_new_GIFAnimationCtrl
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4299 { (char *)"new_PreGIFAnimationCtrl", (PyCFunction
) _wrap_new_PreGIFAnimationCtrl
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4300 { (char *)"GIFAnimationCtrl_Create", (PyCFunction
) _wrap_GIFAnimationCtrl_Create
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4301 { (char *)"GIFAnimationCtrl_LoadFile", (PyCFunction
) _wrap_GIFAnimationCtrl_LoadFile
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4302 { (char *)"GIFAnimationCtrl_Play", (PyCFunction
) _wrap_GIFAnimationCtrl_Play
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4303 { (char *)"GIFAnimationCtrl_Stop", (PyCFunction
) _wrap_GIFAnimationCtrl_Stop
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4304 { (char *)"GIFAnimationCtrl_FitToAnimation", (PyCFunction
) _wrap_GIFAnimationCtrl_FitToAnimation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4305 { (char *)"GIFAnimationCtrl_IsPlaying", (PyCFunction
) _wrap_GIFAnimationCtrl_IsPlaying
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4306 { (char *)"GIFAnimationCtrl_GetPlayer", (PyCFunction
) _wrap_GIFAnimationCtrl_GetPlayer
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4307 { (char *)"GIFAnimationCtrl_GetAnimation", (PyCFunction
) _wrap_GIFAnimationCtrl_GetAnimation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4308 { (char *)"GIFAnimationCtrl_GetFilename", (PyCFunction
) _wrap_GIFAnimationCtrl_GetFilename
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4309 { (char *)"GIFAnimationCtrl_SetFilename", (PyCFunction
) _wrap_GIFAnimationCtrl_SetFilename
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4310 { (char *)"GIFAnimationCtrl_swigregister", GIFAnimationCtrl_swigregister
, METH_VARARGS
, NULL
},
4311 { NULL
, NULL
, 0, NULL
}
4315 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
4317 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
4318 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
4320 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
4321 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
4323 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
4324 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
4326 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
4327 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
4329 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
4330 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
4332 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
4333 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
4335 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
4336 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
4338 static void *_p_wxSizerTo_p_wxObject(void *x
) {
4339 return (void *)((wxObject
*) ((wxSizer
*) x
));
4341 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
4342 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
4344 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
4345 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
4347 static void *_p_wxEventTo_p_wxObject(void *x
) {
4348 return (void *)((wxObject
*) ((wxEvent
*) x
));
4350 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
4351 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
4353 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
4354 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
4356 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
4357 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
4359 static void *_p_wxAnimationBaseTo_p_wxObject(void *x
) {
4360 return (void *)((wxObject
*) ((wxAnimationBase
*) x
));
4362 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
4363 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
4365 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
4366 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
4368 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
4369 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
4371 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
4372 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
4374 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
4375 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
4377 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
4378 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
4380 static void *_p_wxControlTo_p_wxObject(void *x
) {
4381 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
4383 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
4384 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
4386 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
4387 return (void *)((wxObject
*) ((wxFSFile
*) x
));
4389 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
4390 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
4392 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
4393 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
4395 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
4396 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
4398 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
4399 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
4401 static void *_p_wxAnimationPlayerTo_p_wxObject(void *x
) {
4402 return (void *)((wxObject
*) ((wxAnimationPlayer
*) x
));
4404 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
4405 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
4407 static void *_p_wxDateEventTo_p_wxObject(void *x
) {
4408 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxDateEvent
*) x
));
4410 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
4411 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
4413 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
4414 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
4416 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
4417 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
4419 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
4420 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
4422 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
4423 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
4425 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
4426 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
4428 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
4429 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
4431 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
4432 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
4434 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
4435 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
4437 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
4438 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
4440 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
4441 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
4443 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
4444 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
4446 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
4447 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
4449 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
4450 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
4452 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
4453 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
4455 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
4456 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
4458 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
4459 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
4461 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x
) {
4462 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPyImageHandler
*) x
));
4464 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
4465 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
4467 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
4468 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
4470 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
4471 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
4473 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
4474 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
4476 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x
) {
4477 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStdDialogButtonSizer
*) x
));
4479 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
4480 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
4482 static void *_p_wxImageTo_p_wxObject(void *x
) {
4483 return (void *)((wxObject
*) ((wxImage
*) x
));
4485 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
4486 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
4488 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
4489 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
4491 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
4492 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
4494 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
4495 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
4497 static void *_p_wxWindowTo_p_wxObject(void *x
) {
4498 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
4500 static void *_p_wxMenuTo_p_wxObject(void *x
) {
4501 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
4503 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
4504 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
4506 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
4507 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
4509 static void *_p_wxGIFAnimationTo_p_wxObject(void *x
) {
4510 return (void *)((wxObject
*) (wxAnimationBase
*) ((wxGIFAnimation
*) x
));
4512 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
4513 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
4515 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
4516 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
4518 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
4519 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
4521 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
4522 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
4524 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
4525 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
4527 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
4528 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
4530 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
4531 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
4533 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
4534 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
4536 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
4537 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
4539 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
4540 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
4542 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
4543 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
4545 static void *_p_wxGIFAnimationCtrlTo_p_wxObject(void *x
) {
4546 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxGIFAnimationCtrl
*) x
));
4548 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
4549 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
4551 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
4552 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
4554 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
4555 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
4557 static void *_p_wxControlTo_p_wxWindow(void *x
) {
4558 return (void *)((wxWindow
*) ((wxControl
*) x
));
4560 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
4561 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
4563 static void *_p_wxGIFAnimationCtrlTo_p_wxWindow(void *x
) {
4564 return (void *)((wxWindow
*) (wxControl
*) ((wxGIFAnimationCtrl
*) x
));
4566 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
4567 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
4569 static void *_p_wxGIFAnimationTo_p_wxAnimationBase(void *x
) {
4570 return (void *)((wxAnimationBase
*) ((wxGIFAnimation
*) x
));
4572 static void *_p_wxControlTo_p_wxEvtHandler(void *x
) {
4573 return (void *)((wxEvtHandler
*) (wxWindow
*) ((wxControl
*) x
));
4575 static void *_p_wxWindowTo_p_wxEvtHandler(void *x
) {
4576 return (void *)((wxEvtHandler
*) ((wxWindow
*) x
));
4578 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x
) {
4579 return (void *)((wxEvtHandler
*) (wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
4581 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x
) {
4582 return (void *)((wxEvtHandler
*) ((wxPyApp
*) x
));
4584 static void *_p_wxGIFAnimationCtrlTo_p_wxEvtHandler(void *x
) {
4585 return (void *)((wxEvtHandler
*) (wxWindow
*)(wxControl
*) ((wxGIFAnimationCtrl
*) x
));
4587 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x
) {
4588 return (void *)((wxEvtHandler
*) ((wxValidator
*) x
));
4590 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x
) {
4591 return (void *)((wxEvtHandler
*) (wxValidator
*) ((wxPyValidator
*) x
));
4593 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x
) {
4594 return (void *)((wxEvtHandler
*) (wxWindow
*) ((wxMenuBar
*) x
));
4596 static void *_p_wxMenuTo_p_wxEvtHandler(void *x
) {
4597 return (void *)((wxEvtHandler
*) ((wxMenu
*) x
));
4599 static void *_p_wxControlWithItemsTo_p_wxControl(void *x
) {
4600 return (void *)((wxControl
*) ((wxControlWithItems
*) x
));
4602 static void *_p_wxGIFAnimationCtrlTo_p_wxControl(void *x
) {
4603 return (void *)((wxControl
*) ((wxGIFAnimationCtrl
*) x
));
4605 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}};
4606 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}};
4607 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_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_wxPyImageHandler", _p_wxPyImageHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_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_wxEraseEvent", _p_wxEraseEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_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}};
4608 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}};
4609 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}};
4610 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}};
4611 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}};
4612 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}};
4613 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}};
4614 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}};
4615 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}};
4616 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}};
4617 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}};
4618 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}};
4619 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}};
4620 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}};
4621 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}};
4622 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}};
4623 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}};
4624 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}};
4625 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}};
4626 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}};
4627 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}};
4628 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}};
4629 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}};
4631 static swig_type_info
*swig_types_initial
[] = {
4633 _swigt__p_wxGIFAnimationCtrl
,
4635 _swigt__p_unsigned_char
,
4637 _swigt__p_wxAnimationPlayer
,
4639 _swigt__p_unsigned_long
,
4641 _swigt__p_form_ops_t
,
4642 _swigt__p_unsigned_int
,
4643 _swigt__unsigned_int
,
4644 _swigt__p_wxDuplexMode
,
4645 _swigt__p_wxGIFAnimation
,
4647 _swigt__p_wxAnimationBase
,
4650 _swigt__p_wxEvtHandler
,
4651 _swigt__std__ptrdiff_t
,
4653 _swigt__p_wxControl
,
4654 _swigt__p_wxPaperSize
,
4661 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
4663 static swig_const_info swig_const_table
[] = {
4664 {0, 0, 0, 0.0, 0, 0}};
4675 /* Python-specific SWIG API */
4676 #define SWIG_newvarlink() SWIG_Python_newvarlink()
4677 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
4678 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
4680 /* -----------------------------------------------------------------------------
4681 * global variable support code.
4682 * ----------------------------------------------------------------------------- */
4684 typedef struct swig_globalvar
{
4685 char *name
; /* Name of global variable */
4686 PyObject
*(*get_attr
)(); /* Return the current value */
4687 int (*set_attr
)(PyObject
*); /* Set the value */
4688 struct swig_globalvar
*next
;
4691 typedef struct swig_varlinkobject
{
4693 swig_globalvar
*vars
;
4694 } swig_varlinkobject
;
4697 swig_varlink_repr(swig_varlinkobject
*v
) {
4699 return PyString_FromString("<Swig global variables>");
4703 swig_varlink_print(swig_varlinkobject
*v
, FILE *fp
, int flags
) {
4704 swig_globalvar
*var
;
4706 fprintf(fp
,"Swig global variables { ");
4707 for (var
= v
->vars
; var
; var
=var
->next
) {
4708 fprintf(fp
,"%s", var
->name
);
4709 if (var
->next
) fprintf(fp
,", ");
4716 swig_varlink_getattr(swig_varlinkobject
*v
, char *n
) {
4717 swig_globalvar
*var
= v
->vars
;
4719 if (strcmp(var
->name
,n
) == 0) {
4720 return (*var
->get_attr
)();
4724 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
4729 swig_varlink_setattr(swig_varlinkobject
*v
, char *n
, PyObject
*p
) {
4730 swig_globalvar
*var
= v
->vars
;
4732 if (strcmp(var
->name
,n
) == 0) {
4733 return (*var
->set_attr
)(p
);
4737 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
4741 static PyTypeObject varlinktype
= {
4742 PyObject_HEAD_INIT(0)
4743 0, /* Number of items in variable part (ob_size) */
4744 (char *)"swigvarlink", /* Type name (tp_name) */
4745 sizeof(swig_varlinkobject
), /* Basic size (tp_basicsize) */
4746 0, /* Itemsize (tp_itemsize) */
4747 0, /* Deallocator (tp_dealloc) */
4748 (printfunc
) swig_varlink_print
, /* Print (tp_print) */
4749 (getattrfunc
) swig_varlink_getattr
, /* get attr (tp_getattr) */
4750 (setattrfunc
) swig_varlink_setattr
, /* Set attr (tp_setattr) */
4752 (reprfunc
) swig_varlink_repr
, /* tp_repr */
4753 0, /* tp_as_number */
4754 0, /* tp_as_sequence */
4755 0, /* tp_as_mapping */
4759 0, /* tp_getattro */
4760 0, /* tp_setattro */
4761 0, /* tp_as_buffer */
4764 #if PY_VERSION_HEX >= 0x02000000
4765 0, /* tp_traverse */
4768 #if PY_VERSION_HEX >= 0x02010000
4769 0, /* tp_richcompare */
4770 0, /* tp_weaklistoffset */
4772 #if PY_VERSION_HEX >= 0x02020000
4773 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
4775 #if PY_VERSION_HEX >= 0x02030000
4779 0,0,0,0 /* tp_alloc -> tp_next */
4783 /* Create a variable linking object for use later */
4785 SWIG_Python_newvarlink(void) {
4786 swig_varlinkobject
*result
= 0;
4787 result
= PyMem_NEW(swig_varlinkobject
,1);
4788 varlinktype
.ob_type
= &PyType_Type
; /* Patch varlinktype into a PyType */
4789 result
->ob_type
= &varlinktype
;
4791 result
->ob_refcnt
= 0;
4792 Py_XINCREF((PyObject
*) result
);
4793 return ((PyObject
*) result
);
4797 SWIG_Python_addvarlink(PyObject
*p
, char *name
, PyObject
*(*get_attr
)(void), int (*set_attr
)(PyObject
*p
)) {
4798 swig_varlinkobject
*v
;
4800 v
= (swig_varlinkobject
*) p
;
4801 gv
= (swig_globalvar
*) malloc(sizeof(swig_globalvar
));
4802 gv
->name
= (char *) malloc(strlen(name
)+1);
4803 strcpy(gv
->name
,name
);
4804 gv
->get_attr
= get_attr
;
4805 gv
->set_attr
= set_attr
;
4810 /* -----------------------------------------------------------------------------
4811 * constants/methods manipulation
4812 * ----------------------------------------------------------------------------- */
4814 /* Install Constants */
4816 SWIG_Python_InstallConstants(PyObject
*d
, swig_const_info constants
[]) {
4819 for (i
= 0; constants
[i
].type
; i
++) {
4820 switch(constants
[i
].type
) {
4822 obj
= PyInt_FromLong(constants
[i
].lvalue
);
4825 obj
= PyFloat_FromDouble(constants
[i
].dvalue
);
4827 case SWIG_PY_STRING
:
4828 if (constants
[i
].pvalue
) {
4829 obj
= PyString_FromString((char *) constants
[i
].pvalue
);
4835 case SWIG_PY_POINTER
:
4836 obj
= SWIG_NewPointerObj(constants
[i
].pvalue
, *(constants
[i
]).ptype
,0);
4838 case SWIG_PY_BINARY
:
4839 obj
= SWIG_NewPackedObj(constants
[i
].pvalue
, constants
[i
].lvalue
, *(constants
[i
].ptype
));
4846 PyDict_SetItemString(d
,constants
[i
].name
,obj
);
4852 /* -----------------------------------------------------------------------------*/
4853 /* Fix SwigMethods to carry the callback ptrs when needed */
4854 /* -----------------------------------------------------------------------------*/
4857 SWIG_Python_FixMethods(PyMethodDef
*methods
,
4858 swig_const_info
*const_table
,
4859 swig_type_info
**types
,
4860 swig_type_info
**types_initial
) {
4862 for (i
= 0; methods
[i
].ml_name
; ++i
) {
4863 char *c
= methods
[i
].ml_doc
;
4864 if (c
&& (c
= strstr(c
, "swig_ptr: "))) {
4866 swig_const_info
*ci
= 0;
4867 char *name
= c
+ 10;
4868 for (j
= 0; const_table
[j
].type
; j
++) {
4869 if (strncmp(const_table
[j
].name
, name
,
4870 strlen(const_table
[j
].name
)) == 0) {
4871 ci
= &(const_table
[j
]);
4876 size_t shift
= (ci
->ptype
) - types
;
4877 swig_type_info
*ty
= types_initial
[shift
];
4878 size_t ldoc
= (c
- methods
[i
].ml_doc
);
4879 size_t lptr
= strlen(ty
->name
)+2*sizeof(void*)+2;
4880 char *ndoc
= (char*)malloc(ldoc
+ lptr
+ 10);
4882 void *ptr
= (ci
->type
== SWIG_PY_POINTER
) ? ci
->pvalue
: (void *)(ci
->lvalue
);
4883 strncpy(buff
, methods
[i
].ml_doc
, ldoc
);
4885 strncpy(buff
, "swig_ptr: ", 10);
4887 SWIG_PackVoidPtr(buff
, ptr
, ty
->name
, lptr
);
4888 methods
[i
].ml_doc
= ndoc
;
4894 /* -----------------------------------------------------------------------------*
4895 * Initialize type list
4896 * -----------------------------------------------------------------------------*/
4898 #if PY_MAJOR_VERSION < 2
4899 /* PyModule_AddObject function was introduced in Python 2.0. The following function
4900 is copied out of Python/modsupport.c in python version 2.3.4 */
4902 PyModule_AddObject(PyObject
*m
, char *name
, PyObject
*o
)
4905 if (!PyModule_Check(m
)) {
4906 PyErr_SetString(PyExc_TypeError
,
4907 "PyModule_AddObject() needs module as first arg");
4911 PyErr_SetString(PyExc_TypeError
,
4912 "PyModule_AddObject() needs non-NULL value");
4916 dict
= PyModule_GetDict(m
);
4918 /* Internal error -- modules must have a dict! */
4919 PyErr_Format(PyExc_SystemError
, "module '%s' has no __dict__",
4920 PyModule_GetName(m
));
4923 if (PyDict_SetItemString(dict
, name
, o
))
4930 static swig_type_info
**
4931 SWIG_Python_SetTypeListHandle(swig_type_info
**type_list_handle
) {
4932 static PyMethodDef swig_empty_runtime_method_table
[] = {
4938 PyObject
*module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
,
4939 swig_empty_runtime_method_table
);
4940 PyObject
*pointer
= PyCObject_FromVoidPtr((void *) type_list_handle
, NULL
);
4941 if (pointer
&& module) {
4942 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
, pointer
);
4944 return type_list_handle
;
4947 static swig_type_info
**
4948 SWIG_Python_LookupTypePointer(swig_type_info
**type_list_handle
) {
4949 swig_type_info
**type_pointer
;
4951 /* first check if module already created */
4952 type_pointer
= SWIG_Python_GetTypeListHandle();
4954 return type_pointer
;
4956 /* create a new module and variable */
4957 return SWIG_Python_SetTypeListHandle(type_list_handle
);
4965 /* -----------------------------------------------------------------------------*
4966 * Partial Init method
4967 * -----------------------------------------------------------------------------*/
4969 #ifdef SWIG_LINK_RUNTIME
4973 SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *);
4979 SWIGEXPORT(void) SWIG_init(void) {
4980 static PyObject
*SWIG_globals
= 0;
4981 static int typeinit
= 0;
4984 if (!SWIG_globals
) SWIG_globals
= SWIG_newvarlink();
4986 /* Fix SwigMethods to carry the callback ptrs when needed */
4987 SWIG_Python_FixMethods(SwigMethods
, swig_const_table
, swig_types
, swig_types_initial
);
4989 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
4990 d
= PyModule_GetDict(m
);
4993 #ifdef SWIG_LINK_RUNTIME
4994 swig_type_list_handle
= (swig_type_info
**) SWIG_ReturnGlobalTypeList(swig_type_list_handle
);
4996 # ifndef SWIG_STATIC_RUNTIME
4997 swig_type_list_handle
= SWIG_Python_LookupTypePointer(swig_type_list_handle
);
5000 for (i
= 0; swig_types_initial
[i
]; i
++) {
5001 swig_types
[i
] = SWIG_TypeRegister(swig_types_initial
[i
]);
5005 SWIG_InstallConstants(d
,swig_const_table
);
5007 PyDict_SetItemString(d
,(char*)"cvar", SWIG_globals
);
5008 SWIG_addvarlink(SWIG_globals
,(char*)"AnimationControlNameStr",_wrap_AnimationControlNameStr_get
, _wrap_AnimationControlNameStr_set
);
5010 PyDict_SetItemString(d
,"ANIM_UNSPECIFIED", SWIG_From_int((int)(wxANIM_UNSPECIFIED
)));
5013 PyDict_SetItemString(d
,"ANIM_DONOTREMOVE", SWIG_From_int((int)(wxANIM_DONOTREMOVE
)));
5016 PyDict_SetItemString(d
,"ANIM_TOBACKGROUND", SWIG_From_int((int)(wxANIM_TOBACKGROUND
)));
5019 PyDict_SetItemString(d
,"ANIM_TOPREVIOUS", SWIG_From_int((int)(wxANIM_TOPREVIOUS
)));
5022 PyDict_SetItemString(d
,"AN_FIT_ANIMATION", SWIG_From_int((int)(wxAN_FIT_ANIMATION
)));