1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
14 template<class T
> class SwigValueWrapper
{
17 SwigValueWrapper() : tt(0) { }
18 SwigValueWrapper(const SwigValueWrapper
<T
>& rhs
) : tt(new T(*rhs
.tt
)) { }
19 SwigValueWrapper(const T
& t
) : tt(new T(t
)) { }
20 ~SwigValueWrapper() { delete tt
; }
21 SwigValueWrapper
& operator=(const T
& t
) { delete tt
; tt
= new T(t
); return *this; }
22 operator T
&() const { return *tt
; }
23 T
*operator&() { return tt
; }
25 SwigValueWrapper
& operator=(const SwigValueWrapper
<T
>& rhs
);
30 #ifndef SWIG_TEMPLATE_DISAMBIGUATOR
31 # if defined(__SUNPRO_CC)
32 # define SWIG_TEMPLATE_DISAMBIGUATOR template
34 # define SWIG_TEMPLATE_DISAMBIGUATOR
41 /***********************************************************************
44 * This file contains generic CAPI SWIG runtime support for pointer
47 ************************************************************************/
49 /* This should only be incremented when either the layout of swig_type_info changes,
50 or for whatever reason, the runtime changes incompatibly */
51 #define SWIG_RUNTIME_VERSION "1"
53 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
54 #ifdef SWIG_TYPE_TABLE
55 #define SWIG_QUOTE_STRING(x) #x
56 #define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
57 #define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
59 #define SWIG_TYPE_TABLE_NAME
65 #if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
66 # define SWIGINLINE inline
73 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
74 creating a static or dynamic library from the swig runtime code.
75 In 99.9% of the cases, swig just needs to declare them as 'static'.
77 But only do this if is strictly necessary, ie, if you have problems
78 with your compiler or so.
81 #define SWIGRUNTIME static
83 #ifndef SWIGRUNTIMEINLINE
84 #define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
91 typedef void *(*swig_converter_func
)(void *);
92 typedef struct swig_type_info
*(*swig_dycast_func
)(void **);
94 typedef struct swig_type_info
{
96 swig_converter_func converter
;
99 swig_dycast_func dcast
;
100 struct swig_type_info
*next
;
101 struct swig_type_info
*prev
;
105 Compare two type names skipping the space characters, therefore
106 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
108 Return 0 when the two name types are equivalent, as in
109 strncmp, but skipping ' '.
112 SWIG_TypeNameComp(const char *f1
, const char *l1
,
113 const char *f2
, const char *l2
) {
114 for (;(f1
!= l1
) && (f2
!= l2
); ++f1
, ++f2
) {
115 while ((*f1
== ' ') && (f1
!= l1
)) ++f1
;
116 while ((*f2
== ' ') && (f2
!= l2
)) ++f2
;
117 if (*f1
!= *f2
) return *f1
- *f2
;
119 return (l1
- f1
) - (l2
- f2
);
123 Check type equivalence in a name list like <name1>|<name2>|...
126 SWIG_TypeEquiv(const char *nb
, const char *tb
) {
128 const char* te
= tb
+ strlen(tb
);
130 while (!equiv
&& *ne
) {
131 for (nb
= ne
; *ne
; ++ne
) {
132 if (*ne
== '|') break;
134 equiv
= SWIG_TypeNameComp(nb
, ne
, tb
, te
) == 0;
141 Register a type mapping with the type-checking
143 SWIGRUNTIME swig_type_info
*
144 SWIG_TypeRegisterTL(swig_type_info
**tl
, swig_type_info
*ti
) {
145 swig_type_info
*tc
, *head
, *ret
, *next
;
146 /* Check to see if this type has already been registered */
149 /* check simple type equivalence */
150 int typeequiv
= (strcmp(tc
->name
, ti
->name
) == 0);
151 /* check full type equivalence, resolving typedefs */
153 /* only if tc is not a typedef (no '|' on it) */
154 if (tc
->str
&& ti
->str
&& !strstr(tc
->str
,"|")) {
155 typeequiv
= SWIG_TypeEquiv(ti
->str
,tc
->str
);
159 /* Already exists in the table. Just add additional types to the list */
160 if (ti
->clientdata
) tc
->clientdata
= ti
->clientdata
;
174 /* Build linked lists */
178 /* Patch up the rest of the links */
185 if (next
) next
->prev
= head
;
194 SWIGRUNTIME swig_type_info
*
195 SWIG_TypeCheck(const char *c
, swig_type_info
*ty
) {
197 if (!ty
) return 0; /* Void pointer */
198 s
= ty
->next
; /* First element always just a name */
200 if (strcmp(s
->name
,c
) == 0) {
201 if (s
== ty
->next
) return s
;
202 /* Move s to the top of the linked list */
203 s
->prev
->next
= s
->next
;
205 s
->next
->prev
= s
->prev
;
207 /* Insert s as second element in the list */
209 if (ty
->next
) ty
->next
->prev
= s
;
215 } while (s
&& (s
!= ty
->next
));
220 Cast a pointer up an inheritance hierarchy
222 SWIGRUNTIMEINLINE
void *
223 SWIG_TypeCast(swig_type_info
*ty
, void *ptr
) {
224 return ((!ty
) || (!ty
->converter
)) ? ptr
: (*ty
->converter
)(ptr
);
228 Dynamic pointer casting. Down an inheritance hierarchy
230 SWIGRUNTIME swig_type_info
*
231 SWIG_TypeDynamicCast(swig_type_info
*ty
, void **ptr
) {
232 swig_type_info
*lastty
= ty
;
233 if (!ty
|| !ty
->dcast
) return ty
;
234 while (ty
&& (ty
->dcast
)) {
235 ty
= (*ty
->dcast
)(ptr
);
242 Return the name associated with this type
244 SWIGRUNTIMEINLINE
const char *
245 SWIG_TypeName(const swig_type_info
*ty
) {
250 Return the pretty name associated with this type,
251 that is an unmangled type name in a form presentable to the user.
253 SWIGRUNTIME
const char *
254 SWIG_TypePrettyName(const swig_type_info
*type
) {
255 /* The "str" field contains the equivalent pretty names of the
256 type, separated by vertical-bar characters. We choose
257 to print the last name, as it is often (?) the most
259 if (type
->str
!= NULL
) {
260 const char *last_name
= type
->str
;
262 for (s
= type
->str
; *s
; s
++)
263 if (*s
== '|') last_name
= s
+1;
271 Search for a swig_type_info structure
273 SWIGRUNTIME swig_type_info
*
274 SWIG_TypeQueryTL(swig_type_info
*tl
, const char *name
) {
275 swig_type_info
*ty
= tl
;
277 if (ty
->str
&& (SWIG_TypeEquiv(ty
->str
,name
))) return ty
;
278 if (ty
->name
&& (strcmp(name
,ty
->name
) == 0)) return ty
;
285 Set the clientdata field for a type
288 SWIG_TypeClientDataTL(swig_type_info
*tl
, swig_type_info
*ti
, void *clientdata
) {
289 swig_type_info
*tc
, *equiv
;
290 if (ti
->clientdata
) return;
291 /* if (ti->clientdata == clientdata) return; */
292 ti
->clientdata
= clientdata
;
295 if (!equiv
->converter
) {
298 if ((strcmp(tc
->name
, equiv
->name
) == 0))
299 SWIG_TypeClientDataTL(tl
,tc
,clientdata
);
308 Pack binary data into a string
311 SWIG_PackData(char *c
, void *ptr
, size_t sz
) {
312 static char hex
[17] = "0123456789abcdef";
313 unsigned char *u
= (unsigned char *) ptr
;
314 const unsigned char *eu
= u
+ sz
;
315 register unsigned char uu
;
316 for (; u
!= eu
; ++u
) {
318 *(c
++) = hex
[(uu
& 0xf0) >> 4];
319 *(c
++) = hex
[uu
& 0xf];
325 Unpack binary data from a string
327 SWIGRUNTIME
const char *
328 SWIG_UnpackData(const char *c
, void *ptr
, size_t sz
) {
329 register unsigned char *u
= (unsigned char *) ptr
;
330 register const unsigned char *eu
= u
+ sz
;
331 for (; u
!= eu
; ++u
) {
332 register int d
= *(c
++);
333 register unsigned char uu
= 0;
334 if ((d
>= '0') && (d
<= '9'))
335 uu
= ((d
- '0') << 4);
336 else if ((d
>= 'a') && (d
<= 'f'))
337 uu
= ((d
- ('a'-10)) << 4);
341 if ((d
>= '0') && (d
<= '9'))
343 else if ((d
>= 'a') && (d
<= 'f'))
344 uu
|= (d
- ('a'-10));
353 This function will propagate the clientdata field of type to any new
354 swig_type_info structures that have been added into the list of
355 equivalent types. It is like calling SWIG_TypeClientData(type,
356 clientdata) a second time.
359 SWIG_PropagateClientDataTL(swig_type_info
*tl
, swig_type_info
*type
) {
360 swig_type_info
*equiv
= type
->next
;
362 if (!type
->clientdata
) return;
364 if (!equiv
->converter
) {
367 if ((strcmp(tc
->name
, equiv
->name
) == 0) && !tc
->clientdata
)
368 SWIG_TypeClientDataTL(tl
,tc
, type
->clientdata
);
377 Pack 'void *' into a string buffer.
380 SWIG_PackVoidPtr(char *buff
, void *ptr
, const char *name
, size_t bsz
) {
382 if ((2*sizeof(void *) + 2) > bsz
) return 0;
384 r
= SWIG_PackData(r
,&ptr
,sizeof(void *));
385 if (strlen(name
) + 1 > (bsz
- (r
- buff
))) return 0;
390 SWIGRUNTIME
const char *
391 SWIG_UnpackVoidPtr(const char *c
, void **ptr
, const char *name
) {
393 if (strcmp(c
,"NULL") == 0) {
400 return SWIG_UnpackData(++c
,ptr
,sizeof(void *));
404 SWIG_PackDataName(char *buff
, void *ptr
, size_t sz
, const char *name
, size_t bsz
) {
406 size_t lname
= (name
? strlen(name
) : 0);
407 if ((2*sz
+ 2 + lname
) > bsz
) return 0;
409 r
= SWIG_PackData(r
,ptr
,sz
);
411 strncpy(r
,name
,lname
+1);
418 SWIGRUNTIME
const char *
419 SWIG_UnpackDataName(const char *c
, void *ptr
, size_t sz
, const char *name
) {
421 if (strcmp(c
,"NULL") == 0) {
428 return SWIG_UnpackData(++c
,ptr
,sz
);
435 /***********************************************************************
438 * This file contains generic SWIG runtime support for pointer
439 * type checking as well as a few commonly used macros to control
442 * Author : David Beazley (beazley@cs.uchicago.edu)
444 * Copyright (c) 1999-2000, The University of Chicago
446 * This file may be freely redistributed without license or fee provided
447 * this copyright message remains intact.
448 ************************************************************************/
451 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
452 # if !defined(STATIC_LINKED)
453 # define SWIGEXPORT(a) __declspec(dllexport) a
455 # define SWIGEXPORT(a) a
458 # define SWIGEXPORT(a) a
466 /*************************************************************************/
469 /* The static type info list */
471 static swig_type_info
*swig_type_list
= 0;
472 static swig_type_info
**swig_type_list_handle
= &swig_type_list
;
475 /* Register a type mapping with the type-checking */
476 static swig_type_info
*
477 SWIG_TypeRegister(swig_type_info
*ti
) {
478 return SWIG_TypeRegisterTL(swig_type_list_handle
, ti
);
481 /* Search for a swig_type_info structure */
482 static swig_type_info
*
483 SWIG_TypeQuery(const char *name
) {
484 return SWIG_TypeQueryTL(*swig_type_list_handle
, name
);
487 /* Set the clientdata field for a type */
489 SWIG_TypeClientData(swig_type_info
*ti
, void *clientdata
) {
490 SWIG_TypeClientDataTL(*swig_type_list_handle
, ti
, clientdata
);
493 /* This function will propagate the clientdata field of type to
494 * any new swig_type_info structures that have been added into the list
495 * of equivalent types. It is like calling
496 * SWIG_TypeClientData(type, clientdata) a second time.
499 SWIG_PropagateClientData(swig_type_info
*type
) {
500 SWIG_PropagateClientDataTL(*swig_type_list_handle
, type
);
507 /* -----------------------------------------------------------------------------
508 * SWIG API. Portion that goes into the runtime
509 * ----------------------------------------------------------------------------- */
515 /* -----------------------------------------------------------------------------
516 * for internal method declarations
517 * ----------------------------------------------------------------------------- */
520 #define SWIGINTERN static
523 #ifndef SWIGINTERNSHORT
525 #define SWIGINTERNSHORT static inline
527 #define SWIGINTERNSHORT static
528 #endif /* __cplusplus */
533 Exception handling in wrappers
535 #define SWIG_fail goto fail
536 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
537 #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0)
538 #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1)
539 #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj)
540 #define SWIG_null_ref(type) SWIG_Python_NullRef(type)
545 #define SWIG_contract_assert(expr, msg) \
546 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
548 /* -----------------------------------------------------------------------------
549 * Constant declarations
550 * ----------------------------------------------------------------------------- */
553 #define SWIG_PY_INT 1
554 #define SWIG_PY_FLOAT 2
555 #define SWIG_PY_STRING 3
556 #define SWIG_PY_POINTER 4
557 #define SWIG_PY_BINARY 5
559 /* Constant information structure */
560 typedef struct swig_const_info
{
566 swig_type_info
**ptype
;
570 /* -----------------------------------------------------------------------------
571 * Alloc. memory flags
572 * ----------------------------------------------------------------------------- */
573 #define SWIG_OLDOBJ 1
574 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
575 #define SWIG_PYSTR SWIG_NEWOBJ + 1
582 /***********************************************************************
585 * This file contains the runtime support for Python modules
586 * and includes code for managing global variables and pointer
589 * Author : David Beazley (beazley@cs.uchicago.edu)
590 ************************************************************************/
592 /* Common SWIG API */
593 #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags)
594 #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags)
595 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
598 /* Python-specific SWIG API */
599 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
600 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
603 /* -----------------------------------------------------------------------------
604 * Pointer declarations
605 * ----------------------------------------------------------------------------- */
607 Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent
608 C/C++ pointers in the python side. Very useful for debugging, but
611 #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
612 # define SWIG_COBJECT_TYPES
615 /* Flags for pointer conversion */
616 #define SWIG_POINTER_EXCEPTION 0x1
617 #define SWIG_POINTER_DISOWN 0x2
624 /* -----------------------------------------------------------------------------
625 * Create a new pointer string
626 * ----------------------------------------------------------------------------- */
628 #ifndef SWIG_BUFFER_SIZE
629 #define SWIG_BUFFER_SIZE 1024
632 #if defined(SWIG_COBJECT_TYPES)
633 #if !defined(SWIG_COBJECT_PYTHON)
634 /* -----------------------------------------------------------------------------
635 * Implements a simple Swig Object type, and use it instead of PyCObject
636 * ----------------------------------------------------------------------------- */
644 /* Declarations for objects of type PySwigObject */
647 PySwigObject_print(PySwigObject
*v
, FILE *fp
, int flags
)
649 char result
[SWIG_BUFFER_SIZE
];
650 if (SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
))) {
651 fputs("<Swig Object at ", fp
); fputs(result
, fp
); fputs(">", fp
);
658 SWIGRUNTIME PyObject
*
659 PySwigObject_repr(PySwigObject
*v
)
661 char result
[SWIG_BUFFER_SIZE
];
662 return SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
)) ?
663 PyString_FromFormat("<Swig Object at %s>", result
) : 0;
666 SWIGRUNTIME PyObject
*
667 PySwigObject_str(PySwigObject
*v
)
669 char result
[SWIG_BUFFER_SIZE
];
670 return SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
)) ?
671 PyString_FromString(result
) : 0;
674 SWIGRUNTIME PyObject
*
675 PySwigObject_long(PySwigObject
*v
)
677 return PyLong_FromUnsignedLong((unsigned long) v
->ptr
);
680 SWIGRUNTIME PyObject
*
681 PySwigObject_oct(PySwigObject
*v
)
684 unsigned long x
= (unsigned long)v
->ptr
;
688 PyOS_snprintf(buf
, sizeof(buf
), "0%lo", x
);
689 return PyString_FromString(buf
);
692 SWIGRUNTIME PyObject
*
693 PySwigObject_hex(PySwigObject
*v
)
696 PyOS_snprintf(buf
, sizeof(buf
), "0x%lx", (unsigned long)v
->ptr
);
697 return PyString_FromString(buf
);
701 PySwigObject_compare(PySwigObject
*v
, PySwigObject
*w
)
703 int c
= strcmp(v
->desc
, w
->desc
);
709 return (i
< j
) ? -1 : (i
> j
) ? 1 : 0;
714 PySwigObject_dealloc(PySwigObject
*self
)
719 SWIGRUNTIME PyTypeObject
*
720 PySwigObject_GetType() {
721 static char PySwigObject_Type__doc__
[] =
722 "Swig object carries a C/C++ instance pointer";
724 static PyNumberMethods PySwigObject_as_number
= {
725 (binaryfunc
)0, /*nb_add*/
726 (binaryfunc
)0, /*nb_subtract*/
727 (binaryfunc
)0, /*nb_multiply*/
728 (binaryfunc
)0, /*nb_divide*/
729 (binaryfunc
)0, /*nb_remainder*/
730 (binaryfunc
)0, /*nb_divmod*/
731 (ternaryfunc
)0,/*nb_power*/
732 (unaryfunc
)0, /*nb_negative*/
733 (unaryfunc
)0, /*nb_positive*/
734 (unaryfunc
)0, /*nb_absolute*/
735 (inquiry
)0, /*nb_nonzero*/
742 (coercion
)0, /*nb_coerce*/
743 (unaryfunc
)PySwigObject_long
, /*nb_int*/
744 (unaryfunc
)PySwigObject_long
, /*nb_long*/
745 (unaryfunc
)0, /*nb_float*/
746 (unaryfunc
)PySwigObject_oct
, /*nb_oct*/
747 (unaryfunc
)PySwigObject_hex
, /*nb_hex*/
748 #if PY_VERSION_HEX >= 0x02000000
749 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
753 static int type_init
= 0;
754 static PyTypeObject PySwigObject_Type
;
758 PyObject_HEAD_INIT(&PyType_Type
)
760 "PySwigObject", /*tp_name*/
761 sizeof(PySwigObject
), /*tp_basicsize*/
764 (destructor
)PySwigObject_dealloc
, /*tp_dealloc*/
765 (printfunc
)PySwigObject_print
, /*tp_print*/
766 (getattrfunc
)0, /*tp_getattr*/
767 (setattrfunc
)0, /*tp_setattr*/
768 (cmpfunc
)PySwigObject_compare
, /*tp_compare*/
769 (reprfunc
)PySwigObject_repr
, /*tp_repr*/
770 &PySwigObject_as_number
, /*tp_as_number*/
771 0, /*tp_as_sequence*/
773 (hashfunc
)0, /*tp_hash*/
774 (ternaryfunc
)0, /*tp_call*/
775 (reprfunc
)PySwigObject_str
, /*tp_str*/
776 /* Space for future expansion */
778 PySwigObject_Type__doc__
, /* Documentation string */
779 #if PY_VERSION_HEX >= 0x02000000
783 #if PY_VERSION_HEX >= 0x02010000
784 0, /* tp_richcompare */
785 0, /* tp_weaklistoffset */
787 #if PY_VERSION_HEX >= 0x02020000
788 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
790 #if PY_VERSION_HEX >= 0x02030000
794 0,0,0,0 /* tp_alloc -> tp_next */
798 PySwigObject_Type
= tmp
;
802 return &PySwigObject_Type
;
805 SWIGRUNTIME PyObject
*
806 PySwigObject_FromVoidPtrAndDesc(void *ptr
, const char *desc
)
808 PySwigObject
*self
= PyObject_NEW(PySwigObject
, PySwigObject_GetType());
809 if (self
== NULL
) return NULL
;
812 return (PyObject
*)self
;
815 SWIGRUNTIMEINLINE
void *
816 PySwigObject_AsVoidPtr(PyObject
*self
)
818 return ((PySwigObject
*)self
)->ptr
;
821 SWIGRUNTIMEINLINE
const char *
822 PySwigObject_GetDesc(PyObject
*self
)
824 return ((PySwigObject
*)self
)->desc
;
827 SWIGRUNTIMEINLINE
int
828 PySwigObject_Check(PyObject
*op
) {
829 return ((op
)->ob_type
== PySwigObject_GetType())
830 || (strcmp((op
)->ob_type
->tp_name
,"PySwigObject") == 0);
833 /* -----------------------------------------------------------------------------
834 * Implements a simple Swig Packed type, and use it instead of string
835 * ----------------------------------------------------------------------------- */
845 PySwigPacked_print(PySwigPacked
*v
, FILE *fp
, int flags
)
847 char result
[SWIG_BUFFER_SIZE
];
848 fputs("<Swig Packed ", fp
);
849 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))) {
858 SWIGRUNTIME PyObject
*
859 PySwigPacked_repr(PySwigPacked
*v
)
861 char result
[SWIG_BUFFER_SIZE
];
862 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))) {
863 return PyString_FromFormat("<Swig Packed at %s%s>", result
, v
->desc
);
865 return PyString_FromFormat("<Swig Packed %s>", v
->desc
);
869 SWIGRUNTIME PyObject
*
870 PySwigPacked_str(PySwigPacked
*v
)
872 char result
[SWIG_BUFFER_SIZE
];
873 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))){
874 return PyString_FromFormat("%s%s", result
, v
->desc
);
876 return PyString_FromFormat("%s", v
->desc
);
881 PySwigPacked_compare(PySwigPacked
*v
, PySwigPacked
*w
)
883 int c
= strcmp(v
->desc
, w
->desc
);
889 int s
= (i
< j
) ? -1 : (i
> j
) ? 1 : 0;
890 return s
? s
: strncmp((char *)v
->pack
, (char *)w
->pack
, 2*v
->size
);
895 PySwigPacked_dealloc(PySwigPacked
*self
)
901 SWIGRUNTIME PyTypeObject
*
902 PySwigPacked_GetType() {
903 static char PySwigPacked_Type__doc__
[] =
904 "Swig object carries a C/C++ instance pointer";
905 static int type_init
= 0;
907 static PyTypeObject PySwigPacked_Type
;
910 PyObject_HEAD_INIT(&PyType_Type
)
912 "PySwigPacked", /*tp_name*/
913 sizeof(PySwigPacked
), /*tp_basicsize*/
916 (destructor
)PySwigPacked_dealloc
, /*tp_dealloc*/
917 (printfunc
)PySwigPacked_print
, /*tp_print*/
918 (getattrfunc
)0, /*tp_getattr*/
919 (setattrfunc
)0, /*tp_setattr*/
920 (cmpfunc
)PySwigPacked_compare
, /*tp_compare*/
921 (reprfunc
)PySwigPacked_repr
, /*tp_repr*/
923 0, /*tp_as_sequence*/
925 (hashfunc
)0, /*tp_hash*/
926 (ternaryfunc
)0, /*tp_call*/
927 (reprfunc
)PySwigPacked_str
, /*tp_str*/
928 /* Space for future expansion */
930 PySwigPacked_Type__doc__
, /* Documentation string */
931 #if PY_VERSION_HEX >= 0x02000000
935 #if PY_VERSION_HEX >= 0x02010000
936 0, /* tp_richcompare */
937 0, /* tp_weaklistoffset */
939 #if PY_VERSION_HEX >= 0x02020000
940 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
942 #if PY_VERSION_HEX >= 0x02030000
946 0,0,0,0 /* tp_alloc -> tp_next */
950 PySwigPacked_Type
= tmp
;
956 return &PySwigPacked_Type
;
959 SWIGRUNTIME PyObject
*
960 PySwigPacked_FromDataAndDesc(void *ptr
, size_t size
, const char *desc
)
962 PySwigPacked
*self
= PyObject_NEW(PySwigPacked
, PySwigPacked_GetType());
966 void *pack
= malloc(size
);
967 memcpy(pack
, ptr
, size
);
971 return (PyObject
*) self
;
975 SWIGRUNTIMEINLINE
const char *
976 PySwigPacked_UnpackData(PyObject
*obj
, void *ptr
, size_t size
)
978 PySwigPacked
*self
= (PySwigPacked
*)obj
;
979 if (self
->size
!= size
) return 0;
980 memcpy(ptr
, self
->pack
, size
);
984 SWIGRUNTIMEINLINE
const char *
985 PySwigPacked_GetDesc(PyObject
*self
)
987 return ((PySwigPacked
*)self
)->desc
;
990 SWIGRUNTIMEINLINE
int
991 PySwigPacked_Check(PyObject
*op
) {
992 return ((op
)->ob_type
== PySwigPacked_GetType())
993 || (strcmp((op
)->ob_type
->tp_name
,"PySwigPacked") == 0);
997 /* -----------------------------------------------------------------------------
998 * Use the old Python PyCObject instead of PySwigObject
999 * ----------------------------------------------------------------------------- */
1001 #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj)
1002 #define PySwigObject_Check(obj) PyCObject_Check(obj)
1003 #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj)
1004 #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL)
1010 /* -----------------------------------------------------------------------------
1011 * errors manipulation
1012 * ----------------------------------------------------------------------------- */
1015 SWIG_Python_TypeError(const char *type
, PyObject
*obj
)
1018 #if defined(SWIG_COBJECT_TYPES)
1019 if (PySwigObject_Check(obj
)) {
1020 const char *otype
= (const char *) PySwigObject_GetDesc(obj
);
1022 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, 'PySwigObject(%s)' is received",
1029 const char *otype
= (obj
? obj
->ob_type
->tp_name
: 0);
1031 PyObject
*str
= PyObject_Str(obj
);
1032 const char *cstr
= str
? PyString_AsString(str
) : 0;
1034 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, '%s(%s)' is received",
1037 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, '%s' is received",
1044 PyErr_Format(PyExc_TypeError
, "a '%s' is expected", type
);
1046 PyErr_Format(PyExc_TypeError
, "unexpected type is received");
1050 SWIGRUNTIMEINLINE
void
1051 SWIG_Python_NullRef(const char *type
)
1054 PyErr_Format(PyExc_TypeError
, "null reference of type '%s' was received",type
);
1056 PyErr_Format(PyExc_TypeError
, "null reference was received");
1061 SWIG_Python_AddErrMesg(const char* mesg
, int infront
)
1063 if (PyErr_Occurred()) {
1065 PyObject
*value
= 0;
1066 PyObject
*traceback
= 0;
1067 PyErr_Fetch(&type
, &value
, &traceback
);
1069 PyObject
*old_str
= PyObject_Str(value
);
1073 PyErr_Format(type
, "%s %s", mesg
, PyString_AsString(old_str
));
1075 PyErr_Format(type
, "%s %s", PyString_AsString(old_str
), mesg
);
1086 SWIG_Python_ArgFail(int argnum
)
1088 if (PyErr_Occurred()) {
1089 /* add information about failing argument */
1091 sprintf(mesg
, "argument number %d:", argnum
);
1092 return SWIG_Python_AddErrMesg(mesg
, 1);
1099 /* -----------------------------------------------------------------------------
1100 * pointers/data manipulation
1101 * ----------------------------------------------------------------------------- */
1103 /* Convert a pointer value */
1105 SWIG_Python_ConvertPtr(PyObject
*obj
, void **ptr
, swig_type_info
*ty
, int flags
) {
1108 static PyObject
*SWIG_this
= 0;
1110 PyObject
*pyobj
= 0;
1114 if (obj
== Py_None
) {
1119 #ifdef SWIG_COBJECT_TYPES
1120 if (!(PySwigObject_Check(obj
))) {
1122 SWIG_this
= PyString_FromString("this");
1124 obj
= PyObject_GetAttr(obj
,SWIG_this
);
1126 if (!obj
) goto type_error
;
1127 if (!PySwigObject_Check(obj
)) {
1132 vptr
= PySwigObject_AsVoidPtr(obj
);
1133 c
= (const char *) PySwigObject_GetDesc(obj
);
1134 if (newref
) { Py_DECREF(obj
); }
1137 if (!(PyString_Check(obj
))) {
1139 SWIG_this
= PyString_FromString("this");
1141 obj
= PyObject_GetAttr(obj
,SWIG_this
);
1143 if (!obj
) goto type_error
;
1144 if (!PyString_Check(obj
)) {
1149 c
= PyString_AS_STRING(obj
);
1150 /* Pointer values must start with leading underscore */
1151 c
= SWIG_UnpackVoidPtr(c
, &vptr
, ty
->name
);
1152 if (newref
) { Py_DECREF(obj
); }
1153 if (!c
) goto type_error
;
1159 tc
= SWIG_TypeCheck(c
,ty
);
1160 if (!tc
) goto type_error
;
1161 *ptr
= SWIG_TypeCast(tc
,vptr
);
1166 if ((pyobj
) && (flags
& SWIG_POINTER_DISOWN
)) {
1167 PyObject_SetAttrString(pyobj
,(char*)"thisown",Py_False
);
1173 if (pyobj
&& !obj
) {
1175 if (PyCFunction_Check(obj
)) {
1176 /* here we get the method pointer for callbacks */
1177 char *doc
= (((PyCFunctionObject
*)obj
) -> m_ml
-> ml_doc
);
1178 c
= doc
? strstr(doc
, "swig_ptr: ") : 0;
1180 c
= SWIG_UnpackVoidPtr(c
+ 10, &vptr
, ty
->name
);
1181 if (!c
) goto type_error
;
1186 if (flags
& SWIG_POINTER_EXCEPTION
) {
1188 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1190 SWIG_Python_TypeError("C/C++ pointer", obj
);
1196 /* Convert a pointer value, signal an exception on a type mismatch */
1198 SWIG_Python_MustGetPtr(PyObject
*obj
, swig_type_info
*ty
, int argnum
, int flags
) {
1200 if (SWIG_Python_ConvertPtr(obj
, &result
, ty
, flags
) == -1) {
1202 if (flags
& SWIG_POINTER_EXCEPTION
) {
1203 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1204 SWIG_Python_ArgFail(argnum
);
1210 /* Convert a packed value value */
1212 SWIG_Python_ConvertPacked(PyObject
*obj
, void *ptr
, size_t sz
, swig_type_info
*ty
, int flags
) {
1216 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1217 c
= PySwigPacked_UnpackData(obj
, ptr
, sz
);
1219 if ((!obj
) || (!PyString_Check(obj
))) goto type_error
;
1220 c
= PyString_AS_STRING(obj
);
1221 /* Pointer values must start with leading underscore */
1222 c
= SWIG_UnpackDataName(c
, ptr
, sz
, ty
->name
);
1224 if (!c
) goto type_error
;
1226 tc
= SWIG_TypeCheck(c
,ty
);
1227 if (!tc
) goto type_error
;
1233 if (flags
& SWIG_POINTER_EXCEPTION
) {
1235 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1237 SWIG_Python_TypeError("C/C++ packed data", obj
);
1243 /* Create a new array object */
1244 SWIGRUNTIME PyObject
*
1245 SWIG_Python_NewPointerObj(void *ptr
, swig_type_info
*type
, int own
) {
1251 #ifdef SWIG_COBJECT_TYPES
1252 robj
= PySwigObject_FromVoidPtrAndDesc((void *) ptr
, (char *)type
->name
);
1255 char result
[SWIG_BUFFER_SIZE
];
1256 robj
= SWIG_PackVoidPtr(result
, ptr
, type
->name
, sizeof(result
)) ?
1257 PyString_FromString(result
) : 0;
1260 if (!robj
|| (robj
== Py_None
)) return robj
;
1261 if (type
->clientdata
) {
1263 PyObject
*args
= Py_BuildValue((char*)"(O)", robj
);
1265 inst
= PyObject_CallObject((PyObject
*) type
->clientdata
, args
);
1269 PyObject_SetAttrString(inst
,(char*)"thisown",Py_True
);
1277 SWIGRUNTIME PyObject
*
1278 SWIG_Python_NewPackedObj(void *ptr
, size_t sz
, swig_type_info
*type
) {
1284 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1285 robj
= PySwigPacked_FromDataAndDesc((void *) ptr
, sz
, (char *)type
->name
);
1288 char result
[SWIG_BUFFER_SIZE
];
1289 robj
= SWIG_PackDataName(result
, ptr
, sz
, type
->name
, sizeof(result
)) ?
1290 PyString_FromString(result
) : 0;
1296 /* -----------------------------------------------------------------------------*
1298 * -----------------------------------------------------------------------------*/
1300 #ifdef SWIG_LINK_RUNTIME
1301 void *SWIG_ReturnGlobalTypeList(void *);
1304 SWIGRUNTIME swig_type_info
**
1305 SWIG_Python_GetTypeListHandle() {
1306 static void *type_pointer
= (void *)0;
1307 /* first check if module already created */
1308 if (!type_pointer
) {
1309 #ifdef SWIG_LINK_RUNTIME
1310 type_pointer
= SWIG_ReturnGlobalTypeList((void *)0);
1312 type_pointer
= PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
,
1313 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
);
1314 if (PyErr_Occurred()) {
1316 type_pointer
= (void *)0;
1320 return (swig_type_info
**) type_pointer
;
1324 Search for a swig_type_info structure
1326 SWIGRUNTIMEINLINE swig_type_info
*
1327 SWIG_Python_GetTypeList() {
1328 swig_type_info
**tlh
= SWIG_Python_GetTypeListHandle();
1329 return tlh
? *tlh
: (swig_type_info
*)0;
1332 #define SWIG_Runtime_GetTypeList SWIG_Python_GetTypeList
1339 /* -------- TYPES TABLE (BEGIN) -------- */
1341 #define SWIGTYPE_p_wxRect swig_types[0]
1342 #define SWIGTYPE_p_wxGIFAnimationCtrl swig_types[1]
1343 #define SWIGTYPE_p_wxObject swig_types[2]
1344 #define SWIGTYPE_p_unsigned_char swig_types[3]
1345 #define SWIGTYPE_p_wxColour swig_types[4]
1346 #define SWIGTYPE_p_wxAnimationPlayer swig_types[5]
1347 #define SWIGTYPE_p_wxWindow swig_types[6]
1348 #define SWIGTYPE_p_unsigned_long swig_types[7]
1349 #define SWIGTYPE_p_wxBitmap swig_types[8]
1350 #define SWIGTYPE_p_form_ops_t swig_types[9]
1351 #define SWIGTYPE_p_unsigned_int swig_types[10]
1352 #define SWIGTYPE_unsigned_int swig_types[11]
1353 #define SWIGTYPE_p_wxDuplexMode swig_types[12]
1354 #define SWIGTYPE_p_wxGIFAnimation swig_types[13]
1355 #define SWIGTYPE_p_char swig_types[14]
1356 #define SWIGTYPE_p_wxAnimationBase swig_types[15]
1357 #define SWIGTYPE_p_wxPoint swig_types[16]
1358 #define SWIGTYPE_p_wxDC swig_types[17]
1359 #define SWIGTYPE_p_wxEvtHandler swig_types[18]
1360 #define SWIGTYPE_std__ptrdiff_t swig_types[19]
1361 #define SWIGTYPE_ptrdiff_t swig_types[20]
1362 #define SWIGTYPE_p_wxControl swig_types[21]
1363 #define SWIGTYPE_p_wxPaperSize swig_types[22]
1364 #define SWIGTYPE_p_wxSize swig_types[23]
1365 #define SWIGTYPE_p_int swig_types[24]
1366 static swig_type_info
*swig_types
[26];
1368 /* -------- TYPES TABLE (END) -------- */
1371 /*-----------------------------------------------
1372 @(target):= _animate.so
1373 ------------------------------------------------*/
1374 #define SWIG_init init_animate
1376 #define SWIG_name "_animate"
1378 #include "wx/wxPython/wxPython.h"
1379 #include "wx/wxPython/pyclasses.h"
1380 #include <wx/animate/animate.h>
1382 static const wxString
wxPyAnimationControlNameStr(wxT("animationControl"));
1383 static const wxString
wxPyEmptyString(wxEmptyString
);
1385 /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/
1386 #define SWIG_From_int PyInt_FromLong
1394 SWIG_CheckLongInRange(long value
, long min_value
, long max_value
,
1397 if (value
< min_value
) {
1399 PyErr_Format(PyExc_OverflowError
,
1400 "value %ld is less than '%s' minimum %ld",
1401 value
, errmsg
, min_value
);
1404 } else if (value
> max_value
) {
1406 PyErr_Format(PyExc_OverflowError
,
1407 "value %ld is greater than '%s' maximum %ld",
1408 value
, errmsg
, max_value
);
1417 SWIG_AsVal_long(PyObject
* obj
, long* val
)
1419 if (PyNumber_Check(obj
)) {
1420 if (val
) *val
= PyInt_AsLong(obj
);
1424 SWIG_type_error("number", obj
);
1430 #if INT_MAX != LONG_MAX
1432 SWIG_AsVal_int(PyObject
*obj
, int *val
)
1434 const char* errmsg
= val
? "int" : (char*)0;
1436 if (SWIG_AsVal_long(obj
, &v
)) {
1437 if (SWIG_CheckLongInRange(v
, INT_MIN
,INT_MAX
, errmsg
)) {
1438 if (val
) *val
= (int)(v
);
1447 SWIG_type_error(errmsg
, obj
);
1453 SWIG_AsVal_int(PyObject
*obj
, int *val
)
1455 return SWIG_AsVal_long(obj
,(long*)val
);
1461 SWIG_AsVal_bool(PyObject
*obj
, bool *val
)
1463 if (obj
== Py_True
) {
1464 if (val
) *val
= true;
1467 if (obj
== Py_False
) {
1468 if (val
) *val
= false;
1472 if (SWIG_AsVal_int(obj
, &res
)) {
1473 if (val
) *val
= res
? true : false;
1479 SWIG_type_error("bool", obj
);
1485 SWIGINTERNSHORT
bool
1486 SWIG_As_bool(PyObject
* obj
)
1489 if (!SWIG_AsVal_bool(obj
, &v
)) {
1491 this is needed to make valgrind/purify happier.
1493 memset((void*)&v
, 0, sizeof(bool));
1500 SWIG_Check_bool(PyObject
* obj
)
1502 return SWIG_AsVal_bool(obj
, (bool*)0);
1507 SWIG_As_int(PyObject
* obj
)
1510 if (!SWIG_AsVal_int(obj
, &v
)) {
1512 this is needed to make valgrind/purify happier.
1514 memset((void*)&v
, 0, sizeof(int));
1521 SWIG_Check_int(PyObject
* obj
)
1523 return SWIG_AsVal_int(obj
, (int*)0);
1527 SWIGINTERNSHORT
long
1528 SWIG_As_long(PyObject
* obj
)
1531 if (!SWIG_AsVal_long(obj
, &v
)) {
1533 this is needed to make valgrind/purify happier.
1535 memset((void*)&v
, 0, sizeof(long));
1542 SWIG_Check_long(PyObject
* obj
)
1544 return SWIG_AsVal_long(obj
, (long*)0);
1550 static int _wrap_AnimationControlNameStr_set(PyObject
*) {
1551 PyErr_SetString(PyExc_TypeError
,"Variable AnimationControlNameStr is read-only.");
1556 static PyObject
*_wrap_AnimationControlNameStr_get(void) {
1561 pyobj
= PyUnicode_FromWideChar((&wxPyAnimationControlNameStr
)->c_str(), (&wxPyAnimationControlNameStr
)->Len());
1563 pyobj
= PyString_FromStringAndSize((&wxPyAnimationControlNameStr
)->c_str(), (&wxPyAnimationControlNameStr
)->Len());
1570 static PyObject
*_wrap_new_AnimationPlayer(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1571 PyObject
*resultobj
;
1572 wxAnimationBase
*arg1
= (wxAnimationBase
*) NULL
;
1573 bool arg2
= (bool) false ;
1574 wxAnimationPlayer
*result
;
1575 PyObject
* obj0
= 0 ;
1576 PyObject
* obj1
= 0 ;
1578 (char *) "animation",(char *) "destroyAnimation", NULL
1581 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OO:new_AnimationPlayer",kwnames
,&obj0
,&obj1
)) goto fail
;
1583 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
1584 if (SWIG_arg_fail(1)) SWIG_fail
;
1588 arg2
= (bool)(SWIG_As_bool(obj1
));
1589 if (SWIG_arg_fail(2)) SWIG_fail
;
1593 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1594 result
= (wxAnimationPlayer
*)new wxAnimationPlayer(arg1
,arg2
);
1596 wxPyEndAllowThreads(__tstate
);
1597 if (PyErr_Occurred()) SWIG_fail
;
1599 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxAnimationPlayer
, 1);
1606 static PyObject
*_wrap_delete_AnimationPlayer(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1607 PyObject
*resultobj
;
1608 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1609 PyObject
* obj0
= 0 ;
1611 (char *) "self", NULL
1614 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_AnimationPlayer",kwnames
,&obj0
)) goto fail
;
1615 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
1616 if (SWIG_arg_fail(1)) SWIG_fail
;
1618 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1621 wxPyEndAllowThreads(__tstate
);
1622 if (PyErr_Occurred()) SWIG_fail
;
1624 Py_INCREF(Py_None
); resultobj
= Py_None
;
1631 static PyObject
*_wrap_AnimationPlayer_SetAnimation(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1632 PyObject
*resultobj
;
1633 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1634 wxAnimationBase
*arg2
= (wxAnimationBase
*) 0 ;
1635 bool arg3
= (bool) false ;
1636 PyObject
* obj0
= 0 ;
1637 PyObject
* obj1
= 0 ;
1638 PyObject
* obj2
= 0 ;
1640 (char *) "self",(char *) "animation",(char *) "destroyAnimation", NULL
1643 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:AnimationPlayer_SetAnimation",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
1644 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
1645 if (SWIG_arg_fail(1)) SWIG_fail
;
1646 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
1647 if (SWIG_arg_fail(2)) SWIG_fail
;
1650 arg3
= (bool)(SWIG_As_bool(obj2
));
1651 if (SWIG_arg_fail(3)) SWIG_fail
;
1655 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1656 (arg1
)->SetAnimation(arg2
,arg3
);
1658 wxPyEndAllowThreads(__tstate
);
1659 if (PyErr_Occurred()) SWIG_fail
;
1661 Py_INCREF(Py_None
); resultobj
= Py_None
;
1668 static PyObject
*_wrap_AnimationPlayer_GetAnimation(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1669 PyObject
*resultobj
;
1670 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1671 wxAnimationBase
*result
;
1672 PyObject
* obj0
= 0 ;
1674 (char *) "self", NULL
1677 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_GetAnimation",kwnames
,&obj0
)) goto fail
;
1678 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
1679 if (SWIG_arg_fail(1)) SWIG_fail
;
1681 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1682 result
= (wxAnimationBase
*)((wxAnimationPlayer
const *)arg1
)->GetAnimation();
1684 wxPyEndAllowThreads(__tstate
);
1685 if (PyErr_Occurred()) SWIG_fail
;
1687 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxAnimationBase
, 0);
1694 static PyObject
*_wrap_AnimationPlayer_SetDestroyAnimation(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1695 PyObject
*resultobj
;
1696 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1698 PyObject
* obj0
= 0 ;
1699 PyObject
* obj1
= 0 ;
1701 (char *) "self",(char *) "destroyAnimation", NULL
1704 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_SetDestroyAnimation",kwnames
,&obj0
,&obj1
)) goto fail
;
1705 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
1706 if (SWIG_arg_fail(1)) SWIG_fail
;
1708 arg2
= (bool)(SWIG_As_bool(obj1
));
1709 if (SWIG_arg_fail(2)) SWIG_fail
;
1712 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1713 (arg1
)->SetDestroyAnimation(arg2
);
1715 wxPyEndAllowThreads(__tstate
);
1716 if (PyErr_Occurred()) SWIG_fail
;
1718 Py_INCREF(Py_None
); resultobj
= Py_None
;
1725 static PyObject
*_wrap_AnimationPlayer_GetDestroyAnimation(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1726 PyObject
*resultobj
;
1727 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1729 PyObject
* obj0
= 0 ;
1731 (char *) "self", NULL
1734 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_GetDestroyAnimation",kwnames
,&obj0
)) goto fail
;
1735 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
1736 if (SWIG_arg_fail(1)) SWIG_fail
;
1738 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1739 result
= (bool)((wxAnimationPlayer
const *)arg1
)->GetDestroyAnimation();
1741 wxPyEndAllowThreads(__tstate
);
1742 if (PyErr_Occurred()) SWIG_fail
;
1745 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1753 static PyObject
*_wrap_AnimationPlayer_SetCurrentFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1754 PyObject
*resultobj
;
1755 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1757 PyObject
* obj0
= 0 ;
1758 PyObject
* obj1
= 0 ;
1760 (char *) "self",(char *) "currentFrame", NULL
1763 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_SetCurrentFrame",kwnames
,&obj0
,&obj1
)) goto fail
;
1764 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
1765 if (SWIG_arg_fail(1)) SWIG_fail
;
1767 arg2
= (int)(SWIG_As_int(obj1
));
1768 if (SWIG_arg_fail(2)) SWIG_fail
;
1771 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1772 (arg1
)->SetCurrentFrame(arg2
);
1774 wxPyEndAllowThreads(__tstate
);
1775 if (PyErr_Occurred()) SWIG_fail
;
1777 Py_INCREF(Py_None
); resultobj
= Py_None
;
1784 static PyObject
*_wrap_AnimationPlayer_GetCurrentFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1785 PyObject
*resultobj
;
1786 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1788 PyObject
* obj0
= 0 ;
1790 (char *) "self", NULL
1793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_GetCurrentFrame",kwnames
,&obj0
)) goto fail
;
1794 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
1795 if (SWIG_arg_fail(1)) SWIG_fail
;
1797 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1798 result
= (int)((wxAnimationPlayer
const *)arg1
)->GetCurrentFrame();
1800 wxPyEndAllowThreads(__tstate
);
1801 if (PyErr_Occurred()) SWIG_fail
;
1804 resultobj
= SWIG_From_int((int)(result
));
1812 static PyObject
*_wrap_AnimationPlayer_SetWindow(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1813 PyObject
*resultobj
;
1814 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1815 wxWindow
*arg2
= (wxWindow
*) 0 ;
1816 PyObject
* obj0
= 0 ;
1817 PyObject
* obj1
= 0 ;
1819 (char *) "self",(char *) "window", NULL
1822 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_SetWindow",kwnames
,&obj0
,&obj1
)) goto fail
;
1823 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
1824 if (SWIG_arg_fail(1)) SWIG_fail
;
1825 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
1826 if (SWIG_arg_fail(2)) SWIG_fail
;
1828 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1829 (arg1
)->SetWindow(arg2
);
1831 wxPyEndAllowThreads(__tstate
);
1832 if (PyErr_Occurred()) SWIG_fail
;
1834 Py_INCREF(Py_None
); resultobj
= Py_None
;
1841 static PyObject
*_wrap_AnimationPlayer_GetWindow(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1842 PyObject
*resultobj
;
1843 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1845 PyObject
* obj0
= 0 ;
1847 (char *) "self", NULL
1850 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_GetWindow",kwnames
,&obj0
)) goto fail
;
1851 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
1852 if (SWIG_arg_fail(1)) SWIG_fail
;
1854 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1855 result
= (wxWindow
*)((wxAnimationPlayer
const *)arg1
)->GetWindow();
1857 wxPyEndAllowThreads(__tstate
);
1858 if (PyErr_Occurred()) SWIG_fail
;
1861 resultobj
= wxPyMake_wxObject(result
, 0);
1869 static PyObject
*_wrap_AnimationPlayer_SetPosition(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1870 PyObject
*resultobj
;
1871 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1874 PyObject
* obj0
= 0 ;
1875 PyObject
* obj1
= 0 ;
1877 (char *) "self",(char *) "pos", NULL
1880 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_SetPosition",kwnames
,&obj0
,&obj1
)) goto fail
;
1881 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
1882 if (SWIG_arg_fail(1)) SWIG_fail
;
1885 if ( ! wxPoint_helper(obj1
, &arg2
)) SWIG_fail
;
1888 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1889 (arg1
)->SetPosition((wxPoint
const &)*arg2
);
1891 wxPyEndAllowThreads(__tstate
);
1892 if (PyErr_Occurred()) SWIG_fail
;
1894 Py_INCREF(Py_None
); resultobj
= Py_None
;
1901 static PyObject
*_wrap_AnimationPlayer_GetPosition(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1902 PyObject
*resultobj
;
1903 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1905 PyObject
* obj0
= 0 ;
1907 (char *) "self", NULL
1910 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_GetPosition",kwnames
,&obj0
)) goto fail
;
1911 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
1912 if (SWIG_arg_fail(1)) SWIG_fail
;
1914 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1915 result
= ((wxAnimationPlayer
const *)arg1
)->GetPosition();
1917 wxPyEndAllowThreads(__tstate
);
1918 if (PyErr_Occurred()) SWIG_fail
;
1921 wxPoint
* resultptr
;
1922 resultptr
= new wxPoint((wxPoint
&)(result
));
1923 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxPoint
, 1);
1931 static PyObject
*_wrap_AnimationPlayer_SetLooped(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1932 PyObject
*resultobj
;
1933 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1935 PyObject
* obj0
= 0 ;
1936 PyObject
* obj1
= 0 ;
1938 (char *) "self",(char *) "looped", NULL
1941 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_SetLooped",kwnames
,&obj0
,&obj1
)) goto fail
;
1942 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
1943 if (SWIG_arg_fail(1)) SWIG_fail
;
1945 arg2
= (bool)(SWIG_As_bool(obj1
));
1946 if (SWIG_arg_fail(2)) SWIG_fail
;
1949 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1950 (arg1
)->SetLooped(arg2
);
1952 wxPyEndAllowThreads(__tstate
);
1953 if (PyErr_Occurred()) SWIG_fail
;
1955 Py_INCREF(Py_None
); resultobj
= Py_None
;
1962 static PyObject
*_wrap_AnimationPlayer_GetLooped(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1963 PyObject
*resultobj
;
1964 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1966 PyObject
* obj0
= 0 ;
1968 (char *) "self", NULL
1971 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_GetLooped",kwnames
,&obj0
)) goto fail
;
1972 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
1973 if (SWIG_arg_fail(1)) SWIG_fail
;
1975 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1976 result
= (bool)((wxAnimationPlayer
const *)arg1
)->GetLooped();
1978 wxPyEndAllowThreads(__tstate
);
1979 if (PyErr_Occurred()) SWIG_fail
;
1982 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1990 static PyObject
*_wrap_AnimationPlayer_HasAnimation(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1991 PyObject
*resultobj
;
1992 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
1994 PyObject
* obj0
= 0 ;
1996 (char *) "self", NULL
1999 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_HasAnimation",kwnames
,&obj0
)) goto fail
;
2000 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2001 if (SWIG_arg_fail(1)) SWIG_fail
;
2003 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2004 result
= (bool)((wxAnimationPlayer
const *)arg1
)->HasAnimation();
2006 wxPyEndAllowThreads(__tstate
);
2007 if (PyErr_Occurred()) SWIG_fail
;
2010 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2018 static PyObject
*_wrap_AnimationPlayer_IsPlaying(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2019 PyObject
*resultobj
;
2020 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2022 PyObject
* obj0
= 0 ;
2024 (char *) "self", NULL
2027 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_IsPlaying",kwnames
,&obj0
)) goto fail
;
2028 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2029 if (SWIG_arg_fail(1)) SWIG_fail
;
2031 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2032 result
= (bool)((wxAnimationPlayer
const *)arg1
)->IsPlaying();
2034 wxPyEndAllowThreads(__tstate
);
2035 if (PyErr_Occurred()) SWIG_fail
;
2038 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2046 static PyObject
*_wrap_AnimationPlayer_UseBackgroundColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2047 PyObject
*resultobj
;
2048 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2050 PyObject
* obj0
= 0 ;
2051 PyObject
* obj1
= 0 ;
2053 (char *) "self",(char *) "useBackground", NULL
2056 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_UseBackgroundColour",kwnames
,&obj0
,&obj1
)) goto fail
;
2057 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2058 if (SWIG_arg_fail(1)) SWIG_fail
;
2060 arg2
= (bool)(SWIG_As_bool(obj1
));
2061 if (SWIG_arg_fail(2)) SWIG_fail
;
2064 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2065 (arg1
)->UseBackgroundColour(arg2
);
2067 wxPyEndAllowThreads(__tstate
);
2068 if (PyErr_Occurred()) SWIG_fail
;
2070 Py_INCREF(Py_None
); resultobj
= Py_None
;
2077 static PyObject
*_wrap_AnimationPlayer_UsingBackgroundColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2078 PyObject
*resultobj
;
2079 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2081 PyObject
* obj0
= 0 ;
2083 (char *) "self", NULL
2086 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_UsingBackgroundColour",kwnames
,&obj0
)) goto fail
;
2087 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2088 if (SWIG_arg_fail(1)) SWIG_fail
;
2090 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2091 result
= (bool)((wxAnimationPlayer
const *)arg1
)->UsingBackgroundColour();
2093 wxPyEndAllowThreads(__tstate
);
2094 if (PyErr_Occurred()) SWIG_fail
;
2097 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2105 static PyObject
*_wrap_AnimationPlayer_SetCustomBackgroundColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2106 PyObject
*resultobj
;
2107 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2108 wxColour
*arg2
= 0 ;
2109 bool arg3
= (bool) true ;
2111 PyObject
* obj0
= 0 ;
2112 PyObject
* obj1
= 0 ;
2113 PyObject
* obj2
= 0 ;
2115 (char *) "self",(char *) "col",(char *) "useCustomBackgroundColour", NULL
2118 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:AnimationPlayer_SetCustomBackgroundColour",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2119 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2120 if (SWIG_arg_fail(1)) SWIG_fail
;
2123 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
2127 arg3
= (bool)(SWIG_As_bool(obj2
));
2128 if (SWIG_arg_fail(3)) SWIG_fail
;
2132 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2133 (arg1
)->SetCustomBackgroundColour((wxColour
const &)*arg2
,arg3
);
2135 wxPyEndAllowThreads(__tstate
);
2136 if (PyErr_Occurred()) SWIG_fail
;
2138 Py_INCREF(Py_None
); resultobj
= Py_None
;
2145 static PyObject
*_wrap_AnimationPlayer_UsingCustomBackgroundColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2146 PyObject
*resultobj
;
2147 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2149 PyObject
* obj0
= 0 ;
2151 (char *) "self", NULL
2154 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_UsingCustomBackgroundColour",kwnames
,&obj0
)) goto fail
;
2155 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2156 if (SWIG_arg_fail(1)) SWIG_fail
;
2158 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2159 result
= (bool)((wxAnimationPlayer
const *)arg1
)->UsingCustomBackgroundColour();
2161 wxPyEndAllowThreads(__tstate
);
2162 if (PyErr_Occurred()) SWIG_fail
;
2165 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2173 static PyObject
*_wrap_AnimationPlayer_GetCustomBackgroundColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2174 PyObject
*resultobj
;
2175 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2177 PyObject
* obj0
= 0 ;
2179 (char *) "self", NULL
2182 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_GetCustomBackgroundColour",kwnames
,&obj0
)) goto fail
;
2183 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2184 if (SWIG_arg_fail(1)) SWIG_fail
;
2186 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2188 wxColour
const &_result_ref
= ((wxAnimationPlayer
const *)arg1
)->GetCustomBackgroundColour();
2189 result
= (wxColour
*) &_result_ref
;
2192 wxPyEndAllowThreads(__tstate
);
2193 if (PyErr_Occurred()) SWIG_fail
;
2195 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxColour
, 0);
2202 static PyObject
*_wrap_AnimationPlayer_UseParentBackground(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2203 PyObject
*resultobj
;
2204 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2206 PyObject
* obj0
= 0 ;
2207 PyObject
* obj1
= 0 ;
2209 (char *) "self",(char *) "useParent", NULL
2212 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_UseParentBackground",kwnames
,&obj0
,&obj1
)) goto fail
;
2213 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2214 if (SWIG_arg_fail(1)) SWIG_fail
;
2216 arg2
= (bool)(SWIG_As_bool(obj1
));
2217 if (SWIG_arg_fail(2)) SWIG_fail
;
2220 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2221 (arg1
)->UseParentBackground(arg2
);
2223 wxPyEndAllowThreads(__tstate
);
2224 if (PyErr_Occurred()) SWIG_fail
;
2226 Py_INCREF(Py_None
); resultobj
= Py_None
;
2233 static PyObject
*_wrap_AnimationPlayer_UsingParentBackground(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2234 PyObject
*resultobj
;
2235 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2237 PyObject
* obj0
= 0 ;
2239 (char *) "self", NULL
2242 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_UsingParentBackground",kwnames
,&obj0
)) goto fail
;
2243 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2244 if (SWIG_arg_fail(1)) SWIG_fail
;
2246 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2247 result
= (bool)((wxAnimationPlayer
const *)arg1
)->UsingParentBackground();
2249 wxPyEndAllowThreads(__tstate
);
2250 if (PyErr_Occurred()) SWIG_fail
;
2253 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2261 static PyObject
*_wrap_AnimationPlayer_Play(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2262 PyObject
*resultobj
;
2263 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2264 wxWindow
*arg2
= 0 ;
2265 wxPoint
const &arg3_defvalue
= wxPoint(0, 0) ;
2266 wxPoint
*arg3
= (wxPoint
*) &arg3_defvalue
;
2267 bool arg4
= (bool) true ;
2270 PyObject
* obj0
= 0 ;
2271 PyObject
* obj1
= 0 ;
2272 PyObject
* obj2
= 0 ;
2273 PyObject
* obj3
= 0 ;
2275 (char *) "self",(char *) "window",(char *) "pos",(char *) "looped", NULL
2278 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|OO:AnimationPlayer_Play",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
2279 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2280 if (SWIG_arg_fail(1)) SWIG_fail
;
2282 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2283 if (SWIG_arg_fail(2)) SWIG_fail
;
2285 SWIG_null_ref("wxWindow");
2287 if (SWIG_arg_fail(2)) SWIG_fail
;
2292 if ( ! wxPoint_helper(obj2
, &arg3
)) SWIG_fail
;
2297 arg4
= (bool)(SWIG_As_bool(obj3
));
2298 if (SWIG_arg_fail(4)) SWIG_fail
;
2302 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2303 result
= (bool)(arg1
)->Play(*arg2
,(wxPoint
const &)*arg3
,arg4
);
2305 wxPyEndAllowThreads(__tstate
);
2306 if (PyErr_Occurred()) SWIG_fail
;
2309 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2317 static PyObject
*_wrap_AnimationPlayer_Build(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2318 PyObject
*resultobj
;
2319 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2321 PyObject
* obj0
= 0 ;
2323 (char *) "self", NULL
2326 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_Build",kwnames
,&obj0
)) goto fail
;
2327 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2328 if (SWIG_arg_fail(1)) SWIG_fail
;
2330 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2331 result
= (bool)(arg1
)->Build();
2333 wxPyEndAllowThreads(__tstate
);
2334 if (PyErr_Occurred()) SWIG_fail
;
2337 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2345 static PyObject
*_wrap_AnimationPlayer_Stop(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2346 PyObject
*resultobj
;
2347 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2348 PyObject
* obj0
= 0 ;
2350 (char *) "self", NULL
2353 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_Stop",kwnames
,&obj0
)) goto fail
;
2354 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2355 if (SWIG_arg_fail(1)) SWIG_fail
;
2357 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2360 wxPyEndAllowThreads(__tstate
);
2361 if (PyErr_Occurred()) SWIG_fail
;
2363 Py_INCREF(Py_None
); resultobj
= Py_None
;
2370 static PyObject
*_wrap_AnimationPlayer_Draw(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2371 PyObject
*resultobj
;
2372 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2374 PyObject
* obj0
= 0 ;
2375 PyObject
* obj1
= 0 ;
2377 (char *) "self",(char *) "dc", NULL
2380 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_Draw",kwnames
,&obj0
,&obj1
)) goto fail
;
2381 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2382 if (SWIG_arg_fail(1)) SWIG_fail
;
2384 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxDC
, SWIG_POINTER_EXCEPTION
| 0);
2385 if (SWIG_arg_fail(2)) SWIG_fail
;
2387 SWIG_null_ref("wxDC");
2389 if (SWIG_arg_fail(2)) SWIG_fail
;
2392 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2393 (arg1
)->Draw(*arg2
);
2395 wxPyEndAllowThreads(__tstate
);
2396 if (PyErr_Occurred()) SWIG_fail
;
2398 Py_INCREF(Py_None
); resultobj
= Py_None
;
2405 static PyObject
*_wrap_AnimationPlayer_GetFrameCount(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2406 PyObject
*resultobj
;
2407 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2409 PyObject
* obj0
= 0 ;
2411 (char *) "self", NULL
2414 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_GetFrameCount",kwnames
,&obj0
)) goto fail
;
2415 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2416 if (SWIG_arg_fail(1)) SWIG_fail
;
2418 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2419 result
= (int)((wxAnimationPlayer
const *)arg1
)->GetFrameCount();
2421 wxPyEndAllowThreads(__tstate
);
2422 if (PyErr_Occurred()) SWIG_fail
;
2425 resultobj
= SWIG_From_int((int)(result
));
2433 static PyObject
*_wrap_AnimationPlayer_GetFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2434 PyObject
*resultobj
;
2435 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2438 PyObject
* obj0
= 0 ;
2439 PyObject
* obj1
= 0 ;
2441 (char *) "self",(char *) "i", NULL
2444 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_GetFrame",kwnames
,&obj0
,&obj1
)) goto fail
;
2445 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2446 if (SWIG_arg_fail(1)) SWIG_fail
;
2448 arg2
= (int)(SWIG_As_int(obj1
));
2449 if (SWIG_arg_fail(2)) SWIG_fail
;
2452 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2453 result
= (wxImage
*)((wxAnimationPlayer
const *)arg1
)->GetFrame(arg2
);
2455 wxPyEndAllowThreads(__tstate
);
2456 if (PyErr_Occurred()) SWIG_fail
;
2459 resultobj
= wxPyMake_wxObject(result
, 0);
2467 static PyObject
*_wrap_AnimationPlayer_GetDisposalMethod(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2468 PyObject
*resultobj
;
2469 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2471 wxAnimationDisposal result
;
2472 PyObject
* obj0
= 0 ;
2473 PyObject
* obj1
= 0 ;
2475 (char *) "self",(char *) "i", NULL
2478 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_GetDisposalMethod",kwnames
,&obj0
,&obj1
)) goto fail
;
2479 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2480 if (SWIG_arg_fail(1)) SWIG_fail
;
2482 arg2
= (int)(SWIG_As_int(obj1
));
2483 if (SWIG_arg_fail(2)) SWIG_fail
;
2486 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2487 result
= (wxAnimationDisposal
)((wxAnimationPlayer
const *)arg1
)->GetDisposalMethod(arg2
);
2489 wxPyEndAllowThreads(__tstate
);
2490 if (PyErr_Occurred()) SWIG_fail
;
2492 resultobj
= SWIG_From_int((result
));
2499 static PyObject
*_wrap_AnimationPlayer_GetFrameRect(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2500 PyObject
*resultobj
;
2501 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2504 PyObject
* obj0
= 0 ;
2505 PyObject
* obj1
= 0 ;
2507 (char *) "self",(char *) "i", NULL
2510 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_GetFrameRect",kwnames
,&obj0
,&obj1
)) goto fail
;
2511 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2512 if (SWIG_arg_fail(1)) SWIG_fail
;
2514 arg2
= (int)(SWIG_As_int(obj1
));
2515 if (SWIG_arg_fail(2)) SWIG_fail
;
2518 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2519 result
= ((wxAnimationPlayer
const *)arg1
)->GetFrameRect(arg2
);
2521 wxPyEndAllowThreads(__tstate
);
2522 if (PyErr_Occurred()) SWIG_fail
;
2526 resultptr
= new wxRect((wxRect
&)(result
));
2527 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxRect
, 1);
2535 static PyObject
*_wrap_AnimationPlayer_GetDelay(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2536 PyObject
*resultobj
;
2537 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2540 PyObject
* obj0
= 0 ;
2541 PyObject
* obj1
= 0 ;
2543 (char *) "self",(char *) "i", NULL
2546 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_GetDelay",kwnames
,&obj0
,&obj1
)) goto fail
;
2547 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2548 if (SWIG_arg_fail(1)) SWIG_fail
;
2550 arg2
= (int)(SWIG_As_int(obj1
));
2551 if (SWIG_arg_fail(2)) SWIG_fail
;
2554 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2555 result
= (int)((wxAnimationPlayer
const *)arg1
)->GetDelay(arg2
);
2557 wxPyEndAllowThreads(__tstate
);
2558 if (PyErr_Occurred()) SWIG_fail
;
2561 resultobj
= SWIG_From_int((int)(result
));
2569 static PyObject
*_wrap_AnimationPlayer_GetLogicalScreenSize(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2570 PyObject
*resultobj
;
2571 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2573 PyObject
* obj0
= 0 ;
2575 (char *) "self", NULL
2578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_GetLogicalScreenSize",kwnames
,&obj0
)) goto fail
;
2579 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2580 if (SWIG_arg_fail(1)) SWIG_fail
;
2582 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2583 result
= ((wxAnimationPlayer
const *)arg1
)->GetLogicalScreenSize();
2585 wxPyEndAllowThreads(__tstate
);
2586 if (PyErr_Occurred()) SWIG_fail
;
2590 resultptr
= new wxSize((wxSize
&)(result
));
2591 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxSize
, 1);
2599 static PyObject
*_wrap_AnimationPlayer_GetBackgroundColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2600 PyObject
*resultobj
;
2601 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2602 wxColour
*arg2
= 0 ;
2605 PyObject
* obj0
= 0 ;
2606 PyObject
* obj1
= 0 ;
2608 (char *) "self",(char *) "col", NULL
2611 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_GetBackgroundColour",kwnames
,&obj0
,&obj1
)) goto fail
;
2612 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2613 if (SWIG_arg_fail(1)) SWIG_fail
;
2616 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
2619 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2620 result
= (bool)((wxAnimationPlayer
const *)arg1
)->GetBackgroundColour(*arg2
);
2622 wxPyEndAllowThreads(__tstate
);
2623 if (PyErr_Occurred()) SWIG_fail
;
2626 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2634 static PyObject
*_wrap_AnimationPlayer_GetTransparentColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2635 PyObject
*resultobj
;
2636 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2637 wxColour
*arg2
= 0 ;
2640 PyObject
* obj0
= 0 ;
2641 PyObject
* obj1
= 0 ;
2643 (char *) "self",(char *) "col", NULL
2646 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_GetTransparentColour",kwnames
,&obj0
,&obj1
)) goto fail
;
2647 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2648 if (SWIG_arg_fail(1)) SWIG_fail
;
2651 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
2654 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2655 result
= (bool)((wxAnimationPlayer
const *)arg1
)->GetTransparentColour(*arg2
);
2657 wxPyEndAllowThreads(__tstate
);
2658 if (PyErr_Occurred()) SWIG_fail
;
2661 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2669 static PyObject
*_wrap_AnimationPlayer_PlayFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2670 PyObject
*resultobj
;
2671 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2673 wxWindow
*arg3
= 0 ;
2677 PyObject
* obj0
= 0 ;
2678 PyObject
* obj1
= 0 ;
2679 PyObject
* obj2
= 0 ;
2680 PyObject
* obj3
= 0 ;
2682 (char *) "self",(char *) "frame",(char *) "window",(char *) "pos", NULL
2685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:AnimationPlayer_PlayFrame",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
2686 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2687 if (SWIG_arg_fail(1)) SWIG_fail
;
2689 arg2
= (int)(SWIG_As_int(obj1
));
2690 if (SWIG_arg_fail(2)) SWIG_fail
;
2693 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2694 if (SWIG_arg_fail(3)) SWIG_fail
;
2696 SWIG_null_ref("wxWindow");
2698 if (SWIG_arg_fail(3)) SWIG_fail
;
2702 if ( ! wxPoint_helper(obj3
, &arg4
)) SWIG_fail
;
2705 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2706 result
= (bool)(arg1
)->PlayFrame(arg2
,*arg3
,(wxPoint
const &)*arg4
);
2708 wxPyEndAllowThreads(__tstate
);
2709 if (PyErr_Occurred()) SWIG_fail
;
2712 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2720 static PyObject
*_wrap_AnimationPlayer_PlayNextFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2721 PyObject
*resultobj
;
2722 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2724 PyObject
* obj0
= 0 ;
2726 (char *) "self", NULL
2729 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_PlayNextFrame",kwnames
,&obj0
)) goto fail
;
2730 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2731 if (SWIG_arg_fail(1)) SWIG_fail
;
2733 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2734 result
= (bool)(arg1
)->PlayFrame();
2736 wxPyEndAllowThreads(__tstate
);
2737 if (PyErr_Occurred()) SWIG_fail
;
2740 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2748 static PyObject
*_wrap_AnimationPlayer_DrawFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2749 PyObject
*resultobj
;
2750 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2755 PyObject
* obj0
= 0 ;
2756 PyObject
* obj1
= 0 ;
2757 PyObject
* obj2
= 0 ;
2758 PyObject
* obj3
= 0 ;
2760 (char *) "self",(char *) "frame",(char *) "dc",(char *) "pos", NULL
2763 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:AnimationPlayer_DrawFrame",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
2764 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2765 if (SWIG_arg_fail(1)) SWIG_fail
;
2767 arg2
= (int)(SWIG_As_int(obj1
));
2768 if (SWIG_arg_fail(2)) SWIG_fail
;
2771 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxDC
, SWIG_POINTER_EXCEPTION
| 0);
2772 if (SWIG_arg_fail(3)) SWIG_fail
;
2774 SWIG_null_ref("wxDC");
2776 if (SWIG_arg_fail(3)) SWIG_fail
;
2780 if ( ! wxPoint_helper(obj3
, &arg4
)) SWIG_fail
;
2783 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2784 (arg1
)->DrawFrame(arg2
,*arg3
,(wxPoint
const &)*arg4
);
2786 wxPyEndAllowThreads(__tstate
);
2787 if (PyErr_Occurred()) SWIG_fail
;
2789 Py_INCREF(Py_None
); resultobj
= Py_None
;
2796 static PyObject
*_wrap_AnimationPlayer_DrawBackground(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2797 PyObject
*resultobj
;
2798 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2801 wxColour
*arg4
= 0 ;
2804 PyObject
* obj0
= 0 ;
2805 PyObject
* obj1
= 0 ;
2806 PyObject
* obj2
= 0 ;
2807 PyObject
* obj3
= 0 ;
2809 (char *) "self",(char *) "dc",(char *) "pos",(char *) "colour", NULL
2812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOOO:AnimationPlayer_DrawBackground",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
)) goto fail
;
2813 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2814 if (SWIG_arg_fail(1)) SWIG_fail
;
2816 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxDC
, SWIG_POINTER_EXCEPTION
| 0);
2817 if (SWIG_arg_fail(2)) SWIG_fail
;
2819 SWIG_null_ref("wxDC");
2821 if (SWIG_arg_fail(2)) SWIG_fail
;
2825 if ( ! wxPoint_helper(obj2
, &arg3
)) SWIG_fail
;
2829 if ( ! wxColour_helper(obj3
, &arg4
)) SWIG_fail
;
2832 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2833 (arg1
)->DrawBackground(*arg2
,(wxPoint
const &)*arg3
,(wxColour
const &)*arg4
);
2835 wxPyEndAllowThreads(__tstate
);
2836 if (PyErr_Occurred()) SWIG_fail
;
2838 Py_INCREF(Py_None
); resultobj
= Py_None
;
2845 static PyObject
*_wrap_AnimationPlayer_ClearCache(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2846 PyObject
*resultobj
;
2847 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2848 PyObject
* obj0
= 0 ;
2850 (char *) "self", NULL
2853 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_ClearCache",kwnames
,&obj0
)) goto fail
;
2854 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2855 if (SWIG_arg_fail(1)) SWIG_fail
;
2857 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2858 (arg1
)->ClearCache();
2860 wxPyEndAllowThreads(__tstate
);
2861 if (PyErr_Occurred()) SWIG_fail
;
2863 Py_INCREF(Py_None
); resultobj
= Py_None
;
2870 static PyObject
*_wrap_AnimationPlayer_SaveBackground(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2871 PyObject
*resultobj
;
2872 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2875 PyObject
* obj0
= 0 ;
2876 PyObject
* obj1
= 0 ;
2878 (char *) "self",(char *) "rect", NULL
2881 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationPlayer_SaveBackground",kwnames
,&obj0
,&obj1
)) goto fail
;
2882 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2883 if (SWIG_arg_fail(1)) SWIG_fail
;
2886 if ( ! wxRect_helper(obj1
, &arg2
)) SWIG_fail
;
2889 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2890 (arg1
)->SaveBackground((wxRect
const &)*arg2
);
2892 wxPyEndAllowThreads(__tstate
);
2893 if (PyErr_Occurred()) SWIG_fail
;
2895 Py_INCREF(Py_None
); resultobj
= Py_None
;
2902 static PyObject
*_wrap_AnimationPlayer_GetBackingStore(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2903 PyObject
*resultobj
;
2904 wxAnimationPlayer
*arg1
= (wxAnimationPlayer
*) 0 ;
2906 PyObject
* obj0
= 0 ;
2908 (char *) "self", NULL
2911 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationPlayer_GetBackingStore",kwnames
,&obj0
)) goto fail
;
2912 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationPlayer
, SWIG_POINTER_EXCEPTION
| 0);
2913 if (SWIG_arg_fail(1)) SWIG_fail
;
2915 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2917 wxBitmap
&_result_ref
= (arg1
)->GetBackingStore();
2918 result
= (wxBitmap
*) &_result_ref
;
2921 wxPyEndAllowThreads(__tstate
);
2922 if (PyErr_Occurred()) SWIG_fail
;
2925 wxBitmap
* resultptr
= new wxBitmap(*result
);
2926 resultobj
= SWIG_NewPointerObj((void*)(resultptr
), SWIGTYPE_p_wxBitmap
, 1);
2934 static PyObject
* AnimationPlayer_swigregister(PyObject
*, PyObject
*args
) {
2936 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2937 SWIG_TypeClientData(SWIGTYPE_p_wxAnimationPlayer
, obj
);
2939 return Py_BuildValue((char *)"");
2941 static PyObject
*_wrap_delete_AnimationBase(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2942 PyObject
*resultobj
;
2943 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
2944 PyObject
* obj0
= 0 ;
2946 (char *) "self", NULL
2949 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_AnimationBase",kwnames
,&obj0
)) goto fail
;
2950 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
2951 if (SWIG_arg_fail(1)) SWIG_fail
;
2953 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2956 wxPyEndAllowThreads(__tstate
);
2957 if (PyErr_Occurred()) SWIG_fail
;
2959 Py_INCREF(Py_None
); resultobj
= Py_None
;
2966 static PyObject
*_wrap_AnimationBase_GetFrameCount(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2967 PyObject
*resultobj
;
2968 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
2970 PyObject
* obj0
= 0 ;
2972 (char *) "self", NULL
2975 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationBase_GetFrameCount",kwnames
,&obj0
)) goto fail
;
2976 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
2977 if (SWIG_arg_fail(1)) SWIG_fail
;
2979 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2980 result
= (int)((wxAnimationBase
const *)arg1
)->GetFrameCount();
2982 wxPyEndAllowThreads(__tstate
);
2983 if (PyErr_Occurred()) SWIG_fail
;
2986 resultobj
= SWIG_From_int((int)(result
));
2994 static PyObject
*_wrap_AnimationBase_GetFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2995 PyObject
*resultobj
;
2996 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
2999 PyObject
* obj0
= 0 ;
3000 PyObject
* obj1
= 0 ;
3002 (char *) "self",(char *) "i", NULL
3005 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationBase_GetFrame",kwnames
,&obj0
,&obj1
)) goto fail
;
3006 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
3007 if (SWIG_arg_fail(1)) SWIG_fail
;
3009 arg2
= (int)(SWIG_As_int(obj1
));
3010 if (SWIG_arg_fail(2)) SWIG_fail
;
3013 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3014 result
= (wxImage
*)((wxAnimationBase
const *)arg1
)->GetFrame(arg2
);
3016 wxPyEndAllowThreads(__tstate
);
3017 if (PyErr_Occurred()) SWIG_fail
;
3020 resultobj
= wxPyMake_wxObject(result
, 0);
3028 static PyObject
*_wrap_AnimationBase_GetDisposalMethod(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3029 PyObject
*resultobj
;
3030 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
3032 wxAnimationDisposal result
;
3033 PyObject
* obj0
= 0 ;
3034 PyObject
* obj1
= 0 ;
3036 (char *) "self",(char *) "i", NULL
3039 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationBase_GetDisposalMethod",kwnames
,&obj0
,&obj1
)) goto fail
;
3040 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
3041 if (SWIG_arg_fail(1)) SWIG_fail
;
3043 arg2
= (int)(SWIG_As_int(obj1
));
3044 if (SWIG_arg_fail(2)) SWIG_fail
;
3047 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3048 result
= (wxAnimationDisposal
)((wxAnimationBase
const *)arg1
)->GetDisposalMethod(arg2
);
3050 wxPyEndAllowThreads(__tstate
);
3051 if (PyErr_Occurred()) SWIG_fail
;
3053 resultobj
= SWIG_From_int((result
));
3060 static PyObject
*_wrap_AnimationBase_GetFrameRect(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3061 PyObject
*resultobj
;
3062 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
3065 PyObject
* obj0
= 0 ;
3066 PyObject
* obj1
= 0 ;
3068 (char *) "self",(char *) "i", NULL
3071 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationBase_GetFrameRect",kwnames
,&obj0
,&obj1
)) goto fail
;
3072 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
3073 if (SWIG_arg_fail(1)) SWIG_fail
;
3075 arg2
= (int)(SWIG_As_int(obj1
));
3076 if (SWIG_arg_fail(2)) SWIG_fail
;
3079 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3080 result
= ((wxAnimationBase
const *)arg1
)->GetFrameRect(arg2
);
3082 wxPyEndAllowThreads(__tstate
);
3083 if (PyErr_Occurred()) SWIG_fail
;
3087 resultptr
= new wxRect((wxRect
&)(result
));
3088 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxRect
, 1);
3096 static PyObject
*_wrap_AnimationBase_GetDelay(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3097 PyObject
*resultobj
;
3098 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
3101 PyObject
* obj0
= 0 ;
3102 PyObject
* obj1
= 0 ;
3104 (char *) "self",(char *) "i", NULL
3107 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationBase_GetDelay",kwnames
,&obj0
,&obj1
)) goto fail
;
3108 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
3109 if (SWIG_arg_fail(1)) SWIG_fail
;
3111 arg2
= (int)(SWIG_As_int(obj1
));
3112 if (SWIG_arg_fail(2)) SWIG_fail
;
3115 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3116 result
= (int)((wxAnimationBase
const *)arg1
)->GetDelay(arg2
);
3118 wxPyEndAllowThreads(__tstate
);
3119 if (PyErr_Occurred()) SWIG_fail
;
3122 resultobj
= SWIG_From_int((int)(result
));
3130 static PyObject
*_wrap_AnimationBase_GetLogicalScreenSize(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3131 PyObject
*resultobj
;
3132 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
3134 PyObject
* obj0
= 0 ;
3136 (char *) "self", NULL
3139 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationBase_GetLogicalScreenSize",kwnames
,&obj0
)) goto fail
;
3140 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
3141 if (SWIG_arg_fail(1)) SWIG_fail
;
3143 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3144 result
= ((wxAnimationBase
const *)arg1
)->GetLogicalScreenSize();
3146 wxPyEndAllowThreads(__tstate
);
3147 if (PyErr_Occurred()) SWIG_fail
;
3151 resultptr
= new wxSize((wxSize
&)(result
));
3152 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxSize
, 1);
3160 static PyObject
*_wrap_AnimationBase_GetBackgroundColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3161 PyObject
*resultobj
;
3162 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
3163 wxColour
*arg2
= 0 ;
3166 PyObject
* obj0
= 0 ;
3167 PyObject
* obj1
= 0 ;
3169 (char *) "self",(char *) "col", NULL
3172 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationBase_GetBackgroundColour",kwnames
,&obj0
,&obj1
)) goto fail
;
3173 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
3174 if (SWIG_arg_fail(1)) SWIG_fail
;
3177 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
3180 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3181 result
= (bool)((wxAnimationBase
const *)arg1
)->GetBackgroundColour(*arg2
);
3183 wxPyEndAllowThreads(__tstate
);
3184 if (PyErr_Occurred()) SWIG_fail
;
3187 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3195 static PyObject
*_wrap_AnimationBase_GetTransparentColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3196 PyObject
*resultobj
;
3197 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
3198 wxColour
*arg2
= 0 ;
3201 PyObject
* obj0
= 0 ;
3202 PyObject
* obj1
= 0 ;
3204 (char *) "self",(char *) "col", NULL
3207 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationBase_GetTransparentColour",kwnames
,&obj0
,&obj1
)) goto fail
;
3208 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
3209 if (SWIG_arg_fail(1)) SWIG_fail
;
3212 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
3215 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3216 result
= (bool)((wxAnimationBase
const *)arg1
)->GetTransparentColour(*arg2
);
3218 wxPyEndAllowThreads(__tstate
);
3219 if (PyErr_Occurred()) SWIG_fail
;
3222 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3230 static PyObject
*_wrap_AnimationBase_IsValid(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3231 PyObject
*resultobj
;
3232 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
3234 PyObject
* obj0
= 0 ;
3236 (char *) "self", NULL
3239 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:AnimationBase_IsValid",kwnames
,&obj0
)) goto fail
;
3240 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
3241 if (SWIG_arg_fail(1)) SWIG_fail
;
3243 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3244 result
= (bool)((wxAnimationBase
const *)arg1
)->IsValid();
3246 wxPyEndAllowThreads(__tstate
);
3247 if (PyErr_Occurred()) SWIG_fail
;
3250 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3258 static PyObject
*_wrap_AnimationBase_LoadFile(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3259 PyObject
*resultobj
;
3260 wxAnimationBase
*arg1
= (wxAnimationBase
*) 0 ;
3261 wxString
*arg2
= 0 ;
3263 bool temp2
= false ;
3264 PyObject
* obj0
= 0 ;
3265 PyObject
* obj1
= 0 ;
3267 (char *) "self",(char *) "filename", NULL
3270 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:AnimationBase_LoadFile",kwnames
,&obj0
,&obj1
)) goto fail
;
3271 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxAnimationBase
, SWIG_POINTER_EXCEPTION
| 0);
3272 if (SWIG_arg_fail(1)) SWIG_fail
;
3274 arg2
= wxString_in_helper(obj1
);
3275 if (arg2
== NULL
) SWIG_fail
;
3279 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3280 result
= (bool)(arg1
)->LoadFile((wxString
const &)*arg2
);
3282 wxPyEndAllowThreads(__tstate
);
3283 if (PyErr_Occurred()) SWIG_fail
;
3286 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3302 static PyObject
* AnimationBase_swigregister(PyObject
*, PyObject
*args
) {
3304 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3305 SWIG_TypeClientData(SWIGTYPE_p_wxAnimationBase
, obj
);
3307 return Py_BuildValue((char *)"");
3309 static PyObject
*_wrap_new_GIFAnimation(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3310 PyObject
*resultobj
;
3311 wxGIFAnimation
*result
;
3316 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_GIFAnimation",kwnames
)) goto fail
;
3318 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3319 result
= (wxGIFAnimation
*)new wxGIFAnimation();
3321 wxPyEndAllowThreads(__tstate
);
3322 if (PyErr_Occurred()) SWIG_fail
;
3324 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxGIFAnimation
, 1);
3331 static PyObject
*_wrap_delete_GIFAnimation(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3332 PyObject
*resultobj
;
3333 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3334 PyObject
* obj0
= 0 ;
3336 (char *) "self", NULL
3339 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:delete_GIFAnimation",kwnames
,&obj0
)) goto fail
;
3340 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3341 if (SWIG_arg_fail(1)) SWIG_fail
;
3343 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3346 wxPyEndAllowThreads(__tstate
);
3347 if (PyErr_Occurred()) SWIG_fail
;
3349 Py_INCREF(Py_None
); resultobj
= Py_None
;
3356 static PyObject
*_wrap_GIFAnimation_GetFrameCount(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3357 PyObject
*resultobj
;
3358 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3360 PyObject
* obj0
= 0 ;
3362 (char *) "self", NULL
3365 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GIFAnimation_GetFrameCount",kwnames
,&obj0
)) goto fail
;
3366 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3367 if (SWIG_arg_fail(1)) SWIG_fail
;
3369 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3370 result
= (int)((wxGIFAnimation
const *)arg1
)->GetFrameCount();
3372 wxPyEndAllowThreads(__tstate
);
3373 if (PyErr_Occurred()) SWIG_fail
;
3376 resultobj
= SWIG_From_int((int)(result
));
3384 static PyObject
*_wrap_GIFAnimation_GetFrame(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3385 PyObject
*resultobj
;
3386 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3389 PyObject
* obj0
= 0 ;
3390 PyObject
* obj1
= 0 ;
3392 (char *) "self",(char *) "i", NULL
3395 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:GIFAnimation_GetFrame",kwnames
,&obj0
,&obj1
)) goto fail
;
3396 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3397 if (SWIG_arg_fail(1)) SWIG_fail
;
3399 arg2
= (int)(SWIG_As_int(obj1
));
3400 if (SWIG_arg_fail(2)) SWIG_fail
;
3403 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3404 result
= (wxImage
*)((wxGIFAnimation
const *)arg1
)->GetFrame(arg2
);
3406 wxPyEndAllowThreads(__tstate
);
3407 if (PyErr_Occurred()) SWIG_fail
;
3410 resultobj
= wxPyMake_wxObject(result
, 0);
3418 static PyObject
*_wrap_GIFAnimation_GetDisposalMethod(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3419 PyObject
*resultobj
;
3420 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3422 wxAnimationDisposal result
;
3423 PyObject
* obj0
= 0 ;
3424 PyObject
* obj1
= 0 ;
3426 (char *) "self",(char *) "i", NULL
3429 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:GIFAnimation_GetDisposalMethod",kwnames
,&obj0
,&obj1
)) goto fail
;
3430 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3431 if (SWIG_arg_fail(1)) SWIG_fail
;
3433 arg2
= (int)(SWIG_As_int(obj1
));
3434 if (SWIG_arg_fail(2)) SWIG_fail
;
3437 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3438 result
= (wxAnimationDisposal
)((wxGIFAnimation
const *)arg1
)->GetDisposalMethod(arg2
);
3440 wxPyEndAllowThreads(__tstate
);
3441 if (PyErr_Occurred()) SWIG_fail
;
3443 resultobj
= SWIG_From_int((result
));
3450 static PyObject
*_wrap_GIFAnimation_GetFrameRect(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3451 PyObject
*resultobj
;
3452 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3455 PyObject
* obj0
= 0 ;
3456 PyObject
* obj1
= 0 ;
3458 (char *) "self",(char *) "i", NULL
3461 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:GIFAnimation_GetFrameRect",kwnames
,&obj0
,&obj1
)) goto fail
;
3462 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3463 if (SWIG_arg_fail(1)) SWIG_fail
;
3465 arg2
= (int)(SWIG_As_int(obj1
));
3466 if (SWIG_arg_fail(2)) SWIG_fail
;
3469 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3470 result
= ((wxGIFAnimation
const *)arg1
)->GetFrameRect(arg2
);
3472 wxPyEndAllowThreads(__tstate
);
3473 if (PyErr_Occurred()) SWIG_fail
;
3477 resultptr
= new wxRect((wxRect
&)(result
));
3478 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxRect
, 1);
3486 static PyObject
*_wrap_GIFAnimation_GetDelay(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3487 PyObject
*resultobj
;
3488 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3491 PyObject
* obj0
= 0 ;
3492 PyObject
* obj1
= 0 ;
3494 (char *) "self",(char *) "i", NULL
3497 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:GIFAnimation_GetDelay",kwnames
,&obj0
,&obj1
)) goto fail
;
3498 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3499 if (SWIG_arg_fail(1)) SWIG_fail
;
3501 arg2
= (int)(SWIG_As_int(obj1
));
3502 if (SWIG_arg_fail(2)) SWIG_fail
;
3505 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3506 result
= (int)((wxGIFAnimation
const *)arg1
)->GetDelay(arg2
);
3508 wxPyEndAllowThreads(__tstate
);
3509 if (PyErr_Occurred()) SWIG_fail
;
3512 resultobj
= SWIG_From_int((int)(result
));
3520 static PyObject
*_wrap_GIFAnimation_GetLogicalScreenSize(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3521 PyObject
*resultobj
;
3522 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3524 PyObject
* obj0
= 0 ;
3526 (char *) "self", NULL
3529 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GIFAnimation_GetLogicalScreenSize",kwnames
,&obj0
)) goto fail
;
3530 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3531 if (SWIG_arg_fail(1)) SWIG_fail
;
3533 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3534 result
= ((wxGIFAnimation
const *)arg1
)->GetLogicalScreenSize();
3536 wxPyEndAllowThreads(__tstate
);
3537 if (PyErr_Occurred()) SWIG_fail
;
3541 resultptr
= new wxSize((wxSize
&)(result
));
3542 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxSize
, 1);
3550 static PyObject
*_wrap_GIFAnimation_GetBackgroundColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3551 PyObject
*resultobj
;
3552 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3553 wxColour
*arg2
= 0 ;
3556 PyObject
* obj0
= 0 ;
3557 PyObject
* obj1
= 0 ;
3559 (char *) "self",(char *) "col", NULL
3562 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:GIFAnimation_GetBackgroundColour",kwnames
,&obj0
,&obj1
)) goto fail
;
3563 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3564 if (SWIG_arg_fail(1)) SWIG_fail
;
3567 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
3570 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3571 result
= (bool)((wxGIFAnimation
const *)arg1
)->GetBackgroundColour(*arg2
);
3573 wxPyEndAllowThreads(__tstate
);
3574 if (PyErr_Occurred()) SWIG_fail
;
3577 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3585 static PyObject
*_wrap_GIFAnimation_GetTransparentColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3586 PyObject
*resultobj
;
3587 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3588 wxColour
*arg2
= 0 ;
3591 PyObject
* obj0
= 0 ;
3592 PyObject
* obj1
= 0 ;
3594 (char *) "self",(char *) "col", NULL
3597 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:GIFAnimation_GetTransparentColour",kwnames
,&obj0
,&obj1
)) goto fail
;
3598 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3599 if (SWIG_arg_fail(1)) SWIG_fail
;
3602 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
3605 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3606 result
= (bool)((wxGIFAnimation
const *)arg1
)->GetTransparentColour(*arg2
);
3608 wxPyEndAllowThreads(__tstate
);
3609 if (PyErr_Occurred()) SWIG_fail
;
3612 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3620 static PyObject
*_wrap_GIFAnimation_IsValid(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3621 PyObject
*resultobj
;
3622 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3624 PyObject
* obj0
= 0 ;
3626 (char *) "self", NULL
3629 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GIFAnimation_IsValid",kwnames
,&obj0
)) goto fail
;
3630 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3631 if (SWIG_arg_fail(1)) SWIG_fail
;
3633 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3634 result
= (bool)((wxGIFAnimation
const *)arg1
)->IsValid();
3636 wxPyEndAllowThreads(__tstate
);
3637 if (PyErr_Occurred()) SWIG_fail
;
3640 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3648 static PyObject
*_wrap_GIFAnimation_LoadFile(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3649 PyObject
*resultobj
;
3650 wxGIFAnimation
*arg1
= (wxGIFAnimation
*) 0 ;
3651 wxString
*arg2
= 0 ;
3653 bool temp2
= false ;
3654 PyObject
* obj0
= 0 ;
3655 PyObject
* obj1
= 0 ;
3657 (char *) "self",(char *) "filename", NULL
3660 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:GIFAnimation_LoadFile",kwnames
,&obj0
,&obj1
)) goto fail
;
3661 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimation
, SWIG_POINTER_EXCEPTION
| 0);
3662 if (SWIG_arg_fail(1)) SWIG_fail
;
3664 arg2
= wxString_in_helper(obj1
);
3665 if (arg2
== NULL
) SWIG_fail
;
3669 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3670 result
= (bool)(arg1
)->LoadFile((wxString
const &)*arg2
);
3672 wxPyEndAllowThreads(__tstate
);
3673 if (PyErr_Occurred()) SWIG_fail
;
3676 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3692 static PyObject
* GIFAnimation_swigregister(PyObject
*, PyObject
*args
) {
3694 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3695 SWIG_TypeClientData(SWIGTYPE_p_wxGIFAnimation
, obj
);
3697 return Py_BuildValue((char *)"");
3699 static PyObject
*_wrap_new_GIFAnimationCtrl(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3700 PyObject
*resultobj
;
3701 wxWindow
*arg1
= (wxWindow
*) 0 ;
3702 int arg2
= (int) -1 ;
3703 wxString
const &arg3_defvalue
= wxPyEmptyString
;
3704 wxString
*arg3
= (wxString
*) &arg3_defvalue
;
3705 wxPoint
const &arg4_defvalue
= wxDefaultPosition
;
3706 wxPoint
*arg4
= (wxPoint
*) &arg4_defvalue
;
3707 wxSize
const &arg5_defvalue
= wxDefaultSize
;
3708 wxSize
*arg5
= (wxSize
*) &arg5_defvalue
;
3709 long arg6
= (long) wxAN_FIT_ANIMATION
|wxNO_BORDER
;
3710 wxString
const &arg7_defvalue
= wxPyAnimationControlNameStr
;
3711 wxString
*arg7
= (wxString
*) &arg7_defvalue
;
3712 wxGIFAnimationCtrl
*result
;
3713 bool temp3
= false ;
3716 bool temp7
= false ;
3717 PyObject
* obj0
= 0 ;
3718 PyObject
* obj1
= 0 ;
3719 PyObject
* obj2
= 0 ;
3720 PyObject
* obj3
= 0 ;
3721 PyObject
* obj4
= 0 ;
3722 PyObject
* obj5
= 0 ;
3723 PyObject
* obj6
= 0 ;
3725 (char *) "parent",(char *) "id",(char *) "filename",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
3728 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOOOOO:new_GIFAnimationCtrl",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
)) goto fail
;
3729 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
3730 if (SWIG_arg_fail(1)) SWIG_fail
;
3733 arg2
= (int)(SWIG_As_int(obj1
));
3734 if (SWIG_arg_fail(2)) SWIG_fail
;
3739 arg3
= wxString_in_helper(obj2
);
3740 if (arg3
== NULL
) SWIG_fail
;
3747 if ( ! wxPoint_helper(obj3
, &arg4
)) SWIG_fail
;
3753 if ( ! wxSize_helper(obj4
, &arg5
)) SWIG_fail
;
3758 arg6
= (long)(SWIG_As_long(obj5
));
3759 if (SWIG_arg_fail(6)) SWIG_fail
;
3764 arg7
= wxString_in_helper(obj6
);
3765 if (arg7
== NULL
) SWIG_fail
;
3770 if (!wxPyCheckForApp()) SWIG_fail
;
3771 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3772 result
= (wxGIFAnimationCtrl
*)new wxGIFAnimationCtrl(arg1
,arg2
,(wxString
const &)*arg3
,(wxPoint
const &)*arg4
,(wxSize
const &)*arg5
,arg6
,(wxString
const &)*arg7
);
3774 wxPyEndAllowThreads(__tstate
);
3775 if (PyErr_Occurred()) SWIG_fail
;
3777 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxGIFAnimationCtrl
, 1);
3800 static PyObject
*_wrap_new_PreGIFAnimationCtrl(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3801 PyObject
*resultobj
;
3802 wxGIFAnimationCtrl
*result
;
3807 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_PreGIFAnimationCtrl",kwnames
)) goto fail
;
3809 if (!wxPyCheckForApp()) SWIG_fail
;
3810 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3811 result
= (wxGIFAnimationCtrl
*)new wxGIFAnimationCtrl();
3813 wxPyEndAllowThreads(__tstate
);
3814 if (PyErr_Occurred()) SWIG_fail
;
3816 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxGIFAnimationCtrl
, 1);
3823 static PyObject
*_wrap_GIFAnimationCtrl_Create(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3824 PyObject
*resultobj
;
3825 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
3826 wxWindow
*arg2
= (wxWindow
*) 0 ;
3827 int arg3
= (int) -1 ;
3828 wxString
const &arg4_defvalue
= wxPyEmptyString
;
3829 wxString
*arg4
= (wxString
*) &arg4_defvalue
;
3830 wxPoint
const &arg5_defvalue
= wxDefaultPosition
;
3831 wxPoint
*arg5
= (wxPoint
*) &arg5_defvalue
;
3832 wxSize
const &arg6_defvalue
= wxDefaultSize
;
3833 wxSize
*arg6
= (wxSize
*) &arg6_defvalue
;
3834 long arg7
= (long) wxAN_FIT_ANIMATION
|wxNO_BORDER
;
3835 wxString
const &arg8_defvalue
= wxPyAnimationControlNameStr
;
3836 wxString
*arg8
= (wxString
*) &arg8_defvalue
;
3838 bool temp4
= false ;
3841 bool temp8
= false ;
3842 PyObject
* obj0
= 0 ;
3843 PyObject
* obj1
= 0 ;
3844 PyObject
* obj2
= 0 ;
3845 PyObject
* obj3
= 0 ;
3846 PyObject
* obj4
= 0 ;
3847 PyObject
* obj5
= 0 ;
3848 PyObject
* obj6
= 0 ;
3849 PyObject
* obj7
= 0 ;
3851 (char *) "self",(char *) "parent",(char *) "id",(char *) "filename",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
3854 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|OOOOOO:GIFAnimationCtrl_Create",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
,&obj7
)) goto fail
;
3855 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
3856 if (SWIG_arg_fail(1)) SWIG_fail
;
3857 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
3858 if (SWIG_arg_fail(2)) SWIG_fail
;
3861 arg3
= (int)(SWIG_As_int(obj2
));
3862 if (SWIG_arg_fail(3)) SWIG_fail
;
3867 arg4
= wxString_in_helper(obj3
);
3868 if (arg4
== NULL
) SWIG_fail
;
3875 if ( ! wxPoint_helper(obj4
, &arg5
)) SWIG_fail
;
3881 if ( ! wxSize_helper(obj5
, &arg6
)) SWIG_fail
;
3886 arg7
= (long)(SWIG_As_long(obj6
));
3887 if (SWIG_arg_fail(7)) SWIG_fail
;
3892 arg8
= wxString_in_helper(obj7
);
3893 if (arg8
== NULL
) SWIG_fail
;
3898 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3899 result
= (bool)(arg1
)->Create(arg2
,arg3
,(wxString
const &)*arg4
,(wxPoint
const &)*arg5
,(wxSize
const &)*arg6
,arg7
,(wxString
const &)*arg8
);
3901 wxPyEndAllowThreads(__tstate
);
3902 if (PyErr_Occurred()) SWIG_fail
;
3905 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3929 static PyObject
*_wrap_GIFAnimationCtrl_LoadFile(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3930 PyObject
*resultobj
;
3931 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
3932 wxString
const &arg2_defvalue
= wxPyEmptyString
;
3933 wxString
*arg2
= (wxString
*) &arg2_defvalue
;
3935 bool temp2
= false ;
3936 PyObject
* obj0
= 0 ;
3937 PyObject
* obj1
= 0 ;
3939 (char *) "self",(char *) "filename", NULL
3942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:GIFAnimationCtrl_LoadFile",kwnames
,&obj0
,&obj1
)) goto fail
;
3943 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
3944 if (SWIG_arg_fail(1)) SWIG_fail
;
3947 arg2
= wxString_in_helper(obj1
);
3948 if (arg2
== NULL
) SWIG_fail
;
3953 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3954 result
= (bool)(arg1
)->LoadFile((wxString
const &)*arg2
);
3956 wxPyEndAllowThreads(__tstate
);
3957 if (PyErr_Occurred()) SWIG_fail
;
3960 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
3976 static PyObject
*_wrap_GIFAnimationCtrl_Play(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3977 PyObject
*resultobj
;
3978 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
3979 bool arg2
= (bool) true ;
3981 PyObject
* obj0
= 0 ;
3982 PyObject
* obj1
= 0 ;
3984 (char *) "self",(char *) "looped", NULL
3987 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:GIFAnimationCtrl_Play",kwnames
,&obj0
,&obj1
)) goto fail
;
3988 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
3989 if (SWIG_arg_fail(1)) SWIG_fail
;
3992 arg2
= (bool)(SWIG_As_bool(obj1
));
3993 if (SWIG_arg_fail(2)) SWIG_fail
;
3997 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3998 result
= (bool)(arg1
)->Play(arg2
);
4000 wxPyEndAllowThreads(__tstate
);
4001 if (PyErr_Occurred()) SWIG_fail
;
4004 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4012 static PyObject
*_wrap_GIFAnimationCtrl_Stop(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4013 PyObject
*resultobj
;
4014 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
4015 PyObject
* obj0
= 0 ;
4017 (char *) "self", NULL
4020 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GIFAnimationCtrl_Stop",kwnames
,&obj0
)) goto fail
;
4021 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
4022 if (SWIG_arg_fail(1)) SWIG_fail
;
4024 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4027 wxPyEndAllowThreads(__tstate
);
4028 if (PyErr_Occurred()) SWIG_fail
;
4030 Py_INCREF(Py_None
); resultobj
= Py_None
;
4037 static PyObject
*_wrap_GIFAnimationCtrl_FitToAnimation(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4038 PyObject
*resultobj
;
4039 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
4040 PyObject
* obj0
= 0 ;
4042 (char *) "self", NULL
4045 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GIFAnimationCtrl_FitToAnimation",kwnames
,&obj0
)) goto fail
;
4046 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
4047 if (SWIG_arg_fail(1)) SWIG_fail
;
4049 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4050 (arg1
)->FitToAnimation();
4052 wxPyEndAllowThreads(__tstate
);
4053 if (PyErr_Occurred()) SWIG_fail
;
4055 Py_INCREF(Py_None
); resultobj
= Py_None
;
4062 static PyObject
*_wrap_GIFAnimationCtrl_IsPlaying(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4063 PyObject
*resultobj
;
4064 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
4066 PyObject
* obj0
= 0 ;
4068 (char *) "self", NULL
4071 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GIFAnimationCtrl_IsPlaying",kwnames
,&obj0
)) goto fail
;
4072 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
4073 if (SWIG_arg_fail(1)) SWIG_fail
;
4075 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4076 result
= (bool)((wxGIFAnimationCtrl
const *)arg1
)->IsPlaying();
4078 wxPyEndAllowThreads(__tstate
);
4079 if (PyErr_Occurred()) SWIG_fail
;
4082 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
4090 static PyObject
*_wrap_GIFAnimationCtrl_GetPlayer(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4091 PyObject
*resultobj
;
4092 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
4093 wxAnimationPlayer
*result
;
4094 PyObject
* obj0
= 0 ;
4096 (char *) "self", NULL
4099 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GIFAnimationCtrl_GetPlayer",kwnames
,&obj0
)) goto fail
;
4100 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
4101 if (SWIG_arg_fail(1)) SWIG_fail
;
4103 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4105 wxAnimationPlayer
&_result_ref
= (arg1
)->GetPlayer();
4106 result
= (wxAnimationPlayer
*) &_result_ref
;
4109 wxPyEndAllowThreads(__tstate
);
4110 if (PyErr_Occurred()) SWIG_fail
;
4112 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxAnimationPlayer
, 0);
4119 static PyObject
*_wrap_GIFAnimationCtrl_GetAnimation(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4120 PyObject
*resultobj
;
4121 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
4122 wxAnimationBase
*result
;
4123 PyObject
* obj0
= 0 ;
4125 (char *) "self", NULL
4128 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GIFAnimationCtrl_GetAnimation",kwnames
,&obj0
)) goto fail
;
4129 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
4130 if (SWIG_arg_fail(1)) SWIG_fail
;
4132 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4133 result
= (wxAnimationBase
*)(arg1
)->GetAnimation();
4135 wxPyEndAllowThreads(__tstate
);
4136 if (PyErr_Occurred()) SWIG_fail
;
4138 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxAnimationBase
, 0);
4145 static PyObject
*_wrap_GIFAnimationCtrl_GetFilename(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4146 PyObject
*resultobj
;
4147 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
4149 PyObject
* obj0
= 0 ;
4151 (char *) "self", NULL
4154 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:GIFAnimationCtrl_GetFilename",kwnames
,&obj0
)) goto fail
;
4155 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
4156 if (SWIG_arg_fail(1)) SWIG_fail
;
4158 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4160 wxString
const &_result_ref
= ((wxGIFAnimationCtrl
const *)arg1
)->GetFilename();
4161 result
= (wxString
*) &_result_ref
;
4164 wxPyEndAllowThreads(__tstate
);
4165 if (PyErr_Occurred()) SWIG_fail
;
4169 resultobj
= PyUnicode_FromWideChar(result
->c_str(), result
->Len());
4171 resultobj
= PyString_FromStringAndSize(result
->c_str(), result
->Len());
4180 static PyObject
*_wrap_GIFAnimationCtrl_SetFilename(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
4181 PyObject
*resultobj
;
4182 wxGIFAnimationCtrl
*arg1
= (wxGIFAnimationCtrl
*) 0 ;
4183 wxString
*arg2
= 0 ;
4184 bool temp2
= false ;
4185 PyObject
* obj0
= 0 ;
4186 PyObject
* obj1
= 0 ;
4188 (char *) "self",(char *) "filename", NULL
4191 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:GIFAnimationCtrl_SetFilename",kwnames
,&obj0
,&obj1
)) goto fail
;
4192 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxGIFAnimationCtrl
, SWIG_POINTER_EXCEPTION
| 0);
4193 if (SWIG_arg_fail(1)) SWIG_fail
;
4195 arg2
= wxString_in_helper(obj1
);
4196 if (arg2
== NULL
) SWIG_fail
;
4200 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4201 (arg1
)->SetFilename((wxString
const &)*arg2
);
4203 wxPyEndAllowThreads(__tstate
);
4204 if (PyErr_Occurred()) SWIG_fail
;
4206 Py_INCREF(Py_None
); resultobj
= Py_None
;
4221 static PyObject
* GIFAnimationCtrl_swigregister(PyObject
*, PyObject
*args
) {
4223 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
4224 SWIG_TypeClientData(SWIGTYPE_p_wxGIFAnimationCtrl
, obj
);
4226 return Py_BuildValue((char *)"");
4228 static PyMethodDef SwigMethods
[] = {
4229 { (char *)"new_AnimationPlayer", (PyCFunction
) _wrap_new_AnimationPlayer
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4230 { (char *)"delete_AnimationPlayer", (PyCFunction
) _wrap_delete_AnimationPlayer
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4231 { (char *)"AnimationPlayer_SetAnimation", (PyCFunction
) _wrap_AnimationPlayer_SetAnimation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4232 { (char *)"AnimationPlayer_GetAnimation", (PyCFunction
) _wrap_AnimationPlayer_GetAnimation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4233 { (char *)"AnimationPlayer_SetDestroyAnimation", (PyCFunction
) _wrap_AnimationPlayer_SetDestroyAnimation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4234 { (char *)"AnimationPlayer_GetDestroyAnimation", (PyCFunction
) _wrap_AnimationPlayer_GetDestroyAnimation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4235 { (char *)"AnimationPlayer_SetCurrentFrame", (PyCFunction
) _wrap_AnimationPlayer_SetCurrentFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4236 { (char *)"AnimationPlayer_GetCurrentFrame", (PyCFunction
) _wrap_AnimationPlayer_GetCurrentFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4237 { (char *)"AnimationPlayer_SetWindow", (PyCFunction
) _wrap_AnimationPlayer_SetWindow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4238 { (char *)"AnimationPlayer_GetWindow", (PyCFunction
) _wrap_AnimationPlayer_GetWindow
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4239 { (char *)"AnimationPlayer_SetPosition", (PyCFunction
) _wrap_AnimationPlayer_SetPosition
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4240 { (char *)"AnimationPlayer_GetPosition", (PyCFunction
) _wrap_AnimationPlayer_GetPosition
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4241 { (char *)"AnimationPlayer_SetLooped", (PyCFunction
) _wrap_AnimationPlayer_SetLooped
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4242 { (char *)"AnimationPlayer_GetLooped", (PyCFunction
) _wrap_AnimationPlayer_GetLooped
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4243 { (char *)"AnimationPlayer_HasAnimation", (PyCFunction
) _wrap_AnimationPlayer_HasAnimation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4244 { (char *)"AnimationPlayer_IsPlaying", (PyCFunction
) _wrap_AnimationPlayer_IsPlaying
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4245 { (char *)"AnimationPlayer_UseBackgroundColour", (PyCFunction
) _wrap_AnimationPlayer_UseBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4246 { (char *)"AnimationPlayer_UsingBackgroundColour", (PyCFunction
) _wrap_AnimationPlayer_UsingBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4247 { (char *)"AnimationPlayer_SetCustomBackgroundColour", (PyCFunction
) _wrap_AnimationPlayer_SetCustomBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4248 { (char *)"AnimationPlayer_UsingCustomBackgroundColour", (PyCFunction
) _wrap_AnimationPlayer_UsingCustomBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4249 { (char *)"AnimationPlayer_GetCustomBackgroundColour", (PyCFunction
) _wrap_AnimationPlayer_GetCustomBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4250 { (char *)"AnimationPlayer_UseParentBackground", (PyCFunction
) _wrap_AnimationPlayer_UseParentBackground
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4251 { (char *)"AnimationPlayer_UsingParentBackground", (PyCFunction
) _wrap_AnimationPlayer_UsingParentBackground
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4252 { (char *)"AnimationPlayer_Play", (PyCFunction
) _wrap_AnimationPlayer_Play
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4253 { (char *)"AnimationPlayer_Build", (PyCFunction
) _wrap_AnimationPlayer_Build
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4254 { (char *)"AnimationPlayer_Stop", (PyCFunction
) _wrap_AnimationPlayer_Stop
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4255 { (char *)"AnimationPlayer_Draw", (PyCFunction
) _wrap_AnimationPlayer_Draw
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4256 { (char *)"AnimationPlayer_GetFrameCount", (PyCFunction
) _wrap_AnimationPlayer_GetFrameCount
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4257 { (char *)"AnimationPlayer_GetFrame", (PyCFunction
) _wrap_AnimationPlayer_GetFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4258 { (char *)"AnimationPlayer_GetDisposalMethod", (PyCFunction
) _wrap_AnimationPlayer_GetDisposalMethod
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4259 { (char *)"AnimationPlayer_GetFrameRect", (PyCFunction
) _wrap_AnimationPlayer_GetFrameRect
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4260 { (char *)"AnimationPlayer_GetDelay", (PyCFunction
) _wrap_AnimationPlayer_GetDelay
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4261 { (char *)"AnimationPlayer_GetLogicalScreenSize", (PyCFunction
) _wrap_AnimationPlayer_GetLogicalScreenSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4262 { (char *)"AnimationPlayer_GetBackgroundColour", (PyCFunction
) _wrap_AnimationPlayer_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4263 { (char *)"AnimationPlayer_GetTransparentColour", (PyCFunction
) _wrap_AnimationPlayer_GetTransparentColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4264 { (char *)"AnimationPlayer_PlayFrame", (PyCFunction
) _wrap_AnimationPlayer_PlayFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4265 { (char *)"AnimationPlayer_PlayNextFrame", (PyCFunction
) _wrap_AnimationPlayer_PlayNextFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4266 { (char *)"AnimationPlayer_DrawFrame", (PyCFunction
) _wrap_AnimationPlayer_DrawFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4267 { (char *)"AnimationPlayer_DrawBackground", (PyCFunction
) _wrap_AnimationPlayer_DrawBackground
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4268 { (char *)"AnimationPlayer_ClearCache", (PyCFunction
) _wrap_AnimationPlayer_ClearCache
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4269 { (char *)"AnimationPlayer_SaveBackground", (PyCFunction
) _wrap_AnimationPlayer_SaveBackground
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4270 { (char *)"AnimationPlayer_GetBackingStore", (PyCFunction
) _wrap_AnimationPlayer_GetBackingStore
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4271 { (char *)"AnimationPlayer_swigregister", AnimationPlayer_swigregister
, METH_VARARGS
, NULL
},
4272 { (char *)"delete_AnimationBase", (PyCFunction
) _wrap_delete_AnimationBase
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4273 { (char *)"AnimationBase_GetFrameCount", (PyCFunction
) _wrap_AnimationBase_GetFrameCount
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4274 { (char *)"AnimationBase_GetFrame", (PyCFunction
) _wrap_AnimationBase_GetFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4275 { (char *)"AnimationBase_GetDisposalMethod", (PyCFunction
) _wrap_AnimationBase_GetDisposalMethod
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4276 { (char *)"AnimationBase_GetFrameRect", (PyCFunction
) _wrap_AnimationBase_GetFrameRect
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4277 { (char *)"AnimationBase_GetDelay", (PyCFunction
) _wrap_AnimationBase_GetDelay
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4278 { (char *)"AnimationBase_GetLogicalScreenSize", (PyCFunction
) _wrap_AnimationBase_GetLogicalScreenSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4279 { (char *)"AnimationBase_GetBackgroundColour", (PyCFunction
) _wrap_AnimationBase_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4280 { (char *)"AnimationBase_GetTransparentColour", (PyCFunction
) _wrap_AnimationBase_GetTransparentColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4281 { (char *)"AnimationBase_IsValid", (PyCFunction
) _wrap_AnimationBase_IsValid
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4282 { (char *)"AnimationBase_LoadFile", (PyCFunction
) _wrap_AnimationBase_LoadFile
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4283 { (char *)"AnimationBase_swigregister", AnimationBase_swigregister
, METH_VARARGS
, NULL
},
4284 { (char *)"new_GIFAnimation", (PyCFunction
) _wrap_new_GIFAnimation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4285 { (char *)"delete_GIFAnimation", (PyCFunction
) _wrap_delete_GIFAnimation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4286 { (char *)"GIFAnimation_GetFrameCount", (PyCFunction
) _wrap_GIFAnimation_GetFrameCount
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4287 { (char *)"GIFAnimation_GetFrame", (PyCFunction
) _wrap_GIFAnimation_GetFrame
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4288 { (char *)"GIFAnimation_GetDisposalMethod", (PyCFunction
) _wrap_GIFAnimation_GetDisposalMethod
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4289 { (char *)"GIFAnimation_GetFrameRect", (PyCFunction
) _wrap_GIFAnimation_GetFrameRect
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4290 { (char *)"GIFAnimation_GetDelay", (PyCFunction
) _wrap_GIFAnimation_GetDelay
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4291 { (char *)"GIFAnimation_GetLogicalScreenSize", (PyCFunction
) _wrap_GIFAnimation_GetLogicalScreenSize
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4292 { (char *)"GIFAnimation_GetBackgroundColour", (PyCFunction
) _wrap_GIFAnimation_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4293 { (char *)"GIFAnimation_GetTransparentColour", (PyCFunction
) _wrap_GIFAnimation_GetTransparentColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4294 { (char *)"GIFAnimation_IsValid", (PyCFunction
) _wrap_GIFAnimation_IsValid
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4295 { (char *)"GIFAnimation_LoadFile", (PyCFunction
) _wrap_GIFAnimation_LoadFile
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4296 { (char *)"GIFAnimation_swigregister", GIFAnimation_swigregister
, METH_VARARGS
, NULL
},
4297 { (char *)"new_GIFAnimationCtrl", (PyCFunction
) _wrap_new_GIFAnimationCtrl
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4298 { (char *)"new_PreGIFAnimationCtrl", (PyCFunction
) _wrap_new_PreGIFAnimationCtrl
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4299 { (char *)"GIFAnimationCtrl_Create", (PyCFunction
) _wrap_GIFAnimationCtrl_Create
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4300 { (char *)"GIFAnimationCtrl_LoadFile", (PyCFunction
) _wrap_GIFAnimationCtrl_LoadFile
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4301 { (char *)"GIFAnimationCtrl_Play", (PyCFunction
) _wrap_GIFAnimationCtrl_Play
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4302 { (char *)"GIFAnimationCtrl_Stop", (PyCFunction
) _wrap_GIFAnimationCtrl_Stop
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4303 { (char *)"GIFAnimationCtrl_FitToAnimation", (PyCFunction
) _wrap_GIFAnimationCtrl_FitToAnimation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4304 { (char *)"GIFAnimationCtrl_IsPlaying", (PyCFunction
) _wrap_GIFAnimationCtrl_IsPlaying
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4305 { (char *)"GIFAnimationCtrl_GetPlayer", (PyCFunction
) _wrap_GIFAnimationCtrl_GetPlayer
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4306 { (char *)"GIFAnimationCtrl_GetAnimation", (PyCFunction
) _wrap_GIFAnimationCtrl_GetAnimation
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4307 { (char *)"GIFAnimationCtrl_GetFilename", (PyCFunction
) _wrap_GIFAnimationCtrl_GetFilename
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4308 { (char *)"GIFAnimationCtrl_SetFilename", (PyCFunction
) _wrap_GIFAnimationCtrl_SetFilename
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
4309 { (char *)"GIFAnimationCtrl_swigregister", GIFAnimationCtrl_swigregister
, METH_VARARGS
, NULL
},
4310 { NULL
, NULL
, 0, NULL
}
4314 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
4316 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
4317 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
4319 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
4320 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
4322 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
4323 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
4325 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
4326 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
4328 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
4329 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
4331 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
4332 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
4334 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
4335 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
4337 static void *_p_wxSizerTo_p_wxObject(void *x
) {
4338 return (void *)((wxObject
*) ((wxSizer
*) x
));
4340 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
4341 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
4343 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
4344 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
4346 static void *_p_wxEventTo_p_wxObject(void *x
) {
4347 return (void *)((wxObject
*) ((wxEvent
*) x
));
4349 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
4350 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
4352 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
4353 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
4355 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
4356 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
4358 static void *_p_wxAnimationBaseTo_p_wxObject(void *x
) {
4359 return (void *)((wxObject
*) ((wxAnimationBase
*) x
));
4361 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
4362 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
4364 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
4365 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
4367 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
4368 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
4370 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
4371 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
4373 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
4374 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
4376 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
4377 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
4379 static void *_p_wxControlTo_p_wxObject(void *x
) {
4380 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
4382 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
4383 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
4385 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
4386 return (void *)((wxObject
*) ((wxFSFile
*) x
));
4388 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
4389 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
4391 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
4392 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
4394 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
4395 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
4397 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
4398 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
4400 static void *_p_wxAnimationPlayerTo_p_wxObject(void *x
) {
4401 return (void *)((wxObject
*) ((wxAnimationPlayer
*) x
));
4403 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
4404 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
4406 static void *_p_wxDateEventTo_p_wxObject(void *x
) {
4407 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxDateEvent
*) x
));
4409 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
4410 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
4412 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
4413 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
4415 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
4416 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
4418 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
4419 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
4421 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
4422 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
4424 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
4425 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
4427 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
4428 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
4430 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
4431 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
4433 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
4434 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
4436 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
4437 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
4439 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
4440 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
4442 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
4443 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
4445 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
4446 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
4448 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
4449 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
4451 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
4452 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
4454 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
4455 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
4457 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
4458 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
4460 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
4461 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
4463 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
4464 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
4466 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
4467 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
4469 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
4470 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
4472 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x
) {
4473 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStdDialogButtonSizer
*) x
));
4475 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
4476 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
4478 static void *_p_wxImageTo_p_wxObject(void *x
) {
4479 return (void *)((wxObject
*) ((wxImage
*) x
));
4481 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
4482 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
4484 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
4485 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
4487 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
4488 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
4490 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
4491 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
4493 static void *_p_wxWindowTo_p_wxObject(void *x
) {
4494 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
4496 static void *_p_wxMenuTo_p_wxObject(void *x
) {
4497 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
4499 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
4500 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
4502 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
4503 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
4505 static void *_p_wxGIFAnimationTo_p_wxObject(void *x
) {
4506 return (void *)((wxObject
*) (wxAnimationBase
*) ((wxGIFAnimation
*) x
));
4508 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
4509 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
4511 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
4512 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
4514 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
4515 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
4517 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
4518 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
4520 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
4521 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
4523 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
4524 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
4526 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
4527 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
4529 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
4530 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
4532 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
4533 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
4535 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
4536 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
4538 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
4539 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
4541 static void *_p_wxGIFAnimationCtrlTo_p_wxObject(void *x
) {
4542 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxGIFAnimationCtrl
*) x
));
4544 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
4545 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
4547 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
4548 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
4550 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
4551 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
4553 static void *_p_wxControlTo_p_wxWindow(void *x
) {
4554 return (void *)((wxWindow
*) ((wxControl
*) x
));
4556 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
4557 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
4559 static void *_p_wxGIFAnimationCtrlTo_p_wxWindow(void *x
) {
4560 return (void *)((wxWindow
*) (wxControl
*) ((wxGIFAnimationCtrl
*) x
));
4562 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
4563 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
4565 static void *_p_wxGIFAnimationTo_p_wxAnimationBase(void *x
) {
4566 return (void *)((wxAnimationBase
*) ((wxGIFAnimation
*) x
));
4568 static void *_p_wxControlTo_p_wxEvtHandler(void *x
) {
4569 return (void *)((wxEvtHandler
*) (wxWindow
*) ((wxControl
*) x
));
4571 static void *_p_wxWindowTo_p_wxEvtHandler(void *x
) {
4572 return (void *)((wxEvtHandler
*) ((wxWindow
*) x
));
4574 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x
) {
4575 return (void *)((wxEvtHandler
*) (wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
4577 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x
) {
4578 return (void *)((wxEvtHandler
*) ((wxPyApp
*) x
));
4580 static void *_p_wxGIFAnimationCtrlTo_p_wxEvtHandler(void *x
) {
4581 return (void *)((wxEvtHandler
*) (wxWindow
*)(wxControl
*) ((wxGIFAnimationCtrl
*) x
));
4583 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x
) {
4584 return (void *)((wxEvtHandler
*) ((wxValidator
*) x
));
4586 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x
) {
4587 return (void *)((wxEvtHandler
*) (wxValidator
*) ((wxPyValidator
*) x
));
4589 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x
) {
4590 return (void *)((wxEvtHandler
*) (wxWindow
*) ((wxMenuBar
*) x
));
4592 static void *_p_wxMenuTo_p_wxEvtHandler(void *x
) {
4593 return (void *)((wxEvtHandler
*) ((wxMenu
*) x
));
4595 static void *_p_wxControlWithItemsTo_p_wxControl(void *x
) {
4596 return (void *)((wxControl
*) ((wxControlWithItems
*) x
));
4598 static void *_p_wxGIFAnimationCtrlTo_p_wxControl(void *x
) {
4599 return (void *)((wxControl
*) ((wxGIFAnimationCtrl
*) x
));
4601 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}};
4602 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}};
4603 static swig_type_info _swigt__p_wxObject
[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxAnimationBase", _p_wxAnimationBaseTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxAnimationPlayer", _p_wxAnimationPlayerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxStdDialogButtonSizer", _p_wxStdDialogButtonSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGIFAnimation", _p_wxGIFAnimationTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGIFAnimationCtrl", _p_wxGIFAnimationCtrlTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
4604 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}};
4605 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}};
4606 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}};
4607 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}};
4608 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}};
4609 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}};
4610 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}};
4611 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}};
4612 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}};
4613 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}};
4614 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}};
4615 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}};
4616 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}};
4617 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}};
4618 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}};
4619 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}};
4620 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}};
4621 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}};
4622 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}};
4623 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}};
4624 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}};
4625 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}};
4627 static swig_type_info
*swig_types_initial
[] = {
4629 _swigt__p_wxGIFAnimationCtrl
,
4631 _swigt__p_unsigned_char
,
4633 _swigt__p_wxAnimationPlayer
,
4635 _swigt__p_unsigned_long
,
4637 _swigt__p_form_ops_t
,
4638 _swigt__p_unsigned_int
,
4639 _swigt__unsigned_int
,
4640 _swigt__p_wxDuplexMode
,
4641 _swigt__p_wxGIFAnimation
,
4643 _swigt__p_wxAnimationBase
,
4646 _swigt__p_wxEvtHandler
,
4647 _swigt__std__ptrdiff_t
,
4649 _swigt__p_wxControl
,
4650 _swigt__p_wxPaperSize
,
4657 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
4659 static swig_const_info swig_const_table
[] = {
4660 {0, 0, 0, 0.0, 0, 0}};
4671 /* Python-specific SWIG API */
4672 #define SWIG_newvarlink() SWIG_Python_newvarlink()
4673 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
4674 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
4676 /* -----------------------------------------------------------------------------
4677 * global variable support code.
4678 * ----------------------------------------------------------------------------- */
4680 typedef struct swig_globalvar
{
4681 char *name
; /* Name of global variable */
4682 PyObject
*(*get_attr
)(); /* Return the current value */
4683 int (*set_attr
)(PyObject
*); /* Set the value */
4684 struct swig_globalvar
*next
;
4687 typedef struct swig_varlinkobject
{
4689 swig_globalvar
*vars
;
4690 } swig_varlinkobject
;
4693 swig_varlink_repr(swig_varlinkobject
*v
) {
4695 return PyString_FromString("<Swig global variables>");
4699 swig_varlink_print(swig_varlinkobject
*v
, FILE *fp
, int flags
) {
4700 swig_globalvar
*var
;
4702 fprintf(fp
,"Swig global variables { ");
4703 for (var
= v
->vars
; var
; var
=var
->next
) {
4704 fprintf(fp
,"%s", var
->name
);
4705 if (var
->next
) fprintf(fp
,", ");
4712 swig_varlink_getattr(swig_varlinkobject
*v
, char *n
) {
4713 swig_globalvar
*var
= v
->vars
;
4715 if (strcmp(var
->name
,n
) == 0) {
4716 return (*var
->get_attr
)();
4720 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
4725 swig_varlink_setattr(swig_varlinkobject
*v
, char *n
, PyObject
*p
) {
4726 swig_globalvar
*var
= v
->vars
;
4728 if (strcmp(var
->name
,n
) == 0) {
4729 return (*var
->set_attr
)(p
);
4733 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
4737 static PyTypeObject varlinktype
= {
4738 PyObject_HEAD_INIT(0)
4739 0, /* Number of items in variable part (ob_size) */
4740 (char *)"swigvarlink", /* Type name (tp_name) */
4741 sizeof(swig_varlinkobject
), /* Basic size (tp_basicsize) */
4742 0, /* Itemsize (tp_itemsize) */
4743 0, /* Deallocator (tp_dealloc) */
4744 (printfunc
) swig_varlink_print
, /* Print (tp_print) */
4745 (getattrfunc
) swig_varlink_getattr
, /* get attr (tp_getattr) */
4746 (setattrfunc
) swig_varlink_setattr
, /* Set attr (tp_setattr) */
4748 (reprfunc
) swig_varlink_repr
, /* tp_repr */
4749 0, /* tp_as_number */
4750 0, /* tp_as_sequence */
4751 0, /* tp_as_mapping */
4755 0, /* tp_getattro */
4756 0, /* tp_setattro */
4757 0, /* tp_as_buffer */
4760 #if PY_VERSION_HEX >= 0x02000000
4761 0, /* tp_traverse */
4764 #if PY_VERSION_HEX >= 0x02010000
4765 0, /* tp_richcompare */
4766 0, /* tp_weaklistoffset */
4768 #if PY_VERSION_HEX >= 0x02020000
4769 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
4771 #if PY_VERSION_HEX >= 0x02030000
4775 0,0,0,0 /* tp_alloc -> tp_next */
4779 /* Create a variable linking object for use later */
4781 SWIG_Python_newvarlink(void) {
4782 swig_varlinkobject
*result
= 0;
4783 result
= PyMem_NEW(swig_varlinkobject
,1);
4784 varlinktype
.ob_type
= &PyType_Type
; /* Patch varlinktype into a PyType */
4785 result
->ob_type
= &varlinktype
;
4787 result
->ob_refcnt
= 0;
4788 Py_XINCREF((PyObject
*) result
);
4789 return ((PyObject
*) result
);
4793 SWIG_Python_addvarlink(PyObject
*p
, char *name
, PyObject
*(*get_attr
)(void), int (*set_attr
)(PyObject
*p
)) {
4794 swig_varlinkobject
*v
;
4796 v
= (swig_varlinkobject
*) p
;
4797 gv
= (swig_globalvar
*) malloc(sizeof(swig_globalvar
));
4798 gv
->name
= (char *) malloc(strlen(name
)+1);
4799 strcpy(gv
->name
,name
);
4800 gv
->get_attr
= get_attr
;
4801 gv
->set_attr
= set_attr
;
4806 /* -----------------------------------------------------------------------------
4807 * constants/methods manipulation
4808 * ----------------------------------------------------------------------------- */
4810 /* Install Constants */
4812 SWIG_Python_InstallConstants(PyObject
*d
, swig_const_info constants
[]) {
4815 for (i
= 0; constants
[i
].type
; i
++) {
4816 switch(constants
[i
].type
) {
4818 obj
= PyInt_FromLong(constants
[i
].lvalue
);
4821 obj
= PyFloat_FromDouble(constants
[i
].dvalue
);
4823 case SWIG_PY_STRING
:
4824 if (constants
[i
].pvalue
) {
4825 obj
= PyString_FromString((char *) constants
[i
].pvalue
);
4831 case SWIG_PY_POINTER
:
4832 obj
= SWIG_NewPointerObj(constants
[i
].pvalue
, *(constants
[i
]).ptype
,0);
4834 case SWIG_PY_BINARY
:
4835 obj
= SWIG_NewPackedObj(constants
[i
].pvalue
, constants
[i
].lvalue
, *(constants
[i
].ptype
));
4842 PyDict_SetItemString(d
,constants
[i
].name
,obj
);
4848 /* -----------------------------------------------------------------------------*/
4849 /* Fix SwigMethods to carry the callback ptrs when needed */
4850 /* -----------------------------------------------------------------------------*/
4853 SWIG_Python_FixMethods(PyMethodDef
*methods
,
4854 swig_const_info
*const_table
,
4855 swig_type_info
**types
,
4856 swig_type_info
**types_initial
) {
4858 for (i
= 0; methods
[i
].ml_name
; ++i
) {
4859 char *c
= methods
[i
].ml_doc
;
4860 if (c
&& (c
= strstr(c
, "swig_ptr: "))) {
4862 swig_const_info
*ci
= 0;
4863 char *name
= c
+ 10;
4864 for (j
= 0; const_table
[j
].type
; j
++) {
4865 if (strncmp(const_table
[j
].name
, name
,
4866 strlen(const_table
[j
].name
)) == 0) {
4867 ci
= &(const_table
[j
]);
4872 size_t shift
= (ci
->ptype
) - types
;
4873 swig_type_info
*ty
= types_initial
[shift
];
4874 size_t ldoc
= (c
- methods
[i
].ml_doc
);
4875 size_t lptr
= strlen(ty
->name
)+2*sizeof(void*)+2;
4876 char *ndoc
= (char*)malloc(ldoc
+ lptr
+ 10);
4878 void *ptr
= (ci
->type
== SWIG_PY_POINTER
) ? ci
->pvalue
: (void *)(ci
->lvalue
);
4879 strncpy(buff
, methods
[i
].ml_doc
, ldoc
);
4881 strncpy(buff
, "swig_ptr: ", 10);
4883 SWIG_PackVoidPtr(buff
, ptr
, ty
->name
, lptr
);
4884 methods
[i
].ml_doc
= ndoc
;
4890 /* -----------------------------------------------------------------------------*
4891 * Initialize type list
4892 * -----------------------------------------------------------------------------*/
4894 #if PY_MAJOR_VERSION < 2
4895 /* PyModule_AddObject function was introduced in Python 2.0. The following function
4896 is copied out of Python/modsupport.c in python version 2.3.4 */
4898 PyModule_AddObject(PyObject
*m
, char *name
, PyObject
*o
)
4901 if (!PyModule_Check(m
)) {
4902 PyErr_SetString(PyExc_TypeError
,
4903 "PyModule_AddObject() needs module as first arg");
4907 PyErr_SetString(PyExc_TypeError
,
4908 "PyModule_AddObject() needs non-NULL value");
4912 dict
= PyModule_GetDict(m
);
4914 /* Internal error -- modules must have a dict! */
4915 PyErr_Format(PyExc_SystemError
, "module '%s' has no __dict__",
4916 PyModule_GetName(m
));
4919 if (PyDict_SetItemString(dict
, name
, o
))
4926 static swig_type_info
**
4927 SWIG_Python_SetTypeListHandle(swig_type_info
**type_list_handle
) {
4928 static PyMethodDef swig_empty_runtime_method_table
[] = {
4934 PyObject
*module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
,
4935 swig_empty_runtime_method_table
);
4936 PyObject
*pointer
= PyCObject_FromVoidPtr((void *) type_list_handle
, NULL
);
4937 if (pointer
&& module) {
4938 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
, pointer
);
4940 return type_list_handle
;
4943 static swig_type_info
**
4944 SWIG_Python_LookupTypePointer(swig_type_info
**type_list_handle
) {
4945 swig_type_info
**type_pointer
;
4947 /* first check if module already created */
4948 type_pointer
= SWIG_Python_GetTypeListHandle();
4950 return type_pointer
;
4952 /* create a new module and variable */
4953 return SWIG_Python_SetTypeListHandle(type_list_handle
);
4961 /* -----------------------------------------------------------------------------*
4962 * Partial Init method
4963 * -----------------------------------------------------------------------------*/
4965 #ifdef SWIG_LINK_RUNTIME
4969 SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *);
4975 SWIGEXPORT(void) SWIG_init(void) {
4976 static PyObject
*SWIG_globals
= 0;
4977 static int typeinit
= 0;
4980 if (!SWIG_globals
) SWIG_globals
= SWIG_newvarlink();
4982 /* Fix SwigMethods to carry the callback ptrs when needed */
4983 SWIG_Python_FixMethods(SwigMethods
, swig_const_table
, swig_types
, swig_types_initial
);
4985 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
4986 d
= PyModule_GetDict(m
);
4989 #ifdef SWIG_LINK_RUNTIME
4990 swig_type_list_handle
= (swig_type_info
**) SWIG_ReturnGlobalTypeList(swig_type_list_handle
);
4992 # ifndef SWIG_STATIC_RUNTIME
4993 swig_type_list_handle
= SWIG_Python_LookupTypePointer(swig_type_list_handle
);
4996 for (i
= 0; swig_types_initial
[i
]; i
++) {
4997 swig_types
[i
] = SWIG_TypeRegister(swig_types_initial
[i
]);
5001 SWIG_InstallConstants(d
,swig_const_table
);
5003 PyDict_SetItemString(d
,(char*)"cvar", SWIG_globals
);
5004 SWIG_addvarlink(SWIG_globals
,(char*)"AnimationControlNameStr",_wrap_AnimationControlNameStr_get
, _wrap_AnimationControlNameStr_set
);
5006 PyDict_SetItemString(d
,"ANIM_UNSPECIFIED", SWIG_From_int((int)(wxANIM_UNSPECIFIED
)));
5009 PyDict_SetItemString(d
,"ANIM_DONOTREMOVE", SWIG_From_int((int)(wxANIM_DONOTREMOVE
)));
5012 PyDict_SetItemString(d
,"ANIM_TOBACKGROUND", SWIG_From_int((int)(wxANIM_TOBACKGROUND
)));
5015 PyDict_SetItemString(d
,"ANIM_TOPREVIOUS", SWIG_From_int((int)(wxANIM_TOPREVIOUS
)));
5018 PyDict_SetItemString(d
,"AN_FIT_ANIMATION", SWIG_From_int((int)(wxAN_FIT_ANIMATION
)));