]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/animate/gtk/animate_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / contrib / animate / gtk / animate_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.24
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12
13 #ifdef __cplusplus
14 template<class T> class SwigValueWrapper {
15 T *tt;
16 public:
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; }
24 private:
25 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
26 };
27 #endif
28
29
30 #ifndef SWIG_TEMPLATE_DISAMBIGUATOR
31 # if defined(__SUNPRO_CC)
32 # define SWIG_TEMPLATE_DISAMBIGUATOR template
33 # else
34 # define SWIG_TEMPLATE_DISAMBIGUATOR
35 # endif
36 #endif
37
38
39 #include <Python.h>
40
41 /***********************************************************************
42 * swigrun.swg
43 *
44 * This file contains generic CAPI SWIG runtime support for pointer
45 * type checking.
46 *
47 ************************************************************************/
48
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"
52
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)
58 #else
59 #define SWIG_TYPE_TABLE_NAME
60 #endif
61
62 #include <string.h>
63
64 #ifndef SWIGINLINE
65 #if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
66 # define SWIGINLINE inline
67 #else
68 # define SWIGINLINE
69 #endif
70 #endif
71
72 /*
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'.
76
77 But only do this if is strictly necessary, ie, if you have problems
78 with your compiler or so.
79 */
80 #ifndef SWIGRUNTIME
81 #define SWIGRUNTIME static
82 #endif
83 #ifndef SWIGRUNTIMEINLINE
84 #define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
85 #endif
86
87 #ifdef __cplusplus
88 extern "C" {
89 #endif
90
91 typedef void *(*swig_converter_func)(void *);
92 typedef struct swig_type_info *(*swig_dycast_func)(void **);
93
94 typedef struct swig_type_info {
95 const char *name;
96 swig_converter_func converter;
97 const char *str;
98 void *clientdata;
99 swig_dycast_func dcast;
100 struct swig_type_info *next;
101 struct swig_type_info *prev;
102 } swig_type_info;
103
104 /*
105 Compare two type names skipping the space characters, therefore
106 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
107
108 Return 0 when the two name types are equivalent, as in
109 strncmp, but skipping ' '.
110 */
111 SWIGRUNTIME int
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;
118 }
119 return (l1 - f1) - (l2 - f2);
120 }
121
122 /*
123 Check type equivalence in a name list like <name1>|<name2>|...
124 */
125 SWIGRUNTIME int
126 SWIG_TypeEquiv(const char *nb, const char *tb) {
127 int equiv = 0;
128 const char* te = tb + strlen(tb);
129 const char* ne = nb;
130 while (!equiv && *ne) {
131 for (nb = ne; *ne; ++ne) {
132 if (*ne == '|') break;
133 }
134 equiv = SWIG_TypeNameComp(nb, ne, tb, te) == 0;
135 if (*ne) ++ne;
136 }
137 return equiv;
138 }
139
140 /*
141 Register a type mapping with the type-checking
142 */
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 */
147 tc = *tl;
148 while (tc) {
149 /* check simple type equivalence */
150 int typeequiv = (strcmp(tc->name, ti->name) == 0);
151 /* check full type equivalence, resolving typedefs */
152 if (!typeequiv) {
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);
156 }
157 }
158 if (typeequiv) {
159 /* Already exists in the table. Just add additional types to the list */
160 if (ti->clientdata) tc->clientdata = ti->clientdata;
161 head = tc;
162 next = tc->next;
163 goto l1;
164 }
165 tc = tc->prev;
166 }
167 head = ti;
168 next = 0;
169
170 /* Place in list */
171 ti->prev = *tl;
172 *tl = ti;
173
174 /* Build linked lists */
175 l1:
176 ret = head;
177 tc = ti + 1;
178 /* Patch up the rest of the links */
179 while (tc->name) {
180 head->next = tc;
181 tc->prev = head;
182 head = tc;
183 tc++;
184 }
185 if (next) next->prev = head;
186 head->next = next;
187
188 return ret;
189 }
190
191 /*
192 Check the typename
193 */
194 SWIGRUNTIME swig_type_info *
195 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
196 swig_type_info *s;
197 if (!ty) return 0; /* Void pointer */
198 s = ty->next; /* First element always just a name */
199 do {
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;
204 if (s->next) {
205 s->next->prev = s->prev;
206 }
207 /* Insert s as second element in the list */
208 s->next = ty->next;
209 if (ty->next) ty->next->prev = s;
210 ty->next = s;
211 s->prev = ty;
212 return s;
213 }
214 s = s->next;
215 } while (s && (s != ty->next));
216 return 0;
217 }
218
219 /*
220 Cast a pointer up an inheritance hierarchy
221 */
222 SWIGRUNTIMEINLINE void *
223 SWIG_TypeCast(swig_type_info *ty, void *ptr) {
224 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
225 }
226
227 /*
228 Dynamic pointer casting. Down an inheritance hierarchy
229 */
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);
236 if (ty) lastty = ty;
237 }
238 return lastty;
239 }
240
241 /*
242 Return the name associated with this type
243 */
244 SWIGRUNTIMEINLINE const char *
245 SWIG_TypeName(const swig_type_info *ty) {
246 return ty->name;
247 }
248
249 /*
250 Return the pretty name associated with this type,
251 that is an unmangled type name in a form presentable to the user.
252 */
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
258 specific. */
259 if (type->str != NULL) {
260 const char *last_name = type->str;
261 const char *s;
262 for (s = type->str; *s; s++)
263 if (*s == '|') last_name = s+1;
264 return last_name;
265 }
266 else
267 return type->name;
268 }
269
270 /*
271 Search for a swig_type_info structure
272 */
273 SWIGRUNTIME swig_type_info *
274 SWIG_TypeQueryTL(swig_type_info *tl, const char *name) {
275 swig_type_info *ty = tl;
276 while (ty) {
277 if (ty->str && (SWIG_TypeEquiv(ty->str,name))) return ty;
278 if (ty->name && (strcmp(name,ty->name) == 0)) return ty;
279 ty = ty->prev;
280 }
281 return 0;
282 }
283
284 /*
285 Set the clientdata field for a type
286 */
287 SWIGRUNTIME void
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;
293 equiv = ti->next;
294 while (equiv) {
295 if (!equiv->converter) {
296 tc = tl;
297 while (tc) {
298 if ((strcmp(tc->name, equiv->name) == 0))
299 SWIG_TypeClientDataTL(tl,tc,clientdata);
300 tc = tc->prev;
301 }
302 }
303 equiv = equiv->next;
304 }
305 }
306
307 /*
308 Pack binary data into a string
309 */
310 SWIGRUNTIME char *
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) {
317 uu = *u;
318 *(c++) = hex[(uu & 0xf0) >> 4];
319 *(c++) = hex[uu & 0xf];
320 }
321 return c;
322 }
323
324 /*
325 Unpack binary data from a string
326 */
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);
338 else
339 return (char *) 0;
340 d = *(c++);
341 if ((d >= '0') && (d <= '9'))
342 uu |= (d - '0');
343 else if ((d >= 'a') && (d <= 'f'))
344 uu |= (d - ('a'-10));
345 else
346 return (char *) 0;
347 *u = uu;
348 }
349 return c;
350 }
351
352 /*
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.
357 */
358 SWIGRUNTIME void
359 SWIG_PropagateClientDataTL(swig_type_info *tl, swig_type_info *type) {
360 swig_type_info *equiv = type->next;
361 swig_type_info *tc;
362 if (!type->clientdata) return;
363 while (equiv) {
364 if (!equiv->converter) {
365 tc = tl;
366 while (tc) {
367 if ((strcmp(tc->name, equiv->name) == 0) && !tc->clientdata)
368 SWIG_TypeClientDataTL(tl,tc, type->clientdata);
369 tc = tc->prev;
370 }
371 }
372 equiv = equiv->next;
373 }
374 }
375
376 /*
377 Pack 'void *' into a string buffer.
378 */
379 SWIGRUNTIME char *
380 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
381 char *r = buff;
382 if ((2*sizeof(void *) + 2) > bsz) return 0;
383 *(r++) = '_';
384 r = SWIG_PackData(r,&ptr,sizeof(void *));
385 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
386 strcpy(r,name);
387 return buff;
388 }
389
390 SWIGRUNTIME const char *
391 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
392 if (*c != '_') {
393 if (strcmp(c,"NULL") == 0) {
394 *ptr = (void *) 0;
395 return name;
396 } else {
397 return 0;
398 }
399 }
400 return SWIG_UnpackData(++c,ptr,sizeof(void *));
401 }
402
403 SWIGRUNTIME char *
404 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
405 char *r = buff;
406 size_t lname = (name ? strlen(name) : 0);
407 if ((2*sz + 2 + lname) > bsz) return 0;
408 *(r++) = '_';
409 r = SWIG_PackData(r,ptr,sz);
410 if (lname) {
411 strncpy(r,name,lname+1);
412 } else {
413 *r = 0;
414 }
415 return buff;
416 }
417
418 SWIGRUNTIME const char *
419 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
420 if (*c != '_') {
421 if (strcmp(c,"NULL") == 0) {
422 memset(ptr,0,sz);
423 return name;
424 } else {
425 return 0;
426 }
427 }
428 return SWIG_UnpackData(++c,ptr,sz);
429 }
430
431 #ifdef __cplusplus
432 }
433 #endif
434
435 /***********************************************************************
436 * common.swg
437 *
438 * This file contains generic SWIG runtime support for pointer
439 * type checking as well as a few commonly used macros to control
440 * external linkage.
441 *
442 * Author : David Beazley (beazley@cs.uchicago.edu)
443 *
444 * Copyright (c) 1999-2000, The University of Chicago
445 *
446 * This file may be freely redistributed without license or fee provided
447 * this copyright message remains intact.
448 ************************************************************************/
449
450
451 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
452 # if !defined(STATIC_LINKED)
453 # define SWIGEXPORT(a) __declspec(dllexport) a
454 # else
455 # define SWIGEXPORT(a) a
456 # endif
457 #else
458 # define SWIGEXPORT(a) a
459 #endif
460
461 #ifdef __cplusplus
462 extern "C" {
463 #endif
464
465
466 /*************************************************************************/
467
468
469 /* The static type info list */
470
471 static swig_type_info *swig_type_list = 0;
472 static swig_type_info **swig_type_list_handle = &swig_type_list;
473
474
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);
479 }
480
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);
485 }
486
487 /* Set the clientdata field for a type */
488 static void
489 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
490 SWIG_TypeClientDataTL(*swig_type_list_handle, ti, clientdata);
491 }
492
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.
497 */
498 static void
499 SWIG_PropagateClientData(swig_type_info *type) {
500 SWIG_PropagateClientDataTL(*swig_type_list_handle, type);
501 }
502
503 #ifdef __cplusplus
504 }
505 #endif
506
507 /* -----------------------------------------------------------------------------
508 * SWIG API. Portion that goes into the runtime
509 * ----------------------------------------------------------------------------- */
510
511 #ifdef __cplusplus
512 extern "C" {
513 #endif
514
515 /* -----------------------------------------------------------------------------
516 * for internal method declarations
517 * ----------------------------------------------------------------------------- */
518
519 #ifndef SWIGINTERN
520 #define SWIGINTERN static
521 #endif
522
523 #ifndef SWIGINTERNSHORT
524 #ifdef __cplusplus
525 #define SWIGINTERNSHORT static inline
526 #else /* C case */
527 #define SWIGINTERNSHORT static
528 #endif /* __cplusplus */
529 #endif
530
531
532 /*
533 Exception handling in wrappers
534 */
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)
541
542 /*
543 Contract support
544 */
545 #define SWIG_contract_assert(expr, msg) \
546 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
547
548 /* -----------------------------------------------------------------------------
549 * Constant declarations
550 * ----------------------------------------------------------------------------- */
551
552 /* Constant Types */
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
558
559 /* Constant information structure */
560 typedef struct swig_const_info {
561 int type;
562 char *name;
563 long lvalue;
564 double dvalue;
565 void *pvalue;
566 swig_type_info **ptype;
567 } swig_const_info;
568
569
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
576
577 #ifdef __cplusplus
578 }
579 #endif
580
581
582 /***********************************************************************
583 * pyrun.swg
584 *
585 * This file contains the runtime support for Python modules
586 * and includes code for managing global variables and pointer
587 * type checking.
588 *
589 * Author : David Beazley (beazley@cs.uchicago.edu)
590 ************************************************************************/
591
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)
596
597
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)
601
602
603 /* -----------------------------------------------------------------------------
604 * Pointer declarations
605 * ----------------------------------------------------------------------------- */
606 /*
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
609 not always safe.
610 */
611 #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
612 # define SWIG_COBJECT_TYPES
613 #endif
614
615 /* Flags for pointer conversion */
616 #define SWIG_POINTER_EXCEPTION 0x1
617 #define SWIG_POINTER_DISOWN 0x2
618
619
620 #ifdef __cplusplus
621 extern "C" {
622 #endif
623
624 /* -----------------------------------------------------------------------------
625 * Create a new pointer string
626 * ----------------------------------------------------------------------------- */
627
628 #ifndef SWIG_BUFFER_SIZE
629 #define SWIG_BUFFER_SIZE 1024
630 #endif
631
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 * ----------------------------------------------------------------------------- */
637
638 typedef struct {
639 PyObject_HEAD
640 void *ptr;
641 const char *desc;
642 } PySwigObject;
643
644 /* Declarations for objects of type PySwigObject */
645
646 SWIGRUNTIME int
647 PySwigObject_print(PySwigObject *v, FILE *fp, int flags)
648 {
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);
652 return 0;
653 } else {
654 return 1;
655 }
656 }
657
658 SWIGRUNTIME PyObject *
659 PySwigObject_repr(PySwigObject *v)
660 {
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;
664 }
665
666 SWIGRUNTIME PyObject *
667 PySwigObject_str(PySwigObject *v)
668 {
669 char result[SWIG_BUFFER_SIZE];
670 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
671 PyString_FromString(result) : 0;
672 }
673
674 SWIGRUNTIME PyObject *
675 PySwigObject_long(PySwigObject *v)
676 {
677 return PyLong_FromUnsignedLong((unsigned long) v->ptr);
678 }
679
680 SWIGRUNTIME PyObject *
681 PySwigObject_oct(PySwigObject *v)
682 {
683 char buf[100];
684 unsigned long x = (unsigned long)v->ptr;
685 if (x == 0)
686 strcpy(buf, "0");
687 else
688 PyOS_snprintf(buf, sizeof(buf), "0%lo", x);
689 return PyString_FromString(buf);
690 }
691
692 SWIGRUNTIME PyObject *
693 PySwigObject_hex(PySwigObject *v)
694 {
695 char buf[100];
696 PyOS_snprintf(buf, sizeof(buf), "0x%lx", (unsigned long)v->ptr);
697 return PyString_FromString(buf);
698 }
699
700 SWIGRUNTIME int
701 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
702 {
703 int c = strcmp(v->desc, w->desc);
704 if (c) {
705 return c;
706 } else {
707 void *i = v->ptr;
708 void *j = w->ptr;
709 return (i < j) ? -1 : (i > j) ? 1 : 0;
710 }
711 }
712
713 SWIGRUNTIME void
714 PySwigObject_dealloc(PySwigObject *self)
715 {
716 PyObject_DEL(self);
717 }
718
719 SWIGRUNTIME PyTypeObject*
720 PySwigObject_GetType() {
721 static char PySwigObject_Type__doc__[] =
722 "Swig object carries a C/C++ instance pointer";
723
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*/
736 0, /*nb_invert*/
737 0, /*nb_lshift*/
738 0, /*nb_rshift*/
739 0, /*nb_and*/
740 0, /*nb_xor*/
741 0, /*nb_or*/
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 */
750 #endif
751 };
752
753 static int type_init = 0;
754 static PyTypeObject PySwigObject_Type;
755
756 if (!type_init) {
757 PyTypeObject tmp = {
758 PyObject_HEAD_INIT(&PyType_Type)
759 0, /*ob_size*/
760 "PySwigObject", /*tp_name*/
761 sizeof(PySwigObject), /*tp_basicsize*/
762 0, /*tp_itemsize*/
763 /* methods */
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*/
772 0, /*tp_as_mapping*/
773 (hashfunc)0, /*tp_hash*/
774 (ternaryfunc)0, /*tp_call*/
775 (reprfunc)PySwigObject_str, /*tp_str*/
776 /* Space for future expansion */
777 0L,0L,0L,0L,
778 PySwigObject_Type__doc__, /* Documentation string */
779 #if PY_VERSION_HEX >= 0x02000000
780 0, /* tp_traverse */
781 0, /* tp_clear */
782 #endif
783 #if PY_VERSION_HEX >= 0x02010000
784 0, /* tp_richcompare */
785 0, /* tp_weaklistoffset */
786 #endif
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 */
789 #endif
790 #if PY_VERSION_HEX >= 0x02030000
791 0, /* tp_del */
792 #endif
793 #ifdef COUNT_ALLOCS
794 0,0,0,0 /* tp_alloc -> tp_next */
795 #endif
796 };
797
798 PySwigObject_Type = tmp;
799 type_init = 1;
800 }
801
802 return &PySwigObject_Type;
803 }
804
805 SWIGRUNTIME PyObject *
806 PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc)
807 {
808 PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_GetType());
809 if (self == NULL) return NULL;
810 self->ptr = ptr;
811 self->desc = desc;
812 return (PyObject *)self;
813 }
814
815 SWIGRUNTIMEINLINE void *
816 PySwigObject_AsVoidPtr(PyObject *self)
817 {
818 return ((PySwigObject *)self)->ptr;
819 }
820
821 SWIGRUNTIMEINLINE const char *
822 PySwigObject_GetDesc(PyObject *self)
823 {
824 return ((PySwigObject *)self)->desc;
825 }
826
827 SWIGRUNTIMEINLINE int
828 PySwigObject_Check(PyObject *op) {
829 return ((op)->ob_type == PySwigObject_GetType())
830 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
831 }
832
833 /* -----------------------------------------------------------------------------
834 * Implements a simple Swig Packed type, and use it instead of string
835 * ----------------------------------------------------------------------------- */
836
837 typedef struct {
838 PyObject_HEAD
839 void *pack;
840 const char *desc;
841 size_t size;
842 } PySwigPacked;
843
844 SWIGRUNTIME int
845 PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags)
846 {
847 char result[SWIG_BUFFER_SIZE];
848 fputs("<Swig Packed ", fp);
849 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
850 fputs("at ", fp);
851 fputs(result, fp);
852 }
853 fputs(v->desc,fp);
854 fputs(">", fp);
855 return 0;
856 }
857
858 SWIGRUNTIME PyObject *
859 PySwigPacked_repr(PySwigPacked *v)
860 {
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);
864 } else {
865 return PyString_FromFormat("<Swig Packed %s>", v->desc);
866 }
867 }
868
869 SWIGRUNTIME PyObject *
870 PySwigPacked_str(PySwigPacked *v)
871 {
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);
875 } else {
876 return PyString_FromFormat("%s", v->desc);
877 }
878 }
879
880 SWIGRUNTIME int
881 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
882 {
883 int c = strcmp(v->desc, w->desc);
884 if (c) {
885 return c;
886 } else {
887 size_t i = v->size;
888 size_t j = w->size;
889 int s = (i < j) ? -1 : (i > j) ? 1 : 0;
890 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
891 }
892 }
893
894 SWIGRUNTIME void
895 PySwigPacked_dealloc(PySwigPacked *self)
896 {
897 free(self->pack);
898 PyObject_DEL(self);
899 }
900
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;
906
907 static PyTypeObject PySwigPacked_Type;
908 if (!type_init) {
909 PyTypeObject tmp = {
910 PyObject_HEAD_INIT(&PyType_Type)
911 0, /*ob_size*/
912 "PySwigPacked", /*tp_name*/
913 sizeof(PySwigPacked), /*tp_basicsize*/
914 0, /*tp_itemsize*/
915 /* methods */
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*/
922 0, /*tp_as_number*/
923 0, /*tp_as_sequence*/
924 0, /*tp_as_mapping*/
925 (hashfunc)0, /*tp_hash*/
926 (ternaryfunc)0, /*tp_call*/
927 (reprfunc)PySwigPacked_str, /*tp_str*/
928 /* Space for future expansion */
929 0L,0L,0L,0L,
930 PySwigPacked_Type__doc__, /* Documentation string */
931 #if PY_VERSION_HEX >= 0x02000000
932 0, /* tp_traverse */
933 0, /* tp_clear */
934 #endif
935 #if PY_VERSION_HEX >= 0x02010000
936 0, /* tp_richcompare */
937 0, /* tp_weaklistoffset */
938 #endif
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 */
941 #endif
942 #if PY_VERSION_HEX >= 0x02030000
943 0, /* tp_del */
944 #endif
945 #ifdef COUNT_ALLOCS
946 0,0,0,0 /* tp_alloc -> tp_next */
947 #endif
948 };
949
950 PySwigPacked_Type = tmp;
951 type_init = 1;
952 }
953
954
955
956 return &PySwigPacked_Type;
957 }
958
959 SWIGRUNTIME PyObject *
960 PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc)
961 {
962 PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_GetType());
963 if (self == NULL) {
964 return NULL;
965 } else {
966 void *pack = malloc(size);
967 memcpy(pack, ptr, size);
968 self->pack = pack;
969 self->desc = desc;
970 self->size = size;
971 return (PyObject *) self;
972 }
973 }
974
975 SWIGRUNTIMEINLINE const char *
976 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
977 {
978 PySwigPacked *self = (PySwigPacked *)obj;
979 if (self->size != size) return 0;
980 memcpy(ptr, self->pack, size);
981 return self->desc;
982 }
983
984 SWIGRUNTIMEINLINE const char *
985 PySwigPacked_GetDesc(PyObject *self)
986 {
987 return ((PySwigPacked *)self)->desc;
988 }
989
990 SWIGRUNTIMEINLINE int
991 PySwigPacked_Check(PyObject *op) {
992 return ((op)->ob_type == PySwigPacked_GetType())
993 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
994 }
995
996 #else
997 /* -----------------------------------------------------------------------------
998 * Use the old Python PyCObject instead of PySwigObject
999 * ----------------------------------------------------------------------------- */
1000
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)
1005
1006 #endif
1007
1008 #endif
1009
1010 /* -----------------------------------------------------------------------------
1011 * errors manipulation
1012 * ----------------------------------------------------------------------------- */
1013
1014 SWIGRUNTIME void
1015 SWIG_Python_TypeError(const char *type, PyObject *obj)
1016 {
1017 if (type) {
1018 #if defined(SWIG_COBJECT_TYPES)
1019 if (PySwigObject_Check(obj)) {
1020 const char *otype = (const char *) PySwigObject_GetDesc(obj);
1021 if (otype) {
1022 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
1023 type, otype);
1024 return;
1025 }
1026 } else
1027 #endif
1028 {
1029 const char *otype = (obj ? obj->ob_type->tp_name : 0);
1030 if (otype) {
1031 PyObject *str = PyObject_Str(obj);
1032 const char *cstr = str ? PyString_AsString(str) : 0;
1033 if (cstr) {
1034 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
1035 type, otype, cstr);
1036 } else {
1037 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
1038 type, otype);
1039 }
1040 Py_DECREF(str);
1041 return;
1042 }
1043 }
1044 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
1045 } else {
1046 PyErr_Format(PyExc_TypeError, "unexpected type is received");
1047 }
1048 }
1049
1050 SWIGRUNTIMEINLINE void
1051 SWIG_Python_NullRef(const char *type)
1052 {
1053 if (type) {
1054 PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type);
1055 } else {
1056 PyErr_Format(PyExc_TypeError, "null reference was received");
1057 }
1058 }
1059
1060 SWIGRUNTIME int
1061 SWIG_Python_AddErrMesg(const char* mesg, int infront)
1062 {
1063 if (PyErr_Occurred()) {
1064 PyObject *type = 0;
1065 PyObject *value = 0;
1066 PyObject *traceback = 0;
1067 PyErr_Fetch(&type, &value, &traceback);
1068 if (value) {
1069 PyObject *old_str = PyObject_Str(value);
1070 Py_XINCREF(type);
1071 PyErr_Clear();
1072 if (infront) {
1073 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
1074 } else {
1075 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
1076 }
1077 Py_DECREF(old_str);
1078 }
1079 return 1;
1080 } else {
1081 return 0;
1082 }
1083 }
1084
1085 SWIGRUNTIME int
1086 SWIG_Python_ArgFail(int argnum)
1087 {
1088 if (PyErr_Occurred()) {
1089 /* add information about failing argument */
1090 char mesg[256];
1091 sprintf(mesg, "argument number %d:", argnum);
1092 return SWIG_Python_AddErrMesg(mesg, 1);
1093 } else {
1094 return 0;
1095 }
1096 }
1097
1098
1099 /* -----------------------------------------------------------------------------
1100 * pointers/data manipulation
1101 * ----------------------------------------------------------------------------- */
1102
1103 /* Convert a pointer value */
1104 SWIGRUNTIME int
1105 SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
1106 swig_type_info *tc;
1107 const char *c = 0;
1108 static PyObject *SWIG_this = 0;
1109 int newref = 0;
1110 PyObject *pyobj = 0;
1111 void *vptr;
1112
1113 if (!obj) return 0;
1114 if (obj == Py_None) {
1115 *ptr = 0;
1116 return 0;
1117 }
1118
1119 #ifdef SWIG_COBJECT_TYPES
1120 if (!(PySwigObject_Check(obj))) {
1121 if (!SWIG_this)
1122 SWIG_this = PyString_FromString("this");
1123 pyobj = obj;
1124 obj = PyObject_GetAttr(obj,SWIG_this);
1125 newref = 1;
1126 if (!obj) goto type_error;
1127 if (!PySwigObject_Check(obj)) {
1128 Py_DECREF(obj);
1129 goto type_error;
1130 }
1131 }
1132 vptr = PySwigObject_AsVoidPtr(obj);
1133 c = (const char *) PySwigObject_GetDesc(obj);
1134 if (newref) { Py_DECREF(obj); }
1135 goto type_check;
1136 #else
1137 if (!(PyString_Check(obj))) {
1138 if (!SWIG_this)
1139 SWIG_this = PyString_FromString("this");
1140 pyobj = obj;
1141 obj = PyObject_GetAttr(obj,SWIG_this);
1142 newref = 1;
1143 if (!obj) goto type_error;
1144 if (!PyString_Check(obj)) {
1145 Py_DECREF(obj);
1146 goto type_error;
1147 }
1148 }
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;
1154 #endif
1155
1156 type_check:
1157
1158 if (ty) {
1159 tc = SWIG_TypeCheck(c,ty);
1160 if (!tc) goto type_error;
1161 *ptr = SWIG_TypeCast(tc,vptr);
1162 } else {
1163 *ptr = vptr;
1164 }
1165
1166 if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
1167 PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False);
1168 }
1169 return 0;
1170
1171 type_error:
1172 PyErr_Clear();
1173 if (pyobj && !obj) {
1174 obj = pyobj;
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;
1179 if (c) {
1180 c = SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name);
1181 if (!c) goto type_error;
1182 goto type_check;
1183 }
1184 }
1185 }
1186 if (flags & SWIG_POINTER_EXCEPTION) {
1187 if (ty) {
1188 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1189 } else {
1190 SWIG_Python_TypeError("C/C++ pointer", obj);
1191 }
1192 }
1193 return -1;
1194 }
1195
1196 /* Convert a pointer value, signal an exception on a type mismatch */
1197 SWIGRUNTIME void *
1198 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
1199 void *result;
1200 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
1201 PyErr_Clear();
1202 if (flags & SWIG_POINTER_EXCEPTION) {
1203 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1204 SWIG_Python_ArgFail(argnum);
1205 }
1206 }
1207 return result;
1208 }
1209
1210 /* Convert a packed value value */
1211 SWIGRUNTIME int
1212 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) {
1213 swig_type_info *tc;
1214 const char *c = 0;
1215
1216 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1217 c = PySwigPacked_UnpackData(obj, ptr, sz);
1218 #else
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);
1223 #endif
1224 if (!c) goto type_error;
1225 if (ty) {
1226 tc = SWIG_TypeCheck(c,ty);
1227 if (!tc) goto type_error;
1228 }
1229 return 0;
1230
1231 type_error:
1232 PyErr_Clear();
1233 if (flags & SWIG_POINTER_EXCEPTION) {
1234 if (ty) {
1235 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1236 } else {
1237 SWIG_Python_TypeError("C/C++ packed data", obj);
1238 }
1239 }
1240 return -1;
1241 }
1242
1243 /* Create a new array object */
1244 SWIGRUNTIME PyObject *
1245 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) {
1246 PyObject *robj = 0;
1247 if (!ptr) {
1248 Py_INCREF(Py_None);
1249 return Py_None;
1250 }
1251 #ifdef SWIG_COBJECT_TYPES
1252 robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name);
1253 #else
1254 {
1255 char result[SWIG_BUFFER_SIZE];
1256 robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ?
1257 PyString_FromString(result) : 0;
1258 }
1259 #endif
1260 if (!robj || (robj == Py_None)) return robj;
1261 if (type->clientdata) {
1262 PyObject *inst;
1263 PyObject *args = Py_BuildValue((char*)"(O)", robj);
1264 Py_DECREF(robj);
1265 inst = PyObject_CallObject((PyObject *) type->clientdata, args);
1266 Py_DECREF(args);
1267 if (inst) {
1268 if (own) {
1269 PyObject_SetAttrString(inst,(char*)"thisown",Py_True);
1270 }
1271 robj = inst;
1272 }
1273 }
1274 return robj;
1275 }
1276
1277 SWIGRUNTIME PyObject *
1278 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1279 PyObject *robj = 0;
1280 if (!ptr) {
1281 Py_INCREF(Py_None);
1282 return Py_None;
1283 }
1284 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1285 robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name);
1286 #else
1287 {
1288 char result[SWIG_BUFFER_SIZE];
1289 robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ?
1290 PyString_FromString(result) : 0;
1291 }
1292 #endif
1293 return robj;
1294 }
1295
1296 /* -----------------------------------------------------------------------------*
1297 * Get type list
1298 * -----------------------------------------------------------------------------*/
1299
1300 #ifdef SWIG_LINK_RUNTIME
1301 void *SWIG_ReturnGlobalTypeList(void *);
1302 #endif
1303
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);
1311 #else
1312 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1313 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
1314 if (PyErr_Occurred()) {
1315 PyErr_Clear();
1316 type_pointer = (void *)0;
1317 }
1318 }
1319 #endif
1320 return (swig_type_info **) type_pointer;
1321 }
1322
1323 /*
1324 Search for a swig_type_info structure
1325 */
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;
1330 }
1331
1332 #define SWIG_Runtime_GetTypeList SWIG_Python_GetTypeList
1333
1334 #ifdef __cplusplus
1335 }
1336 #endif
1337
1338
1339 /* -------- TYPES TABLE (BEGIN) -------- */
1340
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];
1367
1368 /* -------- TYPES TABLE (END) -------- */
1369
1370
1371 /*-----------------------------------------------
1372 @(target):= _animate.so
1373 ------------------------------------------------*/
1374 #define SWIG_init init_animate
1375
1376 #define SWIG_name "_animate"
1377
1378 #include "wx/wxPython/wxPython.h"
1379 #include "wx/wxPython/pyclasses.h"
1380 #include <wx/animate/animate.h>
1381
1382 static const wxString wxPyAnimationControlNameStr(wxT("animationControl"));
1383 static const wxString wxPyEmptyString(wxEmptyString);
1384
1385 /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/
1386 #define SWIG_From_int PyInt_FromLong
1387 /*@@*/
1388
1389
1390 #include <limits.h>
1391
1392
1393 SWIGINTERN int
1394 SWIG_CheckLongInRange(long value, long min_value, long max_value,
1395 const char *errmsg)
1396 {
1397 if (value < min_value) {
1398 if (errmsg) {
1399 PyErr_Format(PyExc_OverflowError,
1400 "value %ld is less than '%s' minimum %ld",
1401 value, errmsg, min_value);
1402 }
1403 return 0;
1404 } else if (value > max_value) {
1405 if (errmsg) {
1406 PyErr_Format(PyExc_OverflowError,
1407 "value %ld is greater than '%s' maximum %ld",
1408 value, errmsg, max_value);
1409 }
1410 return 0;
1411 }
1412 return 1;
1413 }
1414
1415
1416 SWIGINTERN int
1417 SWIG_AsVal_long(PyObject* obj, long* val)
1418 {
1419 if (PyNumber_Check(obj)) {
1420 if (val) *val = PyInt_AsLong(obj);
1421 return 1;
1422 }
1423 else {
1424 SWIG_type_error("number", obj);
1425 }
1426 return 0;
1427 }
1428
1429
1430 #if INT_MAX != LONG_MAX
1431 SWIGINTERN int
1432 SWIG_AsVal_int(PyObject *obj, int *val)
1433 {
1434 const char* errmsg = val ? "int" : (char*)0;
1435 long v;
1436 if (SWIG_AsVal_long(obj, &v)) {
1437 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
1438 if (val) *val = (int)(v);
1439 return 1;
1440 } else {
1441 return 0;
1442 }
1443 } else {
1444 PyErr_Clear();
1445 }
1446 if (val) {
1447 SWIG_type_error(errmsg, obj);
1448 }
1449 return 0;
1450 }
1451 #else
1452 SWIGINTERNSHORT int
1453 SWIG_AsVal_int(PyObject *obj, int *val)
1454 {
1455 return SWIG_AsVal_long(obj,(long*)val);
1456 }
1457 #endif
1458
1459
1460 SWIGINTERN int
1461 SWIG_AsVal_bool(PyObject *obj, bool *val)
1462 {
1463 if (obj == Py_True) {
1464 if (val) *val = true;
1465 return 1;
1466 }
1467 if (obj == Py_False) {
1468 if (val) *val = false;
1469 return 1;
1470 }
1471 int res = 0;
1472 if (SWIG_AsVal_int(obj, &res)) {
1473 if (val) *val = res ? true : false;
1474 return 1;
1475 } else {
1476 PyErr_Clear();
1477 }
1478 if (val) {
1479 SWIG_type_error("bool", obj);
1480 }
1481 return 0;
1482 }
1483
1484
1485 SWIGINTERNSHORT bool
1486 SWIG_As_bool(PyObject* obj)
1487 {
1488 bool v;
1489 if (!SWIG_AsVal_bool(obj, &v)) {
1490 /*
1491 this is needed to make valgrind/purify happier.
1492 */
1493 memset((void*)&v, 0, sizeof(bool));
1494 }
1495 return v;
1496 }
1497
1498
1499 SWIGINTERNSHORT int
1500 SWIG_Check_bool(PyObject* obj)
1501 {
1502 return SWIG_AsVal_bool(obj, (bool*)0);
1503 }
1504
1505
1506 SWIGINTERNSHORT int
1507 SWIG_As_int(PyObject* obj)
1508 {
1509 int v;
1510 if (!SWIG_AsVal_int(obj, &v)) {
1511 /*
1512 this is needed to make valgrind/purify happier.
1513 */
1514 memset((void*)&v, 0, sizeof(int));
1515 }
1516 return v;
1517 }
1518
1519
1520 SWIGINTERNSHORT int
1521 SWIG_Check_int(PyObject* obj)
1522 {
1523 return SWIG_AsVal_int(obj, (int*)0);
1524 }
1525
1526
1527 SWIGINTERNSHORT long
1528 SWIG_As_long(PyObject* obj)
1529 {
1530 long v;
1531 if (!SWIG_AsVal_long(obj, &v)) {
1532 /*
1533 this is needed to make valgrind/purify happier.
1534 */
1535 memset((void*)&v, 0, sizeof(long));
1536 }
1537 return v;
1538 }
1539
1540
1541 SWIGINTERNSHORT int
1542 SWIG_Check_long(PyObject* obj)
1543 {
1544 return SWIG_AsVal_long(obj, (long*)0);
1545 }
1546
1547 #ifdef __cplusplus
1548 extern "C" {
1549 #endif
1550 static int _wrap_AnimationControlNameStr_set(PyObject *) {
1551 PyErr_SetString(PyExc_TypeError,"Variable AnimationControlNameStr is read-only.");
1552 return 1;
1553 }
1554
1555
1556 static PyObject *_wrap_AnimationControlNameStr_get(void) {
1557 PyObject *pyobj;
1558
1559 {
1560 #if wxUSE_UNICODE
1561 pyobj = PyUnicode_FromWideChar((&wxPyAnimationControlNameStr)->c_str(), (&wxPyAnimationControlNameStr)->Len());
1562 #else
1563 pyobj = PyString_FromStringAndSize((&wxPyAnimationControlNameStr)->c_str(), (&wxPyAnimationControlNameStr)->Len());
1564 #endif
1565 }
1566 return pyobj;
1567 }
1568
1569
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 ;
1577 char *kwnames[] = {
1578 (char *) "animation",(char *) "destroyAnimation", NULL
1579 };
1580
1581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_AnimationPlayer",kwnames,&obj0,&obj1)) goto fail;
1582 if (obj0) {
1583 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxAnimationBase, SWIG_POINTER_EXCEPTION | 0);
1584 if (SWIG_arg_fail(1)) SWIG_fail;
1585 }
1586 if (obj1) {
1587 {
1588 arg2 = (bool)(SWIG_As_bool(obj1));
1589 if (SWIG_arg_fail(2)) SWIG_fail;
1590 }
1591 }
1592 {
1593 PyThreadState* __tstate = wxPyBeginAllowThreads();
1594 result = (wxAnimationPlayer *)new wxAnimationPlayer(arg1,arg2);
1595
1596 wxPyEndAllowThreads(__tstate);
1597 if (PyErr_Occurred()) SWIG_fail;
1598 }
1599 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAnimationPlayer, 1);
1600 return resultobj;
1601 fail:
1602 return NULL;
1603 }
1604
1605
1606 static PyObject *_wrap_delete_AnimationPlayer(PyObject *, PyObject *args, PyObject *kwargs) {
1607 PyObject *resultobj;
1608 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
1609 PyObject * obj0 = 0 ;
1610 char *kwnames[] = {
1611 (char *) "self", NULL
1612 };
1613
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;
1617 {
1618 PyThreadState* __tstate = wxPyBeginAllowThreads();
1619 delete arg1;
1620
1621 wxPyEndAllowThreads(__tstate);
1622 if (PyErr_Occurred()) SWIG_fail;
1623 }
1624 Py_INCREF(Py_None); resultobj = Py_None;
1625 return resultobj;
1626 fail:
1627 return NULL;
1628 }
1629
1630
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 ;
1639 char *kwnames[] = {
1640 (char *) "self",(char *) "animation",(char *) "destroyAnimation", NULL
1641 };
1642
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;
1648 if (obj2) {
1649 {
1650 arg3 = (bool)(SWIG_As_bool(obj2));
1651 if (SWIG_arg_fail(3)) SWIG_fail;
1652 }
1653 }
1654 {
1655 PyThreadState* __tstate = wxPyBeginAllowThreads();
1656 (arg1)->SetAnimation(arg2,arg3);
1657
1658 wxPyEndAllowThreads(__tstate);
1659 if (PyErr_Occurred()) SWIG_fail;
1660 }
1661 Py_INCREF(Py_None); resultobj = Py_None;
1662 return resultobj;
1663 fail:
1664 return NULL;
1665 }
1666
1667
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 ;
1673 char *kwnames[] = {
1674 (char *) "self", NULL
1675 };
1676
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;
1680 {
1681 PyThreadState* __tstate = wxPyBeginAllowThreads();
1682 result = (wxAnimationBase *)((wxAnimationPlayer const *)arg1)->GetAnimation();
1683
1684 wxPyEndAllowThreads(__tstate);
1685 if (PyErr_Occurred()) SWIG_fail;
1686 }
1687 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAnimationBase, 0);
1688 return resultobj;
1689 fail:
1690 return NULL;
1691 }
1692
1693
1694 static PyObject *_wrap_AnimationPlayer_SetDestroyAnimation(PyObject *, PyObject *args, PyObject *kwargs) {
1695 PyObject *resultobj;
1696 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
1697 bool arg2 ;
1698 PyObject * obj0 = 0 ;
1699 PyObject * obj1 = 0 ;
1700 char *kwnames[] = {
1701 (char *) "self",(char *) "destroyAnimation", NULL
1702 };
1703
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;
1707 {
1708 arg2 = (bool)(SWIG_As_bool(obj1));
1709 if (SWIG_arg_fail(2)) SWIG_fail;
1710 }
1711 {
1712 PyThreadState* __tstate = wxPyBeginAllowThreads();
1713 (arg1)->SetDestroyAnimation(arg2);
1714
1715 wxPyEndAllowThreads(__tstate);
1716 if (PyErr_Occurred()) SWIG_fail;
1717 }
1718 Py_INCREF(Py_None); resultobj = Py_None;
1719 return resultobj;
1720 fail:
1721 return NULL;
1722 }
1723
1724
1725 static PyObject *_wrap_AnimationPlayer_GetDestroyAnimation(PyObject *, PyObject *args, PyObject *kwargs) {
1726 PyObject *resultobj;
1727 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
1728 bool result;
1729 PyObject * obj0 = 0 ;
1730 char *kwnames[] = {
1731 (char *) "self", NULL
1732 };
1733
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;
1737 {
1738 PyThreadState* __tstate = wxPyBeginAllowThreads();
1739 result = (bool)((wxAnimationPlayer const *)arg1)->GetDestroyAnimation();
1740
1741 wxPyEndAllowThreads(__tstate);
1742 if (PyErr_Occurred()) SWIG_fail;
1743 }
1744 {
1745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1746 }
1747 return resultobj;
1748 fail:
1749 return NULL;
1750 }
1751
1752
1753 static PyObject *_wrap_AnimationPlayer_SetCurrentFrame(PyObject *, PyObject *args, PyObject *kwargs) {
1754 PyObject *resultobj;
1755 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
1756 int arg2 ;
1757 PyObject * obj0 = 0 ;
1758 PyObject * obj1 = 0 ;
1759 char *kwnames[] = {
1760 (char *) "self",(char *) "currentFrame", NULL
1761 };
1762
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;
1766 {
1767 arg2 = (int)(SWIG_As_int(obj1));
1768 if (SWIG_arg_fail(2)) SWIG_fail;
1769 }
1770 {
1771 PyThreadState* __tstate = wxPyBeginAllowThreads();
1772 (arg1)->SetCurrentFrame(arg2);
1773
1774 wxPyEndAllowThreads(__tstate);
1775 if (PyErr_Occurred()) SWIG_fail;
1776 }
1777 Py_INCREF(Py_None); resultobj = Py_None;
1778 return resultobj;
1779 fail:
1780 return NULL;
1781 }
1782
1783
1784 static PyObject *_wrap_AnimationPlayer_GetCurrentFrame(PyObject *, PyObject *args, PyObject *kwargs) {
1785 PyObject *resultobj;
1786 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
1787 int result;
1788 PyObject * obj0 = 0 ;
1789 char *kwnames[] = {
1790 (char *) "self", NULL
1791 };
1792
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;
1796 {
1797 PyThreadState* __tstate = wxPyBeginAllowThreads();
1798 result = (int)((wxAnimationPlayer const *)arg1)->GetCurrentFrame();
1799
1800 wxPyEndAllowThreads(__tstate);
1801 if (PyErr_Occurred()) SWIG_fail;
1802 }
1803 {
1804 resultobj = SWIG_From_int((int)(result));
1805 }
1806 return resultobj;
1807 fail:
1808 return NULL;
1809 }
1810
1811
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 ;
1818 char *kwnames[] = {
1819 (char *) "self",(char *) "window", NULL
1820 };
1821
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;
1827 {
1828 PyThreadState* __tstate = wxPyBeginAllowThreads();
1829 (arg1)->SetWindow(arg2);
1830
1831 wxPyEndAllowThreads(__tstate);
1832 if (PyErr_Occurred()) SWIG_fail;
1833 }
1834 Py_INCREF(Py_None); resultobj = Py_None;
1835 return resultobj;
1836 fail:
1837 return NULL;
1838 }
1839
1840
1841 static PyObject *_wrap_AnimationPlayer_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
1842 PyObject *resultobj;
1843 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
1844 wxWindow *result;
1845 PyObject * obj0 = 0 ;
1846 char *kwnames[] = {
1847 (char *) "self", NULL
1848 };
1849
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;
1853 {
1854 PyThreadState* __tstate = wxPyBeginAllowThreads();
1855 result = (wxWindow *)((wxAnimationPlayer const *)arg1)->GetWindow();
1856
1857 wxPyEndAllowThreads(__tstate);
1858 if (PyErr_Occurred()) SWIG_fail;
1859 }
1860 {
1861 resultobj = wxPyMake_wxObject(result, 0);
1862 }
1863 return resultobj;
1864 fail:
1865 return NULL;
1866 }
1867
1868
1869 static PyObject *_wrap_AnimationPlayer_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
1870 PyObject *resultobj;
1871 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
1872 wxPoint *arg2 = 0 ;
1873 wxPoint temp2 ;
1874 PyObject * obj0 = 0 ;
1875 PyObject * obj1 = 0 ;
1876 char *kwnames[] = {
1877 (char *) "self",(char *) "pos", NULL
1878 };
1879
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;
1883 {
1884 arg2 = &temp2;
1885 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
1886 }
1887 {
1888 PyThreadState* __tstate = wxPyBeginAllowThreads();
1889 (arg1)->SetPosition((wxPoint const &)*arg2);
1890
1891 wxPyEndAllowThreads(__tstate);
1892 if (PyErr_Occurred()) SWIG_fail;
1893 }
1894 Py_INCREF(Py_None); resultobj = Py_None;
1895 return resultobj;
1896 fail:
1897 return NULL;
1898 }
1899
1900
1901 static PyObject *_wrap_AnimationPlayer_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
1902 PyObject *resultobj;
1903 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
1904 wxPoint result;
1905 PyObject * obj0 = 0 ;
1906 char *kwnames[] = {
1907 (char *) "self", NULL
1908 };
1909
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;
1913 {
1914 PyThreadState* __tstate = wxPyBeginAllowThreads();
1915 result = ((wxAnimationPlayer const *)arg1)->GetPosition();
1916
1917 wxPyEndAllowThreads(__tstate);
1918 if (PyErr_Occurred()) SWIG_fail;
1919 }
1920 {
1921 wxPoint * resultptr;
1922 resultptr = new wxPoint((wxPoint &)(result));
1923 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
1924 }
1925 return resultobj;
1926 fail:
1927 return NULL;
1928 }
1929
1930
1931 static PyObject *_wrap_AnimationPlayer_SetLooped(PyObject *, PyObject *args, PyObject *kwargs) {
1932 PyObject *resultobj;
1933 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
1934 bool arg2 ;
1935 PyObject * obj0 = 0 ;
1936 PyObject * obj1 = 0 ;
1937 char *kwnames[] = {
1938 (char *) "self",(char *) "looped", NULL
1939 };
1940
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;
1944 {
1945 arg2 = (bool)(SWIG_As_bool(obj1));
1946 if (SWIG_arg_fail(2)) SWIG_fail;
1947 }
1948 {
1949 PyThreadState* __tstate = wxPyBeginAllowThreads();
1950 (arg1)->SetLooped(arg2);
1951
1952 wxPyEndAllowThreads(__tstate);
1953 if (PyErr_Occurred()) SWIG_fail;
1954 }
1955 Py_INCREF(Py_None); resultobj = Py_None;
1956 return resultobj;
1957 fail:
1958 return NULL;
1959 }
1960
1961
1962 static PyObject *_wrap_AnimationPlayer_GetLooped(PyObject *, PyObject *args, PyObject *kwargs) {
1963 PyObject *resultobj;
1964 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
1965 bool result;
1966 PyObject * obj0 = 0 ;
1967 char *kwnames[] = {
1968 (char *) "self", NULL
1969 };
1970
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;
1974 {
1975 PyThreadState* __tstate = wxPyBeginAllowThreads();
1976 result = (bool)((wxAnimationPlayer const *)arg1)->GetLooped();
1977
1978 wxPyEndAllowThreads(__tstate);
1979 if (PyErr_Occurred()) SWIG_fail;
1980 }
1981 {
1982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1983 }
1984 return resultobj;
1985 fail:
1986 return NULL;
1987 }
1988
1989
1990 static PyObject *_wrap_AnimationPlayer_HasAnimation(PyObject *, PyObject *args, PyObject *kwargs) {
1991 PyObject *resultobj;
1992 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
1993 bool result;
1994 PyObject * obj0 = 0 ;
1995 char *kwnames[] = {
1996 (char *) "self", NULL
1997 };
1998
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;
2002 {
2003 PyThreadState* __tstate = wxPyBeginAllowThreads();
2004 result = (bool)((wxAnimationPlayer const *)arg1)->HasAnimation();
2005
2006 wxPyEndAllowThreads(__tstate);
2007 if (PyErr_Occurred()) SWIG_fail;
2008 }
2009 {
2010 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2011 }
2012 return resultobj;
2013 fail:
2014 return NULL;
2015 }
2016
2017
2018 static PyObject *_wrap_AnimationPlayer_IsPlaying(PyObject *, PyObject *args, PyObject *kwargs) {
2019 PyObject *resultobj;
2020 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
2021 bool result;
2022 PyObject * obj0 = 0 ;
2023 char *kwnames[] = {
2024 (char *) "self", NULL
2025 };
2026
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;
2030 {
2031 PyThreadState* __tstate = wxPyBeginAllowThreads();
2032 result = (bool)((wxAnimationPlayer const *)arg1)->IsPlaying();
2033
2034 wxPyEndAllowThreads(__tstate);
2035 if (PyErr_Occurred()) SWIG_fail;
2036 }
2037 {
2038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2039 }
2040 return resultobj;
2041 fail:
2042 return NULL;
2043 }
2044
2045
2046 static PyObject *_wrap_AnimationPlayer_UseBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
2047 PyObject *resultobj;
2048 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
2049 bool arg2 ;
2050 PyObject * obj0 = 0 ;
2051 PyObject * obj1 = 0 ;
2052 char *kwnames[] = {
2053 (char *) "self",(char *) "useBackground", NULL
2054 };
2055
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;
2059 {
2060 arg2 = (bool)(SWIG_As_bool(obj1));
2061 if (SWIG_arg_fail(2)) SWIG_fail;
2062 }
2063 {
2064 PyThreadState* __tstate = wxPyBeginAllowThreads();
2065 (arg1)->UseBackgroundColour(arg2);
2066
2067 wxPyEndAllowThreads(__tstate);
2068 if (PyErr_Occurred()) SWIG_fail;
2069 }
2070 Py_INCREF(Py_None); resultobj = Py_None;
2071 return resultobj;
2072 fail:
2073 return NULL;
2074 }
2075
2076
2077 static PyObject *_wrap_AnimationPlayer_UsingBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
2078 PyObject *resultobj;
2079 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
2080 bool result;
2081 PyObject * obj0 = 0 ;
2082 char *kwnames[] = {
2083 (char *) "self", NULL
2084 };
2085
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;
2089 {
2090 PyThreadState* __tstate = wxPyBeginAllowThreads();
2091 result = (bool)((wxAnimationPlayer const *)arg1)->UsingBackgroundColour();
2092
2093 wxPyEndAllowThreads(__tstate);
2094 if (PyErr_Occurred()) SWIG_fail;
2095 }
2096 {
2097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2098 }
2099 return resultobj;
2100 fail:
2101 return NULL;
2102 }
2103
2104
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 ;
2110 wxColour temp2 ;
2111 PyObject * obj0 = 0 ;
2112 PyObject * obj1 = 0 ;
2113 PyObject * obj2 = 0 ;
2114 char *kwnames[] = {
2115 (char *) "self",(char *) "col",(char *) "useCustomBackgroundColour", NULL
2116 };
2117
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;
2121 {
2122 arg2 = &temp2;
2123 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2124 }
2125 if (obj2) {
2126 {
2127 arg3 = (bool)(SWIG_As_bool(obj2));
2128 if (SWIG_arg_fail(3)) SWIG_fail;
2129 }
2130 }
2131 {
2132 PyThreadState* __tstate = wxPyBeginAllowThreads();
2133 (arg1)->SetCustomBackgroundColour((wxColour const &)*arg2,arg3);
2134
2135 wxPyEndAllowThreads(__tstate);
2136 if (PyErr_Occurred()) SWIG_fail;
2137 }
2138 Py_INCREF(Py_None); resultobj = Py_None;
2139 return resultobj;
2140 fail:
2141 return NULL;
2142 }
2143
2144
2145 static PyObject *_wrap_AnimationPlayer_UsingCustomBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
2146 PyObject *resultobj;
2147 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
2148 bool result;
2149 PyObject * obj0 = 0 ;
2150 char *kwnames[] = {
2151 (char *) "self", NULL
2152 };
2153
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;
2157 {
2158 PyThreadState* __tstate = wxPyBeginAllowThreads();
2159 result = (bool)((wxAnimationPlayer const *)arg1)->UsingCustomBackgroundColour();
2160
2161 wxPyEndAllowThreads(__tstate);
2162 if (PyErr_Occurred()) SWIG_fail;
2163 }
2164 {
2165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2166 }
2167 return resultobj;
2168 fail:
2169 return NULL;
2170 }
2171
2172
2173 static PyObject *_wrap_AnimationPlayer_GetCustomBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
2174 PyObject *resultobj;
2175 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
2176 wxColour *result;
2177 PyObject * obj0 = 0 ;
2178 char *kwnames[] = {
2179 (char *) "self", NULL
2180 };
2181
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;
2185 {
2186 PyThreadState* __tstate = wxPyBeginAllowThreads();
2187 {
2188 wxColour const &_result_ref = ((wxAnimationPlayer const *)arg1)->GetCustomBackgroundColour();
2189 result = (wxColour *) &_result_ref;
2190 }
2191
2192 wxPyEndAllowThreads(__tstate);
2193 if (PyErr_Occurred()) SWIG_fail;
2194 }
2195 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
2196 return resultobj;
2197 fail:
2198 return NULL;
2199 }
2200
2201
2202 static PyObject *_wrap_AnimationPlayer_UseParentBackground(PyObject *, PyObject *args, PyObject *kwargs) {
2203 PyObject *resultobj;
2204 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
2205 bool arg2 ;
2206 PyObject * obj0 = 0 ;
2207 PyObject * obj1 = 0 ;
2208 char *kwnames[] = {
2209 (char *) "self",(char *) "useParent", NULL
2210 };
2211
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;
2215 {
2216 arg2 = (bool)(SWIG_As_bool(obj1));
2217 if (SWIG_arg_fail(2)) SWIG_fail;
2218 }
2219 {
2220 PyThreadState* __tstate = wxPyBeginAllowThreads();
2221 (arg1)->UseParentBackground(arg2);
2222
2223 wxPyEndAllowThreads(__tstate);
2224 if (PyErr_Occurred()) SWIG_fail;
2225 }
2226 Py_INCREF(Py_None); resultobj = Py_None;
2227 return resultobj;
2228 fail:
2229 return NULL;
2230 }
2231
2232
2233 static PyObject *_wrap_AnimationPlayer_UsingParentBackground(PyObject *, PyObject *args, PyObject *kwargs) {
2234 PyObject *resultobj;
2235 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
2236 bool result;
2237 PyObject * obj0 = 0 ;
2238 char *kwnames[] = {
2239 (char *) "self", NULL
2240 };
2241
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;
2245 {
2246 PyThreadState* __tstate = wxPyBeginAllowThreads();
2247 result = (bool)((wxAnimationPlayer const *)arg1)->UsingParentBackground();
2248
2249 wxPyEndAllowThreads(__tstate);
2250 if (PyErr_Occurred()) SWIG_fail;
2251 }
2252 {
2253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2254 }
2255 return resultobj;
2256 fail:
2257 return NULL;
2258 }
2259
2260
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 ;
2268 bool result;
2269 wxPoint temp3 ;
2270 PyObject * obj0 = 0 ;
2271 PyObject * obj1 = 0 ;
2272 PyObject * obj2 = 0 ;
2273 PyObject * obj3 = 0 ;
2274 char *kwnames[] = {
2275 (char *) "self",(char *) "window",(char *) "pos",(char *) "looped", NULL
2276 };
2277
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;
2281 {
2282 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
2283 if (SWIG_arg_fail(2)) SWIG_fail;
2284 if (arg2 == NULL) {
2285 SWIG_null_ref("wxWindow");
2286 }
2287 if (SWIG_arg_fail(2)) SWIG_fail;
2288 }
2289 if (obj2) {
2290 {
2291 arg3 = &temp3;
2292 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
2293 }
2294 }
2295 if (obj3) {
2296 {
2297 arg4 = (bool)(SWIG_As_bool(obj3));
2298 if (SWIG_arg_fail(4)) SWIG_fail;
2299 }
2300 }
2301 {
2302 PyThreadState* __tstate = wxPyBeginAllowThreads();
2303 result = (bool)(arg1)->Play(*arg2,(wxPoint const &)*arg3,arg4);
2304
2305 wxPyEndAllowThreads(__tstate);
2306 if (PyErr_Occurred()) SWIG_fail;
2307 }
2308 {
2309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2310 }
2311 return resultobj;
2312 fail:
2313 return NULL;
2314 }
2315
2316
2317 static PyObject *_wrap_AnimationPlayer_Build(PyObject *, PyObject *args, PyObject *kwargs) {
2318 PyObject *resultobj;
2319 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
2320 bool result;
2321 PyObject * obj0 = 0 ;
2322 char *kwnames[] = {
2323 (char *) "self", NULL
2324 };
2325
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;
2329 {
2330 PyThreadState* __tstate = wxPyBeginAllowThreads();
2331 result = (bool)(arg1)->Build();
2332
2333 wxPyEndAllowThreads(__tstate);
2334 if (PyErr_Occurred()) SWIG_fail;
2335 }
2336 {
2337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2338 }
2339 return resultobj;
2340 fail:
2341 return NULL;
2342 }
2343
2344
2345 static PyObject *_wrap_AnimationPlayer_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
2346 PyObject *resultobj;
2347 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
2348 PyObject * obj0 = 0 ;
2349 char *kwnames[] = {
2350 (char *) "self", NULL
2351 };
2352
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;
2356 {
2357 PyThreadState* __tstate = wxPyBeginAllowThreads();
2358 (arg1)->Stop();
2359
2360 wxPyEndAllowThreads(__tstate);
2361 if (PyErr_Occurred()) SWIG_fail;
2362 }
2363 Py_INCREF(Py_None); resultobj = Py_None;
2364 return resultobj;
2365 fail:
2366 return NULL;
2367 }
2368
2369
2370 static PyObject *_wrap_AnimationPlayer_Draw(PyObject *, PyObject *args, PyObject *kwargs) {
2371 PyObject *resultobj;
2372 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
2373 wxDC *arg2 = 0 ;
2374 PyObject * obj0 = 0 ;
2375 PyObject * obj1 = 0 ;
2376 char *kwnames[] = {
2377 (char *) "self",(char *) "dc", NULL
2378 };
2379
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;
2383 {
2384 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
2385 if (SWIG_arg_fail(2)) SWIG_fail;
2386 if (arg2 == NULL) {
2387 SWIG_null_ref("wxDC");
2388 }
2389 if (SWIG_arg_fail(2)) SWIG_fail;
2390 }
2391 {
2392 PyThreadState* __tstate = wxPyBeginAllowThreads();
2393 (arg1)->Draw(*arg2);
2394
2395 wxPyEndAllowThreads(__tstate);
2396 if (PyErr_Occurred()) SWIG_fail;
2397 }
2398 Py_INCREF(Py_None); resultobj = Py_None;
2399 return resultobj;
2400 fail:
2401 return NULL;
2402 }
2403
2404
2405 static PyObject *_wrap_AnimationPlayer_GetFrameCount(PyObject *, PyObject *args, PyObject *kwargs) {
2406 PyObject *resultobj;
2407 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
2408 int result;
2409 PyObject * obj0 = 0 ;
2410 char *kwnames[] = {
2411 (char *) "self", NULL
2412 };
2413
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;
2417 {
2418 PyThreadState* __tstate = wxPyBeginAllowThreads();
2419 result = (int)((wxAnimationPlayer const *)arg1)->GetFrameCount();
2420
2421 wxPyEndAllowThreads(__tstate);
2422 if (PyErr_Occurred()) SWIG_fail;
2423 }
2424 {
2425 resultobj = SWIG_From_int((int)(result));
2426 }
2427 return resultobj;
2428 fail:
2429 return NULL;
2430 }
2431
2432
2433 static PyObject *_wrap_AnimationPlayer_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) {
2434 PyObject *resultobj;
2435 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
2436 int arg2 ;
2437 wxImage *result;
2438 PyObject * obj0 = 0 ;
2439 PyObject * obj1 = 0 ;
2440 char *kwnames[] = {
2441 (char *) "self",(char *) "i", NULL
2442 };
2443
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;
2447 {
2448 arg2 = (int)(SWIG_As_int(obj1));
2449 if (SWIG_arg_fail(2)) SWIG_fail;
2450 }
2451 {
2452 PyThreadState* __tstate = wxPyBeginAllowThreads();
2453 result = (wxImage *)((wxAnimationPlayer const *)arg1)->GetFrame(arg2);
2454
2455 wxPyEndAllowThreads(__tstate);
2456 if (PyErr_Occurred()) SWIG_fail;
2457 }
2458 {
2459 resultobj = wxPyMake_wxObject(result, 0);
2460 }
2461 return resultobj;
2462 fail:
2463 return NULL;
2464 }
2465
2466
2467 static PyObject *_wrap_AnimationPlayer_GetDisposalMethod(PyObject *, PyObject *args, PyObject *kwargs) {
2468 PyObject *resultobj;
2469 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
2470 int arg2 ;
2471 wxAnimationDisposal result;
2472 PyObject * obj0 = 0 ;
2473 PyObject * obj1 = 0 ;
2474 char *kwnames[] = {
2475 (char *) "self",(char *) "i", NULL
2476 };
2477
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;
2481 {
2482 arg2 = (int)(SWIG_As_int(obj1));
2483 if (SWIG_arg_fail(2)) SWIG_fail;
2484 }
2485 {
2486 PyThreadState* __tstate = wxPyBeginAllowThreads();
2487 result = (wxAnimationDisposal)((wxAnimationPlayer const *)arg1)->GetDisposalMethod(arg2);
2488
2489 wxPyEndAllowThreads(__tstate);
2490 if (PyErr_Occurred()) SWIG_fail;
2491 }
2492 resultobj = SWIG_From_int((result));
2493 return resultobj;
2494 fail:
2495 return NULL;
2496 }
2497
2498
2499 static PyObject *_wrap_AnimationPlayer_GetFrameRect(PyObject *, PyObject *args, PyObject *kwargs) {
2500 PyObject *resultobj;
2501 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
2502 int arg2 ;
2503 wxRect result;
2504 PyObject * obj0 = 0 ;
2505 PyObject * obj1 = 0 ;
2506 char *kwnames[] = {
2507 (char *) "self",(char *) "i", NULL
2508 };
2509
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;
2513 {
2514 arg2 = (int)(SWIG_As_int(obj1));
2515 if (SWIG_arg_fail(2)) SWIG_fail;
2516 }
2517 {
2518 PyThreadState* __tstate = wxPyBeginAllowThreads();
2519 result = ((wxAnimationPlayer const *)arg1)->GetFrameRect(arg2);
2520
2521 wxPyEndAllowThreads(__tstate);
2522 if (PyErr_Occurred()) SWIG_fail;
2523 }
2524 {
2525 wxRect * resultptr;
2526 resultptr = new wxRect((wxRect &)(result));
2527 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
2528 }
2529 return resultobj;
2530 fail:
2531 return NULL;
2532 }
2533
2534
2535 static PyObject *_wrap_AnimationPlayer_GetDelay(PyObject *, PyObject *args, PyObject *kwargs) {
2536 PyObject *resultobj;
2537 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
2538 int arg2 ;
2539 int result;
2540 PyObject * obj0 = 0 ;
2541 PyObject * obj1 = 0 ;
2542 char *kwnames[] = {
2543 (char *) "self",(char *) "i", NULL
2544 };
2545
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;
2549 {
2550 arg2 = (int)(SWIG_As_int(obj1));
2551 if (SWIG_arg_fail(2)) SWIG_fail;
2552 }
2553 {
2554 PyThreadState* __tstate = wxPyBeginAllowThreads();
2555 result = (int)((wxAnimationPlayer const *)arg1)->GetDelay(arg2);
2556
2557 wxPyEndAllowThreads(__tstate);
2558 if (PyErr_Occurred()) SWIG_fail;
2559 }
2560 {
2561 resultobj = SWIG_From_int((int)(result));
2562 }
2563 return resultobj;
2564 fail:
2565 return NULL;
2566 }
2567
2568
2569 static PyObject *_wrap_AnimationPlayer_GetLogicalScreenSize(PyObject *, PyObject *args, PyObject *kwargs) {
2570 PyObject *resultobj;
2571 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
2572 wxSize result;
2573 PyObject * obj0 = 0 ;
2574 char *kwnames[] = {
2575 (char *) "self", NULL
2576 };
2577
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;
2581 {
2582 PyThreadState* __tstate = wxPyBeginAllowThreads();
2583 result = ((wxAnimationPlayer const *)arg1)->GetLogicalScreenSize();
2584
2585 wxPyEndAllowThreads(__tstate);
2586 if (PyErr_Occurred()) SWIG_fail;
2587 }
2588 {
2589 wxSize * resultptr;
2590 resultptr = new wxSize((wxSize &)(result));
2591 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
2592 }
2593 return resultobj;
2594 fail:
2595 return NULL;
2596 }
2597
2598
2599 static PyObject *_wrap_AnimationPlayer_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
2600 PyObject *resultobj;
2601 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
2602 wxColour *arg2 = 0 ;
2603 bool result;
2604 wxColour temp2 ;
2605 PyObject * obj0 = 0 ;
2606 PyObject * obj1 = 0 ;
2607 char *kwnames[] = {
2608 (char *) "self",(char *) "col", NULL
2609 };
2610
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;
2614 {
2615 arg2 = &temp2;
2616 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2617 }
2618 {
2619 PyThreadState* __tstate = wxPyBeginAllowThreads();
2620 result = (bool)((wxAnimationPlayer const *)arg1)->GetBackgroundColour(*arg2);
2621
2622 wxPyEndAllowThreads(__tstate);
2623 if (PyErr_Occurred()) SWIG_fail;
2624 }
2625 {
2626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2627 }
2628 return resultobj;
2629 fail:
2630 return NULL;
2631 }
2632
2633
2634 static PyObject *_wrap_AnimationPlayer_GetTransparentColour(PyObject *, PyObject *args, PyObject *kwargs) {
2635 PyObject *resultobj;
2636 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
2637 wxColour *arg2 = 0 ;
2638 bool result;
2639 wxColour temp2 ;
2640 PyObject * obj0 = 0 ;
2641 PyObject * obj1 = 0 ;
2642 char *kwnames[] = {
2643 (char *) "self",(char *) "col", NULL
2644 };
2645
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;
2649 {
2650 arg2 = &temp2;
2651 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2652 }
2653 {
2654 PyThreadState* __tstate = wxPyBeginAllowThreads();
2655 result = (bool)((wxAnimationPlayer const *)arg1)->GetTransparentColour(*arg2);
2656
2657 wxPyEndAllowThreads(__tstate);
2658 if (PyErr_Occurred()) SWIG_fail;
2659 }
2660 {
2661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2662 }
2663 return resultobj;
2664 fail:
2665 return NULL;
2666 }
2667
2668
2669 static PyObject *_wrap_AnimationPlayer_PlayFrame(PyObject *, PyObject *args, PyObject *kwargs) {
2670 PyObject *resultobj;
2671 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
2672 int arg2 ;
2673 wxWindow *arg3 = 0 ;
2674 wxPoint *arg4 = 0 ;
2675 bool result;
2676 wxPoint temp4 ;
2677 PyObject * obj0 = 0 ;
2678 PyObject * obj1 = 0 ;
2679 PyObject * obj2 = 0 ;
2680 PyObject * obj3 = 0 ;
2681 char *kwnames[] = {
2682 (char *) "self",(char *) "frame",(char *) "window",(char *) "pos", NULL
2683 };
2684
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;
2688 {
2689 arg2 = (int)(SWIG_As_int(obj1));
2690 if (SWIG_arg_fail(2)) SWIG_fail;
2691 }
2692 {
2693 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
2694 if (SWIG_arg_fail(3)) SWIG_fail;
2695 if (arg3 == NULL) {
2696 SWIG_null_ref("wxWindow");
2697 }
2698 if (SWIG_arg_fail(3)) SWIG_fail;
2699 }
2700 {
2701 arg4 = &temp4;
2702 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2703 }
2704 {
2705 PyThreadState* __tstate = wxPyBeginAllowThreads();
2706 result = (bool)(arg1)->PlayFrame(arg2,*arg3,(wxPoint const &)*arg4);
2707
2708 wxPyEndAllowThreads(__tstate);
2709 if (PyErr_Occurred()) SWIG_fail;
2710 }
2711 {
2712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2713 }
2714 return resultobj;
2715 fail:
2716 return NULL;
2717 }
2718
2719
2720 static PyObject *_wrap_AnimationPlayer_PlayNextFrame(PyObject *, PyObject *args, PyObject *kwargs) {
2721 PyObject *resultobj;
2722 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
2723 bool result;
2724 PyObject * obj0 = 0 ;
2725 char *kwnames[] = {
2726 (char *) "self", NULL
2727 };
2728
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;
2732 {
2733 PyThreadState* __tstate = wxPyBeginAllowThreads();
2734 result = (bool)(arg1)->PlayFrame();
2735
2736 wxPyEndAllowThreads(__tstate);
2737 if (PyErr_Occurred()) SWIG_fail;
2738 }
2739 {
2740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2741 }
2742 return resultobj;
2743 fail:
2744 return NULL;
2745 }
2746
2747
2748 static PyObject *_wrap_AnimationPlayer_DrawFrame(PyObject *, PyObject *args, PyObject *kwargs) {
2749 PyObject *resultobj;
2750 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
2751 int arg2 ;
2752 wxDC *arg3 = 0 ;
2753 wxPoint *arg4 = 0 ;
2754 wxPoint temp4 ;
2755 PyObject * obj0 = 0 ;
2756 PyObject * obj1 = 0 ;
2757 PyObject * obj2 = 0 ;
2758 PyObject * obj3 = 0 ;
2759 char *kwnames[] = {
2760 (char *) "self",(char *) "frame",(char *) "dc",(char *) "pos", NULL
2761 };
2762
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;
2766 {
2767 arg2 = (int)(SWIG_As_int(obj1));
2768 if (SWIG_arg_fail(2)) SWIG_fail;
2769 }
2770 {
2771 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
2772 if (SWIG_arg_fail(3)) SWIG_fail;
2773 if (arg3 == NULL) {
2774 SWIG_null_ref("wxDC");
2775 }
2776 if (SWIG_arg_fail(3)) SWIG_fail;
2777 }
2778 {
2779 arg4 = &temp4;
2780 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2781 }
2782 {
2783 PyThreadState* __tstate = wxPyBeginAllowThreads();
2784 (arg1)->DrawFrame(arg2,*arg3,(wxPoint const &)*arg4);
2785
2786 wxPyEndAllowThreads(__tstate);
2787 if (PyErr_Occurred()) SWIG_fail;
2788 }
2789 Py_INCREF(Py_None); resultobj = Py_None;
2790 return resultobj;
2791 fail:
2792 return NULL;
2793 }
2794
2795
2796 static PyObject *_wrap_AnimationPlayer_DrawBackground(PyObject *, PyObject *args, PyObject *kwargs) {
2797 PyObject *resultobj;
2798 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
2799 wxDC *arg2 = 0 ;
2800 wxPoint *arg3 = 0 ;
2801 wxColour *arg4 = 0 ;
2802 wxPoint temp3 ;
2803 wxColour temp4 ;
2804 PyObject * obj0 = 0 ;
2805 PyObject * obj1 = 0 ;
2806 PyObject * obj2 = 0 ;
2807 PyObject * obj3 = 0 ;
2808 char *kwnames[] = {
2809 (char *) "self",(char *) "dc",(char *) "pos",(char *) "colour", NULL
2810 };
2811
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;
2815 {
2816 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
2817 if (SWIG_arg_fail(2)) SWIG_fail;
2818 if (arg2 == NULL) {
2819 SWIG_null_ref("wxDC");
2820 }
2821 if (SWIG_arg_fail(2)) SWIG_fail;
2822 }
2823 {
2824 arg3 = &temp3;
2825 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
2826 }
2827 {
2828 arg4 = &temp4;
2829 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
2830 }
2831 {
2832 PyThreadState* __tstate = wxPyBeginAllowThreads();
2833 (arg1)->DrawBackground(*arg2,(wxPoint const &)*arg3,(wxColour const &)*arg4);
2834
2835 wxPyEndAllowThreads(__tstate);
2836 if (PyErr_Occurred()) SWIG_fail;
2837 }
2838 Py_INCREF(Py_None); resultobj = Py_None;
2839 return resultobj;
2840 fail:
2841 return NULL;
2842 }
2843
2844
2845 static PyObject *_wrap_AnimationPlayer_ClearCache(PyObject *, PyObject *args, PyObject *kwargs) {
2846 PyObject *resultobj;
2847 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
2848 PyObject * obj0 = 0 ;
2849 char *kwnames[] = {
2850 (char *) "self", NULL
2851 };
2852
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;
2856 {
2857 PyThreadState* __tstate = wxPyBeginAllowThreads();
2858 (arg1)->ClearCache();
2859
2860 wxPyEndAllowThreads(__tstate);
2861 if (PyErr_Occurred()) SWIG_fail;
2862 }
2863 Py_INCREF(Py_None); resultobj = Py_None;
2864 return resultobj;
2865 fail:
2866 return NULL;
2867 }
2868
2869
2870 static PyObject *_wrap_AnimationPlayer_SaveBackground(PyObject *, PyObject *args, PyObject *kwargs) {
2871 PyObject *resultobj;
2872 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
2873 wxRect *arg2 = 0 ;
2874 wxRect temp2 ;
2875 PyObject * obj0 = 0 ;
2876 PyObject * obj1 = 0 ;
2877 char *kwnames[] = {
2878 (char *) "self",(char *) "rect", NULL
2879 };
2880
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;
2884 {
2885 arg2 = &temp2;
2886 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2887 }
2888 {
2889 PyThreadState* __tstate = wxPyBeginAllowThreads();
2890 (arg1)->SaveBackground((wxRect const &)*arg2);
2891
2892 wxPyEndAllowThreads(__tstate);
2893 if (PyErr_Occurred()) SWIG_fail;
2894 }
2895 Py_INCREF(Py_None); resultobj = Py_None;
2896 return resultobj;
2897 fail:
2898 return NULL;
2899 }
2900
2901
2902 static PyObject *_wrap_AnimationPlayer_GetBackingStore(PyObject *, PyObject *args, PyObject *kwargs) {
2903 PyObject *resultobj;
2904 wxAnimationPlayer *arg1 = (wxAnimationPlayer *) 0 ;
2905 wxBitmap *result;
2906 PyObject * obj0 = 0 ;
2907 char *kwnames[] = {
2908 (char *) "self", NULL
2909 };
2910
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;
2914 {
2915 PyThreadState* __tstate = wxPyBeginAllowThreads();
2916 {
2917 wxBitmap &_result_ref = (arg1)->GetBackingStore();
2918 result = (wxBitmap *) &_result_ref;
2919 }
2920
2921 wxPyEndAllowThreads(__tstate);
2922 if (PyErr_Occurred()) SWIG_fail;
2923 }
2924 {
2925 wxBitmap* resultptr = new wxBitmap(*result);
2926 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
2927 }
2928 return resultobj;
2929 fail:
2930 return NULL;
2931 }
2932
2933
2934 static PyObject * AnimationPlayer_swigregister(PyObject *, PyObject *args) {
2935 PyObject *obj;
2936 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2937 SWIG_TypeClientData(SWIGTYPE_p_wxAnimationPlayer, obj);
2938 Py_INCREF(obj);
2939 return Py_BuildValue((char *)"");
2940 }
2941 static PyObject *_wrap_delete_AnimationBase(PyObject *, PyObject *args, PyObject *kwargs) {
2942 PyObject *resultobj;
2943 wxAnimationBase *arg1 = (wxAnimationBase *) 0 ;
2944 PyObject * obj0 = 0 ;
2945 char *kwnames[] = {
2946 (char *) "self", NULL
2947 };
2948
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;
2952 {
2953 PyThreadState* __tstate = wxPyBeginAllowThreads();
2954 delete arg1;
2955
2956 wxPyEndAllowThreads(__tstate);
2957 if (PyErr_Occurred()) SWIG_fail;
2958 }
2959 Py_INCREF(Py_None); resultobj = Py_None;
2960 return resultobj;
2961 fail:
2962 return NULL;
2963 }
2964
2965
2966 static PyObject *_wrap_AnimationBase_GetFrameCount(PyObject *, PyObject *args, PyObject *kwargs) {
2967 PyObject *resultobj;
2968 wxAnimationBase *arg1 = (wxAnimationBase *) 0 ;
2969 int result;
2970 PyObject * obj0 = 0 ;
2971 char *kwnames[] = {
2972 (char *) "self", NULL
2973 };
2974
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;
2978 {
2979 PyThreadState* __tstate = wxPyBeginAllowThreads();
2980 result = (int)((wxAnimationBase const *)arg1)->GetFrameCount();
2981
2982 wxPyEndAllowThreads(__tstate);
2983 if (PyErr_Occurred()) SWIG_fail;
2984 }
2985 {
2986 resultobj = SWIG_From_int((int)(result));
2987 }
2988 return resultobj;
2989 fail:
2990 return NULL;
2991 }
2992
2993
2994 static PyObject *_wrap_AnimationBase_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) {
2995 PyObject *resultobj;
2996 wxAnimationBase *arg1 = (wxAnimationBase *) 0 ;
2997 int arg2 ;
2998 wxImage *result;
2999 PyObject * obj0 = 0 ;
3000 PyObject * obj1 = 0 ;
3001 char *kwnames[] = {
3002 (char *) "self",(char *) "i", NULL
3003 };
3004
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;
3008 {
3009 arg2 = (int)(SWIG_As_int(obj1));
3010 if (SWIG_arg_fail(2)) SWIG_fail;
3011 }
3012 {
3013 PyThreadState* __tstate = wxPyBeginAllowThreads();
3014 result = (wxImage *)((wxAnimationBase const *)arg1)->GetFrame(arg2);
3015
3016 wxPyEndAllowThreads(__tstate);
3017 if (PyErr_Occurred()) SWIG_fail;
3018 }
3019 {
3020 resultobj = wxPyMake_wxObject(result, 0);
3021 }
3022 return resultobj;
3023 fail:
3024 return NULL;
3025 }
3026
3027
3028 static PyObject *_wrap_AnimationBase_GetDisposalMethod(PyObject *, PyObject *args, PyObject *kwargs) {
3029 PyObject *resultobj;
3030 wxAnimationBase *arg1 = (wxAnimationBase *) 0 ;
3031 int arg2 ;
3032 wxAnimationDisposal result;
3033 PyObject * obj0 = 0 ;
3034 PyObject * obj1 = 0 ;
3035 char *kwnames[] = {
3036 (char *) "self",(char *) "i", NULL
3037 };
3038
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;
3042 {
3043 arg2 = (int)(SWIG_As_int(obj1));
3044 if (SWIG_arg_fail(2)) SWIG_fail;
3045 }
3046 {
3047 PyThreadState* __tstate = wxPyBeginAllowThreads();
3048 result = (wxAnimationDisposal)((wxAnimationBase const *)arg1)->GetDisposalMethod(arg2);
3049
3050 wxPyEndAllowThreads(__tstate);
3051 if (PyErr_Occurred()) SWIG_fail;
3052 }
3053 resultobj = SWIG_From_int((result));
3054 return resultobj;
3055 fail:
3056 return NULL;
3057 }
3058
3059
3060 static PyObject *_wrap_AnimationBase_GetFrameRect(PyObject *, PyObject *args, PyObject *kwargs) {
3061 PyObject *resultobj;
3062 wxAnimationBase *arg1 = (wxAnimationBase *) 0 ;
3063 int arg2 ;
3064 wxRect result;
3065 PyObject * obj0 = 0 ;
3066 PyObject * obj1 = 0 ;
3067 char *kwnames[] = {
3068 (char *) "self",(char *) "i", NULL
3069 };
3070
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;
3074 {
3075 arg2 = (int)(SWIG_As_int(obj1));
3076 if (SWIG_arg_fail(2)) SWIG_fail;
3077 }
3078 {
3079 PyThreadState* __tstate = wxPyBeginAllowThreads();
3080 result = ((wxAnimationBase const *)arg1)->GetFrameRect(arg2);
3081
3082 wxPyEndAllowThreads(__tstate);
3083 if (PyErr_Occurred()) SWIG_fail;
3084 }
3085 {
3086 wxRect * resultptr;
3087 resultptr = new wxRect((wxRect &)(result));
3088 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
3089 }
3090 return resultobj;
3091 fail:
3092 return NULL;
3093 }
3094
3095
3096 static PyObject *_wrap_AnimationBase_GetDelay(PyObject *, PyObject *args, PyObject *kwargs) {
3097 PyObject *resultobj;
3098 wxAnimationBase *arg1 = (wxAnimationBase *) 0 ;
3099 int arg2 ;
3100 int result;
3101 PyObject * obj0 = 0 ;
3102 PyObject * obj1 = 0 ;
3103 char *kwnames[] = {
3104 (char *) "self",(char *) "i", NULL
3105 };
3106
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;
3110 {
3111 arg2 = (int)(SWIG_As_int(obj1));
3112 if (SWIG_arg_fail(2)) SWIG_fail;
3113 }
3114 {
3115 PyThreadState* __tstate = wxPyBeginAllowThreads();
3116 result = (int)((wxAnimationBase const *)arg1)->GetDelay(arg2);
3117
3118 wxPyEndAllowThreads(__tstate);
3119 if (PyErr_Occurred()) SWIG_fail;
3120 }
3121 {
3122 resultobj = SWIG_From_int((int)(result));
3123 }
3124 return resultobj;
3125 fail:
3126 return NULL;
3127 }
3128
3129
3130 static PyObject *_wrap_AnimationBase_GetLogicalScreenSize(PyObject *, PyObject *args, PyObject *kwargs) {
3131 PyObject *resultobj;
3132 wxAnimationBase *arg1 = (wxAnimationBase *) 0 ;
3133 wxSize result;
3134 PyObject * obj0 = 0 ;
3135 char *kwnames[] = {
3136 (char *) "self", NULL
3137 };
3138
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;
3142 {
3143 PyThreadState* __tstate = wxPyBeginAllowThreads();
3144 result = ((wxAnimationBase const *)arg1)->GetLogicalScreenSize();
3145
3146 wxPyEndAllowThreads(__tstate);
3147 if (PyErr_Occurred()) SWIG_fail;
3148 }
3149 {
3150 wxSize * resultptr;
3151 resultptr = new wxSize((wxSize &)(result));
3152 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3153 }
3154 return resultobj;
3155 fail:
3156 return NULL;
3157 }
3158
3159
3160 static PyObject *_wrap_AnimationBase_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
3161 PyObject *resultobj;
3162 wxAnimationBase *arg1 = (wxAnimationBase *) 0 ;
3163 wxColour *arg2 = 0 ;
3164 bool result;
3165 wxColour temp2 ;
3166 PyObject * obj0 = 0 ;
3167 PyObject * obj1 = 0 ;
3168 char *kwnames[] = {
3169 (char *) "self",(char *) "col", NULL
3170 };
3171
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;
3175 {
3176 arg2 = &temp2;
3177 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3178 }
3179 {
3180 PyThreadState* __tstate = wxPyBeginAllowThreads();
3181 result = (bool)((wxAnimationBase const *)arg1)->GetBackgroundColour(*arg2);
3182
3183 wxPyEndAllowThreads(__tstate);
3184 if (PyErr_Occurred()) SWIG_fail;
3185 }
3186 {
3187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3188 }
3189 return resultobj;
3190 fail:
3191 return NULL;
3192 }
3193
3194
3195 static PyObject *_wrap_AnimationBase_GetTransparentColour(PyObject *, PyObject *args, PyObject *kwargs) {
3196 PyObject *resultobj;
3197 wxAnimationBase *arg1 = (wxAnimationBase *) 0 ;
3198 wxColour *arg2 = 0 ;
3199 bool result;
3200 wxColour temp2 ;
3201 PyObject * obj0 = 0 ;
3202 PyObject * obj1 = 0 ;
3203 char *kwnames[] = {
3204 (char *) "self",(char *) "col", NULL
3205 };
3206
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;
3210 {
3211 arg2 = &temp2;
3212 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3213 }
3214 {
3215 PyThreadState* __tstate = wxPyBeginAllowThreads();
3216 result = (bool)((wxAnimationBase const *)arg1)->GetTransparentColour(*arg2);
3217
3218 wxPyEndAllowThreads(__tstate);
3219 if (PyErr_Occurred()) SWIG_fail;
3220 }
3221 {
3222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3223 }
3224 return resultobj;
3225 fail:
3226 return NULL;
3227 }
3228
3229
3230 static PyObject *_wrap_AnimationBase_IsValid(PyObject *, PyObject *args, PyObject *kwargs) {
3231 PyObject *resultobj;
3232 wxAnimationBase *arg1 = (wxAnimationBase *) 0 ;
3233 bool result;
3234 PyObject * obj0 = 0 ;
3235 char *kwnames[] = {
3236 (char *) "self", NULL
3237 };
3238
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;
3242 {
3243 PyThreadState* __tstate = wxPyBeginAllowThreads();
3244 result = (bool)((wxAnimationBase const *)arg1)->IsValid();
3245
3246 wxPyEndAllowThreads(__tstate);
3247 if (PyErr_Occurred()) SWIG_fail;
3248 }
3249 {
3250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3251 }
3252 return resultobj;
3253 fail:
3254 return NULL;
3255 }
3256
3257
3258 static PyObject *_wrap_AnimationBase_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
3259 PyObject *resultobj;
3260 wxAnimationBase *arg1 = (wxAnimationBase *) 0 ;
3261 wxString *arg2 = 0 ;
3262 bool result;
3263 bool temp2 = false ;
3264 PyObject * obj0 = 0 ;
3265 PyObject * obj1 = 0 ;
3266 char *kwnames[] = {
3267 (char *) "self",(char *) "filename", NULL
3268 };
3269
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;
3273 {
3274 arg2 = wxString_in_helper(obj1);
3275 if (arg2 == NULL) SWIG_fail;
3276 temp2 = true;
3277 }
3278 {
3279 PyThreadState* __tstate = wxPyBeginAllowThreads();
3280 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
3281
3282 wxPyEndAllowThreads(__tstate);
3283 if (PyErr_Occurred()) SWIG_fail;
3284 }
3285 {
3286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3287 }
3288 {
3289 if (temp2)
3290 delete arg2;
3291 }
3292 return resultobj;
3293 fail:
3294 {
3295 if (temp2)
3296 delete arg2;
3297 }
3298 return NULL;
3299 }
3300
3301
3302 static PyObject * AnimationBase_swigregister(PyObject *, PyObject *args) {
3303 PyObject *obj;
3304 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3305 SWIG_TypeClientData(SWIGTYPE_p_wxAnimationBase, obj);
3306 Py_INCREF(obj);
3307 return Py_BuildValue((char *)"");
3308 }
3309 static PyObject *_wrap_new_GIFAnimation(PyObject *, PyObject *args, PyObject *kwargs) {
3310 PyObject *resultobj;
3311 wxGIFAnimation *result;
3312 char *kwnames[] = {
3313 NULL
3314 };
3315
3316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFAnimation",kwnames)) goto fail;
3317 {
3318 PyThreadState* __tstate = wxPyBeginAllowThreads();
3319 result = (wxGIFAnimation *)new wxGIFAnimation();
3320
3321 wxPyEndAllowThreads(__tstate);
3322 if (PyErr_Occurred()) SWIG_fail;
3323 }
3324 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFAnimation, 1);
3325 return resultobj;
3326 fail:
3327 return NULL;
3328 }
3329
3330
3331 static PyObject *_wrap_delete_GIFAnimation(PyObject *, PyObject *args, PyObject *kwargs) {
3332 PyObject *resultobj;
3333 wxGIFAnimation *arg1 = (wxGIFAnimation *) 0 ;
3334 PyObject * obj0 = 0 ;
3335 char *kwnames[] = {
3336 (char *) "self", NULL
3337 };
3338
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;
3342 {
3343 PyThreadState* __tstate = wxPyBeginAllowThreads();
3344 delete arg1;
3345
3346 wxPyEndAllowThreads(__tstate);
3347 if (PyErr_Occurred()) SWIG_fail;
3348 }
3349 Py_INCREF(Py_None); resultobj = Py_None;
3350 return resultobj;
3351 fail:
3352 return NULL;
3353 }
3354
3355
3356 static PyObject *_wrap_GIFAnimation_GetFrameCount(PyObject *, PyObject *args, PyObject *kwargs) {
3357 PyObject *resultobj;
3358 wxGIFAnimation *arg1 = (wxGIFAnimation *) 0 ;
3359 int result;
3360 PyObject * obj0 = 0 ;
3361 char *kwnames[] = {
3362 (char *) "self", NULL
3363 };
3364
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;
3368 {
3369 PyThreadState* __tstate = wxPyBeginAllowThreads();
3370 result = (int)((wxGIFAnimation const *)arg1)->GetFrameCount();
3371
3372 wxPyEndAllowThreads(__tstate);
3373 if (PyErr_Occurred()) SWIG_fail;
3374 }
3375 {
3376 resultobj = SWIG_From_int((int)(result));
3377 }
3378 return resultobj;
3379 fail:
3380 return NULL;
3381 }
3382
3383
3384 static PyObject *_wrap_GIFAnimation_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) {
3385 PyObject *resultobj;
3386 wxGIFAnimation *arg1 = (wxGIFAnimation *) 0 ;
3387 int arg2 ;
3388 wxImage *result;
3389 PyObject * obj0 = 0 ;
3390 PyObject * obj1 = 0 ;
3391 char *kwnames[] = {
3392 (char *) "self",(char *) "i", NULL
3393 };
3394
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;
3398 {
3399 arg2 = (int)(SWIG_As_int(obj1));
3400 if (SWIG_arg_fail(2)) SWIG_fail;
3401 }
3402 {
3403 PyThreadState* __tstate = wxPyBeginAllowThreads();
3404 result = (wxImage *)((wxGIFAnimation const *)arg1)->GetFrame(arg2);
3405
3406 wxPyEndAllowThreads(__tstate);
3407 if (PyErr_Occurred()) SWIG_fail;
3408 }
3409 {
3410 resultobj = wxPyMake_wxObject(result, 0);
3411 }
3412 return resultobj;
3413 fail:
3414 return NULL;
3415 }
3416
3417
3418 static PyObject *_wrap_GIFAnimation_GetDisposalMethod(PyObject *, PyObject *args, PyObject *kwargs) {
3419 PyObject *resultobj;
3420 wxGIFAnimation *arg1 = (wxGIFAnimation *) 0 ;
3421 int arg2 ;
3422 wxAnimationDisposal result;
3423 PyObject * obj0 = 0 ;
3424 PyObject * obj1 = 0 ;
3425 char *kwnames[] = {
3426 (char *) "self",(char *) "i", NULL
3427 };
3428
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;
3432 {
3433 arg2 = (int)(SWIG_As_int(obj1));
3434 if (SWIG_arg_fail(2)) SWIG_fail;
3435 }
3436 {
3437 PyThreadState* __tstate = wxPyBeginAllowThreads();
3438 result = (wxAnimationDisposal)((wxGIFAnimation const *)arg1)->GetDisposalMethod(arg2);
3439
3440 wxPyEndAllowThreads(__tstate);
3441 if (PyErr_Occurred()) SWIG_fail;
3442 }
3443 resultobj = SWIG_From_int((result));
3444 return resultobj;
3445 fail:
3446 return NULL;
3447 }
3448
3449
3450 static PyObject *_wrap_GIFAnimation_GetFrameRect(PyObject *, PyObject *args, PyObject *kwargs) {
3451 PyObject *resultobj;
3452 wxGIFAnimation *arg1 = (wxGIFAnimation *) 0 ;
3453 int arg2 ;
3454 wxRect result;
3455 PyObject * obj0 = 0 ;
3456 PyObject * obj1 = 0 ;
3457 char *kwnames[] = {
3458 (char *) "self",(char *) "i", NULL
3459 };
3460
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;
3464 {
3465 arg2 = (int)(SWIG_As_int(obj1));
3466 if (SWIG_arg_fail(2)) SWIG_fail;
3467 }
3468 {
3469 PyThreadState* __tstate = wxPyBeginAllowThreads();
3470 result = ((wxGIFAnimation const *)arg1)->GetFrameRect(arg2);
3471
3472 wxPyEndAllowThreads(__tstate);
3473 if (PyErr_Occurred()) SWIG_fail;
3474 }
3475 {
3476 wxRect * resultptr;
3477 resultptr = new wxRect((wxRect &)(result));
3478 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
3479 }
3480 return resultobj;
3481 fail:
3482 return NULL;
3483 }
3484
3485
3486 static PyObject *_wrap_GIFAnimation_GetDelay(PyObject *, PyObject *args, PyObject *kwargs) {
3487 PyObject *resultobj;
3488 wxGIFAnimation *arg1 = (wxGIFAnimation *) 0 ;
3489 int arg2 ;
3490 int result;
3491 PyObject * obj0 = 0 ;
3492 PyObject * obj1 = 0 ;
3493 char *kwnames[] = {
3494 (char *) "self",(char *) "i", NULL
3495 };
3496
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;
3500 {
3501 arg2 = (int)(SWIG_As_int(obj1));
3502 if (SWIG_arg_fail(2)) SWIG_fail;
3503 }
3504 {
3505 PyThreadState* __tstate = wxPyBeginAllowThreads();
3506 result = (int)((wxGIFAnimation const *)arg1)->GetDelay(arg2);
3507
3508 wxPyEndAllowThreads(__tstate);
3509 if (PyErr_Occurred()) SWIG_fail;
3510 }
3511 {
3512 resultobj = SWIG_From_int((int)(result));
3513 }
3514 return resultobj;
3515 fail:
3516 return NULL;
3517 }
3518
3519
3520 static PyObject *_wrap_GIFAnimation_GetLogicalScreenSize(PyObject *, PyObject *args, PyObject *kwargs) {
3521 PyObject *resultobj;
3522 wxGIFAnimation *arg1 = (wxGIFAnimation *) 0 ;
3523 wxSize result;
3524 PyObject * obj0 = 0 ;
3525 char *kwnames[] = {
3526 (char *) "self", NULL
3527 };
3528
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;
3532 {
3533 PyThreadState* __tstate = wxPyBeginAllowThreads();
3534 result = ((wxGIFAnimation const *)arg1)->GetLogicalScreenSize();
3535
3536 wxPyEndAllowThreads(__tstate);
3537 if (PyErr_Occurred()) SWIG_fail;
3538 }
3539 {
3540 wxSize * resultptr;
3541 resultptr = new wxSize((wxSize &)(result));
3542 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3543 }
3544 return resultobj;
3545 fail:
3546 return NULL;
3547 }
3548
3549
3550 static PyObject *_wrap_GIFAnimation_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
3551 PyObject *resultobj;
3552 wxGIFAnimation *arg1 = (wxGIFAnimation *) 0 ;
3553 wxColour *arg2 = 0 ;
3554 bool result;
3555 wxColour temp2 ;
3556 PyObject * obj0 = 0 ;
3557 PyObject * obj1 = 0 ;
3558 char *kwnames[] = {
3559 (char *) "self",(char *) "col", NULL
3560 };
3561
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;
3565 {
3566 arg2 = &temp2;
3567 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3568 }
3569 {
3570 PyThreadState* __tstate = wxPyBeginAllowThreads();
3571 result = (bool)((wxGIFAnimation const *)arg1)->GetBackgroundColour(*arg2);
3572
3573 wxPyEndAllowThreads(__tstate);
3574 if (PyErr_Occurred()) SWIG_fail;
3575 }
3576 {
3577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3578 }
3579 return resultobj;
3580 fail:
3581 return NULL;
3582 }
3583
3584
3585 static PyObject *_wrap_GIFAnimation_GetTransparentColour(PyObject *, PyObject *args, PyObject *kwargs) {
3586 PyObject *resultobj;
3587 wxGIFAnimation *arg1 = (wxGIFAnimation *) 0 ;
3588 wxColour *arg2 = 0 ;
3589 bool result;
3590 wxColour temp2 ;
3591 PyObject * obj0 = 0 ;
3592 PyObject * obj1 = 0 ;
3593 char *kwnames[] = {
3594 (char *) "self",(char *) "col", NULL
3595 };
3596
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;
3600 {
3601 arg2 = &temp2;
3602 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3603 }
3604 {
3605 PyThreadState* __tstate = wxPyBeginAllowThreads();
3606 result = (bool)((wxGIFAnimation const *)arg1)->GetTransparentColour(*arg2);
3607
3608 wxPyEndAllowThreads(__tstate);
3609 if (PyErr_Occurred()) SWIG_fail;
3610 }
3611 {
3612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3613 }
3614 return resultobj;
3615 fail:
3616 return NULL;
3617 }
3618
3619
3620 static PyObject *_wrap_GIFAnimation_IsValid(PyObject *, PyObject *args, PyObject *kwargs) {
3621 PyObject *resultobj;
3622 wxGIFAnimation *arg1 = (wxGIFAnimation *) 0 ;
3623 bool result;
3624 PyObject * obj0 = 0 ;
3625 char *kwnames[] = {
3626 (char *) "self", NULL
3627 };
3628
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;
3632 {
3633 PyThreadState* __tstate = wxPyBeginAllowThreads();
3634 result = (bool)((wxGIFAnimation const *)arg1)->IsValid();
3635
3636 wxPyEndAllowThreads(__tstate);
3637 if (PyErr_Occurred()) SWIG_fail;
3638 }
3639 {
3640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3641 }
3642 return resultobj;
3643 fail:
3644 return NULL;
3645 }
3646
3647
3648 static PyObject *_wrap_GIFAnimation_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
3649 PyObject *resultobj;
3650 wxGIFAnimation *arg1 = (wxGIFAnimation *) 0 ;
3651 wxString *arg2 = 0 ;
3652 bool result;
3653 bool temp2 = false ;
3654 PyObject * obj0 = 0 ;
3655 PyObject * obj1 = 0 ;
3656 char *kwnames[] = {
3657 (char *) "self",(char *) "filename", NULL
3658 };
3659
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;
3663 {
3664 arg2 = wxString_in_helper(obj1);
3665 if (arg2 == NULL) SWIG_fail;
3666 temp2 = true;
3667 }
3668 {
3669 PyThreadState* __tstate = wxPyBeginAllowThreads();
3670 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
3671
3672 wxPyEndAllowThreads(__tstate);
3673 if (PyErr_Occurred()) SWIG_fail;
3674 }
3675 {
3676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3677 }
3678 {
3679 if (temp2)
3680 delete arg2;
3681 }
3682 return resultobj;
3683 fail:
3684 {
3685 if (temp2)
3686 delete arg2;
3687 }
3688 return NULL;
3689 }
3690
3691
3692 static PyObject * GIFAnimation_swigregister(PyObject *, PyObject *args) {
3693 PyObject *obj;
3694 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3695 SWIG_TypeClientData(SWIGTYPE_p_wxGIFAnimation, obj);
3696 Py_INCREF(obj);
3697 return Py_BuildValue((char *)"");
3698 }
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 ;
3714 wxPoint temp4 ;
3715 wxSize temp5 ;
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 ;
3724 char *kwnames[] = {
3725 (char *) "parent",(char *) "id",(char *) "filename",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
3726 };
3727
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;
3731 if (obj1) {
3732 {
3733 arg2 = (int)(SWIG_As_int(obj1));
3734 if (SWIG_arg_fail(2)) SWIG_fail;
3735 }
3736 }
3737 if (obj2) {
3738 {
3739 arg3 = wxString_in_helper(obj2);
3740 if (arg3 == NULL) SWIG_fail;
3741 temp3 = true;
3742 }
3743 }
3744 if (obj3) {
3745 {
3746 arg4 = &temp4;
3747 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3748 }
3749 }
3750 if (obj4) {
3751 {
3752 arg5 = &temp5;
3753 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3754 }
3755 }
3756 if (obj5) {
3757 {
3758 arg6 = (long)(SWIG_As_long(obj5));
3759 if (SWIG_arg_fail(6)) SWIG_fail;
3760 }
3761 }
3762 if (obj6) {
3763 {
3764 arg7 = wxString_in_helper(obj6);
3765 if (arg7 == NULL) SWIG_fail;
3766 temp7 = true;
3767 }
3768 }
3769 {
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);
3773
3774 wxPyEndAllowThreads(__tstate);
3775 if (PyErr_Occurred()) SWIG_fail;
3776 }
3777 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFAnimationCtrl, 1);
3778 {
3779 if (temp3)
3780 delete arg3;
3781 }
3782 {
3783 if (temp7)
3784 delete arg7;
3785 }
3786 return resultobj;
3787 fail:
3788 {
3789 if (temp3)
3790 delete arg3;
3791 }
3792 {
3793 if (temp7)
3794 delete arg7;
3795 }
3796 return NULL;
3797 }
3798
3799
3800 static PyObject *_wrap_new_PreGIFAnimationCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
3801 PyObject *resultobj;
3802 wxGIFAnimationCtrl *result;
3803 char *kwnames[] = {
3804 NULL
3805 };
3806
3807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGIFAnimationCtrl",kwnames)) goto fail;
3808 {
3809 if (!wxPyCheckForApp()) SWIG_fail;
3810 PyThreadState* __tstate = wxPyBeginAllowThreads();
3811 result = (wxGIFAnimationCtrl *)new wxGIFAnimationCtrl();
3812
3813 wxPyEndAllowThreads(__tstate);
3814 if (PyErr_Occurred()) SWIG_fail;
3815 }
3816 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFAnimationCtrl, 1);
3817 return resultobj;
3818 fail:
3819 return NULL;
3820 }
3821
3822
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 ;
3837 bool result;
3838 bool temp4 = false ;
3839 wxPoint temp5 ;
3840 wxSize temp6 ;
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 ;
3850 char *kwnames[] = {
3851 (char *) "self",(char *) "parent",(char *) "id",(char *) "filename",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
3852 };
3853
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;
3859 if (obj2) {
3860 {
3861 arg3 = (int)(SWIG_As_int(obj2));
3862 if (SWIG_arg_fail(3)) SWIG_fail;
3863 }
3864 }
3865 if (obj3) {
3866 {
3867 arg4 = wxString_in_helper(obj3);
3868 if (arg4 == NULL) SWIG_fail;
3869 temp4 = true;
3870 }
3871 }
3872 if (obj4) {
3873 {
3874 arg5 = &temp5;
3875 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3876 }
3877 }
3878 if (obj5) {
3879 {
3880 arg6 = &temp6;
3881 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3882 }
3883 }
3884 if (obj6) {
3885 {
3886 arg7 = (long)(SWIG_As_long(obj6));
3887 if (SWIG_arg_fail(7)) SWIG_fail;
3888 }
3889 }
3890 if (obj7) {
3891 {
3892 arg8 = wxString_in_helper(obj7);
3893 if (arg8 == NULL) SWIG_fail;
3894 temp8 = true;
3895 }
3896 }
3897 {
3898 PyThreadState* __tstate = wxPyBeginAllowThreads();
3899 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
3900
3901 wxPyEndAllowThreads(__tstate);
3902 if (PyErr_Occurred()) SWIG_fail;
3903 }
3904 {
3905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3906 }
3907 {
3908 if (temp4)
3909 delete arg4;
3910 }
3911 {
3912 if (temp8)
3913 delete arg8;
3914 }
3915 return resultobj;
3916 fail:
3917 {
3918 if (temp4)
3919 delete arg4;
3920 }
3921 {
3922 if (temp8)
3923 delete arg8;
3924 }
3925 return NULL;
3926 }
3927
3928
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 ;
3934 bool result;
3935 bool temp2 = false ;
3936 PyObject * obj0 = 0 ;
3937 PyObject * obj1 = 0 ;
3938 char *kwnames[] = {
3939 (char *) "self",(char *) "filename", NULL
3940 };
3941
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;
3945 if (obj1) {
3946 {
3947 arg2 = wxString_in_helper(obj1);
3948 if (arg2 == NULL) SWIG_fail;
3949 temp2 = true;
3950 }
3951 }
3952 {
3953 PyThreadState* __tstate = wxPyBeginAllowThreads();
3954 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
3955
3956 wxPyEndAllowThreads(__tstate);
3957 if (PyErr_Occurred()) SWIG_fail;
3958 }
3959 {
3960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3961 }
3962 {
3963 if (temp2)
3964 delete arg2;
3965 }
3966 return resultobj;
3967 fail:
3968 {
3969 if (temp2)
3970 delete arg2;
3971 }
3972 return NULL;
3973 }
3974
3975
3976 static PyObject *_wrap_GIFAnimationCtrl_Play(PyObject *, PyObject *args, PyObject *kwargs) {
3977 PyObject *resultobj;
3978 wxGIFAnimationCtrl *arg1 = (wxGIFAnimationCtrl *) 0 ;
3979 bool arg2 = (bool) true ;
3980 bool result;
3981 PyObject * obj0 = 0 ;
3982 PyObject * obj1 = 0 ;
3983 char *kwnames[] = {
3984 (char *) "self",(char *) "looped", NULL
3985 };
3986
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;
3990 if (obj1) {
3991 {
3992 arg2 = (bool)(SWIG_As_bool(obj1));
3993 if (SWIG_arg_fail(2)) SWIG_fail;
3994 }
3995 }
3996 {
3997 PyThreadState* __tstate = wxPyBeginAllowThreads();
3998 result = (bool)(arg1)->Play(arg2);
3999
4000 wxPyEndAllowThreads(__tstate);
4001 if (PyErr_Occurred()) SWIG_fail;
4002 }
4003 {
4004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4005 }
4006 return resultobj;
4007 fail:
4008 return NULL;
4009 }
4010
4011
4012 static PyObject *_wrap_GIFAnimationCtrl_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
4013 PyObject *resultobj;
4014 wxGIFAnimationCtrl *arg1 = (wxGIFAnimationCtrl *) 0 ;
4015 PyObject * obj0 = 0 ;
4016 char *kwnames[] = {
4017 (char *) "self", NULL
4018 };
4019
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;
4023 {
4024 PyThreadState* __tstate = wxPyBeginAllowThreads();
4025 (arg1)->Stop();
4026
4027 wxPyEndAllowThreads(__tstate);
4028 if (PyErr_Occurred()) SWIG_fail;
4029 }
4030 Py_INCREF(Py_None); resultobj = Py_None;
4031 return resultobj;
4032 fail:
4033 return NULL;
4034 }
4035
4036
4037 static PyObject *_wrap_GIFAnimationCtrl_FitToAnimation(PyObject *, PyObject *args, PyObject *kwargs) {
4038 PyObject *resultobj;
4039 wxGIFAnimationCtrl *arg1 = (wxGIFAnimationCtrl *) 0 ;
4040 PyObject * obj0 = 0 ;
4041 char *kwnames[] = {
4042 (char *) "self", NULL
4043 };
4044
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;
4048 {
4049 PyThreadState* __tstate = wxPyBeginAllowThreads();
4050 (arg1)->FitToAnimation();
4051
4052 wxPyEndAllowThreads(__tstate);
4053 if (PyErr_Occurred()) SWIG_fail;
4054 }
4055 Py_INCREF(Py_None); resultobj = Py_None;
4056 return resultobj;
4057 fail:
4058 return NULL;
4059 }
4060
4061
4062 static PyObject *_wrap_GIFAnimationCtrl_IsPlaying(PyObject *, PyObject *args, PyObject *kwargs) {
4063 PyObject *resultobj;
4064 wxGIFAnimationCtrl *arg1 = (wxGIFAnimationCtrl *) 0 ;
4065 bool result;
4066 PyObject * obj0 = 0 ;
4067 char *kwnames[] = {
4068 (char *) "self", NULL
4069 };
4070
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;
4074 {
4075 PyThreadState* __tstate = wxPyBeginAllowThreads();
4076 result = (bool)((wxGIFAnimationCtrl const *)arg1)->IsPlaying();
4077
4078 wxPyEndAllowThreads(__tstate);
4079 if (PyErr_Occurred()) SWIG_fail;
4080 }
4081 {
4082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4083 }
4084 return resultobj;
4085 fail:
4086 return NULL;
4087 }
4088
4089
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 ;
4095 char *kwnames[] = {
4096 (char *) "self", NULL
4097 };
4098
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;
4102 {
4103 PyThreadState* __tstate = wxPyBeginAllowThreads();
4104 {
4105 wxAnimationPlayer &_result_ref = (arg1)->GetPlayer();
4106 result = (wxAnimationPlayer *) &_result_ref;
4107 }
4108
4109 wxPyEndAllowThreads(__tstate);
4110 if (PyErr_Occurred()) SWIG_fail;
4111 }
4112 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAnimationPlayer, 0);
4113 return resultobj;
4114 fail:
4115 return NULL;
4116 }
4117
4118
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 ;
4124 char *kwnames[] = {
4125 (char *) "self", NULL
4126 };
4127
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;
4131 {
4132 PyThreadState* __tstate = wxPyBeginAllowThreads();
4133 result = (wxAnimationBase *)(arg1)->GetAnimation();
4134
4135 wxPyEndAllowThreads(__tstate);
4136 if (PyErr_Occurred()) SWIG_fail;
4137 }
4138 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAnimationBase, 0);
4139 return resultobj;
4140 fail:
4141 return NULL;
4142 }
4143
4144
4145 static PyObject *_wrap_GIFAnimationCtrl_GetFilename(PyObject *, PyObject *args, PyObject *kwargs) {
4146 PyObject *resultobj;
4147 wxGIFAnimationCtrl *arg1 = (wxGIFAnimationCtrl *) 0 ;
4148 wxString *result;
4149 PyObject * obj0 = 0 ;
4150 char *kwnames[] = {
4151 (char *) "self", NULL
4152 };
4153
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;
4157 {
4158 PyThreadState* __tstate = wxPyBeginAllowThreads();
4159 {
4160 wxString const &_result_ref = ((wxGIFAnimationCtrl const *)arg1)->GetFilename();
4161 result = (wxString *) &_result_ref;
4162 }
4163
4164 wxPyEndAllowThreads(__tstate);
4165 if (PyErr_Occurred()) SWIG_fail;
4166 }
4167 {
4168 #if wxUSE_UNICODE
4169 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4170 #else
4171 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4172 #endif
4173 }
4174 return resultobj;
4175 fail:
4176 return NULL;
4177 }
4178
4179
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 ;
4187 char *kwnames[] = {
4188 (char *) "self",(char *) "filename", NULL
4189 };
4190
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;
4194 {
4195 arg2 = wxString_in_helper(obj1);
4196 if (arg2 == NULL) SWIG_fail;
4197 temp2 = true;
4198 }
4199 {
4200 PyThreadState* __tstate = wxPyBeginAllowThreads();
4201 (arg1)->SetFilename((wxString const &)*arg2);
4202
4203 wxPyEndAllowThreads(__tstate);
4204 if (PyErr_Occurred()) SWIG_fail;
4205 }
4206 Py_INCREF(Py_None); resultobj = Py_None;
4207 {
4208 if (temp2)
4209 delete arg2;
4210 }
4211 return resultobj;
4212 fail:
4213 {
4214 if (temp2)
4215 delete arg2;
4216 }
4217 return NULL;
4218 }
4219
4220
4221 static PyObject * GIFAnimationCtrl_swigregister(PyObject *, PyObject *args) {
4222 PyObject *obj;
4223 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4224 SWIG_TypeClientData(SWIGTYPE_p_wxGIFAnimationCtrl, obj);
4225 Py_INCREF(obj);
4226 return Py_BuildValue((char *)"");
4227 }
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 }
4311 };
4312
4313
4314 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
4315
4316 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
4317 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
4318 }
4319 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
4320 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
4321 }
4322 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
4323 return (void *)((wxObject *) ((wxSizerItem *) x));
4324 }
4325 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
4326 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
4327 }
4328 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
4329 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
4330 }
4331 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
4332 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
4333 }
4334 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
4335 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
4336 }
4337 static void *_p_wxSizerTo_p_wxObject(void *x) {
4338 return (void *)((wxObject *) ((wxSizer *) x));
4339 }
4340 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
4341 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
4342 }
4343 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
4344 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
4345 }
4346 static void *_p_wxEventTo_p_wxObject(void *x) {
4347 return (void *)((wxObject *) ((wxEvent *) x));
4348 }
4349 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
4350 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
4351 }
4352 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
4353 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
4354 }
4355 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
4356 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
4357 }
4358 static void *_p_wxAnimationBaseTo_p_wxObject(void *x) {
4359 return (void *)((wxObject *) ((wxAnimationBase *) x));
4360 }
4361 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
4362 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
4363 }
4364 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
4365 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
4366 }
4367 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
4368 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
4369 }
4370 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
4371 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
4372 }
4373 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
4374 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
4375 }
4376 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
4377 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
4378 }
4379 static void *_p_wxControlTo_p_wxObject(void *x) {
4380 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
4381 }
4382 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
4383 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
4384 }
4385 static void *_p_wxFSFileTo_p_wxObject(void *x) {
4386 return (void *)((wxObject *) ((wxFSFile *) x));
4387 }
4388 static void *_p_wxPySizerTo_p_wxObject(void *x) {
4389 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
4390 }
4391 static void *_p_wxPyEventTo_p_wxObject(void *x) {
4392 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
4393 }
4394 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
4395 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
4396 }
4397 static void *_p_wxShowEventTo_p_wxObject(void *x) {
4398 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
4399 }
4400 static void *_p_wxAnimationPlayerTo_p_wxObject(void *x) {
4401 return (void *)((wxObject *) ((wxAnimationPlayer *) x));
4402 }
4403 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
4404 return (void *)((wxObject *) ((wxMenuItem *) x));
4405 }
4406 static void *_p_wxDateEventTo_p_wxObject(void *x) {
4407 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
4408 }
4409 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
4410 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
4411 }
4412 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
4413 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
4414 }
4415 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
4416 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
4417 }
4418 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
4419 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
4420 }
4421 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
4422 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
4423 }
4424 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
4425 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
4426 }
4427 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
4428 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
4429 }
4430 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
4431 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
4432 }
4433 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
4434 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
4435 }
4436 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
4437 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
4438 }
4439 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
4440 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
4441 }
4442 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
4443 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
4444 }
4445 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
4446 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
4447 }
4448 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
4449 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
4450 }
4451 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
4452 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
4453 }
4454 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
4455 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
4456 }
4457 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
4458 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
4459 }
4460 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
4461 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
4462 }
4463 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
4464 return (void *)((wxObject *) ((wxImageHandler *) x));
4465 }
4466 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
4467 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
4468 }
4469 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
4470 return (void *)((wxObject *) ((wxEvtHandler *) x));
4471 }
4472 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
4473 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
4474 }
4475 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
4476 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
4477 }
4478 static void *_p_wxImageTo_p_wxObject(void *x) {
4479 return (void *)((wxObject *) ((wxImage *) x));
4480 }
4481 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
4482 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
4483 }
4484 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
4485 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
4486 }
4487 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
4488 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
4489 }
4490 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
4491 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
4492 }
4493 static void *_p_wxWindowTo_p_wxObject(void *x) {
4494 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
4495 }
4496 static void *_p_wxMenuTo_p_wxObject(void *x) {
4497 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
4498 }
4499 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
4500 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
4501 }
4502 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
4503 return (void *)((wxObject *) ((wxFileSystem *) x));
4504 }
4505 static void *_p_wxGIFAnimationTo_p_wxObject(void *x) {
4506 return (void *)((wxObject *) (wxAnimationBase *) ((wxGIFAnimation *) x));
4507 }
4508 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
4509 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
4510 }
4511 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
4512 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
4513 }
4514 static void *_p_wxPyAppTo_p_wxObject(void *x) {
4515 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
4516 }
4517 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
4518 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
4519 }
4520 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
4521 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
4522 }
4523 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
4524 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
4525 }
4526 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
4527 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
4528 }
4529 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
4530 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
4531 }
4532 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
4533 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
4534 }
4535 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
4536 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
4537 }
4538 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
4539 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
4540 }
4541 static void *_p_wxGIFAnimationCtrlTo_p_wxObject(void *x) {
4542 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGIFAnimationCtrl *) x));
4543 }
4544 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
4545 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
4546 }
4547 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
4548 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
4549 }
4550 static void *_p_wxValidatorTo_p_wxObject(void *x) {
4551 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
4552 }
4553 static void *_p_wxControlTo_p_wxWindow(void *x) {
4554 return (void *)((wxWindow *) ((wxControl *) x));
4555 }
4556 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
4557 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
4558 }
4559 static void *_p_wxGIFAnimationCtrlTo_p_wxWindow(void *x) {
4560 return (void *)((wxWindow *) (wxControl *) ((wxGIFAnimationCtrl *) x));
4561 }
4562 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
4563 return (void *)((wxWindow *) ((wxMenuBar *) x));
4564 }
4565 static void *_p_wxGIFAnimationTo_p_wxAnimationBase(void *x) {
4566 return (void *)((wxAnimationBase *) ((wxGIFAnimation *) x));
4567 }
4568 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
4569 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
4570 }
4571 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
4572 return (void *)((wxEvtHandler *) ((wxWindow *) x));
4573 }
4574 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
4575 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
4576 }
4577 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
4578 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
4579 }
4580 static void *_p_wxGIFAnimationCtrlTo_p_wxEvtHandler(void *x) {
4581 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGIFAnimationCtrl *) x));
4582 }
4583 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
4584 return (void *)((wxEvtHandler *) ((wxValidator *) x));
4585 }
4586 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
4587 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
4588 }
4589 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
4590 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
4591 }
4592 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
4593 return (void *)((wxEvtHandler *) ((wxMenu *) x));
4594 }
4595 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
4596 return (void *)((wxControl *) ((wxControlWithItems *) x));
4597 }
4598 static void *_p_wxGIFAnimationCtrlTo_p_wxControl(void *x) {
4599 return (void *)((wxControl *) ((wxGIFAnimationCtrl *) x));
4600 }
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}};
4626
4627 static swig_type_info *swig_types_initial[] = {
4628 _swigt__p_wxRect,
4629 _swigt__p_wxGIFAnimationCtrl,
4630 _swigt__p_wxObject,
4631 _swigt__p_unsigned_char,
4632 _swigt__p_wxColour,
4633 _swigt__p_wxAnimationPlayer,
4634 _swigt__p_wxWindow,
4635 _swigt__p_unsigned_long,
4636 _swigt__p_wxBitmap,
4637 _swigt__p_form_ops_t,
4638 _swigt__p_unsigned_int,
4639 _swigt__unsigned_int,
4640 _swigt__p_wxDuplexMode,
4641 _swigt__p_wxGIFAnimation,
4642 _swigt__p_char,
4643 _swigt__p_wxAnimationBase,
4644 _swigt__p_wxPoint,
4645 _swigt__p_wxDC,
4646 _swigt__p_wxEvtHandler,
4647 _swigt__std__ptrdiff_t,
4648 _swigt__ptrdiff_t,
4649 _swigt__p_wxControl,
4650 _swigt__p_wxPaperSize,
4651 _swigt__p_wxSize,
4652 _swigt__p_int,
4653 0
4654 };
4655
4656
4657 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
4658
4659 static swig_const_info swig_const_table[] = {
4660 {0, 0, 0, 0.0, 0, 0}};
4661
4662 #ifdef __cplusplus
4663 }
4664 #endif
4665
4666
4667 #ifdef __cplusplus
4668 extern "C" {
4669 #endif
4670
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)
4675
4676 /* -----------------------------------------------------------------------------
4677 * global variable support code.
4678 * ----------------------------------------------------------------------------- */
4679
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;
4685 } swig_globalvar;
4686
4687 typedef struct swig_varlinkobject {
4688 PyObject_HEAD
4689 swig_globalvar *vars;
4690 } swig_varlinkobject;
4691
4692 static PyObject *
4693 swig_varlink_repr(swig_varlinkobject *v) {
4694 v = v;
4695 return PyString_FromString("<Swig global variables>");
4696 }
4697
4698 static int
4699 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
4700 swig_globalvar *var;
4701 flags = flags;
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,", ");
4706 }
4707 fprintf(fp," }\n");
4708 return 0;
4709 }
4710
4711 static PyObject *
4712 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
4713 swig_globalvar *var = v->vars;
4714 while (var) {
4715 if (strcmp(var->name,n) == 0) {
4716 return (*var->get_attr)();
4717 }
4718 var = var->next;
4719 }
4720 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
4721 return NULL;
4722 }
4723
4724 static int
4725 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
4726 swig_globalvar *var = v->vars;
4727 while (var) {
4728 if (strcmp(var->name,n) == 0) {
4729 return (*var->set_attr)(p);
4730 }
4731 var = var->next;
4732 }
4733 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
4734 return 1;
4735 }
4736
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) */
4747 0, /* tp_compare */
4748 (reprfunc) swig_varlink_repr, /* tp_repr */
4749 0, /* tp_as_number */
4750 0, /* tp_as_sequence */
4751 0, /* tp_as_mapping */
4752 0, /* tp_hash */
4753 0, /* tp_call */
4754 0, /* tp_str */
4755 0, /* tp_getattro */
4756 0, /* tp_setattro */
4757 0, /* tp_as_buffer */
4758 0, /* tp_flags */
4759 0, /* tp_doc */
4760 #if PY_VERSION_HEX >= 0x02000000
4761 0, /* tp_traverse */
4762 0, /* tp_clear */
4763 #endif
4764 #if PY_VERSION_HEX >= 0x02010000
4765 0, /* tp_richcompare */
4766 0, /* tp_weaklistoffset */
4767 #endif
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 */
4770 #endif
4771 #if PY_VERSION_HEX >= 0x02030000
4772 0, /* tp_del */
4773 #endif
4774 #ifdef COUNT_ALLOCS
4775 0,0,0,0 /* tp_alloc -> tp_next */
4776 #endif
4777 };
4778
4779 /* Create a variable linking object for use later */
4780 static PyObject *
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;
4786 result->vars = 0;
4787 result->ob_refcnt = 0;
4788 Py_XINCREF((PyObject *) result);
4789 return ((PyObject*) result);
4790 }
4791
4792 static void
4793 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
4794 swig_varlinkobject *v;
4795 swig_globalvar *gv;
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;
4802 gv->next = v->vars;
4803 v->vars = gv;
4804 }
4805
4806 /* -----------------------------------------------------------------------------
4807 * constants/methods manipulation
4808 * ----------------------------------------------------------------------------- */
4809
4810 /* Install Constants */
4811 static void
4812 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
4813 PyObject *obj = 0;
4814 size_t i;
4815 for (i = 0; constants[i].type; i++) {
4816 switch(constants[i].type) {
4817 case SWIG_PY_INT:
4818 obj = PyInt_FromLong(constants[i].lvalue);
4819 break;
4820 case SWIG_PY_FLOAT:
4821 obj = PyFloat_FromDouble(constants[i].dvalue);
4822 break;
4823 case SWIG_PY_STRING:
4824 if (constants[i].pvalue) {
4825 obj = PyString_FromString((char *) constants[i].pvalue);
4826 } else {
4827 Py_INCREF(Py_None);
4828 obj = Py_None;
4829 }
4830 break;
4831 case SWIG_PY_POINTER:
4832 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
4833 break;
4834 case SWIG_PY_BINARY:
4835 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
4836 break;
4837 default:
4838 obj = 0;
4839 break;
4840 }
4841 if (obj) {
4842 PyDict_SetItemString(d,constants[i].name,obj);
4843 Py_DECREF(obj);
4844 }
4845 }
4846 }
4847
4848 /* -----------------------------------------------------------------------------*/
4849 /* Fix SwigMethods to carry the callback ptrs when needed */
4850 /* -----------------------------------------------------------------------------*/
4851
4852 static void
4853 SWIG_Python_FixMethods(PyMethodDef *methods,
4854 swig_const_info *const_table,
4855 swig_type_info **types,
4856 swig_type_info **types_initial) {
4857 size_t i;
4858 for (i = 0; methods[i].ml_name; ++i) {
4859 char *c = methods[i].ml_doc;
4860 if (c && (c = strstr(c, "swig_ptr: "))) {
4861 int j;
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]);
4868 break;
4869 }
4870 }
4871 if (ci) {
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);
4877 char *buff = ndoc;
4878 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue: (void *)(ci->lvalue);
4879 strncpy(buff, methods[i].ml_doc, ldoc);
4880 buff += ldoc;
4881 strncpy(buff, "swig_ptr: ", 10);
4882 buff += 10;
4883 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
4884 methods[i].ml_doc = ndoc;
4885 }
4886 }
4887 }
4888 }
4889
4890 /* -----------------------------------------------------------------------------*
4891 * Initialize type list
4892 * -----------------------------------------------------------------------------*/
4893
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 */
4897 static int
4898 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
4899 {
4900 PyObject *dict;
4901 if (!PyModule_Check(m)) {
4902 PyErr_SetString(PyExc_TypeError,
4903 "PyModule_AddObject() needs module as first arg");
4904 return -1;
4905 }
4906 if (!o) {
4907 PyErr_SetString(PyExc_TypeError,
4908 "PyModule_AddObject() needs non-NULL value");
4909 return -1;
4910 }
4911
4912 dict = PyModule_GetDict(m);
4913 if (dict == NULL) {
4914 /* Internal error -- modules must have a dict! */
4915 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
4916 PyModule_GetName(m));
4917 return -1;
4918 }
4919 if (PyDict_SetItemString(dict, name, o))
4920 return -1;
4921 Py_DECREF(o);
4922 return 0;
4923 }
4924 #endif
4925
4926 static swig_type_info **
4927 SWIG_Python_SetTypeListHandle(swig_type_info **type_list_handle) {
4928 static PyMethodDef swig_empty_runtime_method_table[] = {
4929 {
4930 NULL, NULL, 0, NULL
4931 }
4932 };/* Sentinel */
4933
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);
4939 }
4940 return type_list_handle;
4941 }
4942
4943 static swig_type_info **
4944 SWIG_Python_LookupTypePointer(swig_type_info **type_list_handle) {
4945 swig_type_info **type_pointer;
4946
4947 /* first check if module already created */
4948 type_pointer = SWIG_Python_GetTypeListHandle();
4949 if (type_pointer) {
4950 return type_pointer;
4951 } else {
4952 /* create a new module and variable */
4953 return SWIG_Python_SetTypeListHandle(type_list_handle);
4954 }
4955 }
4956
4957 #ifdef __cplusplus
4958 }
4959 #endif
4960
4961 /* -----------------------------------------------------------------------------*
4962 * Partial Init method
4963 * -----------------------------------------------------------------------------*/
4964
4965 #ifdef SWIG_LINK_RUNTIME
4966 #ifdef __cplusplus
4967 extern "C"
4968 #endif
4969 SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *);
4970 #endif
4971
4972 #ifdef __cplusplus
4973 extern "C"
4974 #endif
4975 SWIGEXPORT(void) SWIG_init(void) {
4976 static PyObject *SWIG_globals = 0;
4977 static int typeinit = 0;
4978 PyObject *m, *d;
4979 int i;
4980 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
4981
4982 /* Fix SwigMethods to carry the callback ptrs when needed */
4983 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_types_initial);
4984
4985 m = Py_InitModule((char *) SWIG_name, SwigMethods);
4986 d = PyModule_GetDict(m);
4987
4988 if (!typeinit) {
4989 #ifdef SWIG_LINK_RUNTIME
4990 swig_type_list_handle = (swig_type_info **) SWIG_ReturnGlobalTypeList(swig_type_list_handle);
4991 #else
4992 # ifndef SWIG_STATIC_RUNTIME
4993 swig_type_list_handle = SWIG_Python_LookupTypePointer(swig_type_list_handle);
4994 # endif
4995 #endif
4996 for (i = 0; swig_types_initial[i]; i++) {
4997 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
4998 }
4999 typeinit = 1;
5000 }
5001 SWIG_InstallConstants(d,swig_const_table);
5002
5003 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
5004 SWIG_addvarlink(SWIG_globals,(char*)"AnimationControlNameStr",_wrap_AnimationControlNameStr_get, _wrap_AnimationControlNameStr_set);
5005 {
5006 PyDict_SetItemString(d,"ANIM_UNSPECIFIED", SWIG_From_int((int)(wxANIM_UNSPECIFIED)));
5007 }
5008 {
5009 PyDict_SetItemString(d,"ANIM_DONOTREMOVE", SWIG_From_int((int)(wxANIM_DONOTREMOVE)));
5010 }
5011 {
5012 PyDict_SetItemString(d,"ANIM_TOBACKGROUND", SWIG_From_int((int)(wxANIM_TOBACKGROUND)));
5013 }
5014 {
5015 PyDict_SetItemString(d,"ANIM_TOPREVIOUS", SWIG_From_int((int)(wxANIM_TOPREVIOUS)));
5016 }
5017 {
5018 PyDict_SetItemString(d,"AN_FIT_ANIMATION", SWIG_From_int((int)(wxAN_FIT_ANIMATION)));
5019 }
5020 }
5021